@qlik/api 0.0.2 → 0.0.4

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 +479 -149
  6. package/apps.d.ts +479 -149
  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 +16 -1
  42. package/csp-origins.d.ts +16 -1
  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/collections.d.mts CHANGED
@@ -1,6 +1,17 @@
1
1
  import { A as ApiCallOptions } from './global.types-Eto4uYwy.mjs';
2
2
  import './auth-types-nnUcWhuU.mjs';
3
3
 
4
+ type CollectionByIdPatch = {
5
+ /** The operation to be performed. */
6
+ op: "replace";
7
+ /** Field of collection to be patched. */
8
+ path: "/name" | "/description" | "/type";
9
+ /** The value to be used within the operations.
10
+ * - name: The name of the collection. Must not be "".
11
+ * - description: The description of the collection. Empty string "" is allowed.
12
+ * - type: The type of the collection. Via this path the collection type can be toggled between "private" and "publicgoverned". */
13
+ value: string;
14
+ }[];
4
15
  type CollectionTypes = "private" | "public" | "publicgoverned";
5
16
  type CollectionsAddCollectionItemRequestBody = {
6
17
  /** The item's unique identifier. */
@@ -212,19 +223,17 @@ declare const getCollections: (query: {
212
223
  /** The case-sensitive string used to search for a collection by name. */
213
224
  name?: string | undefined;
214
225
  /** The cursor to the next page of resources. Provide either the
215
- // next or prev cursor, but not both.
216
- // */
226
+ * next or prev cursor, but not both. */
217
227
  next?: string | undefined;
218
228
  /** The cursor to the previous page of resources. Provide either the next or prev cursor, but not both. */
219
229
  prev?: string | undefined;
220
230
  /** The case-insensitive string used to search for a resource by name or description. */
221
231
  query?: string | undefined;
222
232
  /** The property of a resource to sort on (default sort is +createdAt).
223
- // The supported properties are createdAt, updatedAt, and name. A property
224
- // must be prefixed by + or - to indicate ascending or descending sort order
225
- // respectively.
226
- // */
227
- sort?: "+name" | "+createdAt" | "+updatedAt" | "-name" | "-createdAt" | "-updatedAt" | undefined;
233
+ * The supported properties are createdAt, updatedAt, and name. A property
234
+ * must be prefixed by + or - to indicate ascending or descending sort order
235
+ * respectively. */
236
+ sort?: "-name" | "+name" | "+createdAt" | "-createdAt" | "+updatedAt" | "-updatedAt" | undefined;
228
237
  /** The case-sensitive string used to filter for a collection by type. */
229
238
  type?: CollectionTypes | undefined;
230
239
  /** A commaseparated case-sensitive string used to filter by multiple types. */
@@ -325,6 +334,24 @@ type GetCollectionHttpError = {
325
334
  headers: Headers;
326
335
  status: number;
327
336
  };
337
+ /**
338
+ * Updates the collection fields provided in the patch body.
339
+ *
340
+ * @param collectionId The collection's unique identifier.
341
+ * @param body an object with the body content
342
+ * @throws PatchCollectionHttpError
343
+ */
344
+ declare const patchCollection: (collectionId: string, body: CollectionByIdPatch, options?: ApiCallOptions) => Promise<PatchCollectionHttpResponse>;
345
+ type PatchCollectionHttpResponse = {
346
+ data: CollectionResultResponseBody;
347
+ headers: Headers;
348
+ status: number;
349
+ };
350
+ type PatchCollectionHttpError = {
351
+ data: ErrorResponseBody;
352
+ headers: Headers;
353
+ status: number;
354
+ };
328
355
  /**
329
356
  * Updates a collection and returns the new collection. Omitted and unsupported fields are ignored. To unset a field, provide the field's zero value.
330
357
  *
@@ -358,8 +385,7 @@ declare const getCollectionItems: (collectionId: string, query: {
358
385
  name?: string | undefined;
359
386
  /** The cursor to the next page of resources. Provide either the next or prev cursor, but not both. */
360
387
  next?: string | undefined;
361
- /** If set to true, the user's available actions for each item will not be evaluated meaning the actions-array will be omitted from the response (reduces response time).
362
- // */
388
+ /** If set to true, the user's available actions for each item will not be evaluated meaning the actions-array will be omitted from the response (reduces response time). */
363
389
  noActions?: boolean | undefined;
364
390
  /** The cursor to the previous page of resources. Provide either the next or prev cursor, but not both. */
365
391
  prev?: string | undefined;
@@ -374,7 +400,7 @@ declare const getCollectionItems: (collectionId: string, query: {
374
400
  /** Whether or not to return items in a shared space. */
375
401
  shared?: boolean | undefined;
376
402
  /** The property of a resource to sort on (default sort is +createdAt). The supported properties are createdAt, updatedAt, and name. A property must be prefixed by + or - to indicate ascending or descending sort order respectively. */
377
- sort?: "+name" | "+createdAt" | "+updatedAt" | "-name" | "-createdAt" | "-updatedAt" | undefined;
403
+ sort?: "-name" | "+name" | "+createdAt" | "-createdAt" | "+updatedAt" | "-updatedAt" | undefined;
378
404
  /** The space's unique identifier (supports \'personal\' as spaceId). */
379
405
  spaceId?: string | undefined;
380
406
  }, options?: ApiCallOptions) => Promise<GetCollectionItemsHttpResponse>;
@@ -481,6 +507,14 @@ interface CollectionsAPI {
481
507
  * @throws GetCollectionHttpError
482
508
  */
483
509
  getCollection: typeof getCollection;
510
+ /**
511
+ * Updates the collection fields provided in the patch body.
512
+ *
513
+ * @param collectionId The collection's unique identifier.
514
+ * @param body an object with the body content
515
+ * @throws PatchCollectionHttpError
516
+ */
517
+ patchCollection: typeof patchCollection;
484
518
  /**
485
519
  * Updates a collection and returns the new collection. Omitted and unsupported fields are ignored. To unset a field, provide the field's zero value.
486
520
  *
@@ -490,13 +524,13 @@ interface CollectionsAPI {
490
524
  */
491
525
  updateCollection: typeof updateCollection;
492
526
  /**
493
- * Finds and returns items from a collection that the user has access to.
494
- *
495
- * @param collectionId The collection's unique identifier. (This query also supports 'favorites' as the collectionID).
527
+ * Finds and returns items from a collection that the user has access to.
528
+ *
529
+ * @param collectionId The collection's unique identifier. (This query also supports 'favorites' as the collectionID).
496
530
 
497
- * @param query an object with query parameters
498
- * @throws GetCollectionItemsHttpError
499
- */
531
+ * @param query an object with query parameters
532
+ * @throws GetCollectionItemsHttpError
533
+ */
500
534
  getCollectionItems: typeof getCollectionItems;
501
535
  /**
502
536
  * Adds an item to a collection and returns the item.
@@ -532,4 +566,4 @@ interface CollectionsAPI {
532
566
  */
533
567
  declare const collectionsExport: CollectionsAPI;
534
568
 
535
- export { type AddCollectionItemHttpError, type AddCollectionItemHttpResponse, type CollectionLinksResponseBody, type CollectionMetaResponseBody, type CollectionResultResponseBody, type CollectionTypes, type CollectionsAPI, type CollectionsAddCollectionItemRequestBody, type CollectionsCreateCollectionRequestBody, type CollectionsLinksResponseBody, type CollectionsListCollectionItemsResponseBody, type CollectionsListCollectionsResponseBody, type CollectionsUpdateCollectionRequestBody, type CreateCollectionHttpError, type CreateCollectionHttpResponse, type DeleteCollectionHttpError, type DeleteCollectionHttpResponse, type DeleteCollectionItemHttpError, type DeleteCollectionItemHttpResponse, type ErrorResponseBody, type GetCollectionHttpError, type GetCollectionHttpResponse, type GetCollectionItemHttpError, type GetCollectionItemHttpResponse, type GetCollectionItemsHttpError, type GetCollectionItemsHttpResponse, type GetCollectionsHttpError, type GetCollectionsHttpResponse, type GetFavoritesCollection302HttpError, type GetFavoritesCollection401HttpError, type GetFavoritesCollection404HttpError, type GetFavoritesCollection500HttpError, type GetFavoritesCollectionHttpError, type GetFavoritesCollectionHttpResponse, type ItemLinksResponseBody, type ItemMetaResponseBody, type ItemResourceTypeEnum, type ItemResultResponseBody, type ItemTagResponseBody, type ItemViewsResponseBody, type ItemViewsWeeksResponseBody, type ItemsLinksResponseBody, type ItemsResourceSizeResponseBody, type ItemsResultResponseBody, type Link, type Meta, type ServiceError, type UpdateCollectionHttpError, type UpdateCollectionHttpResponse, addCollectionItem, clearCache, createCollection, collectionsExport as default, deleteCollection, deleteCollectionItem, getCollection, getCollectionItem, getCollectionItems, getCollections, getFavoritesCollection, updateCollection };
569
+ export { type AddCollectionItemHttpError, type AddCollectionItemHttpResponse, type CollectionByIdPatch, type CollectionLinksResponseBody, type CollectionMetaResponseBody, type CollectionResultResponseBody, type CollectionTypes, type CollectionsAPI, type CollectionsAddCollectionItemRequestBody, type CollectionsCreateCollectionRequestBody, type CollectionsLinksResponseBody, type CollectionsListCollectionItemsResponseBody, type CollectionsListCollectionsResponseBody, type CollectionsUpdateCollectionRequestBody, type CreateCollectionHttpError, type CreateCollectionHttpResponse, type DeleteCollectionHttpError, type DeleteCollectionHttpResponse, type DeleteCollectionItemHttpError, type DeleteCollectionItemHttpResponse, type ErrorResponseBody, type GetCollectionHttpError, type GetCollectionHttpResponse, type GetCollectionItemHttpError, type GetCollectionItemHttpResponse, type GetCollectionItemsHttpError, type GetCollectionItemsHttpResponse, type GetCollectionsHttpError, type GetCollectionsHttpResponse, type GetFavoritesCollection302HttpError, type GetFavoritesCollection401HttpError, type GetFavoritesCollection404HttpError, type GetFavoritesCollection500HttpError, type GetFavoritesCollectionHttpError, type GetFavoritesCollectionHttpResponse, type ItemLinksResponseBody, type ItemMetaResponseBody, type ItemResourceTypeEnum, type ItemResultResponseBody, type ItemTagResponseBody, type ItemViewsResponseBody, type ItemViewsWeeksResponseBody, type ItemsLinksResponseBody, type ItemsResourceSizeResponseBody, type ItemsResultResponseBody, type Link, type Meta, type PatchCollectionHttpError, type PatchCollectionHttpResponse, type ServiceError, type UpdateCollectionHttpError, type UpdateCollectionHttpResponse, addCollectionItem, clearCache, createCollection, collectionsExport as default, deleteCollection, deleteCollectionItem, getCollection, getCollectionItem, getCollectionItems, getCollections, getFavoritesCollection, patchCollection, updateCollection };
package/collections.d.ts CHANGED
@@ -1,6 +1,17 @@
1
1
  import { A as ApiCallOptions } from './global.types-hIvp-WdX.js';
2
2
  import './auth-types-nnUcWhuU.js';
3
3
 
4
+ type CollectionByIdPatch = {
5
+ /** The operation to be performed. */
6
+ op: "replace";
7
+ /** Field of collection to be patched. */
8
+ path: "/name" | "/description" | "/type";
9
+ /** The value to be used within the operations.
10
+ * - name: The name of the collection. Must not be "".
11
+ * - description: The description of the collection. Empty string "" is allowed.
12
+ * - type: The type of the collection. Via this path the collection type can be toggled between "private" and "publicgoverned". */
13
+ value: string;
14
+ }[];
4
15
  type CollectionTypes = "private" | "public" | "publicgoverned";
5
16
  type CollectionsAddCollectionItemRequestBody = {
6
17
  /** The item's unique identifier. */
@@ -212,19 +223,17 @@ declare const getCollections: (query: {
212
223
  /** The case-sensitive string used to search for a collection by name. */
213
224
  name?: string | undefined;
214
225
  /** The cursor to the next page of resources. Provide either the
215
- // next or prev cursor, but not both.
216
- // */
226
+ * next or prev cursor, but not both. */
217
227
  next?: string | undefined;
218
228
  /** The cursor to the previous page of resources. Provide either the next or prev cursor, but not both. */
219
229
  prev?: string | undefined;
220
230
  /** The case-insensitive string used to search for a resource by name or description. */
221
231
  query?: string | undefined;
222
232
  /** The property of a resource to sort on (default sort is +createdAt).
223
- // The supported properties are createdAt, updatedAt, and name. A property
224
- // must be prefixed by + or - to indicate ascending or descending sort order
225
- // respectively.
226
- // */
227
- sort?: "+name" | "+createdAt" | "+updatedAt" | "-name" | "-createdAt" | "-updatedAt" | undefined;
233
+ * The supported properties are createdAt, updatedAt, and name. A property
234
+ * must be prefixed by + or - to indicate ascending or descending sort order
235
+ * respectively. */
236
+ sort?: "-name" | "+name" | "+createdAt" | "-createdAt" | "+updatedAt" | "-updatedAt" | undefined;
228
237
  /** The case-sensitive string used to filter for a collection by type. */
229
238
  type?: CollectionTypes | undefined;
230
239
  /** A commaseparated case-sensitive string used to filter by multiple types. */
@@ -325,6 +334,24 @@ type GetCollectionHttpError = {
325
334
  headers: Headers;
326
335
  status: number;
327
336
  };
337
+ /**
338
+ * Updates the collection fields provided in the patch body.
339
+ *
340
+ * @param collectionId The collection's unique identifier.
341
+ * @param body an object with the body content
342
+ * @throws PatchCollectionHttpError
343
+ */
344
+ declare const patchCollection: (collectionId: string, body: CollectionByIdPatch, options?: ApiCallOptions) => Promise<PatchCollectionHttpResponse>;
345
+ type PatchCollectionHttpResponse = {
346
+ data: CollectionResultResponseBody;
347
+ headers: Headers;
348
+ status: number;
349
+ };
350
+ type PatchCollectionHttpError = {
351
+ data: ErrorResponseBody;
352
+ headers: Headers;
353
+ status: number;
354
+ };
328
355
  /**
329
356
  * Updates a collection and returns the new collection. Omitted and unsupported fields are ignored. To unset a field, provide the field's zero value.
330
357
  *
@@ -358,8 +385,7 @@ declare const getCollectionItems: (collectionId: string, query: {
358
385
  name?: string | undefined;
359
386
  /** The cursor to the next page of resources. Provide either the next or prev cursor, but not both. */
360
387
  next?: string | undefined;
361
- /** If set to true, the user's available actions for each item will not be evaluated meaning the actions-array will be omitted from the response (reduces response time).
362
- // */
388
+ /** If set to true, the user's available actions for each item will not be evaluated meaning the actions-array will be omitted from the response (reduces response time). */
363
389
  noActions?: boolean | undefined;
364
390
  /** The cursor to the previous page of resources. Provide either the next or prev cursor, but not both. */
365
391
  prev?: string | undefined;
@@ -374,7 +400,7 @@ declare const getCollectionItems: (collectionId: string, query: {
374
400
  /** Whether or not to return items in a shared space. */
375
401
  shared?: boolean | undefined;
376
402
  /** The property of a resource to sort on (default sort is +createdAt). The supported properties are createdAt, updatedAt, and name. A property must be prefixed by + or - to indicate ascending or descending sort order respectively. */
377
- sort?: "+name" | "+createdAt" | "+updatedAt" | "-name" | "-createdAt" | "-updatedAt" | undefined;
403
+ sort?: "-name" | "+name" | "+createdAt" | "-createdAt" | "+updatedAt" | "-updatedAt" | undefined;
378
404
  /** The space's unique identifier (supports \'personal\' as spaceId). */
379
405
  spaceId?: string | undefined;
380
406
  }, options?: ApiCallOptions) => Promise<GetCollectionItemsHttpResponse>;
@@ -481,6 +507,14 @@ interface CollectionsAPI {
481
507
  * @throws GetCollectionHttpError
482
508
  */
483
509
  getCollection: typeof getCollection;
510
+ /**
511
+ * Updates the collection fields provided in the patch body.
512
+ *
513
+ * @param collectionId The collection's unique identifier.
514
+ * @param body an object with the body content
515
+ * @throws PatchCollectionHttpError
516
+ */
517
+ patchCollection: typeof patchCollection;
484
518
  /**
485
519
  * Updates a collection and returns the new collection. Omitted and unsupported fields are ignored. To unset a field, provide the field's zero value.
486
520
  *
@@ -490,13 +524,13 @@ interface CollectionsAPI {
490
524
  */
491
525
  updateCollection: typeof updateCollection;
492
526
  /**
493
- * Finds and returns items from a collection that the user has access to.
494
- *
495
- * @param collectionId The collection's unique identifier. (This query also supports 'favorites' as the collectionID).
527
+ * Finds and returns items from a collection that the user has access to.
528
+ *
529
+ * @param collectionId The collection's unique identifier. (This query also supports 'favorites' as the collectionID).
496
530
 
497
- * @param query an object with query parameters
498
- * @throws GetCollectionItemsHttpError
499
- */
531
+ * @param query an object with query parameters
532
+ * @throws GetCollectionItemsHttpError
533
+ */
500
534
  getCollectionItems: typeof getCollectionItems;
501
535
  /**
502
536
  * Adds an item to a collection and returns the item.
@@ -532,4 +566,4 @@ interface CollectionsAPI {
532
566
  */
533
567
  declare const collectionsExport: CollectionsAPI;
534
568
 
535
- export { type AddCollectionItemHttpError, type AddCollectionItemHttpResponse, type CollectionLinksResponseBody, type CollectionMetaResponseBody, type CollectionResultResponseBody, type CollectionTypes, type CollectionsAPI, type CollectionsAddCollectionItemRequestBody, type CollectionsCreateCollectionRequestBody, type CollectionsLinksResponseBody, type CollectionsListCollectionItemsResponseBody, type CollectionsListCollectionsResponseBody, type CollectionsUpdateCollectionRequestBody, type CreateCollectionHttpError, type CreateCollectionHttpResponse, type DeleteCollectionHttpError, type DeleteCollectionHttpResponse, type DeleteCollectionItemHttpError, type DeleteCollectionItemHttpResponse, type ErrorResponseBody, type GetCollectionHttpError, type GetCollectionHttpResponse, type GetCollectionItemHttpError, type GetCollectionItemHttpResponse, type GetCollectionItemsHttpError, type GetCollectionItemsHttpResponse, type GetCollectionsHttpError, type GetCollectionsHttpResponse, type GetFavoritesCollection302HttpError, type GetFavoritesCollection401HttpError, type GetFavoritesCollection404HttpError, type GetFavoritesCollection500HttpError, type GetFavoritesCollectionHttpError, type GetFavoritesCollectionHttpResponse, type ItemLinksResponseBody, type ItemMetaResponseBody, type ItemResourceTypeEnum, type ItemResultResponseBody, type ItemTagResponseBody, type ItemViewsResponseBody, type ItemViewsWeeksResponseBody, type ItemsLinksResponseBody, type ItemsResourceSizeResponseBody, type ItemsResultResponseBody, type Link, type Meta, type ServiceError, type UpdateCollectionHttpError, type UpdateCollectionHttpResponse, addCollectionItem, clearCache, createCollection, collectionsExport as default, deleteCollection, deleteCollectionItem, getCollection, getCollectionItem, getCollectionItems, getCollections, getFavoritesCollection, updateCollection };
569
+ export { type AddCollectionItemHttpError, type AddCollectionItemHttpResponse, type CollectionByIdPatch, type CollectionLinksResponseBody, type CollectionMetaResponseBody, type CollectionResultResponseBody, type CollectionTypes, type CollectionsAPI, type CollectionsAddCollectionItemRequestBody, type CollectionsCreateCollectionRequestBody, type CollectionsLinksResponseBody, type CollectionsListCollectionItemsResponseBody, type CollectionsListCollectionsResponseBody, type CollectionsUpdateCollectionRequestBody, type CreateCollectionHttpError, type CreateCollectionHttpResponse, type DeleteCollectionHttpError, type DeleteCollectionHttpResponse, type DeleteCollectionItemHttpError, type DeleteCollectionItemHttpResponse, type ErrorResponseBody, type GetCollectionHttpError, type GetCollectionHttpResponse, type GetCollectionItemHttpError, type GetCollectionItemHttpResponse, type GetCollectionItemsHttpError, type GetCollectionItemsHttpResponse, type GetCollectionsHttpError, type GetCollectionsHttpResponse, type GetFavoritesCollection302HttpError, type GetFavoritesCollection401HttpError, type GetFavoritesCollection404HttpError, type GetFavoritesCollection500HttpError, type GetFavoritesCollectionHttpError, type GetFavoritesCollectionHttpResponse, type ItemLinksResponseBody, type ItemMetaResponseBody, type ItemResourceTypeEnum, type ItemResultResponseBody, type ItemTagResponseBody, type ItemViewsResponseBody, type ItemViewsWeeksResponseBody, type ItemsLinksResponseBody, type ItemsResourceSizeResponseBody, type ItemsResultResponseBody, type Link, type Meta, type PatchCollectionHttpError, type PatchCollectionHttpResponse, type ServiceError, type UpdateCollectionHttpError, type UpdateCollectionHttpResponse, addCollectionItem, clearCache, createCollection, collectionsExport as default, deleteCollection, deleteCollectionItem, getCollection, getCollectionItem, getCollectionItems, getCollections, getFavoritesCollection, patchCollection, updateCollection };
package/collections.js CHANGED
@@ -1,74 +1,86 @@
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/collections.ts
8
- var getCollections = async (query, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "collections", {
9
+ var getCollections = async (query, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "collections", {
9
10
  method: "get",
10
11
  pathTemplate: "/api/v1/collections",
11
12
  query,
12
13
  options
13
14
  });
14
- var createCollection = async (body, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "collections", {
15
+ var createCollection = async (body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "collections", {
15
16
  method: "post",
16
17
  pathTemplate: "/api/v1/collections",
17
18
  body,
19
+ contentType: "application/json",
18
20
  options
19
21
  });
20
- var getFavoritesCollection = async (options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "collections", {
22
+ var getFavoritesCollection = async (options) => _chunkJNGURO23js.invokeFetch.call(void 0, "collections", {
21
23
  method: "get",
22
24
  pathTemplate: "/api/v1/collections/favorites",
23
25
  options
24
26
  });
25
- var deleteCollection = async (collectionId, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "collections", {
27
+ var deleteCollection = async (collectionId, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "collections", {
26
28
  method: "delete",
27
29
  pathTemplate: "/api/v1/collections/{collectionId}",
28
30
  pathVariables: { collectionId },
29
31
  options
30
32
  });
31
- var getCollection = async (collectionId, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "collections", {
33
+ var getCollection = async (collectionId, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "collections", {
32
34
  method: "get",
33
35
  pathTemplate: "/api/v1/collections/{collectionId}",
34
36
  pathVariables: { collectionId },
35
37
  options
36
38
  });
37
- var updateCollection = async (collectionId, body, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "collections", {
39
+ var patchCollection = async (collectionId, body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "collections", {
40
+ method: "patch",
41
+ pathTemplate: "/api/v1/collections/{collectionId}",
42
+ pathVariables: { collectionId },
43
+ body,
44
+ contentType: "application/json",
45
+ options
46
+ });
47
+ var updateCollection = async (collectionId, body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "collections", {
38
48
  method: "put",
39
49
  pathTemplate: "/api/v1/collections/{collectionId}",
40
50
  pathVariables: { collectionId },
41
51
  body,
52
+ contentType: "application/json",
42
53
  options
43
54
  });
44
- var getCollectionItems = async (collectionId, query, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "collections", {
55
+ var getCollectionItems = async (collectionId, query, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "collections", {
45
56
  method: "get",
46
57
  pathTemplate: "/api/v1/collections/{collectionId}/items",
47
58
  pathVariables: { collectionId },
48
59
  query,
49
60
  options
50
61
  });
51
- var addCollectionItem = async (collectionId, body, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "collections", {
62
+ var addCollectionItem = async (collectionId, body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "collections", {
52
63
  method: "post",
53
64
  pathTemplate: "/api/v1/collections/{collectionId}/items",
54
65
  pathVariables: { collectionId },
55
66
  body,
67
+ contentType: "application/json",
56
68
  options
57
69
  });
58
- var deleteCollectionItem = async (collectionId, itemId, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "collections", {
70
+ var deleteCollectionItem = async (collectionId, itemId, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "collections", {
59
71
  method: "delete",
60
72
  pathTemplate: "/api/v1/collections/{collectionId}/items/{itemId}",
61
73
  pathVariables: { collectionId, itemId },
62
74
  options
63
75
  });
64
- var getCollectionItem = async (collectionId, itemId, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "collections", {
76
+ var getCollectionItem = async (collectionId, itemId, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "collections", {
65
77
  method: "get",
66
78
  pathTemplate: "/api/v1/collections/{collectionId}/items/{itemId}",
67
79
  pathVariables: { collectionId, itemId },
68
80
  options
69
81
  });
70
82
  function clearCache() {
71
- return _chunk6JERR27Kjs.clearApiCache.call(void 0, "collections");
83
+ return _chunkJNGURO23js.clearApiCache.call(void 0, "collections");
72
84
  }
73
85
  var collectionsExport = {
74
86
  getCollections,
@@ -76,6 +88,7 @@ var collectionsExport = {
76
88
  getFavoritesCollection,
77
89
  deleteCollection,
78
90
  getCollection,
91
+ patchCollection,
79
92
  updateCollection,
80
93
  getCollectionItems,
81
94
  addCollectionItem,
@@ -97,4 +110,5 @@ var collections_default = collectionsExport;
97
110
 
98
111
 
99
112
 
100
- exports.addCollectionItem = addCollectionItem; exports.clearCache = clearCache; exports.createCollection = createCollection; exports.default = collections_default; exports.deleteCollection = deleteCollection; exports.deleteCollectionItem = deleteCollectionItem; exports.getCollection = getCollection; exports.getCollectionItem = getCollectionItem; exports.getCollectionItems = getCollectionItems; exports.getCollections = getCollections; exports.getFavoritesCollection = getFavoritesCollection; exports.updateCollection = updateCollection;
113
+
114
+ exports.addCollectionItem = addCollectionItem; exports.clearCache = clearCache; exports.createCollection = createCollection; exports.default = collections_default; exports.deleteCollection = deleteCollection; exports.deleteCollectionItem = deleteCollectionItem; exports.getCollection = getCollection; exports.getCollectionItem = getCollectionItem; exports.getCollectionItems = getCollectionItems; exports.getCollections = getCollections; exports.getFavoritesCollection = getFavoritesCollection; exports.patchCollection = patchCollection; exports.updateCollection = updateCollection;
package/collections.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/collections.ts
8
9
  var getCollections = async (query, options) => invokeFetch("collections", {
@@ -15,6 +16,7 @@ var createCollection = async (body, options) => invokeFetch("collections", {
15
16
  method: "post",
16
17
  pathTemplate: "/api/v1/collections",
17
18
  body,
19
+ contentType: "application/json",
18
20
  options
19
21
  });
20
22
  var getFavoritesCollection = async (options) => invokeFetch("collections", {
@@ -34,11 +36,20 @@ var getCollection = async (collectionId, options) => invokeFetch("collections",
34
36
  pathVariables: { collectionId },
35
37
  options
36
38
  });
39
+ var patchCollection = async (collectionId, body, options) => invokeFetch("collections", {
40
+ method: "patch",
41
+ pathTemplate: "/api/v1/collections/{collectionId}",
42
+ pathVariables: { collectionId },
43
+ body,
44
+ contentType: "application/json",
45
+ options
46
+ });
37
47
  var updateCollection = async (collectionId, body, options) => invokeFetch("collections", {
38
48
  method: "put",
39
49
  pathTemplate: "/api/v1/collections/{collectionId}",
40
50
  pathVariables: { collectionId },
41
51
  body,
52
+ contentType: "application/json",
42
53
  options
43
54
  });
44
55
  var getCollectionItems = async (collectionId, query, options) => invokeFetch("collections", {
@@ -53,6 +64,7 @@ var addCollectionItem = async (collectionId, body, options) => invokeFetch("coll
53
64
  pathTemplate: "/api/v1/collections/{collectionId}/items",
54
65
  pathVariables: { collectionId },
55
66
  body,
67
+ contentType: "application/json",
56
68
  options
57
69
  });
58
70
  var deleteCollectionItem = async (collectionId, itemId, options) => invokeFetch("collections", {
@@ -76,6 +88,7 @@ var collectionsExport = {
76
88
  getFavoritesCollection,
77
89
  deleteCollection,
78
90
  getCollection,
91
+ patchCollection,
79
92
  updateCollection,
80
93
  getCollectionItems,
81
94
  addCollectionItem,
@@ -96,5 +109,6 @@ export {
96
109
  getCollectionItems,
97
110
  getCollections,
98
111
  getFavoritesCollection,
112
+ patchCollection,
99
113
  updateCollection
100
114
  };
package/csp-origins.d.mts CHANGED
@@ -1,7 +1,10 @@
1
1
  import { A as ApiCallOptions } from './global.types-Eto4uYwy.mjs';
2
2
  import './auth-types-nnUcWhuU.mjs';
3
3
 
4
- type CSPEntry = CSPEntryContent;
4
+ type CSPEntry = {
5
+ /** The CSP entry's unique identifier. */
6
+ id?: string;
7
+ } & CSPEntryContent;
5
8
  type CSPEntryContent = {
6
9
  /** Defines the valid sources for loading web workers and nested browsing contexts using elements such as frame and iFrame. */
7
10
  childSrc?: boolean;
@@ -69,6 +72,7 @@ type Link = {
69
72
  };
70
73
  /**
71
74
  * Retrieves all CSP entries for a tenant
75
+ *
72
76
  * @param query an object with query parameters
73
77
  * @throws GetCSPEntriesHttpError
74
78
  */
@@ -126,6 +130,7 @@ type GetCSPEntriesHttpError = {
126
130
  };
127
131
  /**
128
132
  * Creates a new CSP entry
133
+ *
129
134
  * @param body an object with the body content
130
135
  * @throws CreateCSPEntryHttpError
131
136
  */
@@ -142,6 +147,7 @@ type CreateCSPEntryHttpError = {
142
147
  };
143
148
  /**
144
149
  * Retrieves the CSP header for a tenant
150
+ *
145
151
  * @throws GetCSPHeaderHttpError
146
152
  */
147
153
  declare const getCSPHeader: (options?: ApiCallOptions) => Promise<GetCSPHeaderHttpResponse>;
@@ -157,6 +163,7 @@ type GetCSPHeaderHttpError = {
157
163
  };
158
164
  /**
159
165
  * Deletes a specific CSP entry
166
+ *
160
167
  * @param id The CSP entry's unique identifier.
161
168
  * @throws DeleteCSPEntryHttpError
162
169
  */
@@ -173,6 +180,7 @@ type DeleteCSPEntryHttpError = {
173
180
  };
174
181
  /**
175
182
  * Returns details for a specific CSP entry
183
+ *
176
184
  * @param id The CSP entry's unique identifier.
177
185
  * @throws GetCSPEntryHttpError
178
186
  */
@@ -189,6 +197,7 @@ type GetCSPEntryHttpError = {
189
197
  };
190
198
  /**
191
199
  * Updates a CSP entry
200
+ *
192
201
  * @param id The CSP entry's unique identifier.
193
202
  * @param body an object with the body content
194
203
  * @throws UpdateCSPEntryHttpError
@@ -211,35 +220,41 @@ declare function clearCache(): void;
211
220
  interface CspOriginsAPI {
212
221
  /**
213
222
  * Retrieves all CSP entries for a tenant
223
+ *
214
224
  * @param query an object with query parameters
215
225
  * @throws GetCSPEntriesHttpError
216
226
  */
217
227
  getCSPEntries: typeof getCSPEntries;
218
228
  /**
219
229
  * Creates a new CSP entry
230
+ *
220
231
  * @param body an object with the body content
221
232
  * @throws CreateCSPEntryHttpError
222
233
  */
223
234
  createCSPEntry: typeof createCSPEntry;
224
235
  /**
225
236
  * Retrieves the CSP header for a tenant
237
+ *
226
238
  * @throws GetCSPHeaderHttpError
227
239
  */
228
240
  getCSPHeader: typeof getCSPHeader;
229
241
  /**
230
242
  * Deletes a specific CSP entry
243
+ *
231
244
  * @param id The CSP entry's unique identifier.
232
245
  * @throws DeleteCSPEntryHttpError
233
246
  */
234
247
  deleteCSPEntry: typeof deleteCSPEntry;
235
248
  /**
236
249
  * Returns details for a specific CSP entry
250
+ *
237
251
  * @param id The CSP entry's unique identifier.
238
252
  * @throws GetCSPEntryHttpError
239
253
  */
240
254
  getCSPEntry: typeof getCSPEntry;
241
255
  /**
242
256
  * Updates a CSP entry
257
+ *
243
258
  * @param id The CSP entry's unique identifier.
244
259
  * @param body an object with the body content
245
260
  * @throws UpdateCSPEntryHttpError
package/csp-origins.d.ts CHANGED
@@ -1,7 +1,10 @@
1
1
  import { A as ApiCallOptions } from './global.types-hIvp-WdX.js';
2
2
  import './auth-types-nnUcWhuU.js';
3
3
 
4
- type CSPEntry = CSPEntryContent;
4
+ type CSPEntry = {
5
+ /** The CSP entry's unique identifier. */
6
+ id?: string;
7
+ } & CSPEntryContent;
5
8
  type CSPEntryContent = {
6
9
  /** Defines the valid sources for loading web workers and nested browsing contexts using elements such as frame and iFrame. */
7
10
  childSrc?: boolean;
@@ -69,6 +72,7 @@ type Link = {
69
72
  };
70
73
  /**
71
74
  * Retrieves all CSP entries for a tenant
75
+ *
72
76
  * @param query an object with query parameters
73
77
  * @throws GetCSPEntriesHttpError
74
78
  */
@@ -126,6 +130,7 @@ type GetCSPEntriesHttpError = {
126
130
  };
127
131
  /**
128
132
  * Creates a new CSP entry
133
+ *
129
134
  * @param body an object with the body content
130
135
  * @throws CreateCSPEntryHttpError
131
136
  */
@@ -142,6 +147,7 @@ type CreateCSPEntryHttpError = {
142
147
  };
143
148
  /**
144
149
  * Retrieves the CSP header for a tenant
150
+ *
145
151
  * @throws GetCSPHeaderHttpError
146
152
  */
147
153
  declare const getCSPHeader: (options?: ApiCallOptions) => Promise<GetCSPHeaderHttpResponse>;
@@ -157,6 +163,7 @@ type GetCSPHeaderHttpError = {
157
163
  };
158
164
  /**
159
165
  * Deletes a specific CSP entry
166
+ *
160
167
  * @param id The CSP entry's unique identifier.
161
168
  * @throws DeleteCSPEntryHttpError
162
169
  */
@@ -173,6 +180,7 @@ type DeleteCSPEntryHttpError = {
173
180
  };
174
181
  /**
175
182
  * Returns details for a specific CSP entry
183
+ *
176
184
  * @param id The CSP entry's unique identifier.
177
185
  * @throws GetCSPEntryHttpError
178
186
  */
@@ -189,6 +197,7 @@ type GetCSPEntryHttpError = {
189
197
  };
190
198
  /**
191
199
  * Updates a CSP entry
200
+ *
192
201
  * @param id The CSP entry's unique identifier.
193
202
  * @param body an object with the body content
194
203
  * @throws UpdateCSPEntryHttpError
@@ -211,35 +220,41 @@ declare function clearCache(): void;
211
220
  interface CspOriginsAPI {
212
221
  /**
213
222
  * Retrieves all CSP entries for a tenant
223
+ *
214
224
  * @param query an object with query parameters
215
225
  * @throws GetCSPEntriesHttpError
216
226
  */
217
227
  getCSPEntries: typeof getCSPEntries;
218
228
  /**
219
229
  * Creates a new CSP entry
230
+ *
220
231
  * @param body an object with the body content
221
232
  * @throws CreateCSPEntryHttpError
222
233
  */
223
234
  createCSPEntry: typeof createCSPEntry;
224
235
  /**
225
236
  * Retrieves the CSP header for a tenant
237
+ *
226
238
  * @throws GetCSPHeaderHttpError
227
239
  */
228
240
  getCSPHeader: typeof getCSPHeader;
229
241
  /**
230
242
  * Deletes a specific CSP entry
243
+ *
231
244
  * @param id The CSP entry's unique identifier.
232
245
  * @throws DeleteCSPEntryHttpError
233
246
  */
234
247
  deleteCSPEntry: typeof deleteCSPEntry;
235
248
  /**
236
249
  * Returns details for a specific CSP entry
250
+ *
237
251
  * @param id The CSP entry's unique identifier.
238
252
  * @throws GetCSPEntryHttpError
239
253
  */
240
254
  getCSPEntry: typeof getCSPEntry;
241
255
  /**
242
256
  * Updates a CSP entry
257
+ *
243
258
  * @param id The CSP entry's unique identifier.
244
259
  * @param body an object with the body content
245
260
  * @throws UpdateCSPEntryHttpError