diff --git a/.codegen.json b/.codegen.json index 82042187..3ab2414b 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "5604447", "specHash": "d7dfe68", "version": "1.8.0" } +{ "engineHash": "5604447", "specHash": "b2a3e3b", "version": "1.8.0" } diff --git a/package-lock.json b/package-lock.json index e1053de0..8c42494b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1445,12 +1445,9 @@ "dev": true }, "node_modules/agent-base": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.1.tgz", - "integrity": "sha512-H0TSyFNDMomMNJQBn8wFV5YC/2eJ+VXECwOadZJT554xP6cODZHPX3H9QMQECxvrgiSOP1pHjy1sMWQVYJOUOA==", - "dependencies": { - "debug": "^4.3.4" - }, + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.3.tgz", + "integrity": "sha512-jRR5wdylq8CkOe6hei19GGZnxM6rBGwFl3Bg0YItGDimvjGtAvdZk4Pu6Cl4u4Igsws4a1fd1Vq3ezrhn4KmFw==", "engines": { "node": ">= 14" } @@ -2469,11 +2466,11 @@ } }, "node_modules/https-proxy-agent": { - "version": "7.0.5", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.5.tgz", - "integrity": "sha512-1e4Wqeblerz+tMKPIq2EMGiiWW1dIjZOksyHWSUm1rmuvw/how9hBHZ38lAGj5ID4Ik6EdkOw7NmWPy6LAwalw==", + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz", + "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==", "dependencies": { - "agent-base": "^7.0.2", + "agent-base": "^7.1.2", "debug": "4" }, "engines": { @@ -3816,18 +3813,18 @@ } }, "node_modules/pac-proxy-agent": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/pac-proxy-agent/-/pac-proxy-agent-7.0.2.tgz", - "integrity": "sha512-BFi3vZnO9X5Qt6NRz7ZOaPja3ic0PhlsmCRYLOpN11+mWBCR6XJDqW5RF3j8jm4WGGQZtBA+bTfxYzeKW73eHg==", + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/pac-proxy-agent/-/pac-proxy-agent-7.1.0.tgz", + "integrity": "sha512-Z5FnLVVZSnX7WjBg0mhDtydeRZ1xMcATZThjySQUHqr+0ksP8kqaw23fNKkaaN/Z8gwLUs/W7xdl0I75eP2Xyw==", "dependencies": { "@tootallnate/quickjs-emscripten": "^0.23.0", - "agent-base": "^7.0.2", + "agent-base": "^7.1.2", "debug": "^4.3.4", "get-uri": "^6.0.1", "http-proxy-agent": "^7.0.0", - "https-proxy-agent": "^7.0.5", + "https-proxy-agent": "^7.0.6", "pac-resolver": "^7.0.1", - "socks-proxy-agent": "^8.0.4" + "socks-proxy-agent": "^8.0.5" }, "engines": { "node": ">= 14" @@ -3975,18 +3972,18 @@ } }, "node_modules/proxy-agent": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/proxy-agent/-/proxy-agent-6.4.0.tgz", - "integrity": "sha512-u0piLU+nCOHMgGjRbimiXmA9kM/L9EHh3zL81xCdp7m+Y2pHIsnmbdDoEDoAz5geaonNR6q6+yOPQs6n4T6sBQ==", + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/proxy-agent/-/proxy-agent-6.5.0.tgz", + "integrity": "sha512-TmatMXdr2KlRiA2CyDu8GqR8EjahTG3aY3nXjdzFyoZbmB8hrBsTyMezhULIXKnC0jpfjlmiZ3+EaCzoInSu/A==", "dependencies": { - "agent-base": "^7.0.2", + "agent-base": "^7.1.2", "debug": "^4.3.4", "http-proxy-agent": "^7.0.1", - "https-proxy-agent": "^7.0.3", + "https-proxy-agent": "^7.0.6", "lru-cache": "^7.14.1", - "pac-proxy-agent": "^7.0.1", + "pac-proxy-agent": "^7.1.0", "proxy-from-env": "^1.1.0", - "socks-proxy-agent": "^8.0.2" + "socks-proxy-agent": "^8.0.5" }, "engines": { "node": ">= 14" @@ -4195,11 +4192,11 @@ } }, "node_modules/socks-proxy-agent": { - "version": "8.0.4", - "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-8.0.4.tgz", - "integrity": "sha512-GNAq/eg8Udq2x0eNiFkr9gRg5bA7PXEWagQdeRX4cPSG+X/8V38v637gim9bjFptMk1QWsCTr0ttrJEiXbNnRw==", + "version": "8.0.5", + "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-8.0.5.tgz", + "integrity": "sha512-HehCEsotFqbPW9sJ8WVYB6UbmIMv7kUUORIF2Nncq4VQvBfNBLibW9YZR5dlYCSUhwcD628pRllm7n+E+YTzJw==", "dependencies": { - "agent-base": "^7.1.1", + "agent-base": "^7.1.2", "debug": "^4.3.4", "socks": "^2.8.3" }, diff --git a/src/managers/files.generated.ts b/src/managers/files.generated.ts index 79cb0fcf..4d4e33da 100644 --- a/src/managers/files.generated.ts +++ b/src/managers/files.generated.ts @@ -355,6 +355,9 @@ export interface UpdateFileByIdRequestBodyParentField { /** * The ID of parent item */ readonly id?: string; + /** + * The input for `{user_id}` is optional. Moving to non-root folder is not allowed when `{user_id}` is present. Parent folder id should be zero when `{user_id}` is provided. */ + readonly userId?: string; readonly rawData?: SerializedData; } export type UpdateFileByIdRequestBodySharedLinkAccessField = @@ -1167,7 +1170,7 @@ export interface FilesManagerInput { export function serializeUpdateFileByIdRequestBodyParentField( val: UpdateFileByIdRequestBodyParentField, ): SerializedData { - return { ['id']: val.id }; + return { ['id']: val.id, ['user_id']: val.userId }; } export function deserializeUpdateFileByIdRequestBodyParentField( val: SerializedData, @@ -1184,7 +1187,18 @@ export function deserializeUpdateFileByIdRequestBodyParentField( }); } const id: undefined | string = val.id == void 0 ? void 0 : val.id; - return { id: id } satisfies UpdateFileByIdRequestBodyParentField; + if (!(val.user_id == void 0) && !sdIsString(val.user_id)) { + throw new BoxSdkError({ + message: + 'Expecting string for "user_id" of type "UpdateFileByIdRequestBodyParentField"', + }); + } + const userId: undefined | string = + val.user_id == void 0 ? void 0 : val.user_id; + return { + id: id, + userId: userId, + } satisfies UpdateFileByIdRequestBodyParentField; } export function serializeUpdateFileByIdRequestBodySharedLinkAccessField( val: UpdateFileByIdRequestBodySharedLinkAccessField, diff --git a/src/managers/folders.generated.ts b/src/managers/folders.generated.ts index 65d91927..1442f8d4 100644 --- a/src/managers/folders.generated.ts +++ b/src/managers/folders.generated.ts @@ -375,6 +375,9 @@ export interface UpdateFolderByIdRequestBodyParentField { /** * The ID of the new parent folder */ readonly id?: string; + /** + * The input for `{user_id}` is optional. Moving to non-root folder is not allowed when `{user_id}` is present. Parent folder id should be zero when `{user_id}` is provided. */ + readonly userId?: string; readonly rawData?: SerializedData; } export type UpdateFolderByIdRequestBodySharedLinkAccessField = @@ -1402,7 +1405,7 @@ export function deserializeUpdateFolderByIdRequestBodySyncStateField( export function serializeUpdateFolderByIdRequestBodyParentField( val: UpdateFolderByIdRequestBodyParentField, ): SerializedData { - return { ['id']: val.id }; + return { ['id']: val.id, ['user_id']: val.userId }; } export function deserializeUpdateFolderByIdRequestBodyParentField( val: SerializedData, @@ -1419,7 +1422,18 @@ export function deserializeUpdateFolderByIdRequestBodyParentField( }); } const id: undefined | string = val.id == void 0 ? void 0 : val.id; - return { id: id } satisfies UpdateFolderByIdRequestBodyParentField; + if (!(val.user_id == void 0) && !sdIsString(val.user_id)) { + throw new BoxSdkError({ + message: + 'Expecting string for "user_id" of type "UpdateFolderByIdRequestBodyParentField"', + }); + } + const userId: undefined | string = + val.user_id == void 0 ? void 0 : val.user_id; + return { + id: id, + userId: userId, + } satisfies UpdateFolderByIdRequestBodyParentField; } export function serializeUpdateFolderByIdRequestBodySharedLinkAccessField( val: UpdateFolderByIdRequestBodySharedLinkAccessField, diff --git a/src/managers/webLinks.generated.ts b/src/managers/webLinks.generated.ts index 89a28b25..ce6c4eb6 100644 --- a/src/managers/webLinks.generated.ts +++ b/src/managers/webLinks.generated.ts @@ -219,6 +219,9 @@ export interface UpdateWebLinkByIdRequestBodyParentField { /** * The ID of parent item */ readonly id?: string; + /** + * The input for `{user_id}` is optional. Moving to non-root folder is not allowed when `{user_id}` is present. Parent folder id should be zero when `{user_id}` is provided. */ + readonly userId?: string; readonly rawData?: SerializedData; } export type UpdateWebLinkByIdRequestBodySharedLinkAccessField = @@ -611,7 +614,7 @@ export function deserializeCreateWebLinkRequestBody( export function serializeUpdateWebLinkByIdRequestBodyParentField( val: UpdateWebLinkByIdRequestBodyParentField, ): SerializedData { - return { ['id']: val.id }; + return { ['id']: val.id, ['user_id']: val.userId }; } export function deserializeUpdateWebLinkByIdRequestBodyParentField( val: SerializedData, @@ -628,7 +631,18 @@ export function deserializeUpdateWebLinkByIdRequestBodyParentField( }); } const id: undefined | string = val.id == void 0 ? void 0 : val.id; - return { id: id } satisfies UpdateWebLinkByIdRequestBodyParentField; + if (!(val.user_id == void 0) && !sdIsString(val.user_id)) { + throw new BoxSdkError({ + message: + 'Expecting string for "user_id" of type "UpdateWebLinkByIdRequestBodyParentField"', + }); + } + const userId: undefined | string = + val.user_id == void 0 ? void 0 : val.user_id; + return { + id: id, + userId: userId, + } satisfies UpdateWebLinkByIdRequestBodyParentField; } export function serializeUpdateWebLinkByIdRequestBodySharedLinkAccessField( val: UpdateWebLinkByIdRequestBodySharedLinkAccessField,