box-node-sdk 10.5.0 → 10.6.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 (205) hide show
  1. package/lib/bundle.js +655 -10
  2. package/lib/bundle.js.map +1 -1
  3. package/lib/client.d.ts +3 -1
  4. package/lib/client.d.ts.map +1 -1
  5. package/lib/client.js +5 -0
  6. package/lib/client.js.map +1 -1
  7. package/lib/managers/hubDocument.d.ts +133 -0
  8. package/lib/managers/hubDocument.d.ts.map +1 -0
  9. package/lib/managers/hubDocument.js +162 -0
  10. package/lib/managers/hubDocument.js.map +1 -0
  11. package/lib/managers/hubItems.d.ts +7 -0
  12. package/lib/managers/hubItems.d.ts.map +1 -1
  13. package/lib/managers/hubItems.js +1 -0
  14. package/lib/managers/hubItems.js.map +1 -1
  15. package/lib/managers/index.d.ts +1 -0
  16. package/lib/managers/index.d.ts.map +1 -1
  17. package/lib/managers/index.js +1 -0
  18. package/lib/managers/index.js.map +1 -1
  19. package/lib/managers/search.d.ts +1 -1
  20. package/lib/managers/search.d.ts.map +1 -1
  21. package/lib/managers/search.js +1 -1
  22. package/lib/managers/search.js.map +1 -1
  23. package/lib/managers/trashedItems.d.ts +2 -0
  24. package/lib/managers/trashedItems.d.ts.map +1 -1
  25. package/lib/managers/trashedItems.js +2 -0
  26. package/lib/managers/trashedItems.js.map +1 -1
  27. package/lib/networking/version.d.ts +1 -1
  28. package/lib/networking/version.js +1 -1
  29. package/lib/schemas/aiAgentBasicTextToolBase.d.ts +1 -1
  30. package/lib/schemas/aiAgentBasicTextToolBase.d.ts.map +1 -1
  31. package/lib/schemas/aiAgentSpreadsheetTool.d.ts +1 -1
  32. package/lib/schemas/aiAgentSpreadsheetTool.d.ts.map +1 -1
  33. package/lib/schemas/aiExtractStructured.d.ts +3 -0
  34. package/lib/schemas/aiExtractStructured.d.ts.map +1 -1
  35. package/lib/schemas/aiExtractStructured.js +9 -0
  36. package/lib/schemas/aiExtractStructured.js.map +1 -1
  37. package/lib/schemas/aiExtractStructuredResponse.d.ts +5 -0
  38. package/lib/schemas/aiExtractStructuredResponse.d.ts.map +1 -1
  39. package/lib/schemas/aiExtractStructuredResponse.js +24 -0
  40. package/lib/schemas/aiExtractStructuredResponse.js.map +1 -1
  41. package/lib/schemas/index.d.ts +5 -5
  42. package/lib/schemas/index.d.ts.map +1 -1
  43. package/lib/schemas/index.js +5 -5
  44. package/lib/schemas/index.js.map +1 -1
  45. package/lib/schemas/legalHoldPolicyAssignedItem.d.ts +13 -5
  46. package/lib/schemas/legalHoldPolicyAssignedItem.d.ts.map +1 -1
  47. package/lib/schemas/legalHoldPolicyAssignedItem.js +47 -24
  48. package/lib/schemas/legalHoldPolicyAssignedItem.js.map +1 -1
  49. package/lib/schemas/legalHoldPolicyAssignment.d.ts.map +1 -1
  50. package/lib/schemas/legalHoldPolicyAssignment.js.map +1 -1
  51. package/lib/schemas/v2025R0/hubCalloutBoxTextBlockV2025R0.d.ts +20 -0
  52. package/lib/schemas/v2025R0/hubCalloutBoxTextBlockV2025R0.d.ts.map +1 -0
  53. package/lib/schemas/v2025R0/hubCalloutBoxTextBlockV2025R0.js +105 -0
  54. package/lib/schemas/v2025R0/hubCalloutBoxTextBlockV2025R0.js.map +1 -0
  55. package/lib/schemas/v2025R0/hubDividerBlockV2025R0.d.ts +17 -0
  56. package/lib/schemas/v2025R0/hubDividerBlockV2025R0.d.ts.map +1 -0
  57. package/lib/schemas/v2025R0/hubDividerBlockV2025R0.js +87 -0
  58. package/lib/schemas/v2025R0/hubDividerBlockV2025R0.js.map +1 -0
  59. package/lib/schemas/v2025R0/hubDocumentBlockEntryV2025R0.d.ts +10 -0
  60. package/lib/schemas/v2025R0/hubDocumentBlockEntryV2025R0.d.ts.map +1 -0
  61. package/lib/schemas/v2025R0/hubDocumentBlockEntryV2025R0.js +60 -0
  62. package/lib/schemas/v2025R0/hubDocumentBlockEntryV2025R0.js.map +1 -0
  63. package/lib/schemas/v2025R0/hubDocumentBlockV2025R0.d.ts +13 -0
  64. package/lib/schemas/v2025R0/hubDocumentBlockV2025R0.d.ts.map +1 -0
  65. package/lib/schemas/v2025R0/hubDocumentBlockV2025R0.js +36 -0
  66. package/lib/schemas/v2025R0/hubDocumentBlockV2025R0.js.map +1 -0
  67. package/lib/schemas/v2025R0/hubDocumentBlocksV2025R0.d.ts +45 -0
  68. package/lib/schemas/v2025R0/hubDocumentBlocksV2025R0.d.ts.map +1 -0
  69. package/lib/schemas/v2025R0/hubDocumentBlocksV2025R0.js +162 -0
  70. package/lib/schemas/v2025R0/hubDocumentBlocksV2025R0.js.map +1 -0
  71. package/lib/schemas/v2025R0/hubDocumentPageV2025R0.d.ts +19 -0
  72. package/lib/schemas/v2025R0/hubDocumentPageV2025R0.d.ts.map +1 -0
  73. package/lib/schemas/v2025R0/hubDocumentPageV2025R0.js +68 -0
  74. package/lib/schemas/v2025R0/hubDocumentPageV2025R0.js.map +1 -0
  75. package/lib/schemas/v2025R0/hubDocumentPagesV2025R0.d.ts +45 -0
  76. package/lib/schemas/v2025R0/hubDocumentPagesV2025R0.d.ts.map +1 -0
  77. package/lib/schemas/v2025R0/hubDocumentPagesV2025R0.js +162 -0
  78. package/lib/schemas/v2025R0/hubDocumentPagesV2025R0.js.map +1 -0
  79. package/lib/schemas/v2025R0/hubItemListBlockV2025R0.d.ts +17 -0
  80. package/lib/schemas/v2025R0/hubItemListBlockV2025R0.d.ts.map +1 -0
  81. package/lib/schemas/v2025R0/hubItemListBlockV2025R0.js +87 -0
  82. package/lib/schemas/v2025R0/hubItemListBlockV2025R0.js.map +1 -0
  83. package/lib/schemas/v2025R0/hubItemOperationResultV2025R0.d.ts +3 -0
  84. package/lib/schemas/v2025R0/hubItemOperationResultV2025R0.d.ts.map +1 -1
  85. package/lib/schemas/v2025R0/hubItemOperationResultV2025R0.js +8 -0
  86. package/lib/schemas/v2025R0/hubItemOperationResultV2025R0.js.map +1 -1
  87. package/lib/schemas/v2025R0/hubItemOperationV2025R0.d.ts +3 -0
  88. package/lib/schemas/v2025R0/hubItemOperationV2025R0.d.ts.map +1 -1
  89. package/lib/schemas/v2025R0/hubItemOperationV2025R0.js +12 -1
  90. package/lib/schemas/v2025R0/hubItemOperationV2025R0.js.map +1 -1
  91. package/lib/schemas/v2025R0/hubParagraphTextBlockV2025R0.d.ts +20 -0
  92. package/lib/schemas/v2025R0/hubParagraphTextBlockV2025R0.d.ts.map +1 -0
  93. package/lib/schemas/v2025R0/hubParagraphTextBlockV2025R0.js +105 -0
  94. package/lib/schemas/v2025R0/hubParagraphTextBlockV2025R0.js.map +1 -0
  95. package/lib/schemas/v2025R0/hubSectionTitleTextBlockV2025R0.d.ts +20 -0
  96. package/lib/schemas/v2025R0/hubSectionTitleTextBlockV2025R0.d.ts.map +1 -0
  97. package/lib/schemas/v2025R0/hubSectionTitleTextBlockV2025R0.js +105 -0
  98. package/lib/schemas/v2025R0/hubSectionTitleTextBlockV2025R0.js.map +1 -0
  99. package/lib/schemas/v2025R0/index.d.ts +10 -0
  100. package/lib/schemas/v2025R0/index.d.ts.map +1 -1
  101. package/lib/schemas/v2025R0/index.js +10 -0
  102. package/lib/schemas/v2025R0/index.js.map +1 -1
  103. package/lib-esm/client.d.ts +3 -1
  104. package/lib-esm/client.js +6 -0
  105. package/lib-esm/client.js.map +1 -1
  106. package/lib-esm/managers/hubDocument.d.ts +132 -0
  107. package/lib-esm/managers/hubDocument.js +154 -0
  108. package/lib-esm/managers/hubDocument.js.map +1 -0
  109. package/lib-esm/managers/hubItems.d.ts +7 -0
  110. package/lib-esm/managers/hubItems.js +1 -0
  111. package/lib-esm/managers/hubItems.js.map +1 -1
  112. package/lib-esm/managers/index.d.ts +1 -0
  113. package/lib-esm/managers/index.js +1 -0
  114. package/lib-esm/managers/index.js.map +1 -1
  115. package/lib-esm/managers/search.d.ts +1 -1
  116. package/lib-esm/managers/search.js +1 -1
  117. package/lib-esm/managers/search.js.map +1 -1
  118. package/lib-esm/managers/trashedItems.d.ts +2 -0
  119. package/lib-esm/managers/trashedItems.js +2 -0
  120. package/lib-esm/managers/trashedItems.js.map +1 -1
  121. package/lib-esm/networking/version.d.ts +1 -1
  122. package/lib-esm/networking/version.js +1 -1
  123. package/lib-esm/schemas/aiAgentBasicTextToolBase.d.ts +1 -1
  124. package/lib-esm/schemas/aiAgentSpreadsheetTool.d.ts +1 -1
  125. package/lib-esm/schemas/aiExtractStructured.d.ts +3 -0
  126. package/lib-esm/schemas/aiExtractStructured.js +9 -0
  127. package/lib-esm/schemas/aiExtractStructured.js.map +1 -1
  128. package/lib-esm/schemas/aiExtractStructuredResponse.d.ts +5 -0
  129. package/lib-esm/schemas/aiExtractStructuredResponse.js +24 -0
  130. package/lib-esm/schemas/aiExtractStructuredResponse.js.map +1 -1
  131. package/lib-esm/schemas/index.d.ts +5 -5
  132. package/lib-esm/schemas/index.js +5 -5
  133. package/lib-esm/schemas/index.js.map +1 -1
  134. package/lib-esm/schemas/legalHoldPolicyAssignedItem.d.ts +13 -5
  135. package/lib-esm/schemas/legalHoldPolicyAssignedItem.js +44 -23
  136. package/lib-esm/schemas/legalHoldPolicyAssignedItem.js.map +1 -1
  137. package/lib-esm/schemas/legalHoldPolicyAssignment.js.map +1 -1
  138. package/lib-esm/schemas/v2025R0/hubCalloutBoxTextBlockV2025R0.d.ts +19 -0
  139. package/lib-esm/schemas/v2025R0/hubCalloutBoxTextBlockV2025R0.js +106 -0
  140. package/lib-esm/schemas/v2025R0/hubCalloutBoxTextBlockV2025R0.js.map +1 -0
  141. package/lib-esm/schemas/v2025R0/hubDividerBlockV2025R0.d.ts +16 -0
  142. package/lib-esm/schemas/v2025R0/hubDividerBlockV2025R0.js +85 -0
  143. package/lib-esm/schemas/v2025R0/hubDividerBlockV2025R0.js.map +1 -0
  144. package/lib-esm/schemas/v2025R0/hubDocumentBlockEntryV2025R0.d.ts +9 -0
  145. package/lib-esm/schemas/v2025R0/hubDocumentBlockEntryV2025R0.js +56 -0
  146. package/lib-esm/schemas/v2025R0/hubDocumentBlockEntryV2025R0.js.map +1 -0
  147. package/lib-esm/schemas/v2025R0/hubDocumentBlockV2025R0.d.ts +12 -0
  148. package/lib-esm/schemas/v2025R0/hubDocumentBlockV2025R0.js +32 -0
  149. package/lib-esm/schemas/v2025R0/hubDocumentBlockV2025R0.js.map +1 -0
  150. package/lib-esm/schemas/v2025R0/hubDocumentBlocksV2025R0.d.ts +44 -0
  151. package/lib-esm/schemas/v2025R0/hubDocumentBlocksV2025R0.js +164 -0
  152. package/lib-esm/schemas/v2025R0/hubDocumentBlocksV2025R0.js.map +1 -0
  153. package/lib-esm/schemas/v2025R0/hubDocumentPageV2025R0.d.ts +18 -0
  154. package/lib-esm/schemas/v2025R0/hubDocumentPageV2025R0.js +64 -0
  155. package/lib-esm/schemas/v2025R0/hubDocumentPageV2025R0.js.map +1 -0
  156. package/lib-esm/schemas/v2025R0/hubDocumentPagesV2025R0.d.ts +44 -0
  157. package/lib-esm/schemas/v2025R0/hubDocumentPagesV2025R0.js +164 -0
  158. package/lib-esm/schemas/v2025R0/hubDocumentPagesV2025R0.js.map +1 -0
  159. package/lib-esm/schemas/v2025R0/hubItemListBlockV2025R0.d.ts +16 -0
  160. package/lib-esm/schemas/v2025R0/hubItemListBlockV2025R0.js +85 -0
  161. package/lib-esm/schemas/v2025R0/hubItemListBlockV2025R0.js.map +1 -0
  162. package/lib-esm/schemas/v2025R0/hubItemOperationResultV2025R0.d.ts +3 -0
  163. package/lib-esm/schemas/v2025R0/hubItemOperationResultV2025R0.js +8 -0
  164. package/lib-esm/schemas/v2025R0/hubItemOperationResultV2025R0.js.map +1 -1
  165. package/lib-esm/schemas/v2025R0/hubItemOperationV2025R0.d.ts +3 -0
  166. package/lib-esm/schemas/v2025R0/hubItemOperationV2025R0.js +12 -1
  167. package/lib-esm/schemas/v2025R0/hubItemOperationV2025R0.js.map +1 -1
  168. package/lib-esm/schemas/v2025R0/hubParagraphTextBlockV2025R0.d.ts +19 -0
  169. package/lib-esm/schemas/v2025R0/hubParagraphTextBlockV2025R0.js +106 -0
  170. package/lib-esm/schemas/v2025R0/hubParagraphTextBlockV2025R0.js.map +1 -0
  171. package/lib-esm/schemas/v2025R0/hubSectionTitleTextBlockV2025R0.d.ts +19 -0
  172. package/lib-esm/schemas/v2025R0/hubSectionTitleTextBlockV2025R0.js +106 -0
  173. package/lib-esm/schemas/v2025R0/hubSectionTitleTextBlockV2025R0.js.map +1 -0
  174. package/lib-esm/schemas/v2025R0/index.d.ts +10 -0
  175. package/lib-esm/schemas/v2025R0/index.js +10 -0
  176. package/lib-esm/schemas/v2025R0/index.js.map +1 -1
  177. package/package.json +1 -1
  178. package/src/client.ts +7 -0
  179. package/src/managers/hubDocument.ts +330 -0
  180. package/src/managers/hubItems.ts +8 -0
  181. package/src/managers/index.ts +1 -0
  182. package/src/managers/search.ts +2 -2
  183. package/src/managers/trashedItems.ts +2 -0
  184. package/src/networking/version.ts +1 -1
  185. package/src/schemas/aiAgentBasicTextToolBase.ts +1 -1
  186. package/src/schemas/aiAgentSpreadsheetTool.ts +1 -1
  187. package/src/schemas/aiExtractStructured.ts +16 -0
  188. package/src/schemas/aiExtractStructuredResponse.ts +44 -0
  189. package/src/schemas/index.ts +5 -5
  190. package/src/schemas/legalHoldPolicyAssignedItem.ts +69 -27
  191. package/src/schemas/legalHoldPolicyAssignment.ts +0 -9
  192. package/src/schemas/v2025R0/hubCalloutBoxTextBlockV2025R0.ts +133 -0
  193. package/src/schemas/v2025R0/hubDividerBlockV2025R0.ts +108 -0
  194. package/src/schemas/v2025R0/hubDocumentBlockEntryV2025R0.ts +76 -0
  195. package/src/schemas/v2025R0/hubDocumentBlockV2025R0.ts +51 -0
  196. package/src/schemas/v2025R0/hubDocumentBlocksV2025R0.ts +238 -0
  197. package/src/schemas/v2025R0/hubDocumentPageV2025R0.ts +92 -0
  198. package/src/schemas/v2025R0/hubDocumentPagesV2025R0.ts +218 -0
  199. package/src/schemas/v2025R0/hubItemListBlockV2025R0.ts +108 -0
  200. package/src/schemas/v2025R0/hubItemOperationResultV2025R0.ts +13 -0
  201. package/src/schemas/v2025R0/hubItemOperationV2025R0.ts +17 -1
  202. package/src/schemas/v2025R0/hubParagraphTextBlockV2025R0.ts +133 -0
  203. package/src/schemas/v2025R0/hubSectionTitleTextBlockV2025R0.ts +133 -0
  204. package/src/schemas/v2025R0/index.ts +10 -0
  205. package/src/test/hubDocument.test.ts +91 -0
package/lib/bundle.js CHANGED
@@ -3622,7 +3622,7 @@
3622
3622
  var browserExports = browser.exports;
3623
3623
  var nodeFetch = /*@__PURE__*/getDefaultExportFromCjs(browserExports);
3624
3624
 
3625
- const sdkVersion = '10.5.0';
3625
+ const sdkVersion = '10.6.0';
3626
3626
 
3627
3627
  class BoxRetryStrategy {
3628
3628
  constructor(fields) {
@@ -19611,6 +19611,8 @@
19611
19611
  *
19612
19612
  * This endpoint defaults to use offset-based pagination, yet also supports
19613
19613
  * marker-based pagination using the `marker` parameter.
19614
+ *
19615
+ * The number of entries returned may be less than `total_count`. For example, if a user deletes items from a shared folder and is later removed as a collaborator, those deleted items will no longer appear in this endpoint’s results, even though they are still included in `total_count`.
19614
19616
  * @param {GetTrashedItemsQueryParams} queryParams Query parameters of getTrashedItems method
19615
19617
  * @param {GetTrashedItemsHeadersInput} headersInput Headers of getTrashedItems method
19616
19618
  * @param {CancellationToken} cancellationToken Token used for request cancellation.
@@ -32348,24 +32350,53 @@
32348
32350
  });
32349
32351
  }
32350
32352
 
32353
+ function deserializeLegalHoldPolicyAssignedItemTypeField(val) {
32354
+ if (val == 'file') {
32355
+ return val;
32356
+ }
32357
+ if (val == 'file_version') {
32358
+ return val;
32359
+ }
32360
+ if (val == 'folder') {
32361
+ return val;
32362
+ }
32363
+ if (val == 'user') {
32364
+ return val;
32365
+ }
32366
+ if (val == 'ownership') {
32367
+ return val;
32368
+ }
32369
+ if (val == 'interactions') {
32370
+ return val;
32371
+ }
32372
+ throw new BoxSdkError({
32373
+ message: "Can't deserialize LegalHoldPolicyAssignedItemTypeField",
32374
+ });
32375
+ }
32351
32376
  function deserializeLegalHoldPolicyAssignedItem(val) {
32352
32377
  if (!sdIsMap(val)) {
32353
32378
  throw new BoxSdkError({
32354
32379
  message: 'Expecting a map for "LegalHoldPolicyAssignedItem"',
32355
32380
  });
32356
32381
  }
32357
- if (val.type == 'file') {
32358
- return deserializeFile(val);
32382
+ if (val.type == void 0) {
32383
+ throw new BoxSdkError({
32384
+ message: 'Expecting "type" of type "LegalHoldPolicyAssignedItem" to be defined',
32385
+ });
32359
32386
  }
32360
- if (val.type == 'folder') {
32361
- return deserializeFolder(val);
32387
+ const type = deserializeLegalHoldPolicyAssignedItemTypeField(val.type);
32388
+ if (val.id == void 0) {
32389
+ throw new BoxSdkError({
32390
+ message: 'Expecting "id" of type "LegalHoldPolicyAssignedItem" to be defined',
32391
+ });
32362
32392
  }
32363
- if (val.type == 'web_link') {
32364
- return deserializeWebLink(val);
32393
+ if (!sdIsString(val.id)) {
32394
+ throw new BoxSdkError({
32395
+ message: 'Expecting string for "id" of type "LegalHoldPolicyAssignedItem"',
32396
+ });
32365
32397
  }
32366
- throw new BoxSdkError({
32367
- message: "Can't deserialize LegalHoldPolicyAssignedItem",
32368
- });
32398
+ const id = val.id;
32399
+ return { type: type, id: id };
32369
32400
  }
32370
32401
 
32371
32402
  function deserializeLegalHoldPolicyAssignment(val) {
@@ -43254,6 +43285,21 @@
43254
43285
  })(v),
43255
43286
  ]))
43256
43287
  : {};
43288
+ if (!(val.reference == void 0) && !sdIsMap(val.reference)) {
43289
+ throw new BoxSdkError({
43290
+ message: 'Expecting object for "reference" of type "AiExtractStructuredResponse"',
43291
+ });
43292
+ }
43293
+ const reference = val.reference == void 0
43294
+ ? void 0
43295
+ : sdIsMap(val.reference)
43296
+ ? Object.fromEntries(Object.entries(val.reference).map(([k, v]) => [
43297
+ k,
43298
+ (function (v) {
43299
+ return v;
43300
+ })(v),
43301
+ ]))
43302
+ : {};
43257
43303
  const aiAgentInfo = val.ai_agent_info == void 0
43258
43304
  ? void 0
43259
43305
  : deserializeAiAgentInfo(val.ai_agent_info);
@@ -43262,6 +43308,7 @@
43262
43308
  createdAt: createdAt,
43263
43309
  completionReason: completionReason,
43264
43310
  confidenceScore: confidenceScore,
43311
+ reference: reference,
43265
43312
  aiAgentInfo: aiAgentInfo,
43266
43313
  };
43267
43314
  }
@@ -43319,6 +43366,7 @@
43319
43366
  return serializeAiExtractStructuredFieldsField(item);
43320
43367
  }),
43321
43368
  ['include_confidence_score']: val.includeConfidenceScore,
43369
+ ['include_reference']: val.includeReference,
43322
43370
  ['ai_agent']: val.aiAgent == void 0
43323
43371
  ? val.aiAgent
43324
43372
  : serializeAiExtractStructuredAgent(val.aiAgent),
@@ -50515,6 +50563,12 @@
50515
50563
  }
50516
50564
  const action = val.action == void 0 ? void 0 : val.action;
50517
50565
  const item = val.item == void 0 ? void 0 : deserializeHubItemReferenceV2025R0(val.item);
50566
+ if (!(val.parent_id == void 0) && !sdIsString(val.parent_id)) {
50567
+ throw new BoxSdkError({
50568
+ message: 'Expecting string for "parent_id" of type "HubItemOperationResultV2025R0"',
50569
+ });
50570
+ }
50571
+ const parentId = val.parent_id == void 0 ? void 0 : val.parent_id;
50518
50572
  if (!(val.status == void 0) && !sdIsNumber(val.status)) {
50519
50573
  throw new BoxSdkError({
50520
50574
  message: 'Expecting number for "status" of type "HubItemOperationResultV2025R0"',
@@ -50530,6 +50584,7 @@
50530
50584
  return {
50531
50585
  action: action,
50532
50586
  item: item,
50587
+ parentId: parentId,
50533
50588
  status: status,
50534
50589
  error: error,
50535
50590
  };
@@ -50566,6 +50621,7 @@
50566
50621
  return {
50567
50622
  ['action']: serializeHubItemOperationV2025R0ActionField(val.action),
50568
50623
  ['item']: serializeHubItemReferenceV2025R0(val.item),
50624
+ ['parent_id']: val.parentId,
50569
50625
  };
50570
50626
  }
50571
50627
 
@@ -50661,6 +50717,7 @@
50661
50717
  const cancellationToken = optionals.cancellationToken;
50662
50718
  const queryParamsMap = prepareParams({
50663
50719
  ['hub_id']: toString(queryParams.hubId),
50720
+ ['parent_id']: toString(queryParams.parentId),
50664
50721
  ['marker']: toString(queryParams.marker),
50665
50722
  ['limit']: toString(queryParams.limit),
50666
50723
  });
@@ -50717,6 +50774,590 @@
50717
50774
  }
50718
50775
  }
50719
50776
 
50777
+ function deserializeHubDocumentPageV2025R0(val) {
50778
+ if (!sdIsMap(val)) {
50779
+ throw new BoxSdkError({
50780
+ message: 'Expecting a map for "HubDocumentPageV2025R0"',
50781
+ });
50782
+ }
50783
+ if (val.id == void 0) {
50784
+ throw new BoxSdkError({
50785
+ message: 'Expecting "id" of type "HubDocumentPageV2025R0" to be defined',
50786
+ });
50787
+ }
50788
+ if (!sdIsString(val.id)) {
50789
+ throw new BoxSdkError({
50790
+ message: 'Expecting string for "id" of type "HubDocumentPageV2025R0"',
50791
+ });
50792
+ }
50793
+ const id = val.id;
50794
+ if (val.type == void 0) {
50795
+ throw new BoxSdkError({
50796
+ message: 'Expecting "type" of type "HubDocumentPageV2025R0" to be defined',
50797
+ });
50798
+ }
50799
+ if (!sdIsString(val.type)) {
50800
+ throw new BoxSdkError({
50801
+ message: 'Expecting string for "type" of type "HubDocumentPageV2025R0"',
50802
+ });
50803
+ }
50804
+ const type = val.type;
50805
+ if (!(val.parent_id == void 0) && !sdIsString(val.parent_id)) {
50806
+ throw new BoxSdkError({
50807
+ message: 'Expecting string for "parent_id" of type "HubDocumentPageV2025R0"',
50808
+ });
50809
+ }
50810
+ const parentId = val.parent_id == void 0 ? void 0 : val.parent_id;
50811
+ if (val.title_fragment == void 0) {
50812
+ throw new BoxSdkError({
50813
+ message: 'Expecting "title_fragment" of type "HubDocumentPageV2025R0" to be defined',
50814
+ });
50815
+ }
50816
+ if (!sdIsString(val.title_fragment)) {
50817
+ throw new BoxSdkError({
50818
+ message: 'Expecting string for "title_fragment" of type "HubDocumentPageV2025R0"',
50819
+ });
50820
+ }
50821
+ const titleFragment = val.title_fragment;
50822
+ return {
50823
+ id: id,
50824
+ type: type,
50825
+ parentId: parentId,
50826
+ titleFragment: titleFragment,
50827
+ };
50828
+ }
50829
+
50830
+ function deserializeHubDocumentPagesV2025R0TypeField(val) {
50831
+ if (val == 'document_pages') {
50832
+ return val;
50833
+ }
50834
+ throw new BoxSdkError({
50835
+ message: "Can't deserialize HubDocumentPagesV2025R0TypeField",
50836
+ });
50837
+ }
50838
+ function deserializeHubDocumentPagesV2025R0(val) {
50839
+ if (!sdIsMap(val)) {
50840
+ throw new BoxSdkError({
50841
+ message: 'Expecting a map for "HubDocumentPagesV2025R0"',
50842
+ });
50843
+ }
50844
+ if (val.entries == void 0) {
50845
+ throw new BoxSdkError({
50846
+ message: 'Expecting "entries" of type "HubDocumentPagesV2025R0" to be defined',
50847
+ });
50848
+ }
50849
+ if (!sdIsList(val.entries)) {
50850
+ throw new BoxSdkError({
50851
+ message: 'Expecting array for "entries" of type "HubDocumentPagesV2025R0"',
50852
+ });
50853
+ }
50854
+ const entries = sdIsList(val.entries)
50855
+ ? val.entries.map(function (itm) {
50856
+ return deserializeHubDocumentPageV2025R0(itm);
50857
+ })
50858
+ : [];
50859
+ if (val.type == void 0) {
50860
+ throw new BoxSdkError({
50861
+ message: 'Expecting "type" of type "HubDocumentPagesV2025R0" to be defined',
50862
+ });
50863
+ }
50864
+ const type = deserializeHubDocumentPagesV2025R0TypeField(val.type);
50865
+ if (!(val.limit == void 0) && !sdIsNumber(val.limit)) {
50866
+ throw new BoxSdkError({
50867
+ message: 'Expecting number for "limit" of type "HubDocumentPagesV2025R0"',
50868
+ });
50869
+ }
50870
+ const limit = val.limit == void 0 ? void 0 : val.limit;
50871
+ if (!(val.next_marker == void 0) && !sdIsString(val.next_marker)) {
50872
+ throw new BoxSdkError({
50873
+ message: 'Expecting string for "next_marker" of type "HubDocumentPagesV2025R0"',
50874
+ });
50875
+ }
50876
+ const nextMarker = val.next_marker == void 0 ? void 0 : val.next_marker;
50877
+ return {
50878
+ entries: entries,
50879
+ type: type,
50880
+ limit: limit,
50881
+ nextMarker: nextMarker,
50882
+ };
50883
+ }
50884
+
50885
+ function deserializeHubParagraphTextBlockV2025R0TypeField(val) {
50886
+ if (val == 'paragraph') {
50887
+ return val;
50888
+ }
50889
+ throw new BoxSdkError({
50890
+ message: "Can't deserialize HubParagraphTextBlockV2025R0TypeField",
50891
+ });
50892
+ }
50893
+ function deserializeHubParagraphTextBlockV2025R0(val) {
50894
+ if (!sdIsMap(val)) {
50895
+ throw new BoxSdkError({
50896
+ message: 'Expecting a map for "HubParagraphTextBlockV2025R0"',
50897
+ });
50898
+ }
50899
+ if (val.type == void 0) {
50900
+ throw new BoxSdkError({
50901
+ message: 'Expecting "type" of type "HubParagraphTextBlockV2025R0" to be defined',
50902
+ });
50903
+ }
50904
+ const type = deserializeHubParagraphTextBlockV2025R0TypeField(val.type);
50905
+ if (val.fragment == void 0) {
50906
+ throw new BoxSdkError({
50907
+ message: 'Expecting "fragment" of type "HubParagraphTextBlockV2025R0" to be defined',
50908
+ });
50909
+ }
50910
+ if (!sdIsString(val.fragment)) {
50911
+ throw new BoxSdkError({
50912
+ message: 'Expecting string for "fragment" of type "HubParagraphTextBlockV2025R0"',
50913
+ });
50914
+ }
50915
+ const fragment = val.fragment;
50916
+ if (val.id == void 0) {
50917
+ throw new BoxSdkError({
50918
+ message: 'Expecting "id" of type "HubParagraphTextBlockV2025R0" to be defined',
50919
+ });
50920
+ }
50921
+ if (!sdIsString(val.id)) {
50922
+ throw new BoxSdkError({
50923
+ message: 'Expecting string for "id" of type "HubParagraphTextBlockV2025R0"',
50924
+ });
50925
+ }
50926
+ const id = val.id;
50927
+ if (!(val.parent_id == void 0) && !sdIsString(val.parent_id)) {
50928
+ throw new BoxSdkError({
50929
+ message: 'Expecting string for "parent_id" of type "HubParagraphTextBlockV2025R0"',
50930
+ });
50931
+ }
50932
+ const parentId = val.parent_id == void 0 ? void 0 : val.parent_id;
50933
+ return {
50934
+ type: type,
50935
+ fragment: fragment,
50936
+ id: id,
50937
+ parentId: parentId,
50938
+ };
50939
+ }
50940
+
50941
+ function deserializeHubSectionTitleTextBlockV2025R0TypeField(val) {
50942
+ if (val == 'section_title') {
50943
+ return val;
50944
+ }
50945
+ throw new BoxSdkError({
50946
+ message: "Can't deserialize HubSectionTitleTextBlockV2025R0TypeField",
50947
+ });
50948
+ }
50949
+ function deserializeHubSectionTitleTextBlockV2025R0(val) {
50950
+ if (!sdIsMap(val)) {
50951
+ throw new BoxSdkError({
50952
+ message: 'Expecting a map for "HubSectionTitleTextBlockV2025R0"',
50953
+ });
50954
+ }
50955
+ if (val.type == void 0) {
50956
+ throw new BoxSdkError({
50957
+ message: 'Expecting "type" of type "HubSectionTitleTextBlockV2025R0" to be defined',
50958
+ });
50959
+ }
50960
+ const type = deserializeHubSectionTitleTextBlockV2025R0TypeField(val.type);
50961
+ if (val.fragment == void 0) {
50962
+ throw new BoxSdkError({
50963
+ message: 'Expecting "fragment" of type "HubSectionTitleTextBlockV2025R0" to be defined',
50964
+ });
50965
+ }
50966
+ if (!sdIsString(val.fragment)) {
50967
+ throw new BoxSdkError({
50968
+ message: 'Expecting string for "fragment" of type "HubSectionTitleTextBlockV2025R0"',
50969
+ });
50970
+ }
50971
+ const fragment = val.fragment;
50972
+ if (val.id == void 0) {
50973
+ throw new BoxSdkError({
50974
+ message: 'Expecting "id" of type "HubSectionTitleTextBlockV2025R0" to be defined',
50975
+ });
50976
+ }
50977
+ if (!sdIsString(val.id)) {
50978
+ throw new BoxSdkError({
50979
+ message: 'Expecting string for "id" of type "HubSectionTitleTextBlockV2025R0"',
50980
+ });
50981
+ }
50982
+ const id = val.id;
50983
+ if (!(val.parent_id == void 0) && !sdIsString(val.parent_id)) {
50984
+ throw new BoxSdkError({
50985
+ message: 'Expecting string for "parent_id" of type "HubSectionTitleTextBlockV2025R0"',
50986
+ });
50987
+ }
50988
+ const parentId = val.parent_id == void 0 ? void 0 : val.parent_id;
50989
+ return {
50990
+ type: type,
50991
+ fragment: fragment,
50992
+ id: id,
50993
+ parentId: parentId,
50994
+ };
50995
+ }
50996
+
50997
+ function deserializeHubCalloutBoxTextBlockV2025R0TypeField(val) {
50998
+ if (val == 'callout_box') {
50999
+ return val;
51000
+ }
51001
+ throw new BoxSdkError({
51002
+ message: "Can't deserialize HubCalloutBoxTextBlockV2025R0TypeField",
51003
+ });
51004
+ }
51005
+ function deserializeHubCalloutBoxTextBlockV2025R0(val) {
51006
+ if (!sdIsMap(val)) {
51007
+ throw new BoxSdkError({
51008
+ message: 'Expecting a map for "HubCalloutBoxTextBlockV2025R0"',
51009
+ });
51010
+ }
51011
+ if (val.type == void 0) {
51012
+ throw new BoxSdkError({
51013
+ message: 'Expecting "type" of type "HubCalloutBoxTextBlockV2025R0" to be defined',
51014
+ });
51015
+ }
51016
+ const type = deserializeHubCalloutBoxTextBlockV2025R0TypeField(val.type);
51017
+ if (val.fragment == void 0) {
51018
+ throw new BoxSdkError({
51019
+ message: 'Expecting "fragment" of type "HubCalloutBoxTextBlockV2025R0" to be defined',
51020
+ });
51021
+ }
51022
+ if (!sdIsString(val.fragment)) {
51023
+ throw new BoxSdkError({
51024
+ message: 'Expecting string for "fragment" of type "HubCalloutBoxTextBlockV2025R0"',
51025
+ });
51026
+ }
51027
+ const fragment = val.fragment;
51028
+ if (val.id == void 0) {
51029
+ throw new BoxSdkError({
51030
+ message: 'Expecting "id" of type "HubCalloutBoxTextBlockV2025R0" to be defined',
51031
+ });
51032
+ }
51033
+ if (!sdIsString(val.id)) {
51034
+ throw new BoxSdkError({
51035
+ message: 'Expecting string for "id" of type "HubCalloutBoxTextBlockV2025R0"',
51036
+ });
51037
+ }
51038
+ const id = val.id;
51039
+ if (!(val.parent_id == void 0) && !sdIsString(val.parent_id)) {
51040
+ throw new BoxSdkError({
51041
+ message: 'Expecting string for "parent_id" of type "HubCalloutBoxTextBlockV2025R0"',
51042
+ });
51043
+ }
51044
+ const parentId = val.parent_id == void 0 ? void 0 : val.parent_id;
51045
+ return {
51046
+ type: type,
51047
+ fragment: fragment,
51048
+ id: id,
51049
+ parentId: parentId,
51050
+ };
51051
+ }
51052
+
51053
+ function deserializeHubItemListBlockV2025R0TypeField(val) {
51054
+ if (val == 'item_list') {
51055
+ return val;
51056
+ }
51057
+ throw new BoxSdkError({
51058
+ message: "Can't deserialize HubItemListBlockV2025R0TypeField",
51059
+ });
51060
+ }
51061
+ function deserializeHubItemListBlockV2025R0(val) {
51062
+ if (!sdIsMap(val)) {
51063
+ throw new BoxSdkError({
51064
+ message: 'Expecting a map for "HubItemListBlockV2025R0"',
51065
+ });
51066
+ }
51067
+ if (val.type == void 0) {
51068
+ throw new BoxSdkError({
51069
+ message: 'Expecting "type" of type "HubItemListBlockV2025R0" to be defined',
51070
+ });
51071
+ }
51072
+ const type = deserializeHubItemListBlockV2025R0TypeField(val.type);
51073
+ if (val.id == void 0) {
51074
+ throw new BoxSdkError({
51075
+ message: 'Expecting "id" of type "HubItemListBlockV2025R0" to be defined',
51076
+ });
51077
+ }
51078
+ if (!sdIsString(val.id)) {
51079
+ throw new BoxSdkError({
51080
+ message: 'Expecting string for "id" of type "HubItemListBlockV2025R0"',
51081
+ });
51082
+ }
51083
+ const id = val.id;
51084
+ if (!(val.parent_id == void 0) && !sdIsString(val.parent_id)) {
51085
+ throw new BoxSdkError({
51086
+ message: 'Expecting string for "parent_id" of type "HubItemListBlockV2025R0"',
51087
+ });
51088
+ }
51089
+ const parentId = val.parent_id == void 0 ? void 0 : val.parent_id;
51090
+ return {
51091
+ type: type,
51092
+ id: id,
51093
+ parentId: parentId,
51094
+ };
51095
+ }
51096
+
51097
+ function deserializeHubDividerBlockV2025R0TypeField(val) {
51098
+ if (val == 'divider') {
51099
+ return val;
51100
+ }
51101
+ throw new BoxSdkError({
51102
+ message: "Can't deserialize HubDividerBlockV2025R0TypeField",
51103
+ });
51104
+ }
51105
+ function deserializeHubDividerBlockV2025R0(val) {
51106
+ if (!sdIsMap(val)) {
51107
+ throw new BoxSdkError({
51108
+ message: 'Expecting a map for "HubDividerBlockV2025R0"',
51109
+ });
51110
+ }
51111
+ if (val.type == void 0) {
51112
+ throw new BoxSdkError({
51113
+ message: 'Expecting "type" of type "HubDividerBlockV2025R0" to be defined',
51114
+ });
51115
+ }
51116
+ const type = deserializeHubDividerBlockV2025R0TypeField(val.type);
51117
+ if (val.id == void 0) {
51118
+ throw new BoxSdkError({
51119
+ message: 'Expecting "id" of type "HubDividerBlockV2025R0" to be defined',
51120
+ });
51121
+ }
51122
+ if (!sdIsString(val.id)) {
51123
+ throw new BoxSdkError({
51124
+ message: 'Expecting string for "id" of type "HubDividerBlockV2025R0"',
51125
+ });
51126
+ }
51127
+ const id = val.id;
51128
+ if (!(val.parent_id == void 0) && !sdIsString(val.parent_id)) {
51129
+ throw new BoxSdkError({
51130
+ message: 'Expecting string for "parent_id" of type "HubDividerBlockV2025R0"',
51131
+ });
51132
+ }
51133
+ const parentId = val.parent_id == void 0 ? void 0 : val.parent_id;
51134
+ return {
51135
+ type: type,
51136
+ id: id,
51137
+ parentId: parentId,
51138
+ };
51139
+ }
51140
+
51141
+ function deserializeHubDocumentBlockEntryV2025R0(val) {
51142
+ if (!sdIsMap(val)) {
51143
+ throw new BoxSdkError({
51144
+ message: 'Expecting a map for "HubDocumentBlockEntryV2025R0"',
51145
+ });
51146
+ }
51147
+ if (val.type == 'paragraph') {
51148
+ return deserializeHubParagraphTextBlockV2025R0(val);
51149
+ }
51150
+ if (val.type == 'section_title') {
51151
+ return deserializeHubSectionTitleTextBlockV2025R0(val);
51152
+ }
51153
+ if (val.type == 'callout_box') {
51154
+ return deserializeHubCalloutBoxTextBlockV2025R0(val);
51155
+ }
51156
+ if (val.type == 'item_list') {
51157
+ return deserializeHubItemListBlockV2025R0(val);
51158
+ }
51159
+ if (val.type == 'divider') {
51160
+ return deserializeHubDividerBlockV2025R0(val);
51161
+ }
51162
+ throw new BoxSdkError({
51163
+ message: "Can't deserialize HubDocumentBlockEntryV2025R0",
51164
+ });
51165
+ }
51166
+
51167
+ function deserializeHubDocumentBlocksV2025R0TypeField(val) {
51168
+ if (val == 'document_blocks') {
51169
+ return val;
51170
+ }
51171
+ throw new BoxSdkError({
51172
+ message: "Can't deserialize HubDocumentBlocksV2025R0TypeField",
51173
+ });
51174
+ }
51175
+ function deserializeHubDocumentBlocksV2025R0(val) {
51176
+ if (!sdIsMap(val)) {
51177
+ throw new BoxSdkError({
51178
+ message: 'Expecting a map for "HubDocumentBlocksV2025R0"',
51179
+ });
51180
+ }
51181
+ if (val.entries == void 0) {
51182
+ throw new BoxSdkError({
51183
+ message: 'Expecting "entries" of type "HubDocumentBlocksV2025R0" to be defined',
51184
+ });
51185
+ }
51186
+ if (!sdIsList(val.entries)) {
51187
+ throw new BoxSdkError({
51188
+ message: 'Expecting array for "entries" of type "HubDocumentBlocksV2025R0"',
51189
+ });
51190
+ }
51191
+ const entries = sdIsList(val.entries)
51192
+ ? val.entries.map(function (itm) {
51193
+ return deserializeHubDocumentBlockEntryV2025R0(itm);
51194
+ })
51195
+ : [];
51196
+ if (val.type == void 0) {
51197
+ throw new BoxSdkError({
51198
+ message: 'Expecting "type" of type "HubDocumentBlocksV2025R0" to be defined',
51199
+ });
51200
+ }
51201
+ const type = deserializeHubDocumentBlocksV2025R0TypeField(val.type);
51202
+ if (!(val.limit == void 0) && !sdIsNumber(val.limit)) {
51203
+ throw new BoxSdkError({
51204
+ message: 'Expecting number for "limit" of type "HubDocumentBlocksV2025R0"',
51205
+ });
51206
+ }
51207
+ const limit = val.limit == void 0 ? void 0 : val.limit;
51208
+ if (!(val.next_marker == void 0) && !sdIsString(val.next_marker)) {
51209
+ throw new BoxSdkError({
51210
+ message: 'Expecting string for "next_marker" of type "HubDocumentBlocksV2025R0"',
51211
+ });
51212
+ }
51213
+ const nextMarker = val.next_marker == void 0 ? void 0 : val.next_marker;
51214
+ return {
51215
+ entries: entries,
51216
+ type: type,
51217
+ limit: limit,
51218
+ nextMarker: nextMarker,
51219
+ };
51220
+ }
51221
+
51222
+ class GetHubDocumentPagesV2025R0Optionals {
51223
+ constructor(fields) {
51224
+ this.headers = new GetHubDocumentPagesV2025R0Headers({});
51225
+ this.cancellationToken = void 0;
51226
+ if (fields.headers !== undefined) {
51227
+ this.headers = fields.headers;
51228
+ }
51229
+ if (fields.cancellationToken !== undefined) {
51230
+ this.cancellationToken = fields.cancellationToken;
51231
+ }
51232
+ }
51233
+ }
51234
+ class GetHubDocumentBlocksV2025R0Optionals {
51235
+ constructor(fields) {
51236
+ this.headers = new GetHubDocumentBlocksV2025R0Headers({});
51237
+ this.cancellationToken = void 0;
51238
+ if (fields.headers !== undefined) {
51239
+ this.headers = fields.headers;
51240
+ }
51241
+ if (fields.cancellationToken !== undefined) {
51242
+ this.cancellationToken = fields.cancellationToken;
51243
+ }
51244
+ }
51245
+ }
51246
+ class GetHubDocumentPagesV2025R0Headers {
51247
+ constructor(fields) {
51248
+ /**
51249
+ * Version header. */
51250
+ this.boxVersion = '2025.0';
51251
+ /**
51252
+ * Extra headers that will be included in the HTTP request. */
51253
+ this.extraHeaders = {};
51254
+ if (fields.boxVersion !== undefined) {
51255
+ this.boxVersion = fields.boxVersion;
51256
+ }
51257
+ if (fields.extraHeaders !== undefined) {
51258
+ this.extraHeaders = fields.extraHeaders;
51259
+ }
51260
+ }
51261
+ }
51262
+ class GetHubDocumentBlocksV2025R0Headers {
51263
+ constructor(fields) {
51264
+ /**
51265
+ * Version header. */
51266
+ this.boxVersion = '2025.0';
51267
+ /**
51268
+ * Extra headers that will be included in the HTTP request. */
51269
+ this.extraHeaders = {};
51270
+ if (fields.boxVersion !== undefined) {
51271
+ this.boxVersion = fields.boxVersion;
51272
+ }
51273
+ if (fields.extraHeaders !== undefined) {
51274
+ this.extraHeaders = fields.extraHeaders;
51275
+ }
51276
+ }
51277
+ }
51278
+ class HubDocumentManager {
51279
+ constructor(fields) {
51280
+ this.networkSession = new NetworkSession({});
51281
+ if (fields.auth !== undefined) {
51282
+ this.auth = fields.auth;
51283
+ }
51284
+ if (fields.networkSession !== undefined) {
51285
+ this.networkSession = fields.networkSession;
51286
+ }
51287
+ }
51288
+ /**
51289
+ * Retrieves a list of Hub Document Pages for the specified hub.
51290
+ * Includes both root-level pages and sub pages.
51291
+ * @param {GetHubDocumentPagesV2025R0QueryParams} queryParams Query parameters of getHubDocumentPagesV2025R0 method
51292
+ * @param {GetHubDocumentPagesV2025R0OptionalsInput} optionalsInput
51293
+ * @returns {Promise<HubDocumentPagesV2025R0>}
51294
+ */
51295
+ getHubDocumentPagesV2025R0(queryParams_1) {
51296
+ return __awaiter$1(this, arguments, void 0, function* (queryParams, optionalsInput = {}) {
51297
+ const optionals = new GetHubDocumentPagesV2025R0Optionals({
51298
+ headers: optionalsInput.headers,
51299
+ cancellationToken: optionalsInput.cancellationToken,
51300
+ });
51301
+ const headers = optionals.headers;
51302
+ const cancellationToken = optionals.cancellationToken;
51303
+ const queryParamsMap = prepareParams({
51304
+ ['hub_id']: toString(queryParams.hubId),
51305
+ ['marker']: toString(queryParams.marker),
51306
+ ['limit']: toString(queryParams.limit),
51307
+ });
51308
+ const headersMap = prepareParams(Object.assign({ ['box-version']: toString(headers.boxVersion) }, headers.extraHeaders));
51309
+ const response = yield this.networkSession.networkClient.fetch(new FetchOptions({
51310
+ url: ''.concat(this.networkSession.baseUrls.baseUrl, '/2.0/hub_document_pages'),
51311
+ method: 'GET',
51312
+ params: queryParamsMap,
51313
+ headers: headersMap,
51314
+ responseFormat: 'json',
51315
+ auth: this.auth,
51316
+ networkSession: this.networkSession,
51317
+ cancellationToken: cancellationToken,
51318
+ }));
51319
+ return Object.assign(Object.assign({}, deserializeHubDocumentPagesV2025R0(response.data)), { rawData: response.data });
51320
+ });
51321
+ }
51322
+ /**
51323
+ * Retrieves a sorted list of all Hub Document Blocks on a specified page in the hub document, excluding items.
51324
+ * Blocks are hierarchically organized by their `parent_id`.
51325
+ * Blocks are sorted in order based on user specification in the user interface.
51326
+ * The response will only include content blocks that belong to the specified page. This will not include sub pages or sub page content blocks.
51327
+ * @param {GetHubDocumentBlocksV2025R0QueryParams} queryParams Query parameters of getHubDocumentBlocksV2025R0 method
51328
+ * @param {GetHubDocumentBlocksV2025R0OptionalsInput} optionalsInput
51329
+ * @returns {Promise<HubDocumentBlocksV2025R0>}
51330
+ */
51331
+ getHubDocumentBlocksV2025R0(queryParams_1) {
51332
+ return __awaiter$1(this, arguments, void 0, function* (queryParams, optionalsInput = {}) {
51333
+ const optionals = new GetHubDocumentBlocksV2025R0Optionals({
51334
+ headers: optionalsInput.headers,
51335
+ cancellationToken: optionalsInput.cancellationToken,
51336
+ });
51337
+ const headers = optionals.headers;
51338
+ const cancellationToken = optionals.cancellationToken;
51339
+ const queryParamsMap = prepareParams({
51340
+ ['hub_id']: toString(queryParams.hubId),
51341
+ ['page_id']: toString(queryParams.pageId),
51342
+ ['marker']: toString(queryParams.marker),
51343
+ ['limit']: toString(queryParams.limit),
51344
+ });
51345
+ const headersMap = prepareParams(Object.assign({ ['box-version']: toString(headers.boxVersion) }, headers.extraHeaders));
51346
+ const response = yield this.networkSession.networkClient.fetch(new FetchOptions({
51347
+ url: ''.concat(this.networkSession.baseUrls.baseUrl, '/2.0/hub_document_blocks'),
51348
+ method: 'GET',
51349
+ params: queryParamsMap,
51350
+ headers: headersMap,
51351
+ responseFormat: 'json',
51352
+ auth: this.auth,
51353
+ networkSession: this.networkSession,
51354
+ cancellationToken: cancellationToken,
51355
+ }));
51356
+ return Object.assign(Object.assign({}, deserializeHubDocumentBlocksV2025R0(response.data)), { rawData: response.data });
51357
+ });
51358
+ }
51359
+ }
51360
+
50720
51361
  function deserializeShieldListMiniV2025R0TypeField(val) {
50721
51362
  if (val == 'shield_list') {
50722
51363
  return val;
@@ -52410,6 +53051,10 @@
52410
53051
  auth: this.auth,
52411
53052
  networkSession: this.networkSession,
52412
53053
  });
53054
+ this.hubDocument = new HubDocumentManager({
53055
+ auth: this.auth,
53056
+ networkSession: this.networkSession,
53057
+ });
52413
53058
  this.shieldLists = new ShieldListsManager({
52414
53059
  auth: this.auth,
52415
53060
  networkSession: this.networkSession,