@qlik/api 0.0.2 → 0.0.3

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 (171) hide show
  1. package/api-keys.d.mts +14 -0
  2. package/api-keys.d.ts +14 -0
  3. package/api-keys.js +14 -10
  4. package/api-keys.mjs +6 -2
  5. package/apps.d.mts +478 -148
  6. package/apps.d.ts +478 -148
  7. package/apps.js +100 -42
  8. package/apps.mjs +60 -2
  9. package/audits.d.mts +12 -0
  10. package/audits.d.ts +12 -0
  11. package/audits.js +10 -9
  12. package/audits.mjs +3 -2
  13. package/auth-AWZV4DPP.js +41 -0
  14. package/{auth-RTFXVSSK.mjs → auth-CPBNNC7S.mjs} +4 -1
  15. package/auth.js +4 -3
  16. package/auth.mjs +3 -2
  17. package/automations.d.mts +36 -0
  18. package/automations.d.ts +36 -0
  19. package/automations.js +28 -21
  20. package/automations.mjs +9 -2
  21. package/brands.d.mts +45 -4
  22. package/brands.d.ts +45 -4
  23. package/brands.js +20 -15
  24. package/brands.mjs +7 -2
  25. package/{chunk-ZT4C7KCQ.js → chunk-2STFUQKQ.js} +3 -3
  26. package/{chunk-7REWEWCX.mjs → chunk-3SVRHJII.mjs} +3 -3
  27. package/{chunk-CKPJE4IA.mjs → chunk-67GJTTPV.mjs} +1 -1
  28. package/{chunk-M7F4JFOB.js → chunk-7RY3NO6N.js} +2 -2
  29. package/{chunk-NALKLKZS.mjs → chunk-CYRLVHU3.mjs} +316 -53
  30. package/{chunk-RMKP2BDX.js → chunk-D52VW5UN.js} +318 -55
  31. package/{chunk-GUQBHY3H.mjs → chunk-GNWU6SP2.mjs} +1 -1
  32. package/{chunk-QN23TPIE.js → chunk-GV5SRHY2.js} +4 -4
  33. package/{chunk-OULT3V2U.js → chunk-JNGURO23.js} +3 -3
  34. package/chunk-P57PW2II.js +11 -0
  35. package/{chunk-3YE7EI7I.mjs → chunk-TE7XMBT5.mjs} +1 -1
  36. package/chunk-ZFXKCRJC.mjs +11 -0
  37. package/collections.d.mts +51 -17
  38. package/collections.d.ts +51 -17
  39. package/collections.js +28 -14
  40. package/collections.mjs +16 -2
  41. package/csp-origins.d.mts +12 -0
  42. package/csp-origins.d.ts +12 -0
  43. package/csp-origins.js +12 -9
  44. package/csp-origins.mjs +5 -2
  45. package/data-assets.d.mts +10 -0
  46. package/data-assets.d.ts +10 -0
  47. package/data-assets.js +13 -8
  48. package/data-assets.mjs +7 -2
  49. package/data-connections.d.mts +18 -0
  50. package/data-connections.d.ts +18 -0
  51. package/data-connections.js +19 -12
  52. package/data-connections.mjs +9 -2
  53. package/data-credentials.d.mts +8 -0
  54. package/data-credentials.d.ts +8 -0
  55. package/data-credentials.js +10 -7
  56. package/data-credentials.mjs +5 -2
  57. package/data-files.d.mts +98 -13
  58. package/data-files.d.ts +98 -13
  59. package/data-files.js +22 -15
  60. package/data-files.mjs +9 -2
  61. package/{enigma-session-VPPJMBEM.js → enigma-session-XPXDQAIV.js} +5 -4
  62. package/{enigma-session-HGXKZJVO.mjs → enigma-session-ZH6MYA54.mjs} +2 -1
  63. package/{esm-RX7B2TUN.js → esm-3VXX2GKL.js} +3 -1
  64. package/{esm-M5ZBFTVD.mjs → esm-OY4XVIJB.mjs} +3 -1
  65. package/extensions.d.mts +26 -2
  66. package/extensions.d.ts +26 -2
  67. package/extensions.js +13 -10
  68. package/extensions.mjs +5 -2
  69. package/glossaries.d.mts +55 -20
  70. package/glossaries.d.ts +55 -20
  71. package/glossaries.js +39 -27
  72. package/glossaries.mjs +14 -2
  73. package/groups.d.mts +16 -0
  74. package/groups.d.ts +16 -0
  75. package/groups.js +16 -11
  76. package/groups.mjs +7 -2
  77. package/identity-providers.d.mts +16 -0
  78. package/identity-providers.d.ts +16 -0
  79. package/identity-providers.js +14 -11
  80. package/identity-providers.mjs +5 -2
  81. package/index.js +135 -101
  82. package/index.mjs +131 -97
  83. package/{invoke-fetch-IMO4AMA3.mjs → invoke-fetch-3WZWAAZH.mjs} +4 -1
  84. package/invoke-fetch-UNTAUR7O.js +17 -0
  85. package/items.d.mts +6 -6
  86. package/items.d.ts +6 -6
  87. package/items.js +14 -11
  88. package/items.mjs +5 -2
  89. package/licenses.d.mts +18 -0
  90. package/licenses.d.ts +18 -0
  91. package/licenses.js +17 -12
  92. package/licenses.mjs +7 -2
  93. package/package.json +4 -4
  94. package/{qix-K22VHZRH.js → qix-UNWXPGMA.js} +9 -8
  95. package/{qix-57WD2ZE6.mjs → qix-ZSJ4PIK3.mjs} +3 -2
  96. package/qix.d.mts +1 -1
  97. package/qix.d.ts +1 -1
  98. package/qix.js +4 -3
  99. package/qix.mjs +3 -2
  100. package/quotas.d.mts +4 -0
  101. package/quotas.d.ts +4 -0
  102. package/quotas.js +6 -5
  103. package/quotas.mjs +3 -2
  104. package/reload-tasks.js +11 -8
  105. package/reload-tasks.mjs +5 -2
  106. package/reloads.d.mts +17 -10
  107. package/reloads.d.ts +17 -10
  108. package/reloads.js +9 -7
  109. package/reloads.mjs +4 -2
  110. package/roles.d.mts +4 -0
  111. package/roles.d.ts +4 -0
  112. package/roles.js +6 -5
  113. package/roles.mjs +3 -2
  114. package/spaces.d.mts +27 -4
  115. package/spaces.d.ts +27 -4
  116. package/spaces.js +21 -15
  117. package/spaces.mjs +8 -2
  118. package/temp-contents.d.mts +8 -3
  119. package/temp-contents.d.ts +8 -3
  120. package/temp-contents.js +8 -6
  121. package/temp-contents.mjs +4 -2
  122. package/tenants.d.mts +12 -0
  123. package/tenants.d.ts +12 -0
  124. package/tenants.js +14 -9
  125. package/tenants.mjs +7 -2
  126. package/themes.d.mts +26 -2
  127. package/themes.d.ts +26 -2
  128. package/themes.js +13 -10
  129. package/themes.mjs +5 -2
  130. package/transports.d.mts +12 -0
  131. package/transports.d.ts +12 -0
  132. package/transports.js +12 -9
  133. package/transports.mjs +5 -2
  134. package/users.d.mts +48 -29
  135. package/users.d.ts +48 -29
  136. package/users.js +18 -13
  137. package/users.mjs +7 -2
  138. package/web-integrations.d.mts +10 -0
  139. package/web-integrations.d.ts +10 -0
  140. package/web-integrations.js +11 -8
  141. package/web-integrations.mjs +5 -2
  142. package/web-notifications.d.mts +12 -0
  143. package/web-notifications.d.ts +12 -0
  144. package/web-notifications.js +12 -9
  145. package/web-notifications.mjs +5 -2
  146. package/webhooks.d.mts +25 -5
  147. package/webhooks.d.ts +25 -5
  148. package/webhooks.js +17 -13
  149. package/webhooks.mjs +6 -2
  150. package/auth-CSVTXOZX.js +0 -36
  151. package/auth-OU7OTB7Y.js +0 -38
  152. package/auth-TE272Q34.mjs +0 -36
  153. package/chunk-4ES65KO3.js +0 -57
  154. package/chunk-4FLMND6T.js +0 -25
  155. package/chunk-4OMEH5SW.mjs +0 -1337
  156. package/chunk-6JERR27K.js +0 -17
  157. package/chunk-E42WUFCK.mjs +0 -57
  158. package/chunk-H7SAZYEE.js +0 -21
  159. package/chunk-KMMWJZHM.mjs +0 -25
  160. package/chunk-W4J34XGA.mjs +0 -17
  161. package/chunk-WM7FQU2U.mjs +0 -21
  162. package/chunk-XASXL2NC.js +0 -1337
  163. package/enigma-session-4L373ALV.mjs +0 -10196
  164. package/enigma-session-TEB53FAF.js +0 -10196
  165. package/esm-4X3DKK5D.js +0 -63
  166. package/esm-SOWVJKOQ.mjs +0 -63
  167. package/invoke-fetch-7PKPQ3FD.js +0 -14
  168. package/invoke-fetch-MSSJAZ7K.mjs +0 -14
  169. package/invoke-fetch-PEI54KZO.js +0 -14
  170. package/qix-EU7PXRZ6.mjs +0 -573
  171. package/qix-RLTISYTB.js +0 -573
package/spaces.d.mts CHANGED
@@ -142,10 +142,9 @@ type SpacePatch = {
142
142
  /** Field of space to be patched (updated). */
143
143
  path: "/name" | "/ownerId" | "/description";
144
144
  /** The value to be used within the operations.
145
- // - name: The name (string) of space of maxLength 256 of pattern: ^[^\"\*\?\<\>\/\|\\\:]+$
146
- // - description: The description (string) of the space. Personal spaces do not have a description.
147
- // - ownerId: The user ID in uid format (string) of the space owner.
148
- // */
145
+ * - name: The name (string) of space of maxLength 256 of pattern: ^[^\"\*\?\<\>\/\|\\\:]+$
146
+ * - description: The description (string) of the space. Personal spaces do not have a description.
147
+ * - ownerId: The user ID in uid format (string) of the space owner. */
149
148
  value: string;
150
149
  }[];
151
150
  type SpaceType = "shared" | "managed" | "data";
@@ -181,6 +180,7 @@ type Spaces = {
181
180
  };
182
181
  /**
183
182
  * Retrieves spaces that the current user has access to and match the query.
183
+ *
184
184
  * @param query an object with query parameters
185
185
  * @throws GetSpacesHttpError
186
186
  */
@@ -218,6 +218,7 @@ type GetSpacesHttpError = {
218
218
  };
219
219
  /**
220
220
  * Creates a space.
221
+ *
221
222
  * @param body an object with the body content
222
223
  * @throws CreateSpaceHttpError
223
224
  */
@@ -234,6 +235,7 @@ type CreateSpaceHttpError = {
234
235
  };
235
236
  /**
236
237
  * Gets a list of distinct space types.
238
+ *
237
239
  * @throws GetSpaceTypesHttpError
238
240
  */
239
241
  declare const getSpaceTypes: (options?: ApiCallOptions) => Promise<GetSpaceTypesHttpResponse>;
@@ -249,6 +251,7 @@ type GetSpaceTypesHttpError = {
249
251
  };
250
252
  /**
251
253
  * Deletes a space.
254
+ *
252
255
  * @param spaceId The ID of the space to delete.
253
256
  * @throws DeleteSpaceHttpError
254
257
  */
@@ -265,6 +268,7 @@ type DeleteSpaceHttpError = {
265
268
  };
266
269
  /**
267
270
  * Retrieves a single space by ID.
271
+ *
268
272
  * @param spaceId The ID of the space to retrieve.
269
273
  * @throws GetSpaceHttpError
270
274
  */
@@ -281,6 +285,7 @@ type GetSpaceHttpError = {
281
285
  };
282
286
  /**
283
287
  * Patches (updates) a space (partially).
288
+ *
284
289
  * @param spaceId The ID of the space to update.
285
290
  * @param body an object with the body content
286
291
  * @throws PatchSpaceHttpError
@@ -298,6 +303,7 @@ type PatchSpaceHttpError = {
298
303
  };
299
304
  /**
300
305
  * Updates a space.
306
+ *
301
307
  * @param spaceId The ID of the space to update.
302
308
  * @param body an object with the body content
303
309
  * @throws UpdateSpaceHttpError
@@ -315,6 +321,7 @@ type UpdateSpaceHttpError = {
315
321
  };
316
322
  /**
317
323
  * Retrieves the assignments of the space matching the query.
324
+ *
318
325
  * @param spaceId The ID of the space of the assignment.
319
326
  * @param query an object with query parameters
320
327
  * @throws GetSpaceAssignmentsHttpError
@@ -343,6 +350,7 @@ type GetSpaceAssignmentsHttpError = {
343
350
  };
344
351
  /**
345
352
  * Creates an assignment.
353
+ *
346
354
  * @param spaceId The ID of the space of the assignment.
347
355
  * @param body an object with the body content
348
356
  * @throws CreateSpaceAssignmentHttpError
@@ -360,6 +368,7 @@ type CreateSpaceAssignmentHttpError = {
360
368
  };
361
369
  /**
362
370
  * Deletes an assignment.
371
+ *
363
372
  * @param spaceId The ID of the space of the assignment.
364
373
  * @param assignmentId The ID of the assignment to delete.
365
374
  * @throws DeleteSpaceAssignmentHttpError
@@ -377,6 +386,7 @@ type DeleteSpaceAssignmentHttpError = {
377
386
  };
378
387
  /**
379
388
  * Retrieves a single assignment by ID.
389
+ *
380
390
  * @param spaceId The ID of the space of the assignment.
381
391
  * @param assignmentId The ID of the assignment to retrieve.
382
392
  * @throws GetSpaceAssignmentHttpError
@@ -394,6 +404,7 @@ type GetSpaceAssignmentHttpError = {
394
404
  };
395
405
  /**
396
406
  * Updates a single assignment by ID. The complete list of roles must be provided.
407
+ *
397
408
  * @param spaceId The ID of the space of the assignment.
398
409
  * @param assignmentId The ID of the assignment to update.
399
410
  * @param body an object with the body content
@@ -417,35 +428,41 @@ declare function clearCache(): void;
417
428
  interface SpacesAPI {
418
429
  /**
419
430
  * Retrieves spaces that the current user has access to and match the query.
431
+ *
420
432
  * @param query an object with query parameters
421
433
  * @throws GetSpacesHttpError
422
434
  */
423
435
  getSpaces: typeof getSpaces;
424
436
  /**
425
437
  * Creates a space.
438
+ *
426
439
  * @param body an object with the body content
427
440
  * @throws CreateSpaceHttpError
428
441
  */
429
442
  createSpace: typeof createSpace;
430
443
  /**
431
444
  * Gets a list of distinct space types.
445
+ *
432
446
  * @throws GetSpaceTypesHttpError
433
447
  */
434
448
  getSpaceTypes: typeof getSpaceTypes;
435
449
  /**
436
450
  * Deletes a space.
451
+ *
437
452
  * @param spaceId The ID of the space to delete.
438
453
  * @throws DeleteSpaceHttpError
439
454
  */
440
455
  deleteSpace: typeof deleteSpace;
441
456
  /**
442
457
  * Retrieves a single space by ID.
458
+ *
443
459
  * @param spaceId The ID of the space to retrieve.
444
460
  * @throws GetSpaceHttpError
445
461
  */
446
462
  getSpace: typeof getSpace;
447
463
  /**
448
464
  * Patches (updates) a space (partially).
465
+ *
449
466
  * @param spaceId The ID of the space to update.
450
467
  * @param body an object with the body content
451
468
  * @throws PatchSpaceHttpError
@@ -453,6 +470,7 @@ interface SpacesAPI {
453
470
  patchSpace: typeof patchSpace;
454
471
  /**
455
472
  * Updates a space.
473
+ *
456
474
  * @param spaceId The ID of the space to update.
457
475
  * @param body an object with the body content
458
476
  * @throws UpdateSpaceHttpError
@@ -460,6 +478,7 @@ interface SpacesAPI {
460
478
  updateSpace: typeof updateSpace;
461
479
  /**
462
480
  * Retrieves the assignments of the space matching the query.
481
+ *
463
482
  * @param spaceId The ID of the space of the assignment.
464
483
  * @param query an object with query parameters
465
484
  * @throws GetSpaceAssignmentsHttpError
@@ -467,6 +486,7 @@ interface SpacesAPI {
467
486
  getSpaceAssignments: typeof getSpaceAssignments;
468
487
  /**
469
488
  * Creates an assignment.
489
+ *
470
490
  * @param spaceId The ID of the space of the assignment.
471
491
  * @param body an object with the body content
472
492
  * @throws CreateSpaceAssignmentHttpError
@@ -474,6 +494,7 @@ interface SpacesAPI {
474
494
  createSpaceAssignment: typeof createSpaceAssignment;
475
495
  /**
476
496
  * Deletes an assignment.
497
+ *
477
498
  * @param spaceId The ID of the space of the assignment.
478
499
  * @param assignmentId The ID of the assignment to delete.
479
500
  * @throws DeleteSpaceAssignmentHttpError
@@ -481,6 +502,7 @@ interface SpacesAPI {
481
502
  deleteSpaceAssignment: typeof deleteSpaceAssignment;
482
503
  /**
483
504
  * Retrieves a single assignment by ID.
505
+ *
484
506
  * @param spaceId The ID of the space of the assignment.
485
507
  * @param assignmentId The ID of the assignment to retrieve.
486
508
  * @throws GetSpaceAssignmentHttpError
@@ -488,6 +510,7 @@ interface SpacesAPI {
488
510
  getSpaceAssignment: typeof getSpaceAssignment;
489
511
  /**
490
512
  * Updates a single assignment by ID. The complete list of roles must be provided.
513
+ *
491
514
  * @param spaceId The ID of the space of the assignment.
492
515
  * @param assignmentId The ID of the assignment to update.
493
516
  * @param body an object with the body content
package/spaces.d.ts CHANGED
@@ -142,10 +142,9 @@ type SpacePatch = {
142
142
  /** Field of space to be patched (updated). */
143
143
  path: "/name" | "/ownerId" | "/description";
144
144
  /** The value to be used within the operations.
145
- // - name: The name (string) of space of maxLength 256 of pattern: ^[^\"\*\?\<\>\/\|\\\:]+$
146
- // - description: The description (string) of the space. Personal spaces do not have a description.
147
- // - ownerId: The user ID in uid format (string) of the space owner.
148
- // */
145
+ * - name: The name (string) of space of maxLength 256 of pattern: ^[^\"\*\?\<\>\/\|\\\:]+$
146
+ * - description: The description (string) of the space. Personal spaces do not have a description.
147
+ * - ownerId: The user ID in uid format (string) of the space owner. */
149
148
  value: string;
150
149
  }[];
151
150
  type SpaceType = "shared" | "managed" | "data";
@@ -181,6 +180,7 @@ type Spaces = {
181
180
  };
182
181
  /**
183
182
  * Retrieves spaces that the current user has access to and match the query.
183
+ *
184
184
  * @param query an object with query parameters
185
185
  * @throws GetSpacesHttpError
186
186
  */
@@ -218,6 +218,7 @@ type GetSpacesHttpError = {
218
218
  };
219
219
  /**
220
220
  * Creates a space.
221
+ *
221
222
  * @param body an object with the body content
222
223
  * @throws CreateSpaceHttpError
223
224
  */
@@ -234,6 +235,7 @@ type CreateSpaceHttpError = {
234
235
  };
235
236
  /**
236
237
  * Gets a list of distinct space types.
238
+ *
237
239
  * @throws GetSpaceTypesHttpError
238
240
  */
239
241
  declare const getSpaceTypes: (options?: ApiCallOptions) => Promise<GetSpaceTypesHttpResponse>;
@@ -249,6 +251,7 @@ type GetSpaceTypesHttpError = {
249
251
  };
250
252
  /**
251
253
  * Deletes a space.
254
+ *
252
255
  * @param spaceId The ID of the space to delete.
253
256
  * @throws DeleteSpaceHttpError
254
257
  */
@@ -265,6 +268,7 @@ type DeleteSpaceHttpError = {
265
268
  };
266
269
  /**
267
270
  * Retrieves a single space by ID.
271
+ *
268
272
  * @param spaceId The ID of the space to retrieve.
269
273
  * @throws GetSpaceHttpError
270
274
  */
@@ -281,6 +285,7 @@ type GetSpaceHttpError = {
281
285
  };
282
286
  /**
283
287
  * Patches (updates) a space (partially).
288
+ *
284
289
  * @param spaceId The ID of the space to update.
285
290
  * @param body an object with the body content
286
291
  * @throws PatchSpaceHttpError
@@ -298,6 +303,7 @@ type PatchSpaceHttpError = {
298
303
  };
299
304
  /**
300
305
  * Updates a space.
306
+ *
301
307
  * @param spaceId The ID of the space to update.
302
308
  * @param body an object with the body content
303
309
  * @throws UpdateSpaceHttpError
@@ -315,6 +321,7 @@ type UpdateSpaceHttpError = {
315
321
  };
316
322
  /**
317
323
  * Retrieves the assignments of the space matching the query.
324
+ *
318
325
  * @param spaceId The ID of the space of the assignment.
319
326
  * @param query an object with query parameters
320
327
  * @throws GetSpaceAssignmentsHttpError
@@ -343,6 +350,7 @@ type GetSpaceAssignmentsHttpError = {
343
350
  };
344
351
  /**
345
352
  * Creates an assignment.
353
+ *
346
354
  * @param spaceId The ID of the space of the assignment.
347
355
  * @param body an object with the body content
348
356
  * @throws CreateSpaceAssignmentHttpError
@@ -360,6 +368,7 @@ type CreateSpaceAssignmentHttpError = {
360
368
  };
361
369
  /**
362
370
  * Deletes an assignment.
371
+ *
363
372
  * @param spaceId The ID of the space of the assignment.
364
373
  * @param assignmentId The ID of the assignment to delete.
365
374
  * @throws DeleteSpaceAssignmentHttpError
@@ -377,6 +386,7 @@ type DeleteSpaceAssignmentHttpError = {
377
386
  };
378
387
  /**
379
388
  * Retrieves a single assignment by ID.
389
+ *
380
390
  * @param spaceId The ID of the space of the assignment.
381
391
  * @param assignmentId The ID of the assignment to retrieve.
382
392
  * @throws GetSpaceAssignmentHttpError
@@ -394,6 +404,7 @@ type GetSpaceAssignmentHttpError = {
394
404
  };
395
405
  /**
396
406
  * Updates a single assignment by ID. The complete list of roles must be provided.
407
+ *
397
408
  * @param spaceId The ID of the space of the assignment.
398
409
  * @param assignmentId The ID of the assignment to update.
399
410
  * @param body an object with the body content
@@ -417,35 +428,41 @@ declare function clearCache(): void;
417
428
  interface SpacesAPI {
418
429
  /**
419
430
  * Retrieves spaces that the current user has access to and match the query.
431
+ *
420
432
  * @param query an object with query parameters
421
433
  * @throws GetSpacesHttpError
422
434
  */
423
435
  getSpaces: typeof getSpaces;
424
436
  /**
425
437
  * Creates a space.
438
+ *
426
439
  * @param body an object with the body content
427
440
  * @throws CreateSpaceHttpError
428
441
  */
429
442
  createSpace: typeof createSpace;
430
443
  /**
431
444
  * Gets a list of distinct space types.
445
+ *
432
446
  * @throws GetSpaceTypesHttpError
433
447
  */
434
448
  getSpaceTypes: typeof getSpaceTypes;
435
449
  /**
436
450
  * Deletes a space.
451
+ *
437
452
  * @param spaceId The ID of the space to delete.
438
453
  * @throws DeleteSpaceHttpError
439
454
  */
440
455
  deleteSpace: typeof deleteSpace;
441
456
  /**
442
457
  * Retrieves a single space by ID.
458
+ *
443
459
  * @param spaceId The ID of the space to retrieve.
444
460
  * @throws GetSpaceHttpError
445
461
  */
446
462
  getSpace: typeof getSpace;
447
463
  /**
448
464
  * Patches (updates) a space (partially).
465
+ *
449
466
  * @param spaceId The ID of the space to update.
450
467
  * @param body an object with the body content
451
468
  * @throws PatchSpaceHttpError
@@ -453,6 +470,7 @@ interface SpacesAPI {
453
470
  patchSpace: typeof patchSpace;
454
471
  /**
455
472
  * Updates a space.
473
+ *
456
474
  * @param spaceId The ID of the space to update.
457
475
  * @param body an object with the body content
458
476
  * @throws UpdateSpaceHttpError
@@ -460,6 +478,7 @@ interface SpacesAPI {
460
478
  updateSpace: typeof updateSpace;
461
479
  /**
462
480
  * Retrieves the assignments of the space matching the query.
481
+ *
463
482
  * @param spaceId The ID of the space of the assignment.
464
483
  * @param query an object with query parameters
465
484
  * @throws GetSpaceAssignmentsHttpError
@@ -467,6 +486,7 @@ interface SpacesAPI {
467
486
  getSpaceAssignments: typeof getSpaceAssignments;
468
487
  /**
469
488
  * Creates an assignment.
489
+ *
470
490
  * @param spaceId The ID of the space of the assignment.
471
491
  * @param body an object with the body content
472
492
  * @throws CreateSpaceAssignmentHttpError
@@ -474,6 +494,7 @@ interface SpacesAPI {
474
494
  createSpaceAssignment: typeof createSpaceAssignment;
475
495
  /**
476
496
  * Deletes an assignment.
497
+ *
477
498
  * @param spaceId The ID of the space of the assignment.
478
499
  * @param assignmentId The ID of the assignment to delete.
479
500
  * @throws DeleteSpaceAssignmentHttpError
@@ -481,6 +502,7 @@ interface SpacesAPI {
481
502
  deleteSpaceAssignment: typeof deleteSpaceAssignment;
482
503
  /**
483
504
  * Retrieves a single assignment by ID.
505
+ *
484
506
  * @param spaceId The ID of the space of the assignment.
485
507
  * @param assignmentId The ID of the assignment to retrieve.
486
508
  * @throws GetSpaceAssignmentHttpError
@@ -488,6 +510,7 @@ interface SpacesAPI {
488
510
  getSpaceAssignment: typeof getSpaceAssignment;
489
511
  /**
490
512
  * Updates a single assignment by ID. The complete list of roles must be provided.
513
+ *
491
514
  * @param spaceId The ID of the space of the assignment.
492
515
  * @param assignmentId The ID of the assignment to update.
493
516
  * @param body an object with the body content
package/spaces.js CHANGED
@@ -1,88 +1,94 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunk6JERR27Kjs = require('./chunk-6JERR27K.js');
5
- require('./chunk-H7SAZYEE.js');
4
+ var _chunkJNGURO23js = require('./chunk-JNGURO23.js');
5
+ require('./chunk-2STFUQKQ.js');
6
+ require('./chunk-P57PW2II.js');
6
7
 
7
8
  // src/public/rest/spaces.ts
8
- var getSpaces = async (query, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "spaces", {
9
+ var getSpaces = async (query, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "spaces", {
9
10
  method: "get",
10
11
  pathTemplate: "/api/v1/spaces",
11
12
  query,
12
13
  options
13
14
  });
14
- var createSpace = async (body, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "spaces", {
15
+ var createSpace = async (body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "spaces", {
15
16
  method: "post",
16
17
  pathTemplate: "/api/v1/spaces",
17
18
  body,
19
+ contentType: "application/json",
18
20
  options
19
21
  });
20
- var getSpaceTypes = async (options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "spaces", {
22
+ var getSpaceTypes = async (options) => _chunkJNGURO23js.invokeFetch.call(void 0, "spaces", {
21
23
  method: "get",
22
24
  pathTemplate: "/api/v1/spaces/types",
23
25
  options
24
26
  });
25
- var deleteSpace = async (spaceId, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "spaces", {
27
+ var deleteSpace = async (spaceId, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "spaces", {
26
28
  method: "delete",
27
29
  pathTemplate: "/api/v1/spaces/{spaceId}",
28
30
  pathVariables: { spaceId },
29
31
  options
30
32
  });
31
- var getSpace = async (spaceId, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "spaces", {
33
+ var getSpace = async (spaceId, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "spaces", {
32
34
  method: "get",
33
35
  pathTemplate: "/api/v1/spaces/{spaceId}",
34
36
  pathVariables: { spaceId },
35
37
  options
36
38
  });
37
- var patchSpace = async (spaceId, body, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "spaces", {
39
+ var patchSpace = async (spaceId, body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "spaces", {
38
40
  method: "patch",
39
41
  pathTemplate: "/api/v1/spaces/{spaceId}",
40
42
  pathVariables: { spaceId },
41
43
  body,
44
+ contentType: "application/json",
42
45
  options
43
46
  });
44
- var updateSpace = async (spaceId, body, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "spaces", {
47
+ var updateSpace = async (spaceId, body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "spaces", {
45
48
  method: "put",
46
49
  pathTemplate: "/api/v1/spaces/{spaceId}",
47
50
  pathVariables: { spaceId },
48
51
  body,
52
+ contentType: "application/json",
49
53
  options
50
54
  });
51
- var getSpaceAssignments = async (spaceId, query, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "spaces", {
55
+ var getSpaceAssignments = async (spaceId, query, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "spaces", {
52
56
  method: "get",
53
57
  pathTemplate: "/api/v1/spaces/{spaceId}/assignments",
54
58
  pathVariables: { spaceId },
55
59
  query,
56
60
  options
57
61
  });
58
- var createSpaceAssignment = async (spaceId, body, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "spaces", {
62
+ var createSpaceAssignment = async (spaceId, body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "spaces", {
59
63
  method: "post",
60
64
  pathTemplate: "/api/v1/spaces/{spaceId}/assignments",
61
65
  pathVariables: { spaceId },
62
66
  body,
67
+ contentType: "application/json",
63
68
  options
64
69
  });
65
- var deleteSpaceAssignment = async (spaceId, assignmentId, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "spaces", {
70
+ var deleteSpaceAssignment = async (spaceId, assignmentId, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "spaces", {
66
71
  method: "delete",
67
72
  pathTemplate: "/api/v1/spaces/{spaceId}/assignments/{assignmentId}",
68
73
  pathVariables: { spaceId, assignmentId },
69
74
  options
70
75
  });
71
- var getSpaceAssignment = async (spaceId, assignmentId, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "spaces", {
76
+ var getSpaceAssignment = async (spaceId, assignmentId, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "spaces", {
72
77
  method: "get",
73
78
  pathTemplate: "/api/v1/spaces/{spaceId}/assignments/{assignmentId}",
74
79
  pathVariables: { spaceId, assignmentId },
75
80
  options
76
81
  });
77
- var updateSpaceAssignment = async (spaceId, assignmentId, body, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "spaces", {
82
+ var updateSpaceAssignment = async (spaceId, assignmentId, body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "spaces", {
78
83
  method: "put",
79
84
  pathTemplate: "/api/v1/spaces/{spaceId}/assignments/{assignmentId}",
80
85
  pathVariables: { spaceId, assignmentId },
81
86
  body,
87
+ contentType: "application/json",
82
88
  options
83
89
  });
84
90
  function clearCache() {
85
- return _chunk6JERR27Kjs.clearApiCache.call(void 0, "spaces");
91
+ return _chunkJNGURO23js.clearApiCache.call(void 0, "spaces");
86
92
  }
87
93
  var spacesExport = {
88
94
  getSpaces,
package/spaces.mjs CHANGED
@@ -1,8 +1,9 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunk-W4J34XGA.mjs";
5
- import "./chunk-7REWEWCX.mjs";
4
+ } from "./chunk-TE7XMBT5.mjs";
5
+ import "./chunk-3SVRHJII.mjs";
6
+ import "./chunk-ZFXKCRJC.mjs";
6
7
 
7
8
  // src/public/rest/spaces.ts
8
9
  var getSpaces = async (query, options) => invokeFetch("spaces", {
@@ -15,6 +16,7 @@ var createSpace = async (body, options) => invokeFetch("spaces", {
15
16
  method: "post",
16
17
  pathTemplate: "/api/v1/spaces",
17
18
  body,
19
+ contentType: "application/json",
18
20
  options
19
21
  });
20
22
  var getSpaceTypes = async (options) => invokeFetch("spaces", {
@@ -39,6 +41,7 @@ var patchSpace = async (spaceId, body, options) => invokeFetch("spaces", {
39
41
  pathTemplate: "/api/v1/spaces/{spaceId}",
40
42
  pathVariables: { spaceId },
41
43
  body,
44
+ contentType: "application/json",
42
45
  options
43
46
  });
44
47
  var updateSpace = async (spaceId, body, options) => invokeFetch("spaces", {
@@ -46,6 +49,7 @@ var updateSpace = async (spaceId, body, options) => invokeFetch("spaces", {
46
49
  pathTemplate: "/api/v1/spaces/{spaceId}",
47
50
  pathVariables: { spaceId },
48
51
  body,
52
+ contentType: "application/json",
49
53
  options
50
54
  });
51
55
  var getSpaceAssignments = async (spaceId, query, options) => invokeFetch("spaces", {
@@ -60,6 +64,7 @@ var createSpaceAssignment = async (spaceId, body, options) => invokeFetch("space
60
64
  pathTemplate: "/api/v1/spaces/{spaceId}/assignments",
61
65
  pathVariables: { spaceId },
62
66
  body,
67
+ contentType: "application/json",
63
68
  options
64
69
  });
65
70
  var deleteSpaceAssignment = async (spaceId, assignmentId, options) => invokeFetch("spaces", {
@@ -79,6 +84,7 @@ var updateSpaceAssignment = async (spaceId, assignmentId, body, options) => invo
79
84
  pathTemplate: "/api/v1/spaces/{spaceId}/assignments/{assignmentId}",
80
85
  pathVariables: { spaceId, assignmentId },
81
86
  body,
87
+ contentType: "application/json",
82
88
  options
83
89
  });
84
90
  function clearCache() {
@@ -43,6 +43,7 @@ type DetailResponse = {
43
43
  };
44
44
  /**
45
45
  * This endpoint is used to upload a file as a temporary content resource. It returns a `201 Created` with a location header that contains the location of the created resource. If filename or TTL is not properly set, a `400 Bad request` is returned. For internal issues, a `500 Internal Server Error` is returned.
46
+ *
46
47
  * @param query an object with query parameters
47
48
  * @param body an object with the body content
48
49
  * @throws UploadTempFileHttpError
@@ -51,10 +52,9 @@ declare const uploadTempFile: (query: {
51
52
  /** The name of the file to upload. */
52
53
  filename?: string;
53
54
  /** The TTL parameter is used to define the time-to-live for the content resource in seconds.
54
- // It defaults to one hour (3600) if no input is provided. Max TTL is 259200 (3 days).'
55
- // */
55
+ * It defaults to one hour (3600) if no input is provided. Max TTL is 259200 (3 days).' */
56
56
  ttl?: number;
57
- }, body: unknown, options?: ApiCallOptions) => Promise<UploadTempFileHttpResponse>;
57
+ }, body: BodyInit, options?: ApiCallOptions) => Promise<UploadTempFileHttpResponse>;
58
58
  type UploadTempFileHttpResponse = {
59
59
  data: void;
60
60
  headers: Headers;
@@ -67,6 +67,7 @@ type UploadTempFileHttpError = {
67
67
  };
68
68
  /**
69
69
  * This endpoint is used to retrieve a temporary content file. It returns a valid (`200 OK`) in case the file exists and the user is authorized to view the contents. It returns a `410 Gone` if the file has expired and `404 Not Found` if the criteria is not met.
70
+ *
70
71
  * @param id The temporary contents ID.
71
72
  * @param query an object with query parameters
72
73
  * @throws DownloadTempFileHttpError
@@ -98,6 +99,7 @@ type DownloadTempFileHttpError = {
98
99
  };
99
100
  /**
100
101
  * This endpoint is used to retrieve a summary of the metadata associated with a temporary content resource. It returns a `200 OK` with a model if the temporary resource is valid. It returns a `410 Gone` if the file has expired and `404 Not Found` if the criteria is not met.
102
+ *
101
103
  * @param id The temporary contents ID.
102
104
  * @throws GetTempFileDetailsHttpError
103
105
  */
@@ -125,6 +127,7 @@ declare function clearCache(): void;
125
127
  interface TempContentsAPI {
126
128
  /**
127
129
  * This endpoint is used to upload a file as a temporary content resource. It returns a `201 Created` with a location header that contains the location of the created resource. If filename or TTL is not properly set, a `400 Bad request` is returned. For internal issues, a `500 Internal Server Error` is returned.
130
+ *
128
131
  * @param query an object with query parameters
129
132
  * @param body an object with the body content
130
133
  * @throws UploadTempFileHttpError
@@ -132,6 +135,7 @@ interface TempContentsAPI {
132
135
  uploadTempFile: typeof uploadTempFile;
133
136
  /**
134
137
  * This endpoint is used to retrieve a temporary content file. It returns a valid (`200 OK`) in case the file exists and the user is authorized to view the contents. It returns a `410 Gone` if the file has expired and `404 Not Found` if the criteria is not met.
138
+ *
135
139
  * @param id The temporary contents ID.
136
140
  * @param query an object with query parameters
137
141
  * @throws DownloadTempFileHttpError
@@ -139,6 +143,7 @@ interface TempContentsAPI {
139
143
  downloadTempFile: typeof downloadTempFile;
140
144
  /**
141
145
  * This endpoint is used to retrieve a summary of the metadata associated with a temporary content resource. It returns a `200 OK` with a model if the temporary resource is valid. It returns a `410 Gone` if the file has expired and `404 Not Found` if the criteria is not met.
146
+ *
142
147
  * @param id The temporary contents ID.
143
148
  * @throws GetTempFileDetailsHttpError
144
149
  */
@@ -43,6 +43,7 @@ type DetailResponse = {
43
43
  };
44
44
  /**
45
45
  * This endpoint is used to upload a file as a temporary content resource. It returns a `201 Created` with a location header that contains the location of the created resource. If filename or TTL is not properly set, a `400 Bad request` is returned. For internal issues, a `500 Internal Server Error` is returned.
46
+ *
46
47
  * @param query an object with query parameters
47
48
  * @param body an object with the body content
48
49
  * @throws UploadTempFileHttpError
@@ -51,10 +52,9 @@ declare const uploadTempFile: (query: {
51
52
  /** The name of the file to upload. */
52
53
  filename?: string;
53
54
  /** The TTL parameter is used to define the time-to-live for the content resource in seconds.
54
- // It defaults to one hour (3600) if no input is provided. Max TTL is 259200 (3 days).'
55
- // */
55
+ * It defaults to one hour (3600) if no input is provided. Max TTL is 259200 (3 days).' */
56
56
  ttl?: number;
57
- }, body: unknown, options?: ApiCallOptions) => Promise<UploadTempFileHttpResponse>;
57
+ }, body: BodyInit, options?: ApiCallOptions) => Promise<UploadTempFileHttpResponse>;
58
58
  type UploadTempFileHttpResponse = {
59
59
  data: void;
60
60
  headers: Headers;
@@ -67,6 +67,7 @@ type UploadTempFileHttpError = {
67
67
  };
68
68
  /**
69
69
  * This endpoint is used to retrieve a temporary content file. It returns a valid (`200 OK`) in case the file exists and the user is authorized to view the contents. It returns a `410 Gone` if the file has expired and `404 Not Found` if the criteria is not met.
70
+ *
70
71
  * @param id The temporary contents ID.
71
72
  * @param query an object with query parameters
72
73
  * @throws DownloadTempFileHttpError
@@ -98,6 +99,7 @@ type DownloadTempFileHttpError = {
98
99
  };
99
100
  /**
100
101
  * This endpoint is used to retrieve a summary of the metadata associated with a temporary content resource. It returns a `200 OK` with a model if the temporary resource is valid. It returns a `410 Gone` if the file has expired and `404 Not Found` if the criteria is not met.
102
+ *
101
103
  * @param id The temporary contents ID.
102
104
  * @throws GetTempFileDetailsHttpError
103
105
  */
@@ -125,6 +127,7 @@ declare function clearCache(): void;
125
127
  interface TempContentsAPI {
126
128
  /**
127
129
  * This endpoint is used to upload a file as a temporary content resource. It returns a `201 Created` with a location header that contains the location of the created resource. If filename or TTL is not properly set, a `400 Bad request` is returned. For internal issues, a `500 Internal Server Error` is returned.
130
+ *
128
131
  * @param query an object with query parameters
129
132
  * @param body an object with the body content
130
133
  * @throws UploadTempFileHttpError
@@ -132,6 +135,7 @@ interface TempContentsAPI {
132
135
  uploadTempFile: typeof uploadTempFile;
133
136
  /**
134
137
  * This endpoint is used to retrieve a temporary content file. It returns a valid (`200 OK`) in case the file exists and the user is authorized to view the contents. It returns a `410 Gone` if the file has expired and `404 Not Found` if the criteria is not met.
138
+ *
135
139
  * @param id The temporary contents ID.
136
140
  * @param query an object with query parameters
137
141
  * @throws DownloadTempFileHttpError
@@ -139,6 +143,7 @@ interface TempContentsAPI {
139
143
  downloadTempFile: typeof downloadTempFile;
140
144
  /**
141
145
  * This endpoint is used to retrieve a summary of the metadata associated with a temporary content resource. It returns a `200 OK` with a model if the temporary resource is valid. It returns a `410 Gone` if the file has expired and `404 Not Found` if the criteria is not met.
146
+ *
142
147
  * @param id The temporary contents ID.
143
148
  * @throws GetTempFileDetailsHttpError
144
149
  */