box-node-sdk 4.0.0 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -7
- package/lib/sdk-gen/box/errors.d.ts.map +1 -1
- package/lib/sdk-gen/box/errors.js +2 -0
- package/lib/sdk-gen/box/errors.js.map +1 -1
- package/lib/sdk-gen/client.d.ts +3 -1
- package/lib/sdk-gen/client.d.ts.map +1 -1
- package/lib/sdk-gen/client.js +5 -0
- package/lib/sdk-gen/client.js.map +1 -1
- package/lib/sdk-gen/managers/archives.d.ts +60 -1
- package/lib/sdk-gen/managers/archives.d.ts.map +1 -1
- package/lib/sdk-gen/managers/archives.js +120 -3
- package/lib/sdk-gen/managers/archives.js.map +1 -1
- package/lib/sdk-gen/managers/enterpriseConfigurations.d.ts +60 -0
- package/lib/sdk-gen/managers/enterpriseConfigurations.d.ts.map +1 -0
- package/lib/sdk-gen/managers/enterpriseConfigurations.js +95 -0
- package/lib/sdk-gen/managers/enterpriseConfigurations.js.map +1 -0
- package/lib/sdk-gen/managers/index.d.ts +1 -0
- package/lib/sdk-gen/managers/index.d.ts.map +1 -1
- package/lib/sdk-gen/managers/index.js +1 -0
- package/lib/sdk-gen/managers/index.js.map +1 -1
- package/lib/sdk-gen/managers/users.d.ts +5 -5
- package/lib/sdk-gen/managers/users.d.ts.map +1 -1
- package/lib/sdk-gen/managers/users.js +3 -3
- package/lib/sdk-gen/networking/retries.d.ts.map +1 -1
- package/lib/sdk-gen/networking/retries.js +3 -1
- package/lib/sdk-gen/networking/retries.js.map +1 -1
- package/lib/sdk-gen/networking/version.d.ts +1 -1
- package/lib/sdk-gen/networking/version.js +1 -1
- package/lib/sdk-gen/schemas/v2025R0/archiveV2025R0.d.ts +25 -2
- package/lib/sdk-gen/schemas/v2025R0/archiveV2025R0.d.ts.map +1 -1
- package/lib/sdk-gen/schemas/v2025R0/archiveV2025R0.js +72 -1
- package/lib/sdk-gen/schemas/v2025R0/archiveV2025R0.js.map +1 -1
- package/lib/sdk-gen/schemas/v2025R0/collaborationPermissionsV2025R0.d.ts +28 -0
- package/lib/sdk-gen/schemas/v2025R0/collaborationPermissionsV2025R0.d.ts.map +1 -0
- package/lib/sdk-gen/schemas/v2025R0/collaborationPermissionsV2025R0.js +94 -0
- package/lib/sdk-gen/schemas/v2025R0/collaborationPermissionsV2025R0.js.map +1 -0
- package/lib/sdk-gen/schemas/v2025R0/customSessionDurationGroupItemV2025R0.d.ts +13 -0
- package/lib/sdk-gen/schemas/v2025R0/customSessionDurationGroupItemV2025R0.d.ts.map +1 -0
- package/lib/sdk-gen/schemas/v2025R0/customSessionDurationGroupItemV2025R0.js +31 -0
- package/lib/sdk-gen/schemas/v2025R0/customSessionDurationGroupItemV2025R0.js.map +1 -0
- package/lib/sdk-gen/schemas/v2025R0/enterpriseConfigurationContentAndSharingV2025R0.d.ts +96 -0
- package/lib/sdk-gen/schemas/v2025R0/enterpriseConfigurationContentAndSharingV2025R0.d.ts.map +1 -0
- package/lib/sdk-gen/schemas/v2025R0/enterpriseConfigurationContentAndSharingV2025R0.js +640 -0
- package/lib/sdk-gen/schemas/v2025R0/enterpriseConfigurationContentAndSharingV2025R0.js.map +1 -0
- package/lib/sdk-gen/schemas/v2025R0/enterpriseConfigurationItemBooleanV2025R0.d.ts +10 -0
- package/lib/sdk-gen/schemas/v2025R0/enterpriseConfigurationItemBooleanV2025R0.d.ts.map +1 -0
- package/lib/sdk-gen/schemas/v2025R0/enterpriseConfigurationItemBooleanV2025R0.js +41 -0
- package/lib/sdk-gen/schemas/v2025R0/enterpriseConfigurationItemBooleanV2025R0.js.map +1 -0
- package/lib/sdk-gen/schemas/v2025R0/enterpriseConfigurationItemIntegerV2025R0.d.ts +10 -0
- package/lib/sdk-gen/schemas/v2025R0/enterpriseConfigurationItemIntegerV2025R0.d.ts.map +1 -0
- package/lib/sdk-gen/schemas/v2025R0/enterpriseConfigurationItemIntegerV2025R0.js +42 -0
- package/lib/sdk-gen/schemas/v2025R0/enterpriseConfigurationItemIntegerV2025R0.js.map +1 -0
- package/lib/sdk-gen/schemas/v2025R0/enterpriseConfigurationItemStringV2025R0.d.ts +10 -0
- package/lib/sdk-gen/schemas/v2025R0/enterpriseConfigurationItemStringV2025R0.d.ts.map +1 -0
- package/lib/sdk-gen/schemas/v2025R0/enterpriseConfigurationItemStringV2025R0.js +42 -0
- package/lib/sdk-gen/schemas/v2025R0/enterpriseConfigurationItemStringV2025R0.js.map +1 -0
- package/lib/sdk-gen/schemas/v2025R0/enterpriseConfigurationItemV2025R0.d.ts +10 -0
- package/lib/sdk-gen/schemas/v2025R0/enterpriseConfigurationItemV2025R0.d.ts.map +1 -0
- package/lib/sdk-gen/schemas/v2025R0/enterpriseConfigurationItemV2025R0.js +25 -0
- package/lib/sdk-gen/schemas/v2025R0/enterpriseConfigurationItemV2025R0.js.map +1 -0
- package/lib/sdk-gen/schemas/v2025R0/enterpriseConfigurationSecurityV2025R0.d.ts +83 -0
- package/lib/sdk-gen/schemas/v2025R0/enterpriseConfigurationSecurityV2025R0.d.ts.map +1 -0
- package/lib/sdk-gen/schemas/v2025R0/enterpriseConfigurationSecurityV2025R0.js +472 -0
- package/lib/sdk-gen/schemas/v2025R0/enterpriseConfigurationSecurityV2025R0.js.map +1 -0
- package/lib/sdk-gen/schemas/v2025R0/enterpriseConfigurationShieldV2025R0.d.ts +11 -0
- package/lib/sdk-gen/schemas/v2025R0/enterpriseConfigurationShieldV2025R0.d.ts.map +1 -0
- package/lib/sdk-gen/schemas/v2025R0/enterpriseConfigurationShieldV2025R0.js +41 -0
- package/lib/sdk-gen/schemas/v2025R0/enterpriseConfigurationShieldV2025R0.js.map +1 -0
- package/lib/sdk-gen/schemas/v2025R0/enterpriseConfigurationUserSettingsV2025R0.d.ts +37 -0
- package/lib/sdk-gen/schemas/v2025R0/enterpriseConfigurationUserSettingsV2025R0.d.ts.map +1 -0
- package/lib/sdk-gen/schemas/v2025R0/enterpriseConfigurationUserSettingsV2025R0.js +224 -0
- package/lib/sdk-gen/schemas/v2025R0/enterpriseConfigurationUserSettingsV2025R0.js.map +1 -0
- package/lib/sdk-gen/schemas/v2025R0/enterpriseConfigurationV2025R0.d.ts +24 -0
- package/lib/sdk-gen/schemas/v2025R0/enterpriseConfigurationV2025R0.d.ts.map +1 -0
- package/lib/sdk-gen/schemas/v2025R0/enterpriseConfigurationV2025R0.js +101 -0
- package/lib/sdk-gen/schemas/v2025R0/enterpriseConfigurationV2025R0.js.map +1 -0
- package/lib/sdk-gen/schemas/v2025R0/enterpriseFeatureSettingV2025R0.d.ts +37 -0
- package/lib/sdk-gen/schemas/v2025R0/enterpriseFeatureSettingV2025R0.d.ts.map +1 -0
- package/lib/sdk-gen/schemas/v2025R0/enterpriseFeatureSettingV2025R0.js +119 -0
- package/lib/sdk-gen/schemas/v2025R0/enterpriseFeatureSettingV2025R0.js.map +1 -0
- package/lib/sdk-gen/schemas/v2025R0/enterpriseFeatureSettingsItemV2025R0.d.ts +9 -0
- package/lib/sdk-gen/schemas/v2025R0/enterpriseFeatureSettingsItemV2025R0.d.ts.map +1 -0
- package/lib/sdk-gen/schemas/v2025R0/enterpriseFeatureSettingsItemV2025R0.js +44 -0
- package/lib/sdk-gen/schemas/v2025R0/enterpriseFeatureSettingsItemV2025R0.js.map +1 -0
- package/lib/sdk-gen/schemas/v2025R0/externalCollabSecuritySettingsV2025R0.d.ts +32 -0
- package/lib/sdk-gen/schemas/v2025R0/externalCollabSecuritySettingsV2025R0.d.ts.map +1 -0
- package/lib/sdk-gen/schemas/v2025R0/externalCollabSecuritySettingsV2025R0.js +151 -0
- package/lib/sdk-gen/schemas/v2025R0/externalCollabSecuritySettingsV2025R0.js.map +1 -0
- package/lib/sdk-gen/schemas/v2025R0/hubItemReferenceV2025R0.js +2 -2
- package/lib/sdk-gen/schemas/v2025R0/hubItemReferenceV2025R0.js.map +1 -1
- package/lib/sdk-gen/schemas/v2025R0/index.d.ts +20 -0
- package/lib/sdk-gen/schemas/v2025R0/index.d.ts.map +1 -1
- package/lib/sdk-gen/schemas/v2025R0/index.js +20 -0
- package/lib/sdk-gen/schemas/v2025R0/index.js.map +1 -1
- package/lib/sdk-gen/schemas/v2025R0/keysafeSettingsV2025R0.d.ts +28 -0
- package/lib/sdk-gen/schemas/v2025R0/keysafeSettingsV2025R0.d.ts.map +1 -0
- package/lib/sdk-gen/schemas/v2025R0/keysafeSettingsV2025R0.js +78 -0
- package/lib/sdk-gen/schemas/v2025R0/keysafeSettingsV2025R0.js.map +1 -0
- package/lib/sdk-gen/schemas/v2025R0/listUserV2025R0.d.ts +16 -0
- package/lib/sdk-gen/schemas/v2025R0/listUserV2025R0.d.ts.map +1 -0
- package/lib/sdk-gen/schemas/v2025R0/listUserV2025R0.js +36 -0
- package/lib/sdk-gen/schemas/v2025R0/listUserV2025R0.js.map +1 -0
- package/lib/sdk-gen/schemas/v2025R0/sharedLinkPermissionsV2025R0.d.ts +19 -0
- package/lib/sdk-gen/schemas/v2025R0/sharedLinkPermissionsV2025R0.d.ts.map +1 -0
- package/lib/sdk-gen/schemas/v2025R0/sharedLinkPermissionsV2025R0.js +63 -0
- package/lib/sdk-gen/schemas/v2025R0/sharedLinkPermissionsV2025R0.js.map +1 -0
- package/lib/sdk-gen/schemas/v2025R0/shieldRuleItemV2025R0.d.ts +38 -0
- package/lib/sdk-gen/schemas/v2025R0/shieldRuleItemV2025R0.d.ts.map +1 -0
- package/lib/sdk-gen/schemas/v2025R0/shieldRuleItemV2025R0.js +130 -0
- package/lib/sdk-gen/schemas/v2025R0/shieldRuleItemV2025R0.js.map +1 -0
- package/lib/sdk-gen/schemas/v2025R0/userOrGroupReferenceV2025R0.d.ts +16 -0
- package/lib/sdk-gen/schemas/v2025R0/userOrGroupReferenceV2025R0.d.ts.map +1 -0
- package/lib/sdk-gen/schemas/v2025R0/userOrGroupReferenceV2025R0.js +49 -0
- package/lib/sdk-gen/schemas/v2025R0/userOrGroupReferenceV2025R0.js.map +1 -0
- package/lib/sdk-gen/schemas/v2025R0/userTrackingCodeV2025R0.d.ts +13 -0
- package/lib/sdk-gen/schemas/v2025R0/userTrackingCodeV2025R0.d.ts.map +1 -0
- package/lib/sdk-gen/schemas/v2025R0/userTrackingCodeV2025R0.js +32 -0
- package/lib/sdk-gen/schemas/v2025R0/userTrackingCodeV2025R0.js.map +1 -0
- package/lib/sdk-gen/schemas/v2025R0/weblinkReferenceV2025R0.d.ts +3 -3
- package/lib/sdk-gen/schemas/v2025R0/weblinkReferenceV2025R0.d.ts.map +1 -1
- package/lib/sdk-gen/schemas/v2025R0/weblinkReferenceV2025R0.js +3 -3
- package/lib/sdk-gen/schemas/v2025R0/weblinkReferenceV2025R0.js.map +1 -1
- package/lib-esm/bundle.js +1703 -9
- package/lib-esm/bundle.js.map +1 -1
- package/lib-esm/sdk-gen/box/errors.js +2 -0
- package/lib-esm/sdk-gen/box/errors.js.map +1 -1
- package/lib-esm/sdk-gen/client.d.ts +3 -1
- package/lib-esm/sdk-gen/client.js +6 -0
- package/lib-esm/sdk-gen/client.js.map +1 -1
- package/lib-esm/sdk-gen/managers/archives.d.ts +60 -1
- package/lib-esm/sdk-gen/managers/archives.js +124 -3
- package/lib-esm/sdk-gen/managers/archives.js.map +1 -1
- package/lib-esm/sdk-gen/managers/enterpriseConfigurations.d.ts +59 -0
- package/lib-esm/sdk-gen/managers/enterpriseConfigurations.js +91 -0
- package/lib-esm/sdk-gen/managers/enterpriseConfigurations.js.map +1 -0
- package/lib-esm/sdk-gen/managers/index.d.ts +1 -0
- package/lib-esm/sdk-gen/managers/index.js +1 -0
- package/lib-esm/sdk-gen/managers/index.js.map +1 -1
- package/lib-esm/sdk-gen/managers/users.d.ts +5 -5
- package/lib-esm/sdk-gen/managers/users.js +3 -3
- package/lib-esm/sdk-gen/networking/retries.js +3 -1
- package/lib-esm/sdk-gen/networking/retries.js.map +1 -1
- package/lib-esm/sdk-gen/networking/version.d.ts +1 -1
- package/lib-esm/sdk-gen/networking/version.js +1 -1
- package/lib-esm/sdk-gen/schemas/v2025R0/archiveV2025R0.d.ts +25 -2
- package/lib-esm/sdk-gen/schemas/v2025R0/archiveV2025R0.js +78 -1
- package/lib-esm/sdk-gen/schemas/v2025R0/archiveV2025R0.js.map +1 -1
- package/lib-esm/sdk-gen/schemas/v2025R0/collaborationPermissionsV2025R0.d.ts +27 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/collaborationPermissionsV2025R0.js +94 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/collaborationPermissionsV2025R0.js.map +1 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/customSessionDurationGroupItemV2025R0.d.ts +12 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/customSessionDurationGroupItemV2025R0.js +31 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/customSessionDurationGroupItemV2025R0.js.map +1 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/enterpriseConfigurationContentAndSharingV2025R0.d.ts +95 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/enterpriseConfigurationContentAndSharingV2025R0.js +655 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/enterpriseConfigurationContentAndSharingV2025R0.js.map +1 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/enterpriseConfigurationItemBooleanV2025R0.d.ts +9 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/enterpriseConfigurationItemBooleanV2025R0.js +41 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/enterpriseConfigurationItemBooleanV2025R0.js.map +1 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/enterpriseConfigurationItemIntegerV2025R0.d.ts +9 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/enterpriseConfigurationItemIntegerV2025R0.js +42 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/enterpriseConfigurationItemIntegerV2025R0.js.map +1 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/enterpriseConfigurationItemStringV2025R0.d.ts +9 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/enterpriseConfigurationItemStringV2025R0.js +42 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/enterpriseConfigurationItemStringV2025R0.js.map +1 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/enterpriseConfigurationItemV2025R0.d.ts +9 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/enterpriseConfigurationItemV2025R0.js +25 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/enterpriseConfigurationItemV2025R0.js.map +1 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/enterpriseConfigurationSecurityV2025R0.d.ts +82 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/enterpriseConfigurationSecurityV2025R0.js +487 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/enterpriseConfigurationSecurityV2025R0.js.map +1 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/enterpriseConfigurationShieldV2025R0.d.ts +10 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/enterpriseConfigurationShieldV2025R0.js +41 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/enterpriseConfigurationShieldV2025R0.js.map +1 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/enterpriseConfigurationUserSettingsV2025R0.d.ts +36 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/enterpriseConfigurationUserSettingsV2025R0.js +227 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/enterpriseConfigurationUserSettingsV2025R0.js.map +1 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/enterpriseConfigurationV2025R0.d.ts +23 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/enterpriseConfigurationV2025R0.js +101 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/enterpriseConfigurationV2025R0.js.map +1 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/enterpriseFeatureSettingV2025R0.d.ts +36 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/enterpriseFeatureSettingV2025R0.js +119 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/enterpriseFeatureSettingV2025R0.js.map +1 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/enterpriseFeatureSettingsItemV2025R0.d.ts +8 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/enterpriseFeatureSettingsItemV2025R0.js +47 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/enterpriseFeatureSettingsItemV2025R0.js.map +1 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/externalCollabSecuritySettingsV2025R0.d.ts +31 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/externalCollabSecuritySettingsV2025R0.js +151 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/externalCollabSecuritySettingsV2025R0.js.map +1 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/hubItemReferenceV2025R0.js +2 -2
- package/lib-esm/sdk-gen/schemas/v2025R0/hubItemReferenceV2025R0.js.map +1 -1
- package/lib-esm/sdk-gen/schemas/v2025R0/index.d.ts +20 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/index.js +20 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/index.js.map +1 -1
- package/lib-esm/sdk-gen/schemas/v2025R0/keysafeSettingsV2025R0.d.ts +27 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/keysafeSettingsV2025R0.js +78 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/keysafeSettingsV2025R0.js.map +1 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/listUserV2025R0.d.ts +15 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/listUserV2025R0.js +36 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/listUserV2025R0.js.map +1 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/sharedLinkPermissionsV2025R0.d.ts +18 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/sharedLinkPermissionsV2025R0.js +63 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/sharedLinkPermissionsV2025R0.js.map +1 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/shieldRuleItemV2025R0.d.ts +37 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/shieldRuleItemV2025R0.js +130 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/shieldRuleItemV2025R0.js.map +1 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/userOrGroupReferenceV2025R0.d.ts +15 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/userOrGroupReferenceV2025R0.js +49 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/userOrGroupReferenceV2025R0.js.map +1 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/userTrackingCodeV2025R0.d.ts +12 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/userTrackingCodeV2025R0.js +32 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/userTrackingCodeV2025R0.js.map +1 -0
- package/lib-esm/sdk-gen/schemas/v2025R0/weblinkReferenceV2025R0.d.ts +3 -3
- package/lib-esm/sdk-gen/schemas/v2025R0/weblinkReferenceV2025R0.js +3 -3
- package/lib-esm/sdk-gen/schemas/v2025R0/weblinkReferenceV2025R0.js.map +1 -1
- package/package.json +1 -1
package/lib-esm/bundle.js
CHANGED
|
@@ -3484,6 +3484,8 @@
|
|
|
3484
3484
|
super(fields);
|
|
3485
3485
|
this.dataSanitizer = new DataSanitizer({});
|
|
3486
3486
|
this.name = 'BoxApiError';
|
|
3487
|
+
this.requestInfo = fields.requestInfo;
|
|
3488
|
+
this.responseInfo = fields.responseInfo;
|
|
3487
3489
|
if (fields.dataSanitizer) {
|
|
3488
3490
|
this.dataSanitizer = fields.dataSanitizer;
|
|
3489
3491
|
}
|
|
@@ -3618,7 +3620,7 @@
|
|
|
3618
3620
|
var browserExports = browser.exports;
|
|
3619
3621
|
var nodeFetch = /*@__PURE__*/getDefaultExportFromCjs(browserExports);
|
|
3620
3622
|
|
|
3621
|
-
const sdkVersion = '4.
|
|
3623
|
+
const sdkVersion = '4.1.0';
|
|
3622
3624
|
|
|
3623
3625
|
class BoxRetryStrategy {
|
|
3624
3626
|
constructor(fields) {
|
|
@@ -3651,7 +3653,9 @@
|
|
|
3651
3653
|
return attemptNumber <= this.maxRetriesOnException;
|
|
3652
3654
|
}
|
|
3653
3655
|
const isSuccessful = fetchResponse.status >= 200 && fetchResponse.status < 400;
|
|
3654
|
-
const retryAfterHeader =
|
|
3656
|
+
const retryAfterHeader = 'Retry-After' in fetchResponse.headers
|
|
3657
|
+
? fetchResponse.headers['Retry-After']
|
|
3658
|
+
: void 0;
|
|
3655
3659
|
const isAcceptedWithRetryAfter = fetchResponse.status == 202 && !(retryAfterHeader == void 0);
|
|
3656
3660
|
if (attemptNumber >= this.maxAttempts) {
|
|
3657
3661
|
return false;
|
|
@@ -26032,9 +26036,9 @@
|
|
|
26032
26036
|
});
|
|
26033
26037
|
}
|
|
26034
26038
|
/**
|
|
26035
|
-
* Deletes a user. By default this
|
|
26036
|
-
* still owns any content
|
|
26037
|
-
*
|
|
26039
|
+
* Deletes a user. By default, this operation fails if the user
|
|
26040
|
+
* still owns any content, was recently active, or recently joined the enterprise from a free account.
|
|
26041
|
+
* To proceed, move their owned content first, or use the `force` parameter to delete
|
|
26038
26042
|
* the user and their files.
|
|
26039
26043
|
* @param {string} userId The ID of the user.
|
|
26040
26044
|
Example: "12345"
|
|
@@ -45430,6 +45434,1578 @@
|
|
|
45430
45434
|
}
|
|
45431
45435
|
}
|
|
45432
45436
|
|
|
45437
|
+
function deserializeEnterpriseConfigurationItemBooleanV2025R0(val) {
|
|
45438
|
+
if (!sdIsMap(val)) {
|
|
45439
|
+
throw new BoxSdkError({
|
|
45440
|
+
message: 'Expecting a map for "EnterpriseConfigurationItemBooleanV2025R0"',
|
|
45441
|
+
});
|
|
45442
|
+
}
|
|
45443
|
+
if (!(val.value == void 0) && !sdIsBoolean(val.value)) {
|
|
45444
|
+
throw new BoxSdkError({
|
|
45445
|
+
message: 'Expecting boolean for "value" of type "EnterpriseConfigurationItemBooleanV2025R0"',
|
|
45446
|
+
});
|
|
45447
|
+
}
|
|
45448
|
+
const value = val.value == void 0 ? void 0 : val.value;
|
|
45449
|
+
if (!(val.is_used == void 0) && !sdIsBoolean(val.is_used)) {
|
|
45450
|
+
throw new BoxSdkError({
|
|
45451
|
+
message: 'Expecting boolean for "is_used" of type "EnterpriseConfigurationItemBooleanV2025R0"',
|
|
45452
|
+
});
|
|
45453
|
+
}
|
|
45454
|
+
const isUsed = val.is_used == void 0 ? void 0 : val.is_used;
|
|
45455
|
+
return {
|
|
45456
|
+
value: value,
|
|
45457
|
+
isUsed: isUsed,
|
|
45458
|
+
};
|
|
45459
|
+
}
|
|
45460
|
+
|
|
45461
|
+
function deserializeEnterpriseConfigurationItemStringV2025R0(val) {
|
|
45462
|
+
if (!sdIsMap(val)) {
|
|
45463
|
+
throw new BoxSdkError({
|
|
45464
|
+
message: 'Expecting a map for "EnterpriseConfigurationItemStringV2025R0"',
|
|
45465
|
+
});
|
|
45466
|
+
}
|
|
45467
|
+
if (!(val.value == void 0) && !sdIsString(val.value)) {
|
|
45468
|
+
throw new BoxSdkError({
|
|
45469
|
+
message: 'Expecting string for "value" of type "EnterpriseConfigurationItemStringV2025R0"',
|
|
45470
|
+
});
|
|
45471
|
+
}
|
|
45472
|
+
const value = val.value == void 0 ? void 0 : val.value;
|
|
45473
|
+
if (!(val.is_used == void 0) && !sdIsBoolean(val.is_used)) {
|
|
45474
|
+
throw new BoxSdkError({
|
|
45475
|
+
message: 'Expecting boolean for "is_used" of type "EnterpriseConfigurationItemStringV2025R0"',
|
|
45476
|
+
});
|
|
45477
|
+
}
|
|
45478
|
+
const isUsed = val.is_used == void 0 ? void 0 : val.is_used;
|
|
45479
|
+
return {
|
|
45480
|
+
value: value,
|
|
45481
|
+
isUsed: isUsed,
|
|
45482
|
+
};
|
|
45483
|
+
}
|
|
45484
|
+
|
|
45485
|
+
function deserializeEnterpriseConfigurationItemIntegerV2025R0(val) {
|
|
45486
|
+
if (!sdIsMap(val)) {
|
|
45487
|
+
throw new BoxSdkError({
|
|
45488
|
+
message: 'Expecting a map for "EnterpriseConfigurationItemIntegerV2025R0"',
|
|
45489
|
+
});
|
|
45490
|
+
}
|
|
45491
|
+
if (!(val.value == void 0) && !sdIsNumber(val.value)) {
|
|
45492
|
+
throw new BoxSdkError({
|
|
45493
|
+
message: 'Expecting number for "value" of type "EnterpriseConfigurationItemIntegerV2025R0"',
|
|
45494
|
+
});
|
|
45495
|
+
}
|
|
45496
|
+
const value = val.value == void 0 ? void 0 : val.value;
|
|
45497
|
+
if (!(val.is_used == void 0) && !sdIsBoolean(val.is_used)) {
|
|
45498
|
+
throw new BoxSdkError({
|
|
45499
|
+
message: 'Expecting boolean for "is_used" of type "EnterpriseConfigurationItemIntegerV2025R0"',
|
|
45500
|
+
});
|
|
45501
|
+
}
|
|
45502
|
+
const isUsed = val.is_used == void 0 ? void 0 : val.is_used;
|
|
45503
|
+
return {
|
|
45504
|
+
value: value,
|
|
45505
|
+
isUsed: isUsed,
|
|
45506
|
+
};
|
|
45507
|
+
}
|
|
45508
|
+
|
|
45509
|
+
function deserializeExternalCollabSecuritySettingsV2025R0(val) {
|
|
45510
|
+
if (!sdIsMap(val)) {
|
|
45511
|
+
throw new BoxSdkError({
|
|
45512
|
+
message: 'Expecting a map for "ExternalCollabSecuritySettingsV2025R0"',
|
|
45513
|
+
});
|
|
45514
|
+
}
|
|
45515
|
+
if (!(val.denylist_domains == void 0) && !sdIsList(val.denylist_domains)) {
|
|
45516
|
+
throw new BoxSdkError({
|
|
45517
|
+
message: 'Expecting array for "denylist_domains" of type "ExternalCollabSecuritySettingsV2025R0"',
|
|
45518
|
+
});
|
|
45519
|
+
}
|
|
45520
|
+
const denylistDomains = val.denylist_domains == void 0
|
|
45521
|
+
? void 0
|
|
45522
|
+
: sdIsList(val.denylist_domains)
|
|
45523
|
+
? val.denylist_domains.map(function (itm) {
|
|
45524
|
+
if (!sdIsString(itm)) {
|
|
45525
|
+
throw new BoxSdkError({
|
|
45526
|
+
message: 'Expecting string for "ExternalCollabSecuritySettingsV2025R0"',
|
|
45527
|
+
});
|
|
45528
|
+
}
|
|
45529
|
+
return itm;
|
|
45530
|
+
})
|
|
45531
|
+
: [];
|
|
45532
|
+
if (!(val.denylist_emails == void 0) && !sdIsList(val.denylist_emails)) {
|
|
45533
|
+
throw new BoxSdkError({
|
|
45534
|
+
message: 'Expecting array for "denylist_emails" of type "ExternalCollabSecuritySettingsV2025R0"',
|
|
45535
|
+
});
|
|
45536
|
+
}
|
|
45537
|
+
const denylistEmails = val.denylist_emails == void 0
|
|
45538
|
+
? void 0
|
|
45539
|
+
: sdIsList(val.denylist_emails)
|
|
45540
|
+
? val.denylist_emails.map(function (itm) {
|
|
45541
|
+
if (!sdIsString(itm)) {
|
|
45542
|
+
throw new BoxSdkError({
|
|
45543
|
+
message: 'Expecting string for "ExternalCollabSecuritySettingsV2025R0"',
|
|
45544
|
+
});
|
|
45545
|
+
}
|
|
45546
|
+
return itm;
|
|
45547
|
+
})
|
|
45548
|
+
: [];
|
|
45549
|
+
if (!(val.allowlist_domains == void 0) && !sdIsList(val.allowlist_domains)) {
|
|
45550
|
+
throw new BoxSdkError({
|
|
45551
|
+
message: 'Expecting array for "allowlist_domains" of type "ExternalCollabSecuritySettingsV2025R0"',
|
|
45552
|
+
});
|
|
45553
|
+
}
|
|
45554
|
+
const allowlistDomains = val.allowlist_domains == void 0
|
|
45555
|
+
? void 0
|
|
45556
|
+
: sdIsList(val.allowlist_domains)
|
|
45557
|
+
? val.allowlist_domains.map(function (itm) {
|
|
45558
|
+
if (!sdIsString(itm)) {
|
|
45559
|
+
throw new BoxSdkError({
|
|
45560
|
+
message: 'Expecting string for "ExternalCollabSecuritySettingsV2025R0"',
|
|
45561
|
+
});
|
|
45562
|
+
}
|
|
45563
|
+
return itm;
|
|
45564
|
+
})
|
|
45565
|
+
: [];
|
|
45566
|
+
if (!(val.allowlist_emails == void 0) && !sdIsList(val.allowlist_emails)) {
|
|
45567
|
+
throw new BoxSdkError({
|
|
45568
|
+
message: 'Expecting array for "allowlist_emails" of type "ExternalCollabSecuritySettingsV2025R0"',
|
|
45569
|
+
});
|
|
45570
|
+
}
|
|
45571
|
+
const allowlistEmails = val.allowlist_emails == void 0
|
|
45572
|
+
? void 0
|
|
45573
|
+
: sdIsList(val.allowlist_emails)
|
|
45574
|
+
? val.allowlist_emails.map(function (itm) {
|
|
45575
|
+
if (!sdIsString(itm)) {
|
|
45576
|
+
throw new BoxSdkError({
|
|
45577
|
+
message: 'Expecting string for "ExternalCollabSecuritySettingsV2025R0"',
|
|
45578
|
+
});
|
|
45579
|
+
}
|
|
45580
|
+
return itm;
|
|
45581
|
+
})
|
|
45582
|
+
: [];
|
|
45583
|
+
if (!(val.state == void 0) && !sdIsString(val.state)) {
|
|
45584
|
+
throw new BoxSdkError({
|
|
45585
|
+
message: 'Expecting string for "state" of type "ExternalCollabSecuritySettingsV2025R0"',
|
|
45586
|
+
});
|
|
45587
|
+
}
|
|
45588
|
+
const state = val.state == void 0 ? void 0 : val.state;
|
|
45589
|
+
if (!(val.scheduled_status == void 0) && !sdIsString(val.scheduled_status)) {
|
|
45590
|
+
throw new BoxSdkError({
|
|
45591
|
+
message: 'Expecting string for "scheduled_status" of type "ExternalCollabSecuritySettingsV2025R0"',
|
|
45592
|
+
});
|
|
45593
|
+
}
|
|
45594
|
+
const scheduledStatus = val.scheduled_status == void 0 ? void 0 : val.scheduled_status;
|
|
45595
|
+
if (!(val.scheduled_at == void 0) && !sdIsString(val.scheduled_at)) {
|
|
45596
|
+
throw new BoxSdkError({
|
|
45597
|
+
message: 'Expecting string for "scheduled_at" of type "ExternalCollabSecuritySettingsV2025R0"',
|
|
45598
|
+
});
|
|
45599
|
+
}
|
|
45600
|
+
const scheduledAt = val.scheduled_at == void 0 ? void 0 : dateTimeFromString(val.scheduled_at);
|
|
45601
|
+
if (!(val.factor_type_settings == void 0) &&
|
|
45602
|
+
!sdIsString(val.factor_type_settings)) {
|
|
45603
|
+
throw new BoxSdkError({
|
|
45604
|
+
message: 'Expecting string for "factor_type_settings" of type "ExternalCollabSecuritySettingsV2025R0"',
|
|
45605
|
+
});
|
|
45606
|
+
}
|
|
45607
|
+
const factorTypeSettings = val.factor_type_settings == void 0 ? void 0 : val.factor_type_settings;
|
|
45608
|
+
return {
|
|
45609
|
+
denylistDomains: denylistDomains,
|
|
45610
|
+
denylistEmails: denylistEmails,
|
|
45611
|
+
allowlistDomains: allowlistDomains,
|
|
45612
|
+
allowlistEmails: allowlistEmails,
|
|
45613
|
+
state: state,
|
|
45614
|
+
scheduledStatus: scheduledStatus,
|
|
45615
|
+
scheduledAt: scheduledAt,
|
|
45616
|
+
factorTypeSettings: factorTypeSettings,
|
|
45617
|
+
};
|
|
45618
|
+
}
|
|
45619
|
+
|
|
45620
|
+
function deserializeKeysafeSettingsV2025R0(val) {
|
|
45621
|
+
if (!sdIsMap(val)) {
|
|
45622
|
+
throw new BoxSdkError({
|
|
45623
|
+
message: 'Expecting a map for "KeysafeSettingsV2025R0"',
|
|
45624
|
+
});
|
|
45625
|
+
}
|
|
45626
|
+
if (!(val.keysafe_enabled == void 0) && !sdIsBoolean(val.keysafe_enabled)) {
|
|
45627
|
+
throw new BoxSdkError({
|
|
45628
|
+
message: 'Expecting boolean for "keysafe_enabled" of type "KeysafeSettingsV2025R0"',
|
|
45629
|
+
});
|
|
45630
|
+
}
|
|
45631
|
+
const keysafeEnabled = val.keysafe_enabled == void 0 ? void 0 : val.keysafe_enabled;
|
|
45632
|
+
if (!(val.cloud_provider == void 0) && !sdIsString(val.cloud_provider)) {
|
|
45633
|
+
throw new BoxSdkError({
|
|
45634
|
+
message: 'Expecting string for "cloud_provider" of type "KeysafeSettingsV2025R0"',
|
|
45635
|
+
});
|
|
45636
|
+
}
|
|
45637
|
+
const cloudProvider = val.cloud_provider == void 0 ? void 0 : val.cloud_provider;
|
|
45638
|
+
if (!(val.key_id == void 0) && !sdIsString(val.key_id)) {
|
|
45639
|
+
throw new BoxSdkError({
|
|
45640
|
+
message: 'Expecting string for "key_id" of type "KeysafeSettingsV2025R0"',
|
|
45641
|
+
});
|
|
45642
|
+
}
|
|
45643
|
+
const keyId = val.key_id == void 0 ? void 0 : val.key_id;
|
|
45644
|
+
if (!(val.account_id == void 0) && !sdIsString(val.account_id)) {
|
|
45645
|
+
throw new BoxSdkError({
|
|
45646
|
+
message: 'Expecting string for "account_id" of type "KeysafeSettingsV2025R0"',
|
|
45647
|
+
});
|
|
45648
|
+
}
|
|
45649
|
+
const accountId = val.account_id == void 0 ? void 0 : val.account_id;
|
|
45650
|
+
if (!(val.location_id == void 0) && !sdIsString(val.location_id)) {
|
|
45651
|
+
throw new BoxSdkError({
|
|
45652
|
+
message: 'Expecting string for "location_id" of type "KeysafeSettingsV2025R0"',
|
|
45653
|
+
});
|
|
45654
|
+
}
|
|
45655
|
+
const locationId = val.location_id == void 0 ? void 0 : val.location_id;
|
|
45656
|
+
if (!(val.project_id == void 0) && !sdIsString(val.project_id)) {
|
|
45657
|
+
throw new BoxSdkError({
|
|
45658
|
+
message: 'Expecting string for "project_id" of type "KeysafeSettingsV2025R0"',
|
|
45659
|
+
});
|
|
45660
|
+
}
|
|
45661
|
+
const projectId = val.project_id == void 0 ? void 0 : val.project_id;
|
|
45662
|
+
if (!(val.keyring_id == void 0) && !sdIsString(val.keyring_id)) {
|
|
45663
|
+
throw new BoxSdkError({
|
|
45664
|
+
message: 'Expecting string for "keyring_id" of type "KeysafeSettingsV2025R0"',
|
|
45665
|
+
});
|
|
45666
|
+
}
|
|
45667
|
+
const keyringId = val.keyring_id == void 0 ? void 0 : val.keyring_id;
|
|
45668
|
+
return {
|
|
45669
|
+
keysafeEnabled: keysafeEnabled,
|
|
45670
|
+
cloudProvider: cloudProvider,
|
|
45671
|
+
keyId: keyId,
|
|
45672
|
+
accountId: accountId,
|
|
45673
|
+
locationId: locationId,
|
|
45674
|
+
projectId: projectId,
|
|
45675
|
+
keyringId: keyringId,
|
|
45676
|
+
};
|
|
45677
|
+
}
|
|
45678
|
+
|
|
45679
|
+
function deserializeCustomSessionDurationGroupItemV2025R0(val) {
|
|
45680
|
+
if (!sdIsMap(val)) {
|
|
45681
|
+
throw new BoxSdkError({
|
|
45682
|
+
message: 'Expecting a map for "CustomSessionDurationGroupItemV2025R0"',
|
|
45683
|
+
});
|
|
45684
|
+
}
|
|
45685
|
+
if (!(val.id == void 0) && !sdIsString(val.id)) {
|
|
45686
|
+
throw new BoxSdkError({
|
|
45687
|
+
message: 'Expecting string for "id" of type "CustomSessionDurationGroupItemV2025R0"',
|
|
45688
|
+
});
|
|
45689
|
+
}
|
|
45690
|
+
const id = val.id == void 0 ? void 0 : val.id;
|
|
45691
|
+
if (!(val.name == void 0) && !sdIsString(val.name)) {
|
|
45692
|
+
throw new BoxSdkError({
|
|
45693
|
+
message: 'Expecting string for "name" of type "CustomSessionDurationGroupItemV2025R0"',
|
|
45694
|
+
});
|
|
45695
|
+
}
|
|
45696
|
+
const name = val.name == void 0 ? void 0 : val.name;
|
|
45697
|
+
return { id: id, name: name };
|
|
45698
|
+
}
|
|
45699
|
+
|
|
45700
|
+
function deserializeEnterpriseConfigurationSecurityV2025R0LastPasswordResetAtField(val) {
|
|
45701
|
+
if (!sdIsMap(val)) {
|
|
45702
|
+
throw new BoxSdkError({
|
|
45703
|
+
message: 'Expecting a map for "EnterpriseConfigurationSecurityV2025R0LastPasswordResetAtField"',
|
|
45704
|
+
});
|
|
45705
|
+
}
|
|
45706
|
+
if (!(val.value == void 0) && !sdIsString(val.value)) {
|
|
45707
|
+
throw new BoxSdkError({
|
|
45708
|
+
message: 'Expecting string for "value" of type "EnterpriseConfigurationSecurityV2025R0LastPasswordResetAtField"',
|
|
45709
|
+
});
|
|
45710
|
+
}
|
|
45711
|
+
const value = val.value == void 0 ? void 0 : dateTimeFromString(val.value);
|
|
45712
|
+
if (!(val.is_used == void 0) && !sdIsBoolean(val.is_used)) {
|
|
45713
|
+
throw new BoxSdkError({
|
|
45714
|
+
message: 'Expecting boolean for "is_used" of type "EnterpriseConfigurationSecurityV2025R0LastPasswordResetAtField"',
|
|
45715
|
+
});
|
|
45716
|
+
}
|
|
45717
|
+
const isUsed = val.is_used == void 0 ? void 0 : val.is_used;
|
|
45718
|
+
return {
|
|
45719
|
+
value: value,
|
|
45720
|
+
isUsed: isUsed,
|
|
45721
|
+
};
|
|
45722
|
+
}
|
|
45723
|
+
function deserializeEnterpriseConfigurationSecurityV2025R0ExternalCollabMultiFactorAuthSettingsField(val) {
|
|
45724
|
+
if (!sdIsMap(val)) {
|
|
45725
|
+
throw new BoxSdkError({
|
|
45726
|
+
message: 'Expecting a map for "EnterpriseConfigurationSecurityV2025R0ExternalCollabMultiFactorAuthSettingsField"',
|
|
45727
|
+
});
|
|
45728
|
+
}
|
|
45729
|
+
const value = val.value == void 0
|
|
45730
|
+
? void 0
|
|
45731
|
+
: val.value == void 0
|
|
45732
|
+
? void 0
|
|
45733
|
+
: deserializeExternalCollabSecuritySettingsV2025R0(val.value);
|
|
45734
|
+
if (!(val.is_used == void 0) && !sdIsBoolean(val.is_used)) {
|
|
45735
|
+
throw new BoxSdkError({
|
|
45736
|
+
message: 'Expecting boolean for "is_used" of type "EnterpriseConfigurationSecurityV2025R0ExternalCollabMultiFactorAuthSettingsField"',
|
|
45737
|
+
});
|
|
45738
|
+
}
|
|
45739
|
+
const isUsed = val.is_used == void 0 ? void 0 : val.is_used;
|
|
45740
|
+
return {
|
|
45741
|
+
value: value,
|
|
45742
|
+
isUsed: isUsed,
|
|
45743
|
+
};
|
|
45744
|
+
}
|
|
45745
|
+
function deserializeEnterpriseConfigurationSecurityV2025R0KeysafeField(val) {
|
|
45746
|
+
if (!sdIsMap(val)) {
|
|
45747
|
+
throw new BoxSdkError({
|
|
45748
|
+
message: 'Expecting a map for "EnterpriseConfigurationSecurityV2025R0KeysafeField"',
|
|
45749
|
+
});
|
|
45750
|
+
}
|
|
45751
|
+
const value = val.value == void 0
|
|
45752
|
+
? void 0
|
|
45753
|
+
: val.value == void 0
|
|
45754
|
+
? void 0
|
|
45755
|
+
: deserializeKeysafeSettingsV2025R0(val.value);
|
|
45756
|
+
if (!(val.is_used == void 0) && !sdIsBoolean(val.is_used)) {
|
|
45757
|
+
throw new BoxSdkError({
|
|
45758
|
+
message: 'Expecting boolean for "is_used" of type "EnterpriseConfigurationSecurityV2025R0KeysafeField"',
|
|
45759
|
+
});
|
|
45760
|
+
}
|
|
45761
|
+
const isUsed = val.is_used == void 0 ? void 0 : val.is_used;
|
|
45762
|
+
return {
|
|
45763
|
+
value: value,
|
|
45764
|
+
isUsed: isUsed,
|
|
45765
|
+
};
|
|
45766
|
+
}
|
|
45767
|
+
function deserializeEnterpriseConfigurationSecurityV2025R0CustomSessionDurationGroupsField(val) {
|
|
45768
|
+
if (!sdIsMap(val)) {
|
|
45769
|
+
throw new BoxSdkError({
|
|
45770
|
+
message: 'Expecting a map for "EnterpriseConfigurationSecurityV2025R0CustomSessionDurationGroupsField"',
|
|
45771
|
+
});
|
|
45772
|
+
}
|
|
45773
|
+
if (!(val.value == void 0) && !sdIsList(val.value)) {
|
|
45774
|
+
throw new BoxSdkError({
|
|
45775
|
+
message: 'Expecting array for "value" of type "EnterpriseConfigurationSecurityV2025R0CustomSessionDurationGroupsField"',
|
|
45776
|
+
});
|
|
45777
|
+
}
|
|
45778
|
+
const value = val.value == void 0
|
|
45779
|
+
? void 0
|
|
45780
|
+
: sdIsList(val.value)
|
|
45781
|
+
? val.value.map(function (itm) {
|
|
45782
|
+
return deserializeCustomSessionDurationGroupItemV2025R0(itm);
|
|
45783
|
+
})
|
|
45784
|
+
: [];
|
|
45785
|
+
if (!(val.is_used == void 0) && !sdIsBoolean(val.is_used)) {
|
|
45786
|
+
throw new BoxSdkError({
|
|
45787
|
+
message: 'Expecting boolean for "is_used" of type "EnterpriseConfigurationSecurityV2025R0CustomSessionDurationGroupsField"',
|
|
45788
|
+
});
|
|
45789
|
+
}
|
|
45790
|
+
const isUsed = val.is_used == void 0 ? void 0 : val.is_used;
|
|
45791
|
+
return {
|
|
45792
|
+
value: value,
|
|
45793
|
+
isUsed: isUsed,
|
|
45794
|
+
};
|
|
45795
|
+
}
|
|
45796
|
+
function deserializeEnterpriseConfigurationSecurityV2025R0EnforcedMfaFrequencyFieldValueField(val) {
|
|
45797
|
+
if (!sdIsMap(val)) {
|
|
45798
|
+
throw new BoxSdkError({
|
|
45799
|
+
message: 'Expecting a map for "EnterpriseConfigurationSecurityV2025R0EnforcedMfaFrequencyFieldValueField"',
|
|
45800
|
+
});
|
|
45801
|
+
}
|
|
45802
|
+
if (!(val.days == void 0) && !sdIsNumber(val.days)) {
|
|
45803
|
+
throw new BoxSdkError({
|
|
45804
|
+
message: 'Expecting number for "days" of type "EnterpriseConfigurationSecurityV2025R0EnforcedMfaFrequencyFieldValueField"',
|
|
45805
|
+
});
|
|
45806
|
+
}
|
|
45807
|
+
const days = val.days == void 0 ? void 0 : val.days;
|
|
45808
|
+
if (!(val.hours == void 0) && !sdIsNumber(val.hours)) {
|
|
45809
|
+
throw new BoxSdkError({
|
|
45810
|
+
message: 'Expecting number for "hours" of type "EnterpriseConfigurationSecurityV2025R0EnforcedMfaFrequencyFieldValueField"',
|
|
45811
|
+
});
|
|
45812
|
+
}
|
|
45813
|
+
const hours = val.hours == void 0 ? void 0 : val.hours;
|
|
45814
|
+
return {
|
|
45815
|
+
days: days,
|
|
45816
|
+
hours: hours,
|
|
45817
|
+
};
|
|
45818
|
+
}
|
|
45819
|
+
function deserializeEnterpriseConfigurationSecurityV2025R0EnforcedMfaFrequencyField(val) {
|
|
45820
|
+
if (!sdIsMap(val)) {
|
|
45821
|
+
throw new BoxSdkError({
|
|
45822
|
+
message: 'Expecting a map for "EnterpriseConfigurationSecurityV2025R0EnforcedMfaFrequencyField"',
|
|
45823
|
+
});
|
|
45824
|
+
}
|
|
45825
|
+
const value = val.value == void 0
|
|
45826
|
+
? void 0
|
|
45827
|
+
: deserializeEnterpriseConfigurationSecurityV2025R0EnforcedMfaFrequencyFieldValueField(val.value);
|
|
45828
|
+
if (!(val.is_used == void 0) && !sdIsBoolean(val.is_used)) {
|
|
45829
|
+
throw new BoxSdkError({
|
|
45830
|
+
message: 'Expecting boolean for "is_used" of type "EnterpriseConfigurationSecurityV2025R0EnforcedMfaFrequencyField"',
|
|
45831
|
+
});
|
|
45832
|
+
}
|
|
45833
|
+
const isUsed = val.is_used == void 0 ? void 0 : val.is_used;
|
|
45834
|
+
return {
|
|
45835
|
+
value: value,
|
|
45836
|
+
isUsed: isUsed,
|
|
45837
|
+
};
|
|
45838
|
+
}
|
|
45839
|
+
function deserializeEnterpriseConfigurationSecurityV2025R0(val) {
|
|
45840
|
+
if (!sdIsMap(val)) {
|
|
45841
|
+
throw new BoxSdkError({
|
|
45842
|
+
message: 'Expecting a map for "EnterpriseConfigurationSecurityV2025R0"',
|
|
45843
|
+
});
|
|
45844
|
+
}
|
|
45845
|
+
const isManagedUserSignupEnabled = val.is_managed_user_signup_enabled == void 0
|
|
45846
|
+
? void 0
|
|
45847
|
+
: deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_managed_user_signup_enabled);
|
|
45848
|
+
const isManagedUserSignupNotificationEnabled = val.is_managed_user_signup_notification_enabled == void 0
|
|
45849
|
+
? void 0
|
|
45850
|
+
: deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_managed_user_signup_notification_enabled);
|
|
45851
|
+
const isManagedUserSignupCorporateEmailEnabled = val.is_managed_user_signup_corporate_email_enabled == void 0
|
|
45852
|
+
? void 0
|
|
45853
|
+
: deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_managed_user_signup_corporate_email_enabled);
|
|
45854
|
+
const isNewUserNotificationDailyDigestEnabled = val.is_new_user_notification_daily_digest_enabled == void 0
|
|
45855
|
+
? void 0
|
|
45856
|
+
: deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_new_user_notification_daily_digest_enabled);
|
|
45857
|
+
const isManagedUserEmailChangeDisabled = val.is_managed_user_email_change_disabled == void 0
|
|
45858
|
+
? void 0
|
|
45859
|
+
: deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_managed_user_email_change_disabled);
|
|
45860
|
+
const isMultiFactorAuthRequired = val.is_multi_factor_auth_required == void 0
|
|
45861
|
+
? void 0
|
|
45862
|
+
: deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_multi_factor_auth_required);
|
|
45863
|
+
const isWeakPasswordPreventionEnabled = val.is_weak_password_prevention_enabled == void 0
|
|
45864
|
+
? void 0
|
|
45865
|
+
: deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_weak_password_prevention_enabled);
|
|
45866
|
+
const isPasswordLeakDetectionEnabled = val.is_password_leak_detection_enabled == void 0
|
|
45867
|
+
? void 0
|
|
45868
|
+
: deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_password_leak_detection_enabled);
|
|
45869
|
+
const lastPasswordResetAt = val.last_password_reset_at == void 0
|
|
45870
|
+
? void 0
|
|
45871
|
+
: deserializeEnterpriseConfigurationSecurityV2025R0LastPasswordResetAtField(val.last_password_reset_at);
|
|
45872
|
+
const isPasswordRequestNotificationEnabled = val.is_password_request_notification_enabled == void 0
|
|
45873
|
+
? void 0
|
|
45874
|
+
: deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_password_request_notification_enabled);
|
|
45875
|
+
const isPasswordChangeNotificationEnabled = val.is_password_change_notification_enabled == void 0
|
|
45876
|
+
? void 0
|
|
45877
|
+
: deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_password_change_notification_enabled);
|
|
45878
|
+
const isStrongPasswordForExtCollabEnabled = val.is_strong_password_for_ext_collab_enabled == void 0
|
|
45879
|
+
? void 0
|
|
45880
|
+
: deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_strong_password_for_ext_collab_enabled);
|
|
45881
|
+
const isManagedUserMigrationDisabled = val.is_managed_user_migration_disabled == void 0
|
|
45882
|
+
? void 0
|
|
45883
|
+
: deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_managed_user_migration_disabled);
|
|
45884
|
+
const joinLink = val.join_link == void 0
|
|
45885
|
+
? void 0
|
|
45886
|
+
: deserializeEnterpriseConfigurationItemStringV2025R0(val.join_link);
|
|
45887
|
+
const joinUrl = val.join_url == void 0
|
|
45888
|
+
? void 0
|
|
45889
|
+
: deserializeEnterpriseConfigurationItemStringV2025R0(val.join_url);
|
|
45890
|
+
const failedLoginAttemptsToTriggerAdminNotification = val.failed_login_attempts_to_trigger_admin_notification == void 0
|
|
45891
|
+
? void 0
|
|
45892
|
+
: deserializeEnterpriseConfigurationItemIntegerV2025R0(val.failed_login_attempts_to_trigger_admin_notification);
|
|
45893
|
+
const passwordMinLength = val.password_min_length == void 0
|
|
45894
|
+
? void 0
|
|
45895
|
+
: deserializeEnterpriseConfigurationItemIntegerV2025R0(val.password_min_length);
|
|
45896
|
+
const passwordMinUppercaseCharacters = val.password_min_uppercase_characters == void 0
|
|
45897
|
+
? void 0
|
|
45898
|
+
: deserializeEnterpriseConfigurationItemIntegerV2025R0(val.password_min_uppercase_characters);
|
|
45899
|
+
const passwordMinNumericCharacters = val.password_min_numeric_characters == void 0
|
|
45900
|
+
? void 0
|
|
45901
|
+
: deserializeEnterpriseConfigurationItemIntegerV2025R0(val.password_min_numeric_characters);
|
|
45902
|
+
const passwordMinSpecialCharacters = val.password_min_special_characters == void 0
|
|
45903
|
+
? void 0
|
|
45904
|
+
: deserializeEnterpriseConfigurationItemIntegerV2025R0(val.password_min_special_characters);
|
|
45905
|
+
const passwordResetFrequency = val.password_reset_frequency == void 0
|
|
45906
|
+
? void 0
|
|
45907
|
+
: deserializeEnterpriseConfigurationItemStringV2025R0(val.password_reset_frequency);
|
|
45908
|
+
const previousPasswordReuseLimit = val.previous_password_reuse_limit == void 0
|
|
45909
|
+
? void 0
|
|
45910
|
+
: deserializeEnterpriseConfigurationItemStringV2025R0(val.previous_password_reuse_limit);
|
|
45911
|
+
const sessionDuration = val.session_duration == void 0
|
|
45912
|
+
? void 0
|
|
45913
|
+
: deserializeEnterpriseConfigurationItemStringV2025R0(val.session_duration);
|
|
45914
|
+
const externalCollabMultiFactorAuthSettings = val.external_collab_multi_factor_auth_settings == void 0
|
|
45915
|
+
? void 0
|
|
45916
|
+
: deserializeEnterpriseConfigurationSecurityV2025R0ExternalCollabMultiFactorAuthSettingsField(val.external_collab_multi_factor_auth_settings);
|
|
45917
|
+
const keysafe = val.keysafe == void 0
|
|
45918
|
+
? void 0
|
|
45919
|
+
: deserializeEnterpriseConfigurationSecurityV2025R0KeysafeField(val.keysafe);
|
|
45920
|
+
const isCustomSessionDurationEnabled = val.is_custom_session_duration_enabled == void 0
|
|
45921
|
+
? void 0
|
|
45922
|
+
: deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_custom_session_duration_enabled);
|
|
45923
|
+
const customSessionDurationValue = val.custom_session_duration_value == void 0
|
|
45924
|
+
? void 0
|
|
45925
|
+
: deserializeEnterpriseConfigurationItemStringV2025R0(val.custom_session_duration_value);
|
|
45926
|
+
const customSessionDurationGroups = val.custom_session_duration_groups == void 0
|
|
45927
|
+
? void 0
|
|
45928
|
+
: deserializeEnterpriseConfigurationSecurityV2025R0CustomSessionDurationGroupsField(val.custom_session_duration_groups);
|
|
45929
|
+
const multiFactorAuthType = val.multi_factor_auth_type == void 0
|
|
45930
|
+
? void 0
|
|
45931
|
+
: deserializeEnterpriseConfigurationItemStringV2025R0(val.multi_factor_auth_type);
|
|
45932
|
+
const enforcedMfaFrequency = val.enforced_mfa_frequency == void 0
|
|
45933
|
+
? void 0
|
|
45934
|
+
: deserializeEnterpriseConfigurationSecurityV2025R0EnforcedMfaFrequencyField(val.enforced_mfa_frequency);
|
|
45935
|
+
return {
|
|
45936
|
+
isManagedUserSignupEnabled: isManagedUserSignupEnabled,
|
|
45937
|
+
isManagedUserSignupNotificationEnabled: isManagedUserSignupNotificationEnabled,
|
|
45938
|
+
isManagedUserSignupCorporateEmailEnabled: isManagedUserSignupCorporateEmailEnabled,
|
|
45939
|
+
isNewUserNotificationDailyDigestEnabled: isNewUserNotificationDailyDigestEnabled,
|
|
45940
|
+
isManagedUserEmailChangeDisabled: isManagedUserEmailChangeDisabled,
|
|
45941
|
+
isMultiFactorAuthRequired: isMultiFactorAuthRequired,
|
|
45942
|
+
isWeakPasswordPreventionEnabled: isWeakPasswordPreventionEnabled,
|
|
45943
|
+
isPasswordLeakDetectionEnabled: isPasswordLeakDetectionEnabled,
|
|
45944
|
+
lastPasswordResetAt: lastPasswordResetAt,
|
|
45945
|
+
isPasswordRequestNotificationEnabled: isPasswordRequestNotificationEnabled,
|
|
45946
|
+
isPasswordChangeNotificationEnabled: isPasswordChangeNotificationEnabled,
|
|
45947
|
+
isStrongPasswordForExtCollabEnabled: isStrongPasswordForExtCollabEnabled,
|
|
45948
|
+
isManagedUserMigrationDisabled: isManagedUserMigrationDisabled,
|
|
45949
|
+
joinLink: joinLink,
|
|
45950
|
+
joinUrl: joinUrl,
|
|
45951
|
+
failedLoginAttemptsToTriggerAdminNotification: failedLoginAttemptsToTriggerAdminNotification,
|
|
45952
|
+
passwordMinLength: passwordMinLength,
|
|
45953
|
+
passwordMinUppercaseCharacters: passwordMinUppercaseCharacters,
|
|
45954
|
+
passwordMinNumericCharacters: passwordMinNumericCharacters,
|
|
45955
|
+
passwordMinSpecialCharacters: passwordMinSpecialCharacters,
|
|
45956
|
+
passwordResetFrequency: passwordResetFrequency,
|
|
45957
|
+
previousPasswordReuseLimit: previousPasswordReuseLimit,
|
|
45958
|
+
sessionDuration: sessionDuration,
|
|
45959
|
+
externalCollabMultiFactorAuthSettings: externalCollabMultiFactorAuthSettings,
|
|
45960
|
+
keysafe: keysafe,
|
|
45961
|
+
isCustomSessionDurationEnabled: isCustomSessionDurationEnabled,
|
|
45962
|
+
customSessionDurationValue: customSessionDurationValue,
|
|
45963
|
+
customSessionDurationGroups: customSessionDurationGroups,
|
|
45964
|
+
multiFactorAuthType: multiFactorAuthType,
|
|
45965
|
+
enforcedMfaFrequency: enforcedMfaFrequency,
|
|
45966
|
+
};
|
|
45967
|
+
}
|
|
45968
|
+
|
|
45969
|
+
function deserializeUserOrGroupReferenceV2025R0TypeField(val) {
|
|
45970
|
+
if (val == 'user') {
|
|
45971
|
+
return val;
|
|
45972
|
+
}
|
|
45973
|
+
if (val == 'group') {
|
|
45974
|
+
return val;
|
|
45975
|
+
}
|
|
45976
|
+
throw new BoxSdkError({
|
|
45977
|
+
message: "Can't deserialize UserOrGroupReferenceV2025R0TypeField",
|
|
45978
|
+
});
|
|
45979
|
+
}
|
|
45980
|
+
function deserializeUserOrGroupReferenceV2025R0(val) {
|
|
45981
|
+
if (!sdIsMap(val)) {
|
|
45982
|
+
throw new BoxSdkError({
|
|
45983
|
+
message: 'Expecting a map for "UserOrGroupReferenceV2025R0"',
|
|
45984
|
+
});
|
|
45985
|
+
}
|
|
45986
|
+
const type = val.type == void 0
|
|
45987
|
+
? void 0
|
|
45988
|
+
: deserializeUserOrGroupReferenceV2025R0TypeField(val.type);
|
|
45989
|
+
if (!(val.id == void 0) && !sdIsString(val.id)) {
|
|
45990
|
+
throw new BoxSdkError({
|
|
45991
|
+
message: 'Expecting string for "id" of type "UserOrGroupReferenceV2025R0"',
|
|
45992
|
+
});
|
|
45993
|
+
}
|
|
45994
|
+
const id = val.id == void 0 ? void 0 : val.id;
|
|
45995
|
+
return { type: type, id: id };
|
|
45996
|
+
}
|
|
45997
|
+
|
|
45998
|
+
function deserializeEnterpriseFeatureSettingV2025R0FeatureField(val) {
|
|
45999
|
+
if (!sdIsMap(val)) {
|
|
46000
|
+
throw new BoxSdkError({
|
|
46001
|
+
message: 'Expecting a map for "EnterpriseFeatureSettingV2025R0FeatureField"',
|
|
46002
|
+
});
|
|
46003
|
+
}
|
|
46004
|
+
if (!(val.id == void 0) && !sdIsString(val.id)) {
|
|
46005
|
+
throw new BoxSdkError({
|
|
46006
|
+
message: 'Expecting string for "id" of type "EnterpriseFeatureSettingV2025R0FeatureField"',
|
|
46007
|
+
});
|
|
46008
|
+
}
|
|
46009
|
+
const id = val.id == void 0 ? void 0 : val.id;
|
|
46010
|
+
return { id: id };
|
|
46011
|
+
}
|
|
46012
|
+
function deserializeEnterpriseFeatureSettingV2025R0(val) {
|
|
46013
|
+
if (!sdIsMap(val)) {
|
|
46014
|
+
throw new BoxSdkError({
|
|
46015
|
+
message: 'Expecting a map for "EnterpriseFeatureSettingV2025R0"',
|
|
46016
|
+
});
|
|
46017
|
+
}
|
|
46018
|
+
if (!(val.id == void 0) && !sdIsString(val.id)) {
|
|
46019
|
+
throw new BoxSdkError({
|
|
46020
|
+
message: 'Expecting string for "id" of type "EnterpriseFeatureSettingV2025R0"',
|
|
46021
|
+
});
|
|
46022
|
+
}
|
|
46023
|
+
const id = val.id == void 0 ? void 0 : val.id;
|
|
46024
|
+
const feature = val.feature == void 0
|
|
46025
|
+
? void 0
|
|
46026
|
+
: deserializeEnterpriseFeatureSettingV2025R0FeatureField(val.feature);
|
|
46027
|
+
if (!(val.state == void 0) && !sdIsString(val.state)) {
|
|
46028
|
+
throw new BoxSdkError({
|
|
46029
|
+
message: 'Expecting string for "state" of type "EnterpriseFeatureSettingV2025R0"',
|
|
46030
|
+
});
|
|
46031
|
+
}
|
|
46032
|
+
const state = val.state == void 0 ? void 0 : val.state;
|
|
46033
|
+
if (!(val.can_configure == void 0) && !sdIsBoolean(val.can_configure)) {
|
|
46034
|
+
throw new BoxSdkError({
|
|
46035
|
+
message: 'Expecting boolean for "can_configure" of type "EnterpriseFeatureSettingV2025R0"',
|
|
46036
|
+
});
|
|
46037
|
+
}
|
|
46038
|
+
const canConfigure = val.can_configure == void 0 ? void 0 : val.can_configure;
|
|
46039
|
+
if (!(val.is_configured == void 0) && !sdIsBoolean(val.is_configured)) {
|
|
46040
|
+
throw new BoxSdkError({
|
|
46041
|
+
message: 'Expecting boolean for "is_configured" of type "EnterpriseFeatureSettingV2025R0"',
|
|
46042
|
+
});
|
|
46043
|
+
}
|
|
46044
|
+
const isConfigured = val.is_configured == void 0 ? void 0 : val.is_configured;
|
|
46045
|
+
if (!(val.allowlist == void 0) && !sdIsList(val.allowlist)) {
|
|
46046
|
+
throw new BoxSdkError({
|
|
46047
|
+
message: 'Expecting array for "allowlist" of type "EnterpriseFeatureSettingV2025R0"',
|
|
46048
|
+
});
|
|
46049
|
+
}
|
|
46050
|
+
const allowlist = val.allowlist == void 0
|
|
46051
|
+
? void 0
|
|
46052
|
+
: sdIsList(val.allowlist)
|
|
46053
|
+
? val.allowlist.map(function (itm) {
|
|
46054
|
+
return deserializeUserOrGroupReferenceV2025R0(itm);
|
|
46055
|
+
})
|
|
46056
|
+
: [];
|
|
46057
|
+
if (!(val.denylist == void 0) && !sdIsList(val.denylist)) {
|
|
46058
|
+
throw new BoxSdkError({
|
|
46059
|
+
message: 'Expecting array for "denylist" of type "EnterpriseFeatureSettingV2025R0"',
|
|
46060
|
+
});
|
|
46061
|
+
}
|
|
46062
|
+
const denylist = val.denylist == void 0
|
|
46063
|
+
? void 0
|
|
46064
|
+
: sdIsList(val.denylist)
|
|
46065
|
+
? val.denylist.map(function (itm) {
|
|
46066
|
+
return deserializeUserOrGroupReferenceV2025R0(itm);
|
|
46067
|
+
})
|
|
46068
|
+
: [];
|
|
46069
|
+
return {
|
|
46070
|
+
id: id,
|
|
46071
|
+
feature: feature,
|
|
46072
|
+
state: state,
|
|
46073
|
+
canConfigure: canConfigure,
|
|
46074
|
+
isConfigured: isConfigured,
|
|
46075
|
+
allowlist: allowlist,
|
|
46076
|
+
denylist: denylist,
|
|
46077
|
+
};
|
|
46078
|
+
}
|
|
46079
|
+
|
|
46080
|
+
function deserializeEnterpriseFeatureSettingsItemV2025R0(val) {
|
|
46081
|
+
if (!sdIsMap(val)) {
|
|
46082
|
+
throw new BoxSdkError({
|
|
46083
|
+
message: 'Expecting a map for "EnterpriseFeatureSettingsItemV2025R0"',
|
|
46084
|
+
});
|
|
46085
|
+
}
|
|
46086
|
+
const value = val.value == void 0
|
|
46087
|
+
? void 0
|
|
46088
|
+
: deserializeEnterpriseFeatureSettingV2025R0(val.value);
|
|
46089
|
+
if (!(val.is_used == void 0) && !sdIsBoolean(val.is_used)) {
|
|
46090
|
+
throw new BoxSdkError({
|
|
46091
|
+
message: 'Expecting boolean for "is_used" of type "EnterpriseFeatureSettingsItemV2025R0"',
|
|
46092
|
+
});
|
|
46093
|
+
}
|
|
46094
|
+
const isUsed = val.is_used == void 0 ? void 0 : val.is_used;
|
|
46095
|
+
return {
|
|
46096
|
+
value: value,
|
|
46097
|
+
isUsed: isUsed,
|
|
46098
|
+
};
|
|
46099
|
+
}
|
|
46100
|
+
|
|
46101
|
+
function deserializeSharedLinkPermissionsV2025R0(val) {
|
|
46102
|
+
if (!sdIsMap(val)) {
|
|
46103
|
+
throw new BoxSdkError({
|
|
46104
|
+
message: 'Expecting a map for "SharedLinkPermissionsV2025R0"',
|
|
46105
|
+
});
|
|
46106
|
+
}
|
|
46107
|
+
if (!(val.shared_links_option == void 0) &&
|
|
46108
|
+
!sdIsString(val.shared_links_option)) {
|
|
46109
|
+
throw new BoxSdkError({
|
|
46110
|
+
message: 'Expecting string for "shared_links_option" of type "SharedLinkPermissionsV2025R0"',
|
|
46111
|
+
});
|
|
46112
|
+
}
|
|
46113
|
+
const sharedLinksOption = val.shared_links_option == void 0 ? void 0 : val.shared_links_option;
|
|
46114
|
+
if (!(val.default_shared_link_type == void 0) &&
|
|
46115
|
+
!sdIsString(val.default_shared_link_type)) {
|
|
46116
|
+
throw new BoxSdkError({
|
|
46117
|
+
message: 'Expecting string for "default_shared_link_type" of type "SharedLinkPermissionsV2025R0"',
|
|
46118
|
+
});
|
|
46119
|
+
}
|
|
46120
|
+
const defaultSharedLinkType = val.default_shared_link_type == void 0
|
|
46121
|
+
? void 0
|
|
46122
|
+
: val.default_shared_link_type;
|
|
46123
|
+
if (!(val.notes_shared_link_option == void 0) &&
|
|
46124
|
+
!sdIsString(val.notes_shared_link_option)) {
|
|
46125
|
+
throw new BoxSdkError({
|
|
46126
|
+
message: 'Expecting string for "notes_shared_link_option" of type "SharedLinkPermissionsV2025R0"',
|
|
46127
|
+
});
|
|
46128
|
+
}
|
|
46129
|
+
const notesSharedLinkOption = val.notes_shared_link_option == void 0
|
|
46130
|
+
? void 0
|
|
46131
|
+
: val.notes_shared_link_option;
|
|
46132
|
+
if (!(val.default_notes_shared_link_type == void 0) &&
|
|
46133
|
+
!sdIsString(val.default_notes_shared_link_type)) {
|
|
46134
|
+
throw new BoxSdkError({
|
|
46135
|
+
message: 'Expecting string for "default_notes_shared_link_type" of type "SharedLinkPermissionsV2025R0"',
|
|
46136
|
+
});
|
|
46137
|
+
}
|
|
46138
|
+
const defaultNotesSharedLinkType = val.default_notes_shared_link_type == void 0
|
|
46139
|
+
? void 0
|
|
46140
|
+
: val.default_notes_shared_link_type;
|
|
46141
|
+
return {
|
|
46142
|
+
sharedLinksOption: sharedLinksOption,
|
|
46143
|
+
defaultSharedLinkType: defaultSharedLinkType,
|
|
46144
|
+
notesSharedLinkOption: notesSharedLinkOption,
|
|
46145
|
+
defaultNotesSharedLinkType: defaultNotesSharedLinkType,
|
|
46146
|
+
};
|
|
46147
|
+
}
|
|
46148
|
+
|
|
46149
|
+
function deserializeCollaborationPermissionsV2025R0(val) {
|
|
46150
|
+
if (!sdIsMap(val)) {
|
|
46151
|
+
throw new BoxSdkError({
|
|
46152
|
+
message: 'Expecting a map for "CollaborationPermissionsV2025R0"',
|
|
46153
|
+
});
|
|
46154
|
+
}
|
|
46155
|
+
if (!(val.is_co_owner_role_enabled == void 0) &&
|
|
46156
|
+
!sdIsBoolean(val.is_co_owner_role_enabled)) {
|
|
46157
|
+
throw new BoxSdkError({
|
|
46158
|
+
message: 'Expecting boolean for "is_co_owner_role_enabled" of type "CollaborationPermissionsV2025R0"',
|
|
46159
|
+
});
|
|
46160
|
+
}
|
|
46161
|
+
const isCoOwnerRoleEnabled = val.is_co_owner_role_enabled == void 0
|
|
46162
|
+
? void 0
|
|
46163
|
+
: val.is_co_owner_role_enabled;
|
|
46164
|
+
if (!(val.is_editor_role_enabled == void 0) &&
|
|
46165
|
+
!sdIsBoolean(val.is_editor_role_enabled)) {
|
|
46166
|
+
throw new BoxSdkError({
|
|
46167
|
+
message: 'Expecting boolean for "is_editor_role_enabled" of type "CollaborationPermissionsV2025R0"',
|
|
46168
|
+
});
|
|
46169
|
+
}
|
|
46170
|
+
const isEditorRoleEnabled = val.is_editor_role_enabled == void 0 ? void 0 : val.is_editor_role_enabled;
|
|
46171
|
+
if (!(val.is_previewer_role_enabled == void 0) &&
|
|
46172
|
+
!sdIsBoolean(val.is_previewer_role_enabled)) {
|
|
46173
|
+
throw new BoxSdkError({
|
|
46174
|
+
message: 'Expecting boolean for "is_previewer_role_enabled" of type "CollaborationPermissionsV2025R0"',
|
|
46175
|
+
});
|
|
46176
|
+
}
|
|
46177
|
+
const isPreviewerRoleEnabled = val.is_previewer_role_enabled == void 0
|
|
46178
|
+
? void 0
|
|
46179
|
+
: val.is_previewer_role_enabled;
|
|
46180
|
+
if (!(val.is_previewer_uploader_role_enabled == void 0) &&
|
|
46181
|
+
!sdIsBoolean(val.is_previewer_uploader_role_enabled)) {
|
|
46182
|
+
throw new BoxSdkError({
|
|
46183
|
+
message: 'Expecting boolean for "is_previewer_uploader_role_enabled" of type "CollaborationPermissionsV2025R0"',
|
|
46184
|
+
});
|
|
46185
|
+
}
|
|
46186
|
+
const isPreviewerUploaderRoleEnabled = val.is_previewer_uploader_role_enabled == void 0
|
|
46187
|
+
? void 0
|
|
46188
|
+
: val.is_previewer_uploader_role_enabled;
|
|
46189
|
+
if (!(val.is_uploader_role_enabled == void 0) &&
|
|
46190
|
+
!sdIsBoolean(val.is_uploader_role_enabled)) {
|
|
46191
|
+
throw new BoxSdkError({
|
|
46192
|
+
message: 'Expecting boolean for "is_uploader_role_enabled" of type "CollaborationPermissionsV2025R0"',
|
|
46193
|
+
});
|
|
46194
|
+
}
|
|
46195
|
+
const isUploaderRoleEnabled = val.is_uploader_role_enabled == void 0
|
|
46196
|
+
? void 0
|
|
46197
|
+
: val.is_uploader_role_enabled;
|
|
46198
|
+
if (!(val.is_viewer_role_enabled == void 0) &&
|
|
46199
|
+
!sdIsBoolean(val.is_viewer_role_enabled)) {
|
|
46200
|
+
throw new BoxSdkError({
|
|
46201
|
+
message: 'Expecting boolean for "is_viewer_role_enabled" of type "CollaborationPermissionsV2025R0"',
|
|
46202
|
+
});
|
|
46203
|
+
}
|
|
46204
|
+
const isViewerRoleEnabled = val.is_viewer_role_enabled == void 0 ? void 0 : val.is_viewer_role_enabled;
|
|
46205
|
+
if (!(val.is_viewer_uploader_role_enabled == void 0) &&
|
|
46206
|
+
!sdIsBoolean(val.is_viewer_uploader_role_enabled)) {
|
|
46207
|
+
throw new BoxSdkError({
|
|
46208
|
+
message: 'Expecting boolean for "is_viewer_uploader_role_enabled" of type "CollaborationPermissionsV2025R0"',
|
|
46209
|
+
});
|
|
46210
|
+
}
|
|
46211
|
+
const isViewerUploaderRoleEnabled = val.is_viewer_uploader_role_enabled == void 0
|
|
46212
|
+
? void 0
|
|
46213
|
+
: val.is_viewer_uploader_role_enabled;
|
|
46214
|
+
return {
|
|
46215
|
+
isCoOwnerRoleEnabled: isCoOwnerRoleEnabled,
|
|
46216
|
+
isEditorRoleEnabled: isEditorRoleEnabled,
|
|
46217
|
+
isPreviewerRoleEnabled: isPreviewerRoleEnabled,
|
|
46218
|
+
isPreviewerUploaderRoleEnabled: isPreviewerUploaderRoleEnabled,
|
|
46219
|
+
isUploaderRoleEnabled: isUploaderRoleEnabled,
|
|
46220
|
+
isViewerRoleEnabled: isViewerRoleEnabled,
|
|
46221
|
+
isViewerUploaderRoleEnabled: isViewerUploaderRoleEnabled,
|
|
46222
|
+
};
|
|
46223
|
+
}
|
|
46224
|
+
|
|
46225
|
+
function deserializeListUserV2025R0(val) {
|
|
46226
|
+
if (!sdIsMap(val)) {
|
|
46227
|
+
throw new BoxSdkError({ message: 'Expecting a map for "ListUserV2025R0"' });
|
|
46228
|
+
}
|
|
46229
|
+
if (!(val.id == void 0) && !sdIsNumber(val.id)) {
|
|
46230
|
+
throw new BoxSdkError({
|
|
46231
|
+
message: 'Expecting number for "id" of type "ListUserV2025R0"',
|
|
46232
|
+
});
|
|
46233
|
+
}
|
|
46234
|
+
const id = val.id == void 0 ? void 0 : val.id;
|
|
46235
|
+
if (!(val.name == void 0) && !sdIsString(val.name)) {
|
|
46236
|
+
throw new BoxSdkError({
|
|
46237
|
+
message: 'Expecting string for "name" of type "ListUserV2025R0"',
|
|
46238
|
+
});
|
|
46239
|
+
}
|
|
46240
|
+
const name = val.name == void 0 ? void 0 : val.name;
|
|
46241
|
+
if (!(val.email == void 0) && !sdIsString(val.email)) {
|
|
46242
|
+
throw new BoxSdkError({
|
|
46243
|
+
message: 'Expecting string for "email" of type "ListUserV2025R0"',
|
|
46244
|
+
});
|
|
46245
|
+
}
|
|
46246
|
+
const email = val.email == void 0 ? void 0 : val.email;
|
|
46247
|
+
return { id: id, name: name, email: email };
|
|
46248
|
+
}
|
|
46249
|
+
|
|
46250
|
+
function deserializeEnterpriseConfigurationContentAndSharingV2025R0SharedLinkDefaultPermissionsSelectedField(val) {
|
|
46251
|
+
if (!sdIsMap(val)) {
|
|
46252
|
+
throw new BoxSdkError({
|
|
46253
|
+
message: 'Expecting a map for "EnterpriseConfigurationContentAndSharingV2025R0SharedLinkDefaultPermissionsSelectedField"',
|
|
46254
|
+
});
|
|
46255
|
+
}
|
|
46256
|
+
const value = val.value == void 0
|
|
46257
|
+
? void 0
|
|
46258
|
+
: deserializeSharedLinkPermissionsV2025R0(val.value);
|
|
46259
|
+
if (!(val.is_used == void 0) && !sdIsBoolean(val.is_used)) {
|
|
46260
|
+
throw new BoxSdkError({
|
|
46261
|
+
message: 'Expecting boolean for "is_used" of type "EnterpriseConfigurationContentAndSharingV2025R0SharedLinkDefaultPermissionsSelectedField"',
|
|
46262
|
+
});
|
|
46263
|
+
}
|
|
46264
|
+
const isUsed = val.is_used == void 0 ? void 0 : val.is_used;
|
|
46265
|
+
return {
|
|
46266
|
+
value: value,
|
|
46267
|
+
isUsed: isUsed,
|
|
46268
|
+
};
|
|
46269
|
+
}
|
|
46270
|
+
function deserializeEnterpriseConfigurationContentAndSharingV2025R0CollaborationPermissionsField(val) {
|
|
46271
|
+
if (!sdIsMap(val)) {
|
|
46272
|
+
throw new BoxSdkError({
|
|
46273
|
+
message: 'Expecting a map for "EnterpriseConfigurationContentAndSharingV2025R0CollaborationPermissionsField"',
|
|
46274
|
+
});
|
|
46275
|
+
}
|
|
46276
|
+
const value = val.value == void 0
|
|
46277
|
+
? void 0
|
|
46278
|
+
: deserializeCollaborationPermissionsV2025R0(val.value);
|
|
46279
|
+
if (!(val.is_used == void 0) && !sdIsBoolean(val.is_used)) {
|
|
46280
|
+
throw new BoxSdkError({
|
|
46281
|
+
message: 'Expecting boolean for "is_used" of type "EnterpriseConfigurationContentAndSharingV2025R0CollaborationPermissionsField"',
|
|
46282
|
+
});
|
|
46283
|
+
}
|
|
46284
|
+
const isUsed = val.is_used == void 0 ? void 0 : val.is_used;
|
|
46285
|
+
return {
|
|
46286
|
+
value: value,
|
|
46287
|
+
isUsed: isUsed,
|
|
46288
|
+
};
|
|
46289
|
+
}
|
|
46290
|
+
function deserializeEnterpriseConfigurationContentAndSharingV2025R0CollaborationRestrictionsField(val) {
|
|
46291
|
+
if (!sdIsMap(val)) {
|
|
46292
|
+
throw new BoxSdkError({
|
|
46293
|
+
message: 'Expecting a map for "EnterpriseConfigurationContentAndSharingV2025R0CollaborationRestrictionsField"',
|
|
46294
|
+
});
|
|
46295
|
+
}
|
|
46296
|
+
if (!(val.value == void 0) && !sdIsList(val.value)) {
|
|
46297
|
+
throw new BoxSdkError({
|
|
46298
|
+
message: 'Expecting array for "value" of type "EnterpriseConfigurationContentAndSharingV2025R0CollaborationRestrictionsField"',
|
|
46299
|
+
});
|
|
46300
|
+
}
|
|
46301
|
+
const value = val.value == void 0
|
|
46302
|
+
? void 0
|
|
46303
|
+
: sdIsList(val.value)
|
|
46304
|
+
? val.value.map(function (itm) {
|
|
46305
|
+
if (!sdIsString(itm)) {
|
|
46306
|
+
throw new BoxSdkError({
|
|
46307
|
+
message: 'Expecting string for "EnterpriseConfigurationContentAndSharingV2025R0CollaborationRestrictionsField"',
|
|
46308
|
+
});
|
|
46309
|
+
}
|
|
46310
|
+
return itm;
|
|
46311
|
+
})
|
|
46312
|
+
: [];
|
|
46313
|
+
if (!(val.is_used == void 0) && !sdIsBoolean(val.is_used)) {
|
|
46314
|
+
throw new BoxSdkError({
|
|
46315
|
+
message: 'Expecting boolean for "is_used" of type "EnterpriseConfigurationContentAndSharingV2025R0CollaborationRestrictionsField"',
|
|
46316
|
+
});
|
|
46317
|
+
}
|
|
46318
|
+
const isUsed = val.is_used == void 0 ? void 0 : val.is_used;
|
|
46319
|
+
return {
|
|
46320
|
+
value: value,
|
|
46321
|
+
isUsed: isUsed,
|
|
46322
|
+
};
|
|
46323
|
+
}
|
|
46324
|
+
function deserializeEnterpriseConfigurationContentAndSharingV2025R0ExternalCollaborationStatusField(val) {
|
|
46325
|
+
if (!sdIsMap(val)) {
|
|
46326
|
+
throw new BoxSdkError({
|
|
46327
|
+
message: 'Expecting a map for "EnterpriseConfigurationContentAndSharingV2025R0ExternalCollaborationStatusField"',
|
|
46328
|
+
});
|
|
46329
|
+
}
|
|
46330
|
+
if (!(val.value == void 0) && !sdIsString(val.value)) {
|
|
46331
|
+
throw new BoxSdkError({
|
|
46332
|
+
message: 'Expecting string for "value" of type "EnterpriseConfigurationContentAndSharingV2025R0ExternalCollaborationStatusField"',
|
|
46333
|
+
});
|
|
46334
|
+
}
|
|
46335
|
+
const value = val.value == void 0 ? void 0 : val.value;
|
|
46336
|
+
if (!(val.is_used == void 0) && !sdIsBoolean(val.is_used)) {
|
|
46337
|
+
throw new BoxSdkError({
|
|
46338
|
+
message: 'Expecting boolean for "is_used" of type "EnterpriseConfigurationContentAndSharingV2025R0ExternalCollaborationStatusField"',
|
|
46339
|
+
});
|
|
46340
|
+
}
|
|
46341
|
+
const isUsed = val.is_used == void 0 ? void 0 : val.is_used;
|
|
46342
|
+
return {
|
|
46343
|
+
value: value,
|
|
46344
|
+
isUsed: isUsed,
|
|
46345
|
+
};
|
|
46346
|
+
}
|
|
46347
|
+
function deserializeEnterpriseConfigurationContentAndSharingV2025R0ExternalCollaborationAllowlistUsersField(val) {
|
|
46348
|
+
if (!sdIsMap(val)) {
|
|
46349
|
+
throw new BoxSdkError({
|
|
46350
|
+
message: 'Expecting a map for "EnterpriseConfigurationContentAndSharingV2025R0ExternalCollaborationAllowlistUsersField"',
|
|
46351
|
+
});
|
|
46352
|
+
}
|
|
46353
|
+
if (!(val.value == void 0) && !sdIsList(val.value)) {
|
|
46354
|
+
throw new BoxSdkError({
|
|
46355
|
+
message: 'Expecting array for "value" of type "EnterpriseConfigurationContentAndSharingV2025R0ExternalCollaborationAllowlistUsersField"',
|
|
46356
|
+
});
|
|
46357
|
+
}
|
|
46358
|
+
const value = val.value == void 0
|
|
46359
|
+
? void 0
|
|
46360
|
+
: sdIsList(val.value)
|
|
46361
|
+
? val.value.map(function (itm) {
|
|
46362
|
+
return deserializeListUserV2025R0(itm);
|
|
46363
|
+
})
|
|
46364
|
+
: [];
|
|
46365
|
+
if (!(val.is_used == void 0) && !sdIsBoolean(val.is_used)) {
|
|
46366
|
+
throw new BoxSdkError({
|
|
46367
|
+
message: 'Expecting boolean for "is_used" of type "EnterpriseConfigurationContentAndSharingV2025R0ExternalCollaborationAllowlistUsersField"',
|
|
46368
|
+
});
|
|
46369
|
+
}
|
|
46370
|
+
const isUsed = val.is_used == void 0 ? void 0 : val.is_used;
|
|
46371
|
+
return {
|
|
46372
|
+
value: value,
|
|
46373
|
+
isUsed: isUsed,
|
|
46374
|
+
};
|
|
46375
|
+
}
|
|
46376
|
+
function deserializeEnterpriseConfigurationContentAndSharingV2025R0PermanentDeletionAllowlistUsersField(val) {
|
|
46377
|
+
if (!sdIsMap(val)) {
|
|
46378
|
+
throw new BoxSdkError({
|
|
46379
|
+
message: 'Expecting a map for "EnterpriseConfigurationContentAndSharingV2025R0PermanentDeletionAllowlistUsersField"',
|
|
46380
|
+
});
|
|
46381
|
+
}
|
|
46382
|
+
if (!(val.value == void 0) && !sdIsList(val.value)) {
|
|
46383
|
+
throw new BoxSdkError({
|
|
46384
|
+
message: 'Expecting array for "value" of type "EnterpriseConfigurationContentAndSharingV2025R0PermanentDeletionAllowlistUsersField"',
|
|
46385
|
+
});
|
|
46386
|
+
}
|
|
46387
|
+
const value = val.value == void 0
|
|
46388
|
+
? void 0
|
|
46389
|
+
: sdIsList(val.value)
|
|
46390
|
+
? val.value.map(function (itm) {
|
|
46391
|
+
return deserializeListUserV2025R0(itm);
|
|
46392
|
+
})
|
|
46393
|
+
: [];
|
|
46394
|
+
if (!(val.is_used == void 0) && !sdIsBoolean(val.is_used)) {
|
|
46395
|
+
throw new BoxSdkError({
|
|
46396
|
+
message: 'Expecting boolean for "is_used" of type "EnterpriseConfigurationContentAndSharingV2025R0PermanentDeletionAllowlistUsersField"',
|
|
46397
|
+
});
|
|
46398
|
+
}
|
|
46399
|
+
const isUsed = val.is_used == void 0 ? void 0 : val.is_used;
|
|
46400
|
+
return {
|
|
46401
|
+
value: value,
|
|
46402
|
+
isUsed: isUsed,
|
|
46403
|
+
};
|
|
46404
|
+
}
|
|
46405
|
+
function deserializeEnterpriseConfigurationContentAndSharingV2025R0(val) {
|
|
46406
|
+
if (!sdIsMap(val)) {
|
|
46407
|
+
throw new BoxSdkError({
|
|
46408
|
+
message: 'Expecting a map for "EnterpriseConfigurationContentAndSharingV2025R0"',
|
|
46409
|
+
});
|
|
46410
|
+
}
|
|
46411
|
+
if (!(val.enterprise_feature_settings == void 0) &&
|
|
46412
|
+
!sdIsList(val.enterprise_feature_settings)) {
|
|
46413
|
+
throw new BoxSdkError({
|
|
46414
|
+
message: 'Expecting array for "enterprise_feature_settings" of type "EnterpriseConfigurationContentAndSharingV2025R0"',
|
|
46415
|
+
});
|
|
46416
|
+
}
|
|
46417
|
+
const enterpriseFeatureSettings = val.enterprise_feature_settings == void 0
|
|
46418
|
+
? void 0
|
|
46419
|
+
: sdIsList(val.enterprise_feature_settings)
|
|
46420
|
+
? val.enterprise_feature_settings.map(function (itm) {
|
|
46421
|
+
return deserializeEnterpriseFeatureSettingsItemV2025R0(itm);
|
|
46422
|
+
})
|
|
46423
|
+
: [];
|
|
46424
|
+
const sharingItemType = val.sharing_item_type == void 0
|
|
46425
|
+
? void 0
|
|
46426
|
+
: deserializeEnterpriseConfigurationItemStringV2025R0(val.sharing_item_type);
|
|
46427
|
+
const sharedLinkCompanyDefinition = val.shared_link_company_definition == void 0
|
|
46428
|
+
? void 0
|
|
46429
|
+
: deserializeEnterpriseConfigurationItemStringV2025R0(val.shared_link_company_definition);
|
|
46430
|
+
const sharedLinkAccess = val.shared_link_access == void 0
|
|
46431
|
+
? void 0
|
|
46432
|
+
: deserializeEnterpriseConfigurationItemStringV2025R0(val.shared_link_access);
|
|
46433
|
+
const sharedLinkDefaultAccess = val.shared_link_default_access == void 0
|
|
46434
|
+
? void 0
|
|
46435
|
+
: deserializeEnterpriseConfigurationItemStringV2025R0(val.shared_link_default_access);
|
|
46436
|
+
const sharedLinkDefaultPermissionsSelected = val.shared_link_default_permissions_selected == void 0
|
|
46437
|
+
? void 0
|
|
46438
|
+
: deserializeEnterpriseConfigurationContentAndSharingV2025R0SharedLinkDefaultPermissionsSelectedField(val.shared_link_default_permissions_selected);
|
|
46439
|
+
const isOpenCustomUrlsDisabled = val.is_open_custom_urls_disabled == void 0
|
|
46440
|
+
? void 0
|
|
46441
|
+
: deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_open_custom_urls_disabled);
|
|
46442
|
+
const isCustomDomainHiddenInSharedLink = val.is_custom_domain_hidden_in_shared_link == void 0
|
|
46443
|
+
? void 0
|
|
46444
|
+
: deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_custom_domain_hidden_in_shared_link);
|
|
46445
|
+
const collaborationPermissions = val.collaboration_permissions == void 0
|
|
46446
|
+
? void 0
|
|
46447
|
+
: deserializeEnterpriseConfigurationContentAndSharingV2025R0CollaborationPermissionsField(val.collaboration_permissions);
|
|
46448
|
+
const defaultCollaborationRole = val.default_collaboration_role == void 0
|
|
46449
|
+
? void 0
|
|
46450
|
+
: deserializeEnterpriseConfigurationItemStringV2025R0(val.default_collaboration_role);
|
|
46451
|
+
const isInvitePrivilegeRestricted = val.is_invite_privilege_restricted == void 0
|
|
46452
|
+
? void 0
|
|
46453
|
+
: deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_invite_privilege_restricted);
|
|
46454
|
+
const collaborationRestrictions = val.collaboration_restrictions == void 0
|
|
46455
|
+
? void 0
|
|
46456
|
+
: deserializeEnterpriseConfigurationContentAndSharingV2025R0CollaborationRestrictionsField(val.collaboration_restrictions);
|
|
46457
|
+
const isCollaboratorInviteLinksDisabled = val.is_collaborator_invite_links_disabled == void 0
|
|
46458
|
+
? void 0
|
|
46459
|
+
: deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_collaborator_invite_links_disabled);
|
|
46460
|
+
const isInviteGroupCollaboratorDisabled = val.is_invite_group_collaborator_disabled == void 0
|
|
46461
|
+
? void 0
|
|
46462
|
+
: deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_invite_group_collaborator_disabled);
|
|
46463
|
+
const isOwnershipTransferRestricted = val.is_ownership_transfer_restricted == void 0
|
|
46464
|
+
? void 0
|
|
46465
|
+
: deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_ownership_transfer_restricted);
|
|
46466
|
+
const externalCollaborationStatus = val.external_collaboration_status == void 0
|
|
46467
|
+
? void 0
|
|
46468
|
+
: deserializeEnterpriseConfigurationContentAndSharingV2025R0ExternalCollaborationStatusField(val.external_collaboration_status);
|
|
46469
|
+
const externalCollaborationAllowlistUsers = val.external_collaboration_allowlist_users == void 0
|
|
46470
|
+
? void 0
|
|
46471
|
+
: deserializeEnterpriseConfigurationContentAndSharingV2025R0ExternalCollaborationAllowlistUsersField(val.external_collaboration_allowlist_users);
|
|
46472
|
+
const isWatermarkingEnterpriseFeatureEnabled = val.is_watermarking_enterprise_feature_enabled == void 0
|
|
46473
|
+
? void 0
|
|
46474
|
+
: deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_watermarking_enterprise_feature_enabled);
|
|
46475
|
+
const isRootContentCreationRestricted = val.is_root_content_creation_restricted == void 0
|
|
46476
|
+
? void 0
|
|
46477
|
+
: deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_root_content_creation_restricted);
|
|
46478
|
+
const isTagCreationRestricted = val.is_tag_creation_restricted == void 0
|
|
46479
|
+
? void 0
|
|
46480
|
+
: deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_tag_creation_restricted);
|
|
46481
|
+
const tagCreationRestriction = val.tag_creation_restriction == void 0
|
|
46482
|
+
? void 0
|
|
46483
|
+
: deserializeEnterpriseConfigurationItemStringV2025R0(val.tag_creation_restriction);
|
|
46484
|
+
const isEmailUploadsEnabled = val.is_email_uploads_enabled == void 0
|
|
46485
|
+
? void 0
|
|
46486
|
+
: deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_email_uploads_enabled);
|
|
46487
|
+
const isCustomSettingsEnabled = val.is_custom_settings_enabled == void 0
|
|
46488
|
+
? void 0
|
|
46489
|
+
: deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_custom_settings_enabled);
|
|
46490
|
+
const isFormsLoginRequired = val.is_forms_login_required == void 0
|
|
46491
|
+
? void 0
|
|
46492
|
+
: deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_forms_login_required);
|
|
46493
|
+
const isFormsBrandingDefaultEnabled = val.is_forms_branding_default_enabled == void 0
|
|
46494
|
+
? void 0
|
|
46495
|
+
: deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_forms_branding_default_enabled);
|
|
46496
|
+
const isCcFreeTrialActive = val.is_cc_free_trial_active == void 0
|
|
46497
|
+
? void 0
|
|
46498
|
+
: deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_cc_free_trial_active);
|
|
46499
|
+
const isFileRequestEditorsAllowed = val.is_file_request_editors_allowed == void 0
|
|
46500
|
+
? void 0
|
|
46501
|
+
: deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_file_request_editors_allowed);
|
|
46502
|
+
const isFileRequestBrandingDefaultEnabled = val.is_file_request_branding_default_enabled == void 0
|
|
46503
|
+
? void 0
|
|
46504
|
+
: deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_file_request_branding_default_enabled);
|
|
46505
|
+
const isFileRequestLoginRequired = val.is_file_request_login_required == void 0
|
|
46506
|
+
? void 0
|
|
46507
|
+
: deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_file_request_login_required);
|
|
46508
|
+
const isSharedLinksExpirationEnabled = val.is_shared_links_expiration_enabled == void 0
|
|
46509
|
+
? void 0
|
|
46510
|
+
: deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_shared_links_expiration_enabled);
|
|
46511
|
+
const sharedLinksExpirationDays = val.shared_links_expiration_days == void 0
|
|
46512
|
+
? void 0
|
|
46513
|
+
: deserializeEnterpriseConfigurationItemIntegerV2025R0(val.shared_links_expiration_days);
|
|
46514
|
+
const isPublicSharedLinksExpirationEnabled = val.is_public_shared_links_expiration_enabled == void 0
|
|
46515
|
+
? void 0
|
|
46516
|
+
: deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_public_shared_links_expiration_enabled);
|
|
46517
|
+
const publicSharedLinksExpirationDays = val.public_shared_links_expiration_days == void 0
|
|
46518
|
+
? void 0
|
|
46519
|
+
: deserializeEnterpriseConfigurationItemIntegerV2025R0(val.public_shared_links_expiration_days);
|
|
46520
|
+
const sharedExpirationTarget = val.shared_expiration_target == void 0
|
|
46521
|
+
? void 0
|
|
46522
|
+
: deserializeEnterpriseConfigurationItemStringV2025R0(val.shared_expiration_target);
|
|
46523
|
+
const isSharedLinksExpirationNotificationEnabled = val.is_shared_links_expiration_notification_enabled == void 0
|
|
46524
|
+
? void 0
|
|
46525
|
+
: deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_shared_links_expiration_notification_enabled);
|
|
46526
|
+
const sharedLinksExpirationNotificationDays = val.shared_links_expiration_notification_days == void 0
|
|
46527
|
+
? void 0
|
|
46528
|
+
: deserializeEnterpriseConfigurationItemIntegerV2025R0(val.shared_links_expiration_notification_days);
|
|
46529
|
+
const isSharedLinksExpirationNotificationPrevented = val.is_shared_links_expiration_notification_prevented == void 0
|
|
46530
|
+
? void 0
|
|
46531
|
+
: deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_shared_links_expiration_notification_prevented);
|
|
46532
|
+
const isAutoDeleteEnabled = val.is_auto_delete_enabled == void 0
|
|
46533
|
+
? void 0
|
|
46534
|
+
: deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_auto_delete_enabled);
|
|
46535
|
+
const autoDeleteDays = val.auto_delete_days == void 0
|
|
46536
|
+
? void 0
|
|
46537
|
+
: deserializeEnterpriseConfigurationItemIntegerV2025R0(val.auto_delete_days);
|
|
46538
|
+
const isAutoDeleteExpirationModificationPrevented = val.is_auto_delete_expiration_modification_prevented == void 0
|
|
46539
|
+
? void 0
|
|
46540
|
+
: deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_auto_delete_expiration_modification_prevented);
|
|
46541
|
+
const autoDeleteTarget = val.auto_delete_target == void 0
|
|
46542
|
+
? void 0
|
|
46543
|
+
: deserializeEnterpriseConfigurationItemStringV2025R0(val.auto_delete_target);
|
|
46544
|
+
const isCollaborationExpirationEnabled = val.is_collaboration_expiration_enabled == void 0
|
|
46545
|
+
? void 0
|
|
46546
|
+
: deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_collaboration_expiration_enabled);
|
|
46547
|
+
const collaborationExpirationDays = val.collaboration_expiration_days == void 0
|
|
46548
|
+
? void 0
|
|
46549
|
+
: deserializeEnterpriseConfigurationItemIntegerV2025R0(val.collaboration_expiration_days);
|
|
46550
|
+
const isCollaborationExpirationModificationPrevented = val.is_collaboration_expiration_modification_prevented == void 0
|
|
46551
|
+
? void 0
|
|
46552
|
+
: deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_collaboration_expiration_modification_prevented);
|
|
46553
|
+
const isCollaborationExpirationNotificationEnabled = val.is_collaboration_expiration_notification_enabled == void 0
|
|
46554
|
+
? void 0
|
|
46555
|
+
: deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_collaboration_expiration_notification_enabled);
|
|
46556
|
+
const collaborationExpirationTarget = val.collaboration_expiration_target == void 0
|
|
46557
|
+
? void 0
|
|
46558
|
+
: deserializeEnterpriseConfigurationItemStringV2025R0(val.collaboration_expiration_target);
|
|
46559
|
+
const trashAutoClearTime = val.trash_auto_clear_time == void 0
|
|
46560
|
+
? void 0
|
|
46561
|
+
: deserializeEnterpriseConfigurationItemIntegerV2025R0(val.trash_auto_clear_time);
|
|
46562
|
+
const permanentDeletionAccess = val.permanent_deletion_access == void 0
|
|
46563
|
+
? void 0
|
|
46564
|
+
: deserializeEnterpriseConfigurationItemStringV2025R0(val.permanent_deletion_access);
|
|
46565
|
+
const permanentDeletionAllowlistUsers = val.permanent_deletion_allowlist_users == void 0
|
|
46566
|
+
? void 0
|
|
46567
|
+
: deserializeEnterpriseConfigurationContentAndSharingV2025R0PermanentDeletionAllowlistUsersField(val.permanent_deletion_allowlist_users);
|
|
46568
|
+
return {
|
|
46569
|
+
enterpriseFeatureSettings: enterpriseFeatureSettings,
|
|
46570
|
+
sharingItemType: sharingItemType,
|
|
46571
|
+
sharedLinkCompanyDefinition: sharedLinkCompanyDefinition,
|
|
46572
|
+
sharedLinkAccess: sharedLinkAccess,
|
|
46573
|
+
sharedLinkDefaultAccess: sharedLinkDefaultAccess,
|
|
46574
|
+
sharedLinkDefaultPermissionsSelected: sharedLinkDefaultPermissionsSelected,
|
|
46575
|
+
isOpenCustomUrlsDisabled: isOpenCustomUrlsDisabled,
|
|
46576
|
+
isCustomDomainHiddenInSharedLink: isCustomDomainHiddenInSharedLink,
|
|
46577
|
+
collaborationPermissions: collaborationPermissions,
|
|
46578
|
+
defaultCollaborationRole: defaultCollaborationRole,
|
|
46579
|
+
isInvitePrivilegeRestricted: isInvitePrivilegeRestricted,
|
|
46580
|
+
collaborationRestrictions: collaborationRestrictions,
|
|
46581
|
+
isCollaboratorInviteLinksDisabled: isCollaboratorInviteLinksDisabled,
|
|
46582
|
+
isInviteGroupCollaboratorDisabled: isInviteGroupCollaboratorDisabled,
|
|
46583
|
+
isOwnershipTransferRestricted: isOwnershipTransferRestricted,
|
|
46584
|
+
externalCollaborationStatus: externalCollaborationStatus,
|
|
46585
|
+
externalCollaborationAllowlistUsers: externalCollaborationAllowlistUsers,
|
|
46586
|
+
isWatermarkingEnterpriseFeatureEnabled: isWatermarkingEnterpriseFeatureEnabled,
|
|
46587
|
+
isRootContentCreationRestricted: isRootContentCreationRestricted,
|
|
46588
|
+
isTagCreationRestricted: isTagCreationRestricted,
|
|
46589
|
+
tagCreationRestriction: tagCreationRestriction,
|
|
46590
|
+
isEmailUploadsEnabled: isEmailUploadsEnabled,
|
|
46591
|
+
isCustomSettingsEnabled: isCustomSettingsEnabled,
|
|
46592
|
+
isFormsLoginRequired: isFormsLoginRequired,
|
|
46593
|
+
isFormsBrandingDefaultEnabled: isFormsBrandingDefaultEnabled,
|
|
46594
|
+
isCcFreeTrialActive: isCcFreeTrialActive,
|
|
46595
|
+
isFileRequestEditorsAllowed: isFileRequestEditorsAllowed,
|
|
46596
|
+
isFileRequestBrandingDefaultEnabled: isFileRequestBrandingDefaultEnabled,
|
|
46597
|
+
isFileRequestLoginRequired: isFileRequestLoginRequired,
|
|
46598
|
+
isSharedLinksExpirationEnabled: isSharedLinksExpirationEnabled,
|
|
46599
|
+
sharedLinksExpirationDays: sharedLinksExpirationDays,
|
|
46600
|
+
isPublicSharedLinksExpirationEnabled: isPublicSharedLinksExpirationEnabled,
|
|
46601
|
+
publicSharedLinksExpirationDays: publicSharedLinksExpirationDays,
|
|
46602
|
+
sharedExpirationTarget: sharedExpirationTarget,
|
|
46603
|
+
isSharedLinksExpirationNotificationEnabled: isSharedLinksExpirationNotificationEnabled,
|
|
46604
|
+
sharedLinksExpirationNotificationDays: sharedLinksExpirationNotificationDays,
|
|
46605
|
+
isSharedLinksExpirationNotificationPrevented: isSharedLinksExpirationNotificationPrevented,
|
|
46606
|
+
isAutoDeleteEnabled: isAutoDeleteEnabled,
|
|
46607
|
+
autoDeleteDays: autoDeleteDays,
|
|
46608
|
+
isAutoDeleteExpirationModificationPrevented: isAutoDeleteExpirationModificationPrevented,
|
|
46609
|
+
autoDeleteTarget: autoDeleteTarget,
|
|
46610
|
+
isCollaborationExpirationEnabled: isCollaborationExpirationEnabled,
|
|
46611
|
+
collaborationExpirationDays: collaborationExpirationDays,
|
|
46612
|
+
isCollaborationExpirationModificationPrevented: isCollaborationExpirationModificationPrevented,
|
|
46613
|
+
isCollaborationExpirationNotificationEnabled: isCollaborationExpirationNotificationEnabled,
|
|
46614
|
+
collaborationExpirationTarget: collaborationExpirationTarget,
|
|
46615
|
+
trashAutoClearTime: trashAutoClearTime,
|
|
46616
|
+
permanentDeletionAccess: permanentDeletionAccess,
|
|
46617
|
+
permanentDeletionAllowlistUsers: permanentDeletionAllowlistUsers,
|
|
46618
|
+
};
|
|
46619
|
+
}
|
|
46620
|
+
|
|
46621
|
+
function deserializeUserTrackingCodeV2025R0(val) {
|
|
46622
|
+
if (!sdIsMap(val)) {
|
|
46623
|
+
throw new BoxSdkError({
|
|
46624
|
+
message: 'Expecting a map for "UserTrackingCodeV2025R0"',
|
|
46625
|
+
});
|
|
46626
|
+
}
|
|
46627
|
+
if (!(val.id == void 0) && !sdIsNumber(val.id)) {
|
|
46628
|
+
throw new BoxSdkError({
|
|
46629
|
+
message: 'Expecting number for "id" of type "UserTrackingCodeV2025R0"',
|
|
46630
|
+
});
|
|
46631
|
+
}
|
|
46632
|
+
const id = val.id == void 0 ? void 0 : val.id;
|
|
46633
|
+
if (!(val.name == void 0) && !sdIsString(val.name)) {
|
|
46634
|
+
throw new BoxSdkError({
|
|
46635
|
+
message: 'Expecting string for "name" of type "UserTrackingCodeV2025R0"',
|
|
46636
|
+
});
|
|
46637
|
+
}
|
|
46638
|
+
const name = val.name == void 0 ? void 0 : val.name;
|
|
46639
|
+
return { id: id, name: name };
|
|
46640
|
+
}
|
|
46641
|
+
|
|
46642
|
+
function deserializeEnterpriseConfigurationUserSettingsV2025R0UserTrackingCodesField(val) {
|
|
46643
|
+
if (!sdIsMap(val)) {
|
|
46644
|
+
throw new BoxSdkError({
|
|
46645
|
+
message: 'Expecting a map for "EnterpriseConfigurationUserSettingsV2025R0UserTrackingCodesField"',
|
|
46646
|
+
});
|
|
46647
|
+
}
|
|
46648
|
+
if (!(val.value == void 0) && !sdIsList(val.value)) {
|
|
46649
|
+
throw new BoxSdkError({
|
|
46650
|
+
message: 'Expecting array for "value" of type "EnterpriseConfigurationUserSettingsV2025R0UserTrackingCodesField"',
|
|
46651
|
+
});
|
|
46652
|
+
}
|
|
46653
|
+
const value = val.value == void 0
|
|
46654
|
+
? void 0
|
|
46655
|
+
: sdIsList(val.value)
|
|
46656
|
+
? val.value.map(function (itm) {
|
|
46657
|
+
return deserializeUserTrackingCodeV2025R0(itm);
|
|
46658
|
+
})
|
|
46659
|
+
: [];
|
|
46660
|
+
if (!(val.is_used == void 0) && !sdIsBoolean(val.is_used)) {
|
|
46661
|
+
throw new BoxSdkError({
|
|
46662
|
+
message: 'Expecting boolean for "is_used" of type "EnterpriseConfigurationUserSettingsV2025R0UserTrackingCodesField"',
|
|
46663
|
+
});
|
|
46664
|
+
}
|
|
46665
|
+
const isUsed = val.is_used == void 0 ? void 0 : val.is_used;
|
|
46666
|
+
return {
|
|
46667
|
+
value: value,
|
|
46668
|
+
isUsed: isUsed,
|
|
46669
|
+
};
|
|
46670
|
+
}
|
|
46671
|
+
function deserializeEnterpriseConfigurationUserSettingsV2025R0(val) {
|
|
46672
|
+
if (!sdIsMap(val)) {
|
|
46673
|
+
throw new BoxSdkError({
|
|
46674
|
+
message: 'Expecting a map for "EnterpriseConfigurationUserSettingsV2025R0"',
|
|
46675
|
+
});
|
|
46676
|
+
}
|
|
46677
|
+
if (!(val.enterprise_feature_settings == void 0) &&
|
|
46678
|
+
!sdIsList(val.enterprise_feature_settings)) {
|
|
46679
|
+
throw new BoxSdkError({
|
|
46680
|
+
message: 'Expecting array for "enterprise_feature_settings" of type "EnterpriseConfigurationUserSettingsV2025R0"',
|
|
46681
|
+
});
|
|
46682
|
+
}
|
|
46683
|
+
const enterpriseFeatureSettings = val.enterprise_feature_settings == void 0
|
|
46684
|
+
? void 0
|
|
46685
|
+
: sdIsList(val.enterprise_feature_settings)
|
|
46686
|
+
? val.enterprise_feature_settings.map(function (itm) {
|
|
46687
|
+
return deserializeEnterpriseFeatureSettingsItemV2025R0(itm);
|
|
46688
|
+
})
|
|
46689
|
+
: [];
|
|
46690
|
+
const userInvitesExpirationTimeFrame = val.user_invites_expiration_time_frame == void 0
|
|
46691
|
+
? void 0
|
|
46692
|
+
: deserializeEnterpriseConfigurationItemStringV2025R0(val.user_invites_expiration_time_frame);
|
|
46693
|
+
const isUsernameChangeRestricted = val.is_username_change_restricted == void 0
|
|
46694
|
+
? void 0
|
|
46695
|
+
: deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_username_change_restricted);
|
|
46696
|
+
const isBoxSyncRestrictedForNewUsers = val.is_box_sync_restricted_for_new_users == void 0
|
|
46697
|
+
? void 0
|
|
46698
|
+
: deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_box_sync_restricted_for_new_users);
|
|
46699
|
+
const isViewAllUsersEnabledForNewUsers = val.is_view_all_users_enabled_for_new_users == void 0
|
|
46700
|
+
? void 0
|
|
46701
|
+
: deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_view_all_users_enabled_for_new_users);
|
|
46702
|
+
const isDeviceLimitExemptionEnabledForNewUsers = val.is_device_limit_exemption_enabled_for_new_users == void 0
|
|
46703
|
+
? void 0
|
|
46704
|
+
: deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_device_limit_exemption_enabled_for_new_users);
|
|
46705
|
+
const isExternalCollaborationRestrictedForNewUsers = val.is_external_collaboration_restricted_for_new_users == void 0
|
|
46706
|
+
? void 0
|
|
46707
|
+
: deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_external_collaboration_restricted_for_new_users);
|
|
46708
|
+
const isUnlimitedStorageEnabledForNewUsers = val.is_unlimited_storage_enabled_for_new_users == void 0
|
|
46709
|
+
? void 0
|
|
46710
|
+
: deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_unlimited_storage_enabled_for_new_users);
|
|
46711
|
+
const newUserDefaultStorageLimit = val.new_user_default_storage_limit == void 0
|
|
46712
|
+
? void 0
|
|
46713
|
+
: deserializeEnterpriseConfigurationItemIntegerV2025R0(val.new_user_default_storage_limit);
|
|
46714
|
+
const newUserDefaultTimezone = val.new_user_default_timezone == void 0
|
|
46715
|
+
? void 0
|
|
46716
|
+
: deserializeEnterpriseConfigurationItemStringV2025R0(val.new_user_default_timezone);
|
|
46717
|
+
const newUserDefaultLanguage = val.new_user_default_language == void 0
|
|
46718
|
+
? void 0
|
|
46719
|
+
: deserializeEnterpriseConfigurationItemStringV2025R0(val.new_user_default_language);
|
|
46720
|
+
const isEnterpriseSsoRequired = val.is_enterprise_sso_required == void 0
|
|
46721
|
+
? void 0
|
|
46722
|
+
: deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_enterprise_sso_required);
|
|
46723
|
+
const isEnterpriseSsoInTesting = val.is_enterprise_sso_in_testing == void 0
|
|
46724
|
+
? void 0
|
|
46725
|
+
: deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_enterprise_sso_in_testing);
|
|
46726
|
+
const isSsoAutoAddGroupsEnabled = val.is_sso_auto_add_groups_enabled == void 0
|
|
46727
|
+
? void 0
|
|
46728
|
+
: deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_sso_auto_add_groups_enabled);
|
|
46729
|
+
const isSsoAutoAddUserToGroupsEnabled = val.is_sso_auto_add_user_to_groups_enabled == void 0
|
|
46730
|
+
? void 0
|
|
46731
|
+
: deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_sso_auto_add_user_to_groups_enabled);
|
|
46732
|
+
const isSsoAutoRemoveUserFromGroupsEnabled = val.is_sso_auto_remove_user_from_groups_enabled == void 0
|
|
46733
|
+
? void 0
|
|
46734
|
+
: deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_sso_auto_remove_user_from_groups_enabled);
|
|
46735
|
+
const userTrackingCodes = val.user_tracking_codes == void 0
|
|
46736
|
+
? void 0
|
|
46737
|
+
: deserializeEnterpriseConfigurationUserSettingsV2025R0UserTrackingCodesField(val.user_tracking_codes);
|
|
46738
|
+
const numberOfUserTrackingCodesRemaining = val.number_of_user_tracking_codes_remaining == void 0
|
|
46739
|
+
? void 0
|
|
46740
|
+
: deserializeEnterpriseConfigurationItemIntegerV2025R0(val.number_of_user_tracking_codes_remaining);
|
|
46741
|
+
const isInstantLoginRestricted = val.is_instant_login_restricted == void 0
|
|
46742
|
+
? void 0
|
|
46743
|
+
: deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_instant_login_restricted);
|
|
46744
|
+
return {
|
|
46745
|
+
enterpriseFeatureSettings: enterpriseFeatureSettings,
|
|
46746
|
+
userInvitesExpirationTimeFrame: userInvitesExpirationTimeFrame,
|
|
46747
|
+
isUsernameChangeRestricted: isUsernameChangeRestricted,
|
|
46748
|
+
isBoxSyncRestrictedForNewUsers: isBoxSyncRestrictedForNewUsers,
|
|
46749
|
+
isViewAllUsersEnabledForNewUsers: isViewAllUsersEnabledForNewUsers,
|
|
46750
|
+
isDeviceLimitExemptionEnabledForNewUsers: isDeviceLimitExemptionEnabledForNewUsers,
|
|
46751
|
+
isExternalCollaborationRestrictedForNewUsers: isExternalCollaborationRestrictedForNewUsers,
|
|
46752
|
+
isUnlimitedStorageEnabledForNewUsers: isUnlimitedStorageEnabledForNewUsers,
|
|
46753
|
+
newUserDefaultStorageLimit: newUserDefaultStorageLimit,
|
|
46754
|
+
newUserDefaultTimezone: newUserDefaultTimezone,
|
|
46755
|
+
newUserDefaultLanguage: newUserDefaultLanguage,
|
|
46756
|
+
isEnterpriseSsoRequired: isEnterpriseSsoRequired,
|
|
46757
|
+
isEnterpriseSsoInTesting: isEnterpriseSsoInTesting,
|
|
46758
|
+
isSsoAutoAddGroupsEnabled: isSsoAutoAddGroupsEnabled,
|
|
46759
|
+
isSsoAutoAddUserToGroupsEnabled: isSsoAutoAddUserToGroupsEnabled,
|
|
46760
|
+
isSsoAutoRemoveUserFromGroupsEnabled: isSsoAutoRemoveUserFromGroupsEnabled,
|
|
46761
|
+
userTrackingCodes: userTrackingCodes,
|
|
46762
|
+
numberOfUserTrackingCodesRemaining: numberOfUserTrackingCodesRemaining,
|
|
46763
|
+
isInstantLoginRestricted: isInstantLoginRestricted,
|
|
46764
|
+
};
|
|
46765
|
+
}
|
|
46766
|
+
|
|
46767
|
+
function deserializeShieldRuleItemV2025R0TypeField(val) {
|
|
46768
|
+
if (val == 'shield_rule') {
|
|
46769
|
+
return val;
|
|
46770
|
+
}
|
|
46771
|
+
throw new BoxSdkError({
|
|
46772
|
+
message: "Can't deserialize ShieldRuleItemV2025R0TypeField",
|
|
46773
|
+
});
|
|
46774
|
+
}
|
|
46775
|
+
function deserializeShieldRuleItemV2025R0PriorityField(val) {
|
|
46776
|
+
if (val == 'informational') {
|
|
46777
|
+
return val;
|
|
46778
|
+
}
|
|
46779
|
+
if (val == 'low') {
|
|
46780
|
+
return val;
|
|
46781
|
+
}
|
|
46782
|
+
if (val == 'medium') {
|
|
46783
|
+
return val;
|
|
46784
|
+
}
|
|
46785
|
+
if (val == 'high') {
|
|
46786
|
+
return val;
|
|
46787
|
+
}
|
|
46788
|
+
if (val == 'critical') {
|
|
46789
|
+
return val;
|
|
46790
|
+
}
|
|
46791
|
+
if (sdIsString(val)) {
|
|
46792
|
+
return val;
|
|
46793
|
+
}
|
|
46794
|
+
throw new BoxSdkError({
|
|
46795
|
+
message: "Can't deserialize ShieldRuleItemV2025R0PriorityField",
|
|
46796
|
+
});
|
|
46797
|
+
}
|
|
46798
|
+
function deserializeShieldRuleItemV2025R0(val) {
|
|
46799
|
+
if (!sdIsMap(val)) {
|
|
46800
|
+
throw new BoxSdkError({
|
|
46801
|
+
message: 'Expecting a map for "ShieldRuleItemV2025R0"',
|
|
46802
|
+
});
|
|
46803
|
+
}
|
|
46804
|
+
if (!(val.id == void 0) && !sdIsString(val.id)) {
|
|
46805
|
+
throw new BoxSdkError({
|
|
46806
|
+
message: 'Expecting string for "id" of type "ShieldRuleItemV2025R0"',
|
|
46807
|
+
});
|
|
46808
|
+
}
|
|
46809
|
+
const id = val.id == void 0 ? void 0 : val.id;
|
|
46810
|
+
const type = val.type == void 0
|
|
46811
|
+
? void 0
|
|
46812
|
+
: deserializeShieldRuleItemV2025R0TypeField(val.type);
|
|
46813
|
+
if (!(val.rule_category == void 0) && !sdIsString(val.rule_category)) {
|
|
46814
|
+
throw new BoxSdkError({
|
|
46815
|
+
message: 'Expecting string for "rule_category" of type "ShieldRuleItemV2025R0"',
|
|
46816
|
+
});
|
|
46817
|
+
}
|
|
46818
|
+
const ruleCategory = val.rule_category == void 0 ? void 0 : val.rule_category;
|
|
46819
|
+
if (!(val.name == void 0) && !sdIsString(val.name)) {
|
|
46820
|
+
throw new BoxSdkError({
|
|
46821
|
+
message: 'Expecting string for "name" of type "ShieldRuleItemV2025R0"',
|
|
46822
|
+
});
|
|
46823
|
+
}
|
|
46824
|
+
const name = val.name == void 0 ? void 0 : val.name;
|
|
46825
|
+
if (!(val.description == void 0) && !sdIsString(val.description)) {
|
|
46826
|
+
throw new BoxSdkError({
|
|
46827
|
+
message: 'Expecting string for "description" of type "ShieldRuleItemV2025R0"',
|
|
46828
|
+
});
|
|
46829
|
+
}
|
|
46830
|
+
const description = val.description == void 0 ? void 0 : val.description;
|
|
46831
|
+
const priority = val.priority == void 0
|
|
46832
|
+
? void 0
|
|
46833
|
+
: deserializeShieldRuleItemV2025R0PriorityField(val.priority);
|
|
46834
|
+
if (!(val.created_at == void 0) && !sdIsString(val.created_at)) {
|
|
46835
|
+
throw new BoxSdkError({
|
|
46836
|
+
message: 'Expecting string for "created_at" of type "ShieldRuleItemV2025R0"',
|
|
46837
|
+
});
|
|
46838
|
+
}
|
|
46839
|
+
const createdAt = val.created_at == void 0 ? void 0 : dateTimeFromString(val.created_at);
|
|
46840
|
+
if (!(val.modified_at == void 0) && !sdIsString(val.modified_at)) {
|
|
46841
|
+
throw new BoxSdkError({
|
|
46842
|
+
message: 'Expecting string for "modified_at" of type "ShieldRuleItemV2025R0"',
|
|
46843
|
+
});
|
|
46844
|
+
}
|
|
46845
|
+
const modifiedAt = val.modified_at == void 0 ? void 0 : dateTimeFromString(val.modified_at);
|
|
46846
|
+
return {
|
|
46847
|
+
id: id,
|
|
46848
|
+
type: type,
|
|
46849
|
+
ruleCategory: ruleCategory,
|
|
46850
|
+
name: name,
|
|
46851
|
+
description: description,
|
|
46852
|
+
priority: priority,
|
|
46853
|
+
createdAt: createdAt,
|
|
46854
|
+
modifiedAt: modifiedAt,
|
|
46855
|
+
};
|
|
46856
|
+
}
|
|
46857
|
+
|
|
46858
|
+
function deserializeEnterpriseConfigurationShieldV2025R0(val) {
|
|
46859
|
+
if (!sdIsMap(val)) {
|
|
46860
|
+
throw new BoxSdkError({
|
|
46861
|
+
message: 'Expecting a map for "EnterpriseConfigurationShieldV2025R0"',
|
|
46862
|
+
});
|
|
46863
|
+
}
|
|
46864
|
+
if (!(val.shield_rules == void 0) && !sdIsList(val.shield_rules)) {
|
|
46865
|
+
throw new BoxSdkError({
|
|
46866
|
+
message: 'Expecting array for "shield_rules" of type "EnterpriseConfigurationShieldV2025R0"',
|
|
46867
|
+
});
|
|
46868
|
+
}
|
|
46869
|
+
const shieldRules = val.shield_rules == void 0
|
|
46870
|
+
? void 0
|
|
46871
|
+
: sdIsList(val.shield_rules)
|
|
46872
|
+
? val.shield_rules.map(function (itm) {
|
|
46873
|
+
return deserializeShieldRuleItemV2025R0(itm);
|
|
46874
|
+
})
|
|
46875
|
+
: [];
|
|
46876
|
+
return {
|
|
46877
|
+
shieldRules: shieldRules,
|
|
46878
|
+
};
|
|
46879
|
+
}
|
|
46880
|
+
|
|
46881
|
+
function deserializeEnterpriseConfigurationV2025R0TypeField(val) {
|
|
46882
|
+
if (val == 'enterprise_configuration') {
|
|
46883
|
+
return val;
|
|
46884
|
+
}
|
|
46885
|
+
throw new BoxSdkError({
|
|
46886
|
+
message: "Can't deserialize EnterpriseConfigurationV2025R0TypeField",
|
|
46887
|
+
});
|
|
46888
|
+
}
|
|
46889
|
+
function deserializeEnterpriseConfigurationV2025R0(val) {
|
|
46890
|
+
if (!sdIsMap(val)) {
|
|
46891
|
+
throw new BoxSdkError({
|
|
46892
|
+
message: 'Expecting a map for "EnterpriseConfigurationV2025R0"',
|
|
46893
|
+
});
|
|
46894
|
+
}
|
|
46895
|
+
if (!(val.id == void 0) && !sdIsString(val.id)) {
|
|
46896
|
+
throw new BoxSdkError({
|
|
46897
|
+
message: 'Expecting string for "id" of type "EnterpriseConfigurationV2025R0"',
|
|
46898
|
+
});
|
|
46899
|
+
}
|
|
46900
|
+
const id = val.id == void 0 ? void 0 : val.id;
|
|
46901
|
+
const type = val.type == void 0
|
|
46902
|
+
? void 0
|
|
46903
|
+
: deserializeEnterpriseConfigurationV2025R0TypeField(val.type);
|
|
46904
|
+
const security = val.security == void 0
|
|
46905
|
+
? void 0
|
|
46906
|
+
: val.security == void 0
|
|
46907
|
+
? void 0
|
|
46908
|
+
: deserializeEnterpriseConfigurationSecurityV2025R0(val.security);
|
|
46909
|
+
const contentAndSharing = val.content_and_sharing == void 0
|
|
46910
|
+
? void 0
|
|
46911
|
+
: val.content_and_sharing == void 0
|
|
46912
|
+
? void 0
|
|
46913
|
+
: deserializeEnterpriseConfigurationContentAndSharingV2025R0(val.content_and_sharing);
|
|
46914
|
+
const userSettings = val.user_settings == void 0
|
|
46915
|
+
? void 0
|
|
46916
|
+
: val.user_settings == void 0
|
|
46917
|
+
? void 0
|
|
46918
|
+
: deserializeEnterpriseConfigurationUserSettingsV2025R0(val.user_settings);
|
|
46919
|
+
const shield = val.shield == void 0
|
|
46920
|
+
? void 0
|
|
46921
|
+
: val.shield == void 0
|
|
46922
|
+
? void 0
|
|
46923
|
+
: deserializeEnterpriseConfigurationShieldV2025R0(val.shield);
|
|
46924
|
+
return {
|
|
46925
|
+
id: id,
|
|
46926
|
+
type: type,
|
|
46927
|
+
security: security,
|
|
46928
|
+
contentAndSharing: contentAndSharing,
|
|
46929
|
+
userSettings: userSettings,
|
|
46930
|
+
shield: shield,
|
|
46931
|
+
};
|
|
46932
|
+
}
|
|
46933
|
+
|
|
46934
|
+
class GetEnterpriseConfigurationByIdV2025R0Optionals {
|
|
46935
|
+
constructor(fields) {
|
|
46936
|
+
this.headers = new GetEnterpriseConfigurationByIdV2025R0Headers({});
|
|
46937
|
+
this.cancellationToken = void 0;
|
|
46938
|
+
if (fields.headers !== undefined) {
|
|
46939
|
+
this.headers = fields.headers;
|
|
46940
|
+
}
|
|
46941
|
+
if (fields.cancellationToken !== undefined) {
|
|
46942
|
+
this.cancellationToken = fields.cancellationToken;
|
|
46943
|
+
}
|
|
46944
|
+
}
|
|
46945
|
+
}
|
|
46946
|
+
class GetEnterpriseConfigurationByIdV2025R0Headers {
|
|
46947
|
+
constructor(fields) {
|
|
46948
|
+
/**
|
|
46949
|
+
* Version header. */
|
|
46950
|
+
this.boxVersion = '2025.0';
|
|
46951
|
+
/**
|
|
46952
|
+
* Extra headers that will be included in the HTTP request. */
|
|
46953
|
+
this.extraHeaders = {};
|
|
46954
|
+
if (fields.boxVersion !== undefined) {
|
|
46955
|
+
this.boxVersion = fields.boxVersion;
|
|
46956
|
+
}
|
|
46957
|
+
if (fields.extraHeaders !== undefined) {
|
|
46958
|
+
this.extraHeaders = fields.extraHeaders;
|
|
46959
|
+
}
|
|
46960
|
+
}
|
|
46961
|
+
}
|
|
46962
|
+
class EnterpriseConfigurationsManager {
|
|
46963
|
+
constructor(fields) {
|
|
46964
|
+
this.networkSession = new NetworkSession({});
|
|
46965
|
+
if (fields.auth !== undefined) {
|
|
46966
|
+
this.auth = fields.auth;
|
|
46967
|
+
}
|
|
46968
|
+
if (fields.networkSession !== undefined) {
|
|
46969
|
+
this.networkSession = fields.networkSession;
|
|
46970
|
+
}
|
|
46971
|
+
}
|
|
46972
|
+
/**
|
|
46973
|
+
* Retrieves the configuration for an enterprise.
|
|
46974
|
+
* @param {string} enterpriseId The ID of the enterprise.
|
|
46975
|
+
Example: "3442311"
|
|
46976
|
+
* @param {GetEnterpriseConfigurationByIdV2025R0QueryParams} queryParams Query parameters of getEnterpriseConfigurationByIdV2025R0 method
|
|
46977
|
+
* @param {GetEnterpriseConfigurationByIdV2025R0OptionalsInput} optionalsInput
|
|
46978
|
+
* @returns {Promise<EnterpriseConfigurationV2025R0>}
|
|
46979
|
+
*/
|
|
46980
|
+
getEnterpriseConfigurationByIdV2025R0(enterpriseId_1, queryParams_1) {
|
|
46981
|
+
return __awaiter$1(this, arguments, void 0, function* (enterpriseId, queryParams, optionalsInput = {}) {
|
|
46982
|
+
const optionals = new GetEnterpriseConfigurationByIdV2025R0Optionals({
|
|
46983
|
+
headers: optionalsInput.headers,
|
|
46984
|
+
cancellationToken: optionalsInput.cancellationToken,
|
|
46985
|
+
});
|
|
46986
|
+
const headers = optionals.headers;
|
|
46987
|
+
const cancellationToken = optionals.cancellationToken;
|
|
46988
|
+
const queryParamsMap = prepareParams({
|
|
46989
|
+
['categories']: queryParams.categories
|
|
46990
|
+
? queryParams.categories.map(toString).join(',')
|
|
46991
|
+
: undefined,
|
|
46992
|
+
});
|
|
46993
|
+
const headersMap = prepareParams(Object.assign({ ['box-version']: toString(headers.boxVersion) }, headers.extraHeaders));
|
|
46994
|
+
const response = yield this.networkSession.networkClient.fetch(new FetchOptions({
|
|
46995
|
+
url: ''.concat(this.networkSession.baseUrls.baseUrl, '/2.0/enterprise_configurations/', toString(enterpriseId)),
|
|
46996
|
+
method: 'GET',
|
|
46997
|
+
params: queryParamsMap,
|
|
46998
|
+
headers: headersMap,
|
|
46999
|
+
responseFormat: 'json',
|
|
47000
|
+
auth: this.auth,
|
|
47001
|
+
networkSession: this.networkSession,
|
|
47002
|
+
cancellationToken: cancellationToken,
|
|
47003
|
+
}));
|
|
47004
|
+
return Object.assign(Object.assign({}, deserializeEnterpriseConfigurationV2025R0(response.data)), { rawData: response.data });
|
|
47005
|
+
});
|
|
47006
|
+
}
|
|
47007
|
+
}
|
|
47008
|
+
|
|
45433
47009
|
function deserializeHubBaseV2025R0TypeField(val) {
|
|
45434
47010
|
if (val == 'hubs') {
|
|
45435
47011
|
return val;
|
|
@@ -46918,7 +48494,7 @@
|
|
|
46918
48494
|
return val;
|
|
46919
48495
|
}
|
|
46920
48496
|
function deserializeWeblinkReferenceV2025R0TypeField(val) {
|
|
46921
|
-
if (val == '
|
|
48497
|
+
if (val == 'web_link') {
|
|
46922
48498
|
return val;
|
|
46923
48499
|
}
|
|
46924
48500
|
throw new BoxSdkError({
|
|
@@ -46964,7 +48540,7 @@
|
|
|
46964
48540
|
if (val.type == 'folder') {
|
|
46965
48541
|
return serializeFolderReferenceV2025R0(val);
|
|
46966
48542
|
}
|
|
46967
|
-
if (val.type == '
|
|
48543
|
+
if (val.type == 'web_link') {
|
|
46968
48544
|
return serializeWeblinkReferenceV2025R0(val);
|
|
46969
48545
|
}
|
|
46970
48546
|
throw new BoxSdkError({ message: 'unknown type' });
|
|
@@ -46981,7 +48557,7 @@
|
|
|
46981
48557
|
if (val.type == 'folder') {
|
|
46982
48558
|
return deserializeFolderReferenceV2025R0(val);
|
|
46983
48559
|
}
|
|
46984
|
-
if (val.type == '
|
|
48560
|
+
if (val.type == 'web_link') {
|
|
46985
48561
|
return deserializeWeblinkReferenceV2025R0(val);
|
|
46986
48562
|
}
|
|
46987
48563
|
throw new BoxSdkError({
|
|
@@ -48024,6 +49600,36 @@
|
|
|
48024
49600
|
message: "Can't deserialize ArchiveV2025R0TypeField",
|
|
48025
49601
|
});
|
|
48026
49602
|
}
|
|
49603
|
+
function deserializeArchiveV2025R0OwnedByField(val) {
|
|
49604
|
+
if (!sdIsMap(val)) {
|
|
49605
|
+
throw new BoxSdkError({
|
|
49606
|
+
message: 'Expecting a map for "ArchiveV2025R0OwnedByField"',
|
|
49607
|
+
});
|
|
49608
|
+
}
|
|
49609
|
+
if (val.id == void 0) {
|
|
49610
|
+
throw new BoxSdkError({
|
|
49611
|
+
message: 'Expecting "id" of type "ArchiveV2025R0OwnedByField" to be defined',
|
|
49612
|
+
});
|
|
49613
|
+
}
|
|
49614
|
+
if (!sdIsString(val.id)) {
|
|
49615
|
+
throw new BoxSdkError({
|
|
49616
|
+
message: 'Expecting string for "id" of type "ArchiveV2025R0OwnedByField"',
|
|
49617
|
+
});
|
|
49618
|
+
}
|
|
49619
|
+
const id = val.id;
|
|
49620
|
+
if (val.type == void 0) {
|
|
49621
|
+
throw new BoxSdkError({
|
|
49622
|
+
message: 'Expecting "type" of type "ArchiveV2025R0OwnedByField" to be defined',
|
|
49623
|
+
});
|
|
49624
|
+
}
|
|
49625
|
+
if (!sdIsString(val.type)) {
|
|
49626
|
+
throw new BoxSdkError({
|
|
49627
|
+
message: 'Expecting string for "type" of type "ArchiveV2025R0OwnedByField"',
|
|
49628
|
+
});
|
|
49629
|
+
}
|
|
49630
|
+
const type = val.type;
|
|
49631
|
+
return { id: id, type: type };
|
|
49632
|
+
}
|
|
48027
49633
|
function deserializeArchiveV2025R0(val) {
|
|
48028
49634
|
if (!sdIsMap(val)) {
|
|
48029
49635
|
throw new BoxSdkError({ message: 'Expecting a map for "ArchiveV2025R0"' });
|
|
@@ -48067,11 +49673,22 @@
|
|
|
48067
49673
|
});
|
|
48068
49674
|
}
|
|
48069
49675
|
const size = val.size;
|
|
49676
|
+
if (!(val.description == void 0) && !sdIsString(val.description)) {
|
|
49677
|
+
throw new BoxSdkError({
|
|
49678
|
+
message: 'Expecting string for "description" of type "ArchiveV2025R0"',
|
|
49679
|
+
});
|
|
49680
|
+
}
|
|
49681
|
+
const description = val.description == void 0 ? void 0 : val.description;
|
|
49682
|
+
const ownedBy = val.owned_by == void 0
|
|
49683
|
+
? void 0
|
|
49684
|
+
: deserializeArchiveV2025R0OwnedByField(val.owned_by);
|
|
48070
49685
|
return {
|
|
48071
49686
|
id: id,
|
|
48072
49687
|
type: type,
|
|
48073
49688
|
name: name,
|
|
48074
49689
|
size: size,
|
|
49690
|
+
description: description,
|
|
49691
|
+
ownedBy: ownedBy,
|
|
48075
49692
|
};
|
|
48076
49693
|
}
|
|
48077
49694
|
|
|
@@ -48134,6 +49751,22 @@
|
|
|
48134
49751
|
}
|
|
48135
49752
|
}
|
|
48136
49753
|
}
|
|
49754
|
+
class UpdateArchiveByIdV2025R0Optionals {
|
|
49755
|
+
constructor(fields) {
|
|
49756
|
+
this.requestBody = {};
|
|
49757
|
+
this.headers = new UpdateArchiveByIdV2025R0Headers({});
|
|
49758
|
+
this.cancellationToken = void 0;
|
|
49759
|
+
if (fields.requestBody !== undefined) {
|
|
49760
|
+
this.requestBody = fields.requestBody;
|
|
49761
|
+
}
|
|
49762
|
+
if (fields.headers !== undefined) {
|
|
49763
|
+
this.headers = fields.headers;
|
|
49764
|
+
}
|
|
49765
|
+
if (fields.cancellationToken !== undefined) {
|
|
49766
|
+
this.cancellationToken = fields.cancellationToken;
|
|
49767
|
+
}
|
|
49768
|
+
}
|
|
49769
|
+
}
|
|
48137
49770
|
class GetArchivesV2025R0Headers {
|
|
48138
49771
|
constructor(fields) {
|
|
48139
49772
|
/**
|
|
@@ -48182,6 +49815,22 @@
|
|
|
48182
49815
|
}
|
|
48183
49816
|
}
|
|
48184
49817
|
}
|
|
49818
|
+
class UpdateArchiveByIdV2025R0Headers {
|
|
49819
|
+
constructor(fields) {
|
|
49820
|
+
/**
|
|
49821
|
+
* Version header. */
|
|
49822
|
+
this.boxVersion = '2025.0';
|
|
49823
|
+
/**
|
|
49824
|
+
* Extra headers that will be included in the HTTP request. */
|
|
49825
|
+
this.extraHeaders = {};
|
|
49826
|
+
if (fields.boxVersion !== undefined) {
|
|
49827
|
+
this.boxVersion = fields.boxVersion;
|
|
49828
|
+
}
|
|
49829
|
+
if (fields.extraHeaders !== undefined) {
|
|
49830
|
+
this.extraHeaders = fields.extraHeaders;
|
|
49831
|
+
}
|
|
49832
|
+
}
|
|
49833
|
+
}
|
|
48185
49834
|
class ArchivesManager {
|
|
48186
49835
|
constructor(fields) {
|
|
48187
49836
|
this.networkSession = new NetworkSession({});
|
|
@@ -48286,9 +49935,50 @@
|
|
|
48286
49935
|
return void 0;
|
|
48287
49936
|
});
|
|
48288
49937
|
}
|
|
49938
|
+
/**
|
|
49939
|
+
* Updates an archive.
|
|
49940
|
+
*
|
|
49941
|
+
* To learn more about the archive APIs, see the [Archive API Guide](g://archives).
|
|
49942
|
+
* @param {string} archiveId The ID of the archive.
|
|
49943
|
+
Example: "982312"
|
|
49944
|
+
* @param {UpdateArchiveByIdV2025R0OptionalsInput} optionalsInput
|
|
49945
|
+
* @returns {Promise<ArchiveV2025R0>}
|
|
49946
|
+
*/
|
|
49947
|
+
updateArchiveByIdV2025R0(archiveId_1) {
|
|
49948
|
+
return __awaiter$1(this, arguments, void 0, function* (archiveId, optionalsInput = {}) {
|
|
49949
|
+
const optionals = new UpdateArchiveByIdV2025R0Optionals({
|
|
49950
|
+
requestBody: optionalsInput.requestBody,
|
|
49951
|
+
headers: optionalsInput.headers,
|
|
49952
|
+
cancellationToken: optionalsInput.cancellationToken,
|
|
49953
|
+
});
|
|
49954
|
+
const requestBody = optionals.requestBody;
|
|
49955
|
+
const headers = optionals.headers;
|
|
49956
|
+
const cancellationToken = optionals.cancellationToken;
|
|
49957
|
+
const headersMap = prepareParams(Object.assign({ ['box-version']: toString(headers.boxVersion) }, headers.extraHeaders));
|
|
49958
|
+
const response = yield this.networkSession.networkClient.fetch(new FetchOptions({
|
|
49959
|
+
url: ''.concat(this.networkSession.baseUrls.baseUrl, '/2.0/archives/', toString(archiveId)),
|
|
49960
|
+
method: 'PUT',
|
|
49961
|
+
headers: headersMap,
|
|
49962
|
+
data: serializeUpdateArchiveByIdV2025R0RequestBody(requestBody),
|
|
49963
|
+
contentType: 'application/json',
|
|
49964
|
+
responseFormat: 'json',
|
|
49965
|
+
auth: this.auth,
|
|
49966
|
+
networkSession: this.networkSession,
|
|
49967
|
+
cancellationToken: cancellationToken,
|
|
49968
|
+
}));
|
|
49969
|
+
return Object.assign(Object.assign({}, deserializeArchiveV2025R0(response.data)), { rawData: response.data });
|
|
49970
|
+
});
|
|
49971
|
+
}
|
|
48289
49972
|
}
|
|
48290
49973
|
function serializeCreateArchiveV2025R0RequestBody(val) {
|
|
48291
|
-
return {
|
|
49974
|
+
return {
|
|
49975
|
+
['name']: val.name,
|
|
49976
|
+
['description']: val.description,
|
|
49977
|
+
['storage_policy_id']: val.storagePolicyId,
|
|
49978
|
+
};
|
|
49979
|
+
}
|
|
49980
|
+
function serializeUpdateArchiveByIdV2025R0RequestBody(val) {
|
|
49981
|
+
return { ['name']: val.name, ['description']: val.description };
|
|
48292
49982
|
}
|
|
48293
49983
|
|
|
48294
49984
|
function deserializeExternalUserDeletionResultV2025R0(val) {
|
|
@@ -48759,6 +50449,10 @@
|
|
|
48759
50449
|
auth: this.auth,
|
|
48760
50450
|
networkSession: this.networkSession,
|
|
48761
50451
|
});
|
|
50452
|
+
this.enterpriseConfigurations = new EnterpriseConfigurationsManager({
|
|
50453
|
+
auth: this.auth,
|
|
50454
|
+
networkSession: this.networkSession,
|
|
50455
|
+
});
|
|
48762
50456
|
this.hubs = new HubsManager({
|
|
48763
50457
|
auth: this.auth,
|
|
48764
50458
|
networkSession: this.networkSession,
|