box-node-sdk 10.0.1 → 10.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (494) hide show
  1. package/README.md +105 -69
  2. package/lib/box/errors.d.ts.map +1 -1
  3. package/lib/box/errors.js +2 -0
  4. package/lib/box/errors.js.map +1 -1
  5. package/lib/bundle.js +1725 -25
  6. package/lib/bundle.js.map +1 -1
  7. package/lib/client.d.ts +3 -1
  8. package/lib/client.d.ts.map +1 -1
  9. package/lib/client.js +5 -0
  10. package/lib/client.js.map +1 -1
  11. package/lib/managers/archives.d.ts +60 -1
  12. package/lib/managers/archives.d.ts.map +1 -1
  13. package/lib/managers/archives.js +120 -3
  14. package/lib/managers/archives.js.map +1 -1
  15. package/lib/managers/enterpriseConfigurations.d.ts +60 -0
  16. package/lib/managers/enterpriseConfigurations.d.ts.map +1 -0
  17. package/lib/managers/enterpriseConfigurations.js +95 -0
  18. package/lib/managers/enterpriseConfigurations.js.map +1 -0
  19. package/lib/managers/index.d.ts +1 -0
  20. package/lib/managers/index.d.ts.map +1 -1
  21. package/lib/managers/index.js +1 -0
  22. package/lib/managers/index.js.map +1 -1
  23. package/lib/managers/users.d.ts +5 -5
  24. package/lib/managers/users.d.ts.map +1 -1
  25. package/lib/managers/users.js +3 -3
  26. package/lib/networking/boxNetworkClient.d.ts.map +1 -1
  27. package/lib/networking/boxNetworkClient.js +10 -4
  28. package/lib/networking/boxNetworkClient.js.map +1 -1
  29. package/lib/networking/retries.d.ts.map +1 -1
  30. package/lib/networking/retries.js +3 -1
  31. package/lib/networking/retries.js.map +1 -1
  32. package/lib/networking/version.d.ts +1 -1
  33. package/lib/networking/version.js +1 -1
  34. package/lib/schemas/v2025R0/archiveV2025R0.d.ts +25 -2
  35. package/lib/schemas/v2025R0/archiveV2025R0.d.ts.map +1 -1
  36. package/lib/schemas/v2025R0/archiveV2025R0.js +72 -1
  37. package/lib/schemas/v2025R0/archiveV2025R0.js.map +1 -1
  38. package/lib/schemas/v2025R0/collaborationPermissionsV2025R0.d.ts +28 -0
  39. package/lib/schemas/v2025R0/collaborationPermissionsV2025R0.d.ts.map +1 -0
  40. package/lib/schemas/v2025R0/collaborationPermissionsV2025R0.js +94 -0
  41. package/lib/schemas/v2025R0/collaborationPermissionsV2025R0.js.map +1 -0
  42. package/lib/schemas/v2025R0/customSessionDurationGroupItemV2025R0.d.ts +13 -0
  43. package/lib/schemas/v2025R0/customSessionDurationGroupItemV2025R0.d.ts.map +1 -0
  44. package/lib/schemas/v2025R0/customSessionDurationGroupItemV2025R0.js +31 -0
  45. package/lib/schemas/v2025R0/customSessionDurationGroupItemV2025R0.js.map +1 -0
  46. package/lib/schemas/v2025R0/enterpriseConfigurationContentAndSharingV2025R0.d.ts +96 -0
  47. package/lib/schemas/v2025R0/enterpriseConfigurationContentAndSharingV2025R0.d.ts.map +1 -0
  48. package/lib/schemas/v2025R0/enterpriseConfigurationContentAndSharingV2025R0.js +640 -0
  49. package/lib/schemas/v2025R0/enterpriseConfigurationContentAndSharingV2025R0.js.map +1 -0
  50. package/lib/schemas/v2025R0/enterpriseConfigurationItemBooleanV2025R0.d.ts +10 -0
  51. package/lib/schemas/v2025R0/enterpriseConfigurationItemBooleanV2025R0.d.ts.map +1 -0
  52. package/lib/schemas/v2025R0/enterpriseConfigurationItemBooleanV2025R0.js +41 -0
  53. package/lib/schemas/v2025R0/enterpriseConfigurationItemBooleanV2025R0.js.map +1 -0
  54. package/lib/schemas/v2025R0/enterpriseConfigurationItemIntegerV2025R0.d.ts +10 -0
  55. package/lib/schemas/v2025R0/enterpriseConfigurationItemIntegerV2025R0.d.ts.map +1 -0
  56. package/lib/schemas/v2025R0/enterpriseConfigurationItemIntegerV2025R0.js +42 -0
  57. package/lib/schemas/v2025R0/enterpriseConfigurationItemIntegerV2025R0.js.map +1 -0
  58. package/lib/schemas/v2025R0/enterpriseConfigurationItemStringV2025R0.d.ts +10 -0
  59. package/lib/schemas/v2025R0/enterpriseConfigurationItemStringV2025R0.d.ts.map +1 -0
  60. package/lib/schemas/v2025R0/enterpriseConfigurationItemStringV2025R0.js +42 -0
  61. package/lib/schemas/v2025R0/enterpriseConfigurationItemStringV2025R0.js.map +1 -0
  62. package/lib/schemas/v2025R0/enterpriseConfigurationItemV2025R0.d.ts +10 -0
  63. package/lib/schemas/v2025R0/enterpriseConfigurationItemV2025R0.d.ts.map +1 -0
  64. package/lib/schemas/v2025R0/enterpriseConfigurationItemV2025R0.js +25 -0
  65. package/lib/schemas/v2025R0/enterpriseConfigurationItemV2025R0.js.map +1 -0
  66. package/lib/schemas/v2025R0/enterpriseConfigurationSecurityV2025R0.d.ts +83 -0
  67. package/lib/schemas/v2025R0/enterpriseConfigurationSecurityV2025R0.d.ts.map +1 -0
  68. package/lib/schemas/v2025R0/enterpriseConfigurationSecurityV2025R0.js +472 -0
  69. package/lib/schemas/v2025R0/enterpriseConfigurationSecurityV2025R0.js.map +1 -0
  70. package/lib/schemas/v2025R0/enterpriseConfigurationShieldV2025R0.d.ts +11 -0
  71. package/lib/schemas/v2025R0/enterpriseConfigurationShieldV2025R0.d.ts.map +1 -0
  72. package/lib/schemas/v2025R0/enterpriseConfigurationShieldV2025R0.js +41 -0
  73. package/lib/schemas/v2025R0/enterpriseConfigurationShieldV2025R0.js.map +1 -0
  74. package/lib/schemas/v2025R0/enterpriseConfigurationUserSettingsV2025R0.d.ts +37 -0
  75. package/lib/schemas/v2025R0/enterpriseConfigurationUserSettingsV2025R0.d.ts.map +1 -0
  76. package/lib/schemas/v2025R0/enterpriseConfigurationUserSettingsV2025R0.js +224 -0
  77. package/lib/schemas/v2025R0/enterpriseConfigurationUserSettingsV2025R0.js.map +1 -0
  78. package/lib/schemas/v2025R0/enterpriseConfigurationV2025R0.d.ts +24 -0
  79. package/lib/schemas/v2025R0/enterpriseConfigurationV2025R0.d.ts.map +1 -0
  80. package/lib/schemas/v2025R0/enterpriseConfigurationV2025R0.js +101 -0
  81. package/lib/schemas/v2025R0/enterpriseConfigurationV2025R0.js.map +1 -0
  82. package/lib/schemas/v2025R0/enterpriseFeatureSettingV2025R0.d.ts +37 -0
  83. package/lib/schemas/v2025R0/enterpriseFeatureSettingV2025R0.d.ts.map +1 -0
  84. package/lib/schemas/v2025R0/enterpriseFeatureSettingV2025R0.js +119 -0
  85. package/lib/schemas/v2025R0/enterpriseFeatureSettingV2025R0.js.map +1 -0
  86. package/lib/schemas/v2025R0/enterpriseFeatureSettingsItemV2025R0.d.ts +9 -0
  87. package/lib/schemas/v2025R0/enterpriseFeatureSettingsItemV2025R0.d.ts.map +1 -0
  88. package/lib/schemas/v2025R0/enterpriseFeatureSettingsItemV2025R0.js +44 -0
  89. package/lib/schemas/v2025R0/enterpriseFeatureSettingsItemV2025R0.js.map +1 -0
  90. package/lib/schemas/v2025R0/externalCollabSecuritySettingsV2025R0.d.ts +32 -0
  91. package/lib/schemas/v2025R0/externalCollabSecuritySettingsV2025R0.d.ts.map +1 -0
  92. package/lib/schemas/v2025R0/externalCollabSecuritySettingsV2025R0.js +151 -0
  93. package/lib/schemas/v2025R0/externalCollabSecuritySettingsV2025R0.js.map +1 -0
  94. package/lib/schemas/v2025R0/hubItemReferenceV2025R0.js +2 -2
  95. package/lib/schemas/v2025R0/hubItemReferenceV2025R0.js.map +1 -1
  96. package/lib/schemas/v2025R0/index.d.ts +20 -0
  97. package/lib/schemas/v2025R0/index.d.ts.map +1 -1
  98. package/lib/schemas/v2025R0/index.js +20 -0
  99. package/lib/schemas/v2025R0/index.js.map +1 -1
  100. package/lib/schemas/v2025R0/keysafeSettingsV2025R0.d.ts +28 -0
  101. package/lib/schemas/v2025R0/keysafeSettingsV2025R0.d.ts.map +1 -0
  102. package/lib/schemas/v2025R0/keysafeSettingsV2025R0.js +78 -0
  103. package/lib/schemas/v2025R0/keysafeSettingsV2025R0.js.map +1 -0
  104. package/lib/schemas/v2025R0/listUserV2025R0.d.ts +16 -0
  105. package/lib/schemas/v2025R0/listUserV2025R0.d.ts.map +1 -0
  106. package/lib/schemas/v2025R0/listUserV2025R0.js +36 -0
  107. package/lib/schemas/v2025R0/listUserV2025R0.js.map +1 -0
  108. package/lib/schemas/v2025R0/sharedLinkPermissionsV2025R0.d.ts +19 -0
  109. package/lib/schemas/v2025R0/sharedLinkPermissionsV2025R0.d.ts.map +1 -0
  110. package/lib/schemas/v2025R0/sharedLinkPermissionsV2025R0.js +63 -0
  111. package/lib/schemas/v2025R0/sharedLinkPermissionsV2025R0.js.map +1 -0
  112. package/lib/schemas/v2025R0/shieldRuleItemV2025R0.d.ts +38 -0
  113. package/lib/schemas/v2025R0/shieldRuleItemV2025R0.d.ts.map +1 -0
  114. package/lib/schemas/v2025R0/shieldRuleItemV2025R0.js +130 -0
  115. package/lib/schemas/v2025R0/shieldRuleItemV2025R0.js.map +1 -0
  116. package/lib/schemas/v2025R0/userOrGroupReferenceV2025R0.d.ts +16 -0
  117. package/lib/schemas/v2025R0/userOrGroupReferenceV2025R0.d.ts.map +1 -0
  118. package/lib/schemas/v2025R0/userOrGroupReferenceV2025R0.js +49 -0
  119. package/lib/schemas/v2025R0/userOrGroupReferenceV2025R0.js.map +1 -0
  120. package/lib/schemas/v2025R0/userTrackingCodeV2025R0.d.ts +13 -0
  121. package/lib/schemas/v2025R0/userTrackingCodeV2025R0.d.ts.map +1 -0
  122. package/lib/schemas/v2025R0/userTrackingCodeV2025R0.js +32 -0
  123. package/lib/schemas/v2025R0/userTrackingCodeV2025R0.js.map +1 -0
  124. package/lib/schemas/v2025R0/weblinkReferenceV2025R0.d.ts +3 -3
  125. package/lib/schemas/v2025R0/weblinkReferenceV2025R0.d.ts.map +1 -1
  126. package/lib/schemas/v2025R0/weblinkReferenceV2025R0.js +3 -3
  127. package/lib/schemas/v2025R0/weblinkReferenceV2025R0.js.map +1 -1
  128. package/lib-esm/box/errors.js +2 -0
  129. package/lib-esm/box/errors.js.map +1 -1
  130. package/lib-esm/client.d.ts +3 -1
  131. package/lib-esm/client.js +6 -0
  132. package/lib-esm/client.js.map +1 -1
  133. package/lib-esm/managers/archives.d.ts +60 -1
  134. package/lib-esm/managers/archives.js +124 -3
  135. package/lib-esm/managers/archives.js.map +1 -1
  136. package/lib-esm/managers/enterpriseConfigurations.d.ts +59 -0
  137. package/lib-esm/managers/enterpriseConfigurations.js +91 -0
  138. package/lib-esm/managers/enterpriseConfigurations.js.map +1 -0
  139. package/lib-esm/managers/index.d.ts +1 -0
  140. package/lib-esm/managers/index.js +1 -0
  141. package/lib-esm/managers/index.js.map +1 -1
  142. package/lib-esm/managers/users.d.ts +5 -5
  143. package/lib-esm/managers/users.js +3 -3
  144. package/lib-esm/networking/boxNetworkClient.js +10 -4
  145. package/lib-esm/networking/boxNetworkClient.js.map +1 -1
  146. package/lib-esm/networking/retries.js +3 -1
  147. package/lib-esm/networking/retries.js.map +1 -1
  148. package/lib-esm/networking/version.d.ts +1 -1
  149. package/lib-esm/networking/version.js +1 -1
  150. package/lib-esm/schemas/v2025R0/archiveV2025R0.d.ts +25 -2
  151. package/lib-esm/schemas/v2025R0/archiveV2025R0.js +78 -1
  152. package/lib-esm/schemas/v2025R0/archiveV2025R0.js.map +1 -1
  153. package/lib-esm/schemas/v2025R0/collaborationPermissionsV2025R0.d.ts +27 -0
  154. package/lib-esm/schemas/v2025R0/collaborationPermissionsV2025R0.js +94 -0
  155. package/lib-esm/schemas/v2025R0/collaborationPermissionsV2025R0.js.map +1 -0
  156. package/lib-esm/schemas/v2025R0/customSessionDurationGroupItemV2025R0.d.ts +12 -0
  157. package/lib-esm/schemas/v2025R0/customSessionDurationGroupItemV2025R0.js +31 -0
  158. package/lib-esm/schemas/v2025R0/customSessionDurationGroupItemV2025R0.js.map +1 -0
  159. package/lib-esm/schemas/v2025R0/enterpriseConfigurationContentAndSharingV2025R0.d.ts +95 -0
  160. package/lib-esm/schemas/v2025R0/enterpriseConfigurationContentAndSharingV2025R0.js +655 -0
  161. package/lib-esm/schemas/v2025R0/enterpriseConfigurationContentAndSharingV2025R0.js.map +1 -0
  162. package/lib-esm/schemas/v2025R0/enterpriseConfigurationItemBooleanV2025R0.d.ts +9 -0
  163. package/lib-esm/schemas/v2025R0/enterpriseConfigurationItemBooleanV2025R0.js +41 -0
  164. package/lib-esm/schemas/v2025R0/enterpriseConfigurationItemBooleanV2025R0.js.map +1 -0
  165. package/lib-esm/schemas/v2025R0/enterpriseConfigurationItemIntegerV2025R0.d.ts +9 -0
  166. package/lib-esm/schemas/v2025R0/enterpriseConfigurationItemIntegerV2025R0.js +42 -0
  167. package/lib-esm/schemas/v2025R0/enterpriseConfigurationItemIntegerV2025R0.js.map +1 -0
  168. package/lib-esm/schemas/v2025R0/enterpriseConfigurationItemStringV2025R0.d.ts +9 -0
  169. package/lib-esm/schemas/v2025R0/enterpriseConfigurationItemStringV2025R0.js +42 -0
  170. package/lib-esm/schemas/v2025R0/enterpriseConfigurationItemStringV2025R0.js.map +1 -0
  171. package/lib-esm/schemas/v2025R0/enterpriseConfigurationItemV2025R0.d.ts +9 -0
  172. package/lib-esm/schemas/v2025R0/enterpriseConfigurationItemV2025R0.js +25 -0
  173. package/lib-esm/schemas/v2025R0/enterpriseConfigurationItemV2025R0.js.map +1 -0
  174. package/lib-esm/schemas/v2025R0/enterpriseConfigurationSecurityV2025R0.d.ts +82 -0
  175. package/lib-esm/schemas/v2025R0/enterpriseConfigurationSecurityV2025R0.js +487 -0
  176. package/lib-esm/schemas/v2025R0/enterpriseConfigurationSecurityV2025R0.js.map +1 -0
  177. package/lib-esm/schemas/v2025R0/enterpriseConfigurationShieldV2025R0.d.ts +10 -0
  178. package/lib-esm/schemas/v2025R0/enterpriseConfigurationShieldV2025R0.js +41 -0
  179. package/lib-esm/schemas/v2025R0/enterpriseConfigurationShieldV2025R0.js.map +1 -0
  180. package/lib-esm/schemas/v2025R0/enterpriseConfigurationUserSettingsV2025R0.d.ts +36 -0
  181. package/lib-esm/schemas/v2025R0/enterpriseConfigurationUserSettingsV2025R0.js +227 -0
  182. package/lib-esm/schemas/v2025R0/enterpriseConfigurationUserSettingsV2025R0.js.map +1 -0
  183. package/lib-esm/schemas/v2025R0/enterpriseConfigurationV2025R0.d.ts +23 -0
  184. package/lib-esm/schemas/v2025R0/enterpriseConfigurationV2025R0.js +101 -0
  185. package/lib-esm/schemas/v2025R0/enterpriseConfigurationV2025R0.js.map +1 -0
  186. package/lib-esm/schemas/v2025R0/enterpriseFeatureSettingV2025R0.d.ts +36 -0
  187. package/lib-esm/schemas/v2025R0/enterpriseFeatureSettingV2025R0.js +119 -0
  188. package/lib-esm/schemas/v2025R0/enterpriseFeatureSettingV2025R0.js.map +1 -0
  189. package/lib-esm/schemas/v2025R0/enterpriseFeatureSettingsItemV2025R0.d.ts +8 -0
  190. package/lib-esm/schemas/v2025R0/enterpriseFeatureSettingsItemV2025R0.js +47 -0
  191. package/lib-esm/schemas/v2025R0/enterpriseFeatureSettingsItemV2025R0.js.map +1 -0
  192. package/lib-esm/schemas/v2025R0/externalCollabSecuritySettingsV2025R0.d.ts +31 -0
  193. package/lib-esm/schemas/v2025R0/externalCollabSecuritySettingsV2025R0.js +151 -0
  194. package/lib-esm/schemas/v2025R0/externalCollabSecuritySettingsV2025R0.js.map +1 -0
  195. package/lib-esm/schemas/v2025R0/hubItemReferenceV2025R0.js +2 -2
  196. package/lib-esm/schemas/v2025R0/hubItemReferenceV2025R0.js.map +1 -1
  197. package/lib-esm/schemas/v2025R0/index.d.ts +20 -0
  198. package/lib-esm/schemas/v2025R0/index.js +20 -0
  199. package/lib-esm/schemas/v2025R0/index.js.map +1 -1
  200. package/lib-esm/schemas/v2025R0/keysafeSettingsV2025R0.d.ts +27 -0
  201. package/lib-esm/schemas/v2025R0/keysafeSettingsV2025R0.js +78 -0
  202. package/lib-esm/schemas/v2025R0/keysafeSettingsV2025R0.js.map +1 -0
  203. package/lib-esm/schemas/v2025R0/listUserV2025R0.d.ts +15 -0
  204. package/lib-esm/schemas/v2025R0/listUserV2025R0.js +36 -0
  205. package/lib-esm/schemas/v2025R0/listUserV2025R0.js.map +1 -0
  206. package/lib-esm/schemas/v2025R0/sharedLinkPermissionsV2025R0.d.ts +18 -0
  207. package/lib-esm/schemas/v2025R0/sharedLinkPermissionsV2025R0.js +63 -0
  208. package/lib-esm/schemas/v2025R0/sharedLinkPermissionsV2025R0.js.map +1 -0
  209. package/lib-esm/schemas/v2025R0/shieldRuleItemV2025R0.d.ts +37 -0
  210. package/lib-esm/schemas/v2025R0/shieldRuleItemV2025R0.js +130 -0
  211. package/lib-esm/schemas/v2025R0/shieldRuleItemV2025R0.js.map +1 -0
  212. package/lib-esm/schemas/v2025R0/userOrGroupReferenceV2025R0.d.ts +15 -0
  213. package/lib-esm/schemas/v2025R0/userOrGroupReferenceV2025R0.js +49 -0
  214. package/lib-esm/schemas/v2025R0/userOrGroupReferenceV2025R0.js.map +1 -0
  215. package/lib-esm/schemas/v2025R0/userTrackingCodeV2025R0.d.ts +12 -0
  216. package/lib-esm/schemas/v2025R0/userTrackingCodeV2025R0.js +32 -0
  217. package/lib-esm/schemas/v2025R0/userTrackingCodeV2025R0.js.map +1 -0
  218. package/lib-esm/schemas/v2025R0/weblinkReferenceV2025R0.d.ts +3 -3
  219. package/lib-esm/schemas/v2025R0/weblinkReferenceV2025R0.js +3 -3
  220. package/lib-esm/schemas/v2025R0/weblinkReferenceV2025R0.js.map +1 -1
  221. package/package.json +1 -1
  222. package/src/box/errors.ts +2 -0
  223. package/src/client.ts +7 -0
  224. package/src/managers/archives.ts +202 -2
  225. package/src/managers/enterpriseConfigurations.ts +180 -0
  226. package/src/managers/index.ts +1 -0
  227. package/src/managers/users.ts +5 -5
  228. package/src/networking/boxNetworkClient.ts +12 -5
  229. package/src/networking/retries.ts +3 -1
  230. package/src/networking/version.ts +1 -1
  231. package/src/schemas/v2025R0/archiveV2025R0.ts +106 -2
  232. package/src/schemas/v2025R0/collaborationPermissionsV2025R0.ts +150 -0
  233. package/src/schemas/v2025R0/customSessionDurationGroupItemV2025R0.ts +46 -0
  234. package/src/schemas/v2025R0/enterpriseConfigurationContentAndSharingV2025R0.ts +1190 -0
  235. package/src/schemas/v2025R0/enterpriseConfigurationItemBooleanV2025R0.ts +58 -0
  236. package/src/schemas/v2025R0/enterpriseConfigurationItemIntegerV2025R0.ts +58 -0
  237. package/src/schemas/v2025R0/enterpriseConfigurationItemStringV2025R0.ts +56 -0
  238. package/src/schemas/v2025R0/enterpriseConfigurationItemV2025R0.ts +37 -0
  239. package/src/schemas/v2025R0/enterpriseConfigurationSecurityV2025R0.ts +848 -0
  240. package/src/schemas/v2025R0/enterpriseConfigurationShieldV2025R0.ts +59 -0
  241. package/src/schemas/v2025R0/enterpriseConfigurationUserSettingsV2025R0.ts +434 -0
  242. package/src/schemas/v2025R0/enterpriseConfigurationV2025R0.ts +155 -0
  243. package/src/schemas/v2025R0/enterpriseFeatureSettingV2025R0.ts +178 -0
  244. package/src/schemas/v2025R0/enterpriseFeatureSettingsItemV2025R0.ts +62 -0
  245. package/src/schemas/v2025R0/externalCollabSecuritySettingsV2025R0.ts +208 -0
  246. package/src/schemas/v2025R0/hubItemReferenceV2025R0.ts +2 -2
  247. package/src/schemas/v2025R0/index.ts +20 -0
  248. package/src/schemas/v2025R0/keysafeSettingsV2025R0.ts +117 -0
  249. package/src/schemas/v2025R0/listUserV2025R0.ts +49 -0
  250. package/src/schemas/v2025R0/sharedLinkPermissionsV2025R0.ts +98 -0
  251. package/src/schemas/v2025R0/shieldRuleItemV2025R0.ts +188 -0
  252. package/src/schemas/v2025R0/userOrGroupReferenceV2025R0.ts +68 -0
  253. package/src/schemas/v2025R0/userTrackingCodeV2025R0.ts +44 -0
  254. package/src/schemas/v2025R0/weblinkReferenceV2025R0.ts +5 -5
  255. package/src/test/archives.test.ts +25 -0
  256. package/src/test/enterpriseConfigurations.test.ts +86 -0
  257. package/src/test/events.test.ts +1 -1
  258. package/lib-esm/test/ai.test.d.ts +0 -3
  259. package/lib-esm/test/ai.test.js +0 -428
  260. package/lib-esm/test/ai.test.js.map +0 -1
  261. package/lib-esm/test/aiStudio.test.d.ts +0 -3
  262. package/lib-esm/test/aiStudio.test.js +0 -102
  263. package/lib-esm/test/aiStudio.test.js.map +0 -1
  264. package/lib-esm/test/appItemAssociations.test.d.ts +0 -1
  265. package/lib-esm/test/appItemAssociations.test.js +0 -70
  266. package/lib-esm/test/appItemAssociations.test.js.map +0 -1
  267. package/lib-esm/test/archives.test.d.ts +0 -4
  268. package/lib-esm/test/archives.test.js +0 -32
  269. package/lib-esm/test/archives.test.js.map +0 -1
  270. package/lib-esm/test/auth.test.d.ts +0 -3
  271. package/lib-esm/test/auth.test.js +0 -382
  272. package/lib-esm/test/auth.test.js.map +0 -1
  273. package/lib-esm/test/avatars.test.d.ts +0 -3
  274. package/lib-esm/test/avatars.test.js +0 -36
  275. package/lib-esm/test/avatars.test.js.map +0 -1
  276. package/lib-esm/test/chunkedUploads.test.d.ts +0 -22
  277. package/lib-esm/test/chunkedUploads.test.js +0 -247
  278. package/lib-esm/test/chunkedUploads.test.js.map +0 -1
  279. package/lib-esm/test/classifications.test.d.ts +0 -3
  280. package/lib-esm/test/classifications.test.js +0 -52
  281. package/lib-esm/test/classifications.test.js.map +0 -1
  282. package/lib-esm/test/client.test.d.ts +0 -46
  283. package/lib-esm/test/client.test.js +0 -310
  284. package/lib-esm/test/client.test.js.map +0 -1
  285. package/lib-esm/test/collaborationAllowlistEntries.test.d.ts +0 -3
  286. package/lib-esm/test/collaborationAllowlistEntries.test.js +0 -43
  287. package/lib-esm/test/collaborationAllowlistEntries.test.js.map +0 -1
  288. package/lib-esm/test/collaborationAllowlistExemptTargets.test.d.ts +0 -3
  289. package/lib-esm/test/collaborationAllowlistExemptTargets.test.js +0 -43
  290. package/lib-esm/test/collaborationAllowlistExemptTargets.test.js.map +0 -1
  291. package/lib-esm/test/collections.test.d.ts +0 -3
  292. package/lib-esm/test/collections.test.js +0 -40
  293. package/lib-esm/test/collections.test.js.map +0 -1
  294. package/lib-esm/test/comments.test.d.ts +0 -3
  295. package/lib-esm/test/comments.test.js +0 -78
  296. package/lib-esm/test/comments.test.js.map +0 -1
  297. package/lib-esm/test/commons.d.ts +0 -21
  298. package/lib-esm/test/commons.js +0 -161
  299. package/lib-esm/test/commons.js.map +0 -1
  300. package/lib-esm/test/devicePinners.test.d.ts +0 -3
  301. package/lib-esm/test/devicePinners.test.js +0 -29
  302. package/lib-esm/test/devicePinners.test.js.map +0 -1
  303. package/lib-esm/test/docgen.test.d.ts +0 -3
  304. package/lib-esm/test/docgen.test.js +0 -135
  305. package/lib-esm/test/docgen.test.js.map +0 -1
  306. package/lib-esm/test/docgenTemplate.test.d.ts +0 -3
  307. package/lib-esm/test/docgenTemplate.test.js +0 -29
  308. package/lib-esm/test/docgenTemplate.test.js.map +0 -1
  309. package/lib-esm/test/downloads.test.d.ts +0 -3
  310. package/lib-esm/test/downloads.test.js +0 -96
  311. package/lib-esm/test/downloads.test.js.map +0 -1
  312. package/lib-esm/test/emailAliases.test.d.ts +0 -3
  313. package/lib-esm/test/emailAliases.test.js +0 -34
  314. package/lib-esm/test/emailAliases.test.js.map +0 -1
  315. package/lib-esm/test/events.test.d.ts +0 -3
  316. package/lib-esm/test/events.test.js +0 -111
  317. package/lib-esm/test/events.test.js.map +0 -1
  318. package/lib-esm/test/externalUsers.test.d.ts +0 -3
  319. package/lib-esm/test/externalUsers.test.js +0 -35
  320. package/lib-esm/test/externalUsers.test.js.map +0 -1
  321. package/lib-esm/test/fileClassifications.test.d.ts +0 -6
  322. package/lib-esm/test/fileClassifications.test.js +0 -81
  323. package/lib-esm/test/fileClassifications.test.js.map +0 -1
  324. package/lib-esm/test/fileMetadata.test.d.ts +0 -3
  325. package/lib-esm/test/fileMetadata.test.js +0 -247
  326. package/lib-esm/test/fileMetadata.test.js.map +0 -1
  327. package/lib-esm/test/fileRequests.test.d.ts +0 -1
  328. package/lib-esm/test/fileRequests.test.js +0 -50
  329. package/lib-esm/test/fileRequests.test.js.map +0 -1
  330. package/lib-esm/test/fileVersionLegalHolds.test.d.ts +0 -3
  331. package/lib-esm/test/fileVersionLegalHolds.test.js +0 -22
  332. package/lib-esm/test/fileVersionLegalHolds.test.js.map +0 -1
  333. package/lib-esm/test/fileVersionRetentions.test.d.ts +0 -3
  334. package/lib-esm/test/fileVersionRetentions.test.js +0 -90
  335. package/lib-esm/test/fileVersionRetentions.test.js.map +0 -1
  336. package/lib-esm/test/fileVersions.test.d.ts +0 -3
  337. package/lib-esm/test/fileVersions.test.js +0 -144
  338. package/lib-esm/test/fileVersions.test.js.map +0 -1
  339. package/lib-esm/test/fileWatermarks.test.d.ts +0 -3
  340. package/lib-esm/test/fileWatermarks.test.js +0 -31
  341. package/lib-esm/test/fileWatermarks.test.js.map +0 -1
  342. package/lib-esm/test/files.test.d.ts +0 -6
  343. package/lib-esm/test/files.test.js +0 -144
  344. package/lib-esm/test/files.test.js.map +0 -1
  345. package/lib-esm/test/folderClassifications.test.d.ts +0 -6
  346. package/lib-esm/test/folderClassifications.test.js +0 -81
  347. package/lib-esm/test/folderClassifications.test.js.map +0 -1
  348. package/lib-esm/test/folderLocks.test.d.ts +0 -3
  349. package/lib-esm/test/folderLocks.test.js +0 -46
  350. package/lib-esm/test/folderLocks.test.js.map +0 -1
  351. package/lib-esm/test/folderMetadata.test.d.ts +0 -3
  352. package/lib-esm/test/folderMetadata.test.js +0 -247
  353. package/lib-esm/test/folderMetadata.test.js.map +0 -1
  354. package/lib-esm/test/folderWatermarks.test.d.ts +0 -3
  355. package/lib-esm/test/folderWatermarks.test.js +0 -26
  356. package/lib-esm/test/folderWatermarks.test.js.map +0 -1
  357. package/lib-esm/test/folders.test.d.ts +0 -3
  358. package/lib-esm/test/folders.test.js +0 -109
  359. package/lib-esm/test/folders.test.js.map +0 -1
  360. package/lib-esm/test/groups.test.d.ts +0 -3
  361. package/lib-esm/test/groups.test.js +0 -48
  362. package/lib-esm/test/groups.test.js.map +0 -1
  363. package/lib-esm/test/integrationMappings.test.d.ts +0 -3
  364. package/lib-esm/test/integrationMappings.test.js +0 -122
  365. package/lib-esm/test/integrationMappings.test.js.map +0 -1
  366. package/lib-esm/test/invites.test.d.ts +0 -1
  367. package/lib-esm/test/invites.test.js +0 -35
  368. package/lib-esm/test/invites.test.js.map +0 -1
  369. package/lib-esm/test/legalHoldPolicies.test.d.ts +0 -3
  370. package/lib-esm/test/legalHoldPolicies.test.js +0 -71
  371. package/lib-esm/test/legalHoldPolicies.test.js.map +0 -1
  372. package/lib-esm/test/legalHoldPolicyAssignments.test.d.ts +0 -3
  373. package/lib-esm/test/legalHoldPolicyAssignments.test.js +0 -69
  374. package/lib-esm/test/legalHoldPolicyAssignments.test.js.map +0 -1
  375. package/lib-esm/test/listCollaborations.test.d.ts +0 -1
  376. package/lib-esm/test/listCollaborations.test.js +0 -67
  377. package/lib-esm/test/listCollaborations.test.js.map +0 -1
  378. package/lib-esm/test/memberships.test.d.ts +0 -3
  379. package/lib-esm/test/memberships.test.js +0 -61
  380. package/lib-esm/test/memberships.test.js.map +0 -1
  381. package/lib-esm/test/metadataCascadePolicies.test.d.ts +0 -3
  382. package/lib-esm/test/metadataCascadePolicies.test.js +0 -80
  383. package/lib-esm/test/metadataCascadePolicies.test.js.map +0 -1
  384. package/lib-esm/test/metadataTemplates.test.d.ts +0 -3
  385. package/lib-esm/test/metadataTemplates.test.js +0 -185
  386. package/lib-esm/test/metadataTemplates.test.js.map +0 -1
  387. package/lib-esm/test/recentItems.test.d.ts +0 -1
  388. package/lib-esm/test/recentItems.test.js +0 -12
  389. package/lib-esm/test/recentItems.test.js.map +0 -1
  390. package/lib-esm/test/retentionPolicies.test.d.ts +0 -3
  391. package/lib-esm/test/retentionPolicies.test.js +0 -45
  392. package/lib-esm/test/retentionPolicies.test.js.map +0 -1
  393. package/lib-esm/test/retentionPolicyAssignments.test.d.ts +0 -3
  394. package/lib-esm/test/retentionPolicyAssignments.test.js +0 -75
  395. package/lib-esm/test/retentionPolicyAssignments.test.js.map +0 -1
  396. package/lib-esm/test/search.test.d.ts +0 -3
  397. package/lib-esm/test/search.test.js +0 -232
  398. package/lib-esm/test/search.test.js.map +0 -1
  399. package/lib-esm/test/sessionTermination.test.d.ts +0 -3
  400. package/lib-esm/test/sessionTermination.test.js +0 -35
  401. package/lib-esm/test/sessionTermination.test.js.map +0 -1
  402. package/lib-esm/test/sharedLinksAppItems.test.d.ts +0 -3
  403. package/lib-esm/test/sharedLinksAppItems.test.js +0 -20
  404. package/lib-esm/test/sharedLinksAppItems.test.js.map +0 -1
  405. package/lib-esm/test/sharedLinksFiles.test.d.ts +0 -3
  406. package/lib-esm/test/sharedLinksFiles.test.js +0 -63
  407. package/lib-esm/test/sharedLinksFiles.test.js.map +0 -1
  408. package/lib-esm/test/sharedLinksFolders.test.d.ts +0 -3
  409. package/lib-esm/test/sharedLinksFolders.test.js +0 -60
  410. package/lib-esm/test/sharedLinksFolders.test.js.map +0 -1
  411. package/lib-esm/test/sharedLinksWebLinks.test.d.ts +0 -3
  412. package/lib-esm/test/sharedLinksWebLinks.test.js +0 -64
  413. package/lib-esm/test/sharedLinksWebLinks.test.js.map +0 -1
  414. package/lib-esm/test/shieldInformationBarrierReports.test.d.ts +0 -1
  415. package/lib-esm/test/shieldInformationBarrierReports.test.js +0 -51
  416. package/lib-esm/test/shieldInformationBarrierReports.test.js.map +0 -1
  417. package/lib-esm/test/shieldInformationBarrierSegmentMembers.test.d.ts +0 -1
  418. package/lib-esm/test/shieldInformationBarrierSegmentMembers.test.js +0 -53
  419. package/lib-esm/test/shieldInformationBarrierSegmentMembers.test.js.map +0 -1
  420. package/lib-esm/test/shieldInformationBarrierSegmentRestrictions.test.d.ts +0 -1
  421. package/lib-esm/test/shieldInformationBarrierSegmentRestrictions.test.js +0 -71
  422. package/lib-esm/test/shieldInformationBarrierSegmentRestrictions.test.js.map +0 -1
  423. package/lib-esm/test/shieldInformationBarrierSegments.test.d.ts +0 -1
  424. package/lib-esm/test/shieldInformationBarrierSegments.test.js +0 -64
  425. package/lib-esm/test/shieldInformationBarrierSegments.test.js.map +0 -1
  426. package/lib-esm/test/shieldInformationBarriers.test.d.ts +0 -1
  427. package/lib-esm/test/shieldInformationBarriers.test.js +0 -39
  428. package/lib-esm/test/shieldInformationBarriers.test.js.map +0 -1
  429. package/lib-esm/test/shieldLists.test.d.ts +0 -4
  430. package/lib-esm/test/shieldLists.test.js +0 -78
  431. package/lib-esm/test/shieldLists.test.js.map +0 -1
  432. package/lib-esm/test/signRequests.test.d.ts +0 -3
  433. package/lib-esm/test/signRequests.test.js +0 -173
  434. package/lib-esm/test/signRequests.test.js.map +0 -1
  435. package/lib-esm/test/signTemplates.test.d.ts +0 -1
  436. package/lib-esm/test/signTemplates.test.js +0 -38
  437. package/lib-esm/test/signTemplates.test.js.map +0 -1
  438. package/lib-esm/test/skills.test.d.ts +0 -3
  439. package/lib-esm/test/skills.test.js +0 -90
  440. package/lib-esm/test/skills.test.js.map +0 -1
  441. package/lib-esm/test/storagePolicicyAssignments.test.d.ts +0 -5
  442. package/lib-esm/test/storagePolicicyAssignments.test.js +0 -74
  443. package/lib-esm/test/storagePolicicyAssignments.test.js.map +0 -1
  444. package/lib-esm/test/storagePolicies.test.d.ts +0 -2
  445. package/lib-esm/test/storagePolicies.test.js +0 -20
  446. package/lib-esm/test/storagePolicies.test.js.map +0 -1
  447. package/lib-esm/test/taskAssignments.test.d.ts +0 -3
  448. package/lib-esm/test/taskAssignments.test.js +0 -70
  449. package/lib-esm/test/taskAssignments.test.js.map +0 -1
  450. package/lib-esm/test/tasks.test.d.ts +0 -3
  451. package/lib-esm/test/tasks.test.js +0 -58
  452. package/lib-esm/test/tasks.test.js.map +0 -1
  453. package/lib-esm/test/termsOfServiceUserStatuses.test.d.ts +0 -1
  454. package/lib-esm/test/termsOfServiceUserStatuses.test.js +0 -62
  455. package/lib-esm/test/termsOfServiceUserStatuses.test.js.map +0 -1
  456. package/lib-esm/test/termsOfServices.test.d.ts +0 -3
  457. package/lib-esm/test/termsOfServices.test.js +0 -35
  458. package/lib-esm/test/termsOfServices.test.js.map +0 -1
  459. package/lib-esm/test/transfer.test.d.ts +0 -3
  460. package/lib-esm/test/transfer.test.js +0 -34
  461. package/lib-esm/test/transfer.test.js.map +0 -1
  462. package/lib-esm/test/trashedFiles.test.d.ts +0 -3
  463. package/lib-esm/test/trashedFiles.test.js +0 -50
  464. package/lib-esm/test/trashedFiles.test.js.map +0 -1
  465. package/lib-esm/test/trashedFolders.test.d.ts +0 -3
  466. package/lib-esm/test/trashedFolders.test.js +0 -37
  467. package/lib-esm/test/trashedFolders.test.js.map +0 -1
  468. package/lib-esm/test/trashedItems.test.d.ts +0 -3
  469. package/lib-esm/test/trashedItems.test.js +0 -15
  470. package/lib-esm/test/trashedItems.test.js.map +0 -1
  471. package/lib-esm/test/trashedWebLinks.test.d.ts +0 -3
  472. package/lib-esm/test/trashedWebLinks.test.js +0 -45
  473. package/lib-esm/test/trashedWebLinks.test.js.map +0 -1
  474. package/lib-esm/test/uploads.test.d.ts +0 -3
  475. package/lib-esm/test/uploads.test.js +0 -118
  476. package/lib-esm/test/uploads.test.js.map +0 -1
  477. package/lib-esm/test/userCollaborations.test.d.ts +0 -3
  478. package/lib-esm/test/userCollaborations.test.js +0 -146
  479. package/lib-esm/test/userCollaborations.test.js.map +0 -1
  480. package/lib-esm/test/users.test.d.ts +0 -3
  481. package/lib-esm/test/users.test.js +0 -44
  482. package/lib-esm/test/users.test.js.map +0 -1
  483. package/lib-esm/test/webhooks.test.d.ts +0 -3
  484. package/lib-esm/test/webhooks.test.js +0 -222
  485. package/lib-esm/test/webhooks.test.js.map +0 -1
  486. package/lib-esm/test/weblinks.test.d.ts +0 -3
  487. package/lib-esm/test/weblinks.test.js +0 -61
  488. package/lib-esm/test/weblinks.test.js.map +0 -1
  489. package/lib-esm/test/workflows.test.d.ts +0 -3
  490. package/lib-esm/test/workflows.test.js +0 -74
  491. package/lib-esm/test/workflows.test.js.map +0 -1
  492. package/lib-esm/test/zipDownloads.test.d.ts +0 -3
  493. package/lib-esm/test/zipDownloads.test.js +0 -97
  494. 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 + '>'
@@ -3484,6 +3484,8 @@
3484
3484
  super(fields);
3485
3485
  this.dataSanitizer = new DataSanitizer({});
3486
3486
  this.name = 'BoxApiError';
3487
+ this.requestInfo = fields.requestInfo;
3488
+ this.responseInfo = fields.responseInfo;
3487
3489
  if (fields.dataSanitizer) {
3488
3490
  this.dataSanitizer = fields.dataSanitizer;
3489
3491
  }
@@ -3588,7 +3590,7 @@
3588
3590
 
3589
3591
  var browser = {exports: {}};
3590
3592
 
3591
- (function (module, exports) {
3593
+ (function (module, exports$1) {
3592
3594
 
3593
3595
  // ref: https://github.com/tc39/proposal-global
3594
3596
  var getGlobal = function () {
@@ -3603,22 +3605,22 @@
3603
3605
 
3604
3606
  var globalObject = getGlobal();
3605
3607
 
3606
- module.exports = exports = globalObject.fetch;
3608
+ module.exports = exports$1 = globalObject.fetch;
3607
3609
 
3608
3610
  // Needed for TypeScript and Webpack.
3609
3611
  if (globalObject.fetch) {
3610
- exports.default = globalObject.fetch.bind(globalObject);
3612
+ exports$1.default = globalObject.fetch.bind(globalObject);
3611
3613
  }
3612
3614
 
3613
- exports.Headers = globalObject.Headers;
3614
- exports.Request = globalObject.Request;
3615
- exports.Response = globalObject.Response;
3615
+ exports$1.Headers = globalObject.Headers;
3616
+ exports$1.Request = globalObject.Request;
3617
+ exports$1.Response = globalObject.Response;
3616
3618
  } (browser, browser.exports));
3617
3619
 
3618
3620
  var browserExports = browser.exports;
3619
3621
  var nodeFetch = /*@__PURE__*/getDefaultExportFromCjs(browserExports);
3620
3622
 
3621
- const sdkVersion = '10.0.1';
3623
+ const sdkVersion = '10.1.0';
3622
3624
 
3623
3625
  class BoxRetryStrategy {
3624
3626
  constructor(fields) {
@@ -3651,7 +3653,9 @@
3651
3653
  return attemptNumber <= this.maxRetriesOnException;
3652
3654
  }
3653
3655
  const isSuccessful = fetchResponse.status >= 200 && fetchResponse.status < 400;
3654
- const retryAfterHeader = fetchResponse.headers['Retry-After'];
3656
+ const retryAfterHeader = 'Retry-After' in fetchResponse.headers
3657
+ ? fetchResponse.headers['Retry-After']
3658
+ : void 0;
3655
3659
  const isAcceptedWithRetryAfter = fetchResponse.status == 202 && !(retryAfterHeader == void 0);
3656
3660
  if (attemptNumber >= this.maxAttempts) {
3657
3661
  return false;
@@ -3794,6 +3798,7 @@
3794
3798
  let isExceptionCase = false;
3795
3799
  let fetchResponse;
3796
3800
  let responseBytesBuffer;
3801
+ let caughtError;
3797
3802
  const { params = {} } = fetchOptions;
3798
3803
  const requestInit = yield createRequestInit(Object.assign(Object.assign({}, fetchOptions), { fileStream: fileStreamBuffer
3799
3804
  ? generateByteStreamFromBuffer(fileStreamBuffer)
@@ -3836,10 +3841,8 @@
3836
3841
  catch (error) {
3837
3842
  isExceptionCase = true;
3838
3843
  numberOfRetriesOnException++;
3839
- fetchResponse = {
3840
- status: 0,
3841
- headers: {},
3842
- };
3844
+ caughtError = error instanceof Error ? error : new Error(String(error));
3845
+ fetchResponse = fetchResponse !== null && fetchResponse !== void 0 ? fetchResponse : { status: 0, headers: {} };
3843
3846
  }
3844
3847
  const attemptForRetry = isExceptionCase
3845
3848
  ? numberOfRetriesOnException
@@ -3880,6 +3883,13 @@
3880
3883
  sdToJson(fetchResponse.data['message']),
3881
3884
  ]
3882
3885
  : [];
3886
+ if (fetchResponse.status === 0) {
3887
+ throw new BoxSdkError({
3888
+ message: `Unexpected Error occurred`,
3889
+ timestamp: `${Date.now()}`,
3890
+ error: caughtError,
3891
+ });
3892
+ }
3883
3893
  throw new BoxApiError({
3884
3894
  message: `${fetchResponse.status} ${message}; Request ID: ${requestId}`,
3885
3895
  timestamp: `${Date.now()}`,
@@ -26032,9 +26042,9 @@
26032
26042
  });
26033
26043
  }
26034
26044
  /**
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
26045
+ * Deletes a user. By default, this operation fails if the user
26046
+ * still owns any content, was recently active, or recently joined the enterprise from a free account.
26047
+ * To proceed, move their owned content first, or use the `force` parameter to delete
26038
26048
  * the user and their files.
26039
26049
  * @param {string} userId The ID of the user.
26040
26050
  Example: "12345"
@@ -45430,6 +45440,1578 @@
45430
45440
  }
45431
45441
  }
45432
45442
 
45443
+ function deserializeEnterpriseConfigurationItemBooleanV2025R0(val) {
45444
+ if (!sdIsMap(val)) {
45445
+ throw new BoxSdkError({
45446
+ message: 'Expecting a map for "EnterpriseConfigurationItemBooleanV2025R0"',
45447
+ });
45448
+ }
45449
+ if (!(val.value == void 0) && !sdIsBoolean(val.value)) {
45450
+ throw new BoxSdkError({
45451
+ message: 'Expecting boolean for "value" of type "EnterpriseConfigurationItemBooleanV2025R0"',
45452
+ });
45453
+ }
45454
+ const value = val.value == void 0 ? void 0 : val.value;
45455
+ if (!(val.is_used == void 0) && !sdIsBoolean(val.is_used)) {
45456
+ throw new BoxSdkError({
45457
+ message: 'Expecting boolean for "is_used" of type "EnterpriseConfigurationItemBooleanV2025R0"',
45458
+ });
45459
+ }
45460
+ const isUsed = val.is_used == void 0 ? void 0 : val.is_used;
45461
+ return {
45462
+ value: value,
45463
+ isUsed: isUsed,
45464
+ };
45465
+ }
45466
+
45467
+ function deserializeEnterpriseConfigurationItemStringV2025R0(val) {
45468
+ if (!sdIsMap(val)) {
45469
+ throw new BoxSdkError({
45470
+ message: 'Expecting a map for "EnterpriseConfigurationItemStringV2025R0"',
45471
+ });
45472
+ }
45473
+ if (!(val.value == void 0) && !sdIsString(val.value)) {
45474
+ throw new BoxSdkError({
45475
+ message: 'Expecting string for "value" of type "EnterpriseConfigurationItemStringV2025R0"',
45476
+ });
45477
+ }
45478
+ const value = val.value == void 0 ? void 0 : val.value;
45479
+ if (!(val.is_used == void 0) && !sdIsBoolean(val.is_used)) {
45480
+ throw new BoxSdkError({
45481
+ message: 'Expecting boolean for "is_used" of type "EnterpriseConfigurationItemStringV2025R0"',
45482
+ });
45483
+ }
45484
+ const isUsed = val.is_used == void 0 ? void 0 : val.is_used;
45485
+ return {
45486
+ value: value,
45487
+ isUsed: isUsed,
45488
+ };
45489
+ }
45490
+
45491
+ function deserializeEnterpriseConfigurationItemIntegerV2025R0(val) {
45492
+ if (!sdIsMap(val)) {
45493
+ throw new BoxSdkError({
45494
+ message: 'Expecting a map for "EnterpriseConfigurationItemIntegerV2025R0"',
45495
+ });
45496
+ }
45497
+ if (!(val.value == void 0) && !sdIsNumber(val.value)) {
45498
+ throw new BoxSdkError({
45499
+ message: 'Expecting number for "value" of type "EnterpriseConfigurationItemIntegerV2025R0"',
45500
+ });
45501
+ }
45502
+ const value = val.value == void 0 ? void 0 : val.value;
45503
+ if (!(val.is_used == void 0) && !sdIsBoolean(val.is_used)) {
45504
+ throw new BoxSdkError({
45505
+ message: 'Expecting boolean for "is_used" of type "EnterpriseConfigurationItemIntegerV2025R0"',
45506
+ });
45507
+ }
45508
+ const isUsed = val.is_used == void 0 ? void 0 : val.is_used;
45509
+ return {
45510
+ value: value,
45511
+ isUsed: isUsed,
45512
+ };
45513
+ }
45514
+
45515
+ function deserializeExternalCollabSecuritySettingsV2025R0(val) {
45516
+ if (!sdIsMap(val)) {
45517
+ throw new BoxSdkError({
45518
+ message: 'Expecting a map for "ExternalCollabSecuritySettingsV2025R0"',
45519
+ });
45520
+ }
45521
+ if (!(val.denylist_domains == void 0) && !sdIsList(val.denylist_domains)) {
45522
+ throw new BoxSdkError({
45523
+ message: 'Expecting array for "denylist_domains" of type "ExternalCollabSecuritySettingsV2025R0"',
45524
+ });
45525
+ }
45526
+ const denylistDomains = val.denylist_domains == void 0
45527
+ ? void 0
45528
+ : sdIsList(val.denylist_domains)
45529
+ ? val.denylist_domains.map(function (itm) {
45530
+ if (!sdIsString(itm)) {
45531
+ throw new BoxSdkError({
45532
+ message: 'Expecting string for "ExternalCollabSecuritySettingsV2025R0"',
45533
+ });
45534
+ }
45535
+ return itm;
45536
+ })
45537
+ : [];
45538
+ if (!(val.denylist_emails == void 0) && !sdIsList(val.denylist_emails)) {
45539
+ throw new BoxSdkError({
45540
+ message: 'Expecting array for "denylist_emails" of type "ExternalCollabSecuritySettingsV2025R0"',
45541
+ });
45542
+ }
45543
+ const denylistEmails = val.denylist_emails == void 0
45544
+ ? void 0
45545
+ : sdIsList(val.denylist_emails)
45546
+ ? val.denylist_emails.map(function (itm) {
45547
+ if (!sdIsString(itm)) {
45548
+ throw new BoxSdkError({
45549
+ message: 'Expecting string for "ExternalCollabSecuritySettingsV2025R0"',
45550
+ });
45551
+ }
45552
+ return itm;
45553
+ })
45554
+ : [];
45555
+ if (!(val.allowlist_domains == void 0) && !sdIsList(val.allowlist_domains)) {
45556
+ throw new BoxSdkError({
45557
+ message: 'Expecting array for "allowlist_domains" of type "ExternalCollabSecuritySettingsV2025R0"',
45558
+ });
45559
+ }
45560
+ const allowlistDomains = val.allowlist_domains == void 0
45561
+ ? void 0
45562
+ : sdIsList(val.allowlist_domains)
45563
+ ? val.allowlist_domains.map(function (itm) {
45564
+ if (!sdIsString(itm)) {
45565
+ throw new BoxSdkError({
45566
+ message: 'Expecting string for "ExternalCollabSecuritySettingsV2025R0"',
45567
+ });
45568
+ }
45569
+ return itm;
45570
+ })
45571
+ : [];
45572
+ if (!(val.allowlist_emails == void 0) && !sdIsList(val.allowlist_emails)) {
45573
+ throw new BoxSdkError({
45574
+ message: 'Expecting array for "allowlist_emails" of type "ExternalCollabSecuritySettingsV2025R0"',
45575
+ });
45576
+ }
45577
+ const allowlistEmails = val.allowlist_emails == void 0
45578
+ ? void 0
45579
+ : sdIsList(val.allowlist_emails)
45580
+ ? val.allowlist_emails.map(function (itm) {
45581
+ if (!sdIsString(itm)) {
45582
+ throw new BoxSdkError({
45583
+ message: 'Expecting string for "ExternalCollabSecuritySettingsV2025R0"',
45584
+ });
45585
+ }
45586
+ return itm;
45587
+ })
45588
+ : [];
45589
+ if (!(val.state == void 0) && !sdIsString(val.state)) {
45590
+ throw new BoxSdkError({
45591
+ message: 'Expecting string for "state" of type "ExternalCollabSecuritySettingsV2025R0"',
45592
+ });
45593
+ }
45594
+ const state = val.state == void 0 ? void 0 : val.state;
45595
+ if (!(val.scheduled_status == void 0) && !sdIsString(val.scheduled_status)) {
45596
+ throw new BoxSdkError({
45597
+ message: 'Expecting string for "scheduled_status" of type "ExternalCollabSecuritySettingsV2025R0"',
45598
+ });
45599
+ }
45600
+ const scheduledStatus = val.scheduled_status == void 0 ? void 0 : val.scheduled_status;
45601
+ if (!(val.scheduled_at == void 0) && !sdIsString(val.scheduled_at)) {
45602
+ throw new BoxSdkError({
45603
+ message: 'Expecting string for "scheduled_at" of type "ExternalCollabSecuritySettingsV2025R0"',
45604
+ });
45605
+ }
45606
+ const scheduledAt = val.scheduled_at == void 0 ? void 0 : dateTimeFromString(val.scheduled_at);
45607
+ if (!(val.factor_type_settings == void 0) &&
45608
+ !sdIsString(val.factor_type_settings)) {
45609
+ throw new BoxSdkError({
45610
+ message: 'Expecting string for "factor_type_settings" of type "ExternalCollabSecuritySettingsV2025R0"',
45611
+ });
45612
+ }
45613
+ const factorTypeSettings = val.factor_type_settings == void 0 ? void 0 : val.factor_type_settings;
45614
+ return {
45615
+ denylistDomains: denylistDomains,
45616
+ denylistEmails: denylistEmails,
45617
+ allowlistDomains: allowlistDomains,
45618
+ allowlistEmails: allowlistEmails,
45619
+ state: state,
45620
+ scheduledStatus: scheduledStatus,
45621
+ scheduledAt: scheduledAt,
45622
+ factorTypeSettings: factorTypeSettings,
45623
+ };
45624
+ }
45625
+
45626
+ function deserializeKeysafeSettingsV2025R0(val) {
45627
+ if (!sdIsMap(val)) {
45628
+ throw new BoxSdkError({
45629
+ message: 'Expecting a map for "KeysafeSettingsV2025R0"',
45630
+ });
45631
+ }
45632
+ if (!(val.keysafe_enabled == void 0) && !sdIsBoolean(val.keysafe_enabled)) {
45633
+ throw new BoxSdkError({
45634
+ message: 'Expecting boolean for "keysafe_enabled" of type "KeysafeSettingsV2025R0"',
45635
+ });
45636
+ }
45637
+ const keysafeEnabled = val.keysafe_enabled == void 0 ? void 0 : val.keysafe_enabled;
45638
+ if (!(val.cloud_provider == void 0) && !sdIsString(val.cloud_provider)) {
45639
+ throw new BoxSdkError({
45640
+ message: 'Expecting string for "cloud_provider" of type "KeysafeSettingsV2025R0"',
45641
+ });
45642
+ }
45643
+ const cloudProvider = val.cloud_provider == void 0 ? void 0 : val.cloud_provider;
45644
+ if (!(val.key_id == void 0) && !sdIsString(val.key_id)) {
45645
+ throw new BoxSdkError({
45646
+ message: 'Expecting string for "key_id" of type "KeysafeSettingsV2025R0"',
45647
+ });
45648
+ }
45649
+ const keyId = val.key_id == void 0 ? void 0 : val.key_id;
45650
+ if (!(val.account_id == void 0) && !sdIsString(val.account_id)) {
45651
+ throw new BoxSdkError({
45652
+ message: 'Expecting string for "account_id" of type "KeysafeSettingsV2025R0"',
45653
+ });
45654
+ }
45655
+ const accountId = val.account_id == void 0 ? void 0 : val.account_id;
45656
+ if (!(val.location_id == void 0) && !sdIsString(val.location_id)) {
45657
+ throw new BoxSdkError({
45658
+ message: 'Expecting string for "location_id" of type "KeysafeSettingsV2025R0"',
45659
+ });
45660
+ }
45661
+ const locationId = val.location_id == void 0 ? void 0 : val.location_id;
45662
+ if (!(val.project_id == void 0) && !sdIsString(val.project_id)) {
45663
+ throw new BoxSdkError({
45664
+ message: 'Expecting string for "project_id" of type "KeysafeSettingsV2025R0"',
45665
+ });
45666
+ }
45667
+ const projectId = val.project_id == void 0 ? void 0 : val.project_id;
45668
+ if (!(val.keyring_id == void 0) && !sdIsString(val.keyring_id)) {
45669
+ throw new BoxSdkError({
45670
+ message: 'Expecting string for "keyring_id" of type "KeysafeSettingsV2025R0"',
45671
+ });
45672
+ }
45673
+ const keyringId = val.keyring_id == void 0 ? void 0 : val.keyring_id;
45674
+ return {
45675
+ keysafeEnabled: keysafeEnabled,
45676
+ cloudProvider: cloudProvider,
45677
+ keyId: keyId,
45678
+ accountId: accountId,
45679
+ locationId: locationId,
45680
+ projectId: projectId,
45681
+ keyringId: keyringId,
45682
+ };
45683
+ }
45684
+
45685
+ function deserializeCustomSessionDurationGroupItemV2025R0(val) {
45686
+ if (!sdIsMap(val)) {
45687
+ throw new BoxSdkError({
45688
+ message: 'Expecting a map for "CustomSessionDurationGroupItemV2025R0"',
45689
+ });
45690
+ }
45691
+ if (!(val.id == void 0) && !sdIsString(val.id)) {
45692
+ throw new BoxSdkError({
45693
+ message: 'Expecting string for "id" of type "CustomSessionDurationGroupItemV2025R0"',
45694
+ });
45695
+ }
45696
+ const id = val.id == void 0 ? void 0 : val.id;
45697
+ if (!(val.name == void 0) && !sdIsString(val.name)) {
45698
+ throw new BoxSdkError({
45699
+ message: 'Expecting string for "name" of type "CustomSessionDurationGroupItemV2025R0"',
45700
+ });
45701
+ }
45702
+ const name = val.name == void 0 ? void 0 : val.name;
45703
+ return { id: id, name: name };
45704
+ }
45705
+
45706
+ function deserializeEnterpriseConfigurationSecurityV2025R0LastPasswordResetAtField(val) {
45707
+ if (!sdIsMap(val)) {
45708
+ throw new BoxSdkError({
45709
+ message: 'Expecting a map for "EnterpriseConfigurationSecurityV2025R0LastPasswordResetAtField"',
45710
+ });
45711
+ }
45712
+ if (!(val.value == void 0) && !sdIsString(val.value)) {
45713
+ throw new BoxSdkError({
45714
+ message: 'Expecting string for "value" of type "EnterpriseConfigurationSecurityV2025R0LastPasswordResetAtField"',
45715
+ });
45716
+ }
45717
+ const value = val.value == void 0 ? void 0 : dateTimeFromString(val.value);
45718
+ if (!(val.is_used == void 0) && !sdIsBoolean(val.is_used)) {
45719
+ throw new BoxSdkError({
45720
+ message: 'Expecting boolean for "is_used" of type "EnterpriseConfigurationSecurityV2025R0LastPasswordResetAtField"',
45721
+ });
45722
+ }
45723
+ const isUsed = val.is_used == void 0 ? void 0 : val.is_used;
45724
+ return {
45725
+ value: value,
45726
+ isUsed: isUsed,
45727
+ };
45728
+ }
45729
+ function deserializeEnterpriseConfigurationSecurityV2025R0ExternalCollabMultiFactorAuthSettingsField(val) {
45730
+ if (!sdIsMap(val)) {
45731
+ throw new BoxSdkError({
45732
+ message: 'Expecting a map for "EnterpriseConfigurationSecurityV2025R0ExternalCollabMultiFactorAuthSettingsField"',
45733
+ });
45734
+ }
45735
+ const value = val.value == void 0
45736
+ ? void 0
45737
+ : val.value == void 0
45738
+ ? void 0
45739
+ : deserializeExternalCollabSecuritySettingsV2025R0(val.value);
45740
+ if (!(val.is_used == void 0) && !sdIsBoolean(val.is_used)) {
45741
+ throw new BoxSdkError({
45742
+ message: 'Expecting boolean for "is_used" of type "EnterpriseConfigurationSecurityV2025R0ExternalCollabMultiFactorAuthSettingsField"',
45743
+ });
45744
+ }
45745
+ const isUsed = val.is_used == void 0 ? void 0 : val.is_used;
45746
+ return {
45747
+ value: value,
45748
+ isUsed: isUsed,
45749
+ };
45750
+ }
45751
+ function deserializeEnterpriseConfigurationSecurityV2025R0KeysafeField(val) {
45752
+ if (!sdIsMap(val)) {
45753
+ throw new BoxSdkError({
45754
+ message: 'Expecting a map for "EnterpriseConfigurationSecurityV2025R0KeysafeField"',
45755
+ });
45756
+ }
45757
+ const value = val.value == void 0
45758
+ ? void 0
45759
+ : val.value == void 0
45760
+ ? void 0
45761
+ : deserializeKeysafeSettingsV2025R0(val.value);
45762
+ if (!(val.is_used == void 0) && !sdIsBoolean(val.is_used)) {
45763
+ throw new BoxSdkError({
45764
+ message: 'Expecting boolean for "is_used" of type "EnterpriseConfigurationSecurityV2025R0KeysafeField"',
45765
+ });
45766
+ }
45767
+ const isUsed = val.is_used == void 0 ? void 0 : val.is_used;
45768
+ return {
45769
+ value: value,
45770
+ isUsed: isUsed,
45771
+ };
45772
+ }
45773
+ function deserializeEnterpriseConfigurationSecurityV2025R0CustomSessionDurationGroupsField(val) {
45774
+ if (!sdIsMap(val)) {
45775
+ throw new BoxSdkError({
45776
+ message: 'Expecting a map for "EnterpriseConfigurationSecurityV2025R0CustomSessionDurationGroupsField"',
45777
+ });
45778
+ }
45779
+ if (!(val.value == void 0) && !sdIsList(val.value)) {
45780
+ throw new BoxSdkError({
45781
+ message: 'Expecting array for "value" of type "EnterpriseConfigurationSecurityV2025R0CustomSessionDurationGroupsField"',
45782
+ });
45783
+ }
45784
+ const value = val.value == void 0
45785
+ ? void 0
45786
+ : sdIsList(val.value)
45787
+ ? val.value.map(function (itm) {
45788
+ return deserializeCustomSessionDurationGroupItemV2025R0(itm);
45789
+ })
45790
+ : [];
45791
+ if (!(val.is_used == void 0) && !sdIsBoolean(val.is_used)) {
45792
+ throw new BoxSdkError({
45793
+ message: 'Expecting boolean for "is_used" of type "EnterpriseConfigurationSecurityV2025R0CustomSessionDurationGroupsField"',
45794
+ });
45795
+ }
45796
+ const isUsed = val.is_used == void 0 ? void 0 : val.is_used;
45797
+ return {
45798
+ value: value,
45799
+ isUsed: isUsed,
45800
+ };
45801
+ }
45802
+ function deserializeEnterpriseConfigurationSecurityV2025R0EnforcedMfaFrequencyFieldValueField(val) {
45803
+ if (!sdIsMap(val)) {
45804
+ throw new BoxSdkError({
45805
+ message: 'Expecting a map for "EnterpriseConfigurationSecurityV2025R0EnforcedMfaFrequencyFieldValueField"',
45806
+ });
45807
+ }
45808
+ if (!(val.days == void 0) && !sdIsNumber(val.days)) {
45809
+ throw new BoxSdkError({
45810
+ message: 'Expecting number for "days" of type "EnterpriseConfigurationSecurityV2025R0EnforcedMfaFrequencyFieldValueField"',
45811
+ });
45812
+ }
45813
+ const days = val.days == void 0 ? void 0 : val.days;
45814
+ if (!(val.hours == void 0) && !sdIsNumber(val.hours)) {
45815
+ throw new BoxSdkError({
45816
+ message: 'Expecting number for "hours" of type "EnterpriseConfigurationSecurityV2025R0EnforcedMfaFrequencyFieldValueField"',
45817
+ });
45818
+ }
45819
+ const hours = val.hours == void 0 ? void 0 : val.hours;
45820
+ return {
45821
+ days: days,
45822
+ hours: hours,
45823
+ };
45824
+ }
45825
+ function deserializeEnterpriseConfigurationSecurityV2025R0EnforcedMfaFrequencyField(val) {
45826
+ if (!sdIsMap(val)) {
45827
+ throw new BoxSdkError({
45828
+ message: 'Expecting a map for "EnterpriseConfigurationSecurityV2025R0EnforcedMfaFrequencyField"',
45829
+ });
45830
+ }
45831
+ const value = val.value == void 0
45832
+ ? void 0
45833
+ : deserializeEnterpriseConfigurationSecurityV2025R0EnforcedMfaFrequencyFieldValueField(val.value);
45834
+ if (!(val.is_used == void 0) && !sdIsBoolean(val.is_used)) {
45835
+ throw new BoxSdkError({
45836
+ message: 'Expecting boolean for "is_used" of type "EnterpriseConfigurationSecurityV2025R0EnforcedMfaFrequencyField"',
45837
+ });
45838
+ }
45839
+ const isUsed = val.is_used == void 0 ? void 0 : val.is_used;
45840
+ return {
45841
+ value: value,
45842
+ isUsed: isUsed,
45843
+ };
45844
+ }
45845
+ function deserializeEnterpriseConfigurationSecurityV2025R0(val) {
45846
+ if (!sdIsMap(val)) {
45847
+ throw new BoxSdkError({
45848
+ message: 'Expecting a map for "EnterpriseConfigurationSecurityV2025R0"',
45849
+ });
45850
+ }
45851
+ const isManagedUserSignupEnabled = val.is_managed_user_signup_enabled == void 0
45852
+ ? void 0
45853
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_managed_user_signup_enabled);
45854
+ const isManagedUserSignupNotificationEnabled = val.is_managed_user_signup_notification_enabled == void 0
45855
+ ? void 0
45856
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_managed_user_signup_notification_enabled);
45857
+ const isManagedUserSignupCorporateEmailEnabled = val.is_managed_user_signup_corporate_email_enabled == void 0
45858
+ ? void 0
45859
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_managed_user_signup_corporate_email_enabled);
45860
+ const isNewUserNotificationDailyDigestEnabled = val.is_new_user_notification_daily_digest_enabled == void 0
45861
+ ? void 0
45862
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_new_user_notification_daily_digest_enabled);
45863
+ const isManagedUserEmailChangeDisabled = val.is_managed_user_email_change_disabled == void 0
45864
+ ? void 0
45865
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_managed_user_email_change_disabled);
45866
+ const isMultiFactorAuthRequired = val.is_multi_factor_auth_required == void 0
45867
+ ? void 0
45868
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_multi_factor_auth_required);
45869
+ const isWeakPasswordPreventionEnabled = val.is_weak_password_prevention_enabled == void 0
45870
+ ? void 0
45871
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_weak_password_prevention_enabled);
45872
+ const isPasswordLeakDetectionEnabled = val.is_password_leak_detection_enabled == void 0
45873
+ ? void 0
45874
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_password_leak_detection_enabled);
45875
+ const lastPasswordResetAt = val.last_password_reset_at == void 0
45876
+ ? void 0
45877
+ : deserializeEnterpriseConfigurationSecurityV2025R0LastPasswordResetAtField(val.last_password_reset_at);
45878
+ const isPasswordRequestNotificationEnabled = val.is_password_request_notification_enabled == void 0
45879
+ ? void 0
45880
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_password_request_notification_enabled);
45881
+ const isPasswordChangeNotificationEnabled = val.is_password_change_notification_enabled == void 0
45882
+ ? void 0
45883
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_password_change_notification_enabled);
45884
+ const isStrongPasswordForExtCollabEnabled = val.is_strong_password_for_ext_collab_enabled == void 0
45885
+ ? void 0
45886
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_strong_password_for_ext_collab_enabled);
45887
+ const isManagedUserMigrationDisabled = val.is_managed_user_migration_disabled == void 0
45888
+ ? void 0
45889
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_managed_user_migration_disabled);
45890
+ const joinLink = val.join_link == void 0
45891
+ ? void 0
45892
+ : deserializeEnterpriseConfigurationItemStringV2025R0(val.join_link);
45893
+ const joinUrl = val.join_url == void 0
45894
+ ? void 0
45895
+ : deserializeEnterpriseConfigurationItemStringV2025R0(val.join_url);
45896
+ const failedLoginAttemptsToTriggerAdminNotification = val.failed_login_attempts_to_trigger_admin_notification == void 0
45897
+ ? void 0
45898
+ : deserializeEnterpriseConfigurationItemIntegerV2025R0(val.failed_login_attempts_to_trigger_admin_notification);
45899
+ const passwordMinLength = val.password_min_length == void 0
45900
+ ? void 0
45901
+ : deserializeEnterpriseConfigurationItemIntegerV2025R0(val.password_min_length);
45902
+ const passwordMinUppercaseCharacters = val.password_min_uppercase_characters == void 0
45903
+ ? void 0
45904
+ : deserializeEnterpriseConfigurationItemIntegerV2025R0(val.password_min_uppercase_characters);
45905
+ const passwordMinNumericCharacters = val.password_min_numeric_characters == void 0
45906
+ ? void 0
45907
+ : deserializeEnterpriseConfigurationItemIntegerV2025R0(val.password_min_numeric_characters);
45908
+ const passwordMinSpecialCharacters = val.password_min_special_characters == void 0
45909
+ ? void 0
45910
+ : deserializeEnterpriseConfigurationItemIntegerV2025R0(val.password_min_special_characters);
45911
+ const passwordResetFrequency = val.password_reset_frequency == void 0
45912
+ ? void 0
45913
+ : deserializeEnterpriseConfigurationItemStringV2025R0(val.password_reset_frequency);
45914
+ const previousPasswordReuseLimit = val.previous_password_reuse_limit == void 0
45915
+ ? void 0
45916
+ : deserializeEnterpriseConfigurationItemStringV2025R0(val.previous_password_reuse_limit);
45917
+ const sessionDuration = val.session_duration == void 0
45918
+ ? void 0
45919
+ : deserializeEnterpriseConfigurationItemStringV2025R0(val.session_duration);
45920
+ const externalCollabMultiFactorAuthSettings = val.external_collab_multi_factor_auth_settings == void 0
45921
+ ? void 0
45922
+ : deserializeEnterpriseConfigurationSecurityV2025R0ExternalCollabMultiFactorAuthSettingsField(val.external_collab_multi_factor_auth_settings);
45923
+ const keysafe = val.keysafe == void 0
45924
+ ? void 0
45925
+ : deserializeEnterpriseConfigurationSecurityV2025R0KeysafeField(val.keysafe);
45926
+ const isCustomSessionDurationEnabled = val.is_custom_session_duration_enabled == void 0
45927
+ ? void 0
45928
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_custom_session_duration_enabled);
45929
+ const customSessionDurationValue = val.custom_session_duration_value == void 0
45930
+ ? void 0
45931
+ : deserializeEnterpriseConfigurationItemStringV2025R0(val.custom_session_duration_value);
45932
+ const customSessionDurationGroups = val.custom_session_duration_groups == void 0
45933
+ ? void 0
45934
+ : deserializeEnterpriseConfigurationSecurityV2025R0CustomSessionDurationGroupsField(val.custom_session_duration_groups);
45935
+ const multiFactorAuthType = val.multi_factor_auth_type == void 0
45936
+ ? void 0
45937
+ : deserializeEnterpriseConfigurationItemStringV2025R0(val.multi_factor_auth_type);
45938
+ const enforcedMfaFrequency = val.enforced_mfa_frequency == void 0
45939
+ ? void 0
45940
+ : deserializeEnterpriseConfigurationSecurityV2025R0EnforcedMfaFrequencyField(val.enforced_mfa_frequency);
45941
+ return {
45942
+ isManagedUserSignupEnabled: isManagedUserSignupEnabled,
45943
+ isManagedUserSignupNotificationEnabled: isManagedUserSignupNotificationEnabled,
45944
+ isManagedUserSignupCorporateEmailEnabled: isManagedUserSignupCorporateEmailEnabled,
45945
+ isNewUserNotificationDailyDigestEnabled: isNewUserNotificationDailyDigestEnabled,
45946
+ isManagedUserEmailChangeDisabled: isManagedUserEmailChangeDisabled,
45947
+ isMultiFactorAuthRequired: isMultiFactorAuthRequired,
45948
+ isWeakPasswordPreventionEnabled: isWeakPasswordPreventionEnabled,
45949
+ isPasswordLeakDetectionEnabled: isPasswordLeakDetectionEnabled,
45950
+ lastPasswordResetAt: lastPasswordResetAt,
45951
+ isPasswordRequestNotificationEnabled: isPasswordRequestNotificationEnabled,
45952
+ isPasswordChangeNotificationEnabled: isPasswordChangeNotificationEnabled,
45953
+ isStrongPasswordForExtCollabEnabled: isStrongPasswordForExtCollabEnabled,
45954
+ isManagedUserMigrationDisabled: isManagedUserMigrationDisabled,
45955
+ joinLink: joinLink,
45956
+ joinUrl: joinUrl,
45957
+ failedLoginAttemptsToTriggerAdminNotification: failedLoginAttemptsToTriggerAdminNotification,
45958
+ passwordMinLength: passwordMinLength,
45959
+ passwordMinUppercaseCharacters: passwordMinUppercaseCharacters,
45960
+ passwordMinNumericCharacters: passwordMinNumericCharacters,
45961
+ passwordMinSpecialCharacters: passwordMinSpecialCharacters,
45962
+ passwordResetFrequency: passwordResetFrequency,
45963
+ previousPasswordReuseLimit: previousPasswordReuseLimit,
45964
+ sessionDuration: sessionDuration,
45965
+ externalCollabMultiFactorAuthSettings: externalCollabMultiFactorAuthSettings,
45966
+ keysafe: keysafe,
45967
+ isCustomSessionDurationEnabled: isCustomSessionDurationEnabled,
45968
+ customSessionDurationValue: customSessionDurationValue,
45969
+ customSessionDurationGroups: customSessionDurationGroups,
45970
+ multiFactorAuthType: multiFactorAuthType,
45971
+ enforcedMfaFrequency: enforcedMfaFrequency,
45972
+ };
45973
+ }
45974
+
45975
+ function deserializeUserOrGroupReferenceV2025R0TypeField(val) {
45976
+ if (val == 'user') {
45977
+ return val;
45978
+ }
45979
+ if (val == 'group') {
45980
+ return val;
45981
+ }
45982
+ throw new BoxSdkError({
45983
+ message: "Can't deserialize UserOrGroupReferenceV2025R0TypeField",
45984
+ });
45985
+ }
45986
+ function deserializeUserOrGroupReferenceV2025R0(val) {
45987
+ if (!sdIsMap(val)) {
45988
+ throw new BoxSdkError({
45989
+ message: 'Expecting a map for "UserOrGroupReferenceV2025R0"',
45990
+ });
45991
+ }
45992
+ const type = val.type == void 0
45993
+ ? void 0
45994
+ : deserializeUserOrGroupReferenceV2025R0TypeField(val.type);
45995
+ if (!(val.id == void 0) && !sdIsString(val.id)) {
45996
+ throw new BoxSdkError({
45997
+ message: 'Expecting string for "id" of type "UserOrGroupReferenceV2025R0"',
45998
+ });
45999
+ }
46000
+ const id = val.id == void 0 ? void 0 : val.id;
46001
+ return { type: type, id: id };
46002
+ }
46003
+
46004
+ function deserializeEnterpriseFeatureSettingV2025R0FeatureField(val) {
46005
+ if (!sdIsMap(val)) {
46006
+ throw new BoxSdkError({
46007
+ message: 'Expecting a map for "EnterpriseFeatureSettingV2025R0FeatureField"',
46008
+ });
46009
+ }
46010
+ if (!(val.id == void 0) && !sdIsString(val.id)) {
46011
+ throw new BoxSdkError({
46012
+ message: 'Expecting string for "id" of type "EnterpriseFeatureSettingV2025R0FeatureField"',
46013
+ });
46014
+ }
46015
+ const id = val.id == void 0 ? void 0 : val.id;
46016
+ return { id: id };
46017
+ }
46018
+ function deserializeEnterpriseFeatureSettingV2025R0(val) {
46019
+ if (!sdIsMap(val)) {
46020
+ throw new BoxSdkError({
46021
+ message: 'Expecting a map for "EnterpriseFeatureSettingV2025R0"',
46022
+ });
46023
+ }
46024
+ if (!(val.id == void 0) && !sdIsString(val.id)) {
46025
+ throw new BoxSdkError({
46026
+ message: 'Expecting string for "id" of type "EnterpriseFeatureSettingV2025R0"',
46027
+ });
46028
+ }
46029
+ const id = val.id == void 0 ? void 0 : val.id;
46030
+ const feature = val.feature == void 0
46031
+ ? void 0
46032
+ : deserializeEnterpriseFeatureSettingV2025R0FeatureField(val.feature);
46033
+ if (!(val.state == void 0) && !sdIsString(val.state)) {
46034
+ throw new BoxSdkError({
46035
+ message: 'Expecting string for "state" of type "EnterpriseFeatureSettingV2025R0"',
46036
+ });
46037
+ }
46038
+ const state = val.state == void 0 ? void 0 : val.state;
46039
+ if (!(val.can_configure == void 0) && !sdIsBoolean(val.can_configure)) {
46040
+ throw new BoxSdkError({
46041
+ message: 'Expecting boolean for "can_configure" of type "EnterpriseFeatureSettingV2025R0"',
46042
+ });
46043
+ }
46044
+ const canConfigure = val.can_configure == void 0 ? void 0 : val.can_configure;
46045
+ if (!(val.is_configured == void 0) && !sdIsBoolean(val.is_configured)) {
46046
+ throw new BoxSdkError({
46047
+ message: 'Expecting boolean for "is_configured" of type "EnterpriseFeatureSettingV2025R0"',
46048
+ });
46049
+ }
46050
+ const isConfigured = val.is_configured == void 0 ? void 0 : val.is_configured;
46051
+ if (!(val.allowlist == void 0) && !sdIsList(val.allowlist)) {
46052
+ throw new BoxSdkError({
46053
+ message: 'Expecting array for "allowlist" of type "EnterpriseFeatureSettingV2025R0"',
46054
+ });
46055
+ }
46056
+ const allowlist = val.allowlist == void 0
46057
+ ? void 0
46058
+ : sdIsList(val.allowlist)
46059
+ ? val.allowlist.map(function (itm) {
46060
+ return deserializeUserOrGroupReferenceV2025R0(itm);
46061
+ })
46062
+ : [];
46063
+ if (!(val.denylist == void 0) && !sdIsList(val.denylist)) {
46064
+ throw new BoxSdkError({
46065
+ message: 'Expecting array for "denylist" of type "EnterpriseFeatureSettingV2025R0"',
46066
+ });
46067
+ }
46068
+ const denylist = val.denylist == void 0
46069
+ ? void 0
46070
+ : sdIsList(val.denylist)
46071
+ ? val.denylist.map(function (itm) {
46072
+ return deserializeUserOrGroupReferenceV2025R0(itm);
46073
+ })
46074
+ : [];
46075
+ return {
46076
+ id: id,
46077
+ feature: feature,
46078
+ state: state,
46079
+ canConfigure: canConfigure,
46080
+ isConfigured: isConfigured,
46081
+ allowlist: allowlist,
46082
+ denylist: denylist,
46083
+ };
46084
+ }
46085
+
46086
+ function deserializeEnterpriseFeatureSettingsItemV2025R0(val) {
46087
+ if (!sdIsMap(val)) {
46088
+ throw new BoxSdkError({
46089
+ message: 'Expecting a map for "EnterpriseFeatureSettingsItemV2025R0"',
46090
+ });
46091
+ }
46092
+ const value = val.value == void 0
46093
+ ? void 0
46094
+ : deserializeEnterpriseFeatureSettingV2025R0(val.value);
46095
+ if (!(val.is_used == void 0) && !sdIsBoolean(val.is_used)) {
46096
+ throw new BoxSdkError({
46097
+ message: 'Expecting boolean for "is_used" of type "EnterpriseFeatureSettingsItemV2025R0"',
46098
+ });
46099
+ }
46100
+ const isUsed = val.is_used == void 0 ? void 0 : val.is_used;
46101
+ return {
46102
+ value: value,
46103
+ isUsed: isUsed,
46104
+ };
46105
+ }
46106
+
46107
+ function deserializeSharedLinkPermissionsV2025R0(val) {
46108
+ if (!sdIsMap(val)) {
46109
+ throw new BoxSdkError({
46110
+ message: 'Expecting a map for "SharedLinkPermissionsV2025R0"',
46111
+ });
46112
+ }
46113
+ if (!(val.shared_links_option == void 0) &&
46114
+ !sdIsString(val.shared_links_option)) {
46115
+ throw new BoxSdkError({
46116
+ message: 'Expecting string for "shared_links_option" of type "SharedLinkPermissionsV2025R0"',
46117
+ });
46118
+ }
46119
+ const sharedLinksOption = val.shared_links_option == void 0 ? void 0 : val.shared_links_option;
46120
+ if (!(val.default_shared_link_type == void 0) &&
46121
+ !sdIsString(val.default_shared_link_type)) {
46122
+ throw new BoxSdkError({
46123
+ message: 'Expecting string for "default_shared_link_type" of type "SharedLinkPermissionsV2025R0"',
46124
+ });
46125
+ }
46126
+ const defaultSharedLinkType = val.default_shared_link_type == void 0
46127
+ ? void 0
46128
+ : val.default_shared_link_type;
46129
+ if (!(val.notes_shared_link_option == void 0) &&
46130
+ !sdIsString(val.notes_shared_link_option)) {
46131
+ throw new BoxSdkError({
46132
+ message: 'Expecting string for "notes_shared_link_option" of type "SharedLinkPermissionsV2025R0"',
46133
+ });
46134
+ }
46135
+ const notesSharedLinkOption = val.notes_shared_link_option == void 0
46136
+ ? void 0
46137
+ : val.notes_shared_link_option;
46138
+ if (!(val.default_notes_shared_link_type == void 0) &&
46139
+ !sdIsString(val.default_notes_shared_link_type)) {
46140
+ throw new BoxSdkError({
46141
+ message: 'Expecting string for "default_notes_shared_link_type" of type "SharedLinkPermissionsV2025R0"',
46142
+ });
46143
+ }
46144
+ const defaultNotesSharedLinkType = val.default_notes_shared_link_type == void 0
46145
+ ? void 0
46146
+ : val.default_notes_shared_link_type;
46147
+ return {
46148
+ sharedLinksOption: sharedLinksOption,
46149
+ defaultSharedLinkType: defaultSharedLinkType,
46150
+ notesSharedLinkOption: notesSharedLinkOption,
46151
+ defaultNotesSharedLinkType: defaultNotesSharedLinkType,
46152
+ };
46153
+ }
46154
+
46155
+ function deserializeCollaborationPermissionsV2025R0(val) {
46156
+ if (!sdIsMap(val)) {
46157
+ throw new BoxSdkError({
46158
+ message: 'Expecting a map for "CollaborationPermissionsV2025R0"',
46159
+ });
46160
+ }
46161
+ if (!(val.is_co_owner_role_enabled == void 0) &&
46162
+ !sdIsBoolean(val.is_co_owner_role_enabled)) {
46163
+ throw new BoxSdkError({
46164
+ message: 'Expecting boolean for "is_co_owner_role_enabled" of type "CollaborationPermissionsV2025R0"',
46165
+ });
46166
+ }
46167
+ const isCoOwnerRoleEnabled = val.is_co_owner_role_enabled == void 0
46168
+ ? void 0
46169
+ : val.is_co_owner_role_enabled;
46170
+ if (!(val.is_editor_role_enabled == void 0) &&
46171
+ !sdIsBoolean(val.is_editor_role_enabled)) {
46172
+ throw new BoxSdkError({
46173
+ message: 'Expecting boolean for "is_editor_role_enabled" of type "CollaborationPermissionsV2025R0"',
46174
+ });
46175
+ }
46176
+ const isEditorRoleEnabled = val.is_editor_role_enabled == void 0 ? void 0 : val.is_editor_role_enabled;
46177
+ if (!(val.is_previewer_role_enabled == void 0) &&
46178
+ !sdIsBoolean(val.is_previewer_role_enabled)) {
46179
+ throw new BoxSdkError({
46180
+ message: 'Expecting boolean for "is_previewer_role_enabled" of type "CollaborationPermissionsV2025R0"',
46181
+ });
46182
+ }
46183
+ const isPreviewerRoleEnabled = val.is_previewer_role_enabled == void 0
46184
+ ? void 0
46185
+ : val.is_previewer_role_enabled;
46186
+ if (!(val.is_previewer_uploader_role_enabled == void 0) &&
46187
+ !sdIsBoolean(val.is_previewer_uploader_role_enabled)) {
46188
+ throw new BoxSdkError({
46189
+ message: 'Expecting boolean for "is_previewer_uploader_role_enabled" of type "CollaborationPermissionsV2025R0"',
46190
+ });
46191
+ }
46192
+ const isPreviewerUploaderRoleEnabled = val.is_previewer_uploader_role_enabled == void 0
46193
+ ? void 0
46194
+ : val.is_previewer_uploader_role_enabled;
46195
+ if (!(val.is_uploader_role_enabled == void 0) &&
46196
+ !sdIsBoolean(val.is_uploader_role_enabled)) {
46197
+ throw new BoxSdkError({
46198
+ message: 'Expecting boolean for "is_uploader_role_enabled" of type "CollaborationPermissionsV2025R0"',
46199
+ });
46200
+ }
46201
+ const isUploaderRoleEnabled = val.is_uploader_role_enabled == void 0
46202
+ ? void 0
46203
+ : val.is_uploader_role_enabled;
46204
+ if (!(val.is_viewer_role_enabled == void 0) &&
46205
+ !sdIsBoolean(val.is_viewer_role_enabled)) {
46206
+ throw new BoxSdkError({
46207
+ message: 'Expecting boolean for "is_viewer_role_enabled" of type "CollaborationPermissionsV2025R0"',
46208
+ });
46209
+ }
46210
+ const isViewerRoleEnabled = val.is_viewer_role_enabled == void 0 ? void 0 : val.is_viewer_role_enabled;
46211
+ if (!(val.is_viewer_uploader_role_enabled == void 0) &&
46212
+ !sdIsBoolean(val.is_viewer_uploader_role_enabled)) {
46213
+ throw new BoxSdkError({
46214
+ message: 'Expecting boolean for "is_viewer_uploader_role_enabled" of type "CollaborationPermissionsV2025R0"',
46215
+ });
46216
+ }
46217
+ const isViewerUploaderRoleEnabled = val.is_viewer_uploader_role_enabled == void 0
46218
+ ? void 0
46219
+ : val.is_viewer_uploader_role_enabled;
46220
+ return {
46221
+ isCoOwnerRoleEnabled: isCoOwnerRoleEnabled,
46222
+ isEditorRoleEnabled: isEditorRoleEnabled,
46223
+ isPreviewerRoleEnabled: isPreviewerRoleEnabled,
46224
+ isPreviewerUploaderRoleEnabled: isPreviewerUploaderRoleEnabled,
46225
+ isUploaderRoleEnabled: isUploaderRoleEnabled,
46226
+ isViewerRoleEnabled: isViewerRoleEnabled,
46227
+ isViewerUploaderRoleEnabled: isViewerUploaderRoleEnabled,
46228
+ };
46229
+ }
46230
+
46231
+ function deserializeListUserV2025R0(val) {
46232
+ if (!sdIsMap(val)) {
46233
+ throw new BoxSdkError({ message: 'Expecting a map for "ListUserV2025R0"' });
46234
+ }
46235
+ if (!(val.id == void 0) && !sdIsNumber(val.id)) {
46236
+ throw new BoxSdkError({
46237
+ message: 'Expecting number for "id" of type "ListUserV2025R0"',
46238
+ });
46239
+ }
46240
+ const id = val.id == void 0 ? void 0 : val.id;
46241
+ if (!(val.name == void 0) && !sdIsString(val.name)) {
46242
+ throw new BoxSdkError({
46243
+ message: 'Expecting string for "name" of type "ListUserV2025R0"',
46244
+ });
46245
+ }
46246
+ const name = val.name == void 0 ? void 0 : val.name;
46247
+ if (!(val.email == void 0) && !sdIsString(val.email)) {
46248
+ throw new BoxSdkError({
46249
+ message: 'Expecting string for "email" of type "ListUserV2025R0"',
46250
+ });
46251
+ }
46252
+ const email = val.email == void 0 ? void 0 : val.email;
46253
+ return { id: id, name: name, email: email };
46254
+ }
46255
+
46256
+ function deserializeEnterpriseConfigurationContentAndSharingV2025R0SharedLinkDefaultPermissionsSelectedField(val) {
46257
+ if (!sdIsMap(val)) {
46258
+ throw new BoxSdkError({
46259
+ message: 'Expecting a map for "EnterpriseConfigurationContentAndSharingV2025R0SharedLinkDefaultPermissionsSelectedField"',
46260
+ });
46261
+ }
46262
+ const value = val.value == void 0
46263
+ ? void 0
46264
+ : deserializeSharedLinkPermissionsV2025R0(val.value);
46265
+ if (!(val.is_used == void 0) && !sdIsBoolean(val.is_used)) {
46266
+ throw new BoxSdkError({
46267
+ message: 'Expecting boolean for "is_used" of type "EnterpriseConfigurationContentAndSharingV2025R0SharedLinkDefaultPermissionsSelectedField"',
46268
+ });
46269
+ }
46270
+ const isUsed = val.is_used == void 0 ? void 0 : val.is_used;
46271
+ return {
46272
+ value: value,
46273
+ isUsed: isUsed,
46274
+ };
46275
+ }
46276
+ function deserializeEnterpriseConfigurationContentAndSharingV2025R0CollaborationPermissionsField(val) {
46277
+ if (!sdIsMap(val)) {
46278
+ throw new BoxSdkError({
46279
+ message: 'Expecting a map for "EnterpriseConfigurationContentAndSharingV2025R0CollaborationPermissionsField"',
46280
+ });
46281
+ }
46282
+ const value = val.value == void 0
46283
+ ? void 0
46284
+ : deserializeCollaborationPermissionsV2025R0(val.value);
46285
+ if (!(val.is_used == void 0) && !sdIsBoolean(val.is_used)) {
46286
+ throw new BoxSdkError({
46287
+ message: 'Expecting boolean for "is_used" of type "EnterpriseConfigurationContentAndSharingV2025R0CollaborationPermissionsField"',
46288
+ });
46289
+ }
46290
+ const isUsed = val.is_used == void 0 ? void 0 : val.is_used;
46291
+ return {
46292
+ value: value,
46293
+ isUsed: isUsed,
46294
+ };
46295
+ }
46296
+ function deserializeEnterpriseConfigurationContentAndSharingV2025R0CollaborationRestrictionsField(val) {
46297
+ if (!sdIsMap(val)) {
46298
+ throw new BoxSdkError({
46299
+ message: 'Expecting a map for "EnterpriseConfigurationContentAndSharingV2025R0CollaborationRestrictionsField"',
46300
+ });
46301
+ }
46302
+ if (!(val.value == void 0) && !sdIsList(val.value)) {
46303
+ throw new BoxSdkError({
46304
+ message: 'Expecting array for "value" of type "EnterpriseConfigurationContentAndSharingV2025R0CollaborationRestrictionsField"',
46305
+ });
46306
+ }
46307
+ const value = val.value == void 0
46308
+ ? void 0
46309
+ : sdIsList(val.value)
46310
+ ? val.value.map(function (itm) {
46311
+ if (!sdIsString(itm)) {
46312
+ throw new BoxSdkError({
46313
+ message: 'Expecting string for "EnterpriseConfigurationContentAndSharingV2025R0CollaborationRestrictionsField"',
46314
+ });
46315
+ }
46316
+ return itm;
46317
+ })
46318
+ : [];
46319
+ if (!(val.is_used == void 0) && !sdIsBoolean(val.is_used)) {
46320
+ throw new BoxSdkError({
46321
+ message: 'Expecting boolean for "is_used" of type "EnterpriseConfigurationContentAndSharingV2025R0CollaborationRestrictionsField"',
46322
+ });
46323
+ }
46324
+ const isUsed = val.is_used == void 0 ? void 0 : val.is_used;
46325
+ return {
46326
+ value: value,
46327
+ isUsed: isUsed,
46328
+ };
46329
+ }
46330
+ function deserializeEnterpriseConfigurationContentAndSharingV2025R0ExternalCollaborationStatusField(val) {
46331
+ if (!sdIsMap(val)) {
46332
+ throw new BoxSdkError({
46333
+ message: 'Expecting a map for "EnterpriseConfigurationContentAndSharingV2025R0ExternalCollaborationStatusField"',
46334
+ });
46335
+ }
46336
+ if (!(val.value == void 0) && !sdIsString(val.value)) {
46337
+ throw new BoxSdkError({
46338
+ message: 'Expecting string for "value" of type "EnterpriseConfigurationContentAndSharingV2025R0ExternalCollaborationStatusField"',
46339
+ });
46340
+ }
46341
+ const value = val.value == void 0 ? void 0 : val.value;
46342
+ if (!(val.is_used == void 0) && !sdIsBoolean(val.is_used)) {
46343
+ throw new BoxSdkError({
46344
+ message: 'Expecting boolean for "is_used" of type "EnterpriseConfigurationContentAndSharingV2025R0ExternalCollaborationStatusField"',
46345
+ });
46346
+ }
46347
+ const isUsed = val.is_used == void 0 ? void 0 : val.is_used;
46348
+ return {
46349
+ value: value,
46350
+ isUsed: isUsed,
46351
+ };
46352
+ }
46353
+ function deserializeEnterpriseConfigurationContentAndSharingV2025R0ExternalCollaborationAllowlistUsersField(val) {
46354
+ if (!sdIsMap(val)) {
46355
+ throw new BoxSdkError({
46356
+ message: 'Expecting a map for "EnterpriseConfigurationContentAndSharingV2025R0ExternalCollaborationAllowlistUsersField"',
46357
+ });
46358
+ }
46359
+ if (!(val.value == void 0) && !sdIsList(val.value)) {
46360
+ throw new BoxSdkError({
46361
+ message: 'Expecting array for "value" of type "EnterpriseConfigurationContentAndSharingV2025R0ExternalCollaborationAllowlistUsersField"',
46362
+ });
46363
+ }
46364
+ const value = val.value == void 0
46365
+ ? void 0
46366
+ : sdIsList(val.value)
46367
+ ? val.value.map(function (itm) {
46368
+ return deserializeListUserV2025R0(itm);
46369
+ })
46370
+ : [];
46371
+ if (!(val.is_used == void 0) && !sdIsBoolean(val.is_used)) {
46372
+ throw new BoxSdkError({
46373
+ message: 'Expecting boolean for "is_used" of type "EnterpriseConfigurationContentAndSharingV2025R0ExternalCollaborationAllowlistUsersField"',
46374
+ });
46375
+ }
46376
+ const isUsed = val.is_used == void 0 ? void 0 : val.is_used;
46377
+ return {
46378
+ value: value,
46379
+ isUsed: isUsed,
46380
+ };
46381
+ }
46382
+ function deserializeEnterpriseConfigurationContentAndSharingV2025R0PermanentDeletionAllowlistUsersField(val) {
46383
+ if (!sdIsMap(val)) {
46384
+ throw new BoxSdkError({
46385
+ message: 'Expecting a map for "EnterpriseConfigurationContentAndSharingV2025R0PermanentDeletionAllowlistUsersField"',
46386
+ });
46387
+ }
46388
+ if (!(val.value == void 0) && !sdIsList(val.value)) {
46389
+ throw new BoxSdkError({
46390
+ message: 'Expecting array for "value" of type "EnterpriseConfigurationContentAndSharingV2025R0PermanentDeletionAllowlistUsersField"',
46391
+ });
46392
+ }
46393
+ const value = val.value == void 0
46394
+ ? void 0
46395
+ : sdIsList(val.value)
46396
+ ? val.value.map(function (itm) {
46397
+ return deserializeListUserV2025R0(itm);
46398
+ })
46399
+ : [];
46400
+ if (!(val.is_used == void 0) && !sdIsBoolean(val.is_used)) {
46401
+ throw new BoxSdkError({
46402
+ message: 'Expecting boolean for "is_used" of type "EnterpriseConfigurationContentAndSharingV2025R0PermanentDeletionAllowlistUsersField"',
46403
+ });
46404
+ }
46405
+ const isUsed = val.is_used == void 0 ? void 0 : val.is_used;
46406
+ return {
46407
+ value: value,
46408
+ isUsed: isUsed,
46409
+ };
46410
+ }
46411
+ function deserializeEnterpriseConfigurationContentAndSharingV2025R0(val) {
46412
+ if (!sdIsMap(val)) {
46413
+ throw new BoxSdkError({
46414
+ message: 'Expecting a map for "EnterpriseConfigurationContentAndSharingV2025R0"',
46415
+ });
46416
+ }
46417
+ if (!(val.enterprise_feature_settings == void 0) &&
46418
+ !sdIsList(val.enterprise_feature_settings)) {
46419
+ throw new BoxSdkError({
46420
+ message: 'Expecting array for "enterprise_feature_settings" of type "EnterpriseConfigurationContentAndSharingV2025R0"',
46421
+ });
46422
+ }
46423
+ const enterpriseFeatureSettings = val.enterprise_feature_settings == void 0
46424
+ ? void 0
46425
+ : sdIsList(val.enterprise_feature_settings)
46426
+ ? val.enterprise_feature_settings.map(function (itm) {
46427
+ return deserializeEnterpriseFeatureSettingsItemV2025R0(itm);
46428
+ })
46429
+ : [];
46430
+ const sharingItemType = val.sharing_item_type == void 0
46431
+ ? void 0
46432
+ : deserializeEnterpriseConfigurationItemStringV2025R0(val.sharing_item_type);
46433
+ const sharedLinkCompanyDefinition = val.shared_link_company_definition == void 0
46434
+ ? void 0
46435
+ : deserializeEnterpriseConfigurationItemStringV2025R0(val.shared_link_company_definition);
46436
+ const sharedLinkAccess = val.shared_link_access == void 0
46437
+ ? void 0
46438
+ : deserializeEnterpriseConfigurationItemStringV2025R0(val.shared_link_access);
46439
+ const sharedLinkDefaultAccess = val.shared_link_default_access == void 0
46440
+ ? void 0
46441
+ : deserializeEnterpriseConfigurationItemStringV2025R0(val.shared_link_default_access);
46442
+ const sharedLinkDefaultPermissionsSelected = val.shared_link_default_permissions_selected == void 0
46443
+ ? void 0
46444
+ : deserializeEnterpriseConfigurationContentAndSharingV2025R0SharedLinkDefaultPermissionsSelectedField(val.shared_link_default_permissions_selected);
46445
+ const isOpenCustomUrlsDisabled = val.is_open_custom_urls_disabled == void 0
46446
+ ? void 0
46447
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_open_custom_urls_disabled);
46448
+ const isCustomDomainHiddenInSharedLink = val.is_custom_domain_hidden_in_shared_link == void 0
46449
+ ? void 0
46450
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_custom_domain_hidden_in_shared_link);
46451
+ const collaborationPermissions = val.collaboration_permissions == void 0
46452
+ ? void 0
46453
+ : deserializeEnterpriseConfigurationContentAndSharingV2025R0CollaborationPermissionsField(val.collaboration_permissions);
46454
+ const defaultCollaborationRole = val.default_collaboration_role == void 0
46455
+ ? void 0
46456
+ : deserializeEnterpriseConfigurationItemStringV2025R0(val.default_collaboration_role);
46457
+ const isInvitePrivilegeRestricted = val.is_invite_privilege_restricted == void 0
46458
+ ? void 0
46459
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_invite_privilege_restricted);
46460
+ const collaborationRestrictions = val.collaboration_restrictions == void 0
46461
+ ? void 0
46462
+ : deserializeEnterpriseConfigurationContentAndSharingV2025R0CollaborationRestrictionsField(val.collaboration_restrictions);
46463
+ const isCollaboratorInviteLinksDisabled = val.is_collaborator_invite_links_disabled == void 0
46464
+ ? void 0
46465
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_collaborator_invite_links_disabled);
46466
+ const isInviteGroupCollaboratorDisabled = val.is_invite_group_collaborator_disabled == void 0
46467
+ ? void 0
46468
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_invite_group_collaborator_disabled);
46469
+ const isOwnershipTransferRestricted = val.is_ownership_transfer_restricted == void 0
46470
+ ? void 0
46471
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_ownership_transfer_restricted);
46472
+ const externalCollaborationStatus = val.external_collaboration_status == void 0
46473
+ ? void 0
46474
+ : deserializeEnterpriseConfigurationContentAndSharingV2025R0ExternalCollaborationStatusField(val.external_collaboration_status);
46475
+ const externalCollaborationAllowlistUsers = val.external_collaboration_allowlist_users == void 0
46476
+ ? void 0
46477
+ : deserializeEnterpriseConfigurationContentAndSharingV2025R0ExternalCollaborationAllowlistUsersField(val.external_collaboration_allowlist_users);
46478
+ const isWatermarkingEnterpriseFeatureEnabled = val.is_watermarking_enterprise_feature_enabled == void 0
46479
+ ? void 0
46480
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_watermarking_enterprise_feature_enabled);
46481
+ const isRootContentCreationRestricted = val.is_root_content_creation_restricted == void 0
46482
+ ? void 0
46483
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_root_content_creation_restricted);
46484
+ const isTagCreationRestricted = val.is_tag_creation_restricted == void 0
46485
+ ? void 0
46486
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_tag_creation_restricted);
46487
+ const tagCreationRestriction = val.tag_creation_restriction == void 0
46488
+ ? void 0
46489
+ : deserializeEnterpriseConfigurationItemStringV2025R0(val.tag_creation_restriction);
46490
+ const isEmailUploadsEnabled = val.is_email_uploads_enabled == void 0
46491
+ ? void 0
46492
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_email_uploads_enabled);
46493
+ const isCustomSettingsEnabled = val.is_custom_settings_enabled == void 0
46494
+ ? void 0
46495
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_custom_settings_enabled);
46496
+ const isFormsLoginRequired = val.is_forms_login_required == void 0
46497
+ ? void 0
46498
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_forms_login_required);
46499
+ const isFormsBrandingDefaultEnabled = val.is_forms_branding_default_enabled == void 0
46500
+ ? void 0
46501
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_forms_branding_default_enabled);
46502
+ const isCcFreeTrialActive = val.is_cc_free_trial_active == void 0
46503
+ ? void 0
46504
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_cc_free_trial_active);
46505
+ const isFileRequestEditorsAllowed = val.is_file_request_editors_allowed == void 0
46506
+ ? void 0
46507
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_file_request_editors_allowed);
46508
+ const isFileRequestBrandingDefaultEnabled = val.is_file_request_branding_default_enabled == void 0
46509
+ ? void 0
46510
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_file_request_branding_default_enabled);
46511
+ const isFileRequestLoginRequired = val.is_file_request_login_required == void 0
46512
+ ? void 0
46513
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_file_request_login_required);
46514
+ const isSharedLinksExpirationEnabled = val.is_shared_links_expiration_enabled == void 0
46515
+ ? void 0
46516
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_shared_links_expiration_enabled);
46517
+ const sharedLinksExpirationDays = val.shared_links_expiration_days == void 0
46518
+ ? void 0
46519
+ : deserializeEnterpriseConfigurationItemIntegerV2025R0(val.shared_links_expiration_days);
46520
+ const isPublicSharedLinksExpirationEnabled = val.is_public_shared_links_expiration_enabled == void 0
46521
+ ? void 0
46522
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_public_shared_links_expiration_enabled);
46523
+ const publicSharedLinksExpirationDays = val.public_shared_links_expiration_days == void 0
46524
+ ? void 0
46525
+ : deserializeEnterpriseConfigurationItemIntegerV2025R0(val.public_shared_links_expiration_days);
46526
+ const sharedExpirationTarget = val.shared_expiration_target == void 0
46527
+ ? void 0
46528
+ : deserializeEnterpriseConfigurationItemStringV2025R0(val.shared_expiration_target);
46529
+ const isSharedLinksExpirationNotificationEnabled = val.is_shared_links_expiration_notification_enabled == void 0
46530
+ ? void 0
46531
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_shared_links_expiration_notification_enabled);
46532
+ const sharedLinksExpirationNotificationDays = val.shared_links_expiration_notification_days == void 0
46533
+ ? void 0
46534
+ : deserializeEnterpriseConfigurationItemIntegerV2025R0(val.shared_links_expiration_notification_days);
46535
+ const isSharedLinksExpirationNotificationPrevented = val.is_shared_links_expiration_notification_prevented == void 0
46536
+ ? void 0
46537
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_shared_links_expiration_notification_prevented);
46538
+ const isAutoDeleteEnabled = val.is_auto_delete_enabled == void 0
46539
+ ? void 0
46540
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_auto_delete_enabled);
46541
+ const autoDeleteDays = val.auto_delete_days == void 0
46542
+ ? void 0
46543
+ : deserializeEnterpriseConfigurationItemIntegerV2025R0(val.auto_delete_days);
46544
+ const isAutoDeleteExpirationModificationPrevented = val.is_auto_delete_expiration_modification_prevented == void 0
46545
+ ? void 0
46546
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_auto_delete_expiration_modification_prevented);
46547
+ const autoDeleteTarget = val.auto_delete_target == void 0
46548
+ ? void 0
46549
+ : deserializeEnterpriseConfigurationItemStringV2025R0(val.auto_delete_target);
46550
+ const isCollaborationExpirationEnabled = val.is_collaboration_expiration_enabled == void 0
46551
+ ? void 0
46552
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_collaboration_expiration_enabled);
46553
+ const collaborationExpirationDays = val.collaboration_expiration_days == void 0
46554
+ ? void 0
46555
+ : deserializeEnterpriseConfigurationItemIntegerV2025R0(val.collaboration_expiration_days);
46556
+ const isCollaborationExpirationModificationPrevented = val.is_collaboration_expiration_modification_prevented == void 0
46557
+ ? void 0
46558
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_collaboration_expiration_modification_prevented);
46559
+ const isCollaborationExpirationNotificationEnabled = val.is_collaboration_expiration_notification_enabled == void 0
46560
+ ? void 0
46561
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_collaboration_expiration_notification_enabled);
46562
+ const collaborationExpirationTarget = val.collaboration_expiration_target == void 0
46563
+ ? void 0
46564
+ : deserializeEnterpriseConfigurationItemStringV2025R0(val.collaboration_expiration_target);
46565
+ const trashAutoClearTime = val.trash_auto_clear_time == void 0
46566
+ ? void 0
46567
+ : deserializeEnterpriseConfigurationItemIntegerV2025R0(val.trash_auto_clear_time);
46568
+ const permanentDeletionAccess = val.permanent_deletion_access == void 0
46569
+ ? void 0
46570
+ : deserializeEnterpriseConfigurationItemStringV2025R0(val.permanent_deletion_access);
46571
+ const permanentDeletionAllowlistUsers = val.permanent_deletion_allowlist_users == void 0
46572
+ ? void 0
46573
+ : deserializeEnterpriseConfigurationContentAndSharingV2025R0PermanentDeletionAllowlistUsersField(val.permanent_deletion_allowlist_users);
46574
+ return {
46575
+ enterpriseFeatureSettings: enterpriseFeatureSettings,
46576
+ sharingItemType: sharingItemType,
46577
+ sharedLinkCompanyDefinition: sharedLinkCompanyDefinition,
46578
+ sharedLinkAccess: sharedLinkAccess,
46579
+ sharedLinkDefaultAccess: sharedLinkDefaultAccess,
46580
+ sharedLinkDefaultPermissionsSelected: sharedLinkDefaultPermissionsSelected,
46581
+ isOpenCustomUrlsDisabled: isOpenCustomUrlsDisabled,
46582
+ isCustomDomainHiddenInSharedLink: isCustomDomainHiddenInSharedLink,
46583
+ collaborationPermissions: collaborationPermissions,
46584
+ defaultCollaborationRole: defaultCollaborationRole,
46585
+ isInvitePrivilegeRestricted: isInvitePrivilegeRestricted,
46586
+ collaborationRestrictions: collaborationRestrictions,
46587
+ isCollaboratorInviteLinksDisabled: isCollaboratorInviteLinksDisabled,
46588
+ isInviteGroupCollaboratorDisabled: isInviteGroupCollaboratorDisabled,
46589
+ isOwnershipTransferRestricted: isOwnershipTransferRestricted,
46590
+ externalCollaborationStatus: externalCollaborationStatus,
46591
+ externalCollaborationAllowlistUsers: externalCollaborationAllowlistUsers,
46592
+ isWatermarkingEnterpriseFeatureEnabled: isWatermarkingEnterpriseFeatureEnabled,
46593
+ isRootContentCreationRestricted: isRootContentCreationRestricted,
46594
+ isTagCreationRestricted: isTagCreationRestricted,
46595
+ tagCreationRestriction: tagCreationRestriction,
46596
+ isEmailUploadsEnabled: isEmailUploadsEnabled,
46597
+ isCustomSettingsEnabled: isCustomSettingsEnabled,
46598
+ isFormsLoginRequired: isFormsLoginRequired,
46599
+ isFormsBrandingDefaultEnabled: isFormsBrandingDefaultEnabled,
46600
+ isCcFreeTrialActive: isCcFreeTrialActive,
46601
+ isFileRequestEditorsAllowed: isFileRequestEditorsAllowed,
46602
+ isFileRequestBrandingDefaultEnabled: isFileRequestBrandingDefaultEnabled,
46603
+ isFileRequestLoginRequired: isFileRequestLoginRequired,
46604
+ isSharedLinksExpirationEnabled: isSharedLinksExpirationEnabled,
46605
+ sharedLinksExpirationDays: sharedLinksExpirationDays,
46606
+ isPublicSharedLinksExpirationEnabled: isPublicSharedLinksExpirationEnabled,
46607
+ publicSharedLinksExpirationDays: publicSharedLinksExpirationDays,
46608
+ sharedExpirationTarget: sharedExpirationTarget,
46609
+ isSharedLinksExpirationNotificationEnabled: isSharedLinksExpirationNotificationEnabled,
46610
+ sharedLinksExpirationNotificationDays: sharedLinksExpirationNotificationDays,
46611
+ isSharedLinksExpirationNotificationPrevented: isSharedLinksExpirationNotificationPrevented,
46612
+ isAutoDeleteEnabled: isAutoDeleteEnabled,
46613
+ autoDeleteDays: autoDeleteDays,
46614
+ isAutoDeleteExpirationModificationPrevented: isAutoDeleteExpirationModificationPrevented,
46615
+ autoDeleteTarget: autoDeleteTarget,
46616
+ isCollaborationExpirationEnabled: isCollaborationExpirationEnabled,
46617
+ collaborationExpirationDays: collaborationExpirationDays,
46618
+ isCollaborationExpirationModificationPrevented: isCollaborationExpirationModificationPrevented,
46619
+ isCollaborationExpirationNotificationEnabled: isCollaborationExpirationNotificationEnabled,
46620
+ collaborationExpirationTarget: collaborationExpirationTarget,
46621
+ trashAutoClearTime: trashAutoClearTime,
46622
+ permanentDeletionAccess: permanentDeletionAccess,
46623
+ permanentDeletionAllowlistUsers: permanentDeletionAllowlistUsers,
46624
+ };
46625
+ }
46626
+
46627
+ function deserializeUserTrackingCodeV2025R0(val) {
46628
+ if (!sdIsMap(val)) {
46629
+ throw new BoxSdkError({
46630
+ message: 'Expecting a map for "UserTrackingCodeV2025R0"',
46631
+ });
46632
+ }
46633
+ if (!(val.id == void 0) && !sdIsNumber(val.id)) {
46634
+ throw new BoxSdkError({
46635
+ message: 'Expecting number for "id" of type "UserTrackingCodeV2025R0"',
46636
+ });
46637
+ }
46638
+ const id = val.id == void 0 ? void 0 : val.id;
46639
+ if (!(val.name == void 0) && !sdIsString(val.name)) {
46640
+ throw new BoxSdkError({
46641
+ message: 'Expecting string for "name" of type "UserTrackingCodeV2025R0"',
46642
+ });
46643
+ }
46644
+ const name = val.name == void 0 ? void 0 : val.name;
46645
+ return { id: id, name: name };
46646
+ }
46647
+
46648
+ function deserializeEnterpriseConfigurationUserSettingsV2025R0UserTrackingCodesField(val) {
46649
+ if (!sdIsMap(val)) {
46650
+ throw new BoxSdkError({
46651
+ message: 'Expecting a map for "EnterpriseConfigurationUserSettingsV2025R0UserTrackingCodesField"',
46652
+ });
46653
+ }
46654
+ if (!(val.value == void 0) && !sdIsList(val.value)) {
46655
+ throw new BoxSdkError({
46656
+ message: 'Expecting array for "value" of type "EnterpriseConfigurationUserSettingsV2025R0UserTrackingCodesField"',
46657
+ });
46658
+ }
46659
+ const value = val.value == void 0
46660
+ ? void 0
46661
+ : sdIsList(val.value)
46662
+ ? val.value.map(function (itm) {
46663
+ return deserializeUserTrackingCodeV2025R0(itm);
46664
+ })
46665
+ : [];
46666
+ if (!(val.is_used == void 0) && !sdIsBoolean(val.is_used)) {
46667
+ throw new BoxSdkError({
46668
+ message: 'Expecting boolean for "is_used" of type "EnterpriseConfigurationUserSettingsV2025R0UserTrackingCodesField"',
46669
+ });
46670
+ }
46671
+ const isUsed = val.is_used == void 0 ? void 0 : val.is_used;
46672
+ return {
46673
+ value: value,
46674
+ isUsed: isUsed,
46675
+ };
46676
+ }
46677
+ function deserializeEnterpriseConfigurationUserSettingsV2025R0(val) {
46678
+ if (!sdIsMap(val)) {
46679
+ throw new BoxSdkError({
46680
+ message: 'Expecting a map for "EnterpriseConfigurationUserSettingsV2025R0"',
46681
+ });
46682
+ }
46683
+ if (!(val.enterprise_feature_settings == void 0) &&
46684
+ !sdIsList(val.enterprise_feature_settings)) {
46685
+ throw new BoxSdkError({
46686
+ message: 'Expecting array for "enterprise_feature_settings" of type "EnterpriseConfigurationUserSettingsV2025R0"',
46687
+ });
46688
+ }
46689
+ const enterpriseFeatureSettings = val.enterprise_feature_settings == void 0
46690
+ ? void 0
46691
+ : sdIsList(val.enterprise_feature_settings)
46692
+ ? val.enterprise_feature_settings.map(function (itm) {
46693
+ return deserializeEnterpriseFeatureSettingsItemV2025R0(itm);
46694
+ })
46695
+ : [];
46696
+ const userInvitesExpirationTimeFrame = val.user_invites_expiration_time_frame == void 0
46697
+ ? void 0
46698
+ : deserializeEnterpriseConfigurationItemStringV2025R0(val.user_invites_expiration_time_frame);
46699
+ const isUsernameChangeRestricted = val.is_username_change_restricted == void 0
46700
+ ? void 0
46701
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_username_change_restricted);
46702
+ const isBoxSyncRestrictedForNewUsers = val.is_box_sync_restricted_for_new_users == void 0
46703
+ ? void 0
46704
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_box_sync_restricted_for_new_users);
46705
+ const isViewAllUsersEnabledForNewUsers = val.is_view_all_users_enabled_for_new_users == void 0
46706
+ ? void 0
46707
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_view_all_users_enabled_for_new_users);
46708
+ const isDeviceLimitExemptionEnabledForNewUsers = val.is_device_limit_exemption_enabled_for_new_users == void 0
46709
+ ? void 0
46710
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_device_limit_exemption_enabled_for_new_users);
46711
+ const isExternalCollaborationRestrictedForNewUsers = val.is_external_collaboration_restricted_for_new_users == void 0
46712
+ ? void 0
46713
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_external_collaboration_restricted_for_new_users);
46714
+ const isUnlimitedStorageEnabledForNewUsers = val.is_unlimited_storage_enabled_for_new_users == void 0
46715
+ ? void 0
46716
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_unlimited_storage_enabled_for_new_users);
46717
+ const newUserDefaultStorageLimit = val.new_user_default_storage_limit == void 0
46718
+ ? void 0
46719
+ : deserializeEnterpriseConfigurationItemIntegerV2025R0(val.new_user_default_storage_limit);
46720
+ const newUserDefaultTimezone = val.new_user_default_timezone == void 0
46721
+ ? void 0
46722
+ : deserializeEnterpriseConfigurationItemStringV2025R0(val.new_user_default_timezone);
46723
+ const newUserDefaultLanguage = val.new_user_default_language == void 0
46724
+ ? void 0
46725
+ : deserializeEnterpriseConfigurationItemStringV2025R0(val.new_user_default_language);
46726
+ const isEnterpriseSsoRequired = val.is_enterprise_sso_required == void 0
46727
+ ? void 0
46728
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_enterprise_sso_required);
46729
+ const isEnterpriseSsoInTesting = val.is_enterprise_sso_in_testing == void 0
46730
+ ? void 0
46731
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_enterprise_sso_in_testing);
46732
+ const isSsoAutoAddGroupsEnabled = val.is_sso_auto_add_groups_enabled == void 0
46733
+ ? void 0
46734
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_sso_auto_add_groups_enabled);
46735
+ const isSsoAutoAddUserToGroupsEnabled = val.is_sso_auto_add_user_to_groups_enabled == void 0
46736
+ ? void 0
46737
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_sso_auto_add_user_to_groups_enabled);
46738
+ const isSsoAutoRemoveUserFromGroupsEnabled = val.is_sso_auto_remove_user_from_groups_enabled == void 0
46739
+ ? void 0
46740
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_sso_auto_remove_user_from_groups_enabled);
46741
+ const userTrackingCodes = val.user_tracking_codes == void 0
46742
+ ? void 0
46743
+ : deserializeEnterpriseConfigurationUserSettingsV2025R0UserTrackingCodesField(val.user_tracking_codes);
46744
+ const numberOfUserTrackingCodesRemaining = val.number_of_user_tracking_codes_remaining == void 0
46745
+ ? void 0
46746
+ : deserializeEnterpriseConfigurationItemIntegerV2025R0(val.number_of_user_tracking_codes_remaining);
46747
+ const isInstantLoginRestricted = val.is_instant_login_restricted == void 0
46748
+ ? void 0
46749
+ : deserializeEnterpriseConfigurationItemBooleanV2025R0(val.is_instant_login_restricted);
46750
+ return {
46751
+ enterpriseFeatureSettings: enterpriseFeatureSettings,
46752
+ userInvitesExpirationTimeFrame: userInvitesExpirationTimeFrame,
46753
+ isUsernameChangeRestricted: isUsernameChangeRestricted,
46754
+ isBoxSyncRestrictedForNewUsers: isBoxSyncRestrictedForNewUsers,
46755
+ isViewAllUsersEnabledForNewUsers: isViewAllUsersEnabledForNewUsers,
46756
+ isDeviceLimitExemptionEnabledForNewUsers: isDeviceLimitExemptionEnabledForNewUsers,
46757
+ isExternalCollaborationRestrictedForNewUsers: isExternalCollaborationRestrictedForNewUsers,
46758
+ isUnlimitedStorageEnabledForNewUsers: isUnlimitedStorageEnabledForNewUsers,
46759
+ newUserDefaultStorageLimit: newUserDefaultStorageLimit,
46760
+ newUserDefaultTimezone: newUserDefaultTimezone,
46761
+ newUserDefaultLanguage: newUserDefaultLanguage,
46762
+ isEnterpriseSsoRequired: isEnterpriseSsoRequired,
46763
+ isEnterpriseSsoInTesting: isEnterpriseSsoInTesting,
46764
+ isSsoAutoAddGroupsEnabled: isSsoAutoAddGroupsEnabled,
46765
+ isSsoAutoAddUserToGroupsEnabled: isSsoAutoAddUserToGroupsEnabled,
46766
+ isSsoAutoRemoveUserFromGroupsEnabled: isSsoAutoRemoveUserFromGroupsEnabled,
46767
+ userTrackingCodes: userTrackingCodes,
46768
+ numberOfUserTrackingCodesRemaining: numberOfUserTrackingCodesRemaining,
46769
+ isInstantLoginRestricted: isInstantLoginRestricted,
46770
+ };
46771
+ }
46772
+
46773
+ function deserializeShieldRuleItemV2025R0TypeField(val) {
46774
+ if (val == 'shield_rule') {
46775
+ return val;
46776
+ }
46777
+ throw new BoxSdkError({
46778
+ message: "Can't deserialize ShieldRuleItemV2025R0TypeField",
46779
+ });
46780
+ }
46781
+ function deserializeShieldRuleItemV2025R0PriorityField(val) {
46782
+ if (val == 'informational') {
46783
+ return val;
46784
+ }
46785
+ if (val == 'low') {
46786
+ return val;
46787
+ }
46788
+ if (val == 'medium') {
46789
+ return val;
46790
+ }
46791
+ if (val == 'high') {
46792
+ return val;
46793
+ }
46794
+ if (val == 'critical') {
46795
+ return val;
46796
+ }
46797
+ if (sdIsString(val)) {
46798
+ return val;
46799
+ }
46800
+ throw new BoxSdkError({
46801
+ message: "Can't deserialize ShieldRuleItemV2025R0PriorityField",
46802
+ });
46803
+ }
46804
+ function deserializeShieldRuleItemV2025R0(val) {
46805
+ if (!sdIsMap(val)) {
46806
+ throw new BoxSdkError({
46807
+ message: 'Expecting a map for "ShieldRuleItemV2025R0"',
46808
+ });
46809
+ }
46810
+ if (!(val.id == void 0) && !sdIsString(val.id)) {
46811
+ throw new BoxSdkError({
46812
+ message: 'Expecting string for "id" of type "ShieldRuleItemV2025R0"',
46813
+ });
46814
+ }
46815
+ const id = val.id == void 0 ? void 0 : val.id;
46816
+ const type = val.type == void 0
46817
+ ? void 0
46818
+ : deserializeShieldRuleItemV2025R0TypeField(val.type);
46819
+ if (!(val.rule_category == void 0) && !sdIsString(val.rule_category)) {
46820
+ throw new BoxSdkError({
46821
+ message: 'Expecting string for "rule_category" of type "ShieldRuleItemV2025R0"',
46822
+ });
46823
+ }
46824
+ const ruleCategory = val.rule_category == void 0 ? void 0 : val.rule_category;
46825
+ if (!(val.name == void 0) && !sdIsString(val.name)) {
46826
+ throw new BoxSdkError({
46827
+ message: 'Expecting string for "name" of type "ShieldRuleItemV2025R0"',
46828
+ });
46829
+ }
46830
+ const name = val.name == void 0 ? void 0 : val.name;
46831
+ if (!(val.description == void 0) && !sdIsString(val.description)) {
46832
+ throw new BoxSdkError({
46833
+ message: 'Expecting string for "description" of type "ShieldRuleItemV2025R0"',
46834
+ });
46835
+ }
46836
+ const description = val.description == void 0 ? void 0 : val.description;
46837
+ const priority = val.priority == void 0
46838
+ ? void 0
46839
+ : deserializeShieldRuleItemV2025R0PriorityField(val.priority);
46840
+ if (!(val.created_at == void 0) && !sdIsString(val.created_at)) {
46841
+ throw new BoxSdkError({
46842
+ message: 'Expecting string for "created_at" of type "ShieldRuleItemV2025R0"',
46843
+ });
46844
+ }
46845
+ const createdAt = val.created_at == void 0 ? void 0 : dateTimeFromString(val.created_at);
46846
+ if (!(val.modified_at == void 0) && !sdIsString(val.modified_at)) {
46847
+ throw new BoxSdkError({
46848
+ message: 'Expecting string for "modified_at" of type "ShieldRuleItemV2025R0"',
46849
+ });
46850
+ }
46851
+ const modifiedAt = val.modified_at == void 0 ? void 0 : dateTimeFromString(val.modified_at);
46852
+ return {
46853
+ id: id,
46854
+ type: type,
46855
+ ruleCategory: ruleCategory,
46856
+ name: name,
46857
+ description: description,
46858
+ priority: priority,
46859
+ createdAt: createdAt,
46860
+ modifiedAt: modifiedAt,
46861
+ };
46862
+ }
46863
+
46864
+ function deserializeEnterpriseConfigurationShieldV2025R0(val) {
46865
+ if (!sdIsMap(val)) {
46866
+ throw new BoxSdkError({
46867
+ message: 'Expecting a map for "EnterpriseConfigurationShieldV2025R0"',
46868
+ });
46869
+ }
46870
+ if (!(val.shield_rules == void 0) && !sdIsList(val.shield_rules)) {
46871
+ throw new BoxSdkError({
46872
+ message: 'Expecting array for "shield_rules" of type "EnterpriseConfigurationShieldV2025R0"',
46873
+ });
46874
+ }
46875
+ const shieldRules = val.shield_rules == void 0
46876
+ ? void 0
46877
+ : sdIsList(val.shield_rules)
46878
+ ? val.shield_rules.map(function (itm) {
46879
+ return deserializeShieldRuleItemV2025R0(itm);
46880
+ })
46881
+ : [];
46882
+ return {
46883
+ shieldRules: shieldRules,
46884
+ };
46885
+ }
46886
+
46887
+ function deserializeEnterpriseConfigurationV2025R0TypeField(val) {
46888
+ if (val == 'enterprise_configuration') {
46889
+ return val;
46890
+ }
46891
+ throw new BoxSdkError({
46892
+ message: "Can't deserialize EnterpriseConfigurationV2025R0TypeField",
46893
+ });
46894
+ }
46895
+ function deserializeEnterpriseConfigurationV2025R0(val) {
46896
+ if (!sdIsMap(val)) {
46897
+ throw new BoxSdkError({
46898
+ message: 'Expecting a map for "EnterpriseConfigurationV2025R0"',
46899
+ });
46900
+ }
46901
+ if (!(val.id == void 0) && !sdIsString(val.id)) {
46902
+ throw new BoxSdkError({
46903
+ message: 'Expecting string for "id" of type "EnterpriseConfigurationV2025R0"',
46904
+ });
46905
+ }
46906
+ const id = val.id == void 0 ? void 0 : val.id;
46907
+ const type = val.type == void 0
46908
+ ? void 0
46909
+ : deserializeEnterpriseConfigurationV2025R0TypeField(val.type);
46910
+ const security = val.security == void 0
46911
+ ? void 0
46912
+ : val.security == void 0
46913
+ ? void 0
46914
+ : deserializeEnterpriseConfigurationSecurityV2025R0(val.security);
46915
+ const contentAndSharing = val.content_and_sharing == void 0
46916
+ ? void 0
46917
+ : val.content_and_sharing == void 0
46918
+ ? void 0
46919
+ : deserializeEnterpriseConfigurationContentAndSharingV2025R0(val.content_and_sharing);
46920
+ const userSettings = val.user_settings == void 0
46921
+ ? void 0
46922
+ : val.user_settings == void 0
46923
+ ? void 0
46924
+ : deserializeEnterpriseConfigurationUserSettingsV2025R0(val.user_settings);
46925
+ const shield = val.shield == void 0
46926
+ ? void 0
46927
+ : val.shield == void 0
46928
+ ? void 0
46929
+ : deserializeEnterpriseConfigurationShieldV2025R0(val.shield);
46930
+ return {
46931
+ id: id,
46932
+ type: type,
46933
+ security: security,
46934
+ contentAndSharing: contentAndSharing,
46935
+ userSettings: userSettings,
46936
+ shield: shield,
46937
+ };
46938
+ }
46939
+
46940
+ class GetEnterpriseConfigurationByIdV2025R0Optionals {
46941
+ constructor(fields) {
46942
+ this.headers = new GetEnterpriseConfigurationByIdV2025R0Headers({});
46943
+ this.cancellationToken = void 0;
46944
+ if (fields.headers !== undefined) {
46945
+ this.headers = fields.headers;
46946
+ }
46947
+ if (fields.cancellationToken !== undefined) {
46948
+ this.cancellationToken = fields.cancellationToken;
46949
+ }
46950
+ }
46951
+ }
46952
+ class GetEnterpriseConfigurationByIdV2025R0Headers {
46953
+ constructor(fields) {
46954
+ /**
46955
+ * Version header. */
46956
+ this.boxVersion = '2025.0';
46957
+ /**
46958
+ * Extra headers that will be included in the HTTP request. */
46959
+ this.extraHeaders = {};
46960
+ if (fields.boxVersion !== undefined) {
46961
+ this.boxVersion = fields.boxVersion;
46962
+ }
46963
+ if (fields.extraHeaders !== undefined) {
46964
+ this.extraHeaders = fields.extraHeaders;
46965
+ }
46966
+ }
46967
+ }
46968
+ class EnterpriseConfigurationsManager {
46969
+ constructor(fields) {
46970
+ this.networkSession = new NetworkSession({});
46971
+ if (fields.auth !== undefined) {
46972
+ this.auth = fields.auth;
46973
+ }
46974
+ if (fields.networkSession !== undefined) {
46975
+ this.networkSession = fields.networkSession;
46976
+ }
46977
+ }
46978
+ /**
46979
+ * Retrieves the configuration for an enterprise.
46980
+ * @param {string} enterpriseId The ID of the enterprise.
46981
+ Example: "3442311"
46982
+ * @param {GetEnterpriseConfigurationByIdV2025R0QueryParams} queryParams Query parameters of getEnterpriseConfigurationByIdV2025R0 method
46983
+ * @param {GetEnterpriseConfigurationByIdV2025R0OptionalsInput} optionalsInput
46984
+ * @returns {Promise<EnterpriseConfigurationV2025R0>}
46985
+ */
46986
+ getEnterpriseConfigurationByIdV2025R0(enterpriseId_1, queryParams_1) {
46987
+ return __awaiter$1(this, arguments, void 0, function* (enterpriseId, queryParams, optionalsInput = {}) {
46988
+ const optionals = new GetEnterpriseConfigurationByIdV2025R0Optionals({
46989
+ headers: optionalsInput.headers,
46990
+ cancellationToken: optionalsInput.cancellationToken,
46991
+ });
46992
+ const headers = optionals.headers;
46993
+ const cancellationToken = optionals.cancellationToken;
46994
+ const queryParamsMap = prepareParams({
46995
+ ['categories']: queryParams.categories
46996
+ ? queryParams.categories.map(toString).join(',')
46997
+ : undefined,
46998
+ });
46999
+ const headersMap = prepareParams(Object.assign({ ['box-version']: toString(headers.boxVersion) }, headers.extraHeaders));
47000
+ const response = yield this.networkSession.networkClient.fetch(new FetchOptions({
47001
+ url: ''.concat(this.networkSession.baseUrls.baseUrl, '/2.0/enterprise_configurations/', toString(enterpriseId)),
47002
+ method: 'GET',
47003
+ params: queryParamsMap,
47004
+ headers: headersMap,
47005
+ responseFormat: 'json',
47006
+ auth: this.auth,
47007
+ networkSession: this.networkSession,
47008
+ cancellationToken: cancellationToken,
47009
+ }));
47010
+ return Object.assign(Object.assign({}, deserializeEnterpriseConfigurationV2025R0(response.data)), { rawData: response.data });
47011
+ });
47012
+ }
47013
+ }
47014
+
45433
47015
  function deserializeHubBaseV2025R0TypeField(val) {
45434
47016
  if (val == 'hubs') {
45435
47017
  return val;
@@ -46918,7 +48500,7 @@
46918
48500
  return val;
46919
48501
  }
46920
48502
  function deserializeWeblinkReferenceV2025R0TypeField(val) {
46921
- if (val == 'weblink') {
48503
+ if (val == 'web_link') {
46922
48504
  return val;
46923
48505
  }
46924
48506
  throw new BoxSdkError({
@@ -46964,7 +48546,7 @@
46964
48546
  if (val.type == 'folder') {
46965
48547
  return serializeFolderReferenceV2025R0(val);
46966
48548
  }
46967
- if (val.type == 'weblink') {
48549
+ if (val.type == 'web_link') {
46968
48550
  return serializeWeblinkReferenceV2025R0(val);
46969
48551
  }
46970
48552
  throw new BoxSdkError({ message: 'unknown type' });
@@ -46981,7 +48563,7 @@
46981
48563
  if (val.type == 'folder') {
46982
48564
  return deserializeFolderReferenceV2025R0(val);
46983
48565
  }
46984
- if (val.type == 'weblink') {
48566
+ if (val.type == 'web_link') {
46985
48567
  return deserializeWeblinkReferenceV2025R0(val);
46986
48568
  }
46987
48569
  throw new BoxSdkError({
@@ -48024,6 +49606,36 @@
48024
49606
  message: "Can't deserialize ArchiveV2025R0TypeField",
48025
49607
  });
48026
49608
  }
49609
+ function deserializeArchiveV2025R0OwnedByField(val) {
49610
+ if (!sdIsMap(val)) {
49611
+ throw new BoxSdkError({
49612
+ message: 'Expecting a map for "ArchiveV2025R0OwnedByField"',
49613
+ });
49614
+ }
49615
+ if (val.id == void 0) {
49616
+ throw new BoxSdkError({
49617
+ message: 'Expecting "id" of type "ArchiveV2025R0OwnedByField" to be defined',
49618
+ });
49619
+ }
49620
+ if (!sdIsString(val.id)) {
49621
+ throw new BoxSdkError({
49622
+ message: 'Expecting string for "id" of type "ArchiveV2025R0OwnedByField"',
49623
+ });
49624
+ }
49625
+ const id = val.id;
49626
+ if (val.type == void 0) {
49627
+ throw new BoxSdkError({
49628
+ message: 'Expecting "type" of type "ArchiveV2025R0OwnedByField" to be defined',
49629
+ });
49630
+ }
49631
+ if (!sdIsString(val.type)) {
49632
+ throw new BoxSdkError({
49633
+ message: 'Expecting string for "type" of type "ArchiveV2025R0OwnedByField"',
49634
+ });
49635
+ }
49636
+ const type = val.type;
49637
+ return { id: id, type: type };
49638
+ }
48027
49639
  function deserializeArchiveV2025R0(val) {
48028
49640
  if (!sdIsMap(val)) {
48029
49641
  throw new BoxSdkError({ message: 'Expecting a map for "ArchiveV2025R0"' });
@@ -48067,11 +49679,22 @@
48067
49679
  });
48068
49680
  }
48069
49681
  const size = val.size;
49682
+ if (!(val.description == void 0) && !sdIsString(val.description)) {
49683
+ throw new BoxSdkError({
49684
+ message: 'Expecting string for "description" of type "ArchiveV2025R0"',
49685
+ });
49686
+ }
49687
+ const description = val.description == void 0 ? void 0 : val.description;
49688
+ const ownedBy = val.owned_by == void 0
49689
+ ? void 0
49690
+ : deserializeArchiveV2025R0OwnedByField(val.owned_by);
48070
49691
  return {
48071
49692
  id: id,
48072
49693
  type: type,
48073
49694
  name: name,
48074
49695
  size: size,
49696
+ description: description,
49697
+ ownedBy: ownedBy,
48075
49698
  };
48076
49699
  }
48077
49700
 
@@ -48134,6 +49757,22 @@
48134
49757
  }
48135
49758
  }
48136
49759
  }
49760
+ class UpdateArchiveByIdV2025R0Optionals {
49761
+ constructor(fields) {
49762
+ this.requestBody = {};
49763
+ this.headers = new UpdateArchiveByIdV2025R0Headers({});
49764
+ this.cancellationToken = void 0;
49765
+ if (fields.requestBody !== undefined) {
49766
+ this.requestBody = fields.requestBody;
49767
+ }
49768
+ if (fields.headers !== undefined) {
49769
+ this.headers = fields.headers;
49770
+ }
49771
+ if (fields.cancellationToken !== undefined) {
49772
+ this.cancellationToken = fields.cancellationToken;
49773
+ }
49774
+ }
49775
+ }
48137
49776
  class GetArchivesV2025R0Headers {
48138
49777
  constructor(fields) {
48139
49778
  /**
@@ -48182,6 +49821,22 @@
48182
49821
  }
48183
49822
  }
48184
49823
  }
49824
+ class UpdateArchiveByIdV2025R0Headers {
49825
+ constructor(fields) {
49826
+ /**
49827
+ * Version header. */
49828
+ this.boxVersion = '2025.0';
49829
+ /**
49830
+ * Extra headers that will be included in the HTTP request. */
49831
+ this.extraHeaders = {};
49832
+ if (fields.boxVersion !== undefined) {
49833
+ this.boxVersion = fields.boxVersion;
49834
+ }
49835
+ if (fields.extraHeaders !== undefined) {
49836
+ this.extraHeaders = fields.extraHeaders;
49837
+ }
49838
+ }
49839
+ }
48185
49840
  class ArchivesManager {
48186
49841
  constructor(fields) {
48187
49842
  this.networkSession = new NetworkSession({});
@@ -48286,9 +49941,50 @@
48286
49941
  return void 0;
48287
49942
  });
48288
49943
  }
49944
+ /**
49945
+ * Updates an archive.
49946
+ *
49947
+ * To learn more about the archive APIs, see the [Archive API Guide](g://archives).
49948
+ * @param {string} archiveId The ID of the archive.
49949
+ Example: "982312"
49950
+ * @param {UpdateArchiveByIdV2025R0OptionalsInput} optionalsInput
49951
+ * @returns {Promise<ArchiveV2025R0>}
49952
+ */
49953
+ updateArchiveByIdV2025R0(archiveId_1) {
49954
+ return __awaiter$1(this, arguments, void 0, function* (archiveId, optionalsInput = {}) {
49955
+ const optionals = new UpdateArchiveByIdV2025R0Optionals({
49956
+ requestBody: optionalsInput.requestBody,
49957
+ headers: optionalsInput.headers,
49958
+ cancellationToken: optionalsInput.cancellationToken,
49959
+ });
49960
+ const requestBody = optionals.requestBody;
49961
+ const headers = optionals.headers;
49962
+ const cancellationToken = optionals.cancellationToken;
49963
+ const headersMap = prepareParams(Object.assign({ ['box-version']: toString(headers.boxVersion) }, headers.extraHeaders));
49964
+ const response = yield this.networkSession.networkClient.fetch(new FetchOptions({
49965
+ url: ''.concat(this.networkSession.baseUrls.baseUrl, '/2.0/archives/', toString(archiveId)),
49966
+ method: 'PUT',
49967
+ headers: headersMap,
49968
+ data: serializeUpdateArchiveByIdV2025R0RequestBody(requestBody),
49969
+ contentType: 'application/json',
49970
+ responseFormat: 'json',
49971
+ auth: this.auth,
49972
+ networkSession: this.networkSession,
49973
+ cancellationToken: cancellationToken,
49974
+ }));
49975
+ return Object.assign(Object.assign({}, deserializeArchiveV2025R0(response.data)), { rawData: response.data });
49976
+ });
49977
+ }
48289
49978
  }
48290
49979
  function serializeCreateArchiveV2025R0RequestBody(val) {
48291
- return { ['name']: val.name };
49980
+ return {
49981
+ ['name']: val.name,
49982
+ ['description']: val.description,
49983
+ ['storage_policy_id']: val.storagePolicyId,
49984
+ };
49985
+ }
49986
+ function serializeUpdateArchiveByIdV2025R0RequestBody(val) {
49987
+ return { ['name']: val.name, ['description']: val.description };
48292
49988
  }
48293
49989
 
48294
49990
  function deserializeExternalUserDeletionResultV2025R0(val) {
@@ -48759,6 +50455,10 @@
48759
50455
  auth: this.auth,
48760
50456
  networkSession: this.networkSession,
48761
50457
  });
50458
+ this.enterpriseConfigurations = new EnterpriseConfigurationsManager({
50459
+ auth: this.auth,
50460
+ networkSession: this.networkSession,
50461
+ });
48762
50462
  this.hubs = new HubsManager({
48763
50463
  auth: this.auth,
48764
50464
  networkSession: this.networkSession,