diff --git a/.codegen.json b/.codegen.json index 15ee8f95..855acff9 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "7c01dda", "specHash": "74a1e4a", "version": "4.5.0" } +{ "engineHash": "02fdae4", "specHash": "c8e3a85", "version": "4.5.0" } diff --git a/src/sdk-gen/managers/search.ts b/src/sdk-gen/managers/search.ts index c3f650fa..67ae8ef1 100644 --- a/src/sdk-gen/managers/search.ts +++ b/src/sdk-gen/managers/search.ts @@ -93,7 +93,7 @@ export type SearchForContentQueryParamsContentTypesField = | 'description' | 'file_content' | 'comments' - | 'tag' + | 'tags' | string; export type SearchForContentQueryParamsTypeField = | 'file' @@ -595,7 +595,7 @@ export function deserializeSearchForContentQueryParamsContentTypesField( if (val == 'comments') { return val; } - if (val == 'tag') { + if (val == 'tags') { return val; } if (sdIsString(val)) { diff --git a/src/sdk-gen/schemas/v2025R0/hubItemOperationResultV2025R0.ts b/src/sdk-gen/schemas/v2025R0/hubItemOperationResultV2025R0.ts index b9916ac7..de563be0 100644 --- a/src/sdk-gen/schemas/v2025R0/hubItemOperationResultV2025R0.ts +++ b/src/sdk-gen/schemas/v2025R0/hubItemOperationResultV2025R0.ts @@ -23,6 +23,9 @@ export interface HubItemOperationResultV2025R0 { * The action performed on the item. */ readonly action?: string; readonly item?: HubItemReferenceV2025R0; + /** + * The ID of the parent block the item was added to. */ + readonly parentId?: string; /** * The HTTP status code of the operation. */ readonly status?: number; @@ -40,6 +43,7 @@ export function serializeHubItemOperationResultV2025R0( val.item == void 0 ? val.item : serializeHubItemReferenceV2025R0(val.item), + ['parent_id']: val.parentId, ['status']: val.status, ['error']: val.error, }; @@ -61,6 +65,14 @@ export function deserializeHubItemOperationResultV2025R0( const action: undefined | string = val.action == void 0 ? void 0 : val.action; const item: undefined | HubItemReferenceV2025R0 = val.item == void 0 ? void 0 : deserializeHubItemReferenceV2025R0(val.item); + if (!(val.parent_id == void 0) && !sdIsString(val.parent_id)) { + throw new BoxSdkError({ + message: + 'Expecting string for "parent_id" of type "HubItemOperationResultV2025R0"', + }); + } + const parentId: undefined | string = + val.parent_id == void 0 ? void 0 : val.parent_id; if (!(val.status == void 0) && !sdIsNumber(val.status)) { throw new BoxSdkError({ message: @@ -78,6 +90,7 @@ export function deserializeHubItemOperationResultV2025R0( return { action: action, item: item, + parentId: parentId, status: status, error: error, } satisfies HubItemOperationResultV2025R0;