@qlik/api 1.32.0 → 1.34.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 (142) hide show
  1. package/api-keys.d.ts +13 -12
  2. package/api-keys.js +64 -50
  3. package/apps.d.ts +56 -56
  4. package/apps.js +392 -304
  5. package/assistants.d.ts +34 -34
  6. package/assistants.js +257 -201
  7. package/audits.d.ts +10 -10
  8. package/audits.js +48 -36
  9. package/{auth-types-DqfMuSRX.d.ts → auth-types-Cj5bM3Yk.d.ts} +29 -9
  10. package/auth.d.ts +17 -4
  11. package/auth.js +4 -2
  12. package/automation-connections.d.ts +12 -12
  13. package/automation-connections.js +75 -59
  14. package/automations.d.ts +29 -29
  15. package/automations.js +159 -123
  16. package/automl-deployments.d.ts +4 -4
  17. package/automl-deployments.js +14 -12
  18. package/automl-predictions.d.ts +13 -13
  19. package/automl-predictions.js +56 -44
  20. package/brands.d.ts +18 -18
  21. package/brands.js +107 -83
  22. package/chunks/{LY7RP2HA.js → 4V6T7Y4L.js} +26 -8
  23. package/chunks/{RCLKKVYB.js → 6C6WMV7V.js} +9 -2
  24. package/chunks/{VVD2DPKQ.js → 6WNP7HZQ.js} +3 -3
  25. package/chunks/7MMXU6EL.js +86 -0
  26. package/chunks/{6ZONDHRN.js → EEE42MLS.js} +11 -4
  27. package/chunks/{FKDGGR2O.js → I2HA7WJB.js} +1362 -1366
  28. package/chunks/{M64RLKVG.js → M7AINAXZ.js} +7 -5
  29. package/chunks/{LTNGXTXG.js → QAOVZB27.js} +3 -3
  30. package/chunks/{YTT2FEVE.js → QZKOA6VR.js} +1 -1
  31. package/chunks/{UZTIZ4H5.js → VUYZKBT5.js} +74 -74
  32. package/chunks/{3RGGGGAR.js → ZCTVPXGO.js} +1 -1
  33. package/collections.d.ts +16 -15
  34. package/collections.js +98 -76
  35. package/conditions.d.ts +13 -13
  36. package/conditions.js +97 -75
  37. package/consumption.d.ts +4 -4
  38. package/consumption.js +11 -9
  39. package/csp-origins.d.ts +9 -9
  40. package/csp-origins.js +53 -41
  41. package/csrf-token.d.ts +3 -3
  42. package/csrf-token.js +10 -8
  43. package/data-alerts.d.ts +22 -22
  44. package/data-alerts.js +139 -107
  45. package/data-assets.d.ts +8 -8
  46. package/data-assets.js +50 -40
  47. package/data-connections.d.ts +16 -16
  48. package/data-connections.js +87 -69
  49. package/data-credentials.d.ts +11 -11
  50. package/data-credentials.js +52 -42
  51. package/data-files.d.ts +18 -18
  52. package/data-files.js +107 -83
  53. package/data-qualities.d.ts +6 -6
  54. package/data-qualities.js +28 -22
  55. package/data-sets.d.ts +10 -10
  56. package/data-sets.js +59 -47
  57. package/data-sources.d.ts +7 -7
  58. package/data-sources.js +28 -22
  59. package/data-stores.d.ts +16 -16
  60. package/data-stores.js +92 -72
  61. package/dcaas.d.ts +6 -6
  62. package/dcaas.js +28 -22
  63. package/di-projects.d.ts +22 -22
  64. package/di-projects.js +148 -116
  65. package/direct-access-agents.d.ts +328 -0
  66. package/direct-access-agents.js +108 -0
  67. package/encryption.d.ts +12 -12
  68. package/encryption.js +82 -62
  69. package/extensions.d.ts +11 -11
  70. package/extensions.js +61 -47
  71. package/glossaries.d.ts +33 -33
  72. package/glossaries.js +221 -173
  73. package/groups.d.ts +12 -12
  74. package/groups.js +72 -56
  75. package/identity-providers.d.ts +11 -11
  76. package/identity-providers.js +67 -51
  77. package/index.d.ts +9 -4
  78. package/index.js +102 -67
  79. package/interceptors.d.ts +9 -2
  80. package/interceptors.js +2 -2
  81. package/invoke-fetch-types-BYCD4pc9.d.ts +98 -0
  82. package/items.d.ts +14 -13
  83. package/items.js +71 -55
  84. package/knowledgebases.d.ts +23 -23
  85. package/knowledgebases.js +153 -119
  86. package/licenses.d.ts +16 -14
  87. package/licenses.js +76 -58
  88. package/lineage-graphs.d.ts +17 -17
  89. package/lineage-graphs.js +76 -60
  90. package/ml.d.ts +238 -60
  91. package/ml.js +391 -286
  92. package/notes.d.ts +4 -4
  93. package/notes.js +19 -15
  94. package/notifications.d.ts +4 -4
  95. package/notifications.js +11 -9
  96. package/oauth-clients.d.ts +14 -14
  97. package/oauth-clients.js +96 -74
  98. package/oauth-tokens.d.ts +5 -5
  99. package/oauth-tokens.js +19 -15
  100. package/package.json +8 -6
  101. package/qix.d.ts +145 -4
  102. package/qix.js +2 -2
  103. package/questions.d.ts +5 -5
  104. package/questions.js +22 -18
  105. package/quotas.d.ts +6 -6
  106. package/quotas.js +20 -16
  107. package/reload-tasks.d.ts +8 -8
  108. package/reload-tasks.js +46 -36
  109. package/reloads.d.ts +7 -7
  110. package/reloads.js +36 -28
  111. package/report-templates.d.ts +10 -10
  112. package/report-templates.js +64 -50
  113. package/reports.d.ts +4 -4
  114. package/reports.js +20 -16
  115. package/roles.d.ts +8 -8
  116. package/roles.js +46 -36
  117. package/sharing-tasks.d.ts +14 -14
  118. package/sharing-tasks.js +89 -69
  119. package/spaces.d.ts +27 -23
  120. package/spaces.js +153 -119
  121. package/tasks.d.ts +17 -17
  122. package/tasks.js +90 -70
  123. package/temp-contents.d.ts +7 -7
  124. package/temp-contents.js +30 -24
  125. package/tenants.d.ts +8 -8
  126. package/tenants.js +57 -45
  127. package/themes.d.ts +11 -11
  128. package/themes.js +61 -47
  129. package/transports.d.ts +8 -8
  130. package/transports.js +49 -37
  131. package/ui-config.d.ts +9 -9
  132. package/ui-config.js +61 -47
  133. package/users.d.ts +15 -15
  134. package/users.js +81 -63
  135. package/web-integrations.d.ts +8 -8
  136. package/web-integrations.js +46 -36
  137. package/web-notifications.d.ts +9 -9
  138. package/web-notifications.js +53 -41
  139. package/webhooks.d.ts +14 -14
  140. package/webhooks.js +88 -68
  141. package/chunks/2ZQ3ZX7F.js +0 -33
  142. package/invoke-fetch-types-Cq7bjkqn.d.ts +0 -243
package/sharing-tasks.js CHANGED
@@ -1,77 +1,97 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/VVD2DPKQ.js";
5
- import "./chunks/LTNGXTXG.js";
6
- import "./chunks/2ZQ3ZX7F.js";
4
+ } from "./chunks/6WNP7HZQ.js";
5
+ import "./chunks/QAOVZB27.js";
6
+ import "./chunks/7MMXU6EL.js";
7
7
 
8
8
  // src/public/rest/sharing-tasks.ts
9
- var getSharingTasks = async (query, options) => invokeFetch("sharing-tasks", {
10
- method: "get",
11
- pathTemplate: "/api/v1/sharing-tasks",
12
- query,
13
- options
14
- });
15
- var createSharingTask = async (body, options) => invokeFetch("sharing-tasks", {
16
- method: "post",
17
- pathTemplate: "/api/v1/sharing-tasks",
18
- body,
19
- contentType: "application/json",
20
- options
21
- });
22
- var executeSharingTasks = async (body, options) => invokeFetch("sharing-tasks", {
23
- method: "post",
24
- pathTemplate: "/api/v1/sharing-tasks/actions/execute",
25
- body,
26
- contentType: "application/json",
27
- options
28
- });
29
- var getSharingTasksSettings = async (options) => invokeFetch("sharing-tasks", {
30
- method: "get",
31
- pathTemplate: "/api/v1/sharing-tasks/settings",
32
- options
33
- });
34
- var updateSharingTasksSettings = async (body, options) => invokeFetch("sharing-tasks", {
35
- method: "patch",
36
- pathTemplate: "/api/v1/sharing-tasks/settings",
37
- body,
38
- contentType: "application/json",
39
- options
40
- });
41
- var configureSharingTasksSettings = async (body, options) => invokeFetch("sharing-tasks", {
42
- method: "put",
43
- pathTemplate: "/api/v1/sharing-tasks/settings",
44
- body,
45
- contentType: "application/json",
46
- options
47
- });
48
- var deleteSharingTask = async (taskId, options) => invokeFetch("sharing-tasks", {
49
- method: "delete",
50
- pathTemplate: "/api/v1/sharing-tasks/{taskId}",
51
- pathVariables: { taskId },
52
- options
53
- });
54
- var getSharingTask = async (taskId, query, options) => invokeFetch("sharing-tasks", {
55
- method: "get",
56
- pathTemplate: "/api/v1/sharing-tasks/{taskId}",
57
- pathVariables: { taskId },
58
- query,
59
- options
60
- });
61
- var patchSharingTask = async (taskId, body, options) => invokeFetch("sharing-tasks", {
62
- method: "patch",
63
- pathTemplate: "/api/v1/sharing-tasks/{taskId}",
64
- pathVariables: { taskId },
65
- body,
66
- contentType: "application/json",
67
- options
68
- });
69
- var cancelSharingTask = async (taskId, options) => invokeFetch("sharing-tasks", {
70
- method: "post",
71
- pathTemplate: "/api/v1/sharing-tasks/{taskId}/actions/cancel",
72
- pathVariables: { taskId },
73
- options
74
- });
9
+ async function getSharingTasks(query, options) {
10
+ return invokeFetch("sharing-tasks", {
11
+ method: "get",
12
+ pathTemplate: "/api/v1/sharing-tasks",
13
+ query,
14
+ options
15
+ });
16
+ }
17
+ async function createSharingTask(body, options) {
18
+ return invokeFetch("sharing-tasks", {
19
+ method: "post",
20
+ pathTemplate: "/api/v1/sharing-tasks",
21
+ body,
22
+ contentType: "application/json",
23
+ options
24
+ });
25
+ }
26
+ async function executeSharingTasks(body, options) {
27
+ return invokeFetch("sharing-tasks", {
28
+ method: "post",
29
+ pathTemplate: "/api/v1/sharing-tasks/actions/execute",
30
+ body,
31
+ contentType: "application/json",
32
+ options
33
+ });
34
+ }
35
+ async function getSharingTasksSettings(options) {
36
+ return invokeFetch("sharing-tasks", {
37
+ method: "get",
38
+ pathTemplate: "/api/v1/sharing-tasks/settings",
39
+ options
40
+ });
41
+ }
42
+ async function updateSharingTasksSettings(body, options) {
43
+ return invokeFetch("sharing-tasks", {
44
+ method: "patch",
45
+ pathTemplate: "/api/v1/sharing-tasks/settings",
46
+ body,
47
+ contentType: "application/json",
48
+ options
49
+ });
50
+ }
51
+ async function configureSharingTasksSettings(body, options) {
52
+ return invokeFetch("sharing-tasks", {
53
+ method: "put",
54
+ pathTemplate: "/api/v1/sharing-tasks/settings",
55
+ body,
56
+ contentType: "application/json",
57
+ options
58
+ });
59
+ }
60
+ async function deleteSharingTask(taskId, options) {
61
+ return invokeFetch("sharing-tasks", {
62
+ method: "delete",
63
+ pathTemplate: "/api/v1/sharing-tasks/{taskId}",
64
+ pathVariables: { taskId },
65
+ options
66
+ });
67
+ }
68
+ async function getSharingTask(taskId, query, options) {
69
+ return invokeFetch("sharing-tasks", {
70
+ method: "get",
71
+ pathTemplate: "/api/v1/sharing-tasks/{taskId}",
72
+ pathVariables: { taskId },
73
+ query,
74
+ options
75
+ });
76
+ }
77
+ async function patchSharingTask(taskId, body, options) {
78
+ return invokeFetch("sharing-tasks", {
79
+ method: "patch",
80
+ pathTemplate: "/api/v1/sharing-tasks/{taskId}",
81
+ pathVariables: { taskId },
82
+ body,
83
+ contentType: "application/json",
84
+ options
85
+ });
86
+ }
87
+ async function cancelSharingTask(taskId, options) {
88
+ return invokeFetch("sharing-tasks", {
89
+ method: "post",
90
+ pathTemplate: "/api/v1/sharing-tasks/{taskId}/actions/cancel",
91
+ pathVariables: { taskId },
92
+ options
93
+ });
94
+ }
75
95
  function clearCache() {
76
96
  return clearApiCache("sharing-tasks");
77
97
  }
package/spaces.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import { A as ApiCallOptions } from './invoke-fetch-types-Cq7bjkqn.js';
2
- import './auth-types-DqfMuSRX.js';
1
+ import { A as ApiCallOptions } from './invoke-fetch-types-BYCD4pc9.js';
2
+ import './auth-types-Cj5bM3Yk.js';
3
3
 
4
4
  /**
5
5
  * The supported actions for user-created spaces.
6
6
  */
7
- type ActionName = "change_owner" | "create" | "read" | "update" | "delete" | "publish" | "link_environment";
7
+ type ActionName = "change_owner" | "create" | "read" | "update" | "delete" | "publish" | "link_environment" | "restrict";
8
8
  type Assignment = {
9
9
  /** The userId or groupId based on the type. */
10
10
  assigneeId: string;
@@ -280,7 +280,7 @@ type Spaces = {
280
280
  * @param query an object with query parameters
281
281
  * @throws GetSpacesHttpError
282
282
  */
283
- declare const getSpaces: (query: {
283
+ declare function getSpaces(query: {
284
284
  /** Action on space. Supports only "?action=publish". */
285
285
  action?: string;
286
286
  /** Exact match filtering on space name using SCIM. Case insensitive on attribute name. For example ?filter=name eq "MySpace" and ?filter=NAME eq "MySpace" is both valid. */
@@ -299,7 +299,7 @@ declare const getSpaces: (query: {
299
299
  sort?: string;
300
300
  /** Type(s) of space to filter. For example, "?type=managed,shared". */
301
301
  type?: string;
302
- }, options?: ApiCallOptions) => Promise<GetSpacesHttpResponse>;
302
+ }, options?: ApiCallOptions): Promise<GetSpacesHttpResponse>;
303
303
  type GetSpacesHttpResponse = {
304
304
  data: Spaces;
305
305
  headers: Headers;
@@ -318,7 +318,7 @@ type GetSpacesHttpError = {
318
318
  * @param body an object with the body content
319
319
  * @throws CreateSpaceHttpError
320
320
  */
321
- declare const createSpace: (body: SpaceCreate, options?: ApiCallOptions) => Promise<CreateSpaceHttpResponse>;
321
+ declare function createSpace(body: SpaceCreate, options?: ApiCallOptions): Promise<CreateSpaceHttpResponse>;
322
322
  type CreateSpaceHttpResponse = {
323
323
  data: Space;
324
324
  headers: Headers;
@@ -334,7 +334,7 @@ type CreateSpaceHttpError = {
334
334
  *
335
335
  * @throws GetSpaceTypesHttpError
336
336
  */
337
- declare const getSpaceTypes: (options?: ApiCallOptions) => Promise<GetSpaceTypesHttpResponse>;
337
+ declare function getSpaceTypes(options?: ApiCallOptions): Promise<GetSpaceTypesHttpResponse>;
338
338
  type GetSpaceTypesHttpResponse = {
339
339
  data: SpaceTypes;
340
340
  headers: Headers;
@@ -351,7 +351,7 @@ type GetSpaceTypesHttpError = {
351
351
  * @param spaceId The ID of the space to delete.
352
352
  * @throws DeleteSpaceHttpError
353
353
  */
354
- declare const deleteSpace: (spaceId: string, options?: ApiCallOptions) => Promise<DeleteSpaceHttpResponse>;
354
+ declare function deleteSpace(spaceId: string, options?: ApiCallOptions): Promise<DeleteSpaceHttpResponse>;
355
355
  type DeleteSpaceHttpResponse = {
356
356
  data: void;
357
357
  headers: Headers;
@@ -368,7 +368,7 @@ type DeleteSpaceHttpError = {
368
368
  * @param spaceId The ID of the space to retrieve.
369
369
  * @throws GetSpaceHttpError
370
370
  */
371
- declare const getSpace: (spaceId: string, options?: ApiCallOptions) => Promise<GetSpaceHttpResponse>;
371
+ declare function getSpace(spaceId: string, options?: ApiCallOptions): Promise<GetSpaceHttpResponse>;
372
372
  type GetSpaceHttpResponse = {
373
373
  data: Space;
374
374
  headers: Headers;
@@ -386,7 +386,7 @@ type GetSpaceHttpError = {
386
386
  * @param body an object with the body content
387
387
  * @throws PatchSpaceHttpError
388
388
  */
389
- declare const patchSpace: (spaceId: string, body: SpacePatch, options?: ApiCallOptions) => Promise<PatchSpaceHttpResponse>;
389
+ declare function patchSpace(spaceId: string, body: SpacePatch, options?: ApiCallOptions): Promise<PatchSpaceHttpResponse>;
390
390
  type PatchSpaceHttpResponse = {
391
391
  data: Space;
392
392
  headers: Headers;
@@ -404,7 +404,7 @@ type PatchSpaceHttpError = {
404
404
  * @param body an object with the body content
405
405
  * @throws UpdateSpaceHttpError
406
406
  */
407
- declare const updateSpace: (spaceId: string, body: SpaceUpdate, options?: ApiCallOptions) => Promise<UpdateSpaceHttpResponse>;
407
+ declare function updateSpace(spaceId: string, body: SpaceUpdate, options?: ApiCallOptions): Promise<UpdateSpaceHttpResponse>;
408
408
  type UpdateSpaceHttpResponse = {
409
409
  data: Space;
410
410
  headers: Headers;
@@ -422,18 +422,22 @@ type UpdateSpaceHttpError = {
422
422
  * @param query an object with query parameters
423
423
  * @throws GetSpaceAssignmentsHttpError
424
424
  */
425
- declare const getSpaceAssignments: (spaceId: string, query: {
425
+ declare function getSpaceAssignments(spaceId: string, query: {
426
426
  /** Filters assignment for a specific assigneeid. */
427
427
  assigneeId?: string;
428
+ /** The bot user of the assignment. The value should be a boolean, for example ?botUser=true */
429
+ botUser?: boolean;
428
430
  /** Maximum number of assignments to return. */
429
431
  limit?: number;
430
432
  /** The next page cursor. Next links make use of this. */
431
433
  next?: string;
432
434
  /** The previous page cursor. Previous links make use of this. */
433
435
  prev?: string;
436
+ /** The roles of the assignment. The value should be a comma separated list of roles, for example ?roles=facilitator,contributor */
437
+ roles?: RoleType[];
434
438
  /** The type of assignment. Supported values are user or group. */
435
439
  type?: AssignmentType;
436
- }, options?: ApiCallOptions) => Promise<GetSpaceAssignmentsHttpResponse>;
440
+ }, options?: ApiCallOptions): Promise<GetSpaceAssignmentsHttpResponse>;
437
441
  type GetSpaceAssignmentsHttpResponse = {
438
442
  data: Assignments;
439
443
  headers: Headers;
@@ -453,7 +457,7 @@ type GetSpaceAssignmentsHttpError = {
453
457
  * @param body an object with the body content
454
458
  * @throws CreateSpaceAssignmentHttpError
455
459
  */
456
- declare const createSpaceAssignment: (spaceId: string, body: AssignmentCreate, options?: ApiCallOptions) => Promise<CreateSpaceAssignmentHttpResponse>;
460
+ declare function createSpaceAssignment(spaceId: string, body: AssignmentCreate, options?: ApiCallOptions): Promise<CreateSpaceAssignmentHttpResponse>;
457
461
  type CreateSpaceAssignmentHttpResponse = {
458
462
  data: Assignment;
459
463
  headers: Headers;
@@ -471,7 +475,7 @@ type CreateSpaceAssignmentHttpError = {
471
475
  * @param assignmentId The ID of the assignment to delete.
472
476
  * @throws DeleteSpaceAssignmentHttpError
473
477
  */
474
- declare const deleteSpaceAssignment: (spaceId: string, assignmentId: string, options?: ApiCallOptions) => Promise<DeleteSpaceAssignmentHttpResponse>;
478
+ declare function deleteSpaceAssignment(spaceId: string, assignmentId: string, options?: ApiCallOptions): Promise<DeleteSpaceAssignmentHttpResponse>;
475
479
  type DeleteSpaceAssignmentHttpResponse = {
476
480
  data: void;
477
481
  headers: Headers;
@@ -489,7 +493,7 @@ type DeleteSpaceAssignmentHttpError = {
489
493
  * @param assignmentId The ID of the assignment to retrieve.
490
494
  * @throws GetSpaceAssignmentHttpError
491
495
  */
492
- declare const getSpaceAssignment: (spaceId: string, assignmentId: string, options?: ApiCallOptions) => Promise<GetSpaceAssignmentHttpResponse>;
496
+ declare function getSpaceAssignment(spaceId: string, assignmentId: string, options?: ApiCallOptions): Promise<GetSpaceAssignmentHttpResponse>;
493
497
  type GetSpaceAssignmentHttpResponse = {
494
498
  data: Assignment;
495
499
  headers: Headers;
@@ -508,7 +512,7 @@ type GetSpaceAssignmentHttpError = {
508
512
  * @param body an object with the body content
509
513
  * @throws UpdateSpaceAssignmentHttpError
510
514
  */
511
- declare const updateSpaceAssignment: (spaceId: string, assignmentId: string, body: AssignmentUpdate, options?: ApiCallOptions) => Promise<UpdateSpaceAssignmentHttpResponse>;
515
+ declare function updateSpaceAssignment(spaceId: string, assignmentId: string, body: AssignmentUpdate, options?: ApiCallOptions): Promise<UpdateSpaceAssignmentHttpResponse>;
512
516
  type UpdateSpaceAssignmentHttpResponse = {
513
517
  data: Assignment;
514
518
  headers: Headers;
@@ -526,7 +530,7 @@ type UpdateSpaceAssignmentHttpError = {
526
530
  * @param query an object with query parameters
527
531
  * @throws GetSpaceSharesHttpError
528
532
  */
529
- declare const getSpaceShares: (spaceId: string, query: {
533
+ declare function getSpaceShares(spaceId: string, query: {
530
534
  /** The ID of the group to which the resource is shared. */
531
535
  groupId?: string;
532
536
  /** Maximum number of shares to return. */
@@ -545,7 +549,7 @@ declare const getSpaceShares: (spaceId: string, query: {
545
549
  type?: ShareType;
546
550
  /** The ID of the user to which the resource is shared. */
547
551
  userId?: string;
548
- }, options?: ApiCallOptions) => Promise<GetSpaceSharesHttpResponse>;
552
+ }, options?: ApiCallOptions): Promise<GetSpaceSharesHttpResponse>;
549
553
  type GetSpaceSharesHttpResponse = {
550
554
  data: Shares;
551
555
  headers: Headers;
@@ -565,7 +569,7 @@ type GetSpaceSharesHttpError = {
565
569
  * @param body an object with the body content
566
570
  * @throws CreateSpaceShareHttpError
567
571
  */
568
- declare const createSpaceShare: (spaceId: string, body: ShareCreate, options?: ApiCallOptions) => Promise<CreateSpaceShareHttpResponse>;
572
+ declare function createSpaceShare(spaceId: string, body: ShareCreate, options?: ApiCallOptions): Promise<CreateSpaceShareHttpResponse>;
569
573
  type CreateSpaceShareHttpResponse = {
570
574
  data: Share;
571
575
  headers: Headers;
@@ -583,7 +587,7 @@ type CreateSpaceShareHttpError = {
583
587
  * @param shareId The ID of the share to delete.
584
588
  * @throws DeleteSpaceShareHttpError
585
589
  */
586
- declare const deleteSpaceShare: (spaceId: string, shareId: string, options?: ApiCallOptions) => Promise<DeleteSpaceShareHttpResponse>;
590
+ declare function deleteSpaceShare(spaceId: string, shareId: string, options?: ApiCallOptions): Promise<DeleteSpaceShareHttpResponse>;
587
591
  type DeleteSpaceShareHttpResponse = {
588
592
  data: void;
589
593
  headers: Headers;
@@ -601,7 +605,7 @@ type DeleteSpaceShareHttpError = {
601
605
  * @param shareId The ID of the share to retrieve.
602
606
  * @throws GetSpaceShareHttpError
603
607
  */
604
- declare const getSpaceShare: (spaceId: string, shareId: string, options?: ApiCallOptions) => Promise<GetSpaceShareHttpResponse>;
608
+ declare function getSpaceShare(spaceId: string, shareId: string, options?: ApiCallOptions): Promise<GetSpaceShareHttpResponse>;
605
609
  type GetSpaceShareHttpResponse = {
606
610
  data: Share;
607
611
  headers: Headers;
@@ -620,7 +624,7 @@ type GetSpaceShareHttpError = {
620
624
  * @param body an object with the body content
621
625
  * @throws PatchShareHttpError
622
626
  */
623
- declare const patchShare: (spaceId: string, shareId: string, body: SharePatch, options?: ApiCallOptions) => Promise<PatchShareHttpResponse>;
627
+ declare function patchShare(spaceId: string, shareId: string, body: SharePatch, options?: ApiCallOptions): Promise<PatchShareHttpResponse>;
624
628
  type PatchShareHttpResponse = {
625
629
  data: Share;
626
630
  headers: Headers;
package/spaces.js CHANGED
@@ -1,127 +1,161 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/VVD2DPKQ.js";
5
- import "./chunks/LTNGXTXG.js";
6
- import "./chunks/2ZQ3ZX7F.js";
4
+ } from "./chunks/6WNP7HZQ.js";
5
+ import "./chunks/QAOVZB27.js";
6
+ import "./chunks/7MMXU6EL.js";
7
7
 
8
8
  // src/public/rest/spaces.ts
9
- var getSpaces = async (query, options) => invokeFetch("spaces", {
10
- method: "get",
11
- pathTemplate: "/api/v1/spaces",
12
- query,
13
- options
14
- });
15
- var createSpace = async (body, options) => invokeFetch("spaces", {
16
- method: "post",
17
- pathTemplate: "/api/v1/spaces",
18
- body,
19
- contentType: "application/json",
20
- options
21
- });
22
- var getSpaceTypes = async (options) => invokeFetch("spaces", {
23
- method: "get",
24
- pathTemplate: "/api/v1/spaces/types",
25
- options
26
- });
27
- var deleteSpace = async (spaceId, options) => invokeFetch("spaces", {
28
- method: "delete",
29
- pathTemplate: "/api/v1/spaces/{spaceId}",
30
- pathVariables: { spaceId },
31
- options
32
- });
33
- var getSpace = async (spaceId, options) => invokeFetch("spaces", {
34
- method: "get",
35
- pathTemplate: "/api/v1/spaces/{spaceId}",
36
- pathVariables: { spaceId },
37
- options
38
- });
39
- var patchSpace = async (spaceId, body, options) => invokeFetch("spaces", {
40
- method: "patch",
41
- pathTemplate: "/api/v1/spaces/{spaceId}",
42
- pathVariables: { spaceId },
43
- body,
44
- contentType: "application/json",
45
- options
46
- });
47
- var updateSpace = async (spaceId, body, options) => invokeFetch("spaces", {
48
- method: "put",
49
- pathTemplate: "/api/v1/spaces/{spaceId}",
50
- pathVariables: { spaceId },
51
- body,
52
- contentType: "application/json",
53
- options
54
- });
55
- var getSpaceAssignments = async (spaceId, query, options) => invokeFetch("spaces", {
56
- method: "get",
57
- pathTemplate: "/api/v1/spaces/{spaceId}/assignments",
58
- pathVariables: { spaceId },
59
- query,
60
- options
61
- });
62
- var createSpaceAssignment = async (spaceId, body, options) => invokeFetch("spaces", {
63
- method: "post",
64
- pathTemplate: "/api/v1/spaces/{spaceId}/assignments",
65
- pathVariables: { spaceId },
66
- body,
67
- contentType: "application/json",
68
- options
69
- });
70
- var deleteSpaceAssignment = async (spaceId, assignmentId, options) => invokeFetch("spaces", {
71
- method: "delete",
72
- pathTemplate: "/api/v1/spaces/{spaceId}/assignments/{assignmentId}",
73
- pathVariables: { spaceId, assignmentId },
74
- options
75
- });
76
- var getSpaceAssignment = async (spaceId, assignmentId, options) => invokeFetch("spaces", {
77
- method: "get",
78
- pathTemplate: "/api/v1/spaces/{spaceId}/assignments/{assignmentId}",
79
- pathVariables: { spaceId, assignmentId },
80
- options
81
- });
82
- var updateSpaceAssignment = async (spaceId, assignmentId, body, options) => invokeFetch("spaces", {
83
- method: "put",
84
- pathTemplate: "/api/v1/spaces/{spaceId}/assignments/{assignmentId}",
85
- pathVariables: { spaceId, assignmentId },
86
- body,
87
- contentType: "application/json",
88
- options
89
- });
90
- var getSpaceShares = async (spaceId, query, options) => invokeFetch("spaces", {
91
- method: "get",
92
- pathTemplate: "/api/v1/spaces/{spaceId}/shares",
93
- pathVariables: { spaceId },
94
- query,
95
- options
96
- });
97
- var createSpaceShare = async (spaceId, body, options) => invokeFetch("spaces", {
98
- method: "post",
99
- pathTemplate: "/api/v1/spaces/{spaceId}/shares",
100
- pathVariables: { spaceId },
101
- body,
102
- contentType: "application/json",
103
- options
104
- });
105
- var deleteSpaceShare = async (spaceId, shareId, options) => invokeFetch("spaces", {
106
- method: "delete",
107
- pathTemplate: "/api/v1/spaces/{spaceId}/shares/{shareId}",
108
- pathVariables: { spaceId, shareId },
109
- options
110
- });
111
- var getSpaceShare = async (spaceId, shareId, options) => invokeFetch("spaces", {
112
- method: "get",
113
- pathTemplate: "/api/v1/spaces/{spaceId}/shares/{shareId}",
114
- pathVariables: { spaceId, shareId },
115
- options
116
- });
117
- var patchShare = async (spaceId, shareId, body, options) => invokeFetch("spaces", {
118
- method: "patch",
119
- pathTemplate: "/api/v1/spaces/{spaceId}/shares/{shareId}",
120
- pathVariables: { spaceId, shareId },
121
- body,
122
- contentType: "application/json",
123
- options
124
- });
9
+ async function getSpaces(query, options) {
10
+ return invokeFetch("spaces", {
11
+ method: "get",
12
+ pathTemplate: "/api/v1/spaces",
13
+ query,
14
+ options
15
+ });
16
+ }
17
+ async function createSpace(body, options) {
18
+ return invokeFetch("spaces", {
19
+ method: "post",
20
+ pathTemplate: "/api/v1/spaces",
21
+ body,
22
+ contentType: "application/json",
23
+ options
24
+ });
25
+ }
26
+ async function getSpaceTypes(options) {
27
+ return invokeFetch("spaces", {
28
+ method: "get",
29
+ pathTemplate: "/api/v1/spaces/types",
30
+ options
31
+ });
32
+ }
33
+ async function deleteSpace(spaceId, options) {
34
+ return invokeFetch("spaces", {
35
+ method: "delete",
36
+ pathTemplate: "/api/v1/spaces/{spaceId}",
37
+ pathVariables: { spaceId },
38
+ options
39
+ });
40
+ }
41
+ async function getSpace(spaceId, options) {
42
+ return invokeFetch("spaces", {
43
+ method: "get",
44
+ pathTemplate: "/api/v1/spaces/{spaceId}",
45
+ pathVariables: { spaceId },
46
+ options
47
+ });
48
+ }
49
+ async function patchSpace(spaceId, body, options) {
50
+ return invokeFetch("spaces", {
51
+ method: "patch",
52
+ pathTemplate: "/api/v1/spaces/{spaceId}",
53
+ pathVariables: { spaceId },
54
+ body,
55
+ contentType: "application/json",
56
+ options
57
+ });
58
+ }
59
+ async function updateSpace(spaceId, body, options) {
60
+ return invokeFetch("spaces", {
61
+ method: "put",
62
+ pathTemplate: "/api/v1/spaces/{spaceId}",
63
+ pathVariables: { spaceId },
64
+ body,
65
+ contentType: "application/json",
66
+ options
67
+ });
68
+ }
69
+ async function getSpaceAssignments(spaceId, query, options) {
70
+ return invokeFetch("spaces", {
71
+ method: "get",
72
+ pathTemplate: "/api/v1/spaces/{spaceId}/assignments",
73
+ pathVariables: { spaceId },
74
+ query,
75
+ options
76
+ });
77
+ }
78
+ async function createSpaceAssignment(spaceId, body, options) {
79
+ return invokeFetch("spaces", {
80
+ method: "post",
81
+ pathTemplate: "/api/v1/spaces/{spaceId}/assignments",
82
+ pathVariables: { spaceId },
83
+ body,
84
+ contentType: "application/json",
85
+ options
86
+ });
87
+ }
88
+ async function deleteSpaceAssignment(spaceId, assignmentId, options) {
89
+ return invokeFetch("spaces", {
90
+ method: "delete",
91
+ pathTemplate: "/api/v1/spaces/{spaceId}/assignments/{assignmentId}",
92
+ pathVariables: { spaceId, assignmentId },
93
+ options
94
+ });
95
+ }
96
+ async function getSpaceAssignment(spaceId, assignmentId, options) {
97
+ return invokeFetch("spaces", {
98
+ method: "get",
99
+ pathTemplate: "/api/v1/spaces/{spaceId}/assignments/{assignmentId}",
100
+ pathVariables: { spaceId, assignmentId },
101
+ options
102
+ });
103
+ }
104
+ async function updateSpaceAssignment(spaceId, assignmentId, body, options) {
105
+ return invokeFetch("spaces", {
106
+ method: "put",
107
+ pathTemplate: "/api/v1/spaces/{spaceId}/assignments/{assignmentId}",
108
+ pathVariables: { spaceId, assignmentId },
109
+ body,
110
+ contentType: "application/json",
111
+ options
112
+ });
113
+ }
114
+ async function getSpaceShares(spaceId, query, options) {
115
+ return invokeFetch("spaces", {
116
+ method: "get",
117
+ pathTemplate: "/api/v1/spaces/{spaceId}/shares",
118
+ pathVariables: { spaceId },
119
+ query,
120
+ options
121
+ });
122
+ }
123
+ async function createSpaceShare(spaceId, body, options) {
124
+ return invokeFetch("spaces", {
125
+ method: "post",
126
+ pathTemplate: "/api/v1/spaces/{spaceId}/shares",
127
+ pathVariables: { spaceId },
128
+ body,
129
+ contentType: "application/json",
130
+ options
131
+ });
132
+ }
133
+ async function deleteSpaceShare(spaceId, shareId, options) {
134
+ return invokeFetch("spaces", {
135
+ method: "delete",
136
+ pathTemplate: "/api/v1/spaces/{spaceId}/shares/{shareId}",
137
+ pathVariables: { spaceId, shareId },
138
+ options
139
+ });
140
+ }
141
+ async function getSpaceShare(spaceId, shareId, options) {
142
+ return invokeFetch("spaces", {
143
+ method: "get",
144
+ pathTemplate: "/api/v1/spaces/{spaceId}/shares/{shareId}",
145
+ pathVariables: { spaceId, shareId },
146
+ options
147
+ });
148
+ }
149
+ async function patchShare(spaceId, shareId, body, options) {
150
+ return invokeFetch("spaces", {
151
+ method: "patch",
152
+ pathTemplate: "/api/v1/spaces/{spaceId}/shares/{shareId}",
153
+ pathVariables: { spaceId, shareId },
154
+ body,
155
+ contentType: "application/json",
156
+ options
157
+ });
158
+ }
125
159
  function clearCache() {
126
160
  return clearApiCache("spaces");
127
161
  }