@qlik/api 1.23.0 → 1.25.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 (84) hide show
  1. package/api-keys.d.ts +6 -2
  2. package/api-keys.js +2 -2
  3. package/apps.d.ts +1 -1
  4. package/apps.js +2 -2
  5. package/audits.d.ts +4 -16
  6. package/audits.js +2 -2
  7. package/auth.js +2 -2
  8. package/automations.d.ts +2 -59
  9. package/automations.js +3 -19
  10. package/brands.d.ts +1 -1
  11. package/brands.js +2 -2
  12. package/chunks/{E5TLRYTH.js → 3DYV7KOJ.js} +2 -2
  13. package/chunks/{CUC5USM5.js → 6DEESTGF.js} +2 -2
  14. package/chunks/{3REGOC54.js → 6QRR5VUM.js} +2 -2
  15. package/chunks/7BDAXGID.js +116 -0
  16. package/chunks/{3W4PFUMC.js → BL5PJM4B.js} +1 -1
  17. package/chunks/{3KD5W26Z.js → CZC7KEJN.js} +3 -3
  18. package/chunks/{OCV75U5H.js → I5UOE4ZZ.js} +81 -77
  19. package/chunks/{UJV2QU2J.js → N3ZFICDU.js} +3 -3
  20. package/chunks/{VXEOAWM6.js → OIQ5ELGS.js} +1 -1
  21. package/chunks/{SMQGR3VM.js → UA6BE3VB.js} +2 -2
  22. package/chunks/{EUWNVVK5.js → VX3MQBE7.js} +1 -1
  23. package/collections.d.ts +1 -1
  24. package/collections.js +2 -2
  25. package/csp-origins.d.ts +1 -1
  26. package/csp-origins.js +2 -2
  27. package/data-assets.d.ts +1 -1
  28. package/data-assets.js +2 -2
  29. package/data-connections.d.ts +1 -1
  30. package/data-connections.js +2 -2
  31. package/data-credentials.d.ts +1 -1
  32. package/data-credentials.js +2 -2
  33. package/data-files.d.ts +1 -1
  34. package/data-files.js +2 -2
  35. package/docs/rest.md +47 -0
  36. package/extensions.d.ts +1 -1
  37. package/extensions.js +2 -2
  38. package/glossaries.d.ts +3 -4
  39. package/glossaries.js +2 -2
  40. package/groups.d.ts +3 -3
  41. package/groups.js +2 -2
  42. package/identity-providers.d.ts +1 -1
  43. package/identity-providers.js +2 -2
  44. package/index.d.ts +11 -4
  45. package/index.js +89 -79
  46. package/interceptors.d.ts +51 -0
  47. package/interceptors.js +17 -0
  48. package/{global.types-qsBNouXJ.d.ts → invoke-fetch-types-BLrpeZOL.d.ts} +81 -48
  49. package/items.d.ts +3 -3
  50. package/items.js +2 -2
  51. package/licenses.d.ts +3 -1
  52. package/licenses.js +2 -2
  53. package/package.json +2 -2
  54. package/qix.d.ts +35 -2
  55. package/qix.js +2 -2
  56. package/quotas.d.ts +1 -1
  57. package/quotas.js +2 -2
  58. package/reload-tasks.d.ts +1 -1
  59. package/reload-tasks.js +2 -2
  60. package/reloads.d.ts +1 -1
  61. package/reloads.js +2 -2
  62. package/reports.d.ts +5 -3
  63. package/reports.js +2 -2
  64. package/roles.d.ts +98 -4
  65. package/roles.js +28 -4
  66. package/spaces.d.ts +23 -23
  67. package/spaces.js +2 -2
  68. package/temp-contents.d.ts +5 -5
  69. package/temp-contents.js +2 -2
  70. package/tenants.d.ts +1 -1
  71. package/tenants.js +2 -2
  72. package/themes.d.ts +1 -1
  73. package/themes.js +2 -2
  74. package/transports.d.ts +1 -1
  75. package/transports.js +2 -2
  76. package/users.d.ts +37 -61
  77. package/users.js +2 -9
  78. package/web-integrations.d.ts +1 -1
  79. package/web-integrations.js +2 -2
  80. package/web-notifications.d.ts +1 -1
  81. package/web-notifications.js +2 -2
  82. package/webhooks.d.ts +1 -1
  83. package/webhooks.js +2 -2
  84. package/chunks/7RHSSS4W.js +0 -0
package/users.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as ApiCallOptions } from './global.types-qsBNouXJ.js';
1
+ import { A as ApiCallOptions } from './invoke-fetch-types-BLrpeZOL.js';
2
2
  import './auth-types-PkN9CAF_.js';
3
3
 
4
4
  /**
@@ -14,6 +14,15 @@ type AssignedGroups = {
14
14
  /** The provider type of the group */
15
15
  providerType?: "idp" | "custom";
16
16
  }[];
17
+ /**
18
+ * An array of group reference names and provider type.
19
+ */
20
+ type AssignedGroupsRefNames = {
21
+ /** The name of the group */
22
+ name: string;
23
+ /** The type of provider for the group. */
24
+ providerType: "idp" | "custom";
25
+ }[];
17
26
  /**
18
27
  * An array of role references. Visibility dependant on access level. Must have access to roles to view other users' assigned roles.
19
28
  */
@@ -28,21 +37,7 @@ type AssignedRoles = {
28
37
  readonly type: "default" | "custom";
29
38
  }[];
30
39
  /**
31
- * An array of role reference identifiers.
32
- */
33
- type AssignedRolesRefIDs = {
34
- /** The unique role identitier */
35
- id: string;
36
- }[];
37
- /**
38
- * An array of role reference names.
39
- */
40
- type AssignedRolesRefNames = {
41
- /** The name of the role */
42
- name: string;
43
- }[];
44
- /**
45
- * An array of scopes assigned to user
40
+ * An array of scopes assigned to a user
46
41
  */
47
42
  type AssignedScopes = string[];
48
43
  /**
@@ -132,26 +127,31 @@ type InviteRequestData = {
132
127
  * A JSON Patch document as defined in http://tools.ietf.org/html/rfc6902.
133
128
  */
134
129
  type JSONPatch = {
135
- /** The operation to be performed. */
136
- op: "replace" | "set (Deprecated)" | "unset (Deprecated)" | "add (Deprecated)" | "renew";
137
- /** A JSON Pointer. */
138
- path: "/name" | "/roles (Deprecated)" | "/assignedRoles" | "/inviteExpiry" | "/preferredZoneinfo" | "/preferredLocale" | "/status" | "/assignedGroups";
130
+ /** The operation to be performed. The fields `set`, `unset`, and `add` are deprecated. */
131
+ op: "replace" | "set" | "unset" | "add" | "renew";
132
+ /** A JSON Pointer. The field `roles` is deprecated. */
133
+ path: "/name" | "/roles" | "/assignedRoles" | "/inviteExpiry" | "/preferredZoneinfo" | "/preferredLocale" | "/status" | "/assignedGroups";
139
134
  /** The value to be used for this operation. */
140
- value: string | boolean | unknown[] | AssignedRolesRefIDs | AssignedRolesRefNames;
135
+ value: string | boolean | unknown[] | RefIDs | RefNames | AssignedGroupsRefNames;
141
136
  };
142
137
  /**
143
138
  * An array of JSON Patch documents
144
139
  */
145
140
  type JSONPatchArray = JSONPatch[];
146
141
  /**
147
- * @deprecated
148
- *
149
- * An object containing the metadata for the user configuration.
142
+ * An array of entity reference identifiers (e.g. roles, groups).
150
143
  */
151
- type Metadata = {
152
- /** List of system roles to which the user can be assigned. */
153
- valid_roles?: string[];
154
- };
144
+ type RefIDs = {
145
+ /** The unique identitier */
146
+ id: string;
147
+ }[];
148
+ /**
149
+ * An array of reference names (e.g. roles).
150
+ */
151
+ type RefNames = {
152
+ /** The name of the entity */
153
+ name: string;
154
+ }[];
155
155
  /**
156
156
  * Invitee result item
157
157
  */
@@ -173,7 +173,7 @@ type User = {
173
173
  assignedGroups?: AssignedGroups;
174
174
  /** An array of role references. Visibility dependant on access level. Must have access to roles to view other users' assigned roles. */
175
175
  assignedRoles?: AssignedRoles;
176
- /** An array of scopes assigned to user */
176
+ /** An array of scopes assigned to a user */
177
177
  readonly assignedScopes?: AssignedScopes;
178
178
  /** @deprecated
179
179
  * Deprecated. Use `createdAt` instead. */
@@ -184,7 +184,7 @@ type User = {
184
184
  email?: string;
185
185
  /** The unique user identifier. */
186
186
  readonly id: string;
187
- /** The number of seconds until the user invitation will expire. */
187
+ /** The Unix timestamp indicating when the invite will expire. */
188
188
  readonly inviteExpiry?: number;
189
189
  /** @deprecated
190
190
  * Deprecated. Use `lastUpdatedAt` instead. */
@@ -213,7 +213,7 @@ type User = {
213
213
  * List of system roles to which the user has been assigned. Only returned when permitted by access control. Deprecated. Use `assignedRoles` instead. */
214
214
  roles?: ("TenantAdmin" | "Developer" | "AnalyticsAdmin" | "DataAdmin" | "DataSpaceCreator" | "ManagedSpaceCreator" | "SharedSpaceCreator")[];
215
215
  /** The status of the user within the tenant. */
216
- status?: "active" | "invited" | "disabled" | "deleted";
216
+ status?: "active" | "invited" | "disabled" | "deleted" | "provisioned";
217
217
  /** The unique user identitier from an identity provider. */
218
218
  subject: string;
219
219
  /** The tenant that the user belongs too. */
@@ -230,7 +230,7 @@ type UserCount = {
230
230
  };
231
231
  type UserPostSchema = {
232
232
  /** The roles to assign to the user. */
233
- assignedRoles?: AssignedRolesRefIDs | AssignedRolesRefNames;
233
+ assignedRoles?: RefIDs | RefNames;
234
234
  /** The email address for the user. This is a required field when inviting a user. */
235
235
  email?: string;
236
236
  /** The name of the user. */
@@ -268,6 +268,8 @@ type Users = {
268
268
  href: string;
269
269
  };
270
270
  };
271
+ /** Indicates the total number of matching documents. Will only be returned if the query parameter "totalResults" is true. */
272
+ totalResults?: number;
271
273
  };
272
274
  /**
273
275
  * Returns a list of users using cursor-based pagination.
@@ -324,7 +326,7 @@ declare const getUsers: (query: {
324
326
  * The role to filter by. Deprecated. */
325
327
  role?: string;
326
328
  /** The field to sort by, with +/- prefix indicating sort order */
327
- sort?: "name" | "+name" | "-name";
329
+ sort?: "name" | "+name" | "-name" | "_id" | "+_id" | "-_id" | "id" | "+id" | "-id" | "tenantId" | "+tenantId" | "-tenantId" | "clientId" | "+clientId" | "-clientId" | "status" | "+status" | "-status" | "subject" | "+subject" | "-subject" | "email" | "+email" | "-email" | "inviteExpiry" | "+inviteExpiry" | "-inviteExpiry" | "createdAt" | "+createdAt" | "-createdAt";
328
330
  /** @deprecated
329
331
  * The user parameter to sort by. Deprecated. Use `sort` instead. */
330
332
  sortBy?: "name";
@@ -336,7 +338,7 @@ declare const getUsers: (query: {
336
338
  startingAfter?: string;
337
339
  /** @deprecated
338
340
  * The status to filter by. Supports multiple values delimited by commas. Deprecated. Use the new `filter` parameter to provide an advanced query filter. */
339
- status?: "active" | "invited" | "disabled" | "deleted";
341
+ status?: "active" | "invited" | "disabled" | "deleted" | "provisioned";
340
342
  /** @deprecated
341
343
  * The subject to filter by. Deprecated. Use the new `filter` parameter to provide an advanced query filter. */
342
344
  subject?: string;
@@ -460,24 +462,6 @@ type GetMyUserHttpError = {
460
462
  headers: Headers;
461
463
  status: number;
462
464
  };
463
- /**
464
- * @deprecated
465
- *
466
- * Returns the metadata with regard to the user configuration. Deprecated, use GET /v1/roles instead.
467
- *
468
- * @throws GetUsersMetadataHttpError
469
- */
470
- declare const getUsersMetadata: (options?: ApiCallOptions) => Promise<GetUsersMetadataHttpResponse>;
471
- type GetUsersMetadataHttpResponse = {
472
- data: Metadata;
473
- headers: Headers;
474
- status: number;
475
- };
476
- type GetUsersMetadataHttpError = {
477
- data: Errors;
478
- headers: Headers;
479
- status: number;
480
- };
481
465
  /**
482
466
  * Deletes the requested user.
483
467
  *
@@ -587,14 +571,6 @@ interface UsersAPI {
587
571
  * @throws GetMyUserHttpError
588
572
  */
589
573
  getMyUser: typeof getMyUser;
590
- /**
591
- * @deprecated
592
- *
593
- * Returns the metadata with regard to the user configuration. Deprecated, use GET /v1/roles instead.
594
- *
595
- * @throws GetUsersMetadataHttpError
596
- */
597
- getUsersMetadata: typeof getUsersMetadata;
598
574
  /**
599
575
  * Deletes the requested user.
600
576
  *
@@ -628,4 +604,4 @@ interface UsersAPI {
628
604
  */
629
605
  declare const usersExport: UsersAPI;
630
606
 
631
- export { type AssignedGroups, type AssignedRoles, type AssignedRolesRefIDs, type AssignedRolesRefNames, type AssignedScopes, type CountUsersHttpError, type CountUsersHttpResponse, type CreateUserHttpError, type CreateUserHttpResponse, type DeleteUserHttpError, type DeleteUserHttpResponse, type Error, type ErrorItem, type Errors, type ErrorsResponse, type Filter, type FilterUsersHttpError, type FilterUsersHttpResponse, type GetMyUserHttpError, type GetMyUserHttpResponse, type GetUserHttpError, type GetUserHttpResponse, type GetUsersHttpError, type GetUsersHttpResponse, type GetUsersMetadataHttpError, type GetUsersMetadataHttpResponse, type InviteDataResponse, type InviteErrorItem, type InviteItem, type InviteRequestData, type InviteUsersHttpError, type InviteUsersHttpResponse, type JSONPatch, type JSONPatchArray, type Metadata, type PatchUser204HttpResponse, type PatchUser207HttpResponse, type PatchUserHttpError, type PatchUserHttpResponse, type ResultItem, type User, type UserCount, type UserPostSchema, type Users, type UsersAPI, clearCache, countUsers, createUser, usersExport as default, deleteUser, filterUsers, getMyUser, getUser, getUsers, getUsersMetadata, inviteUsers, patchUser };
607
+ export { type AssignedGroups, type AssignedGroupsRefNames, type AssignedRoles, type AssignedScopes, type CountUsersHttpError, type CountUsersHttpResponse, type CreateUserHttpError, type CreateUserHttpResponse, type DeleteUserHttpError, type DeleteUserHttpResponse, type Error, type ErrorItem, type Errors, type ErrorsResponse, type Filter, type FilterUsersHttpError, type FilterUsersHttpResponse, type GetMyUserHttpError, type GetMyUserHttpResponse, type GetUserHttpError, type GetUserHttpResponse, type GetUsersHttpError, type GetUsersHttpResponse, type InviteDataResponse, type InviteErrorItem, type InviteItem, type InviteRequestData, type InviteUsersHttpError, type InviteUsersHttpResponse, type JSONPatch, type JSONPatchArray, type PatchUser204HttpResponse, type PatchUser207HttpResponse, type PatchUserHttpError, type PatchUserHttpResponse, type RefIDs, type RefNames, type ResultItem, type User, type UserCount, type UserPostSchema, type Users, type UsersAPI, clearCache, countUsers, createUser, usersExport as default, deleteUser, filterUsers, getMyUser, getUser, getUsers, inviteUsers, patchUser };
package/users.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/SMQGR3VM.js";
5
- import "./chunks/3KD5W26Z.js";
4
+ } from "./chunks/UA6BE3VB.js";
5
+ import "./chunks/CZC7KEJN.js";
6
6
  import "./chunks/2ZQ3ZX7F.js";
7
7
 
8
8
  // src/public/rest/users.ts
@@ -45,11 +45,6 @@ var getMyUser = async (options) => invokeFetch("users", {
45
45
  pathTemplate: "/api/v1/users/me",
46
46
  options
47
47
  });
48
- var getUsersMetadata = async (options) => invokeFetch("users", {
49
- method: "get",
50
- pathTemplate: "/api/v1/users/metadata",
51
- options
52
- });
53
48
  var deleteUser = async (userId, options) => invokeFetch("users", {
54
49
  method: "delete",
55
50
  pathTemplate: "/api/v1/users/{userId}",
@@ -81,7 +76,6 @@ var usersExport = {
81
76
  filterUsers,
82
77
  inviteUsers,
83
78
  getMyUser,
84
- getUsersMetadata,
85
79
  deleteUser,
86
80
  getUser,
87
81
  patchUser,
@@ -98,7 +92,6 @@ export {
98
92
  getMyUser,
99
93
  getUser,
100
94
  getUsers,
101
- getUsersMetadata,
102
95
  inviteUsers,
103
96
  patchUser
104
97
  };
@@ -1,4 +1,4 @@
1
- import { A as ApiCallOptions } from './global.types-qsBNouXJ.js';
1
+ import { A as ApiCallOptions } from './invoke-fetch-types-BLrpeZOL.js';
2
2
  import './auth-types-PkN9CAF_.js';
3
3
 
4
4
  /**
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/SMQGR3VM.js";
5
- import "./chunks/3KD5W26Z.js";
4
+ } from "./chunks/UA6BE3VB.js";
5
+ import "./chunks/CZC7KEJN.js";
6
6
  import "./chunks/2ZQ3ZX7F.js";
7
7
 
8
8
  // src/public/rest/web-integrations.ts
@@ -1,4 +1,4 @@
1
- import { A as ApiCallOptions } from './global.types-qsBNouXJ.js';
1
+ import { A as ApiCallOptions } from './invoke-fetch-types-BLrpeZOL.js';
2
2
  import './auth-types-PkN9CAF_.js';
3
3
 
4
4
  /**
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/SMQGR3VM.js";
5
- import "./chunks/3KD5W26Z.js";
4
+ } from "./chunks/UA6BE3VB.js";
5
+ import "./chunks/CZC7KEJN.js";
6
6
  import "./chunks/2ZQ3ZX7F.js";
7
7
 
8
8
  // src/public/rest/web-notifications.ts
package/webhooks.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as ApiCallOptions } from './global.types-qsBNouXJ.js';
1
+ import { A as ApiCallOptions } from './invoke-fetch-types-BLrpeZOL.js';
2
2
  import './auth-types-PkN9CAF_.js';
3
3
 
4
4
  type Delivery = {
package/webhooks.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/SMQGR3VM.js";
5
- import "./chunks/3KD5W26Z.js";
4
+ } from "./chunks/UA6BE3VB.js";
5
+ import "./chunks/CZC7KEJN.js";
6
6
  import "./chunks/2ZQ3ZX7F.js";
7
7
 
8
8
  // src/public/rest/webhooks.ts
File without changes