@qlik/api 0.0.16 → 0.1.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 (132) hide show
  1. package/README.md +1 -1
  2. package/api-keys.js +25 -25
  3. package/apps.js +97 -97
  4. package/audits.js +23 -23
  5. package/auth.js +14 -14
  6. package/automations.js +47 -47
  7. package/brands.js +35 -35
  8. package/chunks/4HB3TAEO.js +4 -4
  9. package/chunks/{EHAANYDL.mjs → 4V5AAWUI.js} +3 -3
  10. package/chunks/{O4EAKEIN.mjs → D62LI5YU.js} +1 -1
  11. package/chunks/{6WX5AGKQ.mjs → L2BJNKLV.js} +2 -2
  12. package/chunks/{3YV6X7S6.mjs → LHCJKIEO.js} +1 -1
  13. package/chunks/OPRGGO4C.js +8 -8
  14. package/chunks/{HHOVS7QC.mjs → RNLZBOJU.js} +3 -3
  15. package/chunks/{BYD63JCG.mjs → SIU6HO6B.js} +5 -3
  16. package/chunks/{6AD3HYSF.mjs → TFSRDRRS.js} +1 -1
  17. package/chunks/{HOCTJESP.mjs → VK2CODYY.js} +2 -2
  18. package/chunks/{UKVTBYP6.mjs → XOVMZWDC.js} +2 -2
  19. package/collections.js +33 -33
  20. package/csp-origins.js +23 -23
  21. package/data-assets.js +21 -21
  22. package/data-connections.js +29 -29
  23. package/data-credentials.js +19 -19
  24. package/data-files.js +35 -35
  25. package/docs/authentication.md +5 -5
  26. package/docs/examples/fetch-spaces.md +1 -15
  27. package/docs/examples/show-sheet-list.md +1 -1
  28. package/docs/features.md +1 -1
  29. package/extensions.js +25 -25
  30. package/glossaries.js +59 -59
  31. package/groups.d.ts +0 -3
  32. package/groups.js +27 -27
  33. package/identity-providers.js +27 -27
  34. package/index.js +53 -53
  35. package/items.js +27 -27
  36. package/licenses.js +29 -29
  37. package/package.json +36 -232
  38. package/qix.d.ts +1 -1
  39. package/qix.js +10 -10
  40. package/quotas.js +15 -15
  41. package/reload-tasks.js +21 -21
  42. package/reloads.js +19 -19
  43. package/roles.js +15 -15
  44. package/spaces.js +35 -35
  45. package/temp-contents.js +17 -17
  46. package/tenants.js +23 -23
  47. package/themes.js +25 -25
  48. package/transports.js +23 -23
  49. package/users.d.ts +1 -3
  50. package/users.js +31 -31
  51. package/web-integrations.js +21 -21
  52. package/web-notifications.js +23 -23
  53. package/webhooks.js +31 -31
  54. package/api-keys.d.mts +0 -336
  55. package/api-keys.mjs +0 -80
  56. package/apps.d.mts +0 -2431
  57. package/apps.mjs +0 -398
  58. package/audits.d.mts +0 -286
  59. package/audits.mjs +0 -64
  60. package/auth-types-nnUcWhuU.d.mts +0 -98
  61. package/auth.d.mts +0 -26
  62. package/auth.mjs +0 -14
  63. package/automations.d.mts +0 -682
  64. package/automations.mjs +0 -173
  65. package/brands.d.mts +0 -670
  66. package/brands.mjs +0 -123
  67. package/chunks/2YWCEGTS.js +0 -21
  68. package/chunks/34ZKUFEA.js +0 -41
  69. package/chunks/4WHZ4EIW.js +0 -57
  70. package/chunks/B4VPD3ZT.js +0 -574
  71. package/chunks/BM4OSDRZ.js +0 -17
  72. package/chunks/DCXUEDOW.mjs +0 -67
  73. package/chunks/MTAQE4WC.js +0 -10411
  74. package/chunks/PLOSYUG2.js +0 -25
  75. package/chunks/URIW2U5M.js +0 -17
  76. package/chunks/VSY5YIQY.mjs +0 -11
  77. package/chunks/WOYJLK4Y.js +0 -1623
  78. package/collections.d.mts +0 -581
  79. package/collections.mjs +0 -114
  80. package/csp-origins.d.mts +0 -273
  81. package/csp-origins.mjs +0 -69
  82. package/data-assets.d.mts +0 -205
  83. package/data-assets.mjs +0 -66
  84. package/data-connections.d.mts +0 -594
  85. package/data-connections.mjs +0 -103
  86. package/data-credentials.d.mts +0 -204
  87. package/data-credentials.mjs +0 -59
  88. package/data-files.d.mts +0 -562
  89. package/data-files.mjs +0 -123
  90. package/extensions.d.mts +0 -293
  91. package/extensions.mjs +0 -77
  92. package/global.types-5iFvFJvX.d.mts +0 -115
  93. package/glossaries.d.mts +0 -1173
  94. package/glossaries.mjs +0 -237
  95. package/groups.d.mts +0 -434
  96. package/groups.mjs +0 -88
  97. package/identity-providers.d.mts +0 -550
  98. package/identity-providers.mjs +0 -83
  99. package/index.d.mts +0 -142
  100. package/index.mjs +0 -716
  101. package/items.d.mts +0 -535
  102. package/items.mjs +0 -87
  103. package/licenses.d.mts +0 -459
  104. package/licenses.mjs +0 -92
  105. package/qix.d.mts +0 -11629
  106. package/qix.mjs +0 -10
  107. package/quotas.d.mts +0 -112
  108. package/quotas.mjs +0 -32
  109. package/reload-tasks.d.mts +0 -227
  110. package/reload-tasks.mjs +0 -62
  111. package/reloads.d.mts +0 -207
  112. package/reloads.mjs +0 -46
  113. package/roles.d.mts +0 -175
  114. package/roles.mjs +0 -31
  115. package/spaces.d.mts +0 -562
  116. package/spaces.mjs +0 -124
  117. package/temp-contents.d.mts +0 -167
  118. package/temp-contents.mjs +0 -41
  119. package/tenants.d.mts +0 -300
  120. package/tenants.mjs +0 -73
  121. package/themes.d.mts +0 -268
  122. package/themes.mjs +0 -77
  123. package/transports.d.mts +0 -319
  124. package/transports.mjs +0 -65
  125. package/users.d.mts +0 -631
  126. package/users.mjs +0 -104
  127. package/web-integrations.d.mts +0 -274
  128. package/web-integrations.mjs +0 -62
  129. package/web-notifications.d.mts +0 -250
  130. package/web-notifications.mjs +0 -69
  131. package/webhooks.d.mts +0 -445
  132. package/webhooks.mjs +0 -104
package/transports.mjs DELETED
@@ -1,65 +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/transports.ts
9
- var deleteEmailConfig = async (options) => invokeFetch("transports", {
10
- method: "delete",
11
- pathTemplate: "/api/v1/transports/email-config",
12
- options
13
- });
14
- var getEmailConfig = async (options) => invokeFetch("transports", {
15
- method: "get",
16
- pathTemplate: "/api/v1/transports/email-config",
17
- options
18
- });
19
- var patchEmailConfig = async (body, options) => invokeFetch("transports", {
20
- method: "patch",
21
- pathTemplate: "/api/v1/transports/email-config",
22
- body,
23
- contentType: "application/json",
24
- options
25
- });
26
- var sendTestEmail = async (body, options) => invokeFetch("transports", {
27
- method: "post",
28
- pathTemplate: "/api/v1/transports/email-config/actions/send-test-email",
29
- body,
30
- contentType: "application/json",
31
- options
32
- });
33
- var validateEmailConfig = async (options) => invokeFetch("transports", {
34
- method: "post",
35
- pathTemplate: "/api/v1/transports/email-config/actions/validate",
36
- options
37
- });
38
- var verifyEmailConfigConnection = async (options) => invokeFetch("transports", {
39
- method: "post",
40
- pathTemplate: "/api/v1/transports/email-config/actions/verify-connection",
41
- options
42
- });
43
- function clearCache() {
44
- return clearApiCache("transports");
45
- }
46
- var transportsExport = {
47
- deleteEmailConfig,
48
- getEmailConfig,
49
- patchEmailConfig,
50
- sendTestEmail,
51
- validateEmailConfig,
52
- verifyEmailConfigConnection,
53
- clearCache
54
- };
55
- var transports_default = transportsExport;
56
- export {
57
- clearCache,
58
- transports_default as default,
59
- deleteEmailConfig,
60
- getEmailConfig,
61
- patchEmailConfig,
62
- sendTestEmail,
63
- validateEmailConfig,
64
- verifyEmailConfigConnection
65
- };
package/users.d.mts DELETED
@@ -1,631 +0,0 @@
1
- import { A as ApiCallOptions } from './global.types-5iFvFJvX.mjs';
2
- import './auth-types-nnUcWhuU.mjs';
3
-
4
- /**
5
- * An array of group references.
6
- */
7
- type AssignedGroups = {
8
- /** An array of role references. */
9
- assignedRoles?: AssignedRoles;
10
- /** The unique group identitier */
11
- id: string;
12
- /** The group name */
13
- readonly name: string;
14
- }[];
15
- /**
16
- * An array of role references.
17
- */
18
- type AssignedRoles = {
19
- /** The unique role identitier */
20
- id: string;
21
- /** The role level */
22
- readonly level: "admin" | "user";
23
- /** The role name */
24
- readonly name: string;
25
- /** An array of permissions associated to a given role. */
26
- readonly permissions: string[];
27
- /** The type of role */
28
- readonly type: "default";
29
- }[];
30
- /**
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
46
- */
47
- type AssignedScopes = string[];
48
- /**
49
- * An error object describing the error.
50
- */
51
- type Error = {
52
- /** The error code. */
53
- code: string;
54
- /** A human-readable explanation specific to this occurrence of the problem. */
55
- detail?: string;
56
- /** Additional properties relating to the error. */
57
- meta?: unknown;
58
- /** References to the source of the error. */
59
- source?: {
60
- /** The URI query parameter that caused the error. */
61
- parameter?: string;
62
- /** A JSON Pointer to the property that caused the error. */
63
- pointer?: string;
64
- };
65
- /** The HTTP status code. */
66
- status?: number;
67
- /** Summary of the problem. */
68
- title: string;
69
- };
70
- /**
71
- * Error object.
72
- */
73
- type ErrorItem = {
74
- /** Error code */
75
- code: number;
76
- /** A human-readable explanation specific to this occurrence of the problem (if applicable) */
77
- detail?: string;
78
- /** Summary of the problem */
79
- title: string;
80
- };
81
- /**
82
- * The error response object describing the error from the handling of an HTTP request.
83
- */
84
- type Errors = {
85
- /** An array of errors related to the operation. */
86
- errors?: Error[];
87
- /** A unique identifier for tracing the error. */
88
- traceId?: string;
89
- };
90
- type ErrorsResponse = {
91
- errors?: ErrorItem[];
92
- };
93
- /**
94
- * An advanced query filter to be used for complex user querying in the tenant.
95
- */
96
- type Filter = {
97
- /** The advanced filtering to be applied the query. All conditional statements within this query parameter are case insensitive. */
98
- filter?: string;
99
- };
100
- /**
101
- * Data list - ResultItem or ErrorItem for each InviteeItem.
102
- */
103
- type InviteDataResponse = {
104
- data?: (ResultItem | InviteErrorItem)[];
105
- };
106
- /**
107
- * Error object.
108
- */
109
- type InviteErrorItem = ErrorItem & {
110
- /** Error code - | HTTP Status code | 1001 - Active User | 1002 - Disabled User | 1003 - Default External Dependency Error | */
111
- code?: string;
112
- /** Invitee email */
113
- email: string;
114
- /** Result status = "error" */
115
- status: "error";
116
- };
117
- type InviteItem = {
118
- /** Email address for this invitee. Example - "foo@qlik.com". */
119
- email: string;
120
- /** Optional ISO 639-1 2 letter code for invite language. Defaults to 'en' when missing or not found. */
121
- language?: string;
122
- /** Optional display name for this invitee. Example - "Elvis Presley". */
123
- name?: string;
124
- /** Flag - when true invite message is sent to inactive or invited users. Typically used to force email resend to users who are not yet active. */
125
- resend?: boolean;
126
- };
127
- type InviteRequestData = {
128
- /** List of invitees who should receive an invite email. */
129
- invitees?: InviteItem[];
130
- };
131
- /**
132
- * A JSON Patch document as defined in http://tools.ietf.org/html/rfc6902.
133
- */
134
- 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";
139
- /** The value to be used for this operation. */
140
- value: string | boolean | unknown[] | AssignedRolesRefIDs | AssignedRolesRefNames;
141
- };
142
- /**
143
- * An array of JSON Patch documents
144
- */
145
- type JSONPatchArray = JSONPatch[];
146
- /**
147
- * @deprecated
148
- *
149
- * An object containing the metadata for the user configuration.
150
- */
151
- type Metadata = {
152
- /** List of system roles to which the user can be assigned. */
153
- valid_roles?: string[];
154
- };
155
- /**
156
- * Invitee result item
157
- */
158
- type ResultItem = {
159
- /** Email specified for this invitee */
160
- email: string;
161
- /** Result status = {"ok" (new user; email sent) | "exists" (existing user; no email sent)} */
162
- status: "ok" | "exists";
163
- /** IdP generated UUID for this invitee */
164
- subject: string;
165
- /** UserId for this invitee */
166
- userId: string;
167
- };
168
- /**
169
- * A user object.
170
- */
171
- type User = {
172
- /** An array of group references. */
173
- assignedGroups?: AssignedGroups;
174
- /** An array of role references. */
175
- assignedRoles?: AssignedRoles;
176
- /** An array of scopes assigned to user */
177
- readonly assignedScopes?: AssignedScopes;
178
- /** @deprecated
179
- * Deprecated. Use `createdAt` instead. */
180
- readonly created?: string;
181
- /** The timestamp for when the user record was created. */
182
- readonly createdAt?: string;
183
- /** The email address for the user. */
184
- email?: string;
185
- /** The unique user identifier. */
186
- readonly id: string;
187
- /** The number of seconds until the user invitation will expire. */
188
- readonly inviteExpiry?: number;
189
- /** @deprecated
190
- * Deprecated. Use `lastUpdatedAt` instead. */
191
- readonly lastUpdated?: string;
192
- /** The timestamp for when the user record was last updated. */
193
- readonly lastUpdatedAt?: string;
194
- /** Pagination links to the user. */
195
- readonly links?: {
196
- /** A link to this user. */
197
- self: {
198
- /** URL that defines the resource. */
199
- href: string;
200
- };
201
- };
202
- /** Represents the end-user's language tag. */
203
- locale?: string;
204
- /** The name of the user. */
205
- name: string;
206
- /** A static url linking to the avatar of the user. */
207
- picture?: string;
208
- /** Represents the end-user's preferred language tag. */
209
- preferredLocale?: string;
210
- /** Represents the end-user's preferred time zone. */
211
- preferredZoneinfo?: string;
212
- /** @deprecated
213
- * List of system roles to which the user has been assigned. Only returned when permitted by access control. Deprecated. Use `assignedRoles` instead. */
214
- roles?: ("TenantAdmin" | "Developer" | "AnalyticsAdmin" | "DataAdmin" | "DataSpaceCreator" | "ManagedSpaceCreator" | "SharedSpaceCreator")[];
215
- /** The status of the user within the tenant. */
216
- status?: "active" | "invited" | "disabled" | "deleted";
217
- /** The unique user identitier from an identity provider. */
218
- subject: string;
219
- /** The tenant that the user belongs too. */
220
- tenantId: string;
221
- /** Represents the end-user's time zone. */
222
- zoneinfo?: string;
223
- };
224
- /**
225
- * The result object for the user count.
226
- */
227
- type UserCount = {
228
- /** The total number of users in the tenant. */
229
- total: number;
230
- };
231
- type UserPostSchema = {
232
- /** The roles to assign to the user. */
233
- assignedRoles?: AssignedRolesRefIDs | AssignedRolesRefNames;
234
- /** The email address for the user. This is a required field when inviting a user. */
235
- email?: string;
236
- /** The name of the user. */
237
- name?: string;
238
- /** A static url linking to the avatar of the user. */
239
- picture?: string;
240
- /** @deprecated
241
- * List of system roles to which the user has been assigned. Only returned when permitted by access control. */
242
- roles?: ("TenantAdmin" | "Developer" | "AnalyticsAdmin" | "DataAdmin" | "DataSpaceCreator" | "ManagedSpaceCreator" | "SharedSpaceCreator")[];
243
- /** The status of the created user within the tenant. */
244
- status?: "invited";
245
- /** The unique user identitier from an identity provider. */
246
- subject: string;
247
- /** The tenant that the user will belong too. */
248
- tenantId?: string;
249
- };
250
- type Users = {
251
- /** List of users. */
252
- data?: User[];
253
- /** Pagination links */
254
- links?: {
255
- /** Link information for next page */
256
- next?: {
257
- /** URL to the next page of records */
258
- href: string;
259
- };
260
- /** Link information for previous page */
261
- prev?: {
262
- /** URL to the previous page of records */
263
- href: string;
264
- };
265
- /** Link information for current page */
266
- self: {
267
- /** URL to the current page of records */
268
- href: string;
269
- };
270
- };
271
- };
272
- /**
273
- * Returns a list of users using cursor-based pagination.
274
- *
275
- * @param query an object with query parameters
276
- * @throws GetUsersHttpError
277
- */
278
- declare const getUsers: (query: {
279
- /** @deprecated
280
- * The email to filter by. Deprecated. Use the new `filter` parameter to provide an advanced query filter. */
281
- email?: string;
282
- /** @deprecated
283
- * Get users with IDs that are lower than the target user ID. Cannot be used in conjunction with startingAfter. Deprecated. Use `prev` instead. */
284
- endingBefore?: string;
285
- /** A comma-delimited string of the requested fields per entity. If the 'links' value is omitted, then the entity HATEOAS link will also be omitted. */
286
- fields?: string;
287
- /** The advanced filtering to use for the query. Refer to [RFC 7644](https://datatracker.ietf.org/doc/rfc7644/) for the syntax. Cannot be combined with any of the fields marked as deprecated. All conditional statements within this query parameter are case insensitive.
288
- *
289
- * The following fields support the `eq` operator: `id`, `subject`, `name`, `email`, `status`, `clientId`, `assignedRoles.id` `assignedRoles.name`, `assignedGroups.id`, `assignedGroupsAssignedRoles.name`
290
- *
291
- * Additionally, the following fields support the `co` operator: `name`, `email`, `subject`
292
- *
293
- * Queries may be rate limited if they differ greatly from these examples:
294
- *
295
- * ```
296
- * (id eq "62716ab404a7bd8626af9bd6" or id eq "62716ac4c7e500e13ff5fa22") and (status eq "active" or status eq "disabled")
297
- * ```
298
- *
299
- * ```
300
- * name co "query" or email co "query" or subject co "query" or id eq "query" or assignedRoles.name eq "query"
301
- * ```
302
- *
303
- * Any filters for status must be grouped together and applied to the whole query.
304
- *
305
- * Valid:
306
- *
307
- * ```
308
- * (name eq "Bob" or name eq "Alice") and (status eq "active" or status eq "disabled")
309
- * ```
310
- *
311
- * Invalid:
312
- *
313
- * ```
314
- * name eq "Bob" or name eq "Alice" and (status eq "active" or status eq "disabled")
315
- * ``` */
316
- filter?: string;
317
- /** The number of user entries to retrieve. */
318
- limit?: number;
319
- /** Get users that come after this cursor value when sorted. Cannot be used in conjunction with `prev`. */
320
- next?: string;
321
- /** Get users that come before this cursor value when sorted. Cannot be used in conjunction with `next`. */
322
- prev?: string;
323
- /** @deprecated
324
- * The role to filter by. Deprecated. */
325
- role?: string;
326
- /** The field to sort by, with +/- prefix indicating sort order */
327
- sort?: "name" | "+name" | "-name";
328
- /** @deprecated
329
- * The user parameter to sort by. Deprecated. Use `sort` instead. */
330
- sortBy?: "name";
331
- /** @deprecated
332
- * The sort order, either ascending or descending. Deprecated. Use `sort` instead. */
333
- sortOrder?: "asc" | "desc";
334
- /** @deprecated
335
- * Get users with IDs that are higher than the target user ID. Cannot be used in conjunction with endingBefore. Deprecated. Use `next` instead. */
336
- startingAfter?: string;
337
- /** @deprecated
338
- * 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";
340
- /** @deprecated
341
- * The subject to filter by. Deprecated. Use the new `filter` parameter to provide an advanced query filter. */
342
- subject?: string;
343
- /** @deprecated
344
- * The tenant ID to filter by. Deprecated. */
345
- tenantId?: string;
346
- /** Whether to return a total match count in the result. Defaults to false. It will trigger an extra DB query to count, reducing the efficiency of the endpoint. */
347
- totalResults?: boolean;
348
- }, options?: ApiCallOptions) => Promise<GetUsersHttpResponse>;
349
- type GetUsersHttpResponse = {
350
- data: Users;
351
- headers: Headers;
352
- status: number;
353
- prev?: (options?: ApiCallOptions) => Promise<GetUsersHttpResponse>;
354
- next?: (options?: ApiCallOptions) => Promise<GetUsersHttpResponse>;
355
- };
356
- type GetUsersHttpError = {
357
- data: Errors;
358
- headers: Headers;
359
- status: number;
360
- };
361
- /**
362
- * Creates an invited user.
363
- *
364
- * @param body an object with the body content
365
- * @throws CreateUserHttpError
366
- */
367
- declare const createUser: (body: UserPostSchema, options?: ApiCallOptions) => Promise<CreateUserHttpResponse>;
368
- type CreateUserHttpResponse = {
369
- data: User;
370
- headers: Headers;
371
- status: number;
372
- };
373
- type CreateUserHttpError = {
374
- data: Errors;
375
- headers: Headers;
376
- status: number;
377
- };
378
- /**
379
- * Returns the number of users in a given tenant
380
- *
381
- * @param query an object with query parameters
382
- * @throws CountUsersHttpError
383
- */
384
- declare const countUsers: (query: {
385
- /** @deprecated
386
- * The tenant ID to filter by. */
387
- tenantId?: string;
388
- }, options?: ApiCallOptions) => Promise<CountUsersHttpResponse>;
389
- type CountUsersHttpResponse = {
390
- data: UserCount;
391
- headers: Headers;
392
- status: number;
393
- };
394
- type CountUsersHttpError = {
395
- data: Errors;
396
- headers: Headers;
397
- status: number;
398
- };
399
- /**
400
- * Retrieves a list of users matching the filter using an advanced query string.
401
- *
402
- * @param query an object with query parameters
403
- * @param body an object with the body content
404
- * @throws FilterUsersHttpError
405
- */
406
- declare const filterUsers: (query: {
407
- /** A comma-delimited string of the requested fields per entity. If the 'links' value is omitted, then the entity HATEOAS link will also be omitted. */
408
- fields?: string;
409
- /** The number of user entries to retrieve. */
410
- limit?: number;
411
- /** Get users with IDs that are higher than the target user ID. Cannot be used in conjunction with prev. */
412
- next?: string;
413
- /** Get users with IDs that are lower than the target user ID. Cannot be used in conjunction with next. */
414
- prev?: string;
415
- /** The field to sort by, with +/- prefix indicating sort order */
416
- sort?: "name" | "+name" | "-name";
417
- }, body: Filter, options?: ApiCallOptions) => Promise<FilterUsersHttpResponse>;
418
- type FilterUsersHttpResponse = {
419
- data: Users;
420
- headers: Headers;
421
- status: number;
422
- prev?: (options?: ApiCallOptions) => Promise<FilterUsersHttpResponse>;
423
- next?: (options?: ApiCallOptions) => Promise<FilterUsersHttpResponse>;
424
- };
425
- type FilterUsersHttpError = {
426
- data: Errors;
427
- headers: Headers;
428
- status: number;
429
- };
430
- /**
431
- * Invite one or more users by email address.
432
- *
433
- * @param body an object with the body content
434
- * @throws InviteUsersHttpError
435
- */
436
- declare const inviteUsers: (body: InviteRequestData, options?: ApiCallOptions) => Promise<InviteUsersHttpResponse>;
437
- type InviteUsersHttpResponse = {
438
- data: InviteDataResponse;
439
- headers: Headers;
440
- status: number;
441
- };
442
- type InviteUsersHttpError = {
443
- data: ErrorsResponse;
444
- headers: Headers;
445
- status: number;
446
- };
447
- /**
448
- * Redirects to retrieve the user resource associated with the JWT claims.
449
- *
450
- * @throws GetMyUserHttpError
451
- */
452
- declare const getMyUser: (options?: ApiCallOptions) => Promise<GetMyUserHttpResponse>;
453
- type GetMyUserHttpResponse = {
454
- data: User;
455
- headers: Headers;
456
- status: number;
457
- };
458
- type GetMyUserHttpError = {
459
- data: Errors;
460
- headers: Headers;
461
- status: number;
462
- };
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
- /**
482
- * Deletes the requested user.
483
- *
484
- * @param userId The ID of the user to delete.
485
- * @throws DeleteUserHttpError
486
- */
487
- declare const deleteUser: (userId: string, options?: ApiCallOptions) => Promise<DeleteUserHttpResponse>;
488
- type DeleteUserHttpResponse = {
489
- data: void;
490
- headers: Headers;
491
- status: number;
492
- };
493
- type DeleteUserHttpError = {
494
- data: Errors;
495
- headers: Headers;
496
- status: number;
497
- };
498
- /**
499
- * Returns the requested user.
500
- *
501
- * @param userId The user's unique identifier
502
- * @param query an object with query parameters
503
- * @throws GetUserHttpError
504
- */
505
- declare const getUser: (userId: string, query: {
506
- /** A comma-delimited string of the requested fields per entity. If the 'links' value is omitted, then the entity HATEOAS link will also be omitted. */
507
- fields?: string;
508
- }, options?: ApiCallOptions) => Promise<GetUserHttpResponse>;
509
- type GetUserHttpResponse = {
510
- data: User;
511
- headers: Headers;
512
- status: number;
513
- };
514
- type GetUserHttpError = {
515
- data: Errors;
516
- headers: Headers;
517
- status: number;
518
- };
519
- /**
520
- * Updates fields for a user resource
521
- *
522
- * @param userId The ID of the user to update.
523
- * @param body an object with the body content
524
- * @throws PatchUserHttpError
525
- */
526
- declare const patchUser: (userId: string, body: JSONPatchArray, options?: ApiCallOptions) => Promise<PatchUserHttpResponse>;
527
- type PatchUser204HttpResponse = {
528
- data: void;
529
- headers: Headers;
530
- status: 204;
531
- };
532
- type PatchUser207HttpResponse = {
533
- data: Errors;
534
- headers: Headers;
535
- status: 207;
536
- };
537
- type PatchUserHttpResponse = PatchUser204HttpResponse | PatchUser207HttpResponse;
538
- type PatchUserHttpError = {
539
- data: Errors;
540
- headers: Headers;
541
- status: number;
542
- };
543
- /**
544
- * Clears the cache for users api requests.
545
- */
546
- declare function clearCache(): void;
547
- interface UsersAPI {
548
- /**
549
- * Returns a list of users using cursor-based pagination.
550
- *
551
- * @param query an object with query parameters
552
- * @throws GetUsersHttpError
553
- */
554
- getUsers: typeof getUsers;
555
- /**
556
- * Creates an invited user.
557
- *
558
- * @param body an object with the body content
559
- * @throws CreateUserHttpError
560
- */
561
- createUser: typeof createUser;
562
- /**
563
- * Returns the number of users in a given tenant
564
- *
565
- * @param query an object with query parameters
566
- * @throws CountUsersHttpError
567
- */
568
- countUsers: typeof countUsers;
569
- /**
570
- * Retrieves a list of users matching the filter using an advanced query string.
571
- *
572
- * @param query an object with query parameters
573
- * @param body an object with the body content
574
- * @throws FilterUsersHttpError
575
- */
576
- filterUsers: typeof filterUsers;
577
- /**
578
- * Invite one or more users by email address.
579
- *
580
- * @param body an object with the body content
581
- * @throws InviteUsersHttpError
582
- */
583
- inviteUsers: typeof inviteUsers;
584
- /**
585
- * Redirects to retrieve the user resource associated with the JWT claims.
586
- *
587
- * @throws GetMyUserHttpError
588
- */
589
- 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
- /**
599
- * Deletes the requested user.
600
- *
601
- * @param userId The ID of the user to delete.
602
- * @throws DeleteUserHttpError
603
- */
604
- deleteUser: typeof deleteUser;
605
- /**
606
- * Returns the requested user.
607
- *
608
- * @param userId The user's unique identifier
609
- * @param query an object with query parameters
610
- * @throws GetUserHttpError
611
- */
612
- getUser: typeof getUser;
613
- /**
614
- * Updates fields for a user resource
615
- *
616
- * @param userId The ID of the user to update.
617
- * @param body an object with the body content
618
- * @throws PatchUserHttpError
619
- */
620
- patchUser: typeof patchUser;
621
- /**
622
- * Clears the cache for users api requests.
623
- */
624
- clearCache: typeof clearCache;
625
- }
626
- /**
627
- * Functions for the users api
628
- */
629
- declare const usersExport: UsersAPI;
630
-
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 };