@qlik/api 0.0.1 → 0.0.2

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 (126) hide show
  1. package/.github/CODEOWNERS +2 -0
  2. package/.github/workflows/release.yaml +35 -0
  3. package/README.md +1 -3
  4. package/api-keys.d.mts +13 -13
  5. package/api-keys.d.ts +13 -13
  6. package/api-keys.js +13 -13
  7. package/api-keys.mjs +8 -8
  8. package/apps.d.mts +104 -19
  9. package/apps.d.ts +104 -19
  10. package/apps.js +53 -44
  11. package/apps.mjs +20 -11
  12. package/audits.d.mts +8 -8
  13. package/audits.d.ts +8 -8
  14. package/audits.js +11 -11
  15. package/audits.mjs +6 -6
  16. package/auth-OU7OTB7Y.js +38 -0
  17. package/auth-RTFXVSSK.mjs +38 -0
  18. package/auth.js +3 -3
  19. package/auth.mjs +2 -2
  20. package/automations.d.mts +20 -20
  21. package/automations.d.ts +20 -20
  22. package/automations.js +25 -25
  23. package/automations.mjs +11 -11
  24. package/brands.js +15 -15
  25. package/brands.mjs +2 -2
  26. package/chunk-6JERR27K.js +17 -0
  27. package/chunk-7REWEWCX.mjs +21 -0
  28. package/chunk-E42WUFCK.mjs +57 -0
  29. package/chunk-H7SAZYEE.js +21 -0
  30. package/chunk-KMMWJZHM.mjs +25 -0
  31. package/chunk-M7F4JFOB.js +57 -0
  32. package/chunk-NALKLKZS.mjs +1342 -0
  33. package/chunk-QN23TPIE.js +25 -0
  34. package/chunk-RMKP2BDX.js +1342 -0
  35. package/chunk-W4J34XGA.mjs +17 -0
  36. package/collections.d.mts +1 -1
  37. package/collections.d.ts +1 -1
  38. package/collections.js +13 -13
  39. package/collections.mjs +2 -2
  40. package/csp-origins.js +9 -9
  41. package/csp-origins.mjs +2 -2
  42. package/data-assets.js +8 -8
  43. package/data-assets.mjs +2 -2
  44. package/data-connections.d.mts +2 -0
  45. package/data-connections.d.ts +2 -0
  46. package/data-connections.js +12 -12
  47. package/data-connections.mjs +2 -2
  48. package/data-credentials.d.mts +2 -0
  49. package/data-credentials.d.ts +2 -0
  50. package/data-credentials.js +7 -7
  51. package/data-credentials.mjs +2 -2
  52. package/data-files.d.mts +16 -16
  53. package/data-files.d.ts +16 -16
  54. package/data-files.js +18 -18
  55. package/data-files.mjs +8 -8
  56. package/enigma-session-HGXKZJVO.mjs +10200 -0
  57. package/enigma-session-VPPJMBEM.js +10200 -0
  58. package/esm-M5ZBFTVD.mjs +65 -0
  59. package/esm-RX7B2TUN.js +65 -0
  60. package/extensions.js +10 -10
  61. package/extensions.mjs +2 -2
  62. package/glossaries.js +27 -27
  63. package/glossaries.mjs +2 -2
  64. package/groups.d.mts +13 -13
  65. package/groups.d.ts +13 -13
  66. package/groups.js +14 -14
  67. package/groups.mjs +8 -8
  68. package/identity-providers.d.mts +7 -7
  69. package/identity-providers.d.ts +7 -7
  70. package/identity-providers.js +13 -13
  71. package/identity-providers.mjs +5 -5
  72. package/index.js +27 -23
  73. package/index.mjs +23 -19
  74. package/invoke-fetch-7PKPQ3FD.js +14 -0
  75. package/invoke-fetch-IMO4AMA3.mjs +14 -0
  76. package/items.d.mts +19 -16
  77. package/items.d.ts +19 -16
  78. package/items.js +14 -14
  79. package/items.mjs +8 -8
  80. package/licenses.d.mts +2 -0
  81. package/licenses.d.ts +2 -0
  82. package/licenses.js +12 -12
  83. package/licenses.mjs +2 -2
  84. package/package.json +6 -17
  85. package/qix-57WD2ZE6.mjs +573 -0
  86. package/qix-K22VHZRH.js +573 -0
  87. package/qix.d.mts +1066 -1017
  88. package/qix.d.ts +1066 -1017
  89. package/qix.js +3 -3
  90. package/qix.mjs +2 -2
  91. package/quotas.js +5 -5
  92. package/quotas.mjs +2 -2
  93. package/reload-tasks.d.mts +2 -0
  94. package/reload-tasks.d.ts +2 -0
  95. package/reload-tasks.js +8 -8
  96. package/reload-tasks.mjs +2 -2
  97. package/reloads.d.mts +4 -2
  98. package/reloads.d.ts +4 -2
  99. package/reloads.js +7 -7
  100. package/reloads.mjs +2 -2
  101. package/roles.js +5 -5
  102. package/roles.mjs +2 -2
  103. package/spaces.d.mts +9 -26
  104. package/spaces.d.ts +9 -26
  105. package/spaces.js +15 -15
  106. package/spaces.mjs +2 -2
  107. package/temp-contents.d.mts +1 -67
  108. package/temp-contents.d.ts +1 -67
  109. package/temp-contents.js +8 -29
  110. package/temp-contents.mjs +3 -24
  111. package/tenants.js +9 -9
  112. package/tenants.mjs +2 -2
  113. package/themes.js +10 -10
  114. package/themes.mjs +2 -2
  115. package/transports.js +9 -9
  116. package/transports.mjs +2 -2
  117. package/users.js +13 -13
  118. package/users.mjs +2 -2
  119. package/web-integrations.js +8 -8
  120. package/web-integrations.mjs +2 -2
  121. package/web-notifications.js +9 -9
  122. package/web-notifications.mjs +2 -2
  123. package/webhooks.d.mts +2 -2
  124. package/webhooks.d.ts +2 -2
  125. package/webhooks.js +13 -13
  126. package/webhooks.mjs +2 -2
package/qix.js CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunk4ES65KO3js = require('./chunk-4ES65KO3.js');
5
- require('./chunk-ZT4C7KCQ.js');
4
+ var _chunkM7F4JFOBjs = require('./chunk-M7F4JFOB.js');
5
+ require('./chunk-H7SAZYEE.js');
6
6
 
7
7
 
8
8
 
9
- exports.default = _chunk4ES65KO3js.qix_default; exports.openAppSession = _chunk4ES65KO3js.openAppSession;
9
+ exports.default = _chunkM7F4JFOBjs.qix_default; exports.openAppSession = _chunkM7F4JFOBjs.openAppSession;
package/qix.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  openAppSession,
3
3
  qix_default
4
- } from "./chunk-CKPJE4IA.mjs";
5
- import "./chunk-WM7FQU2U.mjs";
4
+ } from "./chunk-E42WUFCK.mjs";
5
+ import "./chunk-7REWEWCX.mjs";
6
6
  export {
7
7
  qix_default as default,
8
8
  openAppSession
package/quotas.js CHANGED
@@ -1,17 +1,17 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkOULT3V2Ujs = require('./chunk-OULT3V2U.js');
5
- require('./chunk-ZT4C7KCQ.js');
4
+ var _chunk6JERR27Kjs = require('./chunk-6JERR27K.js');
5
+ require('./chunk-H7SAZYEE.js');
6
6
 
7
7
  // src/public/rest/quotas.ts
8
- var getQuotas = async (query, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "quotas", {
8
+ var getQuotas = async (query, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "quotas", {
9
9
  method: "get",
10
10
  pathTemplate: "/api/v1/quotas",
11
11
  query,
12
12
  options
13
13
  });
14
- var getQuota = async (id, query, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "quotas", {
14
+ var getQuota = async (id, query, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "quotas", {
15
15
  method: "get",
16
16
  pathTemplate: "/api/v1/quotas/{id}",
17
17
  pathVariables: { id },
@@ -19,7 +19,7 @@ var getQuota = async (id, query, options) => _chunkOULT3V2Ujs.invokeFetch.call(v
19
19
  options
20
20
  });
21
21
  function clearCache() {
22
- return _chunkOULT3V2Ujs.clearApiCache.call(void 0, "quotas");
22
+ return _chunk6JERR27Kjs.clearApiCache.call(void 0, "quotas");
23
23
  }
24
24
  var quotasExport = { getQuotas, getQuota, clearCache };
25
25
  var quotas_default = quotasExport;
package/quotas.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunk-3YE7EI7I.mjs";
5
- import "./chunk-WM7FQU2U.mjs";
4
+ } from "./chunk-W4J34XGA.mjs";
5
+ import "./chunk-7REWEWCX.mjs";
6
6
 
7
7
  // src/public/rest/quotas.ts
8
8
  var getQuotas = async (query, options) => invokeFetch("quotas", {
@@ -29,6 +29,8 @@ type SelfLink = {
29
29
  self: Href;
30
30
  };
31
31
  type Task = TaskBase & {
32
+ /** The reason why the task was disabled. */
33
+ disabledCode?: "MANUALLY" | "CONSECUTIVE-FAILURES" | "OWNER-DELETED" | "OWNER-DISABLED";
32
34
  /** The fortress ID of the application */
33
35
  fortressId?: string;
34
36
  /** The ID of the task. */
package/reload-tasks.d.ts CHANGED
@@ -29,6 +29,8 @@ type SelfLink = {
29
29
  self: Href;
30
30
  };
31
31
  type Task = TaskBase & {
32
+ /** The reason why the task was disabled. */
33
+ disabledCode?: "MANUALLY" | "CONSECUTIVE-FAILURES" | "OWNER-DELETED" | "OWNER-DISABLED";
32
34
  /** The fortress ID of the application */
33
35
  fortressId?: string;
34
36
  /** The ID of the task. */
package/reload-tasks.js CHANGED
@@ -1,35 +1,35 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkOULT3V2Ujs = require('./chunk-OULT3V2U.js');
5
- require('./chunk-ZT4C7KCQ.js');
4
+ var _chunk6JERR27Kjs = require('./chunk-6JERR27K.js');
5
+ require('./chunk-H7SAZYEE.js');
6
6
 
7
7
  // src/public/rest/reload-tasks.ts
8
- var getReloadTasks = async (query, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "reload-tasks", {
8
+ var getReloadTasks = async (query, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "reload-tasks", {
9
9
  method: "get",
10
10
  pathTemplate: "/api/v1/reload-tasks",
11
11
  query,
12
12
  options
13
13
  });
14
- var createReloadTask = async (body, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "reload-tasks", {
14
+ var createReloadTask = async (body, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "reload-tasks", {
15
15
  method: "post",
16
16
  pathTemplate: "/api/v1/reload-tasks",
17
17
  body,
18
18
  options
19
19
  });
20
- var deleteReloadTask = async (taskId, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "reload-tasks", {
20
+ var deleteReloadTask = async (taskId, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "reload-tasks", {
21
21
  method: "delete",
22
22
  pathTemplate: "/api/v1/reload-tasks/{taskId}",
23
23
  pathVariables: { taskId },
24
24
  options
25
25
  });
26
- var getReloadTask = async (taskId, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "reload-tasks", {
26
+ var getReloadTask = async (taskId, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "reload-tasks", {
27
27
  method: "get",
28
28
  pathTemplate: "/api/v1/reload-tasks/{taskId}",
29
29
  pathVariables: { taskId },
30
30
  options
31
31
  });
32
- var updateReloadTask = async (taskId, body, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "reload-tasks", {
32
+ var updateReloadTask = async (taskId, body, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "reload-tasks", {
33
33
  method: "put",
34
34
  pathTemplate: "/api/v1/reload-tasks/{taskId}",
35
35
  pathVariables: { taskId },
@@ -37,7 +37,7 @@ var updateReloadTask = async (taskId, body, options) => _chunkOULT3V2Ujs.invokeF
37
37
  options
38
38
  });
39
39
  function clearCache() {
40
- return _chunkOULT3V2Ujs.clearApiCache.call(void 0, "reload-tasks");
40
+ return _chunk6JERR27Kjs.clearApiCache.call(void 0, "reload-tasks");
41
41
  }
42
42
  var reloadTasksExport = {
43
43
  getReloadTasks,
package/reload-tasks.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunk-3YE7EI7I.mjs";
5
- import "./chunk-WM7FQU2U.mjs";
4
+ } from "./chunk-W4J34XGA.mjs";
5
+ import "./chunk-7REWEWCX.mjs";
6
6
 
7
7
  // src/public/rest/reload-tasks.ts
8
8
  var getReloadTasks = async (query, options) => invokeFetch("reload-tasks", {
package/reloads.d.mts CHANGED
@@ -37,7 +37,7 @@ type Reload = {
37
37
  /** The ID of the tenant who owns the reload. */
38
38
  tenantId: string;
39
39
  /** What initiated the reload: hub = one-time reload manually triggered in hub, chronos = time based scheduled reload triggered by chronos, external = reload triggered via external API request, automations = reload triggered in automation, data-refresh = reload triggered by refresh of data. */
40
- type: "hub" | "chronos" | "external" | "automations" | "data-refresh";
40
+ type: Type;
41
41
  /** The ID of the user who created the reload. */
42
42
  userId: string;
43
43
  };
@@ -59,6 +59,7 @@ type ReloadsLinks = ReloadLinks & {
59
59
  prev?: Href;
60
60
  };
61
61
  type Status = "QUEUED" | "RELOADING" | "CANCELING" | "SUCCEEDED" | "FAILED" | "CANCELED" | "EXCEEDED_LIMIT";
62
+ type Type = "hub" | "external" | "chronos" | "automations" | "data-refresh";
62
63
  /**
63
64
  * Finds and returns the reloads that the user has access to.
64
65
  * @param query an object with query parameters
@@ -73,6 +74,7 @@ declare const getReloads: (query: {
73
74
  // Supported attributes:
74
75
  // - status: see #schemas/Status
75
76
  // - partial: see #schemas/Partial
77
+ // - type: see #schemas/Type
76
78
  //
77
79
  // Supported operators:
78
80
  // - eq
@@ -186,4 +188,4 @@ interface ReloadsAPI {
186
188
  */
187
189
  declare const reloadsExport: ReloadsAPI;
188
190
 
189
- export { type CancelReloadHttpError, type CancelReloadHttpResponse, type Error, type Errors, type GetReloadHttpError, type GetReloadHttpResponse, type GetReloadsHttpError, type GetReloadsHttpResponse, type Href, type Partial, type QueueReloadHttpError, type QueueReloadHttpResponse, type Reload, type ReloadLinks, type ReloadRequest, type Reloads, type ReloadsAPI, type ReloadsLinks, type Status, cancelReload, clearCache, reloadsExport as default, getReload, getReloads, queueReload };
191
+ export { type CancelReloadHttpError, type CancelReloadHttpResponse, type Error, type Errors, type GetReloadHttpError, type GetReloadHttpResponse, type GetReloadsHttpError, type GetReloadsHttpResponse, type Href, type Partial, type QueueReloadHttpError, type QueueReloadHttpResponse, type Reload, type ReloadLinks, type ReloadRequest, type Reloads, type ReloadsAPI, type ReloadsLinks, type Status, type Type, cancelReload, clearCache, reloadsExport as default, getReload, getReloads, queueReload };
package/reloads.d.ts CHANGED
@@ -37,7 +37,7 @@ type Reload = {
37
37
  /** The ID of the tenant who owns the reload. */
38
38
  tenantId: string;
39
39
  /** What initiated the reload: hub = one-time reload manually triggered in hub, chronos = time based scheduled reload triggered by chronos, external = reload triggered via external API request, automations = reload triggered in automation, data-refresh = reload triggered by refresh of data. */
40
- type: "hub" | "chronos" | "external" | "automations" | "data-refresh";
40
+ type: Type;
41
41
  /** The ID of the user who created the reload. */
42
42
  userId: string;
43
43
  };
@@ -59,6 +59,7 @@ type ReloadsLinks = ReloadLinks & {
59
59
  prev?: Href;
60
60
  };
61
61
  type Status = "QUEUED" | "RELOADING" | "CANCELING" | "SUCCEEDED" | "FAILED" | "CANCELED" | "EXCEEDED_LIMIT";
62
+ type Type = "hub" | "external" | "chronos" | "automations" | "data-refresh";
62
63
  /**
63
64
  * Finds and returns the reloads that the user has access to.
64
65
  * @param query an object with query parameters
@@ -73,6 +74,7 @@ declare const getReloads: (query: {
73
74
  // Supported attributes:
74
75
  // - status: see #schemas/Status
75
76
  // - partial: see #schemas/Partial
77
+ // - type: see #schemas/Type
76
78
  //
77
79
  // Supported operators:
78
80
  // - eq
@@ -186,4 +188,4 @@ interface ReloadsAPI {
186
188
  */
187
189
  declare const reloadsExport: ReloadsAPI;
188
190
 
189
- export { type CancelReloadHttpError, type CancelReloadHttpResponse, type Error, type Errors, type GetReloadHttpError, type GetReloadHttpResponse, type GetReloadsHttpError, type GetReloadsHttpResponse, type Href, type Partial, type QueueReloadHttpError, type QueueReloadHttpResponse, type Reload, type ReloadLinks, type ReloadRequest, type Reloads, type ReloadsAPI, type ReloadsLinks, type Status, cancelReload, clearCache, reloadsExport as default, getReload, getReloads, queueReload };
191
+ export { type CancelReloadHttpError, type CancelReloadHttpResponse, type Error, type Errors, type GetReloadHttpError, type GetReloadHttpResponse, type GetReloadsHttpError, type GetReloadsHttpResponse, type Href, type Partial, type QueueReloadHttpError, type QueueReloadHttpResponse, type Reload, type ReloadLinks, type ReloadRequest, type Reloads, type ReloadsAPI, type ReloadsLinks, type Status, type Type, cancelReload, clearCache, reloadsExport as default, getReload, getReloads, queueReload };
package/reloads.js CHANGED
@@ -1,36 +1,36 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkOULT3V2Ujs = require('./chunk-OULT3V2U.js');
5
- require('./chunk-ZT4C7KCQ.js');
4
+ var _chunk6JERR27Kjs = require('./chunk-6JERR27K.js');
5
+ require('./chunk-H7SAZYEE.js');
6
6
 
7
7
  // src/public/rest/reloads.ts
8
- var getReloads = async (query, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "reloads", {
8
+ var getReloads = async (query, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "reloads", {
9
9
  method: "get",
10
10
  pathTemplate: "/api/v1/reloads",
11
11
  query,
12
12
  options
13
13
  });
14
- var queueReload = async (body, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "reloads", {
14
+ var queueReload = async (body, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "reloads", {
15
15
  method: "post",
16
16
  pathTemplate: "/api/v1/reloads",
17
17
  body,
18
18
  options
19
19
  });
20
- var getReload = async (reloadId, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "reloads", {
20
+ var getReload = async (reloadId, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "reloads", {
21
21
  method: "get",
22
22
  pathTemplate: "/api/v1/reloads/{reloadId}",
23
23
  pathVariables: { reloadId },
24
24
  options
25
25
  });
26
- var cancelReload = async (reloadId, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "reloads", {
26
+ var cancelReload = async (reloadId, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "reloads", {
27
27
  method: "post",
28
28
  pathTemplate: "/api/v1/reloads/{reloadId}/actions/cancel",
29
29
  pathVariables: { reloadId },
30
30
  options
31
31
  });
32
32
  function clearCache() {
33
- return _chunkOULT3V2Ujs.clearApiCache.call(void 0, "reloads");
33
+ return _chunk6JERR27Kjs.clearApiCache.call(void 0, "reloads");
34
34
  }
35
35
  var reloadsExport = { getReloads, queueReload, getReload, cancelReload, clearCache };
36
36
  var reloads_default = reloadsExport;
package/reloads.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunk-3YE7EI7I.mjs";
5
- import "./chunk-WM7FQU2U.mjs";
4
+ } from "./chunk-W4J34XGA.mjs";
5
+ import "./chunk-7REWEWCX.mjs";
6
6
 
7
7
  // src/public/rest/reloads.ts
8
8
  var getReloads = async (query, options) => invokeFetch("reloads", {
package/roles.js CHANGED
@@ -1,24 +1,24 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkOULT3V2Ujs = require('./chunk-OULT3V2U.js');
5
- require('./chunk-ZT4C7KCQ.js');
4
+ var _chunk6JERR27Kjs = require('./chunk-6JERR27K.js');
5
+ require('./chunk-H7SAZYEE.js');
6
6
 
7
7
  // src/public/rest/roles.ts
8
- var getRoles = async (query, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "roles", {
8
+ var getRoles = async (query, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "roles", {
9
9
  method: "get",
10
10
  pathTemplate: "/api/v1/roles",
11
11
  query,
12
12
  options
13
13
  });
14
- var getRole = async (id, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "roles", {
14
+ var getRole = async (id, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "roles", {
15
15
  method: "get",
16
16
  pathTemplate: "/api/v1/roles/{id}",
17
17
  pathVariables: { id },
18
18
  options
19
19
  });
20
20
  function clearCache() {
21
- return _chunkOULT3V2Ujs.clearApiCache.call(void 0, "roles");
21
+ return _chunk6JERR27Kjs.clearApiCache.call(void 0, "roles");
22
22
  }
23
23
  var rolesExport = { getRoles, getRole, clearCache };
24
24
  var roles_default = rolesExport;
package/roles.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunk-3YE7EI7I.mjs";
5
- import "./chunk-WM7FQU2U.mjs";
4
+ } from "./chunk-W4J34XGA.mjs";
5
+ import "./chunk-7REWEWCX.mjs";
6
6
 
7
7
  // src/public/rest/roles.ts
8
8
  var getRoles = async (query, options) => invokeFetch("roles", {
package/spaces.d.mts CHANGED
@@ -20,7 +20,8 @@ type Assignment = {
20
20
  readonly spaceId: string;
21
21
  /** The unique identifier for the tenant. */
22
22
  readonly tenantId: string;
23
- type: "user" | "group";
23
+ /** The type of assignment such as user or group */
24
+ type: AssignmentType;
24
25
  /** The date and time when the space was updated. */
25
26
  readonly updatedAt?: string;
26
27
  /** The ID of the user who updated the assignment. */
@@ -32,8 +33,9 @@ type AssignmentCreate = {
32
33
  /** The roles assigned to the assigneeId. */
33
34
  roles: RoleType[];
34
35
  /** The type of assignment such as user or group */
35
- type: "user" | "group";
36
+ type: AssignmentType;
36
37
  };
38
+ type AssignmentType = "user" | "group";
37
39
  type AssignmentUpdate = {
38
40
  /** The roles assigned to the assigneeId. */
39
41
  roles?: RoleType[];
@@ -324,6 +326,8 @@ declare const getSpaceAssignments: (spaceId: string, query: {
324
326
  next?: string;
325
327
  /** The previous page cursor. Previous links make use of this. */
326
328
  prev?: string;
329
+ /** The type of assignment. */
330
+ type?: AssignmentType;
327
331
  }, options?: ApiCallOptions) => Promise<GetSpaceAssignmentsHttpResponse>;
328
332
  type GetSpaceAssignmentsHttpResponse = {
329
333
  data: Assignments;
@@ -349,32 +353,11 @@ type CreateSpaceAssignmentHttpResponse = {
349
353
  headers: Headers;
350
354
  status: number;
351
355
  };
352
- type CreateSpaceAssignment401HttpError = {
353
- data: Errors;
354
- headers: Headers;
355
- status: 401;
356
- };
357
- type CreateSpaceAssignment403HttpError = {
358
- data: Errors;
359
- headers: Headers;
360
- status: 403;
361
- };
362
- type CreateSpaceAssignment404HttpError = {
356
+ type CreateSpaceAssignmentHttpError = {
363
357
  data: Errors;
364
358
  headers: Headers;
365
- status: 404;
366
- };
367
- type CreateSpaceAssignment409HttpError = {
368
- data: Space;
369
- headers: Headers;
370
- status: 409;
371
- };
372
- type CreateSpaceAssignment500HttpError = {
373
- data: Errors;
374
- headers: Headers;
375
- status: 500;
359
+ status: number;
376
360
  };
377
- type CreateSpaceAssignmentHttpError = CreateSpaceAssignment401HttpError | CreateSpaceAssignment403HttpError | CreateSpaceAssignment404HttpError | CreateSpaceAssignment409HttpError | CreateSpaceAssignment500HttpError;
378
361
  /**
379
362
  * Deletes an assignment.
380
363
  * @param spaceId The ID of the space of the assignment.
@@ -521,4 +504,4 @@ interface SpacesAPI {
521
504
  */
522
505
  declare const spacesExport: SpacesAPI;
523
506
 
524
- export { type ActionName, type Assignment, type AssignmentCreate, type AssignmentUpdate, type Assignments, type CreateSpaceAssignment401HttpError, type CreateSpaceAssignment403HttpError, type CreateSpaceAssignment404HttpError, type CreateSpaceAssignment409HttpError, type CreateSpaceAssignment500HttpError, type CreateSpaceAssignmentHttpError, type CreateSpaceAssignmentHttpResponse, type CreateSpaceHttpError, type CreateSpaceHttpResponse, type DeleteSpaceAssignmentHttpError, type DeleteSpaceAssignmentHttpResponse, type DeleteSpaceHttpError, type DeleteSpaceHttpResponse, type Error, type Errors, type GetSpaceAssignmentHttpError, type GetSpaceAssignmentHttpResponse, type GetSpaceAssignmentsHttpError, type GetSpaceAssignmentsHttpResponse, type GetSpaceHttpError, type GetSpaceHttpResponse, type GetSpaceTypesHttpError, type GetSpaceTypesHttpResponse, type GetSpacesHttpError, type GetSpacesHttpResponse, type Link, type PatchSpaceHttpError, type PatchSpaceHttpResponse, type RoleType, type SharedSpaceRoleType, type Space, type SpaceCreate, type SpacePatch, type SpaceType, type SpaceTypes, type SpaceUpdate, type Spaces, type SpacesAPI, type UpdateSpaceAssignmentHttpError, type UpdateSpaceAssignmentHttpResponse, type UpdateSpaceHttpError, type UpdateSpaceHttpResponse, clearCache, createSpace, createSpaceAssignment, spacesExport as default, deleteSpace, deleteSpaceAssignment, getSpace, getSpaceAssignment, getSpaceAssignments, getSpaceTypes, getSpaces, patchSpace, updateSpace, updateSpaceAssignment };
507
+ export { type ActionName, type Assignment, type AssignmentCreate, type AssignmentType, type AssignmentUpdate, type Assignments, type CreateSpaceAssignmentHttpError, type CreateSpaceAssignmentHttpResponse, type CreateSpaceHttpError, type CreateSpaceHttpResponse, type DeleteSpaceAssignmentHttpError, type DeleteSpaceAssignmentHttpResponse, type DeleteSpaceHttpError, type DeleteSpaceHttpResponse, type Error, type Errors, type GetSpaceAssignmentHttpError, type GetSpaceAssignmentHttpResponse, type GetSpaceAssignmentsHttpError, type GetSpaceAssignmentsHttpResponse, type GetSpaceHttpError, type GetSpaceHttpResponse, type GetSpaceTypesHttpError, type GetSpaceTypesHttpResponse, type GetSpacesHttpError, type GetSpacesHttpResponse, type Link, type PatchSpaceHttpError, type PatchSpaceHttpResponse, type RoleType, type SharedSpaceRoleType, type Space, type SpaceCreate, type SpacePatch, type SpaceType, type SpaceTypes, type SpaceUpdate, type Spaces, type SpacesAPI, type UpdateSpaceAssignmentHttpError, type UpdateSpaceAssignmentHttpResponse, type UpdateSpaceHttpError, type UpdateSpaceHttpResponse, clearCache, createSpace, createSpaceAssignment, spacesExport as default, deleteSpace, deleteSpaceAssignment, getSpace, getSpaceAssignment, getSpaceAssignments, getSpaceTypes, getSpaces, patchSpace, updateSpace, updateSpaceAssignment };
package/spaces.d.ts CHANGED
@@ -20,7 +20,8 @@ type Assignment = {
20
20
  readonly spaceId: string;
21
21
  /** The unique identifier for the tenant. */
22
22
  readonly tenantId: string;
23
- type: "user" | "group";
23
+ /** The type of assignment such as user or group */
24
+ type: AssignmentType;
24
25
  /** The date and time when the space was updated. */
25
26
  readonly updatedAt?: string;
26
27
  /** The ID of the user who updated the assignment. */
@@ -32,8 +33,9 @@ type AssignmentCreate = {
32
33
  /** The roles assigned to the assigneeId. */
33
34
  roles: RoleType[];
34
35
  /** The type of assignment such as user or group */
35
- type: "user" | "group";
36
+ type: AssignmentType;
36
37
  };
38
+ type AssignmentType = "user" | "group";
37
39
  type AssignmentUpdate = {
38
40
  /** The roles assigned to the assigneeId. */
39
41
  roles?: RoleType[];
@@ -324,6 +326,8 @@ declare const getSpaceAssignments: (spaceId: string, query: {
324
326
  next?: string;
325
327
  /** The previous page cursor. Previous links make use of this. */
326
328
  prev?: string;
329
+ /** The type of assignment. */
330
+ type?: AssignmentType;
327
331
  }, options?: ApiCallOptions) => Promise<GetSpaceAssignmentsHttpResponse>;
328
332
  type GetSpaceAssignmentsHttpResponse = {
329
333
  data: Assignments;
@@ -349,32 +353,11 @@ type CreateSpaceAssignmentHttpResponse = {
349
353
  headers: Headers;
350
354
  status: number;
351
355
  };
352
- type CreateSpaceAssignment401HttpError = {
353
- data: Errors;
354
- headers: Headers;
355
- status: 401;
356
- };
357
- type CreateSpaceAssignment403HttpError = {
358
- data: Errors;
359
- headers: Headers;
360
- status: 403;
361
- };
362
- type CreateSpaceAssignment404HttpError = {
356
+ type CreateSpaceAssignmentHttpError = {
363
357
  data: Errors;
364
358
  headers: Headers;
365
- status: 404;
366
- };
367
- type CreateSpaceAssignment409HttpError = {
368
- data: Space;
369
- headers: Headers;
370
- status: 409;
371
- };
372
- type CreateSpaceAssignment500HttpError = {
373
- data: Errors;
374
- headers: Headers;
375
- status: 500;
359
+ status: number;
376
360
  };
377
- type CreateSpaceAssignmentHttpError = CreateSpaceAssignment401HttpError | CreateSpaceAssignment403HttpError | CreateSpaceAssignment404HttpError | CreateSpaceAssignment409HttpError | CreateSpaceAssignment500HttpError;
378
361
  /**
379
362
  * Deletes an assignment.
380
363
  * @param spaceId The ID of the space of the assignment.
@@ -521,4 +504,4 @@ interface SpacesAPI {
521
504
  */
522
505
  declare const spacesExport: SpacesAPI;
523
506
 
524
- export { type ActionName, type Assignment, type AssignmentCreate, type AssignmentUpdate, type Assignments, type CreateSpaceAssignment401HttpError, type CreateSpaceAssignment403HttpError, type CreateSpaceAssignment404HttpError, type CreateSpaceAssignment409HttpError, type CreateSpaceAssignment500HttpError, type CreateSpaceAssignmentHttpError, type CreateSpaceAssignmentHttpResponse, type CreateSpaceHttpError, type CreateSpaceHttpResponse, type DeleteSpaceAssignmentHttpError, type DeleteSpaceAssignmentHttpResponse, type DeleteSpaceHttpError, type DeleteSpaceHttpResponse, type Error, type Errors, type GetSpaceAssignmentHttpError, type GetSpaceAssignmentHttpResponse, type GetSpaceAssignmentsHttpError, type GetSpaceAssignmentsHttpResponse, type GetSpaceHttpError, type GetSpaceHttpResponse, type GetSpaceTypesHttpError, type GetSpaceTypesHttpResponse, type GetSpacesHttpError, type GetSpacesHttpResponse, type Link, type PatchSpaceHttpError, type PatchSpaceHttpResponse, type RoleType, type SharedSpaceRoleType, type Space, type SpaceCreate, type SpacePatch, type SpaceType, type SpaceTypes, type SpaceUpdate, type Spaces, type SpacesAPI, type UpdateSpaceAssignmentHttpError, type UpdateSpaceAssignmentHttpResponse, type UpdateSpaceHttpError, type UpdateSpaceHttpResponse, clearCache, createSpace, createSpaceAssignment, spacesExport as default, deleteSpace, deleteSpaceAssignment, getSpace, getSpaceAssignment, getSpaceAssignments, getSpaceTypes, getSpaces, patchSpace, updateSpace, updateSpaceAssignment };
507
+ export { type ActionName, type Assignment, type AssignmentCreate, type AssignmentType, type AssignmentUpdate, type Assignments, type CreateSpaceAssignmentHttpError, type CreateSpaceAssignmentHttpResponse, type CreateSpaceHttpError, type CreateSpaceHttpResponse, type DeleteSpaceAssignmentHttpError, type DeleteSpaceAssignmentHttpResponse, type DeleteSpaceHttpError, type DeleteSpaceHttpResponse, type Error, type Errors, type GetSpaceAssignmentHttpError, type GetSpaceAssignmentHttpResponse, type GetSpaceAssignmentsHttpError, type GetSpaceAssignmentsHttpResponse, type GetSpaceHttpError, type GetSpaceHttpResponse, type GetSpaceTypesHttpError, type GetSpaceTypesHttpResponse, type GetSpacesHttpError, type GetSpacesHttpResponse, type Link, type PatchSpaceHttpError, type PatchSpaceHttpResponse, type RoleType, type SharedSpaceRoleType, type Space, type SpaceCreate, type SpacePatch, type SpaceType, type SpaceTypes, type SpaceUpdate, type Spaces, type SpacesAPI, type UpdateSpaceAssignmentHttpError, type UpdateSpaceAssignmentHttpResponse, type UpdateSpaceHttpError, type UpdateSpaceHttpResponse, clearCache, createSpace, createSpaceAssignment, spacesExport as default, deleteSpace, deleteSpaceAssignment, getSpace, getSpaceAssignment, getSpaceAssignments, getSpaceTypes, getSpaces, patchSpace, updateSpace, updateSpaceAssignment };
package/spaces.js CHANGED
@@ -1,80 +1,80 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkOULT3V2Ujs = require('./chunk-OULT3V2U.js');
5
- require('./chunk-ZT4C7KCQ.js');
4
+ var _chunk6JERR27Kjs = require('./chunk-6JERR27K.js');
5
+ require('./chunk-H7SAZYEE.js');
6
6
 
7
7
  // src/public/rest/spaces.ts
8
- var getSpaces = async (query, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "spaces", {
8
+ var getSpaces = async (query, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "spaces", {
9
9
  method: "get",
10
10
  pathTemplate: "/api/v1/spaces",
11
11
  query,
12
12
  options
13
13
  });
14
- var createSpace = async (body, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "spaces", {
14
+ var createSpace = async (body, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "spaces", {
15
15
  method: "post",
16
16
  pathTemplate: "/api/v1/spaces",
17
17
  body,
18
18
  options
19
19
  });
20
- var getSpaceTypes = async (options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "spaces", {
20
+ var getSpaceTypes = async (options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "spaces", {
21
21
  method: "get",
22
22
  pathTemplate: "/api/v1/spaces/types",
23
23
  options
24
24
  });
25
- var deleteSpace = async (spaceId, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "spaces", {
25
+ var deleteSpace = async (spaceId, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "spaces", {
26
26
  method: "delete",
27
27
  pathTemplate: "/api/v1/spaces/{spaceId}",
28
28
  pathVariables: { spaceId },
29
29
  options
30
30
  });
31
- var getSpace = async (spaceId, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "spaces", {
31
+ var getSpace = async (spaceId, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "spaces", {
32
32
  method: "get",
33
33
  pathTemplate: "/api/v1/spaces/{spaceId}",
34
34
  pathVariables: { spaceId },
35
35
  options
36
36
  });
37
- var patchSpace = async (spaceId, body, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "spaces", {
37
+ var patchSpace = async (spaceId, body, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "spaces", {
38
38
  method: "patch",
39
39
  pathTemplate: "/api/v1/spaces/{spaceId}",
40
40
  pathVariables: { spaceId },
41
41
  body,
42
42
  options
43
43
  });
44
- var updateSpace = async (spaceId, body, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "spaces", {
44
+ var updateSpace = async (spaceId, body, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "spaces", {
45
45
  method: "put",
46
46
  pathTemplate: "/api/v1/spaces/{spaceId}",
47
47
  pathVariables: { spaceId },
48
48
  body,
49
49
  options
50
50
  });
51
- var getSpaceAssignments = async (spaceId, query, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "spaces", {
51
+ var getSpaceAssignments = async (spaceId, query, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "spaces", {
52
52
  method: "get",
53
53
  pathTemplate: "/api/v1/spaces/{spaceId}/assignments",
54
54
  pathVariables: { spaceId },
55
55
  query,
56
56
  options
57
57
  });
58
- var createSpaceAssignment = async (spaceId, body, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "spaces", {
58
+ var createSpaceAssignment = async (spaceId, body, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "spaces", {
59
59
  method: "post",
60
60
  pathTemplate: "/api/v1/spaces/{spaceId}/assignments",
61
61
  pathVariables: { spaceId },
62
62
  body,
63
63
  options
64
64
  });
65
- var deleteSpaceAssignment = async (spaceId, assignmentId, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "spaces", {
65
+ var deleteSpaceAssignment = async (spaceId, assignmentId, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "spaces", {
66
66
  method: "delete",
67
67
  pathTemplate: "/api/v1/spaces/{spaceId}/assignments/{assignmentId}",
68
68
  pathVariables: { spaceId, assignmentId },
69
69
  options
70
70
  });
71
- var getSpaceAssignment = async (spaceId, assignmentId, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "spaces", {
71
+ var getSpaceAssignment = async (spaceId, assignmentId, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "spaces", {
72
72
  method: "get",
73
73
  pathTemplate: "/api/v1/spaces/{spaceId}/assignments/{assignmentId}",
74
74
  pathVariables: { spaceId, assignmentId },
75
75
  options
76
76
  });
77
- var updateSpaceAssignment = async (spaceId, assignmentId, body, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "spaces", {
77
+ var updateSpaceAssignment = async (spaceId, assignmentId, body, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "spaces", {
78
78
  method: "put",
79
79
  pathTemplate: "/api/v1/spaces/{spaceId}/assignments/{assignmentId}",
80
80
  pathVariables: { spaceId, assignmentId },
@@ -82,7 +82,7 @@ var updateSpaceAssignment = async (spaceId, assignmentId, body, options) => _chu
82
82
  options
83
83
  });
84
84
  function clearCache() {
85
- return _chunkOULT3V2Ujs.clearApiCache.call(void 0, "spaces");
85
+ return _chunk6JERR27Kjs.clearApiCache.call(void 0, "spaces");
86
86
  }
87
87
  var spacesExport = {
88
88
  getSpaces,
package/spaces.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunk-3YE7EI7I.mjs";
5
- import "./chunk-WM7FQU2U.mjs";
4
+ } from "./chunk-W4J34XGA.mjs";
5
+ import "./chunk-7REWEWCX.mjs";
6
6
 
7
7
  // src/public/rest/spaces.ts
8
8
  var getSpaces = async (query, options) => invokeFetch("spaces", {