@qlik/api 2.2.0 → 2.3.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 (231) hide show
  1. package/analytics/change-stores.d.ts +386 -0
  2. package/analytics/change-stores.js +123 -0
  3. package/analytics.d.ts +14 -0
  4. package/analytics.js +13 -0
  5. package/api-keys.d.ts +362 -3
  6. package/api-keys.js +2 -3
  7. package/apps.d.ts +2673 -3
  8. package/apps.js +2 -3
  9. package/assistants.d.ts +1370 -3
  10. package/assistants.js +2 -3
  11. package/audits.d.ts +318 -3
  12. package/audits.js +4 -4
  13. package/auth-types.d.ts +1 -1
  14. package/auth-types.js +1 -2
  15. package/auth.d.ts +94 -2
  16. package/auth.js +63 -3
  17. package/automation-connections.d.ts +366 -3
  18. package/automation-connections.js +2 -3
  19. package/automation-connectors.d.ts +84 -3
  20. package/automation-connectors.js +2 -3
  21. package/automations.d.ts +805 -3
  22. package/automations.js +2 -3
  23. package/automl-deployments.d.ts +101 -3
  24. package/automl-deployments.js +2 -3
  25. package/automl-predictions.d.ts +238 -3
  26. package/automl-predictions.js +2 -3
  27. package/banners.d.ts +184 -3
  28. package/banners.js +2 -3
  29. package/brands.d.ts +670 -3
  30. package/brands.js +2 -3
  31. package/chunks/{auth-Cle0_tmz.js → auth-BowS4SUR.js} +1 -5
  32. package/chunks/{chunk-EtTptKIv.js → chunk-D3vHIbds.js} +2 -2
  33. package/chunks/{dist-gXLIqDJW.js → dist-n3iOVn1W.js} +4 -4
  34. package/chunks/{auth-functions-BmZgZYSs.js → interceptors-DipDBQQ5.js} +258 -54
  35. package/chunks/{invoke-fetch-PcVIxLW4.js → invoke-fetch-B7lGscuQ.js} +3 -3
  36. package/chunks/{invoke-fetch-CucBpA1C.js → invoke-fetch-DhdyFZ0F.js} +1 -5
  37. package/chunks/{public-runtime-modules-Dwjzb3l8.js → public-runtime-modules-QhLPeQr5.js} +7 -7
  38. package/chunks/{qix-DI5o5XF4.d.ts → qix-CrqXv44x.d.ts} +6 -2
  39. package/chunks/{qix-DjxuPCX0.js → qix-RCUslia8.js} +11 -10
  40. package/chunks/{qix-chunk-entrypoint-tmTo-kpa.js → qix-chunk-entrypoint-WAS4NVTf.js} +48 -50
  41. package/collections.d.ts +582 -3
  42. package/collections.js +2 -3
  43. package/conditions.d.ts +662 -3
  44. package/conditions.js +2 -3
  45. package/consumption.d.ts +182 -3
  46. package/consumption.js +2 -3
  47. package/core/ip-policies.d.ts +328 -4
  48. package/core/ip-policies.js +108 -5
  49. package/core.d.ts +13 -4
  50. package/core.js +3 -4
  51. package/csp-origins.d.ts +273 -3
  52. package/csp-origins.js +2 -3
  53. package/csrf-token.d.ts +62 -3
  54. package/csrf-token.js +2 -3
  55. package/data-alerts.d.ts +1004 -3
  56. package/data-alerts.js +2 -3
  57. package/data-assets.d.ts +207 -3
  58. package/data-assets.js +2 -3
  59. package/data-connections.d.ts +678 -3
  60. package/data-connections.js +2 -3
  61. package/data-credentials.d.ts +292 -3
  62. package/data-credentials.js +2 -3
  63. package/data-files.d.ts +860 -3
  64. package/data-files.js +2 -3
  65. package/data-qualities.d.ts +175 -3
  66. package/data-qualities.js +2 -3
  67. package/data-sets.d.ts +424 -3
  68. package/data-sets.js +2 -3
  69. package/data-sources.d.ts +348 -3
  70. package/data-sources.js +2 -3
  71. package/data-stores.d.ts +537 -3
  72. package/data-stores.js +2 -3
  73. package/dcaas.d.ts +192 -3
  74. package/dcaas.js +2 -3
  75. package/di-projects.d.ts +812 -4
  76. package/di-projects.js +25 -4
  77. package/direct-access-agents.d.ts +710 -4
  78. package/direct-access-agents.js +37 -5
  79. package/docs/authentication.md +1 -1
  80. package/encryption.d.ts +372 -3
  81. package/encryption.js +2 -3
  82. package/extensions.d.ts +295 -3
  83. package/extensions.js +2 -3
  84. package/global-types.d.ts +1 -1
  85. package/global-types.js +0 -2
  86. package/glossaries.d.ts +1223 -3
  87. package/glossaries.js +2 -3
  88. package/groups.d.ts +510 -3
  89. package/groups.js +2 -3
  90. package/identity-providers.d.ts +711 -3
  91. package/identity-providers.js +2 -3
  92. package/index.d.ts +78 -69
  93. package/index.js +28 -10
  94. package/interceptors.d.ts +52 -3
  95. package/interceptors.js +1 -2
  96. package/invoke-fetch-types.d.ts +1 -1
  97. package/items.d.ts +536 -3
  98. package/items.js +2 -3
  99. package/knowledgebases.d.ts +976 -3
  100. package/knowledgebases.js +2 -3
  101. package/licenses.d.ts +663 -3
  102. package/licenses.js +2 -3
  103. package/lineage-graphs.d.ts +704 -3
  104. package/lineage-graphs.js +2 -3
  105. package/ml.d.ts +2808 -3
  106. package/ml.js +2 -3
  107. package/notes.d.ts +110 -3
  108. package/notes.js +2 -3
  109. package/notifications.d.ts +98 -3
  110. package/notifications.js +2 -3
  111. package/oauth-callback.iife.js +1151 -0
  112. package/oauth-clients.d.ts +562 -3
  113. package/oauth-clients.js +2 -3
  114. package/oauth-tokens.d.ts +126 -3
  115. package/oauth-tokens.js +2 -3
  116. package/package.json +6 -4
  117. package/qix.d.ts +3 -3
  118. package/qix.js +38 -3
  119. package/questions.d.ts +364 -3
  120. package/questions.js +2 -3
  121. package/quotas.d.ts +112 -3
  122. package/quotas.js +2 -3
  123. package/reload-tasks.d.ts +249 -3
  124. package/reload-tasks.js +2 -3
  125. package/reloads.d.ts +260 -3
  126. package/reloads.js +2 -3
  127. package/report-templates.d.ts +287 -3
  128. package/report-templates.js +2 -3
  129. package/reports.d.ts +863 -3
  130. package/reports.js +2 -3
  131. package/roles.d.ts +312 -3
  132. package/roles.js +2 -3
  133. package/sharing-tasks.d.ts +1164 -3
  134. package/sharing-tasks.js +2 -3
  135. package/spaces.d.ts +779 -3
  136. package/spaces.js +2 -3
  137. package/tasks.d.ts +564 -3
  138. package/tasks.js +2 -3
  139. package/temp-contents.d.ts +167 -3
  140. package/temp-contents.js +2 -3
  141. package/tenants.d.ts +360 -3
  142. package/tenants.js +2 -3
  143. package/themes.d.ts +270 -3
  144. package/themes.js +2 -3
  145. package/transports.d.ts +435 -4
  146. package/transports.js +20 -5
  147. package/ui-config.d.ts +274 -3
  148. package/ui-config.js +2 -3
  149. package/users.d.ts +674 -3
  150. package/users.js +2 -3
  151. package/web-integrations.d.ts +294 -3
  152. package/web-integrations.js +2 -3
  153. package/web-notifications.d.ts +273 -3
  154. package/web-notifications.js +2 -3
  155. package/webhooks.d.ts +505 -3
  156. package/webhooks.js +2 -3
  157. package/chunks/api-keys-D6Rqaov4.d.ts +0 -365
  158. package/chunks/apps-BwpXUGDb.d.ts +0 -2673
  159. package/chunks/assistants-wh6Qe7l6.d.ts +0 -1366
  160. package/chunks/audits-DakwzT97.d.ts +0 -316
  161. package/chunks/auth-6mptVm5Q.d.ts +0 -95
  162. package/chunks/auth-D11iO7ZV.js +0 -65
  163. package/chunks/automation-connections-k2G_n9rj.d.ts +0 -366
  164. package/chunks/automation-connectors-J5OE-1P0.d.ts +0 -84
  165. package/chunks/automations-BGy83EBO.d.ts +0 -797
  166. package/chunks/automl-deployments-CWEpX2pk.d.ts +0 -101
  167. package/chunks/automl-predictions-BNIjRhBm.d.ts +0 -238
  168. package/chunks/banners-CgBRnZGv.d.ts +0 -184
  169. package/chunks/brands-DCgk6Gqx.d.ts +0 -671
  170. package/chunks/collections-BpYjcpIY.d.ts +0 -582
  171. package/chunks/conditions-CJJG7Uph.d.ts +0 -662
  172. package/chunks/consumption-DerFk437.d.ts +0 -182
  173. package/chunks/core-DQXNZdnf.d.ts +0 -12
  174. package/chunks/csp-origins-3NJlh_n9.d.ts +0 -273
  175. package/chunks/csrf-token-DoaoOQzH.d.ts +0 -63
  176. package/chunks/data-alerts-CILSEFbQ.d.ts +0 -1004
  177. package/chunks/data-assets-CJDcssoX.d.ts +0 -207
  178. package/chunks/data-connections-VSB13K6g.d.ts +0 -678
  179. package/chunks/data-credentials-ChEp_hyU.d.ts +0 -292
  180. package/chunks/data-files-CVzn9M6V.d.ts +0 -860
  181. package/chunks/data-qualities-DBrot957.d.ts +0 -176
  182. package/chunks/data-sets-CFzxgWnO.d.ts +0 -424
  183. package/chunks/data-sources-IsAaof_C.d.ts +0 -346
  184. package/chunks/data-stores-DFOPdgfz.d.ts +0 -537
  185. package/chunks/dcaas-qyv7YlrN.d.ts +0 -192
  186. package/chunks/di-projects-DVQTxASr.d.ts +0 -777
  187. package/chunks/direct-access-agents-B77OhzZi.d.ts +0 -580
  188. package/chunks/encryption-BjA6xbCO.d.ts +0 -372
  189. package/chunks/extensions-OO0WtInj.d.ts +0 -294
  190. package/chunks/glossaries-CIX7-KT_.d.ts +0 -1213
  191. package/chunks/groups-C86-UG7S.d.ts +0 -511
  192. package/chunks/identity-providers-h0dKNxGZ.d.ts +0 -711
  193. package/chunks/interceptors-Csx2tEi5.d.ts +0 -52
  194. package/chunks/interceptors-DTYm37AU.js +0 -104
  195. package/chunks/ip-policies-CKRIlbP7.d.ts +0 -327
  196. package/chunks/ip-policies-DXlf172B.js +0 -108
  197. package/chunks/items-C-jzqvFW.d.ts +0 -536
  198. package/chunks/knowledgebases-CyQtVcZN.d.ts +0 -977
  199. package/chunks/licenses-xzjnkitW.d.ts +0 -663
  200. package/chunks/lineage-graphs-CViCCzKy.d.ts +0 -697
  201. package/chunks/ml-Abt2MUva.d.ts +0 -2809
  202. package/chunks/notes-BZxuyDgt.d.ts +0 -111
  203. package/chunks/notifications-Bd_gp4jU.d.ts +0 -99
  204. package/chunks/oauth-clients-B5QPr4IM.d.ts +0 -563
  205. package/chunks/oauth-tokens-1b7V8182.d.ts +0 -127
  206. package/chunks/qix-CYQsLyGQ.js +0 -40
  207. package/chunks/questions-BVp0tvNs.d.ts +0 -364
  208. package/chunks/quotas-CfAebRJd.d.ts +0 -113
  209. package/chunks/reload-tasks-DfwUTetn.d.ts +0 -249
  210. package/chunks/reloads-CwmagnFx.d.ts +0 -260
  211. package/chunks/report-templates-DjQYj5dn.d.ts +0 -287
  212. package/chunks/reports-DzNC6Uq3.d.ts +0 -861
  213. package/chunks/roles-BYFIY6E7.d.ts +0 -312
  214. package/chunks/sharing-tasks-BMGIQ-FO.d.ts +0 -1164
  215. package/chunks/spaces-BK823t-b.d.ts +0 -780
  216. package/chunks/tasks-COKDfShO.d.ts +0 -564
  217. package/chunks/temp-contents-zDomB-g6.d.ts +0 -168
  218. package/chunks/tenants-Bhn86519.d.ts +0 -361
  219. package/chunks/themes-v9NbhiBo.d.ts +0 -269
  220. package/chunks/transports-CqEiFxD3.d.ts +0 -362
  221. package/chunks/ui-config-Crs0mVMp.d.ts +0 -274
  222. package/chunks/users-BSOBU_fg.d.ts +0 -675
  223. package/chunks/web-integrations-MisPAHod.d.ts +0 -295
  224. package/chunks/web-notifications-DVy6FHYh.d.ts +0 -274
  225. package/chunks/webhooks-Dr4EiXqy.d.ts +0 -505
  226. /package/chunks/{auth-types-E99tzdN0.d.ts → auth-types-YrlH_R9f.d.ts} +0 -0
  227. /package/chunks/{auth-types-JehqruDP.js → auth-types-h43TVDpB.js} +0 -0
  228. /package/chunks/{global-types-CrOvI33z.js → global-types-CEVAJebk.js} +0 -0
  229. /package/chunks/{invoke-fetch-CbU2Dgqr.d.ts → invoke-fetch-C1Z0RJYU.d.ts} +0 -0
  230. /package/chunks/{utils-BnC4lrlq.js → utils-vv-xFm06.js} +0 -0
  231. /package/chunks/{websocket-errors-DSbO6kDZ.js → websocket-errors-CRTDTtBL.js} +0 -0
@@ -1,675 +0,0 @@
1
- import { y as ApiCallOptions } from "./auth-types-E99tzdN0.js";
2
-
3
- //#region src/public/rest/users.d.ts
4
-
5
- /**
6
- * An array of group references.
7
- */
8
- type AssignedGroups = {
9
- /** An array of role references. Visibility dependant on access level. Must have access to roles to view other users' assigned roles. */
10
- assignedRoles?: AssignedRoles;
11
- /** The unique group identitier */
12
- id: string;
13
- /** The group name */
14
- readonly name: string;
15
- /** The provider type of the group */
16
- providerType?: "idp" | "custom";
17
- }[];
18
- /**
19
- * An array of group reference names and provider type.
20
- * @example
21
- * [
22
- * {
23
- * name: "Developers",
24
- * providerType: "custom"
25
- * }
26
- * ]
27
- */
28
- type AssignedGroupsRefNames = {
29
- /** The name of the group */
30
- name: string;
31
- /** The type of provider for the group. */
32
- providerType: "idp" | "custom";
33
- }[];
34
- /**
35
- * An array of role references. Visibility dependant on access level. Must have access to roles to view other users' assigned roles.
36
- */
37
- type AssignedRoles = {
38
- /** The unique role identitier */
39
- id: string;
40
- /** The role level */
41
- readonly level: "admin" | "user";
42
- /** The role name */
43
- readonly name: string;
44
- /** The type of role */
45
- readonly type: "default" | "custom";
46
- }[];
47
- /**
48
- * An array of scopes assigned to a user
49
- */
50
- type AssignedScopes = string[];
51
- /**
52
- * An error object describing the error.
53
- */
54
- type Error = {
55
- /** The error code. */
56
- code: string;
57
- /** A human-readable explanation specific to this occurrence of the problem. */
58
- detail?: string;
59
- /** Additional properties relating to the error. */
60
- meta?: unknown;
61
- /** References to the source of the error. */
62
- source?: {
63
- /** The URI query parameter that caused the error. */
64
- parameter?: string;
65
- /** A JSON Pointer to the property that caused the error. */
66
- pointer?: string;
67
- };
68
- /** The HTTP status code. */
69
- status?: number;
70
- /** Summary of the problem. */
71
- title: string;
72
- };
73
- /**
74
- * Error object.
75
- */
76
- type ErrorItem = {
77
- /** Error code */
78
- code: number;
79
- /** A human-readable explanation specific to this occurrence of the problem (if applicable) */
80
- detail?: string;
81
- /** Summary of the problem */
82
- title: string;
83
- };
84
- /**
85
- * The error response object describing the error from the handling of an HTTP request.
86
- * @example
87
- * {
88
- * errors: [
89
- * {
90
- * code: "USERS-7",
91
- * status: 404,
92
- * title: "Not found"
93
- * }
94
- * ],
95
- * traceId: "000000000000000079cf1ebeae103de1"
96
- * }
97
- */
98
- type Errors = {
99
- /** An array of errors related to the operation. */
100
- errors?: Error[];
101
- /** A unique identifier for tracing the error. */
102
- traceId?: string;
103
- };
104
- type ErrorsResponse = {
105
- errors?: ErrorItem[];
106
- };
107
- /**
108
- * An advanced query filter to be used for complex user querying in the tenant.
109
- */
110
- type Filter = {
111
- /** The advanced filtering to be applied the query. All conditional statements within this query parameter are case insensitive. */
112
- filter?: string;
113
- };
114
- /**
115
- * Data list - ResultItem or ErrorItem for each InviteeItem.
116
- */
117
- type InviteDataResponse = {
118
- data?: (ResultItem | InviteErrorItem)[];
119
- };
120
- /**
121
- * Error object.
122
- */
123
- type InviteErrorItem = ErrorItem & {
124
- /** Error code - | HTTP Status code | 1001 - Active User | 1002 - Disabled User | 1003 - Default External Dependency Error | */
125
- code?: string;
126
- /** Invitee email */
127
- email: string;
128
- /** Result status = "error" */
129
- status: "error";
130
- };
131
- type InviteItem = {
132
- /** Email address for this invitee. Example - "foo@qlik.com". */
133
- email: string;
134
- /** Optional ISO 639-1 2 letter code for invite language. Defaults to 'en' when missing or not found. */
135
- language?: string;
136
- /** Optional display name for this invitee. Example - "Elvis Presley". */
137
- name?: string;
138
- /** 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. */
139
- resend?: boolean;
140
- };
141
- type InviteRequestData = {
142
- /** List of invitees who should receive an invite email. */
143
- invitees?: InviteItem[];
144
- };
145
- /**
146
- * A JSON Patch document as defined in http://tools.ietf.org/html/rfc6902.
147
- */
148
- type JSONPatch = {
149
- /** The operation to be performed. The fields `set` and `unset` are deprecated. */
150
- op: "replace" | "set" | "unset" | "add" | "renew" | "remove-value";
151
- /** A JSON Pointer. The field `roles` is deprecated. */
152
- path: "/name" | "/roles" | "/assignedRoles" | "/inviteExpiry" | "/preferredZoneinfo" | "/preferredLocale" | "/status" | "/assignedGroups";
153
- /** The value to be used for this operation. */
154
- value: string | boolean | unknown[] | RefIDs | RefNames | AssignedGroupsRefNames;
155
- };
156
- /**
157
- * An array of JSON Patch documents
158
- * @example
159
- * [
160
- * {
161
- * op: "replace",
162
- * path: "/name",
163
- * value: "John"
164
- * },
165
- * {
166
- * op: "replace",
167
- * path: "/assignedRoles",
168
- * value: [
169
- * {
170
- * "name": "Developer"
171
- * }
172
- * ]
173
- * },
174
- * {
175
- * op: "replace",
176
- * value: "unicorn@corp.example"
177
- * },
178
- * {
179
- * op: "replace",
180
- * value: "America/Halifax"
181
- * },
182
- * {
183
- * op: "replace",
184
- * path: "/preferredLocale",
185
- * value: "en_US_POSIX"
186
- * },
187
- * {
188
- * op: "replace",
189
- * path: "/status",
190
- * value: "active"
191
- * },
192
- * {
193
- * op: "add"
194
- * },
195
- * {
196
- * op: "remove-value",
197
- * path: "/assignedRoles"
198
- * }
199
- * ]
200
- */
201
- type JSONPatchArray = JSONPatch[];
202
- /**
203
- * An array of entity reference identifiers (e.g. roles, groups).
204
- * @example
205
- * [
206
- * {
207
- * id: "507f191e810c19729de860ea"
208
- * }
209
- * ]
210
- */
211
- type RefIDs = {
212
- /** The unique identitier */
213
- id: string;
214
- }[];
215
- /**
216
- * An array of reference names (e.g. roles).
217
- * @example
218
- * [
219
- * {
220
- * name: "TenantAdmin"
221
- * }
222
- * ]
223
- */
224
- type RefNames = {
225
- /** The name of the entity */
226
- name: string;
227
- }[];
228
- /**
229
- * Invitee result item
230
- */
231
- type ResultItem = {
232
- /** Email specified for this invitee */
233
- email: string;
234
- /** Result status = {"ok" (new user; email sent) | "exists" (existing user; no email sent)} */
235
- status: "ok" | "exists";
236
- /** IdP generated UUID for this invitee */
237
- subject: string;
238
- /** UserId for this invitee */
239
- userId: string;
240
- };
241
- /**
242
- * A user object.
243
- */
244
- type User = {
245
- /** An array of group references. */
246
- assignedGroups?: AssignedGroups;
247
- /** An array of role references. Visibility dependant on access level. Must have access to roles to view other users' assigned roles. */
248
- assignedRoles?: AssignedRoles;
249
- /** An array of scopes assigned to a user */
250
- readonly assignedScopes?: AssignedScopes;
251
- /** The timestamp for when the user record was created. */
252
- readonly createdAt?: string;
253
- /** The email address for the user. */
254
- email?: string;
255
- /** The unique user identifier. */
256
- readonly id: string;
257
- /** The Unix timestamp indicating when the invite will expire. */
258
- readonly inviteExpiry?: number;
259
- /** The timestamp for when the user record was last updated. */
260
- readonly lastUpdatedAt?: string;
261
- /** Pagination links to the user. */
262
- readonly links?: {
263
- /** A link to this user. */
264
- self: {
265
- /** URL that defines the resource. */
266
- href: string;
267
- };
268
- };
269
- /** Represents the end-user's language tag. */
270
- locale?: string;
271
- /** The name of the user. */
272
- name: string;
273
- /** A static url linking to the avatar of the user. */
274
- picture?: string;
275
- /** Represents the end-user's preferred language tag. */
276
- preferredLocale?: string;
277
- /** Represents the end-user's preferred time zone. */
278
- preferredZoneinfo?: string;
279
- /** The status of the user within the tenant. */
280
- status?: "active" | "invited" | "disabled" | "deleted" | "provisioned";
281
- /** The unique user identitier from an identity provider. */
282
- subject: string;
283
- /** The tenant that the user belongs too. */
284
- tenantId: string;
285
- /** Represents the end-user's time zone. */
286
- zoneinfo?: string;
287
- };
288
- /**
289
- * The result object for the user count.
290
- */
291
- type UserCount = {
292
- /** The total number of users in the tenant. */
293
- total: number;
294
- };
295
- /**
296
- * @example
297
- * {
298
- * assignedRoles: [
299
- * {
300
- * name: "Developer"
301
- * }
302
- * ],
303
- * email: "john.smith@corp.example",
304
- * name: "John Smith",
305
- * picture: "https://corp.example/docs/jsmith.png",
306
- * status: "invited",
307
- * subject: "1234asdasa6789",
308
- * tenantId: "q3VRZ4YMixRaLKEPhkZWM-XMIDN7cO8f"
309
- * }
310
- */
311
- type UserPostSchema = {
312
- /** The roles to assign to the user. */
313
- assignedRoles?: RefIDs | RefNames;
314
- /** The email address for the user. This is a required field when inviting a user. */
315
- email?: string;
316
- /** The name of the user. */
317
- name?: string;
318
- /** A static url linking to the avatar of the user. */
319
- picture?: string;
320
- /** The status of the created user within the tenant. */
321
- status?: "invited";
322
- /** The unique user identitier from an identity provider. */
323
- subject: string;
324
- /** The tenant that the user will belong too. */
325
- tenantId?: string;
326
- };
327
- type Users = {
328
- /** List of users. */
329
- data?: User[];
330
- /** Pagination links */
331
- links?: {
332
- /** Link information for next page */
333
- next?: {
334
- /** URL to the next page of records */
335
- href: string;
336
- };
337
- /** Link information for previous page */
338
- prev?: {
339
- /** URL to the previous page of records */
340
- href: string;
341
- };
342
- /** Link information for current page */
343
- self: {
344
- /** URL to the current page of records */
345
- href: string;
346
- };
347
- };
348
- /** Indicates the total number of matching documents. Will only be returned if the query parameter "totalResults" is true. */
349
- totalResults?: number;
350
- };
351
- /**
352
- * Returns a list of users using cursor-based pagination.
353
- *
354
- * @param query an object with query parameters
355
- * @throws GetUsersHttpError
356
- */
357
- declare function getUsers(query: {
358
- /** 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. */
359
- fields?: string;
360
- /** 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.
361
- *
362
- * The following fields support the `eq` operator: `id`, `subject`, `name`, `email`, `status`, `clientId`, `assignedRoles.id` `assignedRoles.name`, `assignedGroups.id`, `assignedGroupsAssignedRoles.name`
363
- *
364
- * Additionally, the following fields support the `co` operator: `name`, `email`, `subject`
365
- *
366
- * Queries may be rate limited if they differ greatly from these examples:
367
- *
368
- * ```
369
- * (id eq "62716ab404a7bd8626af9bd6" or id eq "62716ac4c7e500e13ff5fa22") and (status eq "active" or status eq "disabled")
370
- * ```
371
- *
372
- * ```
373
- * name co "query" or email co "query" or subject co "query" or id eq "query" or assignedRoles.name eq "query"
374
- * ```
375
- *
376
- * Any filters for status must be grouped together and applied to the whole query.
377
- *
378
- * Valid:
379
- *
380
- * ```
381
- * (name eq "Bob" or name eq "Alice") and (status eq "active" or status eq "disabled")
382
- * ```
383
- *
384
- * Invalid:
385
- *
386
- * ```
387
- * name eq "Bob" or name eq "Alice" and (status eq "active" or status eq "disabled")
388
- * ``` */
389
- filter?: string;
390
- /** The number of user entries to retrieve. */
391
- limit?: number;
392
- /** Get users that come after this cursor value when sorted. Cannot be used in conjunction with `prev`. */
393
- next?: string;
394
- /** Get users that come before this cursor value when sorted. Cannot be used in conjunction with `next`. */
395
- prev?: string;
396
- /** The field to sort by, with +/- prefix indicating sort order */
397
- 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";
398
- /** 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. */
399
- totalResults?: boolean;
400
- }, options?: ApiCallOptions): Promise<GetUsersHttpResponse>;
401
- type GetUsersHttpResponse = {
402
- data: Users;
403
- headers: Headers;
404
- status: 200;
405
- prev?: (options?: ApiCallOptions) => Promise<GetUsersHttpResponse>;
406
- next?: (options?: ApiCallOptions) => Promise<GetUsersHttpResponse>;
407
- };
408
- type GetUsersHttpError = {
409
- data: Errors;
410
- headers: Headers;
411
- status: 400 | 401 | 429 | 500;
412
- };
413
- /**
414
- * Creates an invited user.
415
- *
416
- * @param body an object with the body content
417
- * @throws CreateUserHttpError
418
- */
419
- declare function createUser(body: UserPostSchema, options?: ApiCallOptions): Promise<CreateUserHttpResponse>;
420
- type CreateUserHttpResponse = {
421
- data: User;
422
- headers: Headers;
423
- status: 201;
424
- };
425
- type CreateUserHttpError = {
426
- data: Errors;
427
- headers: Headers;
428
- status: 400 | 401 | 403 | 409 | 413 | 429 | 500;
429
- };
430
- /**
431
- * Returns the number of users in a given tenant
432
- *
433
- * @param query an object with query parameters
434
- * @throws CountUsersHttpError
435
- */
436
- declare function countUsers(query: Record<string, unknown>, options?: ApiCallOptions): Promise<CountUsersHttpResponse>;
437
- type CountUsersHttpResponse = {
438
- data: UserCount;
439
- headers: Headers;
440
- status: 200;
441
- };
442
- type CountUsersHttpError = {
443
- data: Errors;
444
- headers: Headers;
445
- status: 403 | 404 | 429;
446
- };
447
- /**
448
- * Returns the number of users in a given tenant
449
- *
450
- * @throws CountUsersWithoutQueryHttpError
451
- */
452
- declare function countUsersWithoutQuery(options?: ApiCallOptions): Promise<CountUsersWithoutQueryHttpResponse>;
453
- type CountUsersWithoutQueryHttpResponse = {
454
- data: UserCount;
455
- headers: Headers;
456
- status: 200;
457
- };
458
- type CountUsersWithoutQueryHttpError = {
459
- data: Errors;
460
- headers: Headers;
461
- status: 403 | 404 | 429;
462
- };
463
- /**
464
- * Retrieves a list of users matching the filter using an advanced query string.
465
- *
466
- * @param query an object with query parameters
467
- * @param body an object with the body content
468
- * @throws FilterUsersHttpError
469
- */
470
- declare function filterUsers(query: {
471
- /** 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. */
472
- fields?: string;
473
- /** The number of user entries to retrieve. */
474
- limit?: number;
475
- /** Get users with IDs that are higher than the target user ID. Cannot be used in conjunction with prev. */
476
- next?: string;
477
- /** Get users with IDs that are lower than the target user ID. Cannot be used in conjunction with next. */
478
- prev?: string;
479
- /** The field to sort by, with +/- prefix indicating sort order */
480
- sort?: "name" | "+name" | "-name";
481
- }, body: Filter, options?: ApiCallOptions): Promise<FilterUsersHttpResponse>;
482
- type FilterUsersHttpResponse = {
483
- data: Users;
484
- headers: Headers;
485
- status: 200;
486
- prev?: (options?: ApiCallOptions) => Promise<FilterUsersHttpResponse>;
487
- next?: (options?: ApiCallOptions) => Promise<FilterUsersHttpResponse>;
488
- };
489
- type FilterUsersHttpError = {
490
- data: Errors;
491
- headers: Headers;
492
- status: 400 | 401 | 403 | 429 | 500;
493
- };
494
- /**
495
- * Invite one or more users by email address.
496
- *
497
- * @param body an object with the body content
498
- * @throws InviteUsersHttpError
499
- */
500
- declare function inviteUsers(body: InviteRequestData, options?: ApiCallOptions): Promise<InviteUsersHttpResponse>;
501
- type InviteUsersHttpResponse = {
502
- data: InviteDataResponse;
503
- headers: Headers;
504
- status: 207;
505
- };
506
- type InviteUsersHttpError = {
507
- data: ErrorsResponse;
508
- headers: Headers;
509
- status: number;
510
- };
511
- /**
512
- * Redirects to retrieve the user resource associated with the JWT claims.
513
- *
514
- * @throws GetMyUserHttpError
515
- */
516
- declare function getMyUser(options?: ApiCallOptions): Promise<GetMyUserHttpResponse>;
517
- type GetMyUserHttpResponse = {
518
- data: User;
519
- headers: Headers;
520
- status: 200;
521
- };
522
- type GetMyUserHttpError = {
523
- data: Errors;
524
- headers: Headers;
525
- status: 429;
526
- };
527
- /**
528
- * Deletes the requested user.
529
- *
530
- * @param userId The ID of the user to delete.
531
- * @throws DeleteUserHttpError
532
- */
533
- declare function deleteUser(userId: string, options?: ApiCallOptions): Promise<DeleteUserHttpResponse>;
534
- type DeleteUserHttpResponse = {
535
- data: void;
536
- headers: Headers;
537
- status: 204;
538
- };
539
- type DeleteUserHttpError = {
540
- data: Errors;
541
- headers: Headers;
542
- status: 400 | 403 | 404 | 429;
543
- };
544
- /**
545
- * Returns the requested user.
546
- *
547
- * @param userId The user's unique identifier
548
- * @param query an object with query parameters
549
- * @throws GetUserHttpError
550
- */
551
- declare function getUser(userId: string, query: {
552
- /** 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. */
553
- fields?: string;
554
- }, options?: ApiCallOptions): Promise<GetUserHttpResponse>;
555
- type GetUserHttpResponse = {
556
- data: User & unknown;
557
- headers: Headers;
558
- status: 200;
559
- };
560
- type GetUserHttpError = {
561
- data: Errors;
562
- headers: Headers;
563
- status: 403 | 404 | 429 | 500;
564
- };
565
- /**
566
- * Updates fields for a user resource
567
- *
568
- * @param userId The ID of the user to update.
569
- * @param body an object with the body content
570
- * @throws PatchUserHttpError
571
- */
572
- declare function patchUser(userId: string, body: JSONPatchArray, options?: ApiCallOptions): Promise<PatchUserHttpResponse>;
573
- type PatchUserHttpResponse = PatchUser204HttpResponse | PatchUser207HttpResponse;
574
- type PatchUser204HttpResponse = {
575
- data: void;
576
- headers: Headers;
577
- status: 204;
578
- };
579
- type PatchUser207HttpResponse = {
580
- data: Errors;
581
- headers: Headers;
582
- status: 207;
583
- };
584
- type PatchUserHttpError = {
585
- data: Errors;
586
- headers: Headers;
587
- status: 400 | 403 | 404 | 429;
588
- };
589
- /**
590
- * Clears the cache for users api requests.
591
- */
592
- declare function clearCache(): void;
593
- type UsersAPI = {
594
- /**
595
- * Returns a list of users using cursor-based pagination.
596
- *
597
- * @param query an object with query parameters
598
- * @throws GetUsersHttpError
599
- */
600
- getUsers: typeof getUsers;
601
- /**
602
- * Creates an invited user.
603
- *
604
- * @param body an object with the body content
605
- * @throws CreateUserHttpError
606
- */
607
- createUser: typeof createUser;
608
- /**
609
- * Returns the number of users in a given tenant
610
- *
611
- * @param query an object with query parameters
612
- * @throws CountUsersHttpError
613
- */
614
- countUsers: typeof countUsers;
615
- /**
616
- * Returns the number of users in a given tenant
617
- *
618
- * @throws CountUsersWithoutQueryHttpError
619
- */
620
- countUsersWithoutQuery: typeof countUsersWithoutQuery;
621
- /**
622
- * Retrieves a list of users matching the filter using an advanced query string.
623
- *
624
- * @param query an object with query parameters
625
- * @param body an object with the body content
626
- * @throws FilterUsersHttpError
627
- */
628
- filterUsers: typeof filterUsers;
629
- /**
630
- * Invite one or more users by email address.
631
- *
632
- * @param body an object with the body content
633
- * @throws InviteUsersHttpError
634
- */
635
- inviteUsers: typeof inviteUsers;
636
- /**
637
- * Redirects to retrieve the user resource associated with the JWT claims.
638
- *
639
- * @throws GetMyUserHttpError
640
- */
641
- getMyUser: typeof getMyUser;
642
- /**
643
- * Deletes the requested user.
644
- *
645
- * @param userId The ID of the user to delete.
646
- * @throws DeleteUserHttpError
647
- */
648
- deleteUser: typeof deleteUser;
649
- /**
650
- * Returns the requested user.
651
- *
652
- * @param userId The user's unique identifier
653
- * @param query an object with query parameters
654
- * @throws GetUserHttpError
655
- */
656
- getUser: typeof getUser;
657
- /**
658
- * Updates fields for a user resource
659
- *
660
- * @param userId The ID of the user to update.
661
- * @param body an object with the body content
662
- * @throws PatchUserHttpError
663
- */
664
- patchUser: typeof patchUser;
665
- /**
666
- * Clears the cache for users api requests.
667
- */
668
- clearCache: typeof clearCache;
669
- };
670
- /**
671
- * Functions for the users api
672
- */
673
- declare const usersExport: UsersAPI;
674
- //#endregion
675
- export { getUser as $, InviteUsersHttpError as A, ResultItem as B, GetUserHttpResponse as C, InviteErrorItem as D, InviteDataResponse as E, PatchUser207HttpResponse as F, UsersAPI as G, UserCount as H, PatchUserHttpError as I, countUsersWithoutQuery as J, clearCache as K, PatchUserHttpResponse as L, JSONPatch as M, JSONPatchArray as N, InviteItem as O, PatchUser204HttpResponse as P, getMyUser as Q, RefIDs as R, GetUserHttpError as S, GetUsersHttpResponse as T, UserPostSchema as U, User as V, Users as W, deleteUser as X, createUser as Y, filterUsers as Z, Filter as _, CountUsersHttpError as a, GetMyUserHttpError as b, CountUsersWithoutQueryHttpResponse as c, DeleteUserHttpError as d, getUsers as et, DeleteUserHttpResponse as f, ErrorsResponse as g, Errors as h, AssignedScopes as i, InviteUsersHttpResponse as j, InviteRequestData as k, CreateUserHttpError as l, ErrorItem as m, AssignedGroupsRefNames as n, patchUser as nt, CountUsersHttpResponse as o, Error as p, countUsers as q, AssignedRoles as r, usersExport as rt, CountUsersWithoutQueryHttpError as s, AssignedGroups as t, inviteUsers as tt, CreateUserHttpResponse as u, FilterUsersHttpError as v, GetUsersHttpError as w, GetMyUserHttpResponse as x, FilterUsersHttpResponse as y, RefNames as z };