@qlik/api 0.0.16 → 0.1.1

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 (134) hide show
  1. package/README.md +1 -1
  2. package/api-keys.js +25 -25
  3. package/apps.d.ts +9 -1
  4. package/apps.js +97 -97
  5. package/audits.js +23 -23
  6. package/auth.js +14 -14
  7. package/automations.js +47 -47
  8. package/brands.js +35 -35
  9. package/chunks/4HB3TAEO.js +4 -4
  10. package/chunks/{HHOVS7QC.mjs → CHNBNLXY.js} +3 -3
  11. package/chunks/{3YV6X7S6.mjs → FFGE2RP7.js} +1 -1
  12. package/chunks/{HOCTJESP.mjs → JEGN7XQV.js} +3 -3
  13. package/chunks/{6WX5AGKQ.mjs → L2BJNKLV.js} +2 -2
  14. package/chunks/OPRGGO4C.js +8 -8
  15. package/chunks/{O4EAKEIN.mjs → RHF624NQ.js} +1 -1
  16. package/chunks/{BYD63JCG.mjs → SIU6HO6B.js} +5 -3
  17. package/chunks/{EHAANYDL.mjs → TT66UJZY.js} +3 -3
  18. package/chunks/{UKVTBYP6.mjs → XOVMZWDC.js} +2 -2
  19. package/chunks/{6AD3HYSF.mjs → XZQNE4HH.js} +1 -1
  20. package/collections.js +33 -33
  21. package/csp-origins.js +23 -23
  22. package/data-assets.js +21 -21
  23. package/data-connections.js +29 -29
  24. package/data-credentials.js +19 -19
  25. package/data-files.js +35 -35
  26. package/docs/authentication.md +5 -5
  27. package/docs/examples/fetch-spaces.md +1 -15
  28. package/docs/examples/show-sheet-list.md +1 -1
  29. package/docs/features.md +1 -1
  30. package/extensions.js +25 -25
  31. package/glossaries.js +59 -59
  32. package/groups.d.ts +0 -3
  33. package/groups.js +27 -27
  34. package/identity-providers.d.ts +144 -10
  35. package/identity-providers.js +27 -27
  36. package/index.js +53 -53
  37. package/items.js +27 -27
  38. package/licenses.js +29 -29
  39. package/package.json +36 -232
  40. package/qix.d.ts +1 -1
  41. package/qix.js +10 -10
  42. package/quotas.js +15 -15
  43. package/reload-tasks.js +21 -21
  44. package/reloads.js +19 -19
  45. package/roles.js +15 -15
  46. package/spaces.js +35 -35
  47. package/temp-contents.js +17 -17
  48. package/tenants.js +23 -23
  49. package/themes.js +25 -25
  50. package/transports.js +23 -23
  51. package/users.d.ts +1 -3
  52. package/users.js +31 -31
  53. package/web-integrations.js +21 -21
  54. package/web-notifications.js +23 -23
  55. package/webhooks.js +31 -31
  56. package/api-keys.d.mts +0 -336
  57. package/api-keys.mjs +0 -80
  58. package/apps.d.mts +0 -2431
  59. package/apps.mjs +0 -398
  60. package/audits.d.mts +0 -286
  61. package/audits.mjs +0 -64
  62. package/auth-types-nnUcWhuU.d.mts +0 -98
  63. package/auth.d.mts +0 -26
  64. package/auth.mjs +0 -14
  65. package/automations.d.mts +0 -682
  66. package/automations.mjs +0 -173
  67. package/brands.d.mts +0 -670
  68. package/brands.mjs +0 -123
  69. package/chunks/2YWCEGTS.js +0 -21
  70. package/chunks/34ZKUFEA.js +0 -41
  71. package/chunks/4WHZ4EIW.js +0 -57
  72. package/chunks/B4VPD3ZT.js +0 -574
  73. package/chunks/BM4OSDRZ.js +0 -17
  74. package/chunks/DCXUEDOW.mjs +0 -67
  75. package/chunks/MTAQE4WC.js +0 -10411
  76. package/chunks/PLOSYUG2.js +0 -25
  77. package/chunks/URIW2U5M.js +0 -17
  78. package/chunks/VSY5YIQY.mjs +0 -11
  79. package/chunks/WOYJLK4Y.js +0 -1623
  80. package/collections.d.mts +0 -581
  81. package/collections.mjs +0 -114
  82. package/csp-origins.d.mts +0 -273
  83. package/csp-origins.mjs +0 -69
  84. package/data-assets.d.mts +0 -205
  85. package/data-assets.mjs +0 -66
  86. package/data-connections.d.mts +0 -594
  87. package/data-connections.mjs +0 -103
  88. package/data-credentials.d.mts +0 -204
  89. package/data-credentials.mjs +0 -59
  90. package/data-files.d.mts +0 -562
  91. package/data-files.mjs +0 -123
  92. package/extensions.d.mts +0 -293
  93. package/extensions.mjs +0 -77
  94. package/global.types-5iFvFJvX.d.mts +0 -115
  95. package/glossaries.d.mts +0 -1173
  96. package/glossaries.mjs +0 -237
  97. package/groups.d.mts +0 -434
  98. package/groups.mjs +0 -88
  99. package/identity-providers.d.mts +0 -550
  100. package/identity-providers.mjs +0 -83
  101. package/index.d.mts +0 -142
  102. package/index.mjs +0 -716
  103. package/items.d.mts +0 -535
  104. package/items.mjs +0 -87
  105. package/licenses.d.mts +0 -459
  106. package/licenses.mjs +0 -92
  107. package/qix.d.mts +0 -11629
  108. package/qix.mjs +0 -10
  109. package/quotas.d.mts +0 -112
  110. package/quotas.mjs +0 -32
  111. package/reload-tasks.d.mts +0 -227
  112. package/reload-tasks.mjs +0 -62
  113. package/reloads.d.mts +0 -207
  114. package/reloads.mjs +0 -46
  115. package/roles.d.mts +0 -175
  116. package/roles.mjs +0 -31
  117. package/spaces.d.mts +0 -562
  118. package/spaces.mjs +0 -124
  119. package/temp-contents.d.mts +0 -167
  120. package/temp-contents.mjs +0 -41
  121. package/tenants.d.mts +0 -300
  122. package/tenants.mjs +0 -73
  123. package/themes.d.mts +0 -268
  124. package/themes.mjs +0 -77
  125. package/transports.d.mts +0 -319
  126. package/transports.mjs +0 -65
  127. package/users.d.mts +0 -631
  128. package/users.mjs +0 -104
  129. package/web-integrations.d.mts +0 -274
  130. package/web-integrations.mjs +0 -62
  131. package/web-notifications.d.mts +0 -250
  132. package/web-notifications.mjs +0 -69
  133. package/webhooks.d.mts +0 -445
  134. package/webhooks.mjs +0 -104
package/api-keys.d.mts DELETED
@@ -1,336 +0,0 @@
1
- import { A as ApiCallOptions } from './global.types-5iFvFJvX.mjs';
2
- import './auth-types-nnUcWhuU.mjs';
3
-
4
- type ApiKey = {
5
- /** When the API key was created. */
6
- readonly created?: string;
7
- /** The ID of the user who created the key. */
8
- createdByUser: string;
9
- /** A description for the API key. */
10
- description: string;
11
- /** When the API key will expire and no longer be a valid authentication token. */
12
- expiry: string;
13
- /** The unique ID for the resource. */
14
- id: string;
15
- /** When the API key was last updated. */
16
- readonly lastUpdated?: string;
17
- /** The status of the API key. */
18
- status: "active" | "expired" | "revoked";
19
- /** The ID of the subject for the API key. */
20
- sub: string;
21
- /** Type of the subject. */
22
- subType: "user";
23
- /** The tenant ID. */
24
- tenantId: string;
25
- };
26
- type ApiKeyBody = {
27
- /** Text that describes the API key. */
28
- description: string;
29
- /** The expiry of the API key, in ISO8601 duration format. */
30
- expiry?: string;
31
- /** The ID of the subject for the API key. */
32
- sub?: string;
33
- /** Type of the subject. */
34
- subType?: string;
35
- };
36
- /**
37
- * A JSON Patch document as defined in https://datatracker.ietf.org/doc/html/rfc6902.
38
- */
39
- type ApiKeyConfigPatch = {
40
- /** The operation to be performed. */
41
- op: "replace";
42
- /** The path for the given resource field to patch. */
43
- path: "/api_keys_enabled" | "/max_api_key_expiry" | "/max_keys_per_user";
44
- /** The value to be used for this operation. */
45
- value: unknown;
46
- };
47
- /**
48
- * A JSON Patch document as defined in https://datatracker.ietf.org/doc/html/rfc6902.
49
- */
50
- type ApiKeyPatch = {
51
- /** The operation to be performed. */
52
- op: "replace";
53
- /** The path for the given resource field to patch. */
54
- path: "/description";
55
- /** The value to be used for this operation. */
56
- value: string;
57
- };
58
- type ApiKeyWithToken = {
59
- /** When the API key was created. */
60
- readonly created?: string;
61
- /** The id of the user who created the key. */
62
- createdByUser: string;
63
- /** A description for the API key. */
64
- description: string;
65
- /** When the API key will expire and no longer be a valid authentication token. */
66
- expiry: string;
67
- /** The unique ID for the resource. */
68
- id: string;
69
- /** When the API key was last updated. */
70
- readonly lastUpdated?: string;
71
- /** The status of the API key. */
72
- status: "active" | "expired" | "revoked";
73
- /** The ID of the subject for the API key. */
74
- sub: string;
75
- /** Type of the subject. */
76
- subType: "user";
77
- /** The tenant ID. */
78
- tenantId: string;
79
- /** The generated signed JWT. */
80
- token: string;
81
- };
82
- type ApiKeysConfig = {
83
- /** Enables or disables API key functionality for the specified tenant. */
84
- api_keys_enabled?: boolean;
85
- /** The maximum lifetime, in ISO8601 duration format, for which an API key can be issued for the specified tenant. */
86
- max_api_key_expiry?: string;
87
- /** The maximum number of active API keys that any user can create for the specified tenant. */
88
- max_keys_per_user?: number;
89
- };
90
- type ApiKeysConfigPatchSchema = ApiKeyConfigPatch[];
91
- type ApiKeysPatchSchema = ApiKeyPatch[];
92
- /**
93
- * An error object.
94
- */
95
- type Error = {
96
- /** The error code. */
97
- code: string;
98
- /** A human-readable explanation specific to this occurrence of the problem. */
99
- detail?: string;
100
- /** Additional properties relating to the error. */
101
- meta?: unknown;
102
- /** References to the source of the error. */
103
- source?: {
104
- /** The URI query parameter that caused the error. */
105
- parameter?: string;
106
- /** A JSON Pointer to the property that caused the error. */
107
- pointer?: string;
108
- };
109
- /** The HTTP status code. */
110
- status?: number;
111
- /** Summary of the problem. */
112
- title: string;
113
- };
114
- type Errors = {
115
- /** List of errors and their properties. */
116
- errors?: Error[];
117
- };
118
- type Link = {
119
- /** The URL for the link. */
120
- href: string;
121
- };
122
- type ApiKeyPage = {
123
- /** Properties of API keys in a given tenant. */
124
- data: ApiKey[];
125
- /** Navigation links to page results. */
126
- links: {
127
- next?: Link;
128
- prev?: Link;
129
- self: Link;
130
- };
131
- };
132
- /**
133
- * Lists API keys for a given tenant ID.
134
- *
135
- * @param query an object with query parameters
136
- * @throws GetApiKeysHttpError
137
- */
138
- declare const getApiKeys: (query: {
139
- /** The user ID that created the API key. */
140
- createdByUser?: string;
141
- /** Get resources with IDs that are lower than the target resource ID. Cannot be used in conjunction with startingAfter. */
142
- endingBefore?: string;
143
- /** Maximum number of API keys to retrieve. */
144
- limit?: number;
145
- /** The field to sort by, with +/- prefix indicating sort order */
146
- sort?: "createdByUser" | "+createdByUser" | "-createdByUser" | "sub" | "+sub" | "-sub" | "status" | "+status" | "-status" | "description" | "+description" | "-description" | "created" | "+created" | "-created";
147
- /** Get resources with IDs that are higher than the target resource ID. Cannot be used in conjunction with endingBefore. */
148
- startingAfter?: string;
149
- /** The status of the API key. */
150
- status?: "active" | "expired" | "revoked";
151
- /** The ID of the subject. */
152
- sub?: string;
153
- }, options?: ApiCallOptions) => Promise<GetApiKeysHttpResponse>;
154
- type GetApiKeysHttpResponse = {
155
- data: ApiKeyPage;
156
- headers: Headers;
157
- status: number;
158
- prev?: (options?: ApiCallOptions) => Promise<GetApiKeysHttpResponse>;
159
- next?: (options?: ApiCallOptions) => Promise<GetApiKeysHttpResponse>;
160
- };
161
- type GetApiKeysHttpError = {
162
- data: Errors;
163
- headers: Headers;
164
- status: number;
165
- };
166
- /**
167
- * Creates an API key resource.
168
- *
169
- * @param body an object with the body content
170
- * @throws CreateApiKeyHttpError
171
- */
172
- declare const createApiKey: (body: ApiKeyBody, options?: ApiCallOptions) => Promise<CreateApiKeyHttpResponse>;
173
- type CreateApiKeyHttpResponse = {
174
- data: ApiKeyWithToken;
175
- headers: Headers;
176
- status: number;
177
- };
178
- type CreateApiKeyHttpError = {
179
- data: Errors;
180
- headers: Headers;
181
- status: number;
182
- };
183
- /**
184
- * Gets the API keys configuration for a given tenant ID.
185
- *
186
- * @param tenantId The tenant ID of the API keys configuration to be retrieved.
187
- * @throws GetApiKeysConfigHttpError
188
- */
189
- declare const getApiKeysConfig: (tenantId: string, options?: ApiCallOptions) => Promise<GetApiKeysConfigHttpResponse>;
190
- type GetApiKeysConfigHttpResponse = {
191
- data: ApiKeysConfig;
192
- headers: Headers;
193
- status: number;
194
- };
195
- type GetApiKeysConfigHttpError = {
196
- data: Errors;
197
- headers: Headers;
198
- status: number;
199
- };
200
- /**
201
- * Updates the API keys configuration for a given tenant ID.
202
- *
203
- * @param tenantId The tenant ID of the API keys configuration to be retrieved.
204
- * @param body an object with the body content
205
- * @throws PatchApiKeysConfigHttpError
206
- */
207
- declare const patchApiKeysConfig: (tenantId: string, body: ApiKeysConfigPatchSchema, options?: ApiCallOptions) => Promise<PatchApiKeysConfigHttpResponse>;
208
- type PatchApiKeysConfigHttpResponse = {
209
- data: void;
210
- headers: Headers;
211
- status: number;
212
- };
213
- type PatchApiKeysConfigHttpError = {
214
- data: Errors;
215
- headers: Headers;
216
- status: number;
217
- };
218
- /**
219
- * When the owner of the API key sends the request, the key will be removed. When a TenantAdmin sends the request, the key will be revoked.
220
- *
221
- * @param id The ID of the API key resource to be retrieved.
222
- * @throws DeleteApiKeyHttpError
223
- */
224
- declare const deleteApiKey: (id: string, options?: ApiCallOptions) => Promise<DeleteApiKeyHttpResponse>;
225
- type DeleteApiKeyHttpResponse = {
226
- data: void;
227
- headers: Headers;
228
- status: number;
229
- };
230
- type DeleteApiKeyHttpError = {
231
- data: Errors;
232
- headers: Headers;
233
- status: number;
234
- };
235
- /**
236
- * Gets the API key for a given ID.
237
- *
238
- * @param id The ID of the API key resource to be retrieved.
239
- * @throws GetApiKeyHttpError
240
- */
241
- declare const getApiKey: (id: string, options?: ApiCallOptions) => Promise<GetApiKeyHttpResponse>;
242
- type GetApiKeyHttpResponse = {
243
- data: ApiKey;
244
- headers: Headers;
245
- status: number;
246
- };
247
- type GetApiKeyHttpError = {
248
- data: Errors;
249
- headers: Headers;
250
- status: number;
251
- };
252
- /**
253
- * Updates an API key for a given ID.
254
- *
255
- * @param id The ID of the API key resource to be updated.
256
- * @param body an object with the body content
257
- * @throws PatchApiKeyHttpError
258
- */
259
- declare const patchApiKey: (id: string, body: ApiKeysPatchSchema, options?: ApiCallOptions) => Promise<PatchApiKeyHttpResponse>;
260
- type PatchApiKeyHttpResponse = {
261
- data: void;
262
- headers: Headers;
263
- status: number;
264
- };
265
- type PatchApiKeyHttpError = {
266
- data: Errors;
267
- headers: Headers;
268
- status: number;
269
- };
270
- /**
271
- * Clears the cache for api-keys api requests.
272
- */
273
- declare function clearCache(): void;
274
- interface ApiKeysAPI {
275
- /**
276
- * Lists API keys for a given tenant ID.
277
- *
278
- * @param query an object with query parameters
279
- * @throws GetApiKeysHttpError
280
- */
281
- getApiKeys: typeof getApiKeys;
282
- /**
283
- * Creates an API key resource.
284
- *
285
- * @param body an object with the body content
286
- * @throws CreateApiKeyHttpError
287
- */
288
- createApiKey: typeof createApiKey;
289
- /**
290
- * Gets the API keys configuration for a given tenant ID.
291
- *
292
- * @param tenantId The tenant ID of the API keys configuration to be retrieved.
293
- * @throws GetApiKeysConfigHttpError
294
- */
295
- getApiKeysConfig: typeof getApiKeysConfig;
296
- /**
297
- * Updates the API keys configuration for a given tenant ID.
298
- *
299
- * @param tenantId The tenant ID of the API keys configuration to be retrieved.
300
- * @param body an object with the body content
301
- * @throws PatchApiKeysConfigHttpError
302
- */
303
- patchApiKeysConfig: typeof patchApiKeysConfig;
304
- /**
305
- * When the owner of the API key sends the request, the key will be removed. When a TenantAdmin sends the request, the key will be revoked.
306
- *
307
- * @param id The ID of the API key resource to be retrieved.
308
- * @throws DeleteApiKeyHttpError
309
- */
310
- deleteApiKey: typeof deleteApiKey;
311
- /**
312
- * Gets the API key for a given ID.
313
- *
314
- * @param id The ID of the API key resource to be retrieved.
315
- * @throws GetApiKeyHttpError
316
- */
317
- getApiKey: typeof getApiKey;
318
- /**
319
- * Updates an API key for a given ID.
320
- *
321
- * @param id The ID of the API key resource to be updated.
322
- * @param body an object with the body content
323
- * @throws PatchApiKeyHttpError
324
- */
325
- patchApiKey: typeof patchApiKey;
326
- /**
327
- * Clears the cache for api-keys api requests.
328
- */
329
- clearCache: typeof clearCache;
330
- }
331
- /**
332
- * Functions for the api-keys api
333
- */
334
- declare const apiKeysExport: ApiKeysAPI;
335
-
336
- export { type ApiKey, type ApiKeyBody, type ApiKeyConfigPatch, type ApiKeyPage, type ApiKeyPatch, type ApiKeyWithToken, type ApiKeysAPI, type ApiKeysConfig, type ApiKeysConfigPatchSchema, type ApiKeysPatchSchema, type CreateApiKeyHttpError, type CreateApiKeyHttpResponse, type DeleteApiKeyHttpError, type DeleteApiKeyHttpResponse, type Error, type Errors, type GetApiKeyHttpError, type GetApiKeyHttpResponse, type GetApiKeysConfigHttpError, type GetApiKeysConfigHttpResponse, type GetApiKeysHttpError, type GetApiKeysHttpResponse, type Link, type PatchApiKeyHttpError, type PatchApiKeyHttpResponse, type PatchApiKeysConfigHttpError, type PatchApiKeysConfigHttpResponse, clearCache, createApiKey, apiKeysExport as default, deleteApiKey, getApiKey, getApiKeys, getApiKeysConfig, patchApiKey, patchApiKeysConfig };
package/api-keys.mjs DELETED
@@ -1,80 +0,0 @@
1
- import {
2
- clearApiCache,
3
- invokeFetch
4
- } from "./chunks/3YV6X7S6.mjs";
5
- import "./chunks/EHAANYDL.mjs";
6
- import "./chunks/VSY5YIQY.mjs";
7
-
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
- });
56
- function clearCache() {
57
- return clearApiCache("api-keys");
58
- }
59
- var apiKeysExport = {
60
- getApiKeys,
61
- createApiKey,
62
- getApiKeysConfig,
63
- patchApiKeysConfig,
64
- deleteApiKey,
65
- getApiKey,
66
- patchApiKey,
67
- clearCache
68
- };
69
- var api_keys_default = apiKeysExport;
70
- export {
71
- clearCache,
72
- createApiKey,
73
- api_keys_default as default,
74
- deleteApiKey,
75
- getApiKey,
76
- getApiKeys,
77
- getApiKeysConfig,
78
- patchApiKey,
79
- patchApiKeysConfig
80
- };