box-node-sdk 10.0.1 → 10.2.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.
Files changed (1024) hide show
  1. package/README.md +106 -70
  2. package/lib/box/errors.d.ts.map +1 -1
  3. package/lib/box/errors.js +4 -0
  4. package/lib/box/errors.js.map +1 -1
  5. package/lib/box/jwtAuth.d.ts +1 -1
  6. package/lib/box/jwtAuth.d.ts.map +1 -1
  7. package/lib/bundle.js +1791 -44
  8. package/lib/bundle.js.map +1 -1
  9. package/lib/client.d.ts +3 -1
  10. package/lib/client.d.ts.map +1 -1
  11. package/lib/client.js +5 -0
  12. package/lib/client.js.map +1 -1
  13. package/lib/managers/ai.d.ts +17 -14
  14. package/lib/managers/ai.d.ts.map +1 -1
  15. package/lib/managers/ai.js +7 -4
  16. package/lib/managers/ai.js.map +1 -1
  17. package/lib/managers/aiStudio.d.ts +9 -9
  18. package/lib/managers/aiStudio.d.ts.map +1 -1
  19. package/lib/managers/aiStudio.js.map +1 -1
  20. package/lib/managers/appItemAssociations.d.ts +4 -4
  21. package/lib/managers/appItemAssociations.d.ts.map +1 -1
  22. package/lib/managers/appItemAssociations.js.map +1 -1
  23. package/lib/managers/archives.d.ts +65 -6
  24. package/lib/managers/archives.d.ts.map +1 -1
  25. package/lib/managers/archives.js +120 -3
  26. package/lib/managers/archives.js.map +1 -1
  27. package/lib/managers/authorization.d.ts +8 -8
  28. package/lib/managers/authorization.d.ts.map +1 -1
  29. package/lib/managers/authorization.js.map +1 -1
  30. package/lib/managers/avatars.d.ts +6 -6
  31. package/lib/managers/avatars.d.ts.map +1 -1
  32. package/lib/managers/avatars.js.map +1 -1
  33. package/lib/managers/chunkedUploads.d.ts +24 -24
  34. package/lib/managers/chunkedUploads.d.ts.map +1 -1
  35. package/lib/managers/chunkedUploads.js.map +1 -1
  36. package/lib/managers/classifications.d.ts +7 -7
  37. package/lib/managers/classifications.d.ts.map +1 -1
  38. package/lib/managers/classifications.js.map +1 -1
  39. package/lib/managers/collaborationAllowlistEntries.d.ts +7 -7
  40. package/lib/managers/collaborationAllowlistEntries.d.ts.map +1 -1
  41. package/lib/managers/collaborationAllowlistEntries.js.map +1 -1
  42. package/lib/managers/collaborationAllowlistExemptTargets.d.ts +7 -7
  43. package/lib/managers/collaborationAllowlistExemptTargets.d.ts.map +1 -1
  44. package/lib/managers/collaborationAllowlistExemptTargets.js.map +1 -1
  45. package/lib/managers/collections.d.ts +5 -5
  46. package/lib/managers/collections.d.ts.map +1 -1
  47. package/lib/managers/collections.js.map +1 -1
  48. package/lib/managers/comments.d.ts +10 -10
  49. package/lib/managers/comments.d.ts.map +1 -1
  50. package/lib/managers/comments.js.map +1 -1
  51. package/lib/managers/devicePinners.d.ts +6 -6
  52. package/lib/managers/devicePinners.d.ts.map +1 -1
  53. package/lib/managers/devicePinners.js.map +1 -1
  54. package/lib/managers/docgen.d.ts +7 -7
  55. package/lib/managers/docgen.d.ts.map +1 -1
  56. package/lib/managers/docgen.js.map +1 -1
  57. package/lib/managers/docgenTemplate.d.ts +11 -11
  58. package/lib/managers/docgenTemplate.d.ts.map +1 -1
  59. package/lib/managers/docgenTemplate.js.map +1 -1
  60. package/lib/managers/downloads.d.ts +4 -4
  61. package/lib/managers/downloads.d.ts.map +1 -1
  62. package/lib/managers/downloads.js.map +1 -1
  63. package/lib/managers/emailAliases.d.ts +6 -6
  64. package/lib/managers/emailAliases.d.ts.map +1 -1
  65. package/lib/managers/emailAliases.js.map +1 -1
  66. package/lib/managers/enterpriseConfigurations.d.ts +60 -0
  67. package/lib/managers/enterpriseConfigurations.d.ts.map +1 -0
  68. package/lib/managers/enterpriseConfigurations.js +95 -0
  69. package/lib/managers/enterpriseConfigurations.js.map +1 -0
  70. package/lib/managers/events.d.ts +3 -3
  71. package/lib/managers/events.d.ts.map +1 -1
  72. package/lib/managers/events.js.map +1 -1
  73. package/lib/managers/externalUsers.d.ts +2 -2
  74. package/lib/managers/externalUsers.d.ts.map +1 -1
  75. package/lib/managers/externalUsers.js.map +1 -1
  76. package/lib/managers/fileClassifications.d.ts +8 -8
  77. package/lib/managers/fileClassifications.d.ts.map +1 -1
  78. package/lib/managers/fileClassifications.js.map +1 -1
  79. package/lib/managers/fileMetadata.d.ts +10 -10
  80. package/lib/managers/fileMetadata.d.ts.map +1 -1
  81. package/lib/managers/fileMetadata.js.map +1 -1
  82. package/lib/managers/fileRequests.d.ts +8 -8
  83. package/lib/managers/fileRequests.d.ts.map +1 -1
  84. package/lib/managers/fileRequests.js.map +1 -1
  85. package/lib/managers/fileVersionLegalHolds.d.ts +4 -4
  86. package/lib/managers/fileVersionLegalHolds.d.ts.map +1 -1
  87. package/lib/managers/fileVersionLegalHolds.js.map +1 -1
  88. package/lib/managers/fileVersionRetentions.d.ts +3 -3
  89. package/lib/managers/fileVersionRetentions.d.ts.map +1 -1
  90. package/lib/managers/fileVersionRetentions.js.map +1 -1
  91. package/lib/managers/fileVersions.d.ts +10 -10
  92. package/lib/managers/fileVersions.d.ts.map +1 -1
  93. package/lib/managers/fileVersions.js.map +1 -1
  94. package/lib/managers/fileWatermarks.d.ts +6 -6
  95. package/lib/managers/fileWatermarks.d.ts.map +1 -1
  96. package/lib/managers/fileWatermarks.js.map +1 -1
  97. package/lib/managers/files.d.ts +12 -12
  98. package/lib/managers/files.d.ts.map +1 -1
  99. package/lib/managers/files.js.map +1 -1
  100. package/lib/managers/folderClassifications.d.ts +8 -8
  101. package/lib/managers/folderClassifications.d.ts.map +1 -1
  102. package/lib/managers/folderClassifications.js.map +1 -1
  103. package/lib/managers/folderLocks.d.ts +6 -6
  104. package/lib/managers/folderLocks.d.ts.map +1 -1
  105. package/lib/managers/folderLocks.js.map +1 -1
  106. package/lib/managers/folderMetadata.d.ts +10 -10
  107. package/lib/managers/folderMetadata.d.ts.map +1 -1
  108. package/lib/managers/folderMetadata.js.map +1 -1
  109. package/lib/managers/folderWatermarks.d.ts +6 -6
  110. package/lib/managers/folderWatermarks.d.ts.map +1 -1
  111. package/lib/managers/folderWatermarks.js.map +1 -1
  112. package/lib/managers/folders.d.ts +12 -12
  113. package/lib/managers/folders.d.ts.map +1 -1
  114. package/lib/managers/folders.js.map +1 -1
  115. package/lib/managers/groups.d.ts +9 -9
  116. package/lib/managers/groups.d.ts.map +1 -1
  117. package/lib/managers/groups.js.map +1 -1
  118. package/lib/managers/hubCollaborations.d.ts +10 -10
  119. package/lib/managers/hubCollaborations.d.ts.map +1 -1
  120. package/lib/managers/hubCollaborations.js.map +1 -1
  121. package/lib/managers/hubItems.d.ts +4 -4
  122. package/lib/managers/hubItems.d.ts.map +1 -1
  123. package/lib/managers/hubItems.js.map +1 -1
  124. package/lib/managers/hubs.d.ts +12 -12
  125. package/lib/managers/hubs.d.ts.map +1 -1
  126. package/lib/managers/hubs.js.map +1 -1
  127. package/lib/managers/index.d.ts +1 -0
  128. package/lib/managers/index.d.ts.map +1 -1
  129. package/lib/managers/index.js +1 -0
  130. package/lib/managers/index.js.map +1 -1
  131. package/lib/managers/integrationMappings.d.ts +14 -14
  132. package/lib/managers/integrationMappings.d.ts.map +1 -1
  133. package/lib/managers/integrationMappings.js.map +1 -1
  134. package/lib/managers/invites.d.ts +4 -4
  135. package/lib/managers/invites.d.ts.map +1 -1
  136. package/lib/managers/invites.js.map +1 -1
  137. package/lib/managers/legalHoldPolicies.d.ts +9 -9
  138. package/lib/managers/legalHoldPolicies.d.ts.map +1 -1
  139. package/lib/managers/legalHoldPolicies.js.map +1 -1
  140. package/lib/managers/legalHoldPolicyAssignments.d.ts +10 -10
  141. package/lib/managers/legalHoldPolicyAssignments.d.ts.map +1 -1
  142. package/lib/managers/legalHoldPolicyAssignments.js.map +1 -1
  143. package/lib/managers/listCollaborations.d.ts +8 -8
  144. package/lib/managers/listCollaborations.d.ts.map +1 -1
  145. package/lib/managers/listCollaborations.js.map +1 -1
  146. package/lib/managers/memberships.d.ts +12 -12
  147. package/lib/managers/memberships.d.ts.map +1 -1
  148. package/lib/managers/memberships.js.map +1 -1
  149. package/lib/managers/metadataCascadePolicies.d.ts +10 -10
  150. package/lib/managers/metadataCascadePolicies.d.ts.map +1 -1
  151. package/lib/managers/metadataCascadePolicies.js.map +1 -1
  152. package/lib/managers/metadataTemplates.d.ts +14 -14
  153. package/lib/managers/metadataTemplates.d.ts.map +1 -1
  154. package/lib/managers/metadataTemplates.js.map +1 -1
  155. package/lib/managers/recentItems.d.ts +1 -1
  156. package/lib/managers/recentItems.d.ts.map +1 -1
  157. package/lib/managers/recentItems.js.map +1 -1
  158. package/lib/managers/retentionPolicies.d.ts +9 -9
  159. package/lib/managers/retentionPolicies.d.ts.map +1 -1
  160. package/lib/managers/retentionPolicies.js.map +1 -1
  161. package/lib/managers/retentionPolicyAssignments.d.ts +10 -10
  162. package/lib/managers/retentionPolicyAssignments.d.ts.map +1 -1
  163. package/lib/managers/retentionPolicyAssignments.js.map +1 -1
  164. package/lib/managers/search.d.ts +3 -3
  165. package/lib/managers/search.d.ts.map +1 -1
  166. package/lib/managers/search.js.map +1 -1
  167. package/lib/managers/sessionTermination.d.ts +4 -4
  168. package/lib/managers/sessionTermination.d.ts.map +1 -1
  169. package/lib/managers/sessionTermination.js.map +1 -1
  170. package/lib/managers/sharedLinksAppItems.d.ts +2 -2
  171. package/lib/managers/sharedLinksAppItems.d.ts.map +1 -1
  172. package/lib/managers/sharedLinksAppItems.js.map +1 -1
  173. package/lib/managers/sharedLinksFiles.d.ts +10 -10
  174. package/lib/managers/sharedLinksFiles.d.ts.map +1 -1
  175. package/lib/managers/sharedLinksFiles.js.map +1 -1
  176. package/lib/managers/sharedLinksFolders.d.ts +10 -10
  177. package/lib/managers/sharedLinksFolders.d.ts.map +1 -1
  178. package/lib/managers/sharedLinksFolders.js.map +1 -1
  179. package/lib/managers/sharedLinksWebLinks.d.ts +10 -10
  180. package/lib/managers/sharedLinksWebLinks.d.ts.map +1 -1
  181. package/lib/managers/sharedLinksWebLinks.js.map +1 -1
  182. package/lib/managers/shieldInformationBarrierReports.d.ts +6 -6
  183. package/lib/managers/shieldInformationBarrierReports.d.ts.map +1 -1
  184. package/lib/managers/shieldInformationBarrierReports.js.map +1 -1
  185. package/lib/managers/shieldInformationBarrierSegmentMembers.d.ts +8 -8
  186. package/lib/managers/shieldInformationBarrierSegmentMembers.d.ts.map +1 -1
  187. package/lib/managers/shieldInformationBarrierSegmentMembers.js.map +1 -1
  188. package/lib/managers/shieldInformationBarrierSegmentRestrictions.d.ts +8 -8
  189. package/lib/managers/shieldInformationBarrierSegmentRestrictions.d.ts.map +1 -1
  190. package/lib/managers/shieldInformationBarrierSegmentRestrictions.js.map +1 -1
  191. package/lib/managers/shieldInformationBarrierSegments.d.ts +10 -10
  192. package/lib/managers/shieldInformationBarrierSegments.d.ts.map +1 -1
  193. package/lib/managers/shieldInformationBarrierSegments.js.map +1 -1
  194. package/lib/managers/shieldInformationBarriers.d.ts +7 -7
  195. package/lib/managers/shieldInformationBarriers.d.ts.map +1 -1
  196. package/lib/managers/shieldInformationBarriers.js.map +1 -1
  197. package/lib/managers/shieldLists.d.ts +9 -9
  198. package/lib/managers/shieldLists.d.ts.map +1 -1
  199. package/lib/managers/shieldLists.js.map +1 -1
  200. package/lib/managers/signRequests.d.ts +9 -9
  201. package/lib/managers/signRequests.d.ts.map +1 -1
  202. package/lib/managers/signRequests.js.map +1 -1
  203. package/lib/managers/signTemplates.d.ts +3 -3
  204. package/lib/managers/signTemplates.d.ts.map +1 -1
  205. package/lib/managers/signTemplates.js.map +1 -1
  206. package/lib/managers/skills.d.ts +10 -10
  207. package/lib/managers/skills.d.ts.map +1 -1
  208. package/lib/managers/skills.js.map +1 -1
  209. package/lib/managers/storagePolicies.d.ts +3 -3
  210. package/lib/managers/storagePolicies.d.ts.map +1 -1
  211. package/lib/managers/storagePolicies.js.map +1 -1
  212. package/lib/managers/storagePolicyAssignments.d.ts +10 -10
  213. package/lib/managers/storagePolicyAssignments.d.ts.map +1 -1
  214. package/lib/managers/storagePolicyAssignments.js.map +1 -1
  215. package/lib/managers/taskAssignments.d.ts +10 -10
  216. package/lib/managers/taskAssignments.d.ts.map +1 -1
  217. package/lib/managers/taskAssignments.js.map +1 -1
  218. package/lib/managers/tasks.d.ts +10 -10
  219. package/lib/managers/tasks.d.ts.map +1 -1
  220. package/lib/managers/tasks.js.map +1 -1
  221. package/lib/managers/termsOfServiceUserStatuses.d.ts +6 -6
  222. package/lib/managers/termsOfServiceUserStatuses.d.ts.map +1 -1
  223. package/lib/managers/termsOfServiceUserStatuses.js.map +1 -1
  224. package/lib/managers/termsOfServices.d.ts +7 -7
  225. package/lib/managers/termsOfServices.d.ts.map +1 -1
  226. package/lib/managers/termsOfServices.js.map +1 -1
  227. package/lib/managers/transfer.d.ts +3 -3
  228. package/lib/managers/transfer.d.ts.map +1 -1
  229. package/lib/managers/transfer.js +1 -1
  230. package/lib/managers/transfer.js.map +1 -1
  231. package/lib/managers/trashedFiles.d.ts +6 -6
  232. package/lib/managers/trashedFiles.d.ts.map +1 -1
  233. package/lib/managers/trashedFiles.js.map +1 -1
  234. package/lib/managers/trashedFolders.d.ts +6 -6
  235. package/lib/managers/trashedFolders.d.ts.map +1 -1
  236. package/lib/managers/trashedFolders.js.map +1 -1
  237. package/lib/managers/trashedItems.d.ts +1 -1
  238. package/lib/managers/trashedItems.d.ts.map +1 -1
  239. package/lib/managers/trashedItems.js.map +1 -1
  240. package/lib/managers/trashedWebLinks.d.ts +6 -6
  241. package/lib/managers/trashedWebLinks.d.ts.map +1 -1
  242. package/lib/managers/trashedWebLinks.js.map +1 -1
  243. package/lib/managers/uploads.d.ts +7 -7
  244. package/lib/managers/uploads.d.ts.map +1 -1
  245. package/lib/managers/uploads.js.map +1 -1
  246. package/lib/managers/userCollaborations.d.ts +22 -14
  247. package/lib/managers/userCollaborations.d.ts.map +1 -1
  248. package/lib/managers/userCollaborations.js.map +1 -1
  249. package/lib/managers/users.d.ts +15 -15
  250. package/lib/managers/users.d.ts.map +1 -1
  251. package/lib/managers/users.js +3 -3
  252. package/lib/managers/users.js.map +1 -1
  253. package/lib/managers/webLinks.d.ts +8 -8
  254. package/lib/managers/webLinks.d.ts.map +1 -1
  255. package/lib/managers/webLinks.js.map +1 -1
  256. package/lib/managers/webhooks.d.ts +11 -11
  257. package/lib/managers/webhooks.d.ts.map +1 -1
  258. package/lib/managers/webhooks.js.map +1 -1
  259. package/lib/managers/workflows.d.ts +4 -4
  260. package/lib/managers/workflows.d.ts.map +1 -1
  261. package/lib/managers/workflows.js.map +1 -1
  262. package/lib/managers/zipDownloads.d.ts +8 -8
  263. package/lib/managers/zipDownloads.d.ts.map +1 -1
  264. package/lib/managers/zipDownloads.js.map +1 -1
  265. package/lib/networking/boxNetworkClient.d.ts.map +1 -1
  266. package/lib/networking/boxNetworkClient.js +21 -6
  267. package/lib/networking/boxNetworkClient.js.map +1 -1
  268. package/lib/networking/fetchOptions.d.ts +1 -1
  269. package/lib/networking/fetchOptions.d.ts.map +1 -1
  270. package/lib/networking/retries.d.ts.map +1 -1
  271. package/lib/networking/retries.js +3 -1
  272. package/lib/networking/retries.js.map +1 -1
  273. package/lib/networking/version.d.ts +1 -1
  274. package/lib/networking/version.js +1 -1
  275. package/lib/schemas/index.d.ts +2 -1
  276. package/lib/schemas/index.d.ts.map +1 -1
  277. package/lib/schemas/index.js +2 -1
  278. package/lib/schemas/index.js.map +1 -1
  279. package/lib/schemas/signRequest.d.ts +9 -0
  280. package/lib/schemas/signRequest.d.ts.map +1 -1
  281. package/lib/schemas/signRequest.js +28 -0
  282. package/lib/schemas/signRequest.js.map +1 -1
  283. package/lib/schemas/signRequestSigner.d.ts +4 -0
  284. package/lib/schemas/signRequestSigner.d.ts.map +1 -1
  285. package/lib/schemas/signRequestSigner.js +20 -0
  286. package/lib/schemas/signRequestSigner.js.map +1 -1
  287. package/lib/schemas/signRequestSignerAttachment.d.ts +13 -0
  288. package/lib/schemas/signRequestSignerAttachment.d.ts.map +1 -0
  289. package/lib/schemas/signRequestSignerAttachment.js +31 -0
  290. package/lib/schemas/signRequestSignerAttachment.js.map +1 -0
  291. package/lib/schemas/v2025R0/archiveV2025R0.d.ts +25 -2
  292. package/lib/schemas/v2025R0/archiveV2025R0.d.ts.map +1 -1
  293. package/lib/schemas/v2025R0/archiveV2025R0.js +72 -1
  294. package/lib/schemas/v2025R0/archiveV2025R0.js.map +1 -1
  295. package/lib/schemas/v2025R0/collaborationPermissionsV2025R0.d.ts +28 -0
  296. package/lib/schemas/v2025R0/collaborationPermissionsV2025R0.d.ts.map +1 -0
  297. package/lib/schemas/v2025R0/collaborationPermissionsV2025R0.js +94 -0
  298. package/lib/schemas/v2025R0/collaborationPermissionsV2025R0.js.map +1 -0
  299. package/lib/schemas/v2025R0/customSessionDurationGroupItemV2025R0.d.ts +13 -0
  300. package/lib/schemas/v2025R0/customSessionDurationGroupItemV2025R0.d.ts.map +1 -0
  301. package/lib/schemas/v2025R0/customSessionDurationGroupItemV2025R0.js +31 -0
  302. package/lib/schemas/v2025R0/customSessionDurationGroupItemV2025R0.js.map +1 -0
  303. package/lib/schemas/v2025R0/docGenJobFullV2025R0.d.ts.map +1 -1
  304. package/lib/schemas/v2025R0/docGenJobFullV2025R0.js +2 -6
  305. package/lib/schemas/v2025R0/docGenJobFullV2025R0.js.map +1 -1
  306. package/lib/schemas/v2025R0/docGenJobV2025R0.d.ts +2 -2
  307. package/lib/schemas/v2025R0/docGenJobV2025R0.d.ts.map +1 -1
  308. package/lib/schemas/v2025R0/docGenJobV2025R0.js +4 -12
  309. package/lib/schemas/v2025R0/docGenJobV2025R0.js.map +1 -1
  310. package/lib/schemas/v2025R0/enterpriseConfigurationContentAndSharingV2025R0.d.ts +96 -0
  311. package/lib/schemas/v2025R0/enterpriseConfigurationContentAndSharingV2025R0.d.ts.map +1 -0
  312. package/lib/schemas/v2025R0/enterpriseConfigurationContentAndSharingV2025R0.js +640 -0
  313. package/lib/schemas/v2025R0/enterpriseConfigurationContentAndSharingV2025R0.js.map +1 -0
  314. package/lib/schemas/v2025R0/enterpriseConfigurationItemBooleanV2025R0.d.ts +10 -0
  315. package/lib/schemas/v2025R0/enterpriseConfigurationItemBooleanV2025R0.d.ts.map +1 -0
  316. package/lib/schemas/v2025R0/enterpriseConfigurationItemBooleanV2025R0.js +41 -0
  317. package/lib/schemas/v2025R0/enterpriseConfigurationItemBooleanV2025R0.js.map +1 -0
  318. package/lib/schemas/v2025R0/enterpriseConfigurationItemIntegerV2025R0.d.ts +10 -0
  319. package/lib/schemas/v2025R0/enterpriseConfigurationItemIntegerV2025R0.d.ts.map +1 -0
  320. package/lib/schemas/v2025R0/enterpriseConfigurationItemIntegerV2025R0.js +42 -0
  321. package/lib/schemas/v2025R0/enterpriseConfigurationItemIntegerV2025R0.js.map +1 -0
  322. package/lib/schemas/v2025R0/enterpriseConfigurationItemStringV2025R0.d.ts +10 -0
  323. package/lib/schemas/v2025R0/enterpriseConfigurationItemStringV2025R0.d.ts.map +1 -0
  324. package/lib/schemas/v2025R0/enterpriseConfigurationItemStringV2025R0.js +42 -0
  325. package/lib/schemas/v2025R0/enterpriseConfigurationItemStringV2025R0.js.map +1 -0
  326. package/lib/schemas/v2025R0/enterpriseConfigurationItemV2025R0.d.ts +10 -0
  327. package/lib/schemas/v2025R0/enterpriseConfigurationItemV2025R0.d.ts.map +1 -0
  328. package/lib/schemas/v2025R0/enterpriseConfigurationItemV2025R0.js +25 -0
  329. package/lib/schemas/v2025R0/enterpriseConfigurationItemV2025R0.js.map +1 -0
  330. package/lib/schemas/v2025R0/enterpriseConfigurationSecurityV2025R0.d.ts +83 -0
  331. package/lib/schemas/v2025R0/enterpriseConfigurationSecurityV2025R0.d.ts.map +1 -0
  332. package/lib/schemas/v2025R0/enterpriseConfigurationSecurityV2025R0.js +462 -0
  333. package/lib/schemas/v2025R0/enterpriseConfigurationSecurityV2025R0.js.map +1 -0
  334. package/lib/schemas/v2025R0/enterpriseConfigurationShieldV2025R0.d.ts +11 -0
  335. package/lib/schemas/v2025R0/enterpriseConfigurationShieldV2025R0.d.ts.map +1 -0
  336. package/lib/schemas/v2025R0/enterpriseConfigurationShieldV2025R0.js +41 -0
  337. package/lib/schemas/v2025R0/enterpriseConfigurationShieldV2025R0.js.map +1 -0
  338. package/lib/schemas/v2025R0/enterpriseConfigurationUserSettingsV2025R0.d.ts +37 -0
  339. package/lib/schemas/v2025R0/enterpriseConfigurationUserSettingsV2025R0.d.ts.map +1 -0
  340. package/lib/schemas/v2025R0/enterpriseConfigurationUserSettingsV2025R0.js +224 -0
  341. package/lib/schemas/v2025R0/enterpriseConfigurationUserSettingsV2025R0.js.map +1 -0
  342. package/lib/schemas/v2025R0/enterpriseConfigurationV2025R0.d.ts +24 -0
  343. package/lib/schemas/v2025R0/enterpriseConfigurationV2025R0.d.ts.map +1 -0
  344. package/lib/schemas/v2025R0/enterpriseConfigurationV2025R0.js +85 -0
  345. package/lib/schemas/v2025R0/enterpriseConfigurationV2025R0.js.map +1 -0
  346. package/lib/schemas/v2025R0/enterpriseFeatureSettingV2025R0.d.ts +37 -0
  347. package/lib/schemas/v2025R0/enterpriseFeatureSettingV2025R0.d.ts.map +1 -0
  348. package/lib/schemas/v2025R0/enterpriseFeatureSettingV2025R0.js +119 -0
  349. package/lib/schemas/v2025R0/enterpriseFeatureSettingV2025R0.js.map +1 -0
  350. package/lib/schemas/v2025R0/enterpriseFeatureSettingsItemV2025R0.d.ts +9 -0
  351. package/lib/schemas/v2025R0/enterpriseFeatureSettingsItemV2025R0.d.ts.map +1 -0
  352. package/lib/schemas/v2025R0/enterpriseFeatureSettingsItemV2025R0.js +44 -0
  353. package/lib/schemas/v2025R0/enterpriseFeatureSettingsItemV2025R0.js.map +1 -0
  354. package/lib/schemas/v2025R0/externalCollabSecuritySettingsV2025R0.d.ts +32 -0
  355. package/lib/schemas/v2025R0/externalCollabSecuritySettingsV2025R0.d.ts.map +1 -0
  356. package/lib/schemas/v2025R0/externalCollabSecuritySettingsV2025R0.js +151 -0
  357. package/lib/schemas/v2025R0/externalCollabSecuritySettingsV2025R0.js.map +1 -0
  358. package/lib/schemas/v2025R0/hubItemReferenceV2025R0.js +2 -2
  359. package/lib/schemas/v2025R0/hubItemReferenceV2025R0.js.map +1 -1
  360. package/lib/schemas/v2025R0/index.d.ts +20 -0
  361. package/lib/schemas/v2025R0/index.d.ts.map +1 -1
  362. package/lib/schemas/v2025R0/index.js +20 -0
  363. package/lib/schemas/v2025R0/index.js.map +1 -1
  364. package/lib/schemas/v2025R0/keysafeSettingsV2025R0.d.ts +28 -0
  365. package/lib/schemas/v2025R0/keysafeSettingsV2025R0.d.ts.map +1 -0
  366. package/lib/schemas/v2025R0/keysafeSettingsV2025R0.js +78 -0
  367. package/lib/schemas/v2025R0/keysafeSettingsV2025R0.js.map +1 -0
  368. package/lib/schemas/v2025R0/listUserV2025R0.d.ts +16 -0
  369. package/lib/schemas/v2025R0/listUserV2025R0.d.ts.map +1 -0
  370. package/lib/schemas/v2025R0/listUserV2025R0.js +36 -0
  371. package/lib/schemas/v2025R0/listUserV2025R0.js.map +1 -0
  372. package/lib/schemas/v2025R0/sharedLinkPermissionsV2025R0.d.ts +19 -0
  373. package/lib/schemas/v2025R0/sharedLinkPermissionsV2025R0.d.ts.map +1 -0
  374. package/lib/schemas/v2025R0/sharedLinkPermissionsV2025R0.js +63 -0
  375. package/lib/schemas/v2025R0/sharedLinkPermissionsV2025R0.js.map +1 -0
  376. package/lib/schemas/v2025R0/shieldRuleItemV2025R0.d.ts +38 -0
  377. package/lib/schemas/v2025R0/shieldRuleItemV2025R0.d.ts.map +1 -0
  378. package/lib/schemas/v2025R0/shieldRuleItemV2025R0.js +130 -0
  379. package/lib/schemas/v2025R0/shieldRuleItemV2025R0.js.map +1 -0
  380. package/lib/schemas/v2025R0/userOrGroupReferenceV2025R0.d.ts +16 -0
  381. package/lib/schemas/v2025R0/userOrGroupReferenceV2025R0.d.ts.map +1 -0
  382. package/lib/schemas/v2025R0/userOrGroupReferenceV2025R0.js +49 -0
  383. package/lib/schemas/v2025R0/userOrGroupReferenceV2025R0.js.map +1 -0
  384. package/lib/schemas/v2025R0/userTrackingCodeV2025R0.d.ts +13 -0
  385. package/lib/schemas/v2025R0/userTrackingCodeV2025R0.d.ts.map +1 -0
  386. package/lib/schemas/v2025R0/userTrackingCodeV2025R0.js +32 -0
  387. package/lib/schemas/v2025R0/userTrackingCodeV2025R0.js.map +1 -0
  388. package/lib/schemas/v2025R0/weblinkReferenceV2025R0.d.ts +3 -3
  389. package/lib/schemas/v2025R0/weblinkReferenceV2025R0.d.ts.map +1 -1
  390. package/lib/schemas/v2025R0/weblinkReferenceV2025R0.js +3 -3
  391. package/lib/schemas/v2025R0/weblinkReferenceV2025R0.js.map +1 -1
  392. package/lib-esm/box/errors.js +4 -0
  393. package/lib-esm/box/errors.js.map +1 -1
  394. package/lib-esm/box/jwtAuth.d.ts +1 -1
  395. package/lib-esm/client.d.ts +3 -1
  396. package/lib-esm/client.js +6 -0
  397. package/lib-esm/client.js.map +1 -1
  398. package/lib-esm/managers/ai.d.ts +17 -14
  399. package/lib-esm/managers/ai.js +7 -4
  400. package/lib-esm/managers/ai.js.map +1 -1
  401. package/lib-esm/managers/aiStudio.d.ts +9 -9
  402. package/lib-esm/managers/aiStudio.js.map +1 -1
  403. package/lib-esm/managers/appItemAssociations.d.ts +4 -4
  404. package/lib-esm/managers/appItemAssociations.js.map +1 -1
  405. package/lib-esm/managers/archives.d.ts +65 -6
  406. package/lib-esm/managers/archives.js +124 -3
  407. package/lib-esm/managers/archives.js.map +1 -1
  408. package/lib-esm/managers/authorization.d.ts +8 -8
  409. package/lib-esm/managers/authorization.js.map +1 -1
  410. package/lib-esm/managers/avatars.d.ts +6 -6
  411. package/lib-esm/managers/avatars.js.map +1 -1
  412. package/lib-esm/managers/chunkedUploads.d.ts +24 -24
  413. package/lib-esm/managers/chunkedUploads.js.map +1 -1
  414. package/lib-esm/managers/classifications.d.ts +7 -7
  415. package/lib-esm/managers/classifications.js.map +1 -1
  416. package/lib-esm/managers/collaborationAllowlistEntries.d.ts +7 -7
  417. package/lib-esm/managers/collaborationAllowlistEntries.js.map +1 -1
  418. package/lib-esm/managers/collaborationAllowlistExemptTargets.d.ts +7 -7
  419. package/lib-esm/managers/collaborationAllowlistExemptTargets.js.map +1 -1
  420. package/lib-esm/managers/collections.d.ts +5 -5
  421. package/lib-esm/managers/collections.js.map +1 -1
  422. package/lib-esm/managers/comments.d.ts +10 -10
  423. package/lib-esm/managers/comments.js.map +1 -1
  424. package/lib-esm/managers/devicePinners.d.ts +6 -6
  425. package/lib-esm/managers/devicePinners.js.map +1 -1
  426. package/lib-esm/managers/docgen.d.ts +7 -7
  427. package/lib-esm/managers/docgen.js.map +1 -1
  428. package/lib-esm/managers/docgenTemplate.d.ts +11 -11
  429. package/lib-esm/managers/docgenTemplate.js.map +1 -1
  430. package/lib-esm/managers/downloads.d.ts +4 -4
  431. package/lib-esm/managers/downloads.js.map +1 -1
  432. package/lib-esm/managers/emailAliases.d.ts +6 -6
  433. package/lib-esm/managers/emailAliases.js.map +1 -1
  434. package/lib-esm/managers/enterpriseConfigurations.d.ts +59 -0
  435. package/lib-esm/managers/enterpriseConfigurations.js +91 -0
  436. package/lib-esm/managers/enterpriseConfigurations.js.map +1 -0
  437. package/lib-esm/managers/events.d.ts +3 -3
  438. package/lib-esm/managers/events.js.map +1 -1
  439. package/lib-esm/managers/externalUsers.d.ts +2 -2
  440. package/lib-esm/managers/externalUsers.js.map +1 -1
  441. package/lib-esm/managers/fileClassifications.d.ts +8 -8
  442. package/lib-esm/managers/fileClassifications.js.map +1 -1
  443. package/lib-esm/managers/fileMetadata.d.ts +10 -10
  444. package/lib-esm/managers/fileMetadata.js.map +1 -1
  445. package/lib-esm/managers/fileRequests.d.ts +8 -8
  446. package/lib-esm/managers/fileRequests.js.map +1 -1
  447. package/lib-esm/managers/fileVersionLegalHolds.d.ts +4 -4
  448. package/lib-esm/managers/fileVersionLegalHolds.js.map +1 -1
  449. package/lib-esm/managers/fileVersionRetentions.d.ts +3 -3
  450. package/lib-esm/managers/fileVersionRetentions.js.map +1 -1
  451. package/lib-esm/managers/fileVersions.d.ts +10 -10
  452. package/lib-esm/managers/fileVersions.js.map +1 -1
  453. package/lib-esm/managers/fileWatermarks.d.ts +6 -6
  454. package/lib-esm/managers/fileWatermarks.js.map +1 -1
  455. package/lib-esm/managers/files.d.ts +12 -12
  456. package/lib-esm/managers/files.js.map +1 -1
  457. package/lib-esm/managers/folderClassifications.d.ts +8 -8
  458. package/lib-esm/managers/folderClassifications.js.map +1 -1
  459. package/lib-esm/managers/folderLocks.d.ts +6 -6
  460. package/lib-esm/managers/folderLocks.js.map +1 -1
  461. package/lib-esm/managers/folderMetadata.d.ts +10 -10
  462. package/lib-esm/managers/folderMetadata.js.map +1 -1
  463. package/lib-esm/managers/folderWatermarks.d.ts +6 -6
  464. package/lib-esm/managers/folderWatermarks.js.map +1 -1
  465. package/lib-esm/managers/folders.d.ts +12 -12
  466. package/lib-esm/managers/folders.js.map +1 -1
  467. package/lib-esm/managers/groups.d.ts +9 -9
  468. package/lib-esm/managers/groups.js.map +1 -1
  469. package/lib-esm/managers/hubCollaborations.d.ts +10 -10
  470. package/lib-esm/managers/hubCollaborations.js.map +1 -1
  471. package/lib-esm/managers/hubItems.d.ts +4 -4
  472. package/lib-esm/managers/hubItems.js.map +1 -1
  473. package/lib-esm/managers/hubs.d.ts +12 -12
  474. package/lib-esm/managers/hubs.js.map +1 -1
  475. package/lib-esm/managers/index.d.ts +1 -0
  476. package/lib-esm/managers/index.js +1 -0
  477. package/lib-esm/managers/index.js.map +1 -1
  478. package/lib-esm/managers/integrationMappings.d.ts +14 -14
  479. package/lib-esm/managers/integrationMappings.js.map +1 -1
  480. package/lib-esm/managers/invites.d.ts +4 -4
  481. package/lib-esm/managers/invites.js.map +1 -1
  482. package/lib-esm/managers/legalHoldPolicies.d.ts +9 -9
  483. package/lib-esm/managers/legalHoldPolicies.js.map +1 -1
  484. package/lib-esm/managers/legalHoldPolicyAssignments.d.ts +10 -10
  485. package/lib-esm/managers/legalHoldPolicyAssignments.js.map +1 -1
  486. package/lib-esm/managers/listCollaborations.d.ts +8 -8
  487. package/lib-esm/managers/listCollaborations.js.map +1 -1
  488. package/lib-esm/managers/memberships.d.ts +12 -12
  489. package/lib-esm/managers/memberships.js.map +1 -1
  490. package/lib-esm/managers/metadataCascadePolicies.d.ts +10 -10
  491. package/lib-esm/managers/metadataCascadePolicies.js.map +1 -1
  492. package/lib-esm/managers/metadataTemplates.d.ts +14 -14
  493. package/lib-esm/managers/metadataTemplates.js.map +1 -1
  494. package/lib-esm/managers/recentItems.d.ts +1 -1
  495. package/lib-esm/managers/recentItems.js.map +1 -1
  496. package/lib-esm/managers/retentionPolicies.d.ts +9 -9
  497. package/lib-esm/managers/retentionPolicies.js.map +1 -1
  498. package/lib-esm/managers/retentionPolicyAssignments.d.ts +10 -10
  499. package/lib-esm/managers/retentionPolicyAssignments.js.map +1 -1
  500. package/lib-esm/managers/search.d.ts +3 -3
  501. package/lib-esm/managers/search.js.map +1 -1
  502. package/lib-esm/managers/sessionTermination.d.ts +4 -4
  503. package/lib-esm/managers/sessionTermination.js.map +1 -1
  504. package/lib-esm/managers/sharedLinksAppItems.d.ts +2 -2
  505. package/lib-esm/managers/sharedLinksAppItems.js.map +1 -1
  506. package/lib-esm/managers/sharedLinksFiles.d.ts +10 -10
  507. package/lib-esm/managers/sharedLinksFiles.js.map +1 -1
  508. package/lib-esm/managers/sharedLinksFolders.d.ts +10 -10
  509. package/lib-esm/managers/sharedLinksFolders.js.map +1 -1
  510. package/lib-esm/managers/sharedLinksWebLinks.d.ts +10 -10
  511. package/lib-esm/managers/sharedLinksWebLinks.js.map +1 -1
  512. package/lib-esm/managers/shieldInformationBarrierReports.d.ts +6 -6
  513. package/lib-esm/managers/shieldInformationBarrierReports.js.map +1 -1
  514. package/lib-esm/managers/shieldInformationBarrierSegmentMembers.d.ts +8 -8
  515. package/lib-esm/managers/shieldInformationBarrierSegmentMembers.js.map +1 -1
  516. package/lib-esm/managers/shieldInformationBarrierSegmentRestrictions.d.ts +8 -8
  517. package/lib-esm/managers/shieldInformationBarrierSegmentRestrictions.js.map +1 -1
  518. package/lib-esm/managers/shieldInformationBarrierSegments.d.ts +10 -10
  519. package/lib-esm/managers/shieldInformationBarrierSegments.js.map +1 -1
  520. package/lib-esm/managers/shieldInformationBarriers.d.ts +7 -7
  521. package/lib-esm/managers/shieldInformationBarriers.js.map +1 -1
  522. package/lib-esm/managers/shieldLists.d.ts +9 -9
  523. package/lib-esm/managers/shieldLists.js.map +1 -1
  524. package/lib-esm/managers/signRequests.d.ts +9 -9
  525. package/lib-esm/managers/signRequests.js.map +1 -1
  526. package/lib-esm/managers/signTemplates.d.ts +3 -3
  527. package/lib-esm/managers/signTemplates.js.map +1 -1
  528. package/lib-esm/managers/skills.d.ts +10 -10
  529. package/lib-esm/managers/skills.js.map +1 -1
  530. package/lib-esm/managers/storagePolicies.d.ts +3 -3
  531. package/lib-esm/managers/storagePolicies.js.map +1 -1
  532. package/lib-esm/managers/storagePolicyAssignments.d.ts +10 -10
  533. package/lib-esm/managers/storagePolicyAssignments.js.map +1 -1
  534. package/lib-esm/managers/taskAssignments.d.ts +10 -10
  535. package/lib-esm/managers/taskAssignments.js.map +1 -1
  536. package/lib-esm/managers/tasks.d.ts +10 -10
  537. package/lib-esm/managers/tasks.js.map +1 -1
  538. package/lib-esm/managers/termsOfServiceUserStatuses.d.ts +6 -6
  539. package/lib-esm/managers/termsOfServiceUserStatuses.js.map +1 -1
  540. package/lib-esm/managers/termsOfServices.d.ts +7 -7
  541. package/lib-esm/managers/termsOfServices.js.map +1 -1
  542. package/lib-esm/managers/transfer.d.ts +3 -3
  543. package/lib-esm/managers/transfer.js +1 -1
  544. package/lib-esm/managers/transfer.js.map +1 -1
  545. package/lib-esm/managers/trashedFiles.d.ts +6 -6
  546. package/lib-esm/managers/trashedFiles.js.map +1 -1
  547. package/lib-esm/managers/trashedFolders.d.ts +6 -6
  548. package/lib-esm/managers/trashedFolders.js.map +1 -1
  549. package/lib-esm/managers/trashedItems.d.ts +1 -1
  550. package/lib-esm/managers/trashedItems.js.map +1 -1
  551. package/lib-esm/managers/trashedWebLinks.d.ts +6 -6
  552. package/lib-esm/managers/trashedWebLinks.js.map +1 -1
  553. package/lib-esm/managers/uploads.d.ts +7 -7
  554. package/lib-esm/managers/uploads.js.map +1 -1
  555. package/lib-esm/managers/userCollaborations.d.ts +22 -14
  556. package/lib-esm/managers/userCollaborations.js.map +1 -1
  557. package/lib-esm/managers/users.d.ts +15 -15
  558. package/lib-esm/managers/users.js +3 -3
  559. package/lib-esm/managers/users.js.map +1 -1
  560. package/lib-esm/managers/webLinks.d.ts +8 -8
  561. package/lib-esm/managers/webLinks.js.map +1 -1
  562. package/lib-esm/managers/webhooks.d.ts +11 -11
  563. package/lib-esm/managers/webhooks.js.map +1 -1
  564. package/lib-esm/managers/workflows.d.ts +4 -4
  565. package/lib-esm/managers/workflows.js.map +1 -1
  566. package/lib-esm/managers/zipDownloads.d.ts +8 -8
  567. package/lib-esm/managers/zipDownloads.js.map +1 -1
  568. package/lib-esm/networking/boxNetworkClient.js +21 -6
  569. package/lib-esm/networking/boxNetworkClient.js.map +1 -1
  570. package/lib-esm/networking/fetchOptions.d.ts +1 -1
  571. package/lib-esm/networking/retries.js +3 -1
  572. package/lib-esm/networking/retries.js.map +1 -1
  573. package/lib-esm/networking/version.d.ts +1 -1
  574. package/lib-esm/networking/version.js +1 -1
  575. package/lib-esm/schemas/index.d.ts +2 -1
  576. package/lib-esm/schemas/index.js +2 -1
  577. package/lib-esm/schemas/index.js.map +1 -1
  578. package/lib-esm/schemas/signRequest.d.ts +9 -0
  579. package/lib-esm/schemas/signRequest.js +28 -0
  580. package/lib-esm/schemas/signRequest.js.map +1 -1
  581. package/lib-esm/schemas/signRequestSigner.d.ts +4 -0
  582. package/lib-esm/schemas/signRequestSigner.js +20 -0
  583. package/lib-esm/schemas/signRequestSigner.js.map +1 -1
  584. package/lib-esm/schemas/signRequestSignerAttachment.d.ts +12 -0
  585. package/lib-esm/schemas/signRequestSignerAttachment.js +31 -0
  586. package/lib-esm/schemas/signRequestSignerAttachment.js.map +1 -0
  587. package/lib-esm/schemas/v2025R0/archiveV2025R0.d.ts +25 -2
  588. package/lib-esm/schemas/v2025R0/archiveV2025R0.js +78 -1
  589. package/lib-esm/schemas/v2025R0/archiveV2025R0.js.map +1 -1
  590. package/lib-esm/schemas/v2025R0/collaborationPermissionsV2025R0.d.ts +27 -0
  591. package/lib-esm/schemas/v2025R0/collaborationPermissionsV2025R0.js +94 -0
  592. package/lib-esm/schemas/v2025R0/collaborationPermissionsV2025R0.js.map +1 -0
  593. package/lib-esm/schemas/v2025R0/customSessionDurationGroupItemV2025R0.d.ts +12 -0
  594. package/lib-esm/schemas/v2025R0/customSessionDurationGroupItemV2025R0.js +31 -0
  595. package/lib-esm/schemas/v2025R0/customSessionDurationGroupItemV2025R0.js.map +1 -0
  596. package/lib-esm/schemas/v2025R0/docGenJobFullV2025R0.js +2 -6
  597. package/lib-esm/schemas/v2025R0/docGenJobFullV2025R0.js.map +1 -1
  598. package/lib-esm/schemas/v2025R0/docGenJobV2025R0.d.ts +2 -2
  599. package/lib-esm/schemas/v2025R0/docGenJobV2025R0.js +4 -12
  600. package/lib-esm/schemas/v2025R0/docGenJobV2025R0.js.map +1 -1
  601. package/lib-esm/schemas/v2025R0/enterpriseConfigurationContentAndSharingV2025R0.d.ts +95 -0
  602. package/lib-esm/schemas/v2025R0/enterpriseConfigurationContentAndSharingV2025R0.js +655 -0
  603. package/lib-esm/schemas/v2025R0/enterpriseConfigurationContentAndSharingV2025R0.js.map +1 -0
  604. package/lib-esm/schemas/v2025R0/enterpriseConfigurationItemBooleanV2025R0.d.ts +9 -0
  605. package/lib-esm/schemas/v2025R0/enterpriseConfigurationItemBooleanV2025R0.js +41 -0
  606. package/lib-esm/schemas/v2025R0/enterpriseConfigurationItemBooleanV2025R0.js.map +1 -0
  607. package/lib-esm/schemas/v2025R0/enterpriseConfigurationItemIntegerV2025R0.d.ts +9 -0
  608. package/lib-esm/schemas/v2025R0/enterpriseConfigurationItemIntegerV2025R0.js +42 -0
  609. package/lib-esm/schemas/v2025R0/enterpriseConfigurationItemIntegerV2025R0.js.map +1 -0
  610. package/lib-esm/schemas/v2025R0/enterpriseConfigurationItemStringV2025R0.d.ts +9 -0
  611. package/lib-esm/schemas/v2025R0/enterpriseConfigurationItemStringV2025R0.js +42 -0
  612. package/lib-esm/schemas/v2025R0/enterpriseConfigurationItemStringV2025R0.js.map +1 -0
  613. package/lib-esm/schemas/v2025R0/enterpriseConfigurationItemV2025R0.d.ts +9 -0
  614. package/lib-esm/schemas/v2025R0/enterpriseConfigurationItemV2025R0.js +25 -0
  615. package/lib-esm/schemas/v2025R0/enterpriseConfigurationItemV2025R0.js.map +1 -0
  616. package/lib-esm/schemas/v2025R0/enterpriseConfigurationSecurityV2025R0.d.ts +82 -0
  617. package/lib-esm/schemas/v2025R0/enterpriseConfigurationSecurityV2025R0.js +477 -0
  618. package/lib-esm/schemas/v2025R0/enterpriseConfigurationSecurityV2025R0.js.map +1 -0
  619. package/lib-esm/schemas/v2025R0/enterpriseConfigurationShieldV2025R0.d.ts +10 -0
  620. package/lib-esm/schemas/v2025R0/enterpriseConfigurationShieldV2025R0.js +41 -0
  621. package/lib-esm/schemas/v2025R0/enterpriseConfigurationShieldV2025R0.js.map +1 -0
  622. package/lib-esm/schemas/v2025R0/enterpriseConfigurationUserSettingsV2025R0.d.ts +36 -0
  623. package/lib-esm/schemas/v2025R0/enterpriseConfigurationUserSettingsV2025R0.js +227 -0
  624. package/lib-esm/schemas/v2025R0/enterpriseConfigurationUserSettingsV2025R0.js.map +1 -0
  625. package/lib-esm/schemas/v2025R0/enterpriseConfigurationV2025R0.d.ts +23 -0
  626. package/lib-esm/schemas/v2025R0/enterpriseConfigurationV2025R0.js +85 -0
  627. package/lib-esm/schemas/v2025R0/enterpriseConfigurationV2025R0.js.map +1 -0
  628. package/lib-esm/schemas/v2025R0/enterpriseFeatureSettingV2025R0.d.ts +36 -0
  629. package/lib-esm/schemas/v2025R0/enterpriseFeatureSettingV2025R0.js +119 -0
  630. package/lib-esm/schemas/v2025R0/enterpriseFeatureSettingV2025R0.js.map +1 -0
  631. package/lib-esm/schemas/v2025R0/enterpriseFeatureSettingsItemV2025R0.d.ts +8 -0
  632. package/lib-esm/schemas/v2025R0/enterpriseFeatureSettingsItemV2025R0.js +47 -0
  633. package/lib-esm/schemas/v2025R0/enterpriseFeatureSettingsItemV2025R0.js.map +1 -0
  634. package/lib-esm/schemas/v2025R0/externalCollabSecuritySettingsV2025R0.d.ts +31 -0
  635. package/lib-esm/schemas/v2025R0/externalCollabSecuritySettingsV2025R0.js +151 -0
  636. package/lib-esm/schemas/v2025R0/externalCollabSecuritySettingsV2025R0.js.map +1 -0
  637. package/lib-esm/schemas/v2025R0/hubItemReferenceV2025R0.js +2 -2
  638. package/lib-esm/schemas/v2025R0/hubItemReferenceV2025R0.js.map +1 -1
  639. package/lib-esm/schemas/v2025R0/index.d.ts +20 -0
  640. package/lib-esm/schemas/v2025R0/index.js +20 -0
  641. package/lib-esm/schemas/v2025R0/index.js.map +1 -1
  642. package/lib-esm/schemas/v2025R0/keysafeSettingsV2025R0.d.ts +27 -0
  643. package/lib-esm/schemas/v2025R0/keysafeSettingsV2025R0.js +78 -0
  644. package/lib-esm/schemas/v2025R0/keysafeSettingsV2025R0.js.map +1 -0
  645. package/lib-esm/schemas/v2025R0/listUserV2025R0.d.ts +15 -0
  646. package/lib-esm/schemas/v2025R0/listUserV2025R0.js +36 -0
  647. package/lib-esm/schemas/v2025R0/listUserV2025R0.js.map +1 -0
  648. package/lib-esm/schemas/v2025R0/sharedLinkPermissionsV2025R0.d.ts +18 -0
  649. package/lib-esm/schemas/v2025R0/sharedLinkPermissionsV2025R0.js +63 -0
  650. package/lib-esm/schemas/v2025R0/sharedLinkPermissionsV2025R0.js.map +1 -0
  651. package/lib-esm/schemas/v2025R0/shieldRuleItemV2025R0.d.ts +37 -0
  652. package/lib-esm/schemas/v2025R0/shieldRuleItemV2025R0.js +130 -0
  653. package/lib-esm/schemas/v2025R0/shieldRuleItemV2025R0.js.map +1 -0
  654. package/lib-esm/schemas/v2025R0/userOrGroupReferenceV2025R0.d.ts +15 -0
  655. package/lib-esm/schemas/v2025R0/userOrGroupReferenceV2025R0.js +49 -0
  656. package/lib-esm/schemas/v2025R0/userOrGroupReferenceV2025R0.js.map +1 -0
  657. package/lib-esm/schemas/v2025R0/userTrackingCodeV2025R0.d.ts +12 -0
  658. package/lib-esm/schemas/v2025R0/userTrackingCodeV2025R0.js +32 -0
  659. package/lib-esm/schemas/v2025R0/userTrackingCodeV2025R0.js.map +1 -0
  660. package/lib-esm/schemas/v2025R0/weblinkReferenceV2025R0.d.ts +3 -3
  661. package/lib-esm/schemas/v2025R0/weblinkReferenceV2025R0.js +3 -3
  662. package/lib-esm/schemas/v2025R0/weblinkReferenceV2025R0.js.map +1 -1
  663. package/package.json +1 -1
  664. package/src/box/errors.ts +4 -0
  665. package/src/box/jwtAuth.ts +1 -1
  666. package/src/client.ts +7 -0
  667. package/src/managers/ai.ts +27 -34
  668. package/src/managers/aiStudio.ts +19 -29
  669. package/src/managers/appItemAssociations.ts +8 -12
  670. package/src/managers/archives.ts +211 -19
  671. package/src/managers/authorization.ts +16 -24
  672. package/src/managers/avatars.ts +12 -18
  673. package/src/managers/chunkedUploads.ts +48 -72
  674. package/src/managers/classifications.ts +15 -23
  675. package/src/managers/collaborationAllowlistEntries.ts +15 -23
  676. package/src/managers/collaborationAllowlistExemptTargets.ts +15 -23
  677. package/src/managers/collections.ts +11 -17
  678. package/src/managers/comments.ts +20 -30
  679. package/src/managers/devicePinners.ts +12 -18
  680. package/src/managers/docgen.ts +15 -23
  681. package/src/managers/docgenTemplate.ts +23 -35
  682. package/src/managers/downloads.ts +8 -12
  683. package/src/managers/emailAliases.ts +12 -18
  684. package/src/managers/enterpriseConfigurations.ts +178 -0
  685. package/src/managers/events.ts +9 -15
  686. package/src/managers/externalUsers.ts +4 -6
  687. package/src/managers/fileClassifications.ts +16 -24
  688. package/src/managers/fileMetadata.ts +20 -30
  689. package/src/managers/fileRequests.ts +16 -24
  690. package/src/managers/fileVersionLegalHolds.ts +8 -12
  691. package/src/managers/fileVersionRetentions.ts +7 -11
  692. package/src/managers/fileVersions.ts +20 -30
  693. package/src/managers/fileWatermarks.ts +12 -18
  694. package/src/managers/files.ts +24 -36
  695. package/src/managers/folderClassifications.ts +16 -24
  696. package/src/managers/folderLocks.ts +12 -18
  697. package/src/managers/folderMetadata.ts +20 -30
  698. package/src/managers/folderWatermarks.ts +12 -18
  699. package/src/managers/folders.ts +24 -36
  700. package/src/managers/groups.ts +19 -29
  701. package/src/managers/hubCollaborations.ts +20 -30
  702. package/src/managers/hubItems.ts +8 -12
  703. package/src/managers/hubs.ts +26 -40
  704. package/src/managers/index.ts +1 -0
  705. package/src/managers/integrationMappings.ts +30 -46
  706. package/src/managers/invites.ts +8 -12
  707. package/src/managers/legalHoldPolicies.ts +19 -29
  708. package/src/managers/legalHoldPolicyAssignments.ts +20 -30
  709. package/src/managers/listCollaborations.ts +16 -24
  710. package/src/managers/memberships.ts +24 -36
  711. package/src/managers/metadataCascadePolicies.ts +20 -30
  712. package/src/managers/metadataTemplates.ts +30 -46
  713. package/src/managers/recentItems.ts +3 -5
  714. package/src/managers/retentionPolicies.ts +19 -29
  715. package/src/managers/retentionPolicyAssignments.ts +20 -30
  716. package/src/managers/search.ts +7 -11
  717. package/src/managers/sessionTermination.ts +8 -12
  718. package/src/managers/sharedLinksAppItems.ts +4 -6
  719. package/src/managers/sharedLinksFiles.ts +20 -30
  720. package/src/managers/sharedLinksFolders.ts +20 -30
  721. package/src/managers/sharedLinksWebLinks.ts +20 -30
  722. package/src/managers/shieldInformationBarrierReports.ts +12 -18
  723. package/src/managers/shieldInformationBarrierSegmentMembers.ts +16 -24
  724. package/src/managers/shieldInformationBarrierSegmentRestrictions.ts +16 -24
  725. package/src/managers/shieldInformationBarrierSegments.ts +20 -30
  726. package/src/managers/shieldInformationBarriers.ts +15 -23
  727. package/src/managers/shieldLists.ts +19 -29
  728. package/src/managers/signRequests.ts +19 -29
  729. package/src/managers/signTemplates.ts +7 -11
  730. package/src/managers/skills.ts +20 -30
  731. package/src/managers/storagePolicies.ts +7 -11
  732. package/src/managers/storagePolicyAssignments.ts +20 -30
  733. package/src/managers/taskAssignments.ts +20 -30
  734. package/src/managers/tasks.ts +20 -30
  735. package/src/managers/termsOfServiceUserStatuses.ts +12 -18
  736. package/src/managers/termsOfServices.ts +15 -23
  737. package/src/managers/transfer.ts +5 -7
  738. package/src/managers/trashedFiles.ts +12 -18
  739. package/src/managers/trashedFolders.ts +12 -18
  740. package/src/managers/trashedItems.ts +3 -5
  741. package/src/managers/trashedWebLinks.ts +12 -18
  742. package/src/managers/uploads.ts +15 -23
  743. package/src/managers/userCollaborations.ts +30 -30
  744. package/src/managers/users.ts +27 -39
  745. package/src/managers/webLinks.ts +16 -24
  746. package/src/managers/webhooks.ts +21 -31
  747. package/src/managers/workflows.ts +8 -12
  748. package/src/managers/zipDownloads.ts +16 -24
  749. package/src/networking/boxNetworkClient.ts +30 -9
  750. package/src/networking/fetchOptions.ts +1 -1
  751. package/src/networking/retries.ts +3 -1
  752. package/src/networking/version.ts +1 -1
  753. package/src/schemas/index.ts +2 -1
  754. package/src/schemas/signRequest.ts +42 -0
  755. package/src/schemas/signRequestSigner.ts +30 -0
  756. package/src/schemas/signRequestSignerAttachment.ts +46 -0
  757. package/src/schemas/v2025R0/archiveV2025R0.ts +106 -2
  758. package/src/schemas/v2025R0/collaborationPermissionsV2025R0.ts +150 -0
  759. package/src/schemas/v2025R0/customSessionDurationGroupItemV2025R0.ts +46 -0
  760. package/src/schemas/v2025R0/docGenJobFullV2025R0.ts +4 -8
  761. package/src/schemas/v2025R0/docGenJobV2025R0.ts +8 -16
  762. package/src/schemas/v2025R0/enterpriseConfigurationContentAndSharingV2025R0.ts +1190 -0
  763. package/src/schemas/v2025R0/enterpriseConfigurationItemBooleanV2025R0.ts +58 -0
  764. package/src/schemas/v2025R0/enterpriseConfigurationItemIntegerV2025R0.ts +58 -0
  765. package/src/schemas/v2025R0/enterpriseConfigurationItemStringV2025R0.ts +56 -0
  766. package/src/schemas/v2025R0/enterpriseConfigurationItemV2025R0.ts +37 -0
  767. package/src/schemas/v2025R0/enterpriseConfigurationSecurityV2025R0.ts +838 -0
  768. package/src/schemas/v2025R0/enterpriseConfigurationShieldV2025R0.ts +59 -0
  769. package/src/schemas/v2025R0/enterpriseConfigurationUserSettingsV2025R0.ts +434 -0
  770. package/src/schemas/v2025R0/enterpriseConfigurationV2025R0.ts +129 -0
  771. package/src/schemas/v2025R0/enterpriseFeatureSettingV2025R0.ts +178 -0
  772. package/src/schemas/v2025R0/enterpriseFeatureSettingsItemV2025R0.ts +62 -0
  773. package/src/schemas/v2025R0/externalCollabSecuritySettingsV2025R0.ts +208 -0
  774. package/src/schemas/v2025R0/hubItemReferenceV2025R0.ts +2 -2
  775. package/src/schemas/v2025R0/index.ts +20 -0
  776. package/src/schemas/v2025R0/keysafeSettingsV2025R0.ts +117 -0
  777. package/src/schemas/v2025R0/listUserV2025R0.ts +49 -0
  778. package/src/schemas/v2025R0/sharedLinkPermissionsV2025R0.ts +98 -0
  779. package/src/schemas/v2025R0/shieldRuleItemV2025R0.ts +188 -0
  780. package/src/schemas/v2025R0/userOrGroupReferenceV2025R0.ts +68 -0
  781. package/src/schemas/v2025R0/userTrackingCodeV2025R0.ts +44 -0
  782. package/src/schemas/v2025R0/weblinkReferenceV2025R0.ts +5 -5
  783. package/src/test/ai.test.ts +23 -52
  784. package/src/test/aiStudio.test.ts +3 -3
  785. package/src/test/archives.test.ts +25 -0
  786. package/src/test/enterpriseConfigurations.test.ts +86 -0
  787. package/src/test/events.test.ts +1 -1
  788. package/lib-esm/test/ai.test.d.ts +0 -3
  789. package/lib-esm/test/ai.test.js +0 -428
  790. package/lib-esm/test/ai.test.js.map +0 -1
  791. package/lib-esm/test/aiStudio.test.d.ts +0 -3
  792. package/lib-esm/test/aiStudio.test.js +0 -102
  793. package/lib-esm/test/aiStudio.test.js.map +0 -1
  794. package/lib-esm/test/appItemAssociations.test.d.ts +0 -1
  795. package/lib-esm/test/appItemAssociations.test.js +0 -70
  796. package/lib-esm/test/appItemAssociations.test.js.map +0 -1
  797. package/lib-esm/test/archives.test.d.ts +0 -4
  798. package/lib-esm/test/archives.test.js +0 -32
  799. package/lib-esm/test/archives.test.js.map +0 -1
  800. package/lib-esm/test/auth.test.d.ts +0 -3
  801. package/lib-esm/test/auth.test.js +0 -382
  802. package/lib-esm/test/auth.test.js.map +0 -1
  803. package/lib-esm/test/avatars.test.d.ts +0 -3
  804. package/lib-esm/test/avatars.test.js +0 -36
  805. package/lib-esm/test/avatars.test.js.map +0 -1
  806. package/lib-esm/test/chunkedUploads.test.d.ts +0 -22
  807. package/lib-esm/test/chunkedUploads.test.js +0 -247
  808. package/lib-esm/test/chunkedUploads.test.js.map +0 -1
  809. package/lib-esm/test/classifications.test.d.ts +0 -3
  810. package/lib-esm/test/classifications.test.js +0 -52
  811. package/lib-esm/test/classifications.test.js.map +0 -1
  812. package/lib-esm/test/client.test.d.ts +0 -46
  813. package/lib-esm/test/client.test.js +0 -310
  814. package/lib-esm/test/client.test.js.map +0 -1
  815. package/lib-esm/test/collaborationAllowlistEntries.test.d.ts +0 -3
  816. package/lib-esm/test/collaborationAllowlistEntries.test.js +0 -43
  817. package/lib-esm/test/collaborationAllowlistEntries.test.js.map +0 -1
  818. package/lib-esm/test/collaborationAllowlistExemptTargets.test.d.ts +0 -3
  819. package/lib-esm/test/collaborationAllowlistExemptTargets.test.js +0 -43
  820. package/lib-esm/test/collaborationAllowlistExemptTargets.test.js.map +0 -1
  821. package/lib-esm/test/collections.test.d.ts +0 -3
  822. package/lib-esm/test/collections.test.js +0 -40
  823. package/lib-esm/test/collections.test.js.map +0 -1
  824. package/lib-esm/test/comments.test.d.ts +0 -3
  825. package/lib-esm/test/comments.test.js +0 -78
  826. package/lib-esm/test/comments.test.js.map +0 -1
  827. package/lib-esm/test/commons.d.ts +0 -21
  828. package/lib-esm/test/commons.js +0 -161
  829. package/lib-esm/test/commons.js.map +0 -1
  830. package/lib-esm/test/devicePinners.test.d.ts +0 -3
  831. package/lib-esm/test/devicePinners.test.js +0 -29
  832. package/lib-esm/test/devicePinners.test.js.map +0 -1
  833. package/lib-esm/test/docgen.test.d.ts +0 -3
  834. package/lib-esm/test/docgen.test.js +0 -135
  835. package/lib-esm/test/docgen.test.js.map +0 -1
  836. package/lib-esm/test/docgenTemplate.test.d.ts +0 -3
  837. package/lib-esm/test/docgenTemplate.test.js +0 -29
  838. package/lib-esm/test/docgenTemplate.test.js.map +0 -1
  839. package/lib-esm/test/downloads.test.d.ts +0 -3
  840. package/lib-esm/test/downloads.test.js +0 -96
  841. package/lib-esm/test/downloads.test.js.map +0 -1
  842. package/lib-esm/test/emailAliases.test.d.ts +0 -3
  843. package/lib-esm/test/emailAliases.test.js +0 -34
  844. package/lib-esm/test/emailAliases.test.js.map +0 -1
  845. package/lib-esm/test/events.test.d.ts +0 -3
  846. package/lib-esm/test/events.test.js +0 -111
  847. package/lib-esm/test/events.test.js.map +0 -1
  848. package/lib-esm/test/externalUsers.test.d.ts +0 -3
  849. package/lib-esm/test/externalUsers.test.js +0 -35
  850. package/lib-esm/test/externalUsers.test.js.map +0 -1
  851. package/lib-esm/test/fileClassifications.test.d.ts +0 -6
  852. package/lib-esm/test/fileClassifications.test.js +0 -81
  853. package/lib-esm/test/fileClassifications.test.js.map +0 -1
  854. package/lib-esm/test/fileMetadata.test.d.ts +0 -3
  855. package/lib-esm/test/fileMetadata.test.js +0 -247
  856. package/lib-esm/test/fileMetadata.test.js.map +0 -1
  857. package/lib-esm/test/fileRequests.test.d.ts +0 -1
  858. package/lib-esm/test/fileRequests.test.js +0 -50
  859. package/lib-esm/test/fileRequests.test.js.map +0 -1
  860. package/lib-esm/test/fileVersionLegalHolds.test.d.ts +0 -3
  861. package/lib-esm/test/fileVersionLegalHolds.test.js +0 -22
  862. package/lib-esm/test/fileVersionLegalHolds.test.js.map +0 -1
  863. package/lib-esm/test/fileVersionRetentions.test.d.ts +0 -3
  864. package/lib-esm/test/fileVersionRetentions.test.js +0 -90
  865. package/lib-esm/test/fileVersionRetentions.test.js.map +0 -1
  866. package/lib-esm/test/fileVersions.test.d.ts +0 -3
  867. package/lib-esm/test/fileVersions.test.js +0 -144
  868. package/lib-esm/test/fileVersions.test.js.map +0 -1
  869. package/lib-esm/test/fileWatermarks.test.d.ts +0 -3
  870. package/lib-esm/test/fileWatermarks.test.js +0 -31
  871. package/lib-esm/test/fileWatermarks.test.js.map +0 -1
  872. package/lib-esm/test/files.test.d.ts +0 -6
  873. package/lib-esm/test/files.test.js +0 -144
  874. package/lib-esm/test/files.test.js.map +0 -1
  875. package/lib-esm/test/folderClassifications.test.d.ts +0 -6
  876. package/lib-esm/test/folderClassifications.test.js +0 -81
  877. package/lib-esm/test/folderClassifications.test.js.map +0 -1
  878. package/lib-esm/test/folderLocks.test.d.ts +0 -3
  879. package/lib-esm/test/folderLocks.test.js +0 -46
  880. package/lib-esm/test/folderLocks.test.js.map +0 -1
  881. package/lib-esm/test/folderMetadata.test.d.ts +0 -3
  882. package/lib-esm/test/folderMetadata.test.js +0 -247
  883. package/lib-esm/test/folderMetadata.test.js.map +0 -1
  884. package/lib-esm/test/folderWatermarks.test.d.ts +0 -3
  885. package/lib-esm/test/folderWatermarks.test.js +0 -26
  886. package/lib-esm/test/folderWatermarks.test.js.map +0 -1
  887. package/lib-esm/test/folders.test.d.ts +0 -3
  888. package/lib-esm/test/folders.test.js +0 -109
  889. package/lib-esm/test/folders.test.js.map +0 -1
  890. package/lib-esm/test/groups.test.d.ts +0 -3
  891. package/lib-esm/test/groups.test.js +0 -48
  892. package/lib-esm/test/groups.test.js.map +0 -1
  893. package/lib-esm/test/integrationMappings.test.d.ts +0 -3
  894. package/lib-esm/test/integrationMappings.test.js +0 -122
  895. package/lib-esm/test/integrationMappings.test.js.map +0 -1
  896. package/lib-esm/test/invites.test.d.ts +0 -1
  897. package/lib-esm/test/invites.test.js +0 -35
  898. package/lib-esm/test/invites.test.js.map +0 -1
  899. package/lib-esm/test/legalHoldPolicies.test.d.ts +0 -3
  900. package/lib-esm/test/legalHoldPolicies.test.js +0 -71
  901. package/lib-esm/test/legalHoldPolicies.test.js.map +0 -1
  902. package/lib-esm/test/legalHoldPolicyAssignments.test.d.ts +0 -3
  903. package/lib-esm/test/legalHoldPolicyAssignments.test.js +0 -69
  904. package/lib-esm/test/legalHoldPolicyAssignments.test.js.map +0 -1
  905. package/lib-esm/test/listCollaborations.test.d.ts +0 -1
  906. package/lib-esm/test/listCollaborations.test.js +0 -67
  907. package/lib-esm/test/listCollaborations.test.js.map +0 -1
  908. package/lib-esm/test/memberships.test.d.ts +0 -3
  909. package/lib-esm/test/memberships.test.js +0 -61
  910. package/lib-esm/test/memberships.test.js.map +0 -1
  911. package/lib-esm/test/metadataCascadePolicies.test.d.ts +0 -3
  912. package/lib-esm/test/metadataCascadePolicies.test.js +0 -80
  913. package/lib-esm/test/metadataCascadePolicies.test.js.map +0 -1
  914. package/lib-esm/test/metadataTemplates.test.d.ts +0 -3
  915. package/lib-esm/test/metadataTemplates.test.js +0 -185
  916. package/lib-esm/test/metadataTemplates.test.js.map +0 -1
  917. package/lib-esm/test/recentItems.test.d.ts +0 -1
  918. package/lib-esm/test/recentItems.test.js +0 -12
  919. package/lib-esm/test/recentItems.test.js.map +0 -1
  920. package/lib-esm/test/retentionPolicies.test.d.ts +0 -3
  921. package/lib-esm/test/retentionPolicies.test.js +0 -45
  922. package/lib-esm/test/retentionPolicies.test.js.map +0 -1
  923. package/lib-esm/test/retentionPolicyAssignments.test.d.ts +0 -3
  924. package/lib-esm/test/retentionPolicyAssignments.test.js +0 -75
  925. package/lib-esm/test/retentionPolicyAssignments.test.js.map +0 -1
  926. package/lib-esm/test/search.test.d.ts +0 -3
  927. package/lib-esm/test/search.test.js +0 -232
  928. package/lib-esm/test/search.test.js.map +0 -1
  929. package/lib-esm/test/sessionTermination.test.d.ts +0 -3
  930. package/lib-esm/test/sessionTermination.test.js +0 -35
  931. package/lib-esm/test/sessionTermination.test.js.map +0 -1
  932. package/lib-esm/test/sharedLinksAppItems.test.d.ts +0 -3
  933. package/lib-esm/test/sharedLinksAppItems.test.js +0 -20
  934. package/lib-esm/test/sharedLinksAppItems.test.js.map +0 -1
  935. package/lib-esm/test/sharedLinksFiles.test.d.ts +0 -3
  936. package/lib-esm/test/sharedLinksFiles.test.js +0 -63
  937. package/lib-esm/test/sharedLinksFiles.test.js.map +0 -1
  938. package/lib-esm/test/sharedLinksFolders.test.d.ts +0 -3
  939. package/lib-esm/test/sharedLinksFolders.test.js +0 -60
  940. package/lib-esm/test/sharedLinksFolders.test.js.map +0 -1
  941. package/lib-esm/test/sharedLinksWebLinks.test.d.ts +0 -3
  942. package/lib-esm/test/sharedLinksWebLinks.test.js +0 -64
  943. package/lib-esm/test/sharedLinksWebLinks.test.js.map +0 -1
  944. package/lib-esm/test/shieldInformationBarrierReports.test.d.ts +0 -1
  945. package/lib-esm/test/shieldInformationBarrierReports.test.js +0 -51
  946. package/lib-esm/test/shieldInformationBarrierReports.test.js.map +0 -1
  947. package/lib-esm/test/shieldInformationBarrierSegmentMembers.test.d.ts +0 -1
  948. package/lib-esm/test/shieldInformationBarrierSegmentMembers.test.js +0 -53
  949. package/lib-esm/test/shieldInformationBarrierSegmentMembers.test.js.map +0 -1
  950. package/lib-esm/test/shieldInformationBarrierSegmentRestrictions.test.d.ts +0 -1
  951. package/lib-esm/test/shieldInformationBarrierSegmentRestrictions.test.js +0 -71
  952. package/lib-esm/test/shieldInformationBarrierSegmentRestrictions.test.js.map +0 -1
  953. package/lib-esm/test/shieldInformationBarrierSegments.test.d.ts +0 -1
  954. package/lib-esm/test/shieldInformationBarrierSegments.test.js +0 -64
  955. package/lib-esm/test/shieldInformationBarrierSegments.test.js.map +0 -1
  956. package/lib-esm/test/shieldInformationBarriers.test.d.ts +0 -1
  957. package/lib-esm/test/shieldInformationBarriers.test.js +0 -39
  958. package/lib-esm/test/shieldInformationBarriers.test.js.map +0 -1
  959. package/lib-esm/test/shieldLists.test.d.ts +0 -4
  960. package/lib-esm/test/shieldLists.test.js +0 -78
  961. package/lib-esm/test/shieldLists.test.js.map +0 -1
  962. package/lib-esm/test/signRequests.test.d.ts +0 -3
  963. package/lib-esm/test/signRequests.test.js +0 -173
  964. package/lib-esm/test/signRequests.test.js.map +0 -1
  965. package/lib-esm/test/signTemplates.test.d.ts +0 -1
  966. package/lib-esm/test/signTemplates.test.js +0 -38
  967. package/lib-esm/test/signTemplates.test.js.map +0 -1
  968. package/lib-esm/test/skills.test.d.ts +0 -3
  969. package/lib-esm/test/skills.test.js +0 -90
  970. package/lib-esm/test/skills.test.js.map +0 -1
  971. package/lib-esm/test/storagePolicicyAssignments.test.d.ts +0 -5
  972. package/lib-esm/test/storagePolicicyAssignments.test.js +0 -74
  973. package/lib-esm/test/storagePolicicyAssignments.test.js.map +0 -1
  974. package/lib-esm/test/storagePolicies.test.d.ts +0 -2
  975. package/lib-esm/test/storagePolicies.test.js +0 -20
  976. package/lib-esm/test/storagePolicies.test.js.map +0 -1
  977. package/lib-esm/test/taskAssignments.test.d.ts +0 -3
  978. package/lib-esm/test/taskAssignments.test.js +0 -70
  979. package/lib-esm/test/taskAssignments.test.js.map +0 -1
  980. package/lib-esm/test/tasks.test.d.ts +0 -3
  981. package/lib-esm/test/tasks.test.js +0 -58
  982. package/lib-esm/test/tasks.test.js.map +0 -1
  983. package/lib-esm/test/termsOfServiceUserStatuses.test.d.ts +0 -1
  984. package/lib-esm/test/termsOfServiceUserStatuses.test.js +0 -62
  985. package/lib-esm/test/termsOfServiceUserStatuses.test.js.map +0 -1
  986. package/lib-esm/test/termsOfServices.test.d.ts +0 -3
  987. package/lib-esm/test/termsOfServices.test.js +0 -35
  988. package/lib-esm/test/termsOfServices.test.js.map +0 -1
  989. package/lib-esm/test/transfer.test.d.ts +0 -3
  990. package/lib-esm/test/transfer.test.js +0 -34
  991. package/lib-esm/test/transfer.test.js.map +0 -1
  992. package/lib-esm/test/trashedFiles.test.d.ts +0 -3
  993. package/lib-esm/test/trashedFiles.test.js +0 -50
  994. package/lib-esm/test/trashedFiles.test.js.map +0 -1
  995. package/lib-esm/test/trashedFolders.test.d.ts +0 -3
  996. package/lib-esm/test/trashedFolders.test.js +0 -37
  997. package/lib-esm/test/trashedFolders.test.js.map +0 -1
  998. package/lib-esm/test/trashedItems.test.d.ts +0 -3
  999. package/lib-esm/test/trashedItems.test.js +0 -15
  1000. package/lib-esm/test/trashedItems.test.js.map +0 -1
  1001. package/lib-esm/test/trashedWebLinks.test.d.ts +0 -3
  1002. package/lib-esm/test/trashedWebLinks.test.js +0 -45
  1003. package/lib-esm/test/trashedWebLinks.test.js.map +0 -1
  1004. package/lib-esm/test/uploads.test.d.ts +0 -3
  1005. package/lib-esm/test/uploads.test.js +0 -118
  1006. package/lib-esm/test/uploads.test.js.map +0 -1
  1007. package/lib-esm/test/userCollaborations.test.d.ts +0 -3
  1008. package/lib-esm/test/userCollaborations.test.js +0 -146
  1009. package/lib-esm/test/userCollaborations.test.js.map +0 -1
  1010. package/lib-esm/test/users.test.d.ts +0 -3
  1011. package/lib-esm/test/users.test.js +0 -44
  1012. package/lib-esm/test/users.test.js.map +0 -1
  1013. package/lib-esm/test/webhooks.test.d.ts +0 -3
  1014. package/lib-esm/test/webhooks.test.js +0 -222
  1015. package/lib-esm/test/webhooks.test.js.map +0 -1
  1016. package/lib-esm/test/weblinks.test.d.ts +0 -3
  1017. package/lib-esm/test/weblinks.test.js +0 -61
  1018. package/lib-esm/test/weblinks.test.js.map +0 -1
  1019. package/lib-esm/test/workflows.test.d.ts +0 -3
  1020. package/lib-esm/test/workflows.test.js +0 -74
  1021. package/lib-esm/test/workflows.test.js.map +0 -1
  1022. package/lib-esm/test/zipDownloads.test.d.ts +0 -3
  1023. package/lib-esm/test/zipDownloads.test.js +0 -97
  1024. package/lib-esm/test/zipDownloads.test.js.map +0 -1
package/lib/bundle.js CHANGED
@@ -398,7 +398,7 @@
398
398
  * @license MIT
399
399
  */
400
400
 
401
- (function (exports) {
401
+ (function (exports$1) {
402
402
 
403
403
  const base64 = base64Js;
404
404
  const ieee754$1 = ieee754;
@@ -407,12 +407,12 @@
407
407
  ? Symbol['for']('nodejs.util.inspect.custom') // eslint-disable-line dot-notation
408
408
  : null;
409
409
 
410
- exports.Buffer = Buffer;
411
- exports.SlowBuffer = SlowBuffer;
412
- exports.INSPECT_MAX_BYTES = 50;
410
+ exports$1.Buffer = Buffer;
411
+ exports$1.SlowBuffer = SlowBuffer;
412
+ exports$1.INSPECT_MAX_BYTES = 50;
413
413
 
414
414
  const K_MAX_LENGTH = 0x7fffffff;
415
- exports.kMaxLength = K_MAX_LENGTH;
415
+ exports$1.kMaxLength = K_MAX_LENGTH;
416
416
 
417
417
  /**
418
418
  * If `Buffer.TYPED_ARRAY_SUPPORT`:
@@ -1008,7 +1008,7 @@
1008
1008
 
1009
1009
  Buffer.prototype.inspect = function inspect () {
1010
1010
  let str = '';
1011
- const max = exports.INSPECT_MAX_BYTES;
1011
+ const max = exports$1.INSPECT_MAX_BYTES;
1012
1012
  str = this.toString('hex', 0, max).replace(/(.{2})/g, '$1 ').trim();
1013
1013
  if (this.length > max) str += ' ... ';
1014
1014
  return '<Buffer ' + str + '>'
@@ -3476,6 +3476,8 @@
3476
3476
  constructor(fields) {
3477
3477
  super(fields);
3478
3478
  this.name = 'BoxSdkError';
3479
+ this.timestamp = fields.timestamp;
3480
+ this.error = fields.error;
3479
3481
  Object.setPrototypeOf(this, BoxSdkError.prototype);
3480
3482
  }
3481
3483
  }
@@ -3484,6 +3486,8 @@
3484
3486
  super(fields);
3485
3487
  this.dataSanitizer = new DataSanitizer({});
3486
3488
  this.name = 'BoxApiError';
3489
+ this.requestInfo = fields.requestInfo;
3490
+ this.responseInfo = fields.responseInfo;
3487
3491
  if (fields.dataSanitizer) {
3488
3492
  this.dataSanitizer = fields.dataSanitizer;
3489
3493
  }
@@ -3588,7 +3592,7 @@
3588
3592
 
3589
3593
  var browser = {exports: {}};
3590
3594
 
3591
- (function (module, exports) {
3595
+ (function (module, exports$1) {
3592
3596
 
3593
3597
  // ref: https://github.com/tc39/proposal-global
3594
3598
  var getGlobal = function () {
@@ -3603,22 +3607,22 @@
3603
3607
 
3604
3608
  var globalObject = getGlobal();
3605
3609
 
3606
- module.exports = exports = globalObject.fetch;
3610
+ module.exports = exports$1 = globalObject.fetch;
3607
3611
 
3608
3612
  // Needed for TypeScript and Webpack.
3609
3613
  if (globalObject.fetch) {
3610
- exports.default = globalObject.fetch.bind(globalObject);
3614
+ exports$1.default = globalObject.fetch.bind(globalObject);
3611
3615
  }
3612
3616
 
3613
- exports.Headers = globalObject.Headers;
3614
- exports.Request = globalObject.Request;
3615
- exports.Response = globalObject.Response;
3617
+ exports$1.Headers = globalObject.Headers;
3618
+ exports$1.Request = globalObject.Request;
3619
+ exports$1.Response = globalObject.Response;
3616
3620
  } (browser, browser.exports));
3617
3621
 
3618
3622
  var browserExports = browser.exports;
3619
3623
  var nodeFetch = /*@__PURE__*/getDefaultExportFromCjs(browserExports);
3620
3624
 
3621
- const sdkVersion = '10.0.1';
3625
+ const sdkVersion = '10.2.0';
3622
3626
 
3623
3627
  class BoxRetryStrategy {
3624
3628
  constructor(fields) {
@@ -3651,7 +3655,9 @@
3651
3655
  return attemptNumber <= this.maxRetriesOnException;
3652
3656
  }
3653
3657
  const isSuccessful = fetchResponse.status >= 200 && fetchResponse.status < 400;
3654
- const retryAfterHeader = fetchResponse.headers['Retry-After'];
3658
+ const retryAfterHeader = 'Retry-After' in fetchResponse.headers
3659
+ ? fetchResponse.headers['Retry-After']
3660
+ : void 0;
3655
3661
  const isAcceptedWithRetryAfter = fetchResponse.status == 202 && !(retryAfterHeader == void 0);
3656
3662
  if (attemptNumber >= this.maxAttempts) {
3657
3663
  return false;
@@ -3794,6 +3800,7 @@
3794
3800
  let isExceptionCase = false;
3795
3801
  let fetchResponse;
3796
3802
  let responseBytesBuffer;
3803
+ let caughtError;
3797
3804
  const { params = {} } = fetchOptions;
3798
3805
  const requestInit = yield createRequestInit(Object.assign(Object.assign({}, fetchOptions), { fileStream: fileStreamBuffer
3799
3806
  ? generateByteStreamFromBuffer(fileStreamBuffer)
@@ -3836,10 +3843,8 @@
3836
3843
  catch (error) {
3837
3844
  isExceptionCase = true;
3838
3845
  numberOfRetriesOnException++;
3839
- fetchResponse = {
3840
- status: 0,
3841
- headers: {},
3842
- };
3846
+ caughtError = error instanceof Error ? error : new Error(String(error));
3847
+ fetchResponse = fetchResponse !== null && fetchResponse !== void 0 ? fetchResponse : { status: 0, headers: {} };
3843
3848
  }
3844
3849
  const attemptForRetry = isExceptionCase
3845
3850
  ? numberOfRetriesOnException
@@ -3869,7 +3874,7 @@
3869
3874
  if (fetchResponse.status >= 200 && fetchResponse.status < 400) {
3870
3875
  return fetchResponse;
3871
3876
  }
3872
- const [code, contextInfo, requestId, helpUrl, message] = sdIsMap(fetchResponse.data)
3877
+ const [code, contextInfo, requestId, helpUrl, message, error, errorDescription,] = sdIsMap(fetchResponse.data)
3873
3878
  ? [
3874
3879
  sdToJson(fetchResponse.data['code']),
3875
3880
  sdIsMap(fetchResponse.data['context_info'])
@@ -3878,10 +3883,26 @@
3878
3883
  sdToJson(fetchResponse.data['request_id']),
3879
3884
  sdToJson(fetchResponse.data['help_url']),
3880
3885
  sdToJson(fetchResponse.data['message']),
3886
+ sdToJson(fetchResponse.data['error']),
3887
+ sdToJson(fetchResponse.data['error_description']),
3881
3888
  ]
3882
3889
  : [];
3890
+ if (fetchResponse.status === 0) {
3891
+ throw new BoxSdkError({
3892
+ message: `Unexpected Error occurred`,
3893
+ timestamp: `${Date.now()}`,
3894
+ error: caughtError,
3895
+ });
3896
+ }
3897
+ const errorMessage = [
3898
+ [fetchResponse.status, code, message].filter(Boolean).join(' '),
3899
+ requestId && `Request ID: ${requestId}`,
3900
+ error && `${error} - ${errorDescription}`,
3901
+ ]
3902
+ .filter(Boolean)
3903
+ .join('; ');
3883
3904
  throw new BoxApiError({
3884
- message: `${fetchResponse.status} ${message}; Request ID: ${requestId}`,
3905
+ message: errorMessage,
3885
3906
  timestamp: `${Date.now()}`,
3886
3907
  requestInfo: {
3887
3908
  method: requestInit.method,
@@ -26032,9 +26053,9 @@
26032
26053
  });
26033
26054
  }
26034
26055
  /**
26035
- * Deletes a user. By default this will fail if the user
26036
- * still owns any content. Move their owned content first
26037
- * before proceeding, or use the `force` field to delete
26056
+ * Deletes a user. By default, this operation fails if the user
26057
+ * still owns any content, was recently active, or recently joined the enterprise from a free account.
26058
+ * To proceed, move their owned content first, or use the `force` parameter to delete
26038
26059
  * the user and their files.
26039
26060
  * @param {string} userId The ID of the user.
26040
26061
  Example: "12345"
@@ -26554,7 +26575,7 @@
26554
26575
  }
26555
26576
  /**
26556
26577
  * Move all of the items (files, folders and workflows) owned by a user into
26557
- * another user's account
26578
+ * another user's account.
26558
26579
  *
26559
26580
  * Only the root folder (`0`) can be transferred.
26560
26581
  *
@@ -37994,6 +38015,27 @@
37994
38015
  };
37995
38016
  }
37996
38017
 
38018
+ function deserializeSignRequestSignerAttachment(val) {
38019
+ if (!sdIsMap(val)) {
38020
+ throw new BoxSdkError({
38021
+ message: 'Expecting a map for "SignRequestSignerAttachment"',
38022
+ });
38023
+ }
38024
+ if (!(val.id == void 0) && !sdIsString(val.id)) {
38025
+ throw new BoxSdkError({
38026
+ message: 'Expecting string for "id" of type "SignRequestSignerAttachment"',
38027
+ });
38028
+ }
38029
+ const id = val.id == void 0 ? void 0 : val.id;
38030
+ if (!(val.name == void 0) && !sdIsString(val.name)) {
38031
+ throw new BoxSdkError({
38032
+ message: 'Expecting string for "name" of type "SignRequestSignerAttachment"',
38033
+ });
38034
+ }
38035
+ const name = val.name == void 0 ? void 0 : val.name;
38036
+ return { id: id, name: name };
38037
+ }
38038
+
37997
38039
  function deserializeSignRequestSignerSignerDecisionTypeField(val) {
37998
38040
  if (val == 'signed') {
37999
38041
  return val;
@@ -38073,6 +38115,18 @@
38073
38115
  });
38074
38116
  }
38075
38117
  const iframeableEmbedUrl = val.iframeable_embed_url == void 0 ? void 0 : val.iframeable_embed_url;
38118
+ if (!(val.attachments == void 0) && !sdIsList(val.attachments)) {
38119
+ throw new BoxSdkError({
38120
+ message: 'Expecting array for "attachments" of type "SignRequestSigner"',
38121
+ });
38122
+ }
38123
+ const attachments = val.attachments == void 0
38124
+ ? void 0
38125
+ : sdIsList(val.attachments)
38126
+ ? val.attachments.map(function (itm) {
38127
+ return deserializeSignRequestSignerAttachment(itm);
38128
+ })
38129
+ : [];
38076
38130
  if (!(val.email == void 0) && !sdIsString(val.email)) {
38077
38131
  throw new BoxSdkError({
38078
38132
  message: 'Expecting string for "email" of type "SignRequestSigner"',
@@ -38156,6 +38210,7 @@
38156
38210
  inputs: inputs,
38157
38211
  embedUrl: embedUrl,
38158
38212
  iframeableEmbedUrl: iframeableEmbedUrl,
38213
+ attachments: attachments,
38159
38214
  email: email,
38160
38215
  role: role,
38161
38216
  isInPerson: isInPerson,
@@ -38323,6 +38378,24 @@
38323
38378
  });
38324
38379
  }
38325
38380
  const collaboratorLevel = val.collaborator_level == void 0 ? void 0 : val.collaborator_level;
38381
+ if (!(val.short_id == void 0) && !sdIsString(val.short_id)) {
38382
+ throw new BoxSdkError({
38383
+ message: 'Expecting string for "short_id" of type "SignRequest"',
38384
+ });
38385
+ }
38386
+ const shortId = val.short_id == void 0 ? void 0 : val.short_id;
38387
+ if (!(val.created_at == void 0) && !sdIsString(val.created_at)) {
38388
+ throw new BoxSdkError({
38389
+ message: 'Expecting string for "created_at" of type "SignRequest"',
38390
+ });
38391
+ }
38392
+ const createdAt = val.created_at == void 0 ? void 0 : dateTimeFromString(val.created_at);
38393
+ if (!(val.finished_at == void 0) && !sdIsString(val.finished_at)) {
38394
+ throw new BoxSdkError({
38395
+ message: 'Expecting string for "finished_at" of type "SignRequest"',
38396
+ });
38397
+ }
38398
+ const finishedAt = val.finished_at == void 0 ? void 0 : dateTimeFromString(val.finished_at);
38326
38399
  if (!(val.sender_email == void 0) && !sdIsString(val.sender_email)) {
38327
38400
  throw new BoxSdkError({
38328
38401
  message: 'Expecting string for "sender_email" of type "SignRequest"',
@@ -38441,6 +38514,9 @@
38441
38514
  autoExpireAt: autoExpireAt,
38442
38515
  parentFolder: parentFolder,
38443
38516
  collaboratorLevel: collaboratorLevel,
38517
+ shortId: shortId,
38518
+ createdAt: createdAt,
38519
+ finishedAt: finishedAt,
38444
38520
  senderEmail: senderEmail,
38445
38521
  senderId: senderId,
38446
38522
  isDocumentPreparationNeeded: isDocumentPreparationNeeded,
@@ -42865,10 +42941,13 @@
42865
42941
  }
42866
42942
  /**
42867
42943
  * Sends an AI request to supported Large Language Models (LLMs) and returns extracted metadata as a set of key-value pairs.
42868
- * For this request, you either need a metadata template or a list of fields you want to extract.
42869
- * Input is **either** a metadata template or a list of fields to ensure the structure.
42870
- * To learn more about creating templates, see [Creating metadata templates in the Admin Console](https://support.box.com/hc/en-us/articles/360044194033-Customizing-Metadata-Templates)
42871
- * or use the [metadata template API](g://metadata/templates/create). This endpoint also supports [Enhanced Extract Agent](g://box-ai/ai-tutorials/extract-metadata-structured/#enhanced-extract-agent).
42944
+ *
42945
+ * To define the extraction structure, provide either a metadata template or a list of fields. To learn more about creating templates, see [Creating metadata templates in the Admin Console](https://support.box.com/hc/en-us/articles/360044194033-Customizing-Metadata-Templates)
42946
+ * or use the [metadata template API](g://metadata/templates/create).
42947
+ *
42948
+ * This endpoint also supports [Enhanced Extract Agent](g://box-ai/ai-tutorials/extract-metadata-structured/#enhanced-extract-agent).
42949
+ *
42950
+ * For information about supported file formats and languages, see the [Extract metadata from file (structured)](g://box-ai/ai-tutorials/extract-metadata-structured) API guide.
42872
42951
  * @param {AiExtractStructured} requestBody Request body of createAiExtractStructured method
42873
42952
  * @param {CreateAiExtractStructuredOptionalsInput} optionalsInput
42874
42953
  * @returns {Promise<AiExtractStructuredResponse>}
@@ -44477,14 +44556,10 @@
44477
44556
  const templateFileVersion = deserializeFileVersionBaseV2025R0(val.template_file_version);
44478
44557
  const outputFile = val.output_file == void 0
44479
44558
  ? void 0
44480
- : val.output_file == void 0
44481
- ? void 0
44482
- : deserializeFileReferenceV2025R0(val.output_file);
44559
+ : deserializeFileReferenceV2025R0(val.output_file);
44483
44560
  const outputFileVersion = val.output_file_version == void 0
44484
44561
  ? void 0
44485
- : val.output_file_version == void 0
44486
- ? void 0
44487
- : deserializeFileVersionBaseV2025R0(val.output_file_version);
44562
+ : deserializeFileVersionBaseV2025R0(val.output_file_version);
44488
44563
  if (val.status == void 0) {
44489
44564
  throw new BoxSdkError({
44490
44565
  message: 'Expecting "status" of type "DocGenJobV2025R0" to be defined',
@@ -45052,14 +45127,10 @@
45052
45127
  const templateFileVersion = deserializeFileVersionBaseV2025R0(val.template_file_version);
45053
45128
  const outputFile = val.output_file == void 0
45054
45129
  ? void 0
45055
- : val.output_file == void 0
45056
- ? void 0
45057
- : deserializeFileReferenceV2025R0(val.output_file);
45130
+ : deserializeFileReferenceV2025R0(val.output_file);
45058
45131
  const outputFileVersion = val.output_file_version == void 0
45059
45132
  ? void 0
45060
- : val.output_file_version == void 0
45061
- ? void 0
45062
- : deserializeFileVersionBaseV2025R0(val.output_file_version);
45133
+ : deserializeFileVersionBaseV2025R0(val.output_file_version);
45063
45134
  if (val.status == void 0) {
45064
45135
  throw new BoxSdkError({
45065
45136
  message: 'Expecting "status" of type "DocGenJobFullV2025R0" to be defined',
@@ -45430,6 +45501,1564 @@
45430
45501
  }
45431
45502
  }
45432
45503
 
45504
+ function deserializeEnterpriseConfigurationItemBooleanV2025R0(val) {
45505
+ if (!sdIsMap(val)) {
45506
+ throw new BoxSdkError({
45507
+ message: 'Expecting a map for "EnterpriseConfigurationItemBooleanV2025R0"',
45508
+ });
45509
+ }
45510
+ if (!(val.value == void 0) && !sdIsBoolean(val.value)) {
45511
+ throw new BoxSdkError({
45512
+ message: 'Expecting boolean for "value" of type "EnterpriseConfigurationItemBooleanV2025R0"',
45513
+ });
45514
+ }
45515
+ const value = val.value == void 0 ? void 0 : val.value;
45516
+ if (!(val.is_used == void 0) && !sdIsBoolean(val.is_used)) {
45517
+ throw new BoxSdkError({
45518
+ message: 'Expecting boolean for "is_used" of type "EnterpriseConfigurationItemBooleanV2025R0"',
45519
+ });
45520
+ }
45521
+ const isUsed = val.is_used == void 0 ? void 0 : val.is_used;
45522
+ return {
45523
+ value: value,
45524
+ isUsed: isUsed,
45525
+ };
45526
+ }
45527
+
45528
+ function deserializeEnterpriseConfigurationItemStringV2025R0(val) {
45529
+ if (!sdIsMap(val)) {
45530
+ throw new BoxSdkError({
45531
+ message: 'Expecting a map for "EnterpriseConfigurationItemStringV2025R0"',
45532
+ });
45533
+ }
45534
+ if (!(val.value == void 0) && !sdIsString(val.value)) {
45535
+ throw new BoxSdkError({
45536
+ message: 'Expecting string for "value" of type "EnterpriseConfigurationItemStringV2025R0"',
45537
+ });
45538
+ }
45539
+ const value = val.value == void 0 ? void 0 : val.value;
45540
+ if (!(val.is_used == void 0) && !sdIsBoolean(val.is_used)) {
45541
+ throw new BoxSdkError({
45542
+ message: 'Expecting boolean for "is_used" of type "EnterpriseConfigurationItemStringV2025R0"',
45543
+ });
45544
+ }
45545
+ const isUsed = val.is_used == void 0 ? void 0 : val.is_used;
45546
+ return {
45547
+ value: value,
45548
+ isUsed: isUsed,
45549
+ };
45550
+ }
45551
+
45552
+ function deserializeEnterpriseConfigurationItemIntegerV2025R0(val) {
45553
+ if (!sdIsMap(val)) {
45554
+ throw new BoxSdkError({
45555
+ message: 'Expecting a map for "EnterpriseConfigurationItemIntegerV2025R0"',
45556
+ });
45557
+ }
45558
+ if (!(val.value == void 0) && !sdIsNumber(val.value)) {
45559
+ throw new BoxSdkError({
45560
+ message: 'Expecting number for "value" of type "EnterpriseConfigurationItemIntegerV2025R0"',
45561
+ });
45562
+ }
45563
+ const value = val.value == void 0 ? void 0 : val.value;
45564
+ if (!(val.is_used == void 0) && !sdIsBoolean(val.is_used)) {
45565
+ throw new BoxSdkError({
45566
+ message: 'Expecting boolean for "is_used" of type "EnterpriseConfigurationItemIntegerV2025R0"',
45567
+ });
45568
+ }
45569
+ const isUsed = val.is_used == void 0 ? void 0 : val.is_used;
45570
+ return {
45571
+ value: value,
45572
+ isUsed: isUsed,
45573
+ };
45574
+ }
45575
+
45576
+ function deserializeExternalCollabSecuritySettingsV2025R0(val) {
45577
+ if (!sdIsMap(val)) {
45578
+ throw new BoxSdkError({
45579
+ message: 'Expecting a map for "ExternalCollabSecuritySettingsV2025R0"',
45580
+ });
45581
+ }
45582
+ if (!(val.denylist_domains == void 0) && !sdIsList(val.denylist_domains)) {
45583
+ throw new BoxSdkError({
45584
+ message: 'Expecting array for "denylist_domains" of type "ExternalCollabSecuritySettingsV2025R0"',
45585
+ });
45586
+ }
45587
+ const denylistDomains = val.denylist_domains == void 0
45588
+ ? void 0
45589
+ : sdIsList(val.denylist_domains)
45590
+ ? val.denylist_domains.map(function (itm) {
45591
+ if (!sdIsString(itm)) {
45592
+ throw new BoxSdkError({
45593
+ message: 'Expecting string for "ExternalCollabSecuritySettingsV2025R0"',
45594
+ });
45595
+ }
45596
+ return itm;
45597
+ })
45598
+ : [];
45599
+ if (!(val.denylist_emails == void 0) && !sdIsList(val.denylist_emails)) {
45600
+ throw new BoxSdkError({
45601
+ message: 'Expecting array for "denylist_emails" of type "ExternalCollabSecuritySettingsV2025R0"',
45602
+ });
45603
+ }
45604
+ const denylistEmails = val.denylist_emails == void 0
45605
+ ? void 0
45606
+ : sdIsList(val.denylist_emails)
45607
+ ? val.denylist_emails.map(function (itm) {
45608
+ if (!sdIsString(itm)) {
45609
+ throw new BoxSdkError({
45610
+ message: 'Expecting string for "ExternalCollabSecuritySettingsV2025R0"',
45611
+ });
45612
+ }
45613
+ return itm;
45614
+ })
45615
+ : [];
45616
+ if (!(val.allowlist_domains == void 0) && !sdIsList(val.allowlist_domains)) {
45617
+ throw new BoxSdkError({
45618
+ message: 'Expecting array for "allowlist_domains" of type "ExternalCollabSecuritySettingsV2025R0"',
45619
+ });
45620
+ }
45621
+ const allowlistDomains = val.allowlist_domains == void 0
45622
+ ? void 0
45623
+ : sdIsList(val.allowlist_domains)
45624
+ ? val.allowlist_domains.map(function (itm) {
45625
+ if (!sdIsString(itm)) {
45626
+ throw new BoxSdkError({
45627
+ message: 'Expecting string for "ExternalCollabSecuritySettingsV2025R0"',
45628
+ });
45629
+ }
45630
+ return itm;
45631
+ })
45632
+ : [];
45633
+ if (!(val.allowlist_emails == void 0) && !sdIsList(val.allowlist_emails)) {
45634
+ throw new BoxSdkError({
45635
+ message: 'Expecting array for "allowlist_emails" of type "ExternalCollabSecuritySettingsV2025R0"',
45636
+ });
45637
+ }
45638
+ const allowlistEmails = val.allowlist_emails == void 0
45639
+ ? void 0
45640
+ : sdIsList(val.allowlist_emails)
45641
+ ? val.allowlist_emails.map(function (itm) {
45642
+ if (!sdIsString(itm)) {
45643
+ throw new BoxSdkError({
45644
+ message: 'Expecting string for "ExternalCollabSecuritySettingsV2025R0"',
45645
+ });
45646
+ }
45647
+ return itm;
45648
+ })
45649
+ : [];
45650
+ if (!(val.state == void 0) && !sdIsString(val.state)) {
45651
+ throw new BoxSdkError({
45652
+ message: 'Expecting string for "state" of type "ExternalCollabSecuritySettingsV2025R0"',
45653
+ });
45654
+ }
45655
+ const state = val.state == void 0 ? void 0 : val.state;
45656
+ if (!(val.scheduled_status == void 0) && !sdIsString(val.scheduled_status)) {
45657
+ throw new BoxSdkError({
45658
+ message: 'Expecting string for "scheduled_status" of type "ExternalCollabSecuritySettingsV2025R0"',
45659
+ });
45660
+ }
45661
+ const scheduledStatus = val.scheduled_status == void 0 ? void 0 : val.scheduled_status;
45662
+ if (!(val.scheduled_at == void 0) && !sdIsString(val.scheduled_at)) {
45663
+ throw new BoxSdkError({
45664
+ message: 'Expecting string for "scheduled_at" of type "ExternalCollabSecuritySettingsV2025R0"',
45665
+ });
45666
+ }
45667
+ const scheduledAt = val.scheduled_at == void 0 ? void 0 : dateTimeFromString(val.scheduled_at);
45668
+ if (!(val.factor_type_settings == void 0) &&
45669
+ !sdIsString(val.factor_type_settings)) {
45670
+ throw new BoxSdkError({
45671
+ message: 'Expecting string for "factor_type_settings" of type "ExternalCollabSecuritySettingsV2025R0"',
45672
+ });
45673
+ }
45674
+ const factorTypeSettings = val.factor_type_settings == void 0 ? void 0 : val.factor_type_settings;
45675
+ return {
45676
+ denylistDomains: denylistDomains,
45677
+ denylistEmails: denylistEmails,
45678
+ allowlistDomains: allowlistDomains,
45679
+ allowlistEmails: allowlistEmails,
45680
+ state: state,
45681
+ scheduledStatus: scheduledStatus,
45682
+ scheduledAt: scheduledAt,
45683
+ factorTypeSettings: factorTypeSettings,
45684
+ };
45685
+ }
45686
+
45687
+ function deserializeKeysafeSettingsV2025R0(val) {
45688
+ if (!sdIsMap(val)) {
45689
+ throw new BoxSdkError({
45690
+ message: 'Expecting a map for "KeysafeSettingsV2025R0"',
45691
+ });
45692
+ }
45693
+ if (!(val.keysafe_enabled == void 0) && !sdIsBoolean(val.keysafe_enabled)) {
45694
+ throw new BoxSdkError({
45695
+ message: 'Expecting boolean for "keysafe_enabled" of type "KeysafeSettingsV2025R0"',
45696
+ });
45697
+ }
45698
+ const keysafeEnabled = val.keysafe_enabled == void 0 ? void 0 : val.keysafe_enabled;
45699
+ if (!(val.cloud_provider == void 0) && !sdIsString(val.cloud_provider)) {
45700
+ throw new BoxSdkError({
45701
+ message: 'Expecting string for "cloud_provider" of type "KeysafeSettingsV2025R0"',
45702
+ });
45703
+ }
45704
+ const cloudProvider = val.cloud_provider == void 0 ? void 0 : val.cloud_provider;
45705
+ if (!(val.key_id == void 0) && !sdIsString(val.key_id)) {
45706
+ throw new BoxSdkError({
45707
+ message: 'Expecting string for "key_id" of type "KeysafeSettingsV2025R0"',
45708
+ });
45709
+ }
45710
+ const keyId = val.key_id == void 0 ? void 0 : val.key_id;
45711
+ if (!(val.account_id == void 0) && !sdIsString(val.account_id)) {
45712
+ throw new BoxSdkError({
45713
+ message: 'Expecting string for "account_id" of type "KeysafeSettingsV2025R0"',
45714
+ });
45715
+ }
45716
+ const accountId = val.account_id == void 0 ? void 0 : val.account_id;
45717
+ if (!(val.location_id == void 0) && !sdIsString(val.location_id)) {
45718
+ throw new BoxSdkError({
45719
+ message: 'Expecting string for "location_id" of type "KeysafeSettingsV2025R0"',
45720
+ });
45721
+ }
45722
+ const locationId = val.location_id == void 0 ? void 0 : val.location_id;
45723
+ if (!(val.project_id == void 0) && !sdIsString(val.project_id)) {
45724
+ throw new BoxSdkError({
45725
+ message: 'Expecting string for "project_id" of type "KeysafeSettingsV2025R0"',
45726
+ });
45727
+ }
45728
+ const projectId = val.project_id == void 0 ? void 0 : val.project_id;
45729
+ if (!(val.keyring_id == void 0) && !sdIsString(val.keyring_id)) {
45730
+ throw new BoxSdkError({
45731
+ message: 'Expecting string for "keyring_id" of type "KeysafeSettingsV2025R0"',
45732
+ });
45733
+ }
45734
+ const keyringId = val.keyring_id == void 0 ? void 0 : val.keyring_id;
45735
+ return {
45736
+ keysafeEnabled: keysafeEnabled,
45737
+ cloudProvider: cloudProvider,
45738
+ keyId: keyId,
45739
+ accountId: accountId,
45740
+ locationId: locationId,
45741
+ projectId: projectId,
45742
+ keyringId: keyringId,
45743
+ };
45744
+ }
45745
+
45746
+ function deserializeCustomSessionDurationGroupItemV2025R0(val) {
45747
+ if (!sdIsMap(val)) {
45748
+ throw new BoxSdkError({
45749
+ message: 'Expecting a map for "CustomSessionDurationGroupItemV2025R0"',
45750
+ });
45751
+ }
45752
+ if (!(val.id == void 0) && !sdIsString(val.id)) {
45753
+ throw new BoxSdkError({
45754
+ message: 'Expecting string for "id" of type "CustomSessionDurationGroupItemV2025R0"',
45755
+ });
45756
+ }
45757
+ const id = val.id == void 0 ? void 0 : val.id;
45758
+ if (!(val.name == void 0) && !sdIsString(val.name)) {
45759
+ throw new BoxSdkError({
45760
+ message: 'Expecting string for "name" of type "CustomSessionDurationGroupItemV2025R0"',
45761
+ });
45762
+ }
45763
+ const name = val.name == void 0 ? void 0 : val.name;
45764
+ return { id: id, name: name };
45765
+ }
45766
+
45767
+ function deserializeEnterpriseConfigurationSecurityV2025R0LastPasswordResetAtField(val) {
45768
+ if (!sdIsMap(val)) {
45769
+ throw new BoxSdkError({
45770
+ message: 'Expecting a map for "EnterpriseConfigurationSecurityV2025R0LastPasswordResetAtField"',
45771
+ });
45772
+ }
45773
+ if (!(val.value == void 0) && !sdIsString(val.value)) {
45774
+ throw new BoxSdkError({
45775
+ message: 'Expecting string for "value" of type "EnterpriseConfigurationSecurityV2025R0LastPasswordResetAtField"',
45776
+ });
45777
+ }
45778
+ const value = val.value == void 0 ? void 0 : dateTimeFromString(val.value);
45779
+ if (!(val.is_used == void 0) && !sdIsBoolean(val.is_used)) {
45780
+ throw new BoxSdkError({
45781
+ message: 'Expecting boolean for "is_used" of type "EnterpriseConfigurationSecurityV2025R0LastPasswordResetAtField"',
45782
+ });
45783
+ }
45784
+ const isUsed = val.is_used == void 0 ? void 0 : val.is_used;
45785
+ return {
45786
+ value: value,
45787
+ isUsed: isUsed,
45788
+ };
45789
+ }
45790
+ function deserializeEnterpriseConfigurationSecurityV2025R0ExternalCollabMultiFactorAuthSettingsField(val) {
45791
+ if (!sdIsMap(val)) {
45792
+ throw new BoxSdkError({
45793
+ message: 'Expecting a map for "EnterpriseConfigurationSecurityV2025R0ExternalCollabMultiFactorAuthSettingsField"',
45794
+ });
45795
+ }
45796
+ const value = val.value == void 0
45797
+ ? void 0
45798
+ : deserializeExternalCollabSecuritySettingsV2025R0(val.value);
45799
+ if (!(val.is_used == void 0) && !sdIsBoolean(val.is_used)) {
45800
+ throw new BoxSdkError({
45801
+ message: 'Expecting boolean for "is_used" of type "EnterpriseConfigurationSecurityV2025R0ExternalCollabMultiFactorAuthSettingsField"',
45802
+ });
45803
+ }
45804
+ const isUsed = val.is_used == void 0 ? void 0 : val.is_used;
45805
+ return {
45806
+ value: value,
45807
+ isUsed: isUsed,
45808
+ };
45809
+ }
45810
+ function deserializeEnterpriseConfigurationSecurityV2025R0KeysafeField(val) {
45811
+ if (!sdIsMap(val)) {
45812
+ throw new BoxSdkError({
45813
+ message: 'Expecting a map for "EnterpriseConfigurationSecurityV2025R0KeysafeField"',
45814
+ });
45815
+ }
45816
+ const value = val.value == void 0 ? void 0 : deserializeKeysafeSettingsV2025R0(val.value);
45817
+ if (!(val.is_used == void 0) && !sdIsBoolean(val.is_used)) {
45818
+ throw new BoxSdkError({
45819
+ message: 'Expecting boolean for "is_used" of type "EnterpriseConfigurationSecurityV2025R0KeysafeField"',
45820
+ });
45821
+ }
45822
+ const isUsed = val.is_used == void 0 ? void 0 : val.is_used;
45823
+ return {
45824
+ value: value,
45825
+ isUsed: isUsed,
45826
+ };
45827
+ }
45828
+ function deserializeEnterpriseConfigurationSecurityV2025R0CustomSessionDurationGroupsField(val) {
45829
+ if (!sdIsMap(val)) {
45830
+ throw new BoxSdkError({
45831
+ message: 'Expecting a map for "EnterpriseConfigurationSecurityV2025R0CustomSessionDurationGroupsField"',
45832
+ });
45833
+ }
45834
+ if (!(val.value == void 0) && !sdIsList(val.value)) {
45835
+ throw new BoxSdkError({
45836
+ message: 'Expecting array for "value" of type "EnterpriseConfigurationSecurityV2025R0CustomSessionDurationGroupsField"',
45837
+ });
45838
+ }
45839
+ const value = val.value == void 0
45840
+ ? void 0
45841
+ : sdIsList(val.value)
45842
+ ? val.value.map(function (itm) {
45843
+ return deserializeCustomSessionDurationGroupItemV2025R0(itm);
45844
+ })
45845
+ : [];
45846
+ if (!(val.is_used == void 0) && !sdIsBoolean(val.is_used)) {
45847
+ throw new BoxSdkError({
45848
+ message: 'Expecting boolean for "is_used" of type "EnterpriseConfigurationSecurityV2025R0CustomSessionDurationGroupsField"',
45849
+ });
45850
+ }
45851
+ const isUsed = val.is_used == void 0 ? void 0 : val.is_used;
45852
+ return {
45853
+ value: value,
45854
+ isUsed: isUsed,
45855
+ };
45856
+ }
45857
+ function deserializeEnterpriseConfigurationSecurityV2025R0EnforcedMfaFrequencyFieldValueField(val) {
45858
+ if (!sdIsMap(val)) {
45859
+ throw new BoxSdkError({
45860
+ message: 'Expecting a map for "EnterpriseConfigurationSecurityV2025R0EnforcedMfaFrequencyFieldValueField"',
45861
+ });
45862
+ }
45863
+ if (!(val.days == void 0) && !sdIsNumber(val.days)) {
45864
+ throw new BoxSdkError({
45865
+ message: 'Expecting number for "days" of type "EnterpriseConfigurationSecurityV2025R0EnforcedMfaFrequencyFieldValueField"',
45866
+ });
45867
+ }
45868
+ const days = val.days == void 0 ? void 0 : val.days;
45869
+ if (!(val.hours == void 0) && !sdIsNumber(val.hours)) {
45870
+ throw new BoxSdkError({
45871
+ message: 'Expecting number for "hours" of type "EnterpriseConfigurationSecurityV2025R0EnforcedMfaFrequencyFieldValueField"',
45872
+ });
45873
+ }
45874
+ const hours = val.hours == void 0 ? void 0 : val.hours;
45875
+ return {
45876
+ days: days,
45877
+ hours: hours,
45878
+ };
45879
+ }
45880
+ function deserializeEnterpriseConfigurationSecurityV2025R0EnforcedMfaFrequencyField(val) {
45881
+ if (!sdIsMap(val)) {
45882
+ throw new BoxSdkError({
45883
+ message: 'Expecting a map for "EnterpriseConfigurationSecurityV2025R0EnforcedMfaFrequencyField"',
45884
+ });
45885
+ }
45886
+ const value = val.value == void 0
45887
+ ? void 0
45888
+ : deserializeEnterpriseConfigurationSecurityV2025R0EnforcedMfaFrequencyFieldValueField(val.value);
45889
+ if (!(val.is_used == void 0) && !sdIsBoolean(val.is_used)) {
45890
+ throw new BoxSdkError({
45891
+ message: 'Expecting boolean for "is_used" of type "EnterpriseConfigurationSecurityV2025R0EnforcedMfaFrequencyField"',
45892
+ });
45893
+ }
45894
+ const isUsed = val.is_used == void 0 ? void 0 : val.is_used;
45895
+ return {
45896
+ value: value,
45897
+ isUsed: isUsed,
45898
+ };
45899
+ }
45900
+ function deserializeEnterpriseConfigurationSecurityV2025R0(val) {
45901
+ if (!sdIsMap(val)) {
45902
+ throw new BoxSdkError({
45903
+ message: 'Expecting a map for "EnterpriseConfigurationSecurityV2025R0"',
45904
+ });
45905
+ }
45906
+ const isManagedUserSignupEnabled = val.is_managed_user_signup_enabled == void 0
45907
+ ? void 0
45908
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_managed_user_signup_enabled);
45909
+ const isManagedUserSignupNotificationEnabled = val.is_managed_user_signup_notification_enabled == void 0
45910
+ ? void 0
45911
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_managed_user_signup_notification_enabled);
45912
+ const isManagedUserSignupCorporateEmailEnabled = val.is_managed_user_signup_corporate_email_enabled == void 0
45913
+ ? void 0
45914
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_managed_user_signup_corporate_email_enabled);
45915
+ const isNewUserNotificationDailyDigestEnabled = val.is_new_user_notification_daily_digest_enabled == void 0
45916
+ ? void 0
45917
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_new_user_notification_daily_digest_enabled);
45918
+ const isManagedUserEmailChangeDisabled = val.is_managed_user_email_change_disabled == void 0
45919
+ ? void 0
45920
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_managed_user_email_change_disabled);
45921
+ const isMultiFactorAuthRequired = val.is_multi_factor_auth_required == void 0
45922
+ ? void 0
45923
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_multi_factor_auth_required);
45924
+ const isWeakPasswordPreventionEnabled = val.is_weak_password_prevention_enabled == void 0
45925
+ ? void 0
45926
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_weak_password_prevention_enabled);
45927
+ const isPasswordLeakDetectionEnabled = val.is_password_leak_detection_enabled == void 0
45928
+ ? void 0
45929
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_password_leak_detection_enabled);
45930
+ const lastPasswordResetAt = val.last_password_reset_at == void 0
45931
+ ? void 0
45932
+ : deserializeEnterpriseConfigurationSecurityV2025R0LastPasswordResetAtField(val.last_password_reset_at);
45933
+ const isPasswordRequestNotificationEnabled = val.is_password_request_notification_enabled == void 0
45934
+ ? void 0
45935
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_password_request_notification_enabled);
45936
+ const isPasswordChangeNotificationEnabled = val.is_password_change_notification_enabled == void 0
45937
+ ? void 0
45938
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_password_change_notification_enabled);
45939
+ const isStrongPasswordForExtCollabEnabled = val.is_strong_password_for_ext_collab_enabled == void 0
45940
+ ? void 0
45941
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_strong_password_for_ext_collab_enabled);
45942
+ const isManagedUserMigrationDisabled = val.is_managed_user_migration_disabled == void 0
45943
+ ? void 0
45944
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_managed_user_migration_disabled);
45945
+ const joinLink = val.join_link == void 0
45946
+ ? void 0
45947
+ : deserializeEnterpriseConfigurationItemStringV2025R0(val.join_link);
45948
+ const joinUrl = val.join_url == void 0
45949
+ ? void 0
45950
+ : deserializeEnterpriseConfigurationItemStringV2025R0(val.join_url);
45951
+ const failedLoginAttemptsToTriggerAdminNotification = val.failed_login_attempts_to_trigger_admin_notification == void 0
45952
+ ? void 0
45953
+ : deserializeEnterpriseConfigurationItemIntegerV2025R0(val.failed_login_attempts_to_trigger_admin_notification);
45954
+ const passwordMinLength = val.password_min_length == void 0
45955
+ ? void 0
45956
+ : deserializeEnterpriseConfigurationItemIntegerV2025R0(val.password_min_length);
45957
+ const passwordMinUppercaseCharacters = val.password_min_uppercase_characters == void 0
45958
+ ? void 0
45959
+ : deserializeEnterpriseConfigurationItemIntegerV2025R0(val.password_min_uppercase_characters);
45960
+ const passwordMinNumericCharacters = val.password_min_numeric_characters == void 0
45961
+ ? void 0
45962
+ : deserializeEnterpriseConfigurationItemIntegerV2025R0(val.password_min_numeric_characters);
45963
+ const passwordMinSpecialCharacters = val.password_min_special_characters == void 0
45964
+ ? void 0
45965
+ : deserializeEnterpriseConfigurationItemIntegerV2025R0(val.password_min_special_characters);
45966
+ const passwordResetFrequency = val.password_reset_frequency == void 0
45967
+ ? void 0
45968
+ : deserializeEnterpriseConfigurationItemStringV2025R0(val.password_reset_frequency);
45969
+ const previousPasswordReuseLimit = val.previous_password_reuse_limit == void 0
45970
+ ? void 0
45971
+ : deserializeEnterpriseConfigurationItemStringV2025R0(val.previous_password_reuse_limit);
45972
+ const sessionDuration = val.session_duration == void 0
45973
+ ? void 0
45974
+ : deserializeEnterpriseConfigurationItemStringV2025R0(val.session_duration);
45975
+ const externalCollabMultiFactorAuthSettings = val.external_collab_multi_factor_auth_settings == void 0
45976
+ ? void 0
45977
+ : deserializeEnterpriseConfigurationSecurityV2025R0ExternalCollabMultiFactorAuthSettingsField(val.external_collab_multi_factor_auth_settings);
45978
+ const keysafe = val.keysafe == void 0
45979
+ ? void 0
45980
+ : deserializeEnterpriseConfigurationSecurityV2025R0KeysafeField(val.keysafe);
45981
+ const isCustomSessionDurationEnabled = val.is_custom_session_duration_enabled == void 0
45982
+ ? void 0
45983
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_custom_session_duration_enabled);
45984
+ const customSessionDurationValue = val.custom_session_duration_value == void 0
45985
+ ? void 0
45986
+ : deserializeEnterpriseConfigurationItemStringV2025R0(val.custom_session_duration_value);
45987
+ const customSessionDurationGroups = val.custom_session_duration_groups == void 0
45988
+ ? void 0
45989
+ : deserializeEnterpriseConfigurationSecurityV2025R0CustomSessionDurationGroupsField(val.custom_session_duration_groups);
45990
+ const multiFactorAuthType = val.multi_factor_auth_type == void 0
45991
+ ? void 0
45992
+ : deserializeEnterpriseConfigurationItemStringV2025R0(val.multi_factor_auth_type);
45993
+ const enforcedMfaFrequency = val.enforced_mfa_frequency == void 0
45994
+ ? void 0
45995
+ : deserializeEnterpriseConfigurationSecurityV2025R0EnforcedMfaFrequencyField(val.enforced_mfa_frequency);
45996
+ return {
45997
+ isManagedUserSignupEnabled: isManagedUserSignupEnabled,
45998
+ isManagedUserSignupNotificationEnabled: isManagedUserSignupNotificationEnabled,
45999
+ isManagedUserSignupCorporateEmailEnabled: isManagedUserSignupCorporateEmailEnabled,
46000
+ isNewUserNotificationDailyDigestEnabled: isNewUserNotificationDailyDigestEnabled,
46001
+ isManagedUserEmailChangeDisabled: isManagedUserEmailChangeDisabled,
46002
+ isMultiFactorAuthRequired: isMultiFactorAuthRequired,
46003
+ isWeakPasswordPreventionEnabled: isWeakPasswordPreventionEnabled,
46004
+ isPasswordLeakDetectionEnabled: isPasswordLeakDetectionEnabled,
46005
+ lastPasswordResetAt: lastPasswordResetAt,
46006
+ isPasswordRequestNotificationEnabled: isPasswordRequestNotificationEnabled,
46007
+ isPasswordChangeNotificationEnabled: isPasswordChangeNotificationEnabled,
46008
+ isStrongPasswordForExtCollabEnabled: isStrongPasswordForExtCollabEnabled,
46009
+ isManagedUserMigrationDisabled: isManagedUserMigrationDisabled,
46010
+ joinLink: joinLink,
46011
+ joinUrl: joinUrl,
46012
+ failedLoginAttemptsToTriggerAdminNotification: failedLoginAttemptsToTriggerAdminNotification,
46013
+ passwordMinLength: passwordMinLength,
46014
+ passwordMinUppercaseCharacters: passwordMinUppercaseCharacters,
46015
+ passwordMinNumericCharacters: passwordMinNumericCharacters,
46016
+ passwordMinSpecialCharacters: passwordMinSpecialCharacters,
46017
+ passwordResetFrequency: passwordResetFrequency,
46018
+ previousPasswordReuseLimit: previousPasswordReuseLimit,
46019
+ sessionDuration: sessionDuration,
46020
+ externalCollabMultiFactorAuthSettings: externalCollabMultiFactorAuthSettings,
46021
+ keysafe: keysafe,
46022
+ isCustomSessionDurationEnabled: isCustomSessionDurationEnabled,
46023
+ customSessionDurationValue: customSessionDurationValue,
46024
+ customSessionDurationGroups: customSessionDurationGroups,
46025
+ multiFactorAuthType: multiFactorAuthType,
46026
+ enforcedMfaFrequency: enforcedMfaFrequency,
46027
+ };
46028
+ }
46029
+
46030
+ function deserializeUserOrGroupReferenceV2025R0TypeField(val) {
46031
+ if (val == 'user') {
46032
+ return val;
46033
+ }
46034
+ if (val == 'group') {
46035
+ return val;
46036
+ }
46037
+ throw new BoxSdkError({
46038
+ message: "Can't deserialize UserOrGroupReferenceV2025R0TypeField",
46039
+ });
46040
+ }
46041
+ function deserializeUserOrGroupReferenceV2025R0(val) {
46042
+ if (!sdIsMap(val)) {
46043
+ throw new BoxSdkError({
46044
+ message: 'Expecting a map for "UserOrGroupReferenceV2025R0"',
46045
+ });
46046
+ }
46047
+ const type = val.type == void 0
46048
+ ? void 0
46049
+ : deserializeUserOrGroupReferenceV2025R0TypeField(val.type);
46050
+ if (!(val.id == void 0) && !sdIsString(val.id)) {
46051
+ throw new BoxSdkError({
46052
+ message: 'Expecting string for "id" of type "UserOrGroupReferenceV2025R0"',
46053
+ });
46054
+ }
46055
+ const id = val.id == void 0 ? void 0 : val.id;
46056
+ return { type: type, id: id };
46057
+ }
46058
+
46059
+ function deserializeEnterpriseFeatureSettingV2025R0FeatureField(val) {
46060
+ if (!sdIsMap(val)) {
46061
+ throw new BoxSdkError({
46062
+ message: 'Expecting a map for "EnterpriseFeatureSettingV2025R0FeatureField"',
46063
+ });
46064
+ }
46065
+ if (!(val.id == void 0) && !sdIsString(val.id)) {
46066
+ throw new BoxSdkError({
46067
+ message: 'Expecting string for "id" of type "EnterpriseFeatureSettingV2025R0FeatureField"',
46068
+ });
46069
+ }
46070
+ const id = val.id == void 0 ? void 0 : val.id;
46071
+ return { id: id };
46072
+ }
46073
+ function deserializeEnterpriseFeatureSettingV2025R0(val) {
46074
+ if (!sdIsMap(val)) {
46075
+ throw new BoxSdkError({
46076
+ message: 'Expecting a map for "EnterpriseFeatureSettingV2025R0"',
46077
+ });
46078
+ }
46079
+ if (!(val.id == void 0) && !sdIsString(val.id)) {
46080
+ throw new BoxSdkError({
46081
+ message: 'Expecting string for "id" of type "EnterpriseFeatureSettingV2025R0"',
46082
+ });
46083
+ }
46084
+ const id = val.id == void 0 ? void 0 : val.id;
46085
+ const feature = val.feature == void 0
46086
+ ? void 0
46087
+ : deserializeEnterpriseFeatureSettingV2025R0FeatureField(val.feature);
46088
+ if (!(val.state == void 0) && !sdIsString(val.state)) {
46089
+ throw new BoxSdkError({
46090
+ message: 'Expecting string for "state" of type "EnterpriseFeatureSettingV2025R0"',
46091
+ });
46092
+ }
46093
+ const state = val.state == void 0 ? void 0 : val.state;
46094
+ if (!(val.can_configure == void 0) && !sdIsBoolean(val.can_configure)) {
46095
+ throw new BoxSdkError({
46096
+ message: 'Expecting boolean for "can_configure" of type "EnterpriseFeatureSettingV2025R0"',
46097
+ });
46098
+ }
46099
+ const canConfigure = val.can_configure == void 0 ? void 0 : val.can_configure;
46100
+ if (!(val.is_configured == void 0) && !sdIsBoolean(val.is_configured)) {
46101
+ throw new BoxSdkError({
46102
+ message: 'Expecting boolean for "is_configured" of type "EnterpriseFeatureSettingV2025R0"',
46103
+ });
46104
+ }
46105
+ const isConfigured = val.is_configured == void 0 ? void 0 : val.is_configured;
46106
+ if (!(val.allowlist == void 0) && !sdIsList(val.allowlist)) {
46107
+ throw new BoxSdkError({
46108
+ message: 'Expecting array for "allowlist" of type "EnterpriseFeatureSettingV2025R0"',
46109
+ });
46110
+ }
46111
+ const allowlist = val.allowlist == void 0
46112
+ ? void 0
46113
+ : sdIsList(val.allowlist)
46114
+ ? val.allowlist.map(function (itm) {
46115
+ return deserializeUserOrGroupReferenceV2025R0(itm);
46116
+ })
46117
+ : [];
46118
+ if (!(val.denylist == void 0) && !sdIsList(val.denylist)) {
46119
+ throw new BoxSdkError({
46120
+ message: 'Expecting array for "denylist" of type "EnterpriseFeatureSettingV2025R0"',
46121
+ });
46122
+ }
46123
+ const denylist = val.denylist == void 0
46124
+ ? void 0
46125
+ : sdIsList(val.denylist)
46126
+ ? val.denylist.map(function (itm) {
46127
+ return deserializeUserOrGroupReferenceV2025R0(itm);
46128
+ })
46129
+ : [];
46130
+ return {
46131
+ id: id,
46132
+ feature: feature,
46133
+ state: state,
46134
+ canConfigure: canConfigure,
46135
+ isConfigured: isConfigured,
46136
+ allowlist: allowlist,
46137
+ denylist: denylist,
46138
+ };
46139
+ }
46140
+
46141
+ function deserializeEnterpriseFeatureSettingsItemV2025R0(val) {
46142
+ if (!sdIsMap(val)) {
46143
+ throw new BoxSdkError({
46144
+ message: 'Expecting a map for "EnterpriseFeatureSettingsItemV2025R0"',
46145
+ });
46146
+ }
46147
+ const value = val.value == void 0
46148
+ ? void 0
46149
+ : deserializeEnterpriseFeatureSettingV2025R0(val.value);
46150
+ if (!(val.is_used == void 0) && !sdIsBoolean(val.is_used)) {
46151
+ throw new BoxSdkError({
46152
+ message: 'Expecting boolean for "is_used" of type "EnterpriseFeatureSettingsItemV2025R0"',
46153
+ });
46154
+ }
46155
+ const isUsed = val.is_used == void 0 ? void 0 : val.is_used;
46156
+ return {
46157
+ value: value,
46158
+ isUsed: isUsed,
46159
+ };
46160
+ }
46161
+
46162
+ function deserializeSharedLinkPermissionsV2025R0(val) {
46163
+ if (!sdIsMap(val)) {
46164
+ throw new BoxSdkError({
46165
+ message: 'Expecting a map for "SharedLinkPermissionsV2025R0"',
46166
+ });
46167
+ }
46168
+ if (!(val.shared_links_option == void 0) &&
46169
+ !sdIsString(val.shared_links_option)) {
46170
+ throw new BoxSdkError({
46171
+ message: 'Expecting string for "shared_links_option" of type "SharedLinkPermissionsV2025R0"',
46172
+ });
46173
+ }
46174
+ const sharedLinksOption = val.shared_links_option == void 0 ? void 0 : val.shared_links_option;
46175
+ if (!(val.default_shared_link_type == void 0) &&
46176
+ !sdIsString(val.default_shared_link_type)) {
46177
+ throw new BoxSdkError({
46178
+ message: 'Expecting string for "default_shared_link_type" of type "SharedLinkPermissionsV2025R0"',
46179
+ });
46180
+ }
46181
+ const defaultSharedLinkType = val.default_shared_link_type == void 0
46182
+ ? void 0
46183
+ : val.default_shared_link_type;
46184
+ if (!(val.notes_shared_link_option == void 0) &&
46185
+ !sdIsString(val.notes_shared_link_option)) {
46186
+ throw new BoxSdkError({
46187
+ message: 'Expecting string for "notes_shared_link_option" of type "SharedLinkPermissionsV2025R0"',
46188
+ });
46189
+ }
46190
+ const notesSharedLinkOption = val.notes_shared_link_option == void 0
46191
+ ? void 0
46192
+ : val.notes_shared_link_option;
46193
+ if (!(val.default_notes_shared_link_type == void 0) &&
46194
+ !sdIsString(val.default_notes_shared_link_type)) {
46195
+ throw new BoxSdkError({
46196
+ message: 'Expecting string for "default_notes_shared_link_type" of type "SharedLinkPermissionsV2025R0"',
46197
+ });
46198
+ }
46199
+ const defaultNotesSharedLinkType = val.default_notes_shared_link_type == void 0
46200
+ ? void 0
46201
+ : val.default_notes_shared_link_type;
46202
+ return {
46203
+ sharedLinksOption: sharedLinksOption,
46204
+ defaultSharedLinkType: defaultSharedLinkType,
46205
+ notesSharedLinkOption: notesSharedLinkOption,
46206
+ defaultNotesSharedLinkType: defaultNotesSharedLinkType,
46207
+ };
46208
+ }
46209
+
46210
+ function deserializeCollaborationPermissionsV2025R0(val) {
46211
+ if (!sdIsMap(val)) {
46212
+ throw new BoxSdkError({
46213
+ message: 'Expecting a map for "CollaborationPermissionsV2025R0"',
46214
+ });
46215
+ }
46216
+ if (!(val.is_co_owner_role_enabled == void 0) &&
46217
+ !sdIsBoolean(val.is_co_owner_role_enabled)) {
46218
+ throw new BoxSdkError({
46219
+ message: 'Expecting boolean for "is_co_owner_role_enabled" of type "CollaborationPermissionsV2025R0"',
46220
+ });
46221
+ }
46222
+ const isCoOwnerRoleEnabled = val.is_co_owner_role_enabled == void 0
46223
+ ? void 0
46224
+ : val.is_co_owner_role_enabled;
46225
+ if (!(val.is_editor_role_enabled == void 0) &&
46226
+ !sdIsBoolean(val.is_editor_role_enabled)) {
46227
+ throw new BoxSdkError({
46228
+ message: 'Expecting boolean for "is_editor_role_enabled" of type "CollaborationPermissionsV2025R0"',
46229
+ });
46230
+ }
46231
+ const isEditorRoleEnabled = val.is_editor_role_enabled == void 0 ? void 0 : val.is_editor_role_enabled;
46232
+ if (!(val.is_previewer_role_enabled == void 0) &&
46233
+ !sdIsBoolean(val.is_previewer_role_enabled)) {
46234
+ throw new BoxSdkError({
46235
+ message: 'Expecting boolean for "is_previewer_role_enabled" of type "CollaborationPermissionsV2025R0"',
46236
+ });
46237
+ }
46238
+ const isPreviewerRoleEnabled = val.is_previewer_role_enabled == void 0
46239
+ ? void 0
46240
+ : val.is_previewer_role_enabled;
46241
+ if (!(val.is_previewer_uploader_role_enabled == void 0) &&
46242
+ !sdIsBoolean(val.is_previewer_uploader_role_enabled)) {
46243
+ throw new BoxSdkError({
46244
+ message: 'Expecting boolean for "is_previewer_uploader_role_enabled" of type "CollaborationPermissionsV2025R0"',
46245
+ });
46246
+ }
46247
+ const isPreviewerUploaderRoleEnabled = val.is_previewer_uploader_role_enabled == void 0
46248
+ ? void 0
46249
+ : val.is_previewer_uploader_role_enabled;
46250
+ if (!(val.is_uploader_role_enabled == void 0) &&
46251
+ !sdIsBoolean(val.is_uploader_role_enabled)) {
46252
+ throw new BoxSdkError({
46253
+ message: 'Expecting boolean for "is_uploader_role_enabled" of type "CollaborationPermissionsV2025R0"',
46254
+ });
46255
+ }
46256
+ const isUploaderRoleEnabled = val.is_uploader_role_enabled == void 0
46257
+ ? void 0
46258
+ : val.is_uploader_role_enabled;
46259
+ if (!(val.is_viewer_role_enabled == void 0) &&
46260
+ !sdIsBoolean(val.is_viewer_role_enabled)) {
46261
+ throw new BoxSdkError({
46262
+ message: 'Expecting boolean for "is_viewer_role_enabled" of type "CollaborationPermissionsV2025R0"',
46263
+ });
46264
+ }
46265
+ const isViewerRoleEnabled = val.is_viewer_role_enabled == void 0 ? void 0 : val.is_viewer_role_enabled;
46266
+ if (!(val.is_viewer_uploader_role_enabled == void 0) &&
46267
+ !sdIsBoolean(val.is_viewer_uploader_role_enabled)) {
46268
+ throw new BoxSdkError({
46269
+ message: 'Expecting boolean for "is_viewer_uploader_role_enabled" of type "CollaborationPermissionsV2025R0"',
46270
+ });
46271
+ }
46272
+ const isViewerUploaderRoleEnabled = val.is_viewer_uploader_role_enabled == void 0
46273
+ ? void 0
46274
+ : val.is_viewer_uploader_role_enabled;
46275
+ return {
46276
+ isCoOwnerRoleEnabled: isCoOwnerRoleEnabled,
46277
+ isEditorRoleEnabled: isEditorRoleEnabled,
46278
+ isPreviewerRoleEnabled: isPreviewerRoleEnabled,
46279
+ isPreviewerUploaderRoleEnabled: isPreviewerUploaderRoleEnabled,
46280
+ isUploaderRoleEnabled: isUploaderRoleEnabled,
46281
+ isViewerRoleEnabled: isViewerRoleEnabled,
46282
+ isViewerUploaderRoleEnabled: isViewerUploaderRoleEnabled,
46283
+ };
46284
+ }
46285
+
46286
+ function deserializeListUserV2025R0(val) {
46287
+ if (!sdIsMap(val)) {
46288
+ throw new BoxSdkError({ message: 'Expecting a map for "ListUserV2025R0"' });
46289
+ }
46290
+ if (!(val.id == void 0) && !sdIsNumber(val.id)) {
46291
+ throw new BoxSdkError({
46292
+ message: 'Expecting number for "id" of type "ListUserV2025R0"',
46293
+ });
46294
+ }
46295
+ const id = val.id == void 0 ? void 0 : val.id;
46296
+ if (!(val.name == void 0) && !sdIsString(val.name)) {
46297
+ throw new BoxSdkError({
46298
+ message: 'Expecting string for "name" of type "ListUserV2025R0"',
46299
+ });
46300
+ }
46301
+ const name = val.name == void 0 ? void 0 : val.name;
46302
+ if (!(val.email == void 0) && !sdIsString(val.email)) {
46303
+ throw new BoxSdkError({
46304
+ message: 'Expecting string for "email" of type "ListUserV2025R0"',
46305
+ });
46306
+ }
46307
+ const email = val.email == void 0 ? void 0 : val.email;
46308
+ return { id: id, name: name, email: email };
46309
+ }
46310
+
46311
+ function deserializeEnterpriseConfigurationContentAndSharingV2025R0SharedLinkDefaultPermissionsSelectedField(val) {
46312
+ if (!sdIsMap(val)) {
46313
+ throw new BoxSdkError({
46314
+ message: 'Expecting a map for "EnterpriseConfigurationContentAndSharingV2025R0SharedLinkDefaultPermissionsSelectedField"',
46315
+ });
46316
+ }
46317
+ const value = val.value == void 0
46318
+ ? void 0
46319
+ : deserializeSharedLinkPermissionsV2025R0(val.value);
46320
+ if (!(val.is_used == void 0) && !sdIsBoolean(val.is_used)) {
46321
+ throw new BoxSdkError({
46322
+ message: 'Expecting boolean for "is_used" of type "EnterpriseConfigurationContentAndSharingV2025R0SharedLinkDefaultPermissionsSelectedField"',
46323
+ });
46324
+ }
46325
+ const isUsed = val.is_used == void 0 ? void 0 : val.is_used;
46326
+ return {
46327
+ value: value,
46328
+ isUsed: isUsed,
46329
+ };
46330
+ }
46331
+ function deserializeEnterpriseConfigurationContentAndSharingV2025R0CollaborationPermissionsField(val) {
46332
+ if (!sdIsMap(val)) {
46333
+ throw new BoxSdkError({
46334
+ message: 'Expecting a map for "EnterpriseConfigurationContentAndSharingV2025R0CollaborationPermissionsField"',
46335
+ });
46336
+ }
46337
+ const value = val.value == void 0
46338
+ ? void 0
46339
+ : deserializeCollaborationPermissionsV2025R0(val.value);
46340
+ if (!(val.is_used == void 0) && !sdIsBoolean(val.is_used)) {
46341
+ throw new BoxSdkError({
46342
+ message: 'Expecting boolean for "is_used" of type "EnterpriseConfigurationContentAndSharingV2025R0CollaborationPermissionsField"',
46343
+ });
46344
+ }
46345
+ const isUsed = val.is_used == void 0 ? void 0 : val.is_used;
46346
+ return {
46347
+ value: value,
46348
+ isUsed: isUsed,
46349
+ };
46350
+ }
46351
+ function deserializeEnterpriseConfigurationContentAndSharingV2025R0CollaborationRestrictionsField(val) {
46352
+ if (!sdIsMap(val)) {
46353
+ throw new BoxSdkError({
46354
+ message: 'Expecting a map for "EnterpriseConfigurationContentAndSharingV2025R0CollaborationRestrictionsField"',
46355
+ });
46356
+ }
46357
+ if (!(val.value == void 0) && !sdIsList(val.value)) {
46358
+ throw new BoxSdkError({
46359
+ message: 'Expecting array for "value" of type "EnterpriseConfigurationContentAndSharingV2025R0CollaborationRestrictionsField"',
46360
+ });
46361
+ }
46362
+ const value = val.value == void 0
46363
+ ? void 0
46364
+ : sdIsList(val.value)
46365
+ ? val.value.map(function (itm) {
46366
+ if (!sdIsString(itm)) {
46367
+ throw new BoxSdkError({
46368
+ message: 'Expecting string for "EnterpriseConfigurationContentAndSharingV2025R0CollaborationRestrictionsField"',
46369
+ });
46370
+ }
46371
+ return itm;
46372
+ })
46373
+ : [];
46374
+ if (!(val.is_used == void 0) && !sdIsBoolean(val.is_used)) {
46375
+ throw new BoxSdkError({
46376
+ message: 'Expecting boolean for "is_used" of type "EnterpriseConfigurationContentAndSharingV2025R0CollaborationRestrictionsField"',
46377
+ });
46378
+ }
46379
+ const isUsed = val.is_used == void 0 ? void 0 : val.is_used;
46380
+ return {
46381
+ value: value,
46382
+ isUsed: isUsed,
46383
+ };
46384
+ }
46385
+ function deserializeEnterpriseConfigurationContentAndSharingV2025R0ExternalCollaborationStatusField(val) {
46386
+ if (!sdIsMap(val)) {
46387
+ throw new BoxSdkError({
46388
+ message: 'Expecting a map for "EnterpriseConfigurationContentAndSharingV2025R0ExternalCollaborationStatusField"',
46389
+ });
46390
+ }
46391
+ if (!(val.value == void 0) && !sdIsString(val.value)) {
46392
+ throw new BoxSdkError({
46393
+ message: 'Expecting string for "value" of type "EnterpriseConfigurationContentAndSharingV2025R0ExternalCollaborationStatusField"',
46394
+ });
46395
+ }
46396
+ const value = val.value == void 0 ? void 0 : val.value;
46397
+ if (!(val.is_used == void 0) && !sdIsBoolean(val.is_used)) {
46398
+ throw new BoxSdkError({
46399
+ message: 'Expecting boolean for "is_used" of type "EnterpriseConfigurationContentAndSharingV2025R0ExternalCollaborationStatusField"',
46400
+ });
46401
+ }
46402
+ const isUsed = val.is_used == void 0 ? void 0 : val.is_used;
46403
+ return {
46404
+ value: value,
46405
+ isUsed: isUsed,
46406
+ };
46407
+ }
46408
+ function deserializeEnterpriseConfigurationContentAndSharingV2025R0ExternalCollaborationAllowlistUsersField(val) {
46409
+ if (!sdIsMap(val)) {
46410
+ throw new BoxSdkError({
46411
+ message: 'Expecting a map for "EnterpriseConfigurationContentAndSharingV2025R0ExternalCollaborationAllowlistUsersField"',
46412
+ });
46413
+ }
46414
+ if (!(val.value == void 0) && !sdIsList(val.value)) {
46415
+ throw new BoxSdkError({
46416
+ message: 'Expecting array for "value" of type "EnterpriseConfigurationContentAndSharingV2025R0ExternalCollaborationAllowlistUsersField"',
46417
+ });
46418
+ }
46419
+ const value = val.value == void 0
46420
+ ? void 0
46421
+ : sdIsList(val.value)
46422
+ ? val.value.map(function (itm) {
46423
+ return deserializeListUserV2025R0(itm);
46424
+ })
46425
+ : [];
46426
+ if (!(val.is_used == void 0) && !sdIsBoolean(val.is_used)) {
46427
+ throw new BoxSdkError({
46428
+ message: 'Expecting boolean for "is_used" of type "EnterpriseConfigurationContentAndSharingV2025R0ExternalCollaborationAllowlistUsersField"',
46429
+ });
46430
+ }
46431
+ const isUsed = val.is_used == void 0 ? void 0 : val.is_used;
46432
+ return {
46433
+ value: value,
46434
+ isUsed: isUsed,
46435
+ };
46436
+ }
46437
+ function deserializeEnterpriseConfigurationContentAndSharingV2025R0PermanentDeletionAllowlistUsersField(val) {
46438
+ if (!sdIsMap(val)) {
46439
+ throw new BoxSdkError({
46440
+ message: 'Expecting a map for "EnterpriseConfigurationContentAndSharingV2025R0PermanentDeletionAllowlistUsersField"',
46441
+ });
46442
+ }
46443
+ if (!(val.value == void 0) && !sdIsList(val.value)) {
46444
+ throw new BoxSdkError({
46445
+ message: 'Expecting array for "value" of type "EnterpriseConfigurationContentAndSharingV2025R0PermanentDeletionAllowlistUsersField"',
46446
+ });
46447
+ }
46448
+ const value = val.value == void 0
46449
+ ? void 0
46450
+ : sdIsList(val.value)
46451
+ ? val.value.map(function (itm) {
46452
+ return deserializeListUserV2025R0(itm);
46453
+ })
46454
+ : [];
46455
+ if (!(val.is_used == void 0) && !sdIsBoolean(val.is_used)) {
46456
+ throw new BoxSdkError({
46457
+ message: 'Expecting boolean for "is_used" of type "EnterpriseConfigurationContentAndSharingV2025R0PermanentDeletionAllowlistUsersField"',
46458
+ });
46459
+ }
46460
+ const isUsed = val.is_used == void 0 ? void 0 : val.is_used;
46461
+ return {
46462
+ value: value,
46463
+ isUsed: isUsed,
46464
+ };
46465
+ }
46466
+ function deserializeEnterpriseConfigurationContentAndSharingV2025R0(val) {
46467
+ if (!sdIsMap(val)) {
46468
+ throw new BoxSdkError({
46469
+ message: 'Expecting a map for "EnterpriseConfigurationContentAndSharingV2025R0"',
46470
+ });
46471
+ }
46472
+ if (!(val.enterprise_feature_settings == void 0) &&
46473
+ !sdIsList(val.enterprise_feature_settings)) {
46474
+ throw new BoxSdkError({
46475
+ message: 'Expecting array for "enterprise_feature_settings" of type "EnterpriseConfigurationContentAndSharingV2025R0"',
46476
+ });
46477
+ }
46478
+ const enterpriseFeatureSettings = val.enterprise_feature_settings == void 0
46479
+ ? void 0
46480
+ : sdIsList(val.enterprise_feature_settings)
46481
+ ? val.enterprise_feature_settings.map(function (itm) {
46482
+ return deserializeEnterpriseFeatureSettingsItemV2025R0(itm);
46483
+ })
46484
+ : [];
46485
+ const sharingItemType = val.sharing_item_type == void 0
46486
+ ? void 0
46487
+ : deserializeEnterpriseConfigurationItemStringV2025R0(val.sharing_item_type);
46488
+ const sharedLinkCompanyDefinition = val.shared_link_company_definition == void 0
46489
+ ? void 0
46490
+ : deserializeEnterpriseConfigurationItemStringV2025R0(val.shared_link_company_definition);
46491
+ const sharedLinkAccess = val.shared_link_access == void 0
46492
+ ? void 0
46493
+ : deserializeEnterpriseConfigurationItemStringV2025R0(val.shared_link_access);
46494
+ const sharedLinkDefaultAccess = val.shared_link_default_access == void 0
46495
+ ? void 0
46496
+ : deserializeEnterpriseConfigurationItemStringV2025R0(val.shared_link_default_access);
46497
+ const sharedLinkDefaultPermissionsSelected = val.shared_link_default_permissions_selected == void 0
46498
+ ? void 0
46499
+ : deserializeEnterpriseConfigurationContentAndSharingV2025R0SharedLinkDefaultPermissionsSelectedField(val.shared_link_default_permissions_selected);
46500
+ const isOpenCustomUrlsDisabled = val.is_open_custom_urls_disabled == void 0
46501
+ ? void 0
46502
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_open_custom_urls_disabled);
46503
+ const isCustomDomainHiddenInSharedLink = val.is_custom_domain_hidden_in_shared_link == void 0
46504
+ ? void 0
46505
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_custom_domain_hidden_in_shared_link);
46506
+ const collaborationPermissions = val.collaboration_permissions == void 0
46507
+ ? void 0
46508
+ : deserializeEnterpriseConfigurationContentAndSharingV2025R0CollaborationPermissionsField(val.collaboration_permissions);
46509
+ const defaultCollaborationRole = val.default_collaboration_role == void 0
46510
+ ? void 0
46511
+ : deserializeEnterpriseConfigurationItemStringV2025R0(val.default_collaboration_role);
46512
+ const isInvitePrivilegeRestricted = val.is_invite_privilege_restricted == void 0
46513
+ ? void 0
46514
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_invite_privilege_restricted);
46515
+ const collaborationRestrictions = val.collaboration_restrictions == void 0
46516
+ ? void 0
46517
+ : deserializeEnterpriseConfigurationContentAndSharingV2025R0CollaborationRestrictionsField(val.collaboration_restrictions);
46518
+ const isCollaboratorInviteLinksDisabled = val.is_collaborator_invite_links_disabled == void 0
46519
+ ? void 0
46520
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_collaborator_invite_links_disabled);
46521
+ const isInviteGroupCollaboratorDisabled = val.is_invite_group_collaborator_disabled == void 0
46522
+ ? void 0
46523
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_invite_group_collaborator_disabled);
46524
+ const isOwnershipTransferRestricted = val.is_ownership_transfer_restricted == void 0
46525
+ ? void 0
46526
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_ownership_transfer_restricted);
46527
+ const externalCollaborationStatus = val.external_collaboration_status == void 0
46528
+ ? void 0
46529
+ : deserializeEnterpriseConfigurationContentAndSharingV2025R0ExternalCollaborationStatusField(val.external_collaboration_status);
46530
+ const externalCollaborationAllowlistUsers = val.external_collaboration_allowlist_users == void 0
46531
+ ? void 0
46532
+ : deserializeEnterpriseConfigurationContentAndSharingV2025R0ExternalCollaborationAllowlistUsersField(val.external_collaboration_allowlist_users);
46533
+ const isWatermarkingEnterpriseFeatureEnabled = val.is_watermarking_enterprise_feature_enabled == void 0
46534
+ ? void 0
46535
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_watermarking_enterprise_feature_enabled);
46536
+ const isRootContentCreationRestricted = val.is_root_content_creation_restricted == void 0
46537
+ ? void 0
46538
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_root_content_creation_restricted);
46539
+ const isTagCreationRestricted = val.is_tag_creation_restricted == void 0
46540
+ ? void 0
46541
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_tag_creation_restricted);
46542
+ const tagCreationRestriction = val.tag_creation_restriction == void 0
46543
+ ? void 0
46544
+ : deserializeEnterpriseConfigurationItemStringV2025R0(val.tag_creation_restriction);
46545
+ const isEmailUploadsEnabled = val.is_email_uploads_enabled == void 0
46546
+ ? void 0
46547
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_email_uploads_enabled);
46548
+ const isCustomSettingsEnabled = val.is_custom_settings_enabled == void 0
46549
+ ? void 0
46550
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_custom_settings_enabled);
46551
+ const isFormsLoginRequired = val.is_forms_login_required == void 0
46552
+ ? void 0
46553
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_forms_login_required);
46554
+ const isFormsBrandingDefaultEnabled = val.is_forms_branding_default_enabled == void 0
46555
+ ? void 0
46556
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_forms_branding_default_enabled);
46557
+ const isCcFreeTrialActive = val.is_cc_free_trial_active == void 0
46558
+ ? void 0
46559
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_cc_free_trial_active);
46560
+ const isFileRequestEditorsAllowed = val.is_file_request_editors_allowed == void 0
46561
+ ? void 0
46562
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_file_request_editors_allowed);
46563
+ const isFileRequestBrandingDefaultEnabled = val.is_file_request_branding_default_enabled == void 0
46564
+ ? void 0
46565
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_file_request_branding_default_enabled);
46566
+ const isFileRequestLoginRequired = val.is_file_request_login_required == void 0
46567
+ ? void 0
46568
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_file_request_login_required);
46569
+ const isSharedLinksExpirationEnabled = val.is_shared_links_expiration_enabled == void 0
46570
+ ? void 0
46571
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_shared_links_expiration_enabled);
46572
+ const sharedLinksExpirationDays = val.shared_links_expiration_days == void 0
46573
+ ? void 0
46574
+ : deserializeEnterpriseConfigurationItemIntegerV2025R0(val.shared_links_expiration_days);
46575
+ const isPublicSharedLinksExpirationEnabled = val.is_public_shared_links_expiration_enabled == void 0
46576
+ ? void 0
46577
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_public_shared_links_expiration_enabled);
46578
+ const publicSharedLinksExpirationDays = val.public_shared_links_expiration_days == void 0
46579
+ ? void 0
46580
+ : deserializeEnterpriseConfigurationItemIntegerV2025R0(val.public_shared_links_expiration_days);
46581
+ const sharedExpirationTarget = val.shared_expiration_target == void 0
46582
+ ? void 0
46583
+ : deserializeEnterpriseConfigurationItemStringV2025R0(val.shared_expiration_target);
46584
+ const isSharedLinksExpirationNotificationEnabled = val.is_shared_links_expiration_notification_enabled == void 0
46585
+ ? void 0
46586
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_shared_links_expiration_notification_enabled);
46587
+ const sharedLinksExpirationNotificationDays = val.shared_links_expiration_notification_days == void 0
46588
+ ? void 0
46589
+ : deserializeEnterpriseConfigurationItemIntegerV2025R0(val.shared_links_expiration_notification_days);
46590
+ const isSharedLinksExpirationNotificationPrevented = val.is_shared_links_expiration_notification_prevented == void 0
46591
+ ? void 0
46592
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_shared_links_expiration_notification_prevented);
46593
+ const isAutoDeleteEnabled = val.is_auto_delete_enabled == void 0
46594
+ ? void 0
46595
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_auto_delete_enabled);
46596
+ const autoDeleteDays = val.auto_delete_days == void 0
46597
+ ? void 0
46598
+ : deserializeEnterpriseConfigurationItemIntegerV2025R0(val.auto_delete_days);
46599
+ const isAutoDeleteExpirationModificationPrevented = val.is_auto_delete_expiration_modification_prevented == void 0
46600
+ ? void 0
46601
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_auto_delete_expiration_modification_prevented);
46602
+ const autoDeleteTarget = val.auto_delete_target == void 0
46603
+ ? void 0
46604
+ : deserializeEnterpriseConfigurationItemStringV2025R0(val.auto_delete_target);
46605
+ const isCollaborationExpirationEnabled = val.is_collaboration_expiration_enabled == void 0
46606
+ ? void 0
46607
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_collaboration_expiration_enabled);
46608
+ const collaborationExpirationDays = val.collaboration_expiration_days == void 0
46609
+ ? void 0
46610
+ : deserializeEnterpriseConfigurationItemIntegerV2025R0(val.collaboration_expiration_days);
46611
+ const isCollaborationExpirationModificationPrevented = val.is_collaboration_expiration_modification_prevented == void 0
46612
+ ? void 0
46613
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_collaboration_expiration_modification_prevented);
46614
+ const isCollaborationExpirationNotificationEnabled = val.is_collaboration_expiration_notification_enabled == void 0
46615
+ ? void 0
46616
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_collaboration_expiration_notification_enabled);
46617
+ const collaborationExpirationTarget = val.collaboration_expiration_target == void 0
46618
+ ? void 0
46619
+ : deserializeEnterpriseConfigurationItemStringV2025R0(val.collaboration_expiration_target);
46620
+ const trashAutoClearTime = val.trash_auto_clear_time == void 0
46621
+ ? void 0
46622
+ : deserializeEnterpriseConfigurationItemIntegerV2025R0(val.trash_auto_clear_time);
46623
+ const permanentDeletionAccess = val.permanent_deletion_access == void 0
46624
+ ? void 0
46625
+ : deserializeEnterpriseConfigurationItemStringV2025R0(val.permanent_deletion_access);
46626
+ const permanentDeletionAllowlistUsers = val.permanent_deletion_allowlist_users == void 0
46627
+ ? void 0
46628
+ : deserializeEnterpriseConfigurationContentAndSharingV2025R0PermanentDeletionAllowlistUsersField(val.permanent_deletion_allowlist_users);
46629
+ return {
46630
+ enterpriseFeatureSettings: enterpriseFeatureSettings,
46631
+ sharingItemType: sharingItemType,
46632
+ sharedLinkCompanyDefinition: sharedLinkCompanyDefinition,
46633
+ sharedLinkAccess: sharedLinkAccess,
46634
+ sharedLinkDefaultAccess: sharedLinkDefaultAccess,
46635
+ sharedLinkDefaultPermissionsSelected: sharedLinkDefaultPermissionsSelected,
46636
+ isOpenCustomUrlsDisabled: isOpenCustomUrlsDisabled,
46637
+ isCustomDomainHiddenInSharedLink: isCustomDomainHiddenInSharedLink,
46638
+ collaborationPermissions: collaborationPermissions,
46639
+ defaultCollaborationRole: defaultCollaborationRole,
46640
+ isInvitePrivilegeRestricted: isInvitePrivilegeRestricted,
46641
+ collaborationRestrictions: collaborationRestrictions,
46642
+ isCollaboratorInviteLinksDisabled: isCollaboratorInviteLinksDisabled,
46643
+ isInviteGroupCollaboratorDisabled: isInviteGroupCollaboratorDisabled,
46644
+ isOwnershipTransferRestricted: isOwnershipTransferRestricted,
46645
+ externalCollaborationStatus: externalCollaborationStatus,
46646
+ externalCollaborationAllowlistUsers: externalCollaborationAllowlistUsers,
46647
+ isWatermarkingEnterpriseFeatureEnabled: isWatermarkingEnterpriseFeatureEnabled,
46648
+ isRootContentCreationRestricted: isRootContentCreationRestricted,
46649
+ isTagCreationRestricted: isTagCreationRestricted,
46650
+ tagCreationRestriction: tagCreationRestriction,
46651
+ isEmailUploadsEnabled: isEmailUploadsEnabled,
46652
+ isCustomSettingsEnabled: isCustomSettingsEnabled,
46653
+ isFormsLoginRequired: isFormsLoginRequired,
46654
+ isFormsBrandingDefaultEnabled: isFormsBrandingDefaultEnabled,
46655
+ isCcFreeTrialActive: isCcFreeTrialActive,
46656
+ isFileRequestEditorsAllowed: isFileRequestEditorsAllowed,
46657
+ isFileRequestBrandingDefaultEnabled: isFileRequestBrandingDefaultEnabled,
46658
+ isFileRequestLoginRequired: isFileRequestLoginRequired,
46659
+ isSharedLinksExpirationEnabled: isSharedLinksExpirationEnabled,
46660
+ sharedLinksExpirationDays: sharedLinksExpirationDays,
46661
+ isPublicSharedLinksExpirationEnabled: isPublicSharedLinksExpirationEnabled,
46662
+ publicSharedLinksExpirationDays: publicSharedLinksExpirationDays,
46663
+ sharedExpirationTarget: sharedExpirationTarget,
46664
+ isSharedLinksExpirationNotificationEnabled: isSharedLinksExpirationNotificationEnabled,
46665
+ sharedLinksExpirationNotificationDays: sharedLinksExpirationNotificationDays,
46666
+ isSharedLinksExpirationNotificationPrevented: isSharedLinksExpirationNotificationPrevented,
46667
+ isAutoDeleteEnabled: isAutoDeleteEnabled,
46668
+ autoDeleteDays: autoDeleteDays,
46669
+ isAutoDeleteExpirationModificationPrevented: isAutoDeleteExpirationModificationPrevented,
46670
+ autoDeleteTarget: autoDeleteTarget,
46671
+ isCollaborationExpirationEnabled: isCollaborationExpirationEnabled,
46672
+ collaborationExpirationDays: collaborationExpirationDays,
46673
+ isCollaborationExpirationModificationPrevented: isCollaborationExpirationModificationPrevented,
46674
+ isCollaborationExpirationNotificationEnabled: isCollaborationExpirationNotificationEnabled,
46675
+ collaborationExpirationTarget: collaborationExpirationTarget,
46676
+ trashAutoClearTime: trashAutoClearTime,
46677
+ permanentDeletionAccess: permanentDeletionAccess,
46678
+ permanentDeletionAllowlistUsers: permanentDeletionAllowlistUsers,
46679
+ };
46680
+ }
46681
+
46682
+ function deserializeUserTrackingCodeV2025R0(val) {
46683
+ if (!sdIsMap(val)) {
46684
+ throw new BoxSdkError({
46685
+ message: 'Expecting a map for "UserTrackingCodeV2025R0"',
46686
+ });
46687
+ }
46688
+ if (!(val.id == void 0) && !sdIsNumber(val.id)) {
46689
+ throw new BoxSdkError({
46690
+ message: 'Expecting number for "id" of type "UserTrackingCodeV2025R0"',
46691
+ });
46692
+ }
46693
+ const id = val.id == void 0 ? void 0 : val.id;
46694
+ if (!(val.name == void 0) && !sdIsString(val.name)) {
46695
+ throw new BoxSdkError({
46696
+ message: 'Expecting string for "name" of type "UserTrackingCodeV2025R0"',
46697
+ });
46698
+ }
46699
+ const name = val.name == void 0 ? void 0 : val.name;
46700
+ return { id: id, name: name };
46701
+ }
46702
+
46703
+ function deserializeEnterpriseConfigurationUserSettingsV2025R0UserTrackingCodesField(val) {
46704
+ if (!sdIsMap(val)) {
46705
+ throw new BoxSdkError({
46706
+ message: 'Expecting a map for "EnterpriseConfigurationUserSettingsV2025R0UserTrackingCodesField"',
46707
+ });
46708
+ }
46709
+ if (!(val.value == void 0) && !sdIsList(val.value)) {
46710
+ throw new BoxSdkError({
46711
+ message: 'Expecting array for "value" of type "EnterpriseConfigurationUserSettingsV2025R0UserTrackingCodesField"',
46712
+ });
46713
+ }
46714
+ const value = val.value == void 0
46715
+ ? void 0
46716
+ : sdIsList(val.value)
46717
+ ? val.value.map(function (itm) {
46718
+ return deserializeUserTrackingCodeV2025R0(itm);
46719
+ })
46720
+ : [];
46721
+ if (!(val.is_used == void 0) && !sdIsBoolean(val.is_used)) {
46722
+ throw new BoxSdkError({
46723
+ message: 'Expecting boolean for "is_used" of type "EnterpriseConfigurationUserSettingsV2025R0UserTrackingCodesField"',
46724
+ });
46725
+ }
46726
+ const isUsed = val.is_used == void 0 ? void 0 : val.is_used;
46727
+ return {
46728
+ value: value,
46729
+ isUsed: isUsed,
46730
+ };
46731
+ }
46732
+ function deserializeEnterpriseConfigurationUserSettingsV2025R0(val) {
46733
+ if (!sdIsMap(val)) {
46734
+ throw new BoxSdkError({
46735
+ message: 'Expecting a map for "EnterpriseConfigurationUserSettingsV2025R0"',
46736
+ });
46737
+ }
46738
+ if (!(val.enterprise_feature_settings == void 0) &&
46739
+ !sdIsList(val.enterprise_feature_settings)) {
46740
+ throw new BoxSdkError({
46741
+ message: 'Expecting array for "enterprise_feature_settings" of type "EnterpriseConfigurationUserSettingsV2025R0"',
46742
+ });
46743
+ }
46744
+ const enterpriseFeatureSettings = val.enterprise_feature_settings == void 0
46745
+ ? void 0
46746
+ : sdIsList(val.enterprise_feature_settings)
46747
+ ? val.enterprise_feature_settings.map(function (itm) {
46748
+ return deserializeEnterpriseFeatureSettingsItemV2025R0(itm);
46749
+ })
46750
+ : [];
46751
+ const userInvitesExpirationTimeFrame = val.user_invites_expiration_time_frame == void 0
46752
+ ? void 0
46753
+ : deserializeEnterpriseConfigurationItemStringV2025R0(val.user_invites_expiration_time_frame);
46754
+ const isUsernameChangeRestricted = val.is_username_change_restricted == void 0
46755
+ ? void 0
46756
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_username_change_restricted);
46757
+ const isBoxSyncRestrictedForNewUsers = val.is_box_sync_restricted_for_new_users == void 0
46758
+ ? void 0
46759
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_box_sync_restricted_for_new_users);
46760
+ const isViewAllUsersEnabledForNewUsers = val.is_view_all_users_enabled_for_new_users == void 0
46761
+ ? void 0
46762
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_view_all_users_enabled_for_new_users);
46763
+ const isDeviceLimitExemptionEnabledForNewUsers = val.is_device_limit_exemption_enabled_for_new_users == void 0
46764
+ ? void 0
46765
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_device_limit_exemption_enabled_for_new_users);
46766
+ const isExternalCollaborationRestrictedForNewUsers = val.is_external_collaboration_restricted_for_new_users == void 0
46767
+ ? void 0
46768
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_external_collaboration_restricted_for_new_users);
46769
+ const isUnlimitedStorageEnabledForNewUsers = val.is_unlimited_storage_enabled_for_new_users == void 0
46770
+ ? void 0
46771
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_unlimited_storage_enabled_for_new_users);
46772
+ const newUserDefaultStorageLimit = val.new_user_default_storage_limit == void 0
46773
+ ? void 0
46774
+ : deserializeEnterpriseConfigurationItemIntegerV2025R0(val.new_user_default_storage_limit);
46775
+ const newUserDefaultTimezone = val.new_user_default_timezone == void 0
46776
+ ? void 0
46777
+ : deserializeEnterpriseConfigurationItemStringV2025R0(val.new_user_default_timezone);
46778
+ const newUserDefaultLanguage = val.new_user_default_language == void 0
46779
+ ? void 0
46780
+ : deserializeEnterpriseConfigurationItemStringV2025R0(val.new_user_default_language);
46781
+ const isEnterpriseSsoRequired = val.is_enterprise_sso_required == void 0
46782
+ ? void 0
46783
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_enterprise_sso_required);
46784
+ const isEnterpriseSsoInTesting = val.is_enterprise_sso_in_testing == void 0
46785
+ ? void 0
46786
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_enterprise_sso_in_testing);
46787
+ const isSsoAutoAddGroupsEnabled = val.is_sso_auto_add_groups_enabled == void 0
46788
+ ? void 0
46789
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_sso_auto_add_groups_enabled);
46790
+ const isSsoAutoAddUserToGroupsEnabled = val.is_sso_auto_add_user_to_groups_enabled == void 0
46791
+ ? void 0
46792
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_sso_auto_add_user_to_groups_enabled);
46793
+ const isSsoAutoRemoveUserFromGroupsEnabled = val.is_sso_auto_remove_user_from_groups_enabled == void 0
46794
+ ? void 0
46795
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_sso_auto_remove_user_from_groups_enabled);
46796
+ const userTrackingCodes = val.user_tracking_codes == void 0
46797
+ ? void 0
46798
+ : deserializeEnterpriseConfigurationUserSettingsV2025R0UserTrackingCodesField(val.user_tracking_codes);
46799
+ const numberOfUserTrackingCodesRemaining = val.number_of_user_tracking_codes_remaining == void 0
46800
+ ? void 0
46801
+ : deserializeEnterpriseConfigurationItemIntegerV2025R0(val.number_of_user_tracking_codes_remaining);
46802
+ const isInstantLoginRestricted = val.is_instant_login_restricted == void 0
46803
+ ? void 0
46804
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_instant_login_restricted);
46805
+ return {
46806
+ enterpriseFeatureSettings: enterpriseFeatureSettings,
46807
+ userInvitesExpirationTimeFrame: userInvitesExpirationTimeFrame,
46808
+ isUsernameChangeRestricted: isUsernameChangeRestricted,
46809
+ isBoxSyncRestrictedForNewUsers: isBoxSyncRestrictedForNewUsers,
46810
+ isViewAllUsersEnabledForNewUsers: isViewAllUsersEnabledForNewUsers,
46811
+ isDeviceLimitExemptionEnabledForNewUsers: isDeviceLimitExemptionEnabledForNewUsers,
46812
+ isExternalCollaborationRestrictedForNewUsers: isExternalCollaborationRestrictedForNewUsers,
46813
+ isUnlimitedStorageEnabledForNewUsers: isUnlimitedStorageEnabledForNewUsers,
46814
+ newUserDefaultStorageLimit: newUserDefaultStorageLimit,
46815
+ newUserDefaultTimezone: newUserDefaultTimezone,
46816
+ newUserDefaultLanguage: newUserDefaultLanguage,
46817
+ isEnterpriseSsoRequired: isEnterpriseSsoRequired,
46818
+ isEnterpriseSsoInTesting: isEnterpriseSsoInTesting,
46819
+ isSsoAutoAddGroupsEnabled: isSsoAutoAddGroupsEnabled,
46820
+ isSsoAutoAddUserToGroupsEnabled: isSsoAutoAddUserToGroupsEnabled,
46821
+ isSsoAutoRemoveUserFromGroupsEnabled: isSsoAutoRemoveUserFromGroupsEnabled,
46822
+ userTrackingCodes: userTrackingCodes,
46823
+ numberOfUserTrackingCodesRemaining: numberOfUserTrackingCodesRemaining,
46824
+ isInstantLoginRestricted: isInstantLoginRestricted,
46825
+ };
46826
+ }
46827
+
46828
+ function deserializeShieldRuleItemV2025R0TypeField(val) {
46829
+ if (val == 'shield_rule') {
46830
+ return val;
46831
+ }
46832
+ throw new BoxSdkError({
46833
+ message: "Can't deserialize ShieldRuleItemV2025R0TypeField",
46834
+ });
46835
+ }
46836
+ function deserializeShieldRuleItemV2025R0PriorityField(val) {
46837
+ if (val == 'informational') {
46838
+ return val;
46839
+ }
46840
+ if (val == 'low') {
46841
+ return val;
46842
+ }
46843
+ if (val == 'medium') {
46844
+ return val;
46845
+ }
46846
+ if (val == 'high') {
46847
+ return val;
46848
+ }
46849
+ if (val == 'critical') {
46850
+ return val;
46851
+ }
46852
+ if (sdIsString(val)) {
46853
+ return val;
46854
+ }
46855
+ throw new BoxSdkError({
46856
+ message: "Can't deserialize ShieldRuleItemV2025R0PriorityField",
46857
+ });
46858
+ }
46859
+ function deserializeShieldRuleItemV2025R0(val) {
46860
+ if (!sdIsMap(val)) {
46861
+ throw new BoxSdkError({
46862
+ message: 'Expecting a map for "ShieldRuleItemV2025R0"',
46863
+ });
46864
+ }
46865
+ if (!(val.id == void 0) && !sdIsString(val.id)) {
46866
+ throw new BoxSdkError({
46867
+ message: 'Expecting string for "id" of type "ShieldRuleItemV2025R0"',
46868
+ });
46869
+ }
46870
+ const id = val.id == void 0 ? void 0 : val.id;
46871
+ const type = val.type == void 0
46872
+ ? void 0
46873
+ : deserializeShieldRuleItemV2025R0TypeField(val.type);
46874
+ if (!(val.rule_category == void 0) && !sdIsString(val.rule_category)) {
46875
+ throw new BoxSdkError({
46876
+ message: 'Expecting string for "rule_category" of type "ShieldRuleItemV2025R0"',
46877
+ });
46878
+ }
46879
+ const ruleCategory = val.rule_category == void 0 ? void 0 : val.rule_category;
46880
+ if (!(val.name == void 0) && !sdIsString(val.name)) {
46881
+ throw new BoxSdkError({
46882
+ message: 'Expecting string for "name" of type "ShieldRuleItemV2025R0"',
46883
+ });
46884
+ }
46885
+ const name = val.name == void 0 ? void 0 : val.name;
46886
+ if (!(val.description == void 0) && !sdIsString(val.description)) {
46887
+ throw new BoxSdkError({
46888
+ message: 'Expecting string for "description" of type "ShieldRuleItemV2025R0"',
46889
+ });
46890
+ }
46891
+ const description = val.description == void 0 ? void 0 : val.description;
46892
+ const priority = val.priority == void 0
46893
+ ? void 0
46894
+ : deserializeShieldRuleItemV2025R0PriorityField(val.priority);
46895
+ if (!(val.created_at == void 0) && !sdIsString(val.created_at)) {
46896
+ throw new BoxSdkError({
46897
+ message: 'Expecting string for "created_at" of type "ShieldRuleItemV2025R0"',
46898
+ });
46899
+ }
46900
+ const createdAt = val.created_at == void 0 ? void 0 : dateTimeFromString(val.created_at);
46901
+ if (!(val.modified_at == void 0) && !sdIsString(val.modified_at)) {
46902
+ throw new BoxSdkError({
46903
+ message: 'Expecting string for "modified_at" of type "ShieldRuleItemV2025R0"',
46904
+ });
46905
+ }
46906
+ const modifiedAt = val.modified_at == void 0 ? void 0 : dateTimeFromString(val.modified_at);
46907
+ return {
46908
+ id: id,
46909
+ type: type,
46910
+ ruleCategory: ruleCategory,
46911
+ name: name,
46912
+ description: description,
46913
+ priority: priority,
46914
+ createdAt: createdAt,
46915
+ modifiedAt: modifiedAt,
46916
+ };
46917
+ }
46918
+
46919
+ function deserializeEnterpriseConfigurationShieldV2025R0(val) {
46920
+ if (!sdIsMap(val)) {
46921
+ throw new BoxSdkError({
46922
+ message: 'Expecting a map for "EnterpriseConfigurationShieldV2025R0"',
46923
+ });
46924
+ }
46925
+ if (!(val.shield_rules == void 0) && !sdIsList(val.shield_rules)) {
46926
+ throw new BoxSdkError({
46927
+ message: 'Expecting array for "shield_rules" of type "EnterpriseConfigurationShieldV2025R0"',
46928
+ });
46929
+ }
46930
+ const shieldRules = val.shield_rules == void 0
46931
+ ? void 0
46932
+ : sdIsList(val.shield_rules)
46933
+ ? val.shield_rules.map(function (itm) {
46934
+ return deserializeShieldRuleItemV2025R0(itm);
46935
+ })
46936
+ : [];
46937
+ return {
46938
+ shieldRules: shieldRules,
46939
+ };
46940
+ }
46941
+
46942
+ function deserializeEnterpriseConfigurationV2025R0TypeField(val) {
46943
+ if (val == 'enterprise_configuration') {
46944
+ return val;
46945
+ }
46946
+ throw new BoxSdkError({
46947
+ message: "Can't deserialize EnterpriseConfigurationV2025R0TypeField",
46948
+ });
46949
+ }
46950
+ function deserializeEnterpriseConfigurationV2025R0(val) {
46951
+ if (!sdIsMap(val)) {
46952
+ throw new BoxSdkError({
46953
+ message: 'Expecting a map for "EnterpriseConfigurationV2025R0"',
46954
+ });
46955
+ }
46956
+ if (!(val.id == void 0) && !sdIsString(val.id)) {
46957
+ throw new BoxSdkError({
46958
+ message: 'Expecting string for "id" of type "EnterpriseConfigurationV2025R0"',
46959
+ });
46960
+ }
46961
+ const id = val.id == void 0 ? void 0 : val.id;
46962
+ const type = val.type == void 0
46963
+ ? void 0
46964
+ : deserializeEnterpriseConfigurationV2025R0TypeField(val.type);
46965
+ const security = val.security == void 0
46966
+ ? void 0
46967
+ : deserializeEnterpriseConfigurationSecurityV2025R0(val.security);
46968
+ const contentAndSharing = val.content_and_sharing == void 0
46969
+ ? void 0
46970
+ : deserializeEnterpriseConfigurationContentAndSharingV2025R0(val.content_and_sharing);
46971
+ const userSettings = val.user_settings == void 0
46972
+ ? void 0
46973
+ : deserializeEnterpriseConfigurationUserSettingsV2025R0(val.user_settings);
46974
+ const shield = val.shield == void 0
46975
+ ? void 0
46976
+ : deserializeEnterpriseConfigurationShieldV2025R0(val.shield);
46977
+ return {
46978
+ id: id,
46979
+ type: type,
46980
+ security: security,
46981
+ contentAndSharing: contentAndSharing,
46982
+ userSettings: userSettings,
46983
+ shield: shield,
46984
+ };
46985
+ }
46986
+
46987
+ class GetEnterpriseConfigurationByIdV2025R0Optionals {
46988
+ constructor(fields) {
46989
+ this.headers = new GetEnterpriseConfigurationByIdV2025R0Headers({});
46990
+ this.cancellationToken = void 0;
46991
+ if (fields.headers !== undefined) {
46992
+ this.headers = fields.headers;
46993
+ }
46994
+ if (fields.cancellationToken !== undefined) {
46995
+ this.cancellationToken = fields.cancellationToken;
46996
+ }
46997
+ }
46998
+ }
46999
+ class GetEnterpriseConfigurationByIdV2025R0Headers {
47000
+ constructor(fields) {
47001
+ /**
47002
+ * Version header. */
47003
+ this.boxVersion = '2025.0';
47004
+ /**
47005
+ * Extra headers that will be included in the HTTP request. */
47006
+ this.extraHeaders = {};
47007
+ if (fields.boxVersion !== undefined) {
47008
+ this.boxVersion = fields.boxVersion;
47009
+ }
47010
+ if (fields.extraHeaders !== undefined) {
47011
+ this.extraHeaders = fields.extraHeaders;
47012
+ }
47013
+ }
47014
+ }
47015
+ class EnterpriseConfigurationsManager {
47016
+ constructor(fields) {
47017
+ this.networkSession = new NetworkSession({});
47018
+ if (fields.auth !== undefined) {
47019
+ this.auth = fields.auth;
47020
+ }
47021
+ if (fields.networkSession !== undefined) {
47022
+ this.networkSession = fields.networkSession;
47023
+ }
47024
+ }
47025
+ /**
47026
+ * Retrieves the configuration for an enterprise.
47027
+ * @param {string} enterpriseId The ID of the enterprise.
47028
+ Example: "3442311"
47029
+ * @param {GetEnterpriseConfigurationByIdV2025R0QueryParams} queryParams Query parameters of getEnterpriseConfigurationByIdV2025R0 method
47030
+ * @param {GetEnterpriseConfigurationByIdV2025R0OptionalsInput} optionalsInput
47031
+ * @returns {Promise<EnterpriseConfigurationV2025R0>}
47032
+ */
47033
+ getEnterpriseConfigurationByIdV2025R0(enterpriseId_1, queryParams_1) {
47034
+ return __awaiter$1(this, arguments, void 0, function* (enterpriseId, queryParams, optionalsInput = {}) {
47035
+ const optionals = new GetEnterpriseConfigurationByIdV2025R0Optionals({
47036
+ headers: optionalsInput.headers,
47037
+ cancellationToken: optionalsInput.cancellationToken,
47038
+ });
47039
+ const headers = optionals.headers;
47040
+ const cancellationToken = optionals.cancellationToken;
47041
+ const queryParamsMap = prepareParams({
47042
+ ['categories']: queryParams.categories
47043
+ ? queryParams.categories.map(toString).join(',')
47044
+ : undefined,
47045
+ });
47046
+ const headersMap = prepareParams(Object.assign({ ['box-version']: toString(headers.boxVersion) }, headers.extraHeaders));
47047
+ const response = yield this.networkSession.networkClient.fetch(new FetchOptions({
47048
+ url: ''.concat(this.networkSession.baseUrls.baseUrl, '/2.0/enterprise_configurations/', toString(enterpriseId)),
47049
+ method: 'GET',
47050
+ params: queryParamsMap,
47051
+ headers: headersMap,
47052
+ responseFormat: 'json',
47053
+ auth: this.auth,
47054
+ networkSession: this.networkSession,
47055
+ cancellationToken: cancellationToken,
47056
+ }));
47057
+ return Object.assign(Object.assign({}, deserializeEnterpriseConfigurationV2025R0(response.data)), { rawData: response.data });
47058
+ });
47059
+ }
47060
+ }
47061
+
45433
47062
  function deserializeHubBaseV2025R0TypeField(val) {
45434
47063
  if (val == 'hubs') {
45435
47064
  return val;
@@ -46918,7 +48547,7 @@
46918
48547
  return val;
46919
48548
  }
46920
48549
  function deserializeWeblinkReferenceV2025R0TypeField(val) {
46921
- if (val == 'weblink') {
48550
+ if (val == 'web_link') {
46922
48551
  return val;
46923
48552
  }
46924
48553
  throw new BoxSdkError({
@@ -46964,7 +48593,7 @@
46964
48593
  if (val.type == 'folder') {
46965
48594
  return serializeFolderReferenceV2025R0(val);
46966
48595
  }
46967
- if (val.type == 'weblink') {
48596
+ if (val.type == 'web_link') {
46968
48597
  return serializeWeblinkReferenceV2025R0(val);
46969
48598
  }
46970
48599
  throw new BoxSdkError({ message: 'unknown type' });
@@ -46981,7 +48610,7 @@
46981
48610
  if (val.type == 'folder') {
46982
48611
  return deserializeFolderReferenceV2025R0(val);
46983
48612
  }
46984
- if (val.type == 'weblink') {
48613
+ if (val.type == 'web_link') {
46985
48614
  return deserializeWeblinkReferenceV2025R0(val);
46986
48615
  }
46987
48616
  throw new BoxSdkError({
@@ -48024,6 +49653,36 @@
48024
49653
  message: "Can't deserialize ArchiveV2025R0TypeField",
48025
49654
  });
48026
49655
  }
49656
+ function deserializeArchiveV2025R0OwnedByField(val) {
49657
+ if (!sdIsMap(val)) {
49658
+ throw new BoxSdkError({
49659
+ message: 'Expecting a map for "ArchiveV2025R0OwnedByField"',
49660
+ });
49661
+ }
49662
+ if (val.id == void 0) {
49663
+ throw new BoxSdkError({
49664
+ message: 'Expecting "id" of type "ArchiveV2025R0OwnedByField" to be defined',
49665
+ });
49666
+ }
49667
+ if (!sdIsString(val.id)) {
49668
+ throw new BoxSdkError({
49669
+ message: 'Expecting string for "id" of type "ArchiveV2025R0OwnedByField"',
49670
+ });
49671
+ }
49672
+ const id = val.id;
49673
+ if (val.type == void 0) {
49674
+ throw new BoxSdkError({
49675
+ message: 'Expecting "type" of type "ArchiveV2025R0OwnedByField" to be defined',
49676
+ });
49677
+ }
49678
+ if (!sdIsString(val.type)) {
49679
+ throw new BoxSdkError({
49680
+ message: 'Expecting string for "type" of type "ArchiveV2025R0OwnedByField"',
49681
+ });
49682
+ }
49683
+ const type = val.type;
49684
+ return { id: id, type: type };
49685
+ }
48027
49686
  function deserializeArchiveV2025R0(val) {
48028
49687
  if (!sdIsMap(val)) {
48029
49688
  throw new BoxSdkError({ message: 'Expecting a map for "ArchiveV2025R0"' });
@@ -48067,11 +49726,22 @@
48067
49726
  });
48068
49727
  }
48069
49728
  const size = val.size;
49729
+ if (!(val.description == void 0) && !sdIsString(val.description)) {
49730
+ throw new BoxSdkError({
49731
+ message: 'Expecting string for "description" of type "ArchiveV2025R0"',
49732
+ });
49733
+ }
49734
+ const description = val.description == void 0 ? void 0 : val.description;
49735
+ const ownedBy = val.owned_by == void 0
49736
+ ? void 0
49737
+ : deserializeArchiveV2025R0OwnedByField(val.owned_by);
48070
49738
  return {
48071
49739
  id: id,
48072
49740
  type: type,
48073
49741
  name: name,
48074
49742
  size: size,
49743
+ description: description,
49744
+ ownedBy: ownedBy,
48075
49745
  };
48076
49746
  }
48077
49747
 
@@ -48134,6 +49804,22 @@
48134
49804
  }
48135
49805
  }
48136
49806
  }
49807
+ class UpdateArchiveByIdV2025R0Optionals {
49808
+ constructor(fields) {
49809
+ this.requestBody = {};
49810
+ this.headers = new UpdateArchiveByIdV2025R0Headers({});
49811
+ this.cancellationToken = void 0;
49812
+ if (fields.requestBody !== undefined) {
49813
+ this.requestBody = fields.requestBody;
49814
+ }
49815
+ if (fields.headers !== undefined) {
49816
+ this.headers = fields.headers;
49817
+ }
49818
+ if (fields.cancellationToken !== undefined) {
49819
+ this.cancellationToken = fields.cancellationToken;
49820
+ }
49821
+ }
49822
+ }
48137
49823
  class GetArchivesV2025R0Headers {
48138
49824
  constructor(fields) {
48139
49825
  /**
@@ -48182,6 +49868,22 @@
48182
49868
  }
48183
49869
  }
48184
49870
  }
49871
+ class UpdateArchiveByIdV2025R0Headers {
49872
+ constructor(fields) {
49873
+ /**
49874
+ * Version header. */
49875
+ this.boxVersion = '2025.0';
49876
+ /**
49877
+ * Extra headers that will be included in the HTTP request. */
49878
+ this.extraHeaders = {};
49879
+ if (fields.boxVersion !== undefined) {
49880
+ this.boxVersion = fields.boxVersion;
49881
+ }
49882
+ if (fields.extraHeaders !== undefined) {
49883
+ this.extraHeaders = fields.extraHeaders;
49884
+ }
49885
+ }
49886
+ }
48185
49887
  class ArchivesManager {
48186
49888
  constructor(fields) {
48187
49889
  this.networkSession = new NetworkSession({});
@@ -48286,9 +49988,50 @@
48286
49988
  return void 0;
48287
49989
  });
48288
49990
  }
49991
+ /**
49992
+ * Updates an archive.
49993
+ *
49994
+ * To learn more about the archive APIs, see the [Archive API Guide](g://archives).
49995
+ * @param {string} archiveId The ID of the archive.
49996
+ Example: "982312"
49997
+ * @param {UpdateArchiveByIdV2025R0OptionalsInput} optionalsInput
49998
+ * @returns {Promise<ArchiveV2025R0>}
49999
+ */
50000
+ updateArchiveByIdV2025R0(archiveId_1) {
50001
+ return __awaiter$1(this, arguments, void 0, function* (archiveId, optionalsInput = {}) {
50002
+ const optionals = new UpdateArchiveByIdV2025R0Optionals({
50003
+ requestBody: optionalsInput.requestBody,
50004
+ headers: optionalsInput.headers,
50005
+ cancellationToken: optionalsInput.cancellationToken,
50006
+ });
50007
+ const requestBody = optionals.requestBody;
50008
+ const headers = optionals.headers;
50009
+ const cancellationToken = optionals.cancellationToken;
50010
+ const headersMap = prepareParams(Object.assign({ ['box-version']: toString(headers.boxVersion) }, headers.extraHeaders));
50011
+ const response = yield this.networkSession.networkClient.fetch(new FetchOptions({
50012
+ url: ''.concat(this.networkSession.baseUrls.baseUrl, '/2.0/archives/', toString(archiveId)),
50013
+ method: 'PUT',
50014
+ headers: headersMap,
50015
+ data: serializeUpdateArchiveByIdV2025R0RequestBody(requestBody),
50016
+ contentType: 'application/json',
50017
+ responseFormat: 'json',
50018
+ auth: this.auth,
50019
+ networkSession: this.networkSession,
50020
+ cancellationToken: cancellationToken,
50021
+ }));
50022
+ return Object.assign(Object.assign({}, deserializeArchiveV2025R0(response.data)), { rawData: response.data });
50023
+ });
50024
+ }
48289
50025
  }
48290
50026
  function serializeCreateArchiveV2025R0RequestBody(val) {
48291
- return { ['name']: val.name };
50027
+ return {
50028
+ ['name']: val.name,
50029
+ ['description']: val.description,
50030
+ ['storage_policy_id']: val.storagePolicyId,
50031
+ };
50032
+ }
50033
+ function serializeUpdateArchiveByIdV2025R0RequestBody(val) {
50034
+ return { ['name']: val.name, ['description']: val.description };
48292
50035
  }
48293
50036
 
48294
50037
  function deserializeExternalUserDeletionResultV2025R0(val) {
@@ -48759,6 +50502,10 @@
48759
50502
  auth: this.auth,
48760
50503
  networkSession: this.networkSession,
48761
50504
  });
50505
+ this.enterpriseConfigurations = new EnterpriseConfigurationsManager({
50506
+ auth: this.auth,
50507
+ networkSession: this.networkSession,
50508
+ });
48762
50509
  this.hubs = new HubsManager({
48763
50510
  auth: this.auth,
48764
50511
  networkSession: this.networkSession,