Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .codegen.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "engineHash": "7fa5d4a", "specHash": "131c54a", "version": "4.12.0" }
{ "engineHash": "66be199", "specHash": "54953fe", "version": "4.12.0" }
8 changes: 7 additions & 1 deletion codegen/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,13 @@ export type OpenAPISchema = {
* Value MUST be a string. Multiple types via an array are not supported.
*/
type:
'string' | 'number' | 'integer' | 'object' | 'array' | 'boolean' | 'null';
| 'string'
| 'number'
| 'integer'
| 'object'
| 'array'
| 'boolean'
| 'null';

/** used with type: 'array' */
items?: OpenAPISchema | OpenAPIReference;
Expand Down
3 changes: 2 additions & 1 deletion src/box-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,8 @@ class BoxClient {
});

let proxyConfig:
{ url: string; username?: string; password?: string } | undefined;
| { url: string; username?: string; password?: string }
| undefined;
if (config.proxy?.url) {
proxyConfig = {
url: config.proxy.url,
Expand Down
3 changes: 2 additions & 1 deletion src/schemas/ai-agent-basic-text-tool-ask.generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,6 @@ export interface AiAgentBasicTextToolAsk {
* The parameters for the LLM endpoint specific to OpenAI / Google models.
*/
llm_endpoint_params?:
schemas.AiLlmEndpointParamsOpenAi | schemas.AiLlmEndpointParamsGoogle;
| schemas.AiLlmEndpointParamsOpenAi
| schemas.AiLlmEndpointParamsGoogle;
}
3 changes: 2 additions & 1 deletion src/schemas/ai-agent-basic-text-tool-text-gen.generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@ export interface AiAgentBasicTextToolTextGen {
* The parameters for the LLM endpoint specific to OpenAI / Google models.
*/
llm_endpoint_params?:
schemas.AiLlmEndpointParamsOpenAi | schemas.AiLlmEndpointParamsGoogle;
| schemas.AiLlmEndpointParamsOpenAi
| schemas.AiLlmEndpointParamsGoogle;
}
6 changes: 5 additions & 1 deletion src/sdk-gen/managers/ai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,11 @@ export interface CreateAiTextGenHeadersInput {
};
}
export type GetAiAgentDefaultConfigQueryParamsModeField =
'ask' | 'text_gen' | 'extract' | 'extract_structured' | string;
| 'ask'
| 'text_gen'
| 'extract'
| 'extract_structured'
| string;
export interface GetAiAgentDefaultConfigQueryParams {
/**
* The mode to filter the agent config to return. */
Expand Down
39 changes: 26 additions & 13 deletions src/sdk-gen/managers/classifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ export interface GetClassificationTemplateHeadersInput {
}
export type AddClassificationRequestBodyOpField = 'addEnumOption' | string;
export type AddClassificationRequestBodyFieldKeyField =
'Box__Security__Classification__Key' | string;
| 'Box__Security__Classification__Key'
| string;
export interface AddClassificationRequestBodyDataStaticConfigClassificationField {
/**
* A longer description of the classification. */
Expand Down Expand Up @@ -229,7 +230,8 @@ export interface AddClassificationHeadersInput {
}
export type UpdateClassificationRequestBodyOpField = 'editEnumOption' | string;
export type UpdateClassificationRequestBodyFieldKeyField =
'Box__Security__Classification__Key' | string;
| 'Box__Security__Classification__Key'
| string;
export interface UpdateClassificationRequestBodyDataStaticConfigClassificationField {
/**
* A longer description of the classification. */
Expand Down Expand Up @@ -348,16 +350,21 @@ export interface UpdateClassificationHeadersInput {
};
}
export type CreateClassificationTemplateRequestBodyScopeField =
'enterprise' | string;
| 'enterprise'
| string;
export type CreateClassificationTemplateRequestBodyTemplateKeyField =
'securityClassification-6VMVochwUWo' | string;
| 'securityClassification-6VMVochwUWo'
| string;
export type CreateClassificationTemplateRequestBodyDisplayNameField =
'Classification' | string;
| 'Classification'
| string;
export type CreateClassificationTemplateRequestBodyFieldsTypeField = 'enum';
export type CreateClassificationTemplateRequestBodyFieldsKeyField =
'Box__Security__Classification__Key' | string;
| 'Box__Security__Classification__Key'
| string;
export type CreateClassificationTemplateRequestBodyFieldsDisplayNameField =
'Classification' | string;
| 'Classification'
| string;
export interface CreateClassificationTemplateRequestBodyFieldsOptionsStaticConfigClassificationField {
/**
* A longer description of the classification. */
Expand Down Expand Up @@ -972,7 +979,8 @@ export function deserializeAddClassificationRequestBodyDataField(
}
const key: string = val.key;
const staticConfig:
undefined | AddClassificationRequestBodyDataStaticConfigField =
| undefined
| AddClassificationRequestBodyDataStaticConfigField =
val.staticConfig == void 0
? void 0
: deserializeAddClassificationRequestBodyDataStaticConfigField(
Expand Down Expand Up @@ -1224,7 +1232,8 @@ export function deserializeUpdateClassificationRequestBodyDataField(
}
const key: string = val.key;
const staticConfig:
undefined | UpdateClassificationRequestBodyDataStaticConfigField =
| undefined
| UpdateClassificationRequestBodyDataStaticConfigField =
val.staticConfig == void 0
? void 0
: deserializeUpdateClassificationRequestBodyDataStaticConfigField(
Expand Down Expand Up @@ -1733,7 +1742,8 @@ export function deserializeCreateClassificationTemplateRequestBodyFieldsFieldInp
});
}
const type:
undefined | CreateClassificationTemplateRequestBodyFieldsTypeField =
| undefined
| CreateClassificationTemplateRequestBodyFieldsTypeField =
val.type == void 0
? void 0
: deserializeCreateClassificationTemplateRequestBodyFieldsTypeField(
Expand All @@ -1746,7 +1756,8 @@ export function deserializeCreateClassificationTemplateRequestBodyFieldsFieldInp
val.key
);
const displayName:
undefined | CreateClassificationTemplateRequestBodyFieldsDisplayNameField =
| undefined
| CreateClassificationTemplateRequestBodyFieldsDisplayNameField =
val.displayName == void 0
? void 0
: deserializeCreateClassificationTemplateRequestBodyFieldsDisplayNameField(
Expand Down Expand Up @@ -1943,14 +1954,16 @@ export function deserializeCreateClassificationTemplateRequestBodyInput(
? void 0
: deserializeCreateClassificationTemplateRequestBodyScopeField(val.scope);
const templateKey:
undefined | CreateClassificationTemplateRequestBodyTemplateKeyField =
| undefined
| CreateClassificationTemplateRequestBodyTemplateKeyField =
val.templateKey == void 0
? void 0
: deserializeCreateClassificationTemplateRequestBodyTemplateKeyField(
val.templateKey
);
const displayName:
undefined | CreateClassificationTemplateRequestBodyDisplayNameField =
| undefined
| CreateClassificationTemplateRequestBodyDisplayNameField =
val.displayName == void 0
? void 0
: deserializeCreateClassificationTemplateRequestBodyDisplayNameField(
Expand Down
5 changes: 4 additions & 1 deletion src/sdk-gen/managers/collaborationAllowlistEntries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,10 @@ export interface GetCollaborationWhitelistEntriesHeadersInput {
};
}
export type CreateCollaborationWhitelistEntryRequestBodyDirectionField =
'inbound' | 'outbound' | 'both' | string;
| 'inbound'
| 'outbound'
| 'both'
| string;
export interface CreateCollaborationWhitelistEntryRequestBody {
/**
* The domain to add to the list of allowed domains. */
Expand Down
4 changes: 3 additions & 1 deletion src/sdk-gen/managers/devicePinners.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,9 @@ export interface DeleteDevicePinnerByIdHeadersInput {
};
}
export type GetEnterpriseDevicePinnersQueryParamsDirectionField =
'ASC' | 'DESC' | string;
| 'ASC'
| 'DESC'
| string;
export interface GetEnterpriseDevicePinnersQueryParams {
/**
* Defines the position marker at which to begin returning results. This is
Expand Down
14 changes: 12 additions & 2 deletions src/sdk-gen/managers/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,12 @@ export interface GetEventsWithLongPollingHeadersInput {
};
}
export type GetEventsQueryParamsStreamTypeField =
'all' | 'changes' | 'sync' | 'admin_logs' | 'admin_logs_streaming' | string;
| 'all'
| 'changes'
| 'sync'
| 'admin_logs'
| 'admin_logs_streaming'
| string;
export type GetEventsQueryParamsEventTypeField =
| 'ACCESS_GRANTED'
| 'ACCESS_REVOKED'
Expand Down Expand Up @@ -265,7 +270,12 @@ export interface GetEventsHeadersInput {
};
}
export type GetEventStreamQueryParamsStreamTypeField =
'all' | 'changes' | 'sync' | 'admin_logs' | 'admin_logs_streaming' | string;
| 'all'
| 'changes'
| 'sync'
| 'admin_logs'
| 'admin_logs_streaming'
| string;
export type GetEventStreamQueryParamsEventTypeField =
| 'ACCESS_GRANTED'
| 'ACCESS_REVOKED'
Expand Down
3 changes: 2 additions & 1 deletion src/sdk-gen/managers/fileClassifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@ export interface AddClassificationToFileHeadersInput {
}
export type UpdateClassificationOnFileRequestBodyOpField = 'replace' | string;
export type UpdateClassificationOnFileRequestBodyPathField =
'/Box__Security__Classification__Key' | string;
| '/Box__Security__Classification__Key'
| string;
export class UpdateClassificationOnFileRequestBody {
/**
* The value will always be `replace`. */
Expand Down
8 changes: 7 additions & 1 deletion src/sdk-gen/managers/fileMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,13 @@ export interface CreateFileMetadataByIdHeadersInput {
}
export type UpdateFileMetadataByIdScope = 'global' | 'enterprise' | string;
export type UpdateFileMetadataByIdRequestBodyOpField =
'add' | 'replace' | 'remove' | 'test' | 'move' | 'copy' | string;
| 'add'
| 'replace'
| 'remove'
| 'test'
| 'move'
| 'copy'
| string;
export interface UpdateFileMetadataByIdRequestBody {
/**
* The type of change to perform on the template. Some
Expand Down
4 changes: 3 additions & 1 deletion src/sdk-gen/managers/fileVersionRetentions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ export interface GetFileVersionRetentionByIdOptionalsInput {
readonly cancellationToken?: CancellationToken;
}
export type GetFileVersionRetentionsQueryParamsDispositionActionField =
'permanently_delete' | 'remove_retention' | string;
| 'permanently_delete'
| 'remove_retention'
| string;
export interface GetFileVersionRetentionsQueryParams {
/**
* Filters results by files with this ID. */
Expand Down
6 changes: 4 additions & 2 deletions src/sdk-gen/managers/fileWatermarks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ export interface GetFileWatermarkHeadersInput {
};
}
export type UpdateFileWatermarkRequestBodyWatermarkImprintField =
'default' | string;
| 'default'
| string;
export class UpdateFileWatermarkRequestBodyWatermarkField {
/**
* The type of watermark to apply.
Expand Down Expand Up @@ -438,7 +439,8 @@ export function deserializeUpdateFileWatermarkRequestBodyWatermarkFieldInput(
});
}
const imprint:
undefined | UpdateFileWatermarkRequestBodyWatermarkImprintField =
| undefined
| UpdateFileWatermarkRequestBodyWatermarkImprintField =
val.imprint == void 0
? void 0
: deserializeUpdateFileWatermarkRequestBodyWatermarkImprintField(
Expand Down
21 changes: 15 additions & 6 deletions src/sdk-gen/managers/files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,10 @@ export interface UpdateFileByIdRequestBodyParentField {
readonly rawData?: SerializedData;
}
export type UpdateFileByIdRequestBodySharedLinkAccessField =
'open' | 'company' | 'collaborators' | string;
| 'open'
| 'company'
| 'collaborators'
| string;
export interface UpdateFileByIdRequestBodySharedLinkPermissionsField {
/**
* If the shared link allows for downloading of files.
Expand Down Expand Up @@ -419,7 +422,9 @@ export interface UpdateFileByIdRequestBodyLockField {
readonly rawData?: SerializedData;
}
export type UpdateFileByIdRequestBodyPermissionsCanDownloadField =
'open' | 'company' | string;
| 'open'
| 'company'
| string;
export interface UpdateFileByIdRequestBodyPermissionsField {
/**
* Defines who is allowed to download this file. The possible
Expand Down Expand Up @@ -485,7 +490,8 @@ export interface UpdateFileByIdRequestBody {
*
* [1]: https://developer.box.com/reference/get-collections */
readonly collections?:
readonly UpdateFileByIdRequestBodyCollectionsField[] | null;
| readonly UpdateFileByIdRequestBodyCollectionsField[]
| null;
/**
* The tags for this item. These tags are shown in
* the Box web app and mobile apps next to an item.
Expand Down Expand Up @@ -1304,7 +1310,8 @@ export function deserializeUpdateFileByIdRequestBodySharedLinkField(
const unsharedAt: undefined | DateTime =
val.unshared_at == void 0 ? void 0 : deserializeDateTime(val.unshared_at);
const permissions:
undefined | UpdateFileByIdRequestBodySharedLinkPermissionsField =
| undefined
| UpdateFileByIdRequestBodySharedLinkPermissionsField =
val.permissions == void 0
? void 0
: deserializeUpdateFileByIdRequestBodySharedLinkPermissionsField(
Expand Down Expand Up @@ -1432,7 +1439,8 @@ export function deserializeUpdateFileByIdRequestBodyPermissionsField(
});
}
const canDownload:
undefined | UpdateFileByIdRequestBodyPermissionsCanDownloadField =
| undefined
| UpdateFileByIdRequestBodyPermissionsCanDownloadField =
val.can_download == void 0
? void 0
: deserializeUpdateFileByIdRequestBodyPermissionsCanDownloadField(
Expand Down Expand Up @@ -1573,7 +1581,8 @@ export function deserializeUpdateFileByIdRequestBody(
});
}
const collections:
undefined | readonly UpdateFileByIdRequestBodyCollectionsField[] =
| undefined
| readonly UpdateFileByIdRequestBodyCollectionsField[] =
val.collections == void 0
? void 0
: sdIsList(val.collections)
Expand Down
3 changes: 2 additions & 1 deletion src/sdk-gen/managers/folderClassifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@ export interface AddClassificationToFolderHeadersInput {
}
export type UpdateClassificationOnFolderRequestBodyOpField = 'replace' | string;
export type UpdateClassificationOnFolderRequestBodyPathField =
'/Box__Security__Classification__Key' | string;
| '/Box__Security__Classification__Key'
| string;
export class UpdateClassificationOnFolderRequestBody {
/**
* The value will always be `replace`. */
Expand Down
3 changes: 2 additions & 1 deletion src/sdk-gen/managers/folderLocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,8 @@ export function deserializeCreateFolderLockRequestBody(
});
}
const lockedOperations:
undefined | CreateFolderLockRequestBodyLockedOperationsField =
| undefined
| CreateFolderLockRequestBodyLockedOperationsField =
val.locked_operations == void 0
? void 0
: deserializeCreateFolderLockRequestBodyLockedOperationsField(
Expand Down
8 changes: 7 additions & 1 deletion src/sdk-gen/managers/folderMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,13 @@ export interface CreateFolderMetadataByIdHeadersInput {
}
export type UpdateFolderMetadataByIdScope = 'global' | 'enterprise' | string;
export type UpdateFolderMetadataByIdRequestBodyOpField =
'add' | 'replace' | 'remove' | 'test' | 'move' | 'copy' | string;
| 'add'
| 'replace'
| 'remove'
| 'test'
| 'move'
| 'copy'
| string;
export interface UpdateFolderMetadataByIdRequestBody {
/**
* The type of change to perform on the template. Some
Expand Down
6 changes: 4 additions & 2 deletions src/sdk-gen/managers/folderWatermarks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ export interface GetFolderWatermarkHeadersInput {
};
}
export type UpdateFolderWatermarkRequestBodyWatermarkImprintField =
'default' | string;
| 'default'
| string;
export class UpdateFolderWatermarkRequestBodyWatermarkField {
/**
* The type of watermark to apply.
Expand Down Expand Up @@ -452,7 +453,8 @@ export function deserializeUpdateFolderWatermarkRequestBodyWatermarkFieldInput(
});
}
const imprint:
undefined | UpdateFolderWatermarkRequestBodyWatermarkImprintField =
| undefined
| UpdateFolderWatermarkRequestBodyWatermarkImprintField =
val.imprint == void 0
? void 0
: deserializeUpdateFolderWatermarkRequestBodyWatermarkImprintField(
Expand Down
Loading
Loading