@qlik/api 1.29.0 → 1.31.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 (86) hide show
  1. package/api-keys.d.ts +2 -2
  2. package/api-keys.js +2 -2
  3. package/apps.d.ts +5 -13
  4. package/apps.js +2 -2
  5. package/audits.d.ts +2 -2
  6. package/audits.js +2 -2
  7. package/{auth-types-PkN9CAF_.d.ts → auth-types-DqfMuSRX.d.ts} +1 -0
  8. package/auth.d.ts +27 -3
  9. package/auth.js +8 -4
  10. package/automations.d.ts +38 -38
  11. package/automations.js +2 -2
  12. package/brands.d.ts +2 -2
  13. package/brands.js +2 -2
  14. package/chunks/{2BRBIRM2.js → 6ZONDHRN.js} +1 -1
  15. package/chunks/{2B7YWDQC.js → DLKLPD7T.js} +3 -3
  16. package/chunks/ETNHFALU.js +61 -0
  17. package/chunks/{NBW6PHZU.js → FKDGGR2O.js} +158 -45
  18. package/chunks/{KYCIMQ4L.js → GUU3KZGK.js} +11 -1
  19. package/chunks/{5XNSGPGZ.js → KBSD75QL.js} +1 -1
  20. package/chunks/{4D5NADHK.js → LY7RP2HA.js} +7 -3
  21. package/chunks/{QOOCP2TS.js → M64RLKVG.js} +2074 -12
  22. package/chunks/{5MRIMVKS.js → PLVPW5IR.js} +17 -20
  23. package/chunks/{MGXEGSJC.js → UZTIZ4H5.js} +392 -372
  24. package/chunks/{WQYEWU54.js → YKZ2QYHN.js} +2 -2
  25. package/collections.d.ts +3 -3
  26. package/collections.js +2 -2
  27. package/csp-origins.d.ts +2 -2
  28. package/csp-origins.js +2 -2
  29. package/data-assets.d.ts +2 -2
  30. package/data-assets.js +2 -2
  31. package/data-connections.d.ts +8 -8
  32. package/data-connections.js +2 -2
  33. package/data-credentials.d.ts +2 -2
  34. package/data-credentials.js +2 -2
  35. package/data-files.d.ts +2 -2
  36. package/data-files.js +2 -2
  37. package/docs/authentication.md +47 -0
  38. package/extensions.d.ts +2 -2
  39. package/extensions.js +2 -2
  40. package/glossaries.d.ts +22 -15
  41. package/glossaries.js +2 -2
  42. package/groups.d.ts +5 -4
  43. package/groups.js +2 -2
  44. package/identity-providers.d.ts +2 -2
  45. package/identity-providers.js +2 -2
  46. package/index.d.ts +10 -4
  47. package/index.js +29 -4
  48. package/interceptors.d.ts +2 -2
  49. package/{invoke-fetch-types-BXn-uSF5.d.ts → invoke-fetch-types-Cq7bjkqn.d.ts} +10 -2
  50. package/items.d.ts +3 -3
  51. package/items.js +2 -2
  52. package/licenses.d.ts +5 -2
  53. package/licenses.js +2 -2
  54. package/oauth-clients.d.ts +521 -0
  55. package/oauth-clients.js +112 -0
  56. package/package.json +4 -2
  57. package/qix.d.ts +422 -27
  58. package/qix.js +2 -2
  59. package/quotas.d.ts +2 -2
  60. package/quotas.js +2 -2
  61. package/reload-tasks.d.ts +4 -2
  62. package/reload-tasks.js +2 -2
  63. package/reloads.d.ts +6 -2
  64. package/reloads.js +2 -2
  65. package/reports.d.ts +4 -2
  66. package/reports.js +2 -2
  67. package/roles.d.ts +14 -4
  68. package/roles.js +2 -2
  69. package/spaces.d.ts +3 -7
  70. package/spaces.js +2 -2
  71. package/temp-contents.d.ts +2 -2
  72. package/temp-contents.js +2 -2
  73. package/tenants.d.ts +2 -2
  74. package/tenants.js +2 -2
  75. package/themes.d.ts +2 -2
  76. package/themes.js +2 -2
  77. package/transports.d.ts +2 -2
  78. package/transports.js +2 -2
  79. package/users.d.ts +2 -2
  80. package/users.js +2 -2
  81. package/web-integrations.d.ts +2 -2
  82. package/web-integrations.js +2 -2
  83. package/web-notifications.d.ts +2 -2
  84. package/web-notifications.js +2 -2
  85. package/webhooks.d.ts +2 -2
  86. package/webhooks.js +2 -2
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  getInvokeFetchRuntimeModule
3
- } from "./2B7YWDQC.js";
3
+ } from "./DLKLPD7T.js";
4
4
  import {
5
5
  isBrowser
6
6
  } from "./2ZQ3ZX7F.js";
7
7
 
8
8
  // src/public/invoke-fetch.ts
9
- var defaultUserAgent = "qlik-api/1.29.0";
9
+ var defaultUserAgent = "qlik-api/1.31.0";
10
10
  async function invokeFetch(api, props) {
11
11
  const hostConfig = props.options?.hostConfig;
12
12
  let userAgent;
package/collections.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { A as ApiCallOptions } from './invoke-fetch-types-BXn-uSF5.js';
2
- import './auth-types-PkN9CAF_.js';
1
+ import { A as ApiCallOptions } from './invoke-fetch-types-Cq7bjkqn.js';
2
+ import './auth-types-DqfMuSRX.js';
3
3
 
4
4
  type CollectionByIdPatch = {
5
5
  /** The operation to be performed. */
@@ -121,7 +121,7 @@ type ItemMetaResponseBody = {
121
121
  /**
122
122
  * The case-sensitive string defining the item's type.
123
123
  */
124
- type ItemResourceTypeEnum = "app" | "qlikview" | "qvapp" | "genericlink" | "sharingservicetask" | "note" | "dataasset" | "dataset" | "automation" | "automl-experiment" | "automl-deployment";
124
+ type ItemResourceTypeEnum = "app" | "qlikview" | "qvapp" | "genericlink" | "sharingservicetask" | "note" | "dataasset" | "dataset" | "automation" | "automl-experiment" | "automl-deployment" | "assistant" | "dataproduct" | "dataqualityrule" | "glossary" | "knowledgebase" | "script";
125
125
  /**
126
126
  * An item.
127
127
  */
package/collections.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/WQYEWU54.js";
5
- import "./chunks/2B7YWDQC.js";
4
+ } from "./chunks/YKZ2QYHN.js";
5
+ import "./chunks/DLKLPD7T.js";
6
6
  import "./chunks/2ZQ3ZX7F.js";
7
7
 
8
8
  // src/public/rest/collections.ts
package/csp-origins.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { A as ApiCallOptions } from './invoke-fetch-types-BXn-uSF5.js';
2
- import './auth-types-PkN9CAF_.js';
1
+ import { A as ApiCallOptions } from './invoke-fetch-types-Cq7bjkqn.js';
2
+ import './auth-types-DqfMuSRX.js';
3
3
 
4
4
  type CSPEntry = {
5
5
  /** The CSP entry's unique identifier. */
package/csp-origins.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/WQYEWU54.js";
5
- import "./chunks/2B7YWDQC.js";
4
+ } from "./chunks/YKZ2QYHN.js";
5
+ import "./chunks/DLKLPD7T.js";
6
6
  import "./chunks/2ZQ3ZX7F.js";
7
7
 
8
8
  // src/public/rest/csp-origins.ts
package/data-assets.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { A as ApiCallOptions } from './invoke-fetch-types-BXn-uSF5.js';
2
- import './auth-types-PkN9CAF_.js';
1
+ import { A as ApiCallOptions } from './invoke-fetch-types-Cq7bjkqn.js';
2
+ import './auth-types-DqfMuSRX.js';
3
3
 
4
4
  type BatchIdDto = {
5
5
  ids?: string[];
package/data-assets.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/WQYEWU54.js";
5
- import "./chunks/2B7YWDQC.js";
4
+ } from "./chunks/YKZ2QYHN.js";
5
+ import "./chunks/DLKLPD7T.js";
6
6
  import "./chunks/2ZQ3ZX7F.js";
7
7
 
8
8
  // src/public/rest/data-assets.ts
@@ -1,5 +1,5 @@
1
- import { A as ApiCallOptions } from './invoke-fetch-types-BXn-uSF5.js';
2
- import './auth-types-PkN9CAF_.js';
1
+ import { A as ApiCallOptions } from './invoke-fetch-types-Cq7bjkqn.js';
2
+ import './auth-types-DqfMuSRX.js';
3
3
 
4
4
  type ActionDeleteRequest = {
5
5
  connections: {
@@ -130,10 +130,10 @@ type ConnectionGet = {
130
130
  /** List of connection parsed from connection string (only available when query parseConnection=true is set) */
131
131
  connectionProperties?: unknown;
132
132
  /** Datetime when the connection was created */
133
- created: string;
133
+ created?: string;
134
134
  /** Data source ID */
135
135
  datasourceID?: string;
136
- links?: Link;
136
+ links: Link;
137
137
  /** Array of string (i.e. update, delete, read) indicating the user's privileges on the associated connection */
138
138
  privileges: Privilege[];
139
139
  /** 0 or 1 value indicating whether the data connector is 64-bit (0) or 32-bit (1). Defaults to 0 if not specified. */
@@ -153,10 +153,10 @@ type ConnectionGet = {
153
153
  /** Descriptive name of the data connection */
154
154
  qName: string;
155
155
  /** Indicates whether or not this is a credential-less connection */
156
- qSeparateCredentials: boolean;
156
+ qSeparateCredentials?: boolean;
157
157
  /** Type of connection, i.e. provider type of underlying connector */
158
158
  qType: string;
159
- /** Encrypted base Qri string */
159
+ /** Encrypted base Qri string (filterable using SCIM filter, e.g. filter='qri co "snowflake"') */
160
160
  qri?: string;
161
161
  /** ID of the space to which the connection belongs */
162
162
  space?: string;
@@ -165,9 +165,9 @@ type ConnectionGet = {
165
165
  /** Tenant ID of the connection's creator */
166
166
  tenant: string;
167
167
  /** Datetime when the connection was last updated */
168
- updated: string;
168
+ updated?: string;
169
169
  /** User ID of the connection's creator */
170
- user: string;
170
+ user?: string;
171
171
  };
172
172
  type ConnectionUpdate = {
173
173
  /** ID of the datasource associated with this connection */
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/WQYEWU54.js";
5
- import "./chunks/2B7YWDQC.js";
4
+ } from "./chunks/YKZ2QYHN.js";
5
+ import "./chunks/DLKLPD7T.js";
6
6
  import "./chunks/2ZQ3ZX7F.js";
7
7
 
8
8
  // src/public/rest/data-connections.ts
@@ -1,5 +1,5 @@
1
- import { A as ApiCallOptions } from './invoke-fetch-types-BXn-uSF5.js';
2
- import './auth-types-PkN9CAF_.js';
1
+ import { A as ApiCallOptions } from './invoke-fetch-types-Cq7bjkqn.js';
2
+ import './auth-types-DqfMuSRX.js';
3
3
 
4
4
  type ActionFilterOrphanRequest = {
5
5
  /** Filtering on datasource ID of credentials */
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/WQYEWU54.js";
5
- import "./chunks/2B7YWDQC.js";
4
+ } from "./chunks/YKZ2QYHN.js";
5
+ import "./chunks/DLKLPD7T.js";
6
6
  import "./chunks/2ZQ3ZX7F.js";
7
7
 
8
8
  // src/public/rest/data-credentials.ts
package/data-files.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { A as ApiCallOptions } from './invoke-fetch-types-BXn-uSF5.js';
2
- import './auth-types-PkN9CAF_.js';
1
+ import { A as ApiCallOptions } from './invoke-fetch-types-Cq7bjkqn.js';
2
+ import './auth-types-DqfMuSRX.js';
3
3
 
4
4
  type BatchChangeSpaceItem = {
5
5
  /** The ID of the data file whose space will be changed. */
package/data-files.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/WQYEWU54.js";
5
- import "./chunks/2B7YWDQC.js";
4
+ } from "./chunks/YKZ2QYHN.js";
5
+ import "./chunks/DLKLPD7T.js";
6
6
  import "./chunks/2ZQ3ZX7F.js";
7
7
 
8
8
  // src/public/rest/data-files.ts
@@ -246,4 +246,51 @@ const hostConfig: HostConfig = {
246
246
  setDefaultHostConfig(hostConfig);
247
247
  ```
248
248
 
249
+ ## Registering a Host Config
250
+
251
+ It is possible to register a named host config and reference it when making api-calls.
252
+
253
+ When referencing a registered host config we use a special host config type with the auth type `reference` which only
254
+ takes one property with the same name (`.reference`). There is no need to specify the auth type in the host config
255
+ when using this host config type.
256
+
257
+ This example shows how to use the `registerHostConfig` function and how to reference it.
258
+
259
+ ```ts
260
+ import { auth, spaces } from "@qlik/api";
261
+
262
+ auth.registerHostConfig("tenant 1", {
263
+ host: "tenant1.eu.qlikcloud.com",
264
+ authType: "apikey",
265
+ apiKey: "<api-key>",
266
+ });
267
+
268
+ auth.registerHostConfig("tenant 2", {
269
+ host: "tenant2.eu.qlikcloud.com",
270
+ authType: "apikey",
271
+ apiKey: "<api-key>",
272
+ });
273
+
274
+ const response = await spaces.getSpaces({}, { hostConfig: { reference: "tenant 1" } });
275
+ console.log(`Tenant 1 has ${response.data.data.length} spaces`);
276
+ const response2 = await spaces.getSpaces({}, { hostConfig: { reference: "tenant 2" } });
277
+ console.log(`Tenant 2 has ${response2.data.data.length} spaces`);
278
+ ```
279
+
280
+ This works equally well when using it in the `createQlikApi` function.
281
+
282
+ ```ts
283
+ import { auth, createQlikApi } from "@qlik/api";
284
+
285
+ auth.registerHostConfig("tenant 1", {
286
+ host: "tenant1.eu.qlikcloud.com",
287
+ authType: "apikey",
288
+ apiKey: "<api-key>",
289
+ });
290
+
291
+ const api = createQlikApi({ reference: "tenant 1" });
292
+
293
+ // api is now bound to the registered host config "tenant 1"
294
+ ```
295
+
249
296
  ◁ [Back to overview](../README.md)
package/extensions.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { A as ApiCallOptions } from './invoke-fetch-types-BXn-uSF5.js';
2
- import './auth-types-PkN9CAF_.js';
1
+ import { A as ApiCallOptions } from './invoke-fetch-types-Cq7bjkqn.js';
2
+ import './auth-types-DqfMuSRX.js';
3
3
 
4
4
  /**
5
5
  * Object containing meta data regarding the bundle the extension belongs to. If it does not belong to a bundle, this object is not defined.
package/extensions.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/WQYEWU54.js";
5
- import "./chunks/2B7YWDQC.js";
4
+ } from "./chunks/YKZ2QYHN.js";
5
+ import "./chunks/DLKLPD7T.js";
6
6
  import "./chunks/2ZQ3ZX7F.js";
7
7
 
8
8
  // src/public/rest/extensions.ts
package/glossaries.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { A as ApiCallOptions } from './invoke-fetch-types-BXn-uSF5.js';
2
- import './auth-types-PkN9CAF_.js';
1
+ import { A as ApiCallOptions } from './invoke-fetch-types-Cq7bjkqn.js';
2
+ import './auth-types-DqfMuSRX.js';
3
3
 
4
4
  /**
5
- * A JSON Patch document as defined in http://tools.ietf.org/html/rfc6902.
5
+ * A JSON Patch document as defined in https://tools.ietf.org/html/rfc6902.
6
6
  */
7
7
  type JSONPatch = {
8
8
  /** The operation to be performed. */
@@ -115,6 +115,7 @@ type AtlasTerm = {
115
115
  };
116
116
  type CategoriesResult = {
117
117
  data: Category[];
118
+ /** URLs to a resource request */
118
119
  links?: PageLinks;
119
120
  meta?: ResultMeta;
120
121
  };
@@ -128,7 +129,7 @@ type Category = {
128
129
  id: string;
129
130
  name: string;
130
131
  parentId?: string;
131
- /** This list contains the uids of the stewards of the category. */
132
+ /** This list contains the UIDs of the stewards of the category. */
132
133
  stewards?: string[];
133
134
  readonly updatedAt: string;
134
135
  /** The uid of the user who last updated the category */
@@ -139,7 +140,7 @@ type CreateCategory = {
139
140
  /** The name of the category. May not be identical to another category belonging to the same parent. */
140
141
  name?: string;
141
142
  parentId?: string;
142
- /** This list contains the uids of the stewards of the category. */
143
+ /** This list contains the UIDs of the stewards of the category. */
143
144
  stewards?: string[];
144
145
  };
145
146
  type CreateGlossary = {
@@ -164,7 +165,7 @@ type CreateTerm = {
164
165
  name: string;
165
166
  relatedInformation?: string;
166
167
  relatesTo?: TermRelatesTo[];
167
- /** This list contain the uids for the term's stewards */
168
+ /** This list contain the UIDs for the term's stewards */
168
169
  stewards?: string[];
169
170
  tags?: string[];
170
171
  };
@@ -266,6 +267,7 @@ type ExportTerm = {
266
267
  };
267
268
  type GlossariesResult = {
268
269
  data?: Glossary[];
270
+ /** URLs to a resource request */
269
271
  links?: PageLinks;
270
272
  meta?: ResultMeta;
271
273
  };
@@ -284,7 +286,7 @@ type Glossary = {
284
286
  overview: string;
285
287
  /** The unique identifier of the glossary owner */
286
288
  ownerId: string;
287
- /** The unique identifier of the space containg the glossary */
289
+ /** The unique identifier of the space containing the glossary */
288
290
  spaceId: string;
289
291
  /** List of tags associated with the glossary. */
290
292
  tags: string[];
@@ -327,12 +329,16 @@ type ImportTerm = {
327
329
  };
328
330
  type LinksResult = {
329
331
  data?: TermLinksTo[];
332
+ /** URLs to a resource request */
330
333
  links?: PageLinks;
331
334
  meta?: ResultMeta;
332
335
  };
333
336
  type PageLink = {
334
337
  href?: string;
335
338
  };
339
+ /**
340
+ * URLs to a resource request
341
+ */
336
342
  type PageLinks = {
337
343
  next?: PageLink;
338
344
  prev?: PageLink;
@@ -357,7 +363,7 @@ type StewardDetail = {
357
363
  userId?: string;
358
364
  };
359
365
  type Term = {
360
- abbreviation?: string;
366
+ abbreviation: string;
361
367
  categories?: string[];
362
368
  readonly createdAt: string;
363
369
  readonly createdBy: string;
@@ -371,7 +377,7 @@ type Term = {
371
377
  revision: number;
372
378
  /** Terms status is used determine the status of a term */
373
379
  status: TermStatus;
374
- /** This list contains the uids of the terms data stewards. */
380
+ /** This list contains the UIDs of the terms data stewards. */
375
381
  stewards: string[];
376
382
  tags: string[];
377
383
  readonly updatedAt: string;
@@ -436,6 +442,7 @@ type TermTemplate = {
436
442
  };
437
443
  type TermsResult = {
438
444
  data: Term[];
445
+ /** URLs to a resource request */
439
446
  links?: PageLinks;
440
447
  meta?: ResultMeta;
441
448
  };
@@ -558,7 +565,7 @@ type GetGlossaryHttpError = {
558
565
  status: 400 | 403 | 404;
559
566
  };
560
567
  /**
561
- * Updates glossary properties with json-patch formated data
568
+ * Updates glossary properties with json-patch formatted data
562
569
  *
563
570
  * @param id The glossary id.
564
571
  * @param body an object with the body content
@@ -696,7 +703,7 @@ type GetGlossaryCategoryHttpError = {
696
703
  status: 400 | 403 | 404;
697
704
  };
698
705
  /**
699
- * Updates category properties with json-patch formated data
706
+ * Updates category properties with json-patch formatted data
700
707
  *
701
708
  * @param id The glossary id.
702
709
  * @param categoryId The category id.
@@ -832,7 +839,7 @@ type GetGlossaryTermHttpError = {
832
839
  status: 400 | 403 | 404;
833
840
  };
834
841
  /**
835
- * Updates term properties with json-patch formated data
842
+ * Updates term properties with json-patch formatted data
836
843
  *
837
844
  * @param id The glossary id.
838
845
  * @param termId The term id.
@@ -1019,7 +1026,7 @@ interface GlossariesAPI {
1019
1026
  */
1020
1027
  getGlossary: typeof getGlossary;
1021
1028
  /**
1022
- * Updates glossary properties with json-patch formated data
1029
+ * Updates glossary properties with json-patch formatted data
1023
1030
  *
1024
1031
  * @param id The glossary id.
1025
1032
  * @param body an object with the body content
@@ -1074,7 +1081,7 @@ interface GlossariesAPI {
1074
1081
  */
1075
1082
  getGlossaryCategory: typeof getGlossaryCategory;
1076
1083
  /**
1077
- * Updates category properties with json-patch formated data
1084
+ * Updates category properties with json-patch formatted data
1078
1085
  *
1079
1086
  * @param id The glossary id.
1080
1087
  * @param categoryId The category id.
@@ -1124,7 +1131,7 @@ interface GlossariesAPI {
1124
1131
  */
1125
1132
  getGlossaryTerm: typeof getGlossaryTerm;
1126
1133
  /**
1127
- * Updates term properties with json-patch formated data
1134
+ * Updates term properties with json-patch formatted data
1128
1135
  *
1129
1136
  * @param id The glossary id.
1130
1137
  * @param termId The term id.
package/glossaries.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/WQYEWU54.js";
5
- import "./chunks/2B7YWDQC.js";
4
+ } from "./chunks/YKZ2QYHN.js";
5
+ import "./chunks/DLKLPD7T.js";
6
6
  import "./chunks/2ZQ3ZX7F.js";
7
7
 
8
8
  // src/public/rest/glossaries.ts
package/groups.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { A as ApiCallOptions } from './invoke-fetch-types-BXn-uSF5.js';
2
- import './auth-types-PkN9CAF_.js';
1
+ import { A as ApiCallOptions } from './invoke-fetch-types-Cq7bjkqn.js';
2
+ import './auth-types-DqfMuSRX.js';
3
3
 
4
4
  /**
5
5
  * An array of role references. Visibility dependant on access level. Must have access to roles to view other users' assigned roles.
@@ -189,8 +189,9 @@ type GroupSettings = {
189
189
  href: string;
190
190
  };
191
191
  };
192
- /** Determines if groups should be created on login. */
193
- syncIdpGroups: boolean;
192
+ /** @deprecated
193
+ * Determines if groups should be created on login. */
194
+ syncIdpGroups?: boolean;
194
195
  systemGroups?: {
195
196
  "000000000000000000000001"?: {
196
197
  /** An array of role references. Visibility dependant on access level. Must have access to roles to view other users' assigned roles. */
package/groups.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/WQYEWU54.js";
5
- import "./chunks/2B7YWDQC.js";
4
+ } from "./chunks/YKZ2QYHN.js";
5
+ import "./chunks/DLKLPD7T.js";
6
6
  import "./chunks/2ZQ3ZX7F.js";
7
7
 
8
8
  // src/public/rest/groups.ts
@@ -1,5 +1,5 @@
1
- import { A as ApiCallOptions } from './invoke-fetch-types-BXn-uSF5.js';
2
- import './auth-types-PkN9CAF_.js';
1
+ import { A as ApiCallOptions } from './invoke-fetch-types-Cq7bjkqn.js';
2
+ import './auth-types-DqfMuSRX.js';
3
3
 
4
4
  type BaseIDP = {
5
5
  /** Indicates whether the IdP is available for use. */
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/WQYEWU54.js";
5
- import "./chunks/2B7YWDQC.js";
4
+ } from "./chunks/YKZ2QYHN.js";
5
+ import "./chunks/DLKLPD7T.js";
6
6
  import "./chunks/2ZQ3ZX7F.js";
7
7
 
8
8
  // src/public/rest/identity-providers.ts
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { InterceptorsAPI, createInterceptors } from './interceptors.js';
2
- import { registerAuthModule, setDefaultHostConfig, getAccessToken, AuthAPI } from './auth.js';
2
+ import { AuthAPI, registerAuthModule, setDefaultHostConfig, registerHostConfig, unregisterHostConfig, getAccessToken } from './auth.js';
3
3
  import { QixAPI } from './qix.js';
4
4
  import { ApiKeysAPI } from './api-keys.js';
5
5
  import { AppsAPI } from './apps.js';
@@ -18,6 +18,7 @@ import { GroupsAPI } from './groups.js';
18
18
  import { IdentityProvidersAPI } from './identity-providers.js';
19
19
  import { ItemsAPI } from './items.js';
20
20
  import { LicensesAPI } from './licenses.js';
21
+ import { OauthClientsAPI } from './oauth-clients.js';
21
22
  import { QuotasAPI } from './quotas.js';
22
23
  import { ReloadTasksAPI } from './reload-tasks.js';
23
24
  import { ReloadsAPI } from './reloads.js';
@@ -32,8 +33,8 @@ import { UsersAPI } from './users.js';
32
33
  import { WebIntegrationsAPI } from './web-integrations.js';
33
34
  import { WebNotificationsAPI } from './web-notifications.js';
34
35
  import { WebhooksAPI } from './webhooks.js';
35
- import { H as HostConfig } from './auth-types-PkN9CAF_.js';
36
- import './invoke-fetch-types-BXn-uSF5.js';
36
+ import { H as HostConfig } from './auth-types-DqfMuSRX.js';
37
+ import './invoke-fetch-types-Cq7bjkqn.js';
37
38
 
38
39
  declare const apiKeys: ApiKeysAPI;
39
40
  declare const apps: AppsAPI;
@@ -41,6 +42,8 @@ declare const audits: AuditsAPI;
41
42
  declare const auth: {
42
43
  registerAuthModule: typeof registerAuthModule;
43
44
  setDefaultHostConfig: typeof setDefaultHostConfig;
45
+ registerHostConfig: typeof registerHostConfig;
46
+ unregisterHostConfig: typeof unregisterHostConfig;
44
47
  getAccessToken: typeof getAccessToken;
45
48
  };
46
49
  declare const automations: AutomationsAPI;
@@ -60,6 +63,7 @@ declare const interceptors: InterceptorsAPI & {
60
63
  };
61
64
  declare const items: ItemsAPI;
62
65
  declare const licenses: LicensesAPI;
66
+ declare const oauthClients: OauthClientsAPI;
63
67
  declare const qix: QixAPI & {
64
68
  withHostConfig: (hostConfig: HostConfig | undefined) => QixAPI;
65
69
  };
@@ -116,6 +120,8 @@ interface QlikAPI {
116
120
  items: ItemsAPI;
117
121
  /** Functions for the licenses api */
118
122
  licenses: LicensesAPI;
123
+ /** Functions for the oauthClients api */
124
+ oauthClients: OauthClientsAPI;
119
125
  /** Functions for the qix api */
120
126
  qix: QixAPI;
121
127
  /** Functions for the quotas api */
@@ -158,4 +164,4 @@ declare const api: QlikAPI & {
158
164
  }) => QlikAPI;
159
165
  };
160
166
 
161
- export { type CreateQlikApiProps, type QlikAPI, apiKeys, apps, audits, auth, automations, brands, collections, createQlikApi, cspOrigins, dataAssets, dataConnections, dataCredentials, dataFiles, api as default, extensions, glossaries, groups, identityProviders, interceptors, items, licenses, qix, quotas, reloadTasks, reloads, reports, roles, spaces, tempContents, tenants, themes, transports, users, webIntegrations, webNotifications, webhooks };
167
+ export { type CreateQlikApiProps, type QlikAPI, apiKeys, apps, audits, auth, automations, brands, collections, createQlikApi, cspOrigins, dataAssets, dataConnections, dataCredentials, dataFiles, api as default, extensions, glossaries, groups, identityProviders, interceptors, items, licenses, oauthClients, qix, quotas, reloadTasks, reloads, reports, roles, spaces, tempContents, tenants, themes, transports, users, webIntegrations, webNotifications, webhooks };
package/index.js CHANGED
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  qix_default
3
- } from "./chunks/5XNSGPGZ.js";
3
+ } from "./chunks/KBSD75QL.js";
4
4
  import {
5
5
  auth_default
6
- } from "./chunks/KYCIMQ4L.js";
6
+ } from "./chunks/GUU3KZGK.js";
7
7
  import {
8
8
  interceptors_default
9
9
  } from "./chunks/3RGGGGAR.js";
10
10
  import {
11
11
  clearApiCache,
12
12
  invokeFetch
13
- } from "./chunks/WQYEWU54.js";
14
- import "./chunks/2B7YWDQC.js";
13
+ } from "./chunks/YKZ2QYHN.js";
14
+ import "./chunks/DLKLPD7T.js";
15
15
  import "./chunks/2ZQ3ZX7F.js";
16
16
 
17
17
  // src/runtime-api-generator/runtime-api-generator-common.ts
@@ -533,6 +533,27 @@ var licensesMiniModule = apiDefToApiPublic("licenses", {
533
533
  }
534
534
  }
535
535
  });
536
+ var oauthClientsMiniModule = apiDefToApiPublic("oauth-clients", {
537
+ api: {
538
+ v1: {
539
+ "oauth-clients": {
540
+ "": ["getOAuthClients:GQ:", "createOAuthClient:PBJ:"],
541
+ "{id}": {
542
+ "": ["deleteOAuthClient:D:", "getOAuthClient:G:", "patchOAuthClient:ABJ:"],
543
+ actions: { publish: ["publishOAuthClient:P:"] },
544
+ "client-secrets": { "": ["createOAuthClientSecret:P:"], "{hint}": ["deleteOAuthClientSecret:D:"] },
545
+ "connection-configs": {
546
+ me: [
547
+ "deleteOAuthClientConnectionConfig:D:",
548
+ "getOAuthClientConnectionConfig:G:",
549
+ "patchOAuthClientConnectionConfig:ABJ:"
550
+ ]
551
+ }
552
+ }
553
+ }
554
+ }
555
+ }
556
+ });
536
557
  var quotasMiniModule = apiDefToApiPublic("quotas", {
537
558
  api: { v1: { quotas: { "": ["getQuotas:GQ:"], "{id}": ["getQuota:GQ:"] } } }
538
559
  });
@@ -709,6 +730,7 @@ var identityProviders = identityProvidersMiniModule(void 0, interceptors_default
709
730
  var interceptors = interceptors_default;
710
731
  var items = itemsMiniModule(void 0, interceptors_default);
711
732
  var licenses = licensesMiniModule(void 0, interceptors_default);
733
+ var oauthClients = oauthClientsMiniModule(void 0, interceptors_default);
712
734
  var qix = qix_default;
713
735
  var quotas = quotasMiniModule(void 0, interceptors_default);
714
736
  var reloadTasks = reloadTasksMiniModule(void 0, interceptors_default);
@@ -746,6 +768,7 @@ var createQlikApi = (props) => {
746
768
  interceptors: scopedInterceptors,
747
769
  items: itemsMiniModule(props?.hostConfig, scopedInterceptors),
748
770
  licenses: licensesMiniModule(props?.hostConfig, scopedInterceptors),
771
+ oauthClients: oauthClientsMiniModule(props?.hostConfig, scopedInterceptors),
749
772
  qix: qix_default.withHostConfig(props?.hostConfig),
750
773
  quotas: quotasMiniModule(props?.hostConfig, scopedInterceptors),
751
774
  reloadTasks: reloadTasksMiniModule(props?.hostConfig, scopedInterceptors),
@@ -783,6 +806,7 @@ var api = {
783
806
  interceptors,
784
807
  items,
785
808
  licenses,
809
+ oauthClients,
786
810
  qix,
787
811
  quotas,
788
812
  reloadTasks,
@@ -823,6 +847,7 @@ export {
823
847
  interceptors,
824
848
  items,
825
849
  licenses,
850
+ oauthClients,
826
851
  qix,
827
852
  quotas,
828
853
  reloadTasks,
package/interceptors.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { I as InvokeFetchResponse, a as InvokeFetchProperties } from './invoke-fetch-types-BXn-uSF5.js';
2
- import './auth-types-PkN9CAF_.js';
1
+ import { I as InvokeFetchResponse, a as InvokeFetchProperties } from './invoke-fetch-types-Cq7bjkqn.js';
2
+ import './auth-types-DqfMuSRX.js';
3
3
 
4
4
  /**
5
5
  * The RestInterceptor type is a function that can be used to intercept requests and responses