@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.
- package/api-keys.d.ts +6 -2
- package/api-keys.js +2 -2
- package/apps.d.ts +1 -1
- package/apps.js +2 -2
- package/audits.d.ts +4 -16
- package/audits.js +2 -2
- package/auth.js +2 -2
- package/automations.d.ts +2 -59
- package/automations.js +3 -19
- package/brands.d.ts +1 -1
- package/brands.js +2 -2
- package/chunks/{E5TLRYTH.js → 3DYV7KOJ.js} +2 -2
- package/chunks/{CUC5USM5.js → 6DEESTGF.js} +2 -2
- package/chunks/{3REGOC54.js → 6QRR5VUM.js} +2 -2
- package/chunks/7BDAXGID.js +116 -0
- package/chunks/{3W4PFUMC.js → BL5PJM4B.js} +1 -1
- package/chunks/{3KD5W26Z.js → CZC7KEJN.js} +3 -3
- package/chunks/{OCV75U5H.js → I5UOE4ZZ.js} +81 -77
- package/chunks/{UJV2QU2J.js → N3ZFICDU.js} +3 -3
- package/chunks/{VXEOAWM6.js → OIQ5ELGS.js} +1 -1
- package/chunks/{SMQGR3VM.js → UA6BE3VB.js} +2 -2
- package/chunks/{EUWNVVK5.js → VX3MQBE7.js} +1 -1
- package/collections.d.ts +1 -1
- package/collections.js +2 -2
- package/csp-origins.d.ts +1 -1
- package/csp-origins.js +2 -2
- package/data-assets.d.ts +1 -1
- package/data-assets.js +2 -2
- package/data-connections.d.ts +1 -1
- package/data-connections.js +2 -2
- package/data-credentials.d.ts +1 -1
- package/data-credentials.js +2 -2
- package/data-files.d.ts +1 -1
- package/data-files.js +2 -2
- package/docs/rest.md +47 -0
- package/extensions.d.ts +1 -1
- package/extensions.js +2 -2
- package/glossaries.d.ts +3 -4
- package/glossaries.js +2 -2
- package/groups.d.ts +3 -3
- package/groups.js +2 -2
- package/identity-providers.d.ts +1 -1
- package/identity-providers.js +2 -2
- package/index.d.ts +11 -4
- package/index.js +89 -79
- package/interceptors.d.ts +51 -0
- package/interceptors.js +17 -0
- package/{global.types-qsBNouXJ.d.ts → invoke-fetch-types-BLrpeZOL.d.ts} +81 -48
- package/items.d.ts +3 -3
- package/items.js +2 -2
- package/licenses.d.ts +3 -1
- package/licenses.js +2 -2
- package/package.json +2 -2
- package/qix.d.ts +35 -2
- package/qix.js +2 -2
- package/quotas.d.ts +1 -1
- package/quotas.js +2 -2
- package/reload-tasks.d.ts +1 -1
- package/reload-tasks.js +2 -2
- package/reloads.d.ts +1 -1
- package/reloads.js +2 -2
- package/reports.d.ts +5 -3
- package/reports.js +2 -2
- package/roles.d.ts +98 -4
- package/roles.js +28 -4
- package/spaces.d.ts +23 -23
- package/spaces.js +2 -2
- package/temp-contents.d.ts +5 -5
- package/temp-contents.js +2 -2
- package/tenants.d.ts +1 -1
- package/tenants.js +2 -2
- package/themes.d.ts +1 -1
- package/themes.js +2 -2
- package/transports.d.ts +1 -1
- package/transports.js +2 -2
- package/users.d.ts +37 -61
- package/users.js +2 -9
- package/web-integrations.d.ts +1 -1
- package/web-integrations.js +2 -2
- package/web-notifications.d.ts +1 -1
- package/web-notifications.js +2 -2
- package/webhooks.d.ts +1 -1
- package/webhooks.js +2 -2
- package/chunks/7RHSSS4W.js +0 -0
package/users.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as ApiCallOptions } from './
|
|
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
|
|
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
|
|
137
|
-
/** A JSON Pointer. */
|
|
138
|
-
path: "/name" | "/roles
|
|
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[] |
|
|
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
|
-
*
|
|
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
|
|
152
|
-
/**
|
|
153
|
-
|
|
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
|
|
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?:
|
|
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
|
|
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/
|
|
5
|
-
import "./chunks/
|
|
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
|
};
|
package/web-integrations.d.ts
CHANGED
package/web-integrations.js
CHANGED
package/web-notifications.d.ts
CHANGED
package/web-notifications.js
CHANGED
package/webhooks.d.ts
CHANGED
package/webhooks.js
CHANGED
package/chunks/7RHSSS4W.js
DELETED
|
File without changes
|