@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/api-keys.d.ts CHANGED
@@ -1,5 +1,5 @@
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
  type ApiKey = {
5
5
  /** When the API key was created. */
@@ -39,7 +39,7 @@ type ApiKeyBody = {
39
39
  type ApiKeyConfigPatch = {
40
40
  /** The operation to be performed. */
41
41
  op: "replace";
42
- /** The path for the given resource field to patch. */
42
+ /** The path for the given resource field to patch. The '/api_keys_enabled' option is deprecated and will be removed in a future release. */
43
43
  path: "/api_keys_enabled" | "/max_api_key_expiry" | "/max_keys_per_user" | "/scim_externalClient_expiry";
44
44
  /** The value to be used for this operation. */
45
45
  value: unknown;
@@ -80,7 +80,8 @@ type ApiKeyWithToken = {
80
80
  token: string;
81
81
  };
82
82
  type ApiKeysConfig = {
83
- /** Enables or disables user API key functionality for the specified tenant. */
83
+ /** @deprecated
84
+ * Enables or disables user API key functionality for the specified tenant. */
84
85
  api_keys_enabled?: boolean;
85
86
  /** The maximum lifetime, in ISO8601 duration format, for which an API key can be issued for the specified tenant, e.g. `P7D` for 7 days. */
86
87
  max_api_key_expiry?: string;
@@ -161,7 +162,7 @@ type ApiKeyPage = {
161
162
  * @param query an object with query parameters
162
163
  * @throws GetApiKeysHttpError
163
164
  */
164
- declare const getApiKeys: (query: {
165
+ declare function getApiKeys(query: {
165
166
  /** The user ID that created the API key. */
166
167
  createdByUser?: string;
167
168
  /** Get resources with IDs that are lower than the target resource ID. Cannot be used in conjunction with startingAfter. */
@@ -176,7 +177,7 @@ declare const getApiKeys: (query: {
176
177
  status?: "active" | "expired" | "revoked";
177
178
  /** The ID of the subject. For SCIM the format is `SCIM\\{{IDP-ID}}`, where `{{IDP-ID}}` is the ID of the IDP in Qlik. For users, use their user ID, e.g. `64ef645a3b7009d55dee5a2b`. */
178
179
  sub?: string;
179
- }, options?: ApiCallOptions) => Promise<GetApiKeysHttpResponse>;
180
+ }, options?: ApiCallOptions): Promise<GetApiKeysHttpResponse>;
180
181
  type GetApiKeysHttpResponse = {
181
182
  data: ApiKeyPage;
182
183
  headers: Headers;
@@ -196,7 +197,7 @@ type GetApiKeysHttpError = {
196
197
  * @param body an object with the body content
197
198
  * @throws CreateApiKeyHttpError
198
199
  */
199
- declare const createApiKey: (body: ApiKeyBody, options?: ApiCallOptions) => Promise<CreateApiKeyHttpResponse>;
200
+ declare function createApiKey(body: ApiKeyBody, options?: ApiCallOptions): Promise<CreateApiKeyHttpResponse>;
200
201
  type CreateApiKeyHttpResponse = {
201
202
  data: ApiKeyWithToken;
202
203
  headers: Headers;
@@ -213,7 +214,7 @@ type CreateApiKeyHttpError = {
213
214
  * @param tenantId The tenant ID from which you wish to retrieve the API key configuration.
214
215
  * @throws GetApiKeysConfigHttpError
215
216
  */
216
- declare const getApiKeysConfig: (tenantId: string, options?: ApiCallOptions) => Promise<GetApiKeysConfigHttpResponse>;
217
+ declare function getApiKeysConfig(tenantId: string, options?: ApiCallOptions): Promise<GetApiKeysConfigHttpResponse>;
217
218
  type GetApiKeysConfigHttpResponse = {
218
219
  data: ApiKeysConfig;
219
220
  headers: Headers;
@@ -231,7 +232,7 @@ type GetApiKeysConfigHttpError = {
231
232
  * @param body an object with the body content
232
233
  * @throws PatchApiKeysConfigHttpError
233
234
  */
234
- declare const patchApiKeysConfig: (tenantId: string, body: ApiKeysConfigPatchSchema, options?: ApiCallOptions) => Promise<PatchApiKeysConfigHttpResponse>;
235
+ declare function patchApiKeysConfig(tenantId: string, body: ApiKeysConfigPatchSchema, options?: ApiCallOptions): Promise<PatchApiKeysConfigHttpResponse>;
235
236
  type PatchApiKeysConfigHttpResponse = {
236
237
  data: void;
237
238
  headers: Headers;
@@ -248,7 +249,7 @@ type PatchApiKeysConfigHttpError = {
248
249
  * @param id The ID of the API key to be retrieved.
249
250
  * @throws DeleteApiKeyHttpError
250
251
  */
251
- declare const deleteApiKey: (id: string, options?: ApiCallOptions) => Promise<DeleteApiKeyHttpResponse>;
252
+ declare function deleteApiKey(id: string, options?: ApiCallOptions): Promise<DeleteApiKeyHttpResponse>;
252
253
  type DeleteApiKeyHttpResponse = {
253
254
  data: void;
254
255
  headers: Headers;
@@ -265,7 +266,7 @@ type DeleteApiKeyHttpError = {
265
266
  * @param id The ID of the API key to be retrieved.
266
267
  * @throws GetApiKeyHttpError
267
268
  */
268
- declare const getApiKey: (id: string, options?: ApiCallOptions) => Promise<GetApiKeyHttpResponse>;
269
+ declare function getApiKey(id: string, options?: ApiCallOptions): Promise<GetApiKeyHttpResponse>;
269
270
  type GetApiKeyHttpResponse = {
270
271
  data: ApiKey;
271
272
  headers: Headers;
@@ -283,7 +284,7 @@ type GetApiKeyHttpError = {
283
284
  * @param body an object with the body content
284
285
  * @throws PatchApiKeyHttpError
285
286
  */
286
- declare const patchApiKey: (id: string, body: ApiKeysPatchSchema, options?: ApiCallOptions) => Promise<PatchApiKeyHttpResponse>;
287
+ declare function patchApiKey(id: string, body: ApiKeysPatchSchema, options?: ApiCallOptions): Promise<PatchApiKeyHttpResponse>;
287
288
  type PatchApiKeyHttpResponse = {
288
289
  data: void;
289
290
  headers: Headers;
package/api-keys.js CHANGED
@@ -1,58 +1,72 @@
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/api-keys.ts
9
- var getApiKeys = async (query, options) => invokeFetch("api-keys", {
10
- method: "get",
11
- pathTemplate: "/api/v1/api-keys",
12
- query,
13
- options
14
- });
15
- var createApiKey = async (body, options) => invokeFetch("api-keys", {
16
- method: "post",
17
- pathTemplate: "/api/v1/api-keys",
18
- body,
19
- contentType: "application/json",
20
- options
21
- });
22
- var getApiKeysConfig = async (tenantId, options) => invokeFetch("api-keys", {
23
- method: "get",
24
- pathTemplate: "/api/v1/api-keys/configs/{tenantId}",
25
- pathVariables: { tenantId },
26
- options
27
- });
28
- var patchApiKeysConfig = async (tenantId, body, options) => invokeFetch("api-keys", {
29
- method: "patch",
30
- pathTemplate: "/api/v1/api-keys/configs/{tenantId}",
31
- pathVariables: { tenantId },
32
- body,
33
- contentType: "application/json",
34
- options
35
- });
36
- var deleteApiKey = async (id, options) => invokeFetch("api-keys", {
37
- method: "delete",
38
- pathTemplate: "/api/v1/api-keys/{id}",
39
- pathVariables: { id },
40
- options
41
- });
42
- var getApiKey = async (id, options) => invokeFetch("api-keys", {
43
- method: "get",
44
- pathTemplate: "/api/v1/api-keys/{id}",
45
- pathVariables: { id },
46
- options
47
- });
48
- var patchApiKey = async (id, body, options) => invokeFetch("api-keys", {
49
- method: "patch",
50
- pathTemplate: "/api/v1/api-keys/{id}",
51
- pathVariables: { id },
52
- body,
53
- contentType: "application/json",
54
- options
55
- });
9
+ async function getApiKeys(query, options) {
10
+ return invokeFetch("api-keys", {
11
+ method: "get",
12
+ pathTemplate: "/api/v1/api-keys",
13
+ query,
14
+ options
15
+ });
16
+ }
17
+ async function createApiKey(body, options) {
18
+ return invokeFetch("api-keys", {
19
+ method: "post",
20
+ pathTemplate: "/api/v1/api-keys",
21
+ body,
22
+ contentType: "application/json",
23
+ options
24
+ });
25
+ }
26
+ async function getApiKeysConfig(tenantId, options) {
27
+ return invokeFetch("api-keys", {
28
+ method: "get",
29
+ pathTemplate: "/api/v1/api-keys/configs/{tenantId}",
30
+ pathVariables: { tenantId },
31
+ options
32
+ });
33
+ }
34
+ async function patchApiKeysConfig(tenantId, body, options) {
35
+ return invokeFetch("api-keys", {
36
+ method: "patch",
37
+ pathTemplate: "/api/v1/api-keys/configs/{tenantId}",
38
+ pathVariables: { tenantId },
39
+ body,
40
+ contentType: "application/json",
41
+ options
42
+ });
43
+ }
44
+ async function deleteApiKey(id, options) {
45
+ return invokeFetch("api-keys", {
46
+ method: "delete",
47
+ pathTemplate: "/api/v1/api-keys/{id}",
48
+ pathVariables: { id },
49
+ options
50
+ });
51
+ }
52
+ async function getApiKey(id, options) {
53
+ return invokeFetch("api-keys", {
54
+ method: "get",
55
+ pathTemplate: "/api/v1/api-keys/{id}",
56
+ pathVariables: { id },
57
+ options
58
+ });
59
+ }
60
+ async function patchApiKey(id, body, options) {
61
+ return invokeFetch("api-keys", {
62
+ method: "patch",
63
+ pathTemplate: "/api/v1/api-keys/{id}",
64
+ pathVariables: { id },
65
+ body,
66
+ contentType: "application/json",
67
+ options
68
+ });
69
+ }
56
70
  function clearCache() {
57
71
  return clearApiCache("api-keys");
58
72
  }