From 249dd83ed583cf3686df58ab7d7533aed9a2cfdb Mon Sep 17 00:00:00 2001 From: box-sdk-build Date: Fri, 18 Oct 2024 09:46:23 -0700 Subject: [PATCH 1/8] feat: Support Try, Throw tags and some build-in functions in Java (box/box-codegen#579) --- .codegen.json | 2 +- package-lock.json | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.codegen.json b/.codegen.json index f9d7bd78..89ca8986 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "83d735e", "specHash": "f0c2ce4", "version": "1.7.0" } +{ "engineHash": "2443714", "specHash": "f0c2ce4", "version": "1.7.0" } diff --git a/package-lock.json b/package-lock.json index a1a56237..917a4324 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2141,9 +2141,9 @@ } }, "node_modules/electron-to-chromium": { - "version": "1.5.40", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.40.tgz", - "integrity": "sha512-LYm78o6if4zTasnYclgQzxEcgMoIcybWOhkATWepN95uwVVWV0/IW10v+2sIeHE+bIYWipLneTftVyQm45UY7g==", + "version": "1.5.41", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.41.tgz", + "integrity": "sha512-dfdv/2xNjX0P8Vzme4cfzHqnPm5xsZXwsolTYr0eyW18IUmNyG08vL+fttvinTfhKfIKdRoqkDIC9e9iWQCNYQ==", "dev": true }, "node_modules/emittery": { From 8959801b49d81ccbd5e7a578b69a6320a7702ab0 Mon Sep 17 00:00:00 2001 From: box-sdk-build Date: Mon, 21 Oct 2024 12:39:33 -0700 Subject: [PATCH 2/8] feat: Modify schema for teams for integration mapping api (box/box-openapi#463) --- .codegen.json | 2 +- package-lock.json | 12 ++--- src/schemas/integrationMapping.generated.ts | 58 ++++++++++----------- 3 files changed, 36 insertions(+), 36 deletions(-) diff --git a/.codegen.json b/.codegen.json index 89ca8986..4d9e8916 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "2443714", "specHash": "f0c2ce4", "version": "1.7.0" } +{ "engineHash": "2443714", "specHash": "efab356", "version": "1.7.0" } diff --git a/package-lock.json b/package-lock.json index 917a4324..f4bc817a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1438,9 +1438,9 @@ } }, "node_modules/@types/node": { - "version": "22.7.6", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.7.6.tgz", - "integrity": "sha512-/d7Rnj0/ExXDMcioS78/kf1lMzYk4BZV8MZGTBKzTGZ6/406ukkbYlIsZmMPhcR5KlkunDHQLrtAVmSq7r+mSw==", + "version": "22.7.7", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.7.7.tgz", + "integrity": "sha512-SRxCrrg9CL/y54aiMCG3edPKdprgMVGDXjA3gB8UmmBW5TcXzRUYAh8EWzTnSJFAd1rgImPELza+A3bJ+qxz8Q==", "dev": true, "dependencies": { "undici-types": "~6.19.2" @@ -3478,9 +3478,9 @@ } }, "node_modules/jose": { - "version": "5.9.4", - "resolved": "https://registry.npmjs.org/jose/-/jose-5.9.4.tgz", - "integrity": "sha512-WBBl6au1qg6OHj67yCffCgFR3BADJBXN8MdRvCgJDuMv3driV2nHr7jdGvaKX9IolosAsn+M0XRArqLXUhyJHQ==", + "version": "5.9.6", + "resolved": "https://registry.npmjs.org/jose/-/jose-5.9.6.tgz", + "integrity": "sha512-AMlnetc9+CV9asI19zHmrgS/WYsWUwCn2R7RzlbJWD7F9eWYUTGyBmU9o6PxngtLGOiDGPRu+Uc4fhKzbpteZQ==", "funding": { "url": "https://github.com/sponsors/panva" } diff --git a/src/schemas/integrationMapping.generated.ts b/src/schemas/integrationMapping.generated.ts index aecfcf7a..7d9c7422 100644 --- a/src/schemas/integrationMapping.generated.ts +++ b/src/schemas/integrationMapping.generated.ts @@ -2,22 +2,22 @@ import { serializeIntegrationMappingBaseTypeField } from './integrationMappingBa import { deserializeIntegrationMappingBaseTypeField } from './integrationMappingBase.generated.js'; import { serializeIntegrationMappingBase } from './integrationMappingBase.generated.js'; import { deserializeIntegrationMappingBase } from './integrationMappingBase.generated.js'; -import { serializeIntegrationMappingPartnerItemSlackUnion } from './integrationMappingPartnerItemSlackUnion.generated.js'; -import { deserializeIntegrationMappingPartnerItemSlackUnion } from './integrationMappingPartnerItemSlackUnion.generated.js'; -import { serializeFolderMini } from './folderMini.generated.js'; -import { deserializeFolderMini } from './folderMini.generated.js'; import { serializeIntegrationMappingSlackOptions } from './integrationMappingSlackOptions.generated.js'; import { deserializeIntegrationMappingSlackOptions } from './integrationMappingSlackOptions.generated.js'; import { serializeUserIntegrationMappings } from './userIntegrationMappings.generated.js'; import { deserializeUserIntegrationMappings } from './userIntegrationMappings.generated.js'; +import { serializeIntegrationMappingPartnerItemSlackUnion } from './integrationMappingPartnerItemSlackUnion.generated.js'; +import { deserializeIntegrationMappingPartnerItemSlackUnion } from './integrationMappingPartnerItemSlackUnion.generated.js'; +import { serializeFolderMini } from './folderMini.generated.js'; +import { deserializeFolderMini } from './folderMini.generated.js'; import { serializeDateTime } from '../internal/utils.js'; import { deserializeDateTime } from '../internal/utils.js'; import { IntegrationMappingBaseTypeField } from './integrationMappingBase.generated.js'; import { IntegrationMappingBase } from './integrationMappingBase.generated.js'; -import { IntegrationMappingPartnerItemSlackUnion } from './integrationMappingPartnerItemSlackUnion.generated.js'; -import { FolderMini } from './folderMini.generated.js'; import { IntegrationMappingSlackOptions } from './integrationMappingSlackOptions.generated.js'; import { UserIntegrationMappings } from './userIntegrationMappings.generated.js'; +import { IntegrationMappingPartnerItemSlackUnion } from './integrationMappingPartnerItemSlackUnion.generated.js'; +import { FolderMini } from './folderMini.generated.js'; import { DateTime } from '../internal/utils.js'; import { BoxSdkError } from '../box/errors.js'; import { SerializedData } from '../serialization/json.js'; @@ -30,12 +30,12 @@ import { sdIsMap } from '../serialization/json.js'; export type IntegrationMappingIntegrationTypeField = 'slack'; export class IntegrationMapping extends IntegrationMappingBase { readonly integrationType?: IntegrationMappingIntegrationTypeField; - readonly partnerItem!: IntegrationMappingPartnerItemSlackUnion; - readonly boxItem!: FolderMini; readonly isManuallyCreated?: boolean; readonly options?: IntegrationMappingSlackOptions; readonly createdBy?: UserIntegrationMappings; readonly modifiedBy?: UserIntegrationMappings; + readonly partnerItem!: IntegrationMappingPartnerItemSlackUnion; + readonly boxItem!: FolderMini; readonly createdAt?: DateTime; readonly modifiedAt?: DateTime; constructor(fields: IntegrationMapping) { @@ -75,10 +75,6 @@ export function serializeIntegrationMapping( : serializeIntegrationMappingIntegrationTypeField( val.integrationType ), - ['partner_item']: serializeIntegrationMappingPartnerItemSlackUnion( - val.partnerItem - ), - ['box_item']: serializeFolderMini(val.boxItem), ['is_manually_created']: val.isManuallyCreated == void 0 ? void 0 : val.isManuallyCreated, ['options']: @@ -93,6 +89,10 @@ export function serializeIntegrationMapping( val.modifiedBy == void 0 ? void 0 : serializeUserIntegrationMappings(val.modifiedBy), + ['partner_item']: serializeIntegrationMappingPartnerItemSlackUnion( + val.partnerItem + ), + ['box_item']: serializeFolderMini(val.boxItem), ['created_at']: val.createdAt == void 0 ? void 0 : serializeDateTime(val.createdAt), ['modified_at']: @@ -112,21 +112,6 @@ export function deserializeIntegrationMapping( val.integration_type == void 0 ? void 0 : deserializeIntegrationMappingIntegrationTypeField(val.integration_type); - if (val.partner_item == void 0) { - throw new BoxSdkError({ - message: - 'Expecting "partner_item" of type "IntegrationMapping" to be defined', - }); - } - const partnerItem: IntegrationMappingPartnerItemSlackUnion = - deserializeIntegrationMappingPartnerItemSlackUnion(val.partner_item); - if (val.box_item == void 0) { - throw new BoxSdkError({ - message: - 'Expecting "box_item" of type "IntegrationMapping" to be defined', - }); - } - const boxItem: FolderMini = deserializeFolderMini(val.box_item); if ( !(val.is_manually_created == void 0) && !sdIsBoolean(val.is_manually_created) @@ -150,6 +135,21 @@ export function deserializeIntegrationMapping( val.modified_by == void 0 ? void 0 : deserializeUserIntegrationMappings(val.modified_by); + if (val.partner_item == void 0) { + throw new BoxSdkError({ + message: + 'Expecting "partner_item" of type "IntegrationMapping" to be defined', + }); + } + const partnerItem: IntegrationMappingPartnerItemSlackUnion = + deserializeIntegrationMappingPartnerItemSlackUnion(val.partner_item); + if (val.box_item == void 0) { + throw new BoxSdkError({ + message: + 'Expecting "box_item" of type "IntegrationMapping" to be defined', + }); + } + const boxItem: FolderMini = deserializeFolderMini(val.box_item); if (!(val.created_at == void 0) && !sdIsString(val.created_at)) { throw new BoxSdkError({ message: 'Expecting string for "created_at" of type "IntegrationMapping"', @@ -185,12 +185,12 @@ export function deserializeIntegrationMapping( deserializeIntegrationMappingBaseTypeField(val.type); return { integrationType: integrationType, - partnerItem: partnerItem, - boxItem: boxItem, isManuallyCreated: isManuallyCreated, options: options, createdBy: createdBy, modifiedBy: modifiedBy, + partnerItem: partnerItem, + boxItem: boxItem, createdAt: createdAt, modifiedAt: modifiedAt, id: id, From 1f05906ff02bc794c500ac406f34f6abfd38b283 Mon Sep 17 00:00:00 2001 From: box-sdk-build Date: Mon, 21 Oct 2024 13:11:01 -0700 Subject: [PATCH 3/8] chore: Update .codegen.json with commit hash of codegen and openapi spec --- .codegen.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.codegen.json b/.codegen.json index 4d9e8916..1059d404 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "2443714", "specHash": "efab356", "version": "1.7.0" } +{ "engineHash": "2443714", "specHash": "9f75129", "version": "1.7.0" } From 5d879fe380b97b7a195b2ebae0a3230113d6fe1d Mon Sep 17 00:00:00 2001 From: box-sdk-build Date: Tue, 22 Oct 2024 06:39:29 -0700 Subject: [PATCH 4/8] fix: update client error schema to support schema errors (box/box-openapi#467) --- .codegen.json | 2 +- package-lock.json | 24 ++++++++++++------------ src/schemas/clientError.generated.ts | 15 ++------------- 3 files changed, 15 insertions(+), 26 deletions(-) diff --git a/.codegen.json b/.codegen.json index 1059d404..c67c6fe7 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "2443714", "specHash": "9f75129", "version": "1.7.0" } +{ "engineHash": "2443714", "specHash": "abd6037", "version": "1.7.0" } diff --git a/package-lock.json b/package-lock.json index f4bc817a..589637ef 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1438,9 +1438,9 @@ } }, "node_modules/@types/node": { - "version": "22.7.7", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.7.7.tgz", - "integrity": "sha512-SRxCrrg9CL/y54aiMCG3edPKdprgMVGDXjA3gB8UmmBW5TcXzRUYAh8EWzTnSJFAd1rgImPELza+A3bJ+qxz8Q==", + "version": "22.7.8", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.7.8.tgz", + "integrity": "sha512-a922jJy31vqR5sk+kAdIENJjHblqcZ4RmERviFsER4WJcEONqxKcjNOlk0q7OUfrF5sddT+vng070cdfMlrPLg==", "dev": true, "dependencies": { "undici-types": "~6.19.2" @@ -1762,9 +1762,9 @@ } }, "node_modules/browserslist": { - "version": "4.24.0", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.24.0.tgz", - "integrity": "sha512-Rmb62sR1Zpjql25eSanFGEhAxcFwfA1K0GuQcLoaJBAcENegrQut3hYdhXFF1obQfiDyqIW/cLM5HSJ/9k884A==", + "version": "4.24.2", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.24.2.tgz", + "integrity": "sha512-ZIc+Q62revdMcqC6aChtW4jz3My3klmCO1fEmINZY/8J3EpBg5/A/D0AKmBveUh6pgoeycoMkVMko84tuYS+Gg==", "dev": true, "funding": [ { @@ -1781,10 +1781,10 @@ } ], "dependencies": { - "caniuse-lite": "^1.0.30001663", - "electron-to-chromium": "^1.5.28", + "caniuse-lite": "^1.0.30001669", + "electron-to-chromium": "^1.5.41", "node-releases": "^2.0.18", - "update-browserslist-db": "^1.1.0" + "update-browserslist-db": "^1.1.1" }, "bin": { "browserslist": "cli.js" @@ -2141,9 +2141,9 @@ } }, "node_modules/electron-to-chromium": { - "version": "1.5.41", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.41.tgz", - "integrity": "sha512-dfdv/2xNjX0P8Vzme4cfzHqnPm5xsZXwsolTYr0eyW18IUmNyG08vL+fttvinTfhKfIKdRoqkDIC9e9iWQCNYQ==", + "version": "1.5.42", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.42.tgz", + "integrity": "sha512-gIfKavKDw1mhvic9nbzA5lZw8QSHpdMwLwXc0cWidQz9B15pDoDdDH4boIatuFfeoCatb3a/NGL6CYRVFxGZ9g==", "dev": true }, "node_modules/emittery": { diff --git a/src/schemas/clientError.generated.ts b/src/schemas/clientError.generated.ts index 2c301144..8fdb1038 100644 --- a/src/schemas/clientError.generated.ts +++ b/src/schemas/clientError.generated.ts @@ -26,9 +26,6 @@ export type ClientErrorCodeField = | 'item_name_invalid' | 'insufficient_scope'; export interface ClientErrorContextInfoField { - /** - * More details on the error. */ - readonly message?: string; readonly rawData?: SerializedData; } export interface ClientError { @@ -135,7 +132,7 @@ export function deserializeClientErrorCodeField( export function serializeClientErrorContextInfoField( val: ClientErrorContextInfoField ): SerializedData { - return { ['message']: val.message == void 0 ? void 0 : val.message }; + return {}; } export function deserializeClientErrorContextInfoField( val: SerializedData @@ -145,15 +142,7 @@ export function deserializeClientErrorContextInfoField( message: 'Expecting a map for "ClientErrorContextInfoField"', }); } - if (!(val.message == void 0) && !sdIsString(val.message)) { - throw new BoxSdkError({ - message: - 'Expecting string for "message" of type "ClientErrorContextInfoField"', - }); - } - const message: undefined | string = - val.message == void 0 ? void 0 : val.message; - return { message: message } satisfies ClientErrorContextInfoField; + return {} satisfies ClientErrorContextInfoField; } export function serializeClientError(val: ClientError): SerializedData { return { From 27fc24c8e3b64a02d8ef4fff3ee9a84f0657995c Mon Sep 17 00:00:00 2001 From: box-sdk-build Date: Tue, 22 Oct 2024 08:11:14 -0700 Subject: [PATCH 5/8] chore: Update .codegen.json with commit hash of codegen and openapi spec --- .codegen.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.codegen.json b/.codegen.json index c67c6fe7..87dbbcd6 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "2443714", "specHash": "abd6037", "version": "1.7.0" } +{ "engineHash": "11fbad9", "specHash": "abd6037", "version": "1.7.0" } From b9354e6f23598664dba64610ad9dbcc6071ffb5f Mon Sep 17 00:00:00 2001 From: box-sdk-build Date: Tue, 22 Oct 2024 16:08:51 -0700 Subject: [PATCH 6/8] docs: remove beta tag for AI GA (box/box-openapi#469) --- .codegen.json | 2 +- package-lock.json | 212 ++++++++++++++++++++++------------------------ 2 files changed, 102 insertions(+), 112 deletions(-) diff --git a/.codegen.json b/.codegen.json index 87dbbcd6..999b08fa 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "11fbad9", "specHash": "abd6037", "version": "1.7.0" } +{ "engineHash": "11fbad9", "specHash": "52996b6", "version": "1.7.0" } diff --git a/package-lock.json b/package-lock.json index 589637ef..1d9e8138 100644 --- a/package-lock.json +++ b/package-lock.json @@ -49,12 +49,12 @@ } }, "node_modules/@babel/code-frame": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.25.7.tgz", - "integrity": "sha512-0xZJFNE5XMpENsgfHYTw8FbX4kv53mFLn2i3XPoq69LyhYSCBJtitaHx9QnsVTrsogI4Z3+HtEfZ2/GFPOtf5g==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.25.9.tgz", + "integrity": "sha512-z88xeGxnzehn2sqZ8UdGQEvYErF1odv2CftxInpSYJt6uHuPe9YjahKZITGs3l5LeI9d2ROG+obuDAoSlqbNfQ==", "dev": true, "dependencies": { - "@babel/highlight": "^7.25.7", + "@babel/highlight": "^7.25.9", "picocolors": "^1.0.0" }, "engines": { @@ -62,30 +62,30 @@ } }, "node_modules/@babel/compat-data": { - "version": "7.25.8", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.25.8.tgz", - "integrity": "sha512-ZsysZyXY4Tlx+Q53XdnOFmqwfB9QDTHYxaZYajWRoBLuLEAwI2UIbtxOjWh/cFaa9IKUlcB+DDuoskLuKu56JA==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.25.9.tgz", + "integrity": "sha512-yD+hEuJ/+wAJ4Ox2/rpNv5HIuPG82x3ZlQvYVn8iYCprdxzE7P1udpGF1jyjQVBU4dgznN+k2h103vxZ7NdPyw==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/core": { - "version": "7.25.8", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.25.8.tgz", - "integrity": "sha512-Oixnb+DzmRT30qu9d3tJSQkxuygWm32DFykT4bRoORPa9hZ/L4KhVB/XiRm6KG+roIEM7DBQlmg27kw2HZkdZg==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.25.9.tgz", + "integrity": "sha512-WYvQviPw+Qyib0v92AwNIrdLISTp7RfDkM7bPqBvpbnhY4wq8HvHBZREVdYDXk98C8BkOIVnHAY3yvj7AVISxQ==", "dev": true, "dependencies": { "@ampproject/remapping": "^2.2.0", - "@babel/code-frame": "^7.25.7", - "@babel/generator": "^7.25.7", - "@babel/helper-compilation-targets": "^7.25.7", - "@babel/helper-module-transforms": "^7.25.7", - "@babel/helpers": "^7.25.7", - "@babel/parser": "^7.25.8", - "@babel/template": "^7.25.7", - "@babel/traverse": "^7.25.7", - "@babel/types": "^7.25.8", + "@babel/code-frame": "^7.25.9", + "@babel/generator": "^7.25.9", + "@babel/helper-compilation-targets": "^7.25.9", + "@babel/helper-module-transforms": "^7.25.9", + "@babel/helpers": "^7.25.9", + "@babel/parser": "^7.25.9", + "@babel/template": "^7.25.9", + "@babel/traverse": "^7.25.9", + "@babel/types": "^7.25.9", "convert-source-map": "^2.0.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", @@ -101,12 +101,12 @@ } }, "node_modules/@babel/generator": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.25.7.tgz", - "integrity": "sha512-5Dqpl5fyV9pIAD62yK9P7fcA768uVPUyrQmqpqstHWgMma4feF1x/oFysBCVZLY5wJ2GkMUCdsNDnGZrPoR6rA==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.25.9.tgz", + "integrity": "sha512-omlUGkr5EaoIJrhLf9CJ0TvjBRpd9+AXRG//0GEQ9THSo8wPiTlbpy1/Ow8ZTrbXpjd9FHXfbFQx32I04ht0FA==", "dev": true, "dependencies": { - "@babel/types": "^7.25.7", + "@babel/types": "^7.25.9", "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.25", "jsesc": "^3.0.2" @@ -116,13 +116,13 @@ } }, "node_modules/@babel/helper-compilation-targets": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.25.7.tgz", - "integrity": "sha512-DniTEax0sv6isaw6qSQSfV4gVRNtw2rte8HHM45t9ZR0xILaufBRNkpMifCRiAPyvL4ACD6v0gfCwCmtOQaV4A==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.25.9.tgz", + "integrity": "sha512-j9Db8Suy6yV/VHa4qzrj9yZfZxhLWQdVnRlXxmKLYlhWUVB1sB2G5sxuWYXk/whHD9iW76PmNzxZ4UCnTQTVEQ==", "dev": true, "dependencies": { - "@babel/compat-data": "^7.25.7", - "@babel/helper-validator-option": "^7.25.7", + "@babel/compat-data": "^7.25.9", + "@babel/helper-validator-option": "^7.25.9", "browserslist": "^4.24.0", "lru-cache": "^5.1.1", "semver": "^6.3.1" @@ -132,28 +132,28 @@ } }, "node_modules/@babel/helper-module-imports": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.25.7.tgz", - "integrity": "sha512-o0xCgpNmRohmnoWKQ0Ij8IdddjyBFE4T2kagL/x6M3+4zUgc+4qTOUBoNe4XxDskt1HPKO007ZPiMgLDq2s7Kw==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.25.9.tgz", + "integrity": "sha512-tnUA4RsrmflIM6W6RFTLFSXITtl0wKjgpnLgXyowocVPrbYrLUXSBXDgTs8BlbmIzIdlBySRQjINYs2BAkiLtw==", "dev": true, "dependencies": { - "@babel/traverse": "^7.25.7", - "@babel/types": "^7.25.7" + "@babel/traverse": "^7.25.9", + "@babel/types": "^7.25.9" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-module-transforms": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.25.7.tgz", - "integrity": "sha512-k/6f8dKG3yDz/qCwSM+RKovjMix563SLxQFo0UhRNo239SP6n9u5/eLtKD6EAjwta2JHJ49CsD8pms2HdNiMMQ==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.25.9.tgz", + "integrity": "sha512-TvLZY/F3+GvdRYFZFyxMvnsKi+4oJdgZzU3BoGN9Uc2d9C6zfNwJcKKhjqLAhK8i46mv93jsO74fDh3ih6rpHA==", "dev": true, "dependencies": { - "@babel/helper-module-imports": "^7.25.7", - "@babel/helper-simple-access": "^7.25.7", - "@babel/helper-validator-identifier": "^7.25.7", - "@babel/traverse": "^7.25.7" + "@babel/helper-module-imports": "^7.25.9", + "@babel/helper-simple-access": "^7.25.9", + "@babel/helper-validator-identifier": "^7.25.9", + "@babel/traverse": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -163,74 +163,74 @@ } }, "node_modules/@babel/helper-plugin-utils": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.25.7.tgz", - "integrity": "sha512-eaPZai0PiqCi09pPs3pAFfl/zYgGaE6IdXtYvmf0qlcDTd3WCtO7JWCcRd64e0EQrcYgiHibEZnOGsSY4QSgaw==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.25.9.tgz", + "integrity": "sha512-kSMlyUVdWe25rEsRGviIgOWnoT/nfABVWlqt9N19/dIPWViAOW2s9wznP5tURbs/IDuNk4gPy3YdYRgH3uxhBw==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-simple-access": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.25.7.tgz", - "integrity": "sha512-FPGAkJmyoChQeM+ruBGIDyrT2tKfZJO8NcxdC+CWNJi7N8/rZpSxK7yvBJ5O/nF1gfu5KzN7VKG3YVSLFfRSxQ==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.25.9.tgz", + "integrity": "sha512-c6WHXuiaRsJTyHYLJV75t9IqsmTbItYfdj99PnzYGQZkYKvan5/2jKJ7gu31J3/BJ/A18grImSPModuyG/Eo0Q==", "dev": true, "dependencies": { - "@babel/traverse": "^7.25.7", - "@babel/types": "^7.25.7" + "@babel/traverse": "^7.25.9", + "@babel/types": "^7.25.9" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-string-parser": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.25.7.tgz", - "integrity": "sha512-CbkjYdsJNHFk8uqpEkpCvRs3YRp9tY6FmFY7wLMSYuGYkrdUi7r2lc4/wqsvlHoMznX3WJ9IP8giGPq68T/Y6g==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.25.9.tgz", + "integrity": "sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-identifier": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.7.tgz", - "integrity": "sha512-AM6TzwYqGChO45oiuPqwL2t20/HdMC1rTPAesnBCgPCSF1x3oN9MVUwQV2iyz4xqWrctwK5RNC8LV22kaQCNYg==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.9.tgz", + "integrity": "sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-option": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.25.7.tgz", - "integrity": "sha512-ytbPLsm+GjArDYXJ8Ydr1c/KJuutjF2besPNbIZnZ6MKUxi/uTA22t2ymmA4WFjZFpjiAMO0xuuJPqK2nvDVfQ==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.25.9.tgz", + "integrity": "sha512-e/zv1co8pp55dNdEcCynfj9X7nyUKUXoUEwfXqaZt0omVOmDe9oOTdKStH4GmAw6zxMFs50ZayuMfHDKlO7Tfw==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helpers": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.25.7.tgz", - "integrity": "sha512-Sv6pASx7Esm38KQpF/U/OXLwPPrdGHNKoeblRxgZRLXnAtnkEe4ptJPDtAZM7fBLadbc1Q07kQpSiGQ0Jg6tRA==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.25.9.tgz", + "integrity": "sha512-oKWp3+usOJSzDZOucZUAMayhPz/xVjzymyDzUN8dk0Wd3RWMlGLXi07UCQ/CgQVb8LvXx3XBajJH4XGgkt7H7g==", "dev": true, "dependencies": { - "@babel/template": "^7.25.7", - "@babel/types": "^7.25.7" + "@babel/template": "^7.25.9", + "@babel/types": "^7.25.9" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/highlight": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.25.7.tgz", - "integrity": "sha512-iYyACpW3iW8Fw+ZybQK+drQre+ns/tKpXbNESfrhNnPLIklLbXr7MYJ6gPEd0iETGLOK+SxMjVvKb/ffmk+FEw==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.25.9.tgz", + "integrity": "sha512-llL88JShoCsth8fF8R4SJnIn+WLvR6ccFxu1H3FlMhDontdcmZWf2HgIZ7AIqV3Xcck1idlohrN4EUBQz6klbw==", "dev": true, "dependencies": { - "@babel/helper-validator-identifier": "^7.25.7", + "@babel/helper-validator-identifier": "^7.25.9", "chalk": "^2.4.2", "js-tokens": "^4.0.0", "picocolors": "^1.0.0" @@ -311,12 +311,12 @@ } }, "node_modules/@babel/parser": { - "version": "7.25.8", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.25.8.tgz", - "integrity": "sha512-HcttkxzdPucv3nNFmfOOMfFf64KgdJVqm1KaCm25dPGMLElo9nsLvXeJECQg8UzPuBGLyTSA0ZzqCtDSzKTEoQ==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.25.9.tgz", + "integrity": "sha512-aI3jjAAO1fh7vY/pBGsn1i9LDbRP43+asrRlkPuTXW5yHXtd1NgTEMudbBoDDxrf1daEEfPJqR+JBMakzrR4Dg==", "dev": true, "dependencies": { - "@babel/types": "^7.25.8" + "@babel/types": "^7.25.9" }, "bin": { "parser": "bin/babel-parser.js" @@ -377,12 +377,12 @@ } }, "node_modules/@babel/plugin-syntax-import-attributes": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.25.7.tgz", - "integrity": "sha512-AqVo+dguCgmpi/3mYBdu9lkngOBlQ2w2vnNpa6gfiCxQZLzV4ZbhsXitJ2Yblkoe1VQwtHSaNmIaGll/26YWRw==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.25.9.tgz", + "integrity": "sha512-u3EN9ub8LyYvgTnrgp8gboElouayiwPdnM7x5tcnW3iSt09/lQYPwMNK40I9IUxo7QOZhAsPHCmmuO7EPdruqg==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.25.7" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -416,12 +416,12 @@ } }, "node_modules/@babel/plugin-syntax-jsx": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.25.7.tgz", - "integrity": "sha512-ruZOnKO+ajVL/MVx+PwNBPOkrnXTXoWMtte1MBpegfCArhqOe3Bj52avVj1huLLxNKYKXYaSxZ2F+woK1ekXfw==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.25.9.tgz", + "integrity": "sha512-ld6oezHQMZsZfp6pWtbjaNDF2tiiCYYDqQszHt5VV437lewP9aSi2Of99CK0D0XB21k7FLgnLcmQKyKzynfeAA==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.25.7" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -533,12 +533,12 @@ } }, "node_modules/@babel/plugin-syntax-typescript": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.25.7.tgz", - "integrity": "sha512-rR+5FDjpCHqqZN2bzZm18bVYGaejGq5ZkpVCJLXor/+zlSrSoc4KWcHI0URVWjl/68Dyr1uwZUz/1njycEAv9g==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.25.9.tgz", + "integrity": "sha512-hjMgRy5hb8uJJjUcdWunWVcoi9bGpJp8p5Ol1229PoN6aytsLwNMgmdftO23wnCLMfVmTwZDWMPNq/D1SY60JQ==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.25.7" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -548,30 +548,30 @@ } }, "node_modules/@babel/template": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.25.7.tgz", - "integrity": "sha512-wRwtAgI3bAS+JGU2upWNL9lSlDcRCqD05BZ1n3X2ONLH1WilFP6O1otQjeMK/1g0pvYcXC7b/qVUB1keofjtZA==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.25.9.tgz", + "integrity": "sha512-9DGttpmPvIxBb/2uwpVo3dqJ+O6RooAFOS+lB+xDqoE2PVCE8nfoHMdZLpfCQRLwvohzXISPZcgxt80xLfsuwg==", "dev": true, "dependencies": { - "@babel/code-frame": "^7.25.7", - "@babel/parser": "^7.25.7", - "@babel/types": "^7.25.7" + "@babel/code-frame": "^7.25.9", + "@babel/parser": "^7.25.9", + "@babel/types": "^7.25.9" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/traverse": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.25.7.tgz", - "integrity": "sha512-jatJPT1Zjqvh/1FyJs6qAHL+Dzb7sTb+xr7Q+gM1b+1oBsMsQQ4FkVKb6dFlJvLlVssqkRzV05Jzervt9yhnzg==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.25.9.tgz", + "integrity": "sha512-ZCuvfwOwlz/bawvAuvcj8rrithP2/N55Tzz342AkTvq4qaWbGfmCk/tKhNaV2cthijKrPAA8SRJV5WWe7IBMJw==", "dev": true, "dependencies": { - "@babel/code-frame": "^7.25.7", - "@babel/generator": "^7.25.7", - "@babel/parser": "^7.25.7", - "@babel/template": "^7.25.7", - "@babel/types": "^7.25.7", + "@babel/code-frame": "^7.25.9", + "@babel/generator": "^7.25.9", + "@babel/parser": "^7.25.9", + "@babel/template": "^7.25.9", + "@babel/types": "^7.25.9", "debug": "^4.3.1", "globals": "^11.1.0" }, @@ -580,14 +580,13 @@ } }, "node_modules/@babel/types": { - "version": "7.25.8", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.25.8.tgz", - "integrity": "sha512-JWtuCu8VQsMladxVz/P4HzHUGCAwpuqacmowgXFs5XjxIgKuNjnLokQzuVjlTvIzODaDmpjT3oxcC48vyk9EWg==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.25.9.tgz", + "integrity": "sha512-OwS2CM5KocvQ/k7dFJa8i5bNGJP0hXWfVCfDkqRFP1IreH1JDC7wG6eCYCi0+McbfT8OR/kNqsI0UU0xP9H6PQ==", "dev": true, "dependencies": { - "@babel/helper-string-parser": "^7.25.7", - "@babel/helper-validator-identifier": "^7.25.7", - "to-fast-properties": "^2.0.0" + "@babel/helper-string-parser": "^7.25.9", + "@babel/helper-validator-identifier": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -4439,15 +4438,6 @@ "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", "dev": true }, - "node_modules/to-fast-properties": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", - "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", - "dev": true, - "engines": { - "node": ">=4" - } - }, "node_modules/to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", From 0c1a97ba2db80c33ac39db7b68a5ef39809bd291 Mon Sep 17 00:00:00 2001 From: box-sdk-build Date: Wed, 23 Oct 2024 03:09:29 -0700 Subject: [PATCH 7/8] feat: Support tests in Java (box/box-codegen#580) --- .codegen.json | 2 +- package-lock.json | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.codegen.json b/.codegen.json index 999b08fa..197b4315 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "11fbad9", "specHash": "52996b6", "version": "1.7.0" } +{ "engineHash": "c238685", "specHash": "52996b6", "version": "1.7.0" } diff --git a/package-lock.json b/package-lock.json index 1d9e8138..f45bbcbf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1427,9 +1427,9 @@ } }, "node_modules/@types/jest": { - "version": "29.5.13", - "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.5.13.tgz", - "integrity": "sha512-wd+MVEZCHt23V0/L642O5APvspWply/rGY5BcW4SUETo2UzPU3Z26qr8jC2qxpimI2jjx9h7+2cj2FwIr01bXg==", + "version": "29.5.14", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.5.14.tgz", + "integrity": "sha512-ZN+4sdnLUbo8EVvVc2ao0GFW6oVrQRPn4K2lglySj7APvSrgzxHiNNK99us4WDMi57xxA2yggblIAMNhXOotLQ==", "dev": true, "dependencies": { "expect": "^29.0.0", @@ -1437,9 +1437,9 @@ } }, "node_modules/@types/node": { - "version": "22.7.8", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.7.8.tgz", - "integrity": "sha512-a922jJy31vqR5sk+kAdIENJjHblqcZ4RmERviFsER4WJcEONqxKcjNOlk0q7OUfrF5sddT+vng070cdfMlrPLg==", + "version": "22.7.9", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.7.9.tgz", + "integrity": "sha512-jrTfRC7FM6nChvU7X2KqcrgquofrWLFDeYC1hKfwNWomVvrn7JIksqf344WN2X/y8xrgqBd2dJATZV4GbatBfg==", "dev": true, "dependencies": { "undici-types": "~6.19.2" @@ -2140,9 +2140,9 @@ } }, "node_modules/electron-to-chromium": { - "version": "1.5.42", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.42.tgz", - "integrity": "sha512-gIfKavKDw1mhvic9nbzA5lZw8QSHpdMwLwXc0cWidQz9B15pDoDdDH4boIatuFfeoCatb3a/NGL6CYRVFxGZ9g==", + "version": "1.5.43", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.43.tgz", + "integrity": "sha512-NxnmFBHDl5Sachd2P46O7UJiMaMHMLSofoIWVJq3mj8NJgG0umiSeljAVP9lGzjI0UDLJJ5jjoGjcrB8RSbjLQ==", "dev": true }, "node_modules/emittery": { From 8f835d1431f5c013b1f7f2bdfba27a50025a4e6a Mon Sep 17 00:00:00 2001 From: box-sdk-build Date: Wed, 23 Oct 2024 04:09:29 -0700 Subject: [PATCH 8/8] fix: fix additionalProperties (box/box-openapi#477) --- .codegen.json | 2 +- src/schemas/clientError.generated.ts | 57 ++++++++++++++++---------- src/schemas/conflictError.generated.ts | 27 +++++++++--- 3 files changed, 58 insertions(+), 28 deletions(-) diff --git a/.codegen.json b/.codegen.json index 197b4315..a82c08ba 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "c238685", "specHash": "52996b6", "version": "1.7.0" } +{ "engineHash": "c238685", "specHash": "e798cb1", "version": "1.7.0" } diff --git a/src/schemas/clientError.generated.ts b/src/schemas/clientError.generated.ts index 8fdb1038..689c88ed 100644 --- a/src/schemas/clientError.generated.ts +++ b/src/schemas/clientError.generated.ts @@ -25,9 +25,6 @@ export type ClientErrorCodeField = | 'unavailable' | 'item_name_invalid' | 'insufficient_scope'; -export interface ClientErrorContextInfoField { - readonly rawData?: SerializedData; -} export interface ClientError { /** * error */ @@ -45,7 +42,9 @@ export interface ClientError { * A free-form object that contains additional context * about the error. The possible fields are defined on * a per-endpoint basis. `message` is only one example. */ - readonly contextInfo?: ClientErrorContextInfoField; + readonly contextInfo?: { + readonly [key: string]: any; + }; /** * A URL that links to more information about why this error occurred. */ readonly helpUrl?: string; @@ -129,21 +128,6 @@ export function deserializeClientErrorCodeField( } throw new BoxSdkError({ message: "Can't deserialize ClientErrorCodeField" }); } -export function serializeClientErrorContextInfoField( - val: ClientErrorContextInfoField -): SerializedData { - return {}; -} -export function deserializeClientErrorContextInfoField( - val: SerializedData -): ClientErrorContextInfoField { - if (!sdIsMap(val)) { - throw new BoxSdkError({ - message: 'Expecting a map for "ClientErrorContextInfoField"', - }); - } - return {} satisfies ClientErrorContextInfoField; -} export function serializeClientError(val: ClientError): SerializedData { return { ['type']: @@ -155,7 +139,16 @@ export function serializeClientError(val: ClientError): SerializedData { ['context_info']: val.contextInfo == void 0 ? void 0 - : serializeClientErrorContextInfoField(val.contextInfo), + : (Object.fromEntries( + Object.entries(val.contextInfo).map(([k, v]: [string, any]) => [ + k, + (function (v: any): any { + return v; + })(v), + ]) + ) as { + readonly [key: string]: any; + }), ['help_url']: val.helpUrl == void 0 ? void 0 : val.helpUrl, ['request_id']: val.requestId == void 0 ? void 0 : val.requestId, }; @@ -181,10 +174,30 @@ export function deserializeClientError(val: SerializedData): ClientError { } const message: undefined | string = val.message == void 0 ? void 0 : val.message; - const contextInfo: undefined | ClientErrorContextInfoField = + if (!(val.context_info == void 0) && !sdIsMap(val.context_info)) { + throw new BoxSdkError({ + message: 'Expecting object for "context_info" of type "ClientError"', + }); + } + const contextInfo: + | undefined + | { + readonly [key: string]: any; + } = val.context_info == void 0 ? void 0 - : deserializeClientErrorContextInfoField(val.context_info); + : sdIsMap(val.context_info) + ? (Object.fromEntries( + Object.entries(val.context_info).map(([k, v]: [string, any]) => [ + k, + (function (v: any): any { + return v; + })(v), + ]) + ) as { + readonly [key: string]: any; + }) + : {}; if (!(val.help_url == void 0) && !sdIsString(val.help_url)) { throw new BoxSdkError({ message: 'Expecting string for "help_url" of type "ClientError"', diff --git a/src/schemas/conflictError.generated.ts b/src/schemas/conflictError.generated.ts index 2d62755d..c979b165 100644 --- a/src/schemas/conflictError.generated.ts +++ b/src/schemas/conflictError.generated.ts @@ -2,15 +2,12 @@ import { serializeClientErrorTypeField } from './clientError.generated.js'; import { deserializeClientErrorTypeField } from './clientError.generated.js'; import { serializeClientErrorCodeField } from './clientError.generated.js'; import { deserializeClientErrorCodeField } from './clientError.generated.js'; -import { serializeClientErrorContextInfoField } from './clientError.generated.js'; -import { deserializeClientErrorContextInfoField } from './clientError.generated.js'; import { serializeClientError } from './clientError.generated.js'; import { deserializeClientError } from './clientError.generated.js'; import { serializeFileConflict } from './fileConflict.generated.js'; import { deserializeFileConflict } from './fileConflict.generated.js'; import { ClientErrorTypeField } from './clientError.generated.js'; import { ClientErrorCodeField } from './clientError.generated.js'; -import { ClientErrorContextInfoField } from './clientError.generated.js'; import { ClientError } from './clientError.generated.js'; import { FileConflict } from './fileConflict.generated.js'; import { BoxSdkError } from '../box/errors.js'; @@ -92,10 +89,30 @@ export function deserializeConflictError(val: SerializedData): ConflictError { } const message: undefined | string = val.message == void 0 ? void 0 : val.message; - const contextInfo: undefined | ClientErrorContextInfoField = + if (!(val.context_info == void 0) && !sdIsMap(val.context_info)) { + throw new BoxSdkError({ + message: 'Expecting object for "context_info" of type "ConflictError"', + }); + } + const contextInfo: + | undefined + | { + readonly [key: string]: any; + } = val.context_info == void 0 ? void 0 - : deserializeClientErrorContextInfoField(val.context_info); + : sdIsMap(val.context_info) + ? (Object.fromEntries( + Object.entries(val.context_info).map(([k, v]: [string, any]) => [ + k, + (function (v: any): any { + return v; + })(v), + ]) + ) as { + readonly [key: string]: any; + }) + : {}; if (!(val.help_url == void 0) && !sdIsString(val.help_url)) { throw new BoxSdkError({ message: 'Expecting string for "help_url" of type "ConflictError"',