@qlik/api 0.0.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 (160) hide show
  1. package/LICENSE +17 -0
  2. package/README.md +8 -0
  3. package/api-keys.d.mts +313 -0
  4. package/api-keys.d.ts +313 -0
  5. package/api-keys.js +76 -0
  6. package/api-keys.mjs +76 -0
  7. package/apps.d.mts +1921 -0
  8. package/apps.d.ts +1921 -0
  9. package/apps.js +331 -0
  10. package/apps.mjs +331 -0
  11. package/audits.d.mts +262 -0
  12. package/audits.d.ts +262 -0
  13. package/audits.js +63 -0
  14. package/audits.mjs +63 -0
  15. package/auth-CSVTXOZX.js +36 -0
  16. package/auth-TE272Q34.mjs +36 -0
  17. package/auth-types-nnUcWhuU.d.mts +98 -0
  18. package/auth-types-nnUcWhuU.d.ts +98 -0
  19. package/auth.d.mts +26 -0
  20. package/auth.d.ts +26 -0
  21. package/auth.js +13 -0
  22. package/auth.mjs +13 -0
  23. package/automations.d.mts +638 -0
  24. package/automations.d.ts +638 -0
  25. package/automations.js +166 -0
  26. package/automations.mjs +166 -0
  27. package/brands.d.mts +614 -0
  28. package/brands.d.ts +614 -0
  29. package/brands.js +118 -0
  30. package/brands.mjs +118 -0
  31. package/chunk-3YE7EI7I.mjs +17 -0
  32. package/chunk-4ES65KO3.js +57 -0
  33. package/chunk-4FLMND6T.js +25 -0
  34. package/chunk-4OMEH5SW.mjs +1337 -0
  35. package/chunk-CKPJE4IA.mjs +57 -0
  36. package/chunk-GUQBHY3H.mjs +25 -0
  37. package/chunk-OULT3V2U.js +17 -0
  38. package/chunk-WM7FQU2U.mjs +21 -0
  39. package/chunk-XASXL2NC.js +1337 -0
  40. package/chunk-ZT4C7KCQ.js +21 -0
  41. package/collections.d.mts +535 -0
  42. package/collections.d.ts +535 -0
  43. package/collections.js +100 -0
  44. package/collections.mjs +100 -0
  45. package/csp-origins.d.mts +258 -0
  46. package/csp-origins.d.ts +258 -0
  47. package/csp-origins.js +66 -0
  48. package/csp-origins.mjs +66 -0
  49. package/data-assets.d.mts +195 -0
  50. package/data-assets.d.ts +195 -0
  51. package/data-assets.js +61 -0
  52. package/data-assets.mjs +61 -0
  53. package/data-connections.d.mts +527 -0
  54. package/data-connections.d.ts +527 -0
  55. package/data-connections.js +96 -0
  56. package/data-connections.mjs +96 -0
  57. package/data-credentials.d.mts +188 -0
  58. package/data-credentials.d.ts +188 -0
  59. package/data-credentials.js +56 -0
  60. package/data-credentials.mjs +56 -0
  61. package/data-files.d.mts +471 -0
  62. package/data-files.d.ts +471 -0
  63. package/data-files.js +116 -0
  64. package/data-files.mjs +116 -0
  65. package/docs/examples.md +4 -0
  66. package/enigma-session-4L373ALV.mjs +10196 -0
  67. package/enigma-session-TEB53FAF.js +10196 -0
  68. package/esm-4X3DKK5D.js +63 -0
  69. package/esm-SOWVJKOQ.mjs +63 -0
  70. package/extensions.d.mts +257 -0
  71. package/extensions.d.ts +257 -0
  72. package/extensions.js +74 -0
  73. package/extensions.mjs +74 -0
  74. package/global.types-Eto4uYwy.d.mts +102 -0
  75. package/global.types-hIvp-WdX.d.ts +102 -0
  76. package/glossaries.d.mts +1041 -0
  77. package/glossaries.d.ts +1041 -0
  78. package/glossaries.js +225 -0
  79. package/glossaries.mjs +225 -0
  80. package/groups.d.mts +379 -0
  81. package/groups.d.ts +379 -0
  82. package/groups.js +83 -0
  83. package/groups.mjs +83 -0
  84. package/identity-providers.d.mts +492 -0
  85. package/identity-providers.d.ts +492 -0
  86. package/identity-providers.js +80 -0
  87. package/identity-providers.mjs +80 -0
  88. package/index.d.mts +142 -0
  89. package/index.d.ts +142 -0
  90. package/index.js +678 -0
  91. package/index.mjs +678 -0
  92. package/invoke-fetch-MSSJAZ7K.mjs +14 -0
  93. package/invoke-fetch-PEI54KZO.js +14 -0
  94. package/items.d.mts +501 -0
  95. package/items.d.ts +501 -0
  96. package/items.js +84 -0
  97. package/items.mjs +84 -0
  98. package/licenses.d.mts +436 -0
  99. package/licenses.d.ts +436 -0
  100. package/licenses.js +87 -0
  101. package/licenses.mjs +87 -0
  102. package/package.json +264 -0
  103. package/qix-EU7PXRZ6.mjs +573 -0
  104. package/qix-RLTISYTB.js +573 -0
  105. package/qix.d.mts +11543 -0
  106. package/qix.d.ts +11543 -0
  107. package/qix.js +9 -0
  108. package/qix.mjs +9 -0
  109. package/quotas.d.mts +105 -0
  110. package/quotas.d.ts +105 -0
  111. package/quotas.js +31 -0
  112. package/quotas.mjs +31 -0
  113. package/reload-tasks.d.mts +222 -0
  114. package/reload-tasks.d.ts +222 -0
  115. package/reload-tasks.js +59 -0
  116. package/reload-tasks.mjs +59 -0
  117. package/reloads.d.mts +189 -0
  118. package/reloads.d.ts +189 -0
  119. package/reloads.js +44 -0
  120. package/reloads.mjs +44 -0
  121. package/roles.d.mts +150 -0
  122. package/roles.d.ts +150 -0
  123. package/roles.js +30 -0
  124. package/roles.mjs +30 -0
  125. package/spaces.d.mts +524 -0
  126. package/spaces.d.ts +524 -0
  127. package/spaces.js +118 -0
  128. package/spaces.mjs +118 -0
  129. package/temp-contents.d.mts +222 -0
  130. package/temp-contents.d.ts +222 -0
  131. package/temp-contents.js +60 -0
  132. package/temp-contents.mjs +60 -0
  133. package/tenants.d.mts +276 -0
  134. package/tenants.d.ts +276 -0
  135. package/tenants.js +68 -0
  136. package/tenants.mjs +68 -0
  137. package/themes.d.mts +235 -0
  138. package/themes.d.ts +235 -0
  139. package/themes.js +74 -0
  140. package/themes.mjs +74 -0
  141. package/transports.d.mts +298 -0
  142. package/transports.d.ts +298 -0
  143. package/transports.js +62 -0
  144. package/transports.mjs +62 -0
  145. package/users.d.mts +544 -0
  146. package/users.d.ts +544 -0
  147. package/users.js +99 -0
  148. package/users.mjs +99 -0
  149. package/web-integrations.d.mts +246 -0
  150. package/web-integrations.d.ts +246 -0
  151. package/web-integrations.js +59 -0
  152. package/web-integrations.mjs +59 -0
  153. package/web-notifications.d.mts +220 -0
  154. package/web-notifications.d.ts +220 -0
  155. package/web-notifications.js +66 -0
  156. package/web-notifications.mjs +66 -0
  157. package/webhooks.d.mts +422 -0
  158. package/webhooks.d.ts +422 -0
  159. package/webhooks.js +100 -0
  160. package/webhooks.mjs +100 -0
package/transports.mjs ADDED
@@ -0,0 +1,62 @@
1
+ import {
2
+ clearApiCache,
3
+ invokeFetch
4
+ } from "./chunk-3YE7EI7I.mjs";
5
+ import "./chunk-WM7FQU2U.mjs";
6
+
7
+ // src/public/rest/transports.ts
8
+ var deleteEmailConfig = async (options) => invokeFetch("transports", {
9
+ method: "delete",
10
+ pathTemplate: "/api/v1/transports/email-config",
11
+ options
12
+ });
13
+ var getEmailConfig = async (options) => invokeFetch("transports", {
14
+ method: "get",
15
+ pathTemplate: "/api/v1/transports/email-config",
16
+ options
17
+ });
18
+ var patchEmailConfig = async (body, options) => invokeFetch("transports", {
19
+ method: "patch",
20
+ pathTemplate: "/api/v1/transports/email-config",
21
+ body,
22
+ options
23
+ });
24
+ var sendTestEmail = async (body, options) => invokeFetch("transports", {
25
+ method: "post",
26
+ pathTemplate: "/api/v1/transports/email-config/actions/send-test-email",
27
+ body,
28
+ options
29
+ });
30
+ var validateEmailConfig = async (options) => invokeFetch("transports", {
31
+ method: "post",
32
+ pathTemplate: "/api/v1/transports/email-config/actions/validate",
33
+ options
34
+ });
35
+ var verifyEmailConfigConnection = async (options) => invokeFetch("transports", {
36
+ method: "post",
37
+ pathTemplate: "/api/v1/transports/email-config/actions/verify-connection",
38
+ options
39
+ });
40
+ function clearCache() {
41
+ return clearApiCache("transports");
42
+ }
43
+ var transportsExport = {
44
+ deleteEmailConfig,
45
+ getEmailConfig,
46
+ patchEmailConfig,
47
+ sendTestEmail,
48
+ validateEmailConfig,
49
+ verifyEmailConfigConnection,
50
+ clearCache
51
+ };
52
+ var transports_default = transportsExport;
53
+ export {
54
+ clearCache,
55
+ transports_default as default,
56
+ deleteEmailConfig,
57
+ getEmailConfig,
58
+ patchEmailConfig,
59
+ sendTestEmail,
60
+ validateEmailConfig,
61
+ verifyEmailConfigConnection
62
+ };
package/users.d.mts ADDED
@@ -0,0 +1,544 @@
1
+ import { A as ApiCallOptions } from './global.types-Eto4uYwy.mjs';
2
+ import './auth-types-nnUcWhuU.mjs';
3
+
4
+ type AssignedGroups = {
5
+ /** An array of role references. */
6
+ assignedRoles?: AssignedRoles;
7
+ /** The unique group identitier */
8
+ id: string;
9
+ /** The group name */
10
+ readonly name: string;
11
+ }[];
12
+ type AssignedRoles = {
13
+ /** The unique role identitier */
14
+ id: string;
15
+ /** The role level */
16
+ readonly level: "admin" | "user";
17
+ /** The role name */
18
+ readonly name: string;
19
+ /** An array of permissions associated to a given role. */
20
+ readonly permissions: string[];
21
+ /** The type of role */
22
+ readonly type: "default";
23
+ }[];
24
+ type AssignedRolesRefIDs = {
25
+ /** The unique role identitier */
26
+ id: string;
27
+ }[];
28
+ type AssignedRolesRefNames = {
29
+ /** The name of the role */
30
+ name: string;
31
+ }[];
32
+ type Error = {
33
+ /** The error code. */
34
+ code: string;
35
+ /** A human-readable explanation specific to this occurrence of the problem. */
36
+ detail?: string;
37
+ /** Additional properties relating to the error. */
38
+ meta?: unknown;
39
+ /** References to the source of the error. */
40
+ source?: {
41
+ /** The URI query parameter that caused the error. */
42
+ parameter?: string;
43
+ /** A JSON Pointer to the property that caused the error. */
44
+ pointer?: string;
45
+ };
46
+ /** The HTTP status code. */
47
+ status?: number;
48
+ /** Summary of the problem. */
49
+ title: string;
50
+ };
51
+ type ErrorItem = {
52
+ /** Error code */
53
+ code: number;
54
+ /** A human-readable explanation specific to this occurrence of the problem (if applicable) */
55
+ detail?: string;
56
+ /** Summary of the problem */
57
+ title: string;
58
+ };
59
+ type Errors = {
60
+ /** An array of errors related to the operation. */
61
+ errors?: Error[];
62
+ /** A unique identifier for tracing the error. */
63
+ traceId?: string;
64
+ };
65
+ type ErrorsResponse = {
66
+ errors?: ErrorItem[];
67
+ };
68
+ type Filter = {
69
+ /** The advanced filtering to be applied the query. All conditional statements within this query parameter are case insensitive. */
70
+ filter?: string;
71
+ };
72
+ type InviteDataResponse = {
73
+ data?: (ResultItem | InviteErrorItem)[];
74
+ };
75
+ type InviteErrorItem = ErrorItem & {
76
+ /** Error code - | HTTP Status code | 1001 - Active User | 1002 - Disabled User | 1003 - Default External Dependency Error | */
77
+ code?: string;
78
+ /** Invitee email */
79
+ email: string;
80
+ /** Result status = "error" */
81
+ status: "error";
82
+ };
83
+ type InviteItem = {
84
+ /** Email address for this invitee. Example - "foo@qlik.com". */
85
+ email: string;
86
+ /** Optional ISO 639-1 2 letter code for invite language. Defaults to 'en' when missing or not found. */
87
+ language?: string;
88
+ /** Optional display name for this invitee. Example - "Elvis Presley". */
89
+ name?: string;
90
+ /** 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. */
91
+ resend?: boolean;
92
+ };
93
+ type InviteRequestData = {
94
+ /** List of invitees who should receive an invite email. */
95
+ invitees?: InviteItem[];
96
+ };
97
+ type JSONPatch = {
98
+ /** The operation to be performed. */
99
+ op: "replace" | "set (Deprecated)" | "unset (Deprecated)" | "add (Deprecated)" | "renew";
100
+ /** A JSON Pointer. */
101
+ path: "/name" | "/roles (Deprecated)" | "/assignedRoles" | "/inviteExpiry" | "/preferredZoneinfo" | "/preferredLocale" | "/status";
102
+ /** The value to be used for this operation. */
103
+ value: string | boolean | unknown[] | AssignedRolesRefIDs | AssignedRolesRefNames;
104
+ };
105
+ type JSONPatchArray = JSONPatch[];
106
+ type Metadata = {
107
+ /** List of system roles to which the user can be assigned. */
108
+ valid_roles?: string[];
109
+ };
110
+ type ResultItem = {
111
+ /** Email specified for this invitee */
112
+ email: string;
113
+ /** Result status = {"ok" (new user; email sent) | "exists" (existing user; no email sent)} */
114
+ status: "ok" | "exists";
115
+ /** IdP generated UUID for this invitee */
116
+ subject: string;
117
+ /** UserId for this invitee */
118
+ userId: string;
119
+ };
120
+ type User = {
121
+ /** An array of group references. */
122
+ assignedGroups?: AssignedGroups;
123
+ /** An array of role references. */
124
+ assignedRoles?: AssignedRoles;
125
+ /** Deprecated. Use `createdAt` instead. */
126
+ readonly created?: string;
127
+ /** The timestamp for when the user record was created. */
128
+ readonly createdAt?: string;
129
+ /** The email address for the user. */
130
+ email?: string;
131
+ /** The unique user identifier. */
132
+ readonly id: string;
133
+ /** The number of seconds until the user invitation will expire. */
134
+ readonly inviteExpiry?: number;
135
+ /** Deprecated. Use `lastUpdatedAt` instead. */
136
+ readonly lastUpdated?: string;
137
+ /** The timestamp for when the user record was last updated. */
138
+ readonly lastUpdatedAt?: string;
139
+ /** Pagination links to the user. */
140
+ readonly links?: {
141
+ /** A link to this user. */
142
+ self: {
143
+ /** URL that defines the resource. */
144
+ href: string;
145
+ };
146
+ };
147
+ /** Represents the end-user's language tag. */
148
+ locale?: string;
149
+ /** The name of the user. */
150
+ name: string;
151
+ /** A static url linking to the avatar of the user. */
152
+ picture?: string;
153
+ /** Represents the end-user's preferred language tag. */
154
+ preferredLocale?: string;
155
+ /** Represents the end-user's preferred time zone. */
156
+ preferredZoneinfo?: string;
157
+ /** List of system roles to which the user has been assigned. Only returned when permitted by access control. Deprecated. Use `assignedRoles` instead. */
158
+ roles?: ("TenantAdmin" | "Developer" | "AnalyticsAdmin" | "DataAdmin" | "DataSpaceCreator" | "ManagedSpaceCreator" | "SharedSpaceCreator")[];
159
+ /** The status of the user within the tenant. */
160
+ status?: "active" | "invited" | "disabled" | "deleted";
161
+ /** The unique user identitier from an identity provider. */
162
+ subject: string;
163
+ /** The tenant that the user belongs too. */
164
+ tenantId: string;
165
+ /** Represents the end-user's time zone. */
166
+ zoneinfo?: string;
167
+ };
168
+ type UserCount = {
169
+ /** The total number of users in the tenant. */
170
+ total: number;
171
+ };
172
+ type UserPostSchema = {
173
+ /** The roles to assign to the user. */
174
+ assignedRoles?: AssignedRolesRefIDs | AssignedRolesRefNames;
175
+ /** The email address for the user. This is a required field when inviting a user. */
176
+ email?: string;
177
+ /** The name of the user. */
178
+ name?: string;
179
+ /** A static url linking to the avatar of the user. */
180
+ picture?: string;
181
+ /** List of system roles to which the user has been assigned. Only returned when permitted by access control. */
182
+ roles?: ("TenantAdmin" | "Developer" | "AnalyticsAdmin" | "DataAdmin" | "DataSpaceCreator" | "ManagedSpaceCreator" | "SharedSpaceCreator")[];
183
+ /** The status of the created user within the tenant. */
184
+ status?: "invited";
185
+ /** The unique user identitier from an identity provider. */
186
+ subject: string;
187
+ /** The tenant that the user will belong too. */
188
+ tenantId?: string;
189
+ };
190
+ type Users = {
191
+ /** List of users. */
192
+ data?: User[];
193
+ /** Pagination links */
194
+ links?: {
195
+ /** Link information for next page */
196
+ next?: {
197
+ /** URL to the next page of records */
198
+ href: string;
199
+ };
200
+ /** Link information for previous page */
201
+ prev?: {
202
+ /** URL to the previous page of records */
203
+ href: string;
204
+ };
205
+ /** Link information for current page */
206
+ self: {
207
+ /** URL to the current page of records */
208
+ href: string;
209
+ };
210
+ };
211
+ };
212
+ /**
213
+ * Returns a list of users using cursor-based pagination.
214
+ * @param query an object with query parameters
215
+ * @throws GetUsersHttpError
216
+ */
217
+ declare const getUsers: (query: {
218
+ /** The email to filter by. Deprecated. Use the new `filter` parameter to provide an advanced query filter. */
219
+ email?: string;
220
+ /** Get users with IDs that are lower than the target user ID. Cannot be used in conjunction with startingAfter. Deprecated. Use `prev` instead. */
221
+ endingBefore?: string;
222
+ /** 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. */
223
+ fields?: string;
224
+ /** 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.
225
+ //
226
+ // The following fields support the `eq` operator: `id`, `subject`, `name`, `email`, `status`, `clientId`, `assignedRoles.id` `assignedRoles.name`, `assignedGroups.id`, `assignedGroupsAssignedRoles.name`
227
+ //
228
+ // Additionally, the following fields support the `co` operator: `name`, `email`, `subject`
229
+ //
230
+ // Queries may be rate limited if they differ greatly from these examples:
231
+ //
232
+ // ```
233
+ // (id eq "62716ab404a7bd8626af9bd6" or id eq "62716ac4c7e500e13ff5fa22") and (status eq "active" or status eq "disabled")
234
+ // ```
235
+ //
236
+ // ```
237
+ // name co "query" or email co "query" or subject co "query" or id eq "query" or assignedRoles.name eq "query"
238
+ // ```
239
+ //
240
+ // Any filters for status must be grouped together and applied to the whole query.
241
+ //
242
+ // Valid:
243
+ //
244
+ // ```
245
+ // (name eq "Bob" or name eq "Alice") and (status eq "active" or status eq "disabled")
246
+ // ```
247
+ //
248
+ // Invalid:
249
+ //
250
+ // ```
251
+ // name eq "Bob" or name eq "Alice" and (status eq "active" or status eq "disabled")
252
+ // ```
253
+ // */
254
+ filter?: string;
255
+ /** The number of user entries to retrieve. */
256
+ limit?: number;
257
+ /** Get users that come after this cursor value when sorted. Cannot be used in conjunction with `prev`. */
258
+ next?: string;
259
+ /** Get users that come before this cursor value when sorted. Cannot be used in conjunction with `next`. */
260
+ prev?: string;
261
+ /** The role to filter by. Deprecated. */
262
+ role?: string;
263
+ /** The field to sort by, with +/- prefix indicating sort order */
264
+ sort?: "name" | "+name" | "-name";
265
+ /** The user parameter to sort by. Deprecated. Use `sort` instead. */
266
+ sortBy?: "name";
267
+ /** The sort order, either ascending or descending. Deprecated. Use `sort` instead. */
268
+ sortOrder?: "asc" | "desc";
269
+ /** Get users with IDs that are higher than the target user ID. Cannot be used in conjunction with endingBefore. Deprecated. Use `next` instead. */
270
+ startingAfter?: string;
271
+ /** The status to filter by. Supports multiple values delimited by commas. Deprecated. Use the new `filter` parameter to provide an advanced query filter. */
272
+ status?: "active" | "invited" | "disabled" | "deleted";
273
+ /** The subject to filter by. Deprecated. Use the new `filter` parameter to provide an advanced query filter. */
274
+ subject?: string;
275
+ /** The tenant ID to filter by. Deprecated. */
276
+ tenantId?: string;
277
+ /** 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. */
278
+ totalResults?: boolean;
279
+ }, options?: ApiCallOptions) => Promise<GetUsersHttpResponse>;
280
+ type GetUsersHttpResponse = {
281
+ data: Users;
282
+ headers: Headers;
283
+ status: number;
284
+ prev?: (options?: ApiCallOptions) => Promise<GetUsersHttpResponse>;
285
+ next?: (options?: ApiCallOptions) => Promise<GetUsersHttpResponse>;
286
+ };
287
+ type GetUsersHttpError = {
288
+ data: Errors;
289
+ headers: Headers;
290
+ status: number;
291
+ };
292
+ /**
293
+ * Creates an invited user.
294
+ * @param body an object with the body content
295
+ * @throws CreateUserHttpError
296
+ */
297
+ declare const createUser: (body: UserPostSchema, options?: ApiCallOptions) => Promise<CreateUserHttpResponse>;
298
+ type CreateUserHttpResponse = {
299
+ data: User;
300
+ headers: Headers;
301
+ status: number;
302
+ };
303
+ type CreateUserHttpError = {
304
+ data: Errors;
305
+ headers: Headers;
306
+ status: number;
307
+ };
308
+ /**
309
+ * Returns the number of users in a given tenant
310
+ * @param query an object with query parameters
311
+ * @throws CountUsersHttpError
312
+ */
313
+ declare const countUsers: (query: {
314
+ /** The tenant ID to filter by. */
315
+ tenantId?: string;
316
+ }, options?: ApiCallOptions) => Promise<CountUsersHttpResponse>;
317
+ type CountUsersHttpResponse = {
318
+ data: UserCount;
319
+ headers: Headers;
320
+ status: number;
321
+ };
322
+ type CountUsersHttpError = {
323
+ data: Errors;
324
+ headers: Headers;
325
+ status: number;
326
+ };
327
+ /**
328
+ * Retrieves a list of users matching the filter using an advanced query string.
329
+ * @param query an object with query parameters
330
+ * @param body an object with the body content
331
+ * @throws FilterUsersHttpError
332
+ */
333
+ declare const filterUsers: (query: {
334
+ /** 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. */
335
+ fields?: string;
336
+ /** The number of user entries to retrieve. */
337
+ limit?: number;
338
+ /** Get users with IDs that are higher than the target user ID. Cannot be used in conjunction with prev. */
339
+ next?: string;
340
+ /** Get users with IDs that are lower than the target user ID. Cannot be used in conjunction with next. */
341
+ prev?: string;
342
+ /** The field to sort by, with +/- prefix indicating sort order */
343
+ sort?: "name" | "+name" | "-name";
344
+ }, body: Filter, options?: ApiCallOptions) => Promise<FilterUsersHttpResponse>;
345
+ type FilterUsersHttpResponse = {
346
+ data: Users;
347
+ headers: Headers;
348
+ status: number;
349
+ prev?: (options?: ApiCallOptions) => Promise<FilterUsersHttpResponse>;
350
+ next?: (options?: ApiCallOptions) => Promise<FilterUsersHttpResponse>;
351
+ };
352
+ type FilterUsersHttpError = {
353
+ data: Errors;
354
+ headers: Headers;
355
+ status: number;
356
+ };
357
+ /**
358
+ * Invite one or more users by email address.
359
+ * @param body an object with the body content
360
+ * @throws InviteUsersHttpError
361
+ */
362
+ declare const inviteUsers: (body: InviteRequestData, options?: ApiCallOptions) => Promise<InviteUsersHttpResponse>;
363
+ type InviteUsersHttpResponse = {
364
+ data: InviteDataResponse;
365
+ headers: Headers;
366
+ status: number;
367
+ };
368
+ type InviteUsersHttpError = {
369
+ data: ErrorsResponse;
370
+ headers: Headers;
371
+ status: number;
372
+ };
373
+ /**
374
+ * Redirects to retrieve the user resource associated with the JWT claims.
375
+ * @throws GetMyUserHttpError
376
+ */
377
+ declare const getMyUser: (options?: ApiCallOptions) => Promise<GetMyUserHttpResponse>;
378
+ type GetMyUserHttpResponse = {
379
+ data: void;
380
+ headers: Headers;
381
+ status: number;
382
+ };
383
+ type GetMyUser301HttpError = {
384
+ data: void;
385
+ headers: Headers;
386
+ status: 301;
387
+ };
388
+ type GetMyUser429HttpError = {
389
+ data: Errors;
390
+ headers: Headers;
391
+ status: 429;
392
+ };
393
+ type GetMyUserHttpError = GetMyUser301HttpError | GetMyUser429HttpError;
394
+ /**
395
+ * Returns the metadata with regard to the user configuration. Deprecated, use GET /v1/roles instead.
396
+ * @throws GetUsersMetadataHttpError
397
+ */
398
+ declare const getUsersMetadata: (options?: ApiCallOptions) => Promise<GetUsersMetadataHttpResponse>;
399
+ type GetUsersMetadataHttpResponse = {
400
+ data: Metadata;
401
+ headers: Headers;
402
+ status: number;
403
+ };
404
+ type GetUsersMetadataHttpError = {
405
+ data: Errors;
406
+ headers: Headers;
407
+ status: number;
408
+ };
409
+ /**
410
+ * Deletes the requested user.
411
+ * @param userId The ID of the user to delete.
412
+ * @throws DeleteUserHttpError
413
+ */
414
+ declare const deleteUser: (userId: string, options?: ApiCallOptions) => Promise<DeleteUserHttpResponse>;
415
+ type DeleteUserHttpResponse = {
416
+ data: void;
417
+ headers: Headers;
418
+ status: number;
419
+ };
420
+ type DeleteUserHttpError = {
421
+ data: Errors;
422
+ headers: Headers;
423
+ status: number;
424
+ };
425
+ /**
426
+ * Returns the requested user.
427
+ * @param userId The user's unique identifier
428
+ * @param query an object with query parameters
429
+ * @throws GetUserHttpError
430
+ */
431
+ declare const getUser: (userId: string, query: {
432
+ /** 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. */
433
+ fields?: string;
434
+ }, options?: ApiCallOptions) => Promise<GetUserHttpResponse>;
435
+ type GetUserHttpResponse = {
436
+ data: User;
437
+ headers: Headers;
438
+ status: number;
439
+ };
440
+ type GetUserHttpError = {
441
+ data: Errors;
442
+ headers: Headers;
443
+ status: number;
444
+ };
445
+ /**
446
+ * Updates fields for a user resource
447
+ * @param userId The ID of the user to update.
448
+ * @param body an object with the body content
449
+ * @throws PatchUserHttpError
450
+ */
451
+ declare const patchUser: (userId: string, body: JSONPatchArray, options?: ApiCallOptions) => Promise<PatchUserHttpResponse>;
452
+ type PatchUser204HttpResponse = {
453
+ data: void;
454
+ headers: Headers;
455
+ status: 204;
456
+ };
457
+ type PatchUser207HttpResponse = {
458
+ data: Errors;
459
+ headers: Headers;
460
+ status: 207;
461
+ };
462
+ type PatchUserHttpResponse = PatchUser204HttpResponse | PatchUser207HttpResponse;
463
+ type PatchUserHttpError = {
464
+ data: Errors;
465
+ headers: Headers;
466
+ status: number;
467
+ };
468
+ /**
469
+ * Clears the cache for users api requests.
470
+ */
471
+ declare function clearCache(): void;
472
+ interface UsersAPI {
473
+ /**
474
+ * Returns a list of users using cursor-based pagination.
475
+ * @param query an object with query parameters
476
+ * @throws GetUsersHttpError
477
+ */
478
+ getUsers: typeof getUsers;
479
+ /**
480
+ * Creates an invited user.
481
+ * @param body an object with the body content
482
+ * @throws CreateUserHttpError
483
+ */
484
+ createUser: typeof createUser;
485
+ /**
486
+ * Returns the number of users in a given tenant
487
+ * @param query an object with query parameters
488
+ * @throws CountUsersHttpError
489
+ */
490
+ countUsers: typeof countUsers;
491
+ /**
492
+ * Retrieves a list of users matching the filter using an advanced query string.
493
+ * @param query an object with query parameters
494
+ * @param body an object with the body content
495
+ * @throws FilterUsersHttpError
496
+ */
497
+ filterUsers: typeof filterUsers;
498
+ /**
499
+ * Invite one or more users by email address.
500
+ * @param body an object with the body content
501
+ * @throws InviteUsersHttpError
502
+ */
503
+ inviteUsers: typeof inviteUsers;
504
+ /**
505
+ * Redirects to retrieve the user resource associated with the JWT claims.
506
+ * @throws GetMyUserHttpError
507
+ */
508
+ getMyUser: typeof getMyUser;
509
+ /**
510
+ * Returns the metadata with regard to the user configuration. Deprecated, use GET /v1/roles instead.
511
+ * @throws GetUsersMetadataHttpError
512
+ */
513
+ getUsersMetadata: typeof getUsersMetadata;
514
+ /**
515
+ * Deletes the requested user.
516
+ * @param userId The ID of the user to delete.
517
+ * @throws DeleteUserHttpError
518
+ */
519
+ deleteUser: typeof deleteUser;
520
+ /**
521
+ * Returns the requested user.
522
+ * @param userId The user's unique identifier
523
+ * @param query an object with query parameters
524
+ * @throws GetUserHttpError
525
+ */
526
+ getUser: typeof getUser;
527
+ /**
528
+ * Updates fields for a user resource
529
+ * @param userId The ID of the user to update.
530
+ * @param body an object with the body content
531
+ * @throws PatchUserHttpError
532
+ */
533
+ patchUser: typeof patchUser;
534
+ /**
535
+ * Clears the cache for users api requests.
536
+ */
537
+ clearCache: typeof clearCache;
538
+ }
539
+ /**
540
+ * Functions for the users api
541
+ */
542
+ declare const usersExport: UsersAPI;
543
+
544
+ export { type AssignedGroups, type AssignedRoles, type AssignedRolesRefIDs, type AssignedRolesRefNames, 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 GetMyUser301HttpError, type GetMyUser429HttpError, 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 };