@lumoauth/api-client 1.5.0 → 1.6.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 (248) hide show
  1. package/.openapi-generator/FILES +12 -2
  2. package/README.md +10 -3
  3. package/api/admin-abac-api.ts +18 -5
  4. package/api/admin-agents-api.ts +50 -5
  5. package/api/admin-audit-logs-api.ts +15 -15
  6. package/api/admin-email-api.ts +15 -15
  7. package/api/admin-groups-api.ts +15 -15
  8. package/api/admin-mfa-api.ts +10 -10
  9. package/api/admin-oauth-clients-api.ts +15 -15
  10. package/api/admin-roles-api.ts +20 -20
  11. package/api/admin-settings-api.ts +112 -60
  12. package/api/admin-users-api.ts +320 -31
  13. package/api/agents-api.ts +5 -5
  14. package/api/authorization-api.ts +20 -20
  15. package/api/oauth-api.ts +116 -5
  16. package/api/ssf-api.ts +10 -10
  17. package/dist/api/admin-abac-api.d.ts +10 -2
  18. package/dist/api/admin-abac-api.js +10 -5
  19. package/dist/api/admin-agents-api.d.ts +37 -2
  20. package/dist/api/admin-agents-api.js +37 -6
  21. package/dist/api/admin-audit-logs-api.d.ts +15 -15
  22. package/dist/api/admin-audit-logs-api.js +12 -12
  23. package/dist/api/admin-email-api.d.ts +15 -15
  24. package/dist/api/admin-email-api.js +12 -12
  25. package/dist/api/admin-groups-api.d.ts +15 -15
  26. package/dist/api/admin-groups-api.js +12 -12
  27. package/dist/api/admin-mfa-api.d.ts +10 -10
  28. package/dist/api/admin-mfa-api.js +8 -8
  29. package/dist/api/admin-oauth-clients-api.d.ts +15 -15
  30. package/dist/api/admin-oauth-clients-api.js +12 -12
  31. package/dist/api/admin-roles-api.d.ts +20 -20
  32. package/dist/api/admin-roles-api.js +16 -16
  33. package/dist/api/admin-settings-api.d.ts +82 -48
  34. package/dist/api/admin-settings-api.js +68 -52
  35. package/dist/api/admin-users-api.d.ts +201 -22
  36. package/dist/api/admin-users-api.js +185 -28
  37. package/dist/api/agents-api.d.ts +5 -5
  38. package/dist/api/agents-api.js +4 -4
  39. package/dist/api/authorization-api.d.ts +20 -20
  40. package/dist/api/authorization-api.js +16 -16
  41. package/dist/api/oauth-api.d.ts +70 -5
  42. package/dist/api/oauth-api.js +76 -4
  43. package/dist/api/ssf-api.d.ts +10 -10
  44. package/dist/api/ssf-api.js +8 -8
  45. package/dist/esm/api/admin-abac-api.d.ts +10 -2
  46. package/dist/esm/api/admin-abac-api.js +10 -5
  47. package/dist/esm/api/admin-agents-api.d.ts +37 -2
  48. package/dist/esm/api/admin-agents-api.js +36 -5
  49. package/dist/esm/api/admin-audit-logs-api.d.ts +15 -15
  50. package/dist/esm/api/admin-audit-logs-api.js +12 -12
  51. package/dist/esm/api/admin-email-api.d.ts +15 -15
  52. package/dist/esm/api/admin-email-api.js +12 -12
  53. package/dist/esm/api/admin-groups-api.d.ts +15 -15
  54. package/dist/esm/api/admin-groups-api.js +12 -12
  55. package/dist/esm/api/admin-mfa-api.d.ts +10 -10
  56. package/dist/esm/api/admin-mfa-api.js +8 -8
  57. package/dist/esm/api/admin-oauth-clients-api.d.ts +15 -15
  58. package/dist/esm/api/admin-oauth-clients-api.js +12 -12
  59. package/dist/esm/api/admin-roles-api.d.ts +20 -20
  60. package/dist/esm/api/admin-roles-api.js +16 -16
  61. package/dist/esm/api/admin-settings-api.d.ts +82 -48
  62. package/dist/esm/api/admin-settings-api.js +69 -53
  63. package/dist/esm/api/admin-users-api.d.ts +201 -22
  64. package/dist/esm/api/admin-users-api.js +184 -27
  65. package/dist/esm/api/agents-api.d.ts +5 -5
  66. package/dist/esm/api/agents-api.js +4 -4
  67. package/dist/esm/api/authorization-api.d.ts +20 -20
  68. package/dist/esm/api/authorization-api.js +16 -16
  69. package/dist/esm/api/oauth-api.d.ts +70 -5
  70. package/dist/esm/api/oauth-api.js +76 -4
  71. package/dist/esm/api/ssf-api.d.ts +10 -10
  72. package/dist/esm/api/ssf-api.js +8 -8
  73. package/dist/esm/models/abac-attribute-definition.d.ts +6 -0
  74. package/dist/esm/models/abac-policy.d.ts +7 -1
  75. package/dist/esm/models/admin-analytics-dashboard-response-data-audit.d.ts +1 -1
  76. package/dist/esm/models/admin-groups-list-response.d.ts +6 -0
  77. package/dist/esm/models/admin-mcp-servers-list-response.d.ts +8 -3
  78. package/dist/esm/models/admin-settings-all-response-data-general.d.ts +13 -1
  79. package/dist/esm/models/admin-settings-all-response-data.d.ts +4 -5
  80. package/dist/esm/models/admin-settings-email-get-response.d.ts +4 -5
  81. package/dist/esm/models/admin-settings-general-get-response-data.d.ts +4 -10
  82. package/dist/esm/models/{admin-mcp-servers-list-response-meta.d.ts → admin-users-restore-response.d.ts} +9 -14
  83. package/dist/esm/models/ask-response.d.ts +15 -0
  84. package/dist/esm/models/ask-response.js +10 -1
  85. package/dist/esm/models/attest-response.d.ts +2 -2
  86. package/dist/esm/models/authorization-server-metadata.d.ts +8 -2
  87. package/dist/esm/models/check-email-first-request.d.ts +30 -0
  88. package/dist/esm/models/check-email-first-request.js +14 -0
  89. package/dist/esm/models/check-email-first-response.d.ts +42 -0
  90. package/dist/esm/models/check-email-first-response.js +14 -0
  91. package/dist/esm/models/email-sender-settings.d.ts +62 -0
  92. package/dist/esm/models/email-sender-settings.js +22 -0
  93. package/dist/esm/models/get-me-response.d.ts +18 -0
  94. package/dist/esm/models/get-server-challenge-response.d.ts +3 -2
  95. package/dist/esm/models/get-server-challenge-response.js +1 -0
  96. package/dist/esm/models/index.d.ts +6 -1
  97. package/dist/esm/models/index.js +6 -1
  98. package/dist/esm/models/introspect-response.d.ts +6 -0
  99. package/dist/esm/models/issue-agent-token-request.d.ts +6 -0
  100. package/dist/esm/models/list-users-response.d.ts +6 -0
  101. package/dist/esm/models/oauth-scope.d.ts +1 -7
  102. package/dist/esm/models/open-id-configuration.d.ts +3 -3
  103. package/dist/esm/models/put-admin-settings-branding-update-response.d.ts +6 -0
  104. package/dist/esm/models/put-admin-settings-email-update-request.d.ts +36 -0
  105. package/dist/esm/models/put-admin-settings-email-update-request.js +14 -0
  106. package/dist/esm/models/put-admin-settings-email-update-response.d.ts +4 -5
  107. package/dist/esm/models/put-admin-settings-general-update-request.d.ts +30 -0
  108. package/dist/esm/models/put-admin-settings-general-update-request.js +14 -0
  109. package/dist/esm/models/put-admin-settings-general-update-response-data.d.ts +1 -7
  110. package/dist/esm/models/register-client-response.d.ts +0 -24
  111. package/dist/esm/models/registered-client-metadata.d.ts +0 -24
  112. package/dist/esm/models/social-login-provider.d.ts +2 -1
  113. package/dist/esm/models/user.d.ts +12 -0
  114. package/dist/esm/models/userinfo-response.d.ts +4 -12
  115. package/dist/esm/models/userinfo-response.js +0 -2
  116. package/dist/models/abac-attribute-definition.d.ts +6 -0
  117. package/dist/models/abac-policy.d.ts +7 -1
  118. package/dist/models/admin-analytics-dashboard-response-data-audit.d.ts +1 -1
  119. package/dist/models/admin-groups-list-response.d.ts +6 -0
  120. package/dist/models/admin-mcp-servers-list-response.d.ts +8 -3
  121. package/dist/models/admin-settings-all-response-data-general.d.ts +13 -1
  122. package/dist/models/admin-settings-all-response-data.d.ts +4 -5
  123. package/dist/models/admin-settings-email-get-response.d.ts +4 -5
  124. package/dist/models/admin-settings-general-get-response-data.d.ts +4 -10
  125. package/dist/models/{admin-mcp-servers-list-response-meta.d.ts → admin-users-restore-response.d.ts} +9 -14
  126. package/dist/models/ask-response.d.ts +15 -0
  127. package/dist/models/ask-response.js +11 -0
  128. package/dist/models/attest-response.d.ts +2 -2
  129. package/dist/models/authorization-server-metadata.d.ts +8 -2
  130. package/dist/models/check-email-first-request.d.ts +30 -0
  131. package/dist/models/check-email-first-request.js +15 -0
  132. package/dist/models/check-email-first-response.d.ts +42 -0
  133. package/dist/models/check-email-first-response.js +15 -0
  134. package/dist/models/email-sender-settings.d.ts +62 -0
  135. package/dist/models/email-sender-settings.js +25 -0
  136. package/dist/models/get-me-response.d.ts +18 -0
  137. package/dist/models/get-server-challenge-response.d.ts +3 -2
  138. package/dist/models/get-server-challenge-response.js +1 -0
  139. package/dist/models/index.d.ts +6 -1
  140. package/dist/models/index.js +6 -1
  141. package/dist/models/introspect-response.d.ts +6 -0
  142. package/dist/models/issue-agent-token-request.d.ts +6 -0
  143. package/dist/models/list-users-response.d.ts +6 -0
  144. package/dist/models/oauth-scope.d.ts +1 -7
  145. package/dist/models/open-id-configuration.d.ts +3 -3
  146. package/dist/models/put-admin-settings-branding-update-response.d.ts +6 -0
  147. package/dist/models/put-admin-settings-email-update-request.d.ts +36 -0
  148. package/dist/models/put-admin-settings-email-update-request.js +15 -0
  149. package/dist/models/put-admin-settings-email-update-response.d.ts +4 -5
  150. package/dist/models/put-admin-settings-general-update-request.d.ts +30 -0
  151. package/dist/models/put-admin-settings-general-update-request.js +15 -0
  152. package/dist/models/put-admin-settings-general-update-response-data.d.ts +1 -7
  153. package/dist/models/register-client-response.d.ts +0 -24
  154. package/dist/models/registered-client-metadata.d.ts +0 -24
  155. package/dist/models/social-login-provider.d.ts +2 -1
  156. package/dist/models/user.d.ts +12 -0
  157. package/dist/models/userinfo-response.d.ts +4 -12
  158. package/dist/models/userinfo-response.js +0 -2
  159. package/docs/AbacAttributeDefinition.md +2 -0
  160. package/docs/AbacPolicy.md +3 -1
  161. package/docs/AdminAbacApi.md +14 -9
  162. package/docs/AdminAgentsApi.md +7 -1
  163. package/docs/AdminAnalyticsDashboardResponseDataAudit.md +1 -1
  164. package/docs/AdminAuditLogsApi.md +3 -0
  165. package/docs/AdminEmailApi.md +3 -0
  166. package/docs/AdminGroupsApi.md +3 -0
  167. package/docs/AdminGroupsListResponse.md +2 -0
  168. package/docs/AdminMcpServersListResponse.md +3 -1
  169. package/docs/AdminMfaApi.md +4 -2
  170. package/docs/AdminOAuthClientsApi.md +3 -1
  171. package/docs/AdminOrganizationsApi.md +13 -5
  172. package/docs/AdminRolesApi.md +10 -0
  173. package/docs/AdminSettingsAllResponseData.md +1 -1
  174. package/docs/AdminSettingsAllResponseDataGeneral.md +5 -1
  175. package/docs/AdminSettingsApi.md +54 -12
  176. package/docs/AdminSettingsEmailGetResponse.md +1 -1
  177. package/docs/AdminSettingsGeneralGetResponseData.md +4 -6
  178. package/docs/AdminUsersApi.md +104 -2
  179. package/docs/AdminUsersRestoreResponse.md +22 -0
  180. package/docs/AgentsApi.md +2 -2
  181. package/docs/AskResponse.md +2 -0
  182. package/docs/AttestResponse.md +1 -1
  183. package/docs/AuthorizationApi.md +4 -4
  184. package/docs/AuthorizationServerMetadata.md +4 -2
  185. package/docs/CheckEmailFirstRequest.md +22 -0
  186. package/docs/CheckEmailFirstResponse.md +26 -0
  187. package/docs/EmailSenderSettings.md +31 -0
  188. package/docs/GetMeResponse.md +6 -0
  189. package/docs/GetServerChallengeResponse.md +1 -1
  190. package/docs/IdentityApi.md +2 -2
  191. package/docs/IntrospectResponse.md +2 -0
  192. package/docs/IssueAgentTokenRequest.md +2 -0
  193. package/docs/ListUsersResponse.md +2 -0
  194. package/docs/McpApi.md +5 -6
  195. package/docs/OAuthApi.md +72 -12
  196. package/docs/OAuthScope.md +1 -3
  197. package/docs/OIDCApi.md +4 -4
  198. package/docs/OpenIdConfiguration.md +3 -3
  199. package/docs/PutAdminSettingsBrandingUpdateResponse.md +2 -0
  200. package/docs/PutAdminSettingsEmailUpdateRequest.md +24 -0
  201. package/docs/PutAdminSettingsEmailUpdateResponse.md +1 -1
  202. package/docs/PutAdminSettingsGeneralUpdateRequest.md +22 -0
  203. package/docs/PutAdminSettingsGeneralUpdateResponseData.md +1 -3
  204. package/docs/RegisterClientResponse.md +0 -8
  205. package/docs/RegisteredClientMetadata.md +0 -8
  206. package/docs/SocialLoginProvider.md +1 -1
  207. package/docs/SsfApi.md +2 -0
  208. package/docs/User.md +4 -0
  209. package/docs/UserinfoResponse.md +3 -5
  210. package/docs/WellKnownApi.md +2 -2
  211. package/models/abac-attribute-definition.ts +6 -0
  212. package/models/abac-policy.ts +7 -1
  213. package/models/admin-analytics-dashboard-response-data-audit.ts +1 -1
  214. package/models/admin-groups-list-response.ts +6 -0
  215. package/models/admin-mcp-servers-list-response.ts +8 -5
  216. package/models/admin-settings-all-response-data-general.ts +13 -1
  217. package/models/admin-settings-all-response-data.ts +6 -3
  218. package/models/admin-settings-email-get-response.ts +6 -3
  219. package/models/admin-settings-general-get-response-data.ts +4 -10
  220. package/models/{admin-mcp-servers-list-response-meta.ts → admin-users-restore-response.ts} +11 -14
  221. package/models/ask-response.ts +17 -0
  222. package/models/attest-response.ts +2 -2
  223. package/models/authorization-server-metadata.ts +8 -2
  224. package/models/check-email-first-request.ts +36 -0
  225. package/models/check-email-first-response.ts +48 -0
  226. package/models/email-sender-settings.ts +70 -0
  227. package/models/get-me-response.ts +18 -0
  228. package/models/get-server-challenge-response.ts +3 -2
  229. package/models/index.ts +6 -1
  230. package/models/introspect-response.ts +6 -0
  231. package/models/issue-agent-token-request.ts +6 -0
  232. package/models/list-users-response.ts +6 -0
  233. package/models/oauth-scope.ts +1 -7
  234. package/models/open-id-configuration.ts +3 -3
  235. package/models/put-admin-settings-branding-update-response.ts +6 -0
  236. package/models/put-admin-settings-email-update-request.ts +42 -0
  237. package/models/put-admin-settings-email-update-response.ts +6 -3
  238. package/models/put-admin-settings-general-update-request.ts +36 -0
  239. package/models/put-admin-settings-general-update-response-data.ts +1 -7
  240. package/models/register-client-response.ts +0 -24
  241. package/models/registered-client-metadata.ts +0 -24
  242. package/models/social-login-provider.ts +2 -1
  243. package/models/user.ts +12 -0
  244. package/models/userinfo-response.ts +4 -12
  245. package/package.json +1 -1
  246. package/docs/AdminMcpServersListResponseMeta.md +0 -24
  247. /package/dist/esm/models/{admin-mcp-servers-list-response-meta.js → admin-users-restore-response.js} +0 -0
  248. /package/dist/models/{admin-mcp-servers-list-response-meta.js → admin-users-restore-response.js} +0 -0
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.AdminIdentitiesUnlinkType = exports.AdminUsersApi = exports.AdminUsersApiFactory = exports.AdminUsersApiFp = exports.AdminUsersApiAxiosParamCreator = void 0;
25
+ exports.ListUsersSortDir = exports.ListUsersSortBy = exports.AdminIdentitiesUnlinkType = exports.AdminUsersApi = exports.AdminUsersApiFactory = exports.AdminUsersApiFp = exports.AdminUsersApiAxiosParamCreator = void 0;
26
26
  const axios_1 = require("axios");
27
27
  // Some imports not used depending on template conditions
28
28
  // @ts-ignore
@@ -74,7 +74,7 @@ const AdminUsersApiAxiosParamCreator = function (configuration) {
74
74
  };
75
75
  }),
76
76
  /**
77
- *
77
+ * Grants one permission to the user directly. The caller must hold the permission (403 otherwise). A permission that opens the admin portal makes an active user an administrator, who takes an admin seat: 403 `plan_limit_reached` (`limit`: `admin_seats`) when the plan has none free. On a plan with a hard monthly-active-user cap, an administrator also has a place kept inside the limit, so a user who has not been active this month needs a free place (`limit`: `mau`). A user or permission outside this organization is 404.
78
78
  * @summary Assign a permission to a user
79
79
  * @param {string} orgId
80
80
  * @param {string} userId
@@ -150,7 +150,7 @@ const AdminUsersApiAxiosParamCreator = function (configuration) {
150
150
  };
151
151
  }),
152
152
  /**
153
- * Rebinds legacy bare-NameID users to `idp_id`, keeping their NameID: either `user_ids`, or every legacy user whose email domain the IdP\'s allowed email domains claim (`all_matching_domains: true`). Users the caller does not outrank, or whose NameID is already linked at that IdP, are skipped. `dry_run` (default true) only reports what would change. A real run revokes each relinked user\'s sessions, notifies them and is audited (identity.link.created per user, identity.link.bulk_relinked once); signed-in admins need fresh MFA.
153
+ * Rebinds legacy bare-NameID users to `idp_id`, keeping their NameID: either `user_ids`, or every legacy user whose email domain the IdP\'s allowed email domains claim (`all_matching_domains: true`). Users the caller does not outrank, or whose NameID is already linked at that IdP, are skipped. `dry_run` (default true) only reports what would change. A real run revokes each relinked user\'s sessions, notifies them and is audited (identity.link.created per user, identity.link.bulk_relinked once); signed-in admins need fresh MFA. An access token must come from a sign-in within the last 10 minutes (401 insufficient_user_authentication otherwise), except for a request that sends `\"dry_run\": true`.
154
154
  * @summary Relink legacy SAML users to an IdP
155
155
  * @param {string} orgId
156
156
  * @param {AdminIdentitiesLegacySamlRelinkRequest} adminIdentitiesLegacySamlRelinkRequest
@@ -349,6 +349,44 @@ const AdminUsersApiAxiosParamCreator = function (configuration) {
349
349
  options: localVarRequestOptions,
350
350
  };
351
351
  }),
352
+ /**
353
+ * Restores a user that inbound SCIM soft-deleted (list them with GET /users?deleted=true). The account keeps the roles, groups and permissions that it still holds, and its active and blocked state. Its sessions and tokens stay revoked: the user signs in again. An erased user cannot be restored.
354
+ * @summary Restore a deleted user
355
+ * @param {string} orgId
356
+ * @param {string} userId
357
+ * @param {*} [options] Override http request option.
358
+ * @throws {RequiredError}
359
+ */
360
+ adminUsersRestore: (orgId_1, userId_1, ...args_1) => __awaiter(this, [orgId_1, userId_1, ...args_1], void 0, function* (orgId, userId, options = {}) {
361
+ // verify required parameter 'orgId' is not null or undefined
362
+ (0, common_1.assertParamExists)('adminUsersRestore', 'orgId', orgId);
363
+ // verify required parameter 'userId' is not null or undefined
364
+ (0, common_1.assertParamExists)('adminUsersRestore', 'userId', userId);
365
+ const localVarPath = `/orgs/{orgId}/api/v1/admin/users/{userId}/restore`
366
+ .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)))
367
+ .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
368
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
369
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
370
+ let baseOptions;
371
+ if (configuration) {
372
+ baseOptions = configuration.baseOptions;
373
+ }
374
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
375
+ const localVarHeaderParameter = {};
376
+ const localVarQueryParameter = {};
377
+ // authentication ApiKeyAuth required
378
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-API-Key", configuration);
379
+ // authentication BearerAuth required
380
+ // http bearer authentication required
381
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
382
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
383
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
384
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
385
+ return {
386
+ url: (0, common_1.toPathString)(localVarUrlObj),
387
+ options: localVarRequestOptions,
388
+ };
389
+ }),
352
390
  /**
353
391
  *
354
392
  * @summary Block a user
@@ -615,10 +653,22 @@ const AdminUsersApiAxiosParamCreator = function (configuration) {
615
653
  *
616
654
  * @summary List users
617
655
  * @param {string} orgId
618
- * @param {*} [options] Override http request option.
619
- * @throws {RequiredError}
620
- */
621
- listUsers: (orgId_1, ...args_1) => __awaiter(this, [orgId_1, ...args_1], void 0, function* (orgId, options = {}) {
656
+ * @param {number} [page] Page number.
657
+ * @param {number} [limit] Users per page (1 to 100).
658
+ * @param {string} [search] Users whose email address, name or username contains this text (case-sensitive; the first 100 characters are used).
659
+ * @param {boolean} [active] Only active (`true`) or inactive (`false`) users.
660
+ * @param {boolean} [blocked] Only blocked (`true`) or not blocked (`false`) users.
661
+ * @param {boolean} [deleted] `true` lists only the users that SCIM deleted (soft-deleted). Without it, or with `false`, the list leaves them out.
662
+ * @param {boolean} [emailVerified] Only users whose email address is verified (`true`) or not (`false`).
663
+ * @param {boolean} [mfaEnabled] Only users with (`true`) or without (`false`) multi-factor authentication.
664
+ * @param {string} [role] Only users who hold the role with this slug.
665
+ * @param {string} [group] Only members of the group with this slug.
666
+ * @param {ListUsersSortBy} [sortBy] Sort field. Without it the list is sorted by createdAt, newest first. Another value sorts by createdAt.
667
+ * @param {ListUsersSortDir} [sortDir] Sort direction. Used only together with sortBy.
668
+ * @param {*} [options] Override http request option.
669
+ * @throws {RequiredError}
670
+ */
671
+ listUsers: (orgId_1, page_1, limit_1, search_1, active_1, blocked_1, deleted_1, emailVerified_1, mfaEnabled_1, role_1, group_1, sortBy_1, sortDir_1, ...args_1) => __awaiter(this, [orgId_1, page_1, limit_1, search_1, active_1, blocked_1, deleted_1, emailVerified_1, mfaEnabled_1, role_1, group_1, sortBy_1, sortDir_1, ...args_1], void 0, function* (orgId, page, limit, search, active, blocked, deleted, emailVerified, mfaEnabled, role, group, sortBy, sortDir, options = {}) {
622
672
  // verify required parameter 'orgId' is not null or undefined
623
673
  (0, common_1.assertParamExists)('listUsers', 'orgId', orgId);
624
674
  const localVarPath = `/orgs/{orgId}/api/v1/admin/users`
@@ -637,6 +687,42 @@ const AdminUsersApiAxiosParamCreator = function (configuration) {
637
687
  // authentication BearerAuth required
638
688
  // http bearer authentication required
639
689
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
690
+ if (page !== undefined) {
691
+ localVarQueryParameter['page'] = page;
692
+ }
693
+ if (limit !== undefined) {
694
+ localVarQueryParameter['limit'] = limit;
695
+ }
696
+ if (search !== undefined) {
697
+ localVarQueryParameter['search'] = search;
698
+ }
699
+ if (active !== undefined) {
700
+ localVarQueryParameter['active'] = active;
701
+ }
702
+ if (blocked !== undefined) {
703
+ localVarQueryParameter['blocked'] = blocked;
704
+ }
705
+ if (deleted !== undefined) {
706
+ localVarQueryParameter['deleted'] = deleted;
707
+ }
708
+ if (emailVerified !== undefined) {
709
+ localVarQueryParameter['emailVerified'] = emailVerified;
710
+ }
711
+ if (mfaEnabled !== undefined) {
712
+ localVarQueryParameter['mfaEnabled'] = mfaEnabled;
713
+ }
714
+ if (role !== undefined) {
715
+ localVarQueryParameter['role'] = role;
716
+ }
717
+ if (group !== undefined) {
718
+ localVarQueryParameter['group'] = group;
719
+ }
720
+ if (sortBy !== undefined) {
721
+ localVarQueryParameter['sortBy'] = sortBy;
722
+ }
723
+ if (sortDir !== undefined) {
724
+ localVarQueryParameter['sortDir'] = sortDir;
725
+ }
640
726
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
641
727
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
642
728
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -925,7 +1011,7 @@ const AdminUsersApiAxiosParamCreator = function (configuration) {
925
1011
  };
926
1012
  }),
927
1013
  /**
928
- *
1014
+ * Needs `users.edit`, and the caller must hold every permission of the user. A signed-in administrator must have signed in or passed MFA within the last 10 minutes: a Bearer token needs a fresh `auth_time` (otherwise 401 `insufficient_user_authentication`), and an administrator who holds a second factor sends `X-MFA-Challenge` with an approved step_up challenge (otherwise 403 `step_up_required`). Organization API keys are not subject to this check.
929
1015
  * @summary Set a user\'s password
930
1016
  * @param {string} orgId
931
1017
  * @param {string} userId
@@ -963,7 +1049,7 @@ const AdminUsersApiAxiosParamCreator = function (configuration) {
963
1049
  };
964
1050
  }),
965
1051
  /**
966
- *
1052
+ * Needs `users.edit`, and the caller must hold every permission of the user. A signed-in administrator must have signed in or passed MFA within the last 10 minutes: a Bearer token needs a fresh `auth_time` (otherwise 401 `insufficient_user_authentication`), and an administrator who holds a second factor sends `X-MFA-Challenge` with an approved step_up challenge (otherwise 403 `step_up_required`). Organization API keys are not subject to this check.
967
1053
  * @summary Set a user\'s password
968
1054
  * @param {string} orgId
969
1055
  * @param {string} userId
@@ -1218,7 +1304,7 @@ const AdminUsersApiFp = function (configuration) {
1218
1304
  });
1219
1305
  },
1220
1306
  /**
1221
- *
1307
+ * Grants one permission to the user directly. The caller must hold the permission (403 otherwise). A permission that opens the admin portal makes an active user an administrator, who takes an admin seat: 403 `plan_limit_reached` (`limit`: `admin_seats`) when the plan has none free. On a plan with a hard monthly-active-user cap, an administrator also has a place kept inside the limit, so a user who has not been active this month needs a free place (`limit`: `mau`). A user or permission outside this organization is 404.
1222
1308
  * @summary Assign a permission to a user
1223
1309
  * @param {string} orgId
1224
1310
  * @param {string} userId
@@ -1252,7 +1338,7 @@ const AdminUsersApiFp = function (configuration) {
1252
1338
  });
1253
1339
  },
1254
1340
  /**
1255
- * Rebinds legacy bare-NameID users to `idp_id`, keeping their NameID: either `user_ids`, or every legacy user whose email domain the IdP\'s allowed email domains claim (`all_matching_domains: true`). Users the caller does not outrank, or whose NameID is already linked at that IdP, are skipped. `dry_run` (default true) only reports what would change. A real run revokes each relinked user\'s sessions, notifies them and is audited (identity.link.created per user, identity.link.bulk_relinked once); signed-in admins need fresh MFA.
1341
+ * Rebinds legacy bare-NameID users to `idp_id`, keeping their NameID: either `user_ids`, or every legacy user whose email domain the IdP\'s allowed email domains claim (`all_matching_domains: true`). Users the caller does not outrank, or whose NameID is already linked at that IdP, are skipped. `dry_run` (default true) only reports what would change. A real run revokes each relinked user\'s sessions, notifies them and is audited (identity.link.created per user, identity.link.bulk_relinked once); signed-in admins need fresh MFA. An access token must come from a sign-in within the last 10 minutes (401 insufficient_user_authentication otherwise), except for a request that sends `\"dry_run\": true`.
1256
1342
  * @summary Relink legacy SAML users to an IdP
1257
1343
  * @param {string} orgId
1258
1344
  * @param {AdminIdentitiesLegacySamlRelinkRequest} adminIdentitiesLegacySamlRelinkRequest
@@ -1338,6 +1424,23 @@ const AdminUsersApiFp = function (configuration) {
1338
1424
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1339
1425
  });
1340
1426
  },
1427
+ /**
1428
+ * Restores a user that inbound SCIM soft-deleted (list them with GET /users?deleted=true). The account keeps the roles, groups and permissions that it still holds, and its active and blocked state. Its sessions and tokens stay revoked: the user signs in again. An erased user cannot be restored.
1429
+ * @summary Restore a deleted user
1430
+ * @param {string} orgId
1431
+ * @param {string} userId
1432
+ * @param {*} [options] Override http request option.
1433
+ * @throws {RequiredError}
1434
+ */
1435
+ adminUsersRestore(orgId, userId, options) {
1436
+ return __awaiter(this, void 0, void 0, function* () {
1437
+ var _a, _b, _c;
1438
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminUsersRestore(orgId, userId, options);
1439
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1440
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminUsersApi.adminUsersRestore']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1441
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1442
+ });
1443
+ },
1341
1444
  /**
1342
1445
  *
1343
1446
  * @summary Block a user
@@ -1460,13 +1563,25 @@ const AdminUsersApiFp = function (configuration) {
1460
1563
  *
1461
1564
  * @summary List users
1462
1565
  * @param {string} orgId
1463
- * @param {*} [options] Override http request option.
1464
- * @throws {RequiredError}
1465
- */
1466
- listUsers(orgId, options) {
1566
+ * @param {number} [page] Page number.
1567
+ * @param {number} [limit] Users per page (1 to 100).
1568
+ * @param {string} [search] Users whose email address, name or username contains this text (case-sensitive; the first 100 characters are used).
1569
+ * @param {boolean} [active] Only active (`true`) or inactive (`false`) users.
1570
+ * @param {boolean} [blocked] Only blocked (`true`) or not blocked (`false`) users.
1571
+ * @param {boolean} [deleted] `true` lists only the users that SCIM deleted (soft-deleted). Without it, or with `false`, the list leaves them out.
1572
+ * @param {boolean} [emailVerified] Only users whose email address is verified (`true`) or not (`false`).
1573
+ * @param {boolean} [mfaEnabled] Only users with (`true`) or without (`false`) multi-factor authentication.
1574
+ * @param {string} [role] Only users who hold the role with this slug.
1575
+ * @param {string} [group] Only members of the group with this slug.
1576
+ * @param {ListUsersSortBy} [sortBy] Sort field. Without it the list is sorted by createdAt, newest first. Another value sorts by createdAt.
1577
+ * @param {ListUsersSortDir} [sortDir] Sort direction. Used only together with sortBy.
1578
+ * @param {*} [options] Override http request option.
1579
+ * @throws {RequiredError}
1580
+ */
1581
+ listUsers(orgId, page, limit, search, active, blocked, deleted, emailVerified, mfaEnabled, role, group, sortBy, sortDir, options) {
1467
1582
  return __awaiter(this, void 0, void 0, function* () {
1468
1583
  var _a, _b, _c;
1469
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listUsers(orgId, options);
1584
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listUsers(orgId, page, limit, search, active, blocked, deleted, emailVerified, mfaEnabled, role, group, sortBy, sortDir, options);
1470
1585
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1471
1586
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminUsersApi.listUsers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1472
1587
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1596,7 +1711,7 @@ const AdminUsersApiFp = function (configuration) {
1596
1711
  });
1597
1712
  },
1598
1713
  /**
1599
- *
1714
+ * Needs `users.edit`, and the caller must hold every permission of the user. A signed-in administrator must have signed in or passed MFA within the last 10 minutes: a Bearer token needs a fresh `auth_time` (otherwise 401 `insufficient_user_authentication`), and an administrator who holds a second factor sends `X-MFA-Challenge` with an approved step_up challenge (otherwise 403 `step_up_required`). Organization API keys are not subject to this check.
1600
1715
  * @summary Set a user\'s password
1601
1716
  * @param {string} orgId
1602
1717
  * @param {string} userId
@@ -1613,7 +1728,7 @@ const AdminUsersApiFp = function (configuration) {
1613
1728
  });
1614
1729
  },
1615
1730
  /**
1616
- *
1731
+ * Needs `users.edit`, and the caller must hold every permission of the user. A signed-in administrator must have signed in or passed MFA within the last 10 minutes: a Bearer token needs a fresh `auth_time` (otherwise 401 `insufficient_user_authentication`), and an administrator who holds a second factor sends `X-MFA-Challenge` with an approved step_up challenge (otherwise 403 `step_up_required`). Organization API keys are not subject to this check.
1617
1732
  * @summary Set a user\'s password
1618
1733
  * @param {string} orgId
1619
1734
  * @param {string} userId
@@ -1735,7 +1850,7 @@ const AdminUsersApiFactory = function (configuration, basePath, axios) {
1735
1850
  return localVarFp.addUserGroup(requestParameters.orgId, requestParameters.userId, options).then((request) => request(axios, basePath));
1736
1851
  },
1737
1852
  /**
1738
- *
1853
+ * Grants one permission to the user directly. The caller must hold the permission (403 otherwise). A permission that opens the admin portal makes an active user an administrator, who takes an admin seat: 403 `plan_limit_reached` (`limit`: `admin_seats`) when the plan has none free. On a plan with a hard monthly-active-user cap, an administrator also has a place kept inside the limit, so a user who has not been active this month needs a free place (`limit`: `mau`). A user or permission outside this organization is 404.
1739
1854
  * @summary Assign a permission to a user
1740
1855
  * @param {AdminUsersApiAddUserPermissionRequest} requestParameters Request parameters.
1741
1856
  * @param {*} [options] Override http request option.
@@ -1755,7 +1870,7 @@ const AdminUsersApiFactory = function (configuration, basePath, axios) {
1755
1870
  return localVarFp.addUserRole(requestParameters.orgId, requestParameters.userId, options).then((request) => request(axios, basePath));
1756
1871
  },
1757
1872
  /**
1758
- * Rebinds legacy bare-NameID users to `idp_id`, keeping their NameID: either `user_ids`, or every legacy user whose email domain the IdP\'s allowed email domains claim (`all_matching_domains: true`). Users the caller does not outrank, or whose NameID is already linked at that IdP, are skipped. `dry_run` (default true) only reports what would change. A real run revokes each relinked user\'s sessions, notifies them and is audited (identity.link.created per user, identity.link.bulk_relinked once); signed-in admins need fresh MFA.
1873
+ * Rebinds legacy bare-NameID users to `idp_id`, keeping their NameID: either `user_ids`, or every legacy user whose email domain the IdP\'s allowed email domains claim (`all_matching_domains: true`). Users the caller does not outrank, or whose NameID is already linked at that IdP, are skipped. `dry_run` (default true) only reports what would change. A real run revokes each relinked user\'s sessions, notifies them and is audited (identity.link.created per user, identity.link.bulk_relinked once); signed-in admins need fresh MFA. An access token must come from a sign-in within the last 10 minutes (401 insufficient_user_authentication otherwise), except for a request that sends `\"dry_run\": true`.
1759
1874
  * @summary Relink legacy SAML users to an IdP
1760
1875
  * @param {AdminUsersApiAdminIdentitiesLegacySamlRelinkRequest} requestParameters Request parameters.
1761
1876
  * @param {*} [options] Override http request option.
@@ -1804,6 +1919,16 @@ const AdminUsersApiFactory = function (configuration, basePath, axios) {
1804
1919
  adminIdentitiesUnlink(requestParameters, options) {
1805
1920
  return localVarFp.adminIdentitiesUnlink(requestParameters.type, requestParameters.orgId, requestParameters.userId, options).then((request) => request(axios, basePath));
1806
1921
  },
1922
+ /**
1923
+ * Restores a user that inbound SCIM soft-deleted (list them with GET /users?deleted=true). The account keeps the roles, groups and permissions that it still holds, and its active and blocked state. Its sessions and tokens stay revoked: the user signs in again. An erased user cannot be restored.
1924
+ * @summary Restore a deleted user
1925
+ * @param {AdminUsersApiAdminUsersRestoreRequest} requestParameters Request parameters.
1926
+ * @param {*} [options] Override http request option.
1927
+ * @throws {RequiredError}
1928
+ */
1929
+ adminUsersRestore(requestParameters, options) {
1930
+ return localVarFp.adminUsersRestore(requestParameters.orgId, requestParameters.userId, options).then((request) => request(axios, basePath));
1931
+ },
1807
1932
  /**
1808
1933
  *
1809
1934
  * @summary Block a user
@@ -1882,7 +2007,7 @@ const AdminUsersApiFactory = function (configuration, basePath, axios) {
1882
2007
  * @throws {RequiredError}
1883
2008
  */
1884
2009
  listUsers(requestParameters, options) {
1885
- return localVarFp.listUsers(requestParameters.orgId, options).then((request) => request(axios, basePath));
2010
+ return localVarFp.listUsers(requestParameters.orgId, requestParameters.page, requestParameters.limit, requestParameters.search, requestParameters.active, requestParameters.blocked, requestParameters.deleted, requestParameters.emailVerified, requestParameters.mfaEnabled, requestParameters.role, requestParameters.group, requestParameters.sortBy, requestParameters.sortDir, options).then((request) => request(axios, basePath));
1886
2011
  },
1887
2012
  /**
1888
2013
  *
@@ -1956,7 +2081,7 @@ const AdminUsersApiFactory = function (configuration, basePath, axios) {
1956
2081
  return localVarFp.sendUserVerificationEmail(requestParameters.orgId, requestParameters.userId, options).then((request) => request(axios, basePath));
1957
2082
  },
1958
2083
  /**
1959
- *
2084
+ * Needs `users.edit`, and the caller must hold every permission of the user. A signed-in administrator must have signed in or passed MFA within the last 10 minutes: a Bearer token needs a fresh `auth_time` (otherwise 401 `insufficient_user_authentication`), and an administrator who holds a second factor sends `X-MFA-Challenge` with an approved step_up challenge (otherwise 403 `step_up_required`). Organization API keys are not subject to this check.
1960
2085
  * @summary Set a user\'s password
1961
2086
  * @param {AdminUsersApiSetUserPasswordRequest} requestParameters Request parameters.
1962
2087
  * @param {*} [options] Override http request option.
@@ -1966,7 +2091,7 @@ const AdminUsersApiFactory = function (configuration, basePath, axios) {
1966
2091
  return localVarFp.setUserPassword(requestParameters.orgId, requestParameters.userId, options).then((request) => request(axios, basePath));
1967
2092
  },
1968
2093
  /**
1969
- *
2094
+ * Needs `users.edit`, and the caller must hold every permission of the user. A signed-in administrator must have signed in or passed MFA within the last 10 minutes: a Bearer token needs a fresh `auth_time` (otherwise 401 `insufficient_user_authentication`), and an administrator who holds a second factor sends `X-MFA-Challenge` with an approved step_up challenge (otherwise 403 `step_up_required`). Organization API keys are not subject to this check.
1970
2095
  * @summary Set a user\'s password
1971
2096
  * @param {AdminUsersApiSetUserPasswordPostRequest} requestParameters Request parameters.
1972
2097
  * @param {*} [options] Override http request option.
@@ -2047,7 +2172,7 @@ class AdminUsersApi extends base_1.BaseAPI {
2047
2172
  return (0, exports.AdminUsersApiFp)(this.configuration).addUserGroup(requestParameters.orgId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
2048
2173
  }
2049
2174
  /**
2050
- *
2175
+ * Grants one permission to the user directly. The caller must hold the permission (403 otherwise). A permission that opens the admin portal makes an active user an administrator, who takes an admin seat: 403 `plan_limit_reached` (`limit`: `admin_seats`) when the plan has none free. On a plan with a hard monthly-active-user cap, an administrator also has a place kept inside the limit, so a user who has not been active this month needs a free place (`limit`: `mau`). A user or permission outside this organization is 404.
2051
2176
  * @summary Assign a permission to a user
2052
2177
  * @param {AdminUsersApiAddUserPermissionRequest} requestParameters Request parameters.
2053
2178
  * @param {*} [options] Override http request option.
@@ -2069,7 +2194,7 @@ class AdminUsersApi extends base_1.BaseAPI {
2069
2194
  return (0, exports.AdminUsersApiFp)(this.configuration).addUserRole(requestParameters.orgId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
2070
2195
  }
2071
2196
  /**
2072
- * Rebinds legacy bare-NameID users to `idp_id`, keeping their NameID: either `user_ids`, or every legacy user whose email domain the IdP\'s allowed email domains claim (`all_matching_domains: true`). Users the caller does not outrank, or whose NameID is already linked at that IdP, are skipped. `dry_run` (default true) only reports what would change. A real run revokes each relinked user\'s sessions, notifies them and is audited (identity.link.created per user, identity.link.bulk_relinked once); signed-in admins need fresh MFA.
2197
+ * Rebinds legacy bare-NameID users to `idp_id`, keeping their NameID: either `user_ids`, or every legacy user whose email domain the IdP\'s allowed email domains claim (`all_matching_domains: true`). Users the caller does not outrank, or whose NameID is already linked at that IdP, are skipped. `dry_run` (default true) only reports what would change. A real run revokes each relinked user\'s sessions, notifies them and is audited (identity.link.created per user, identity.link.bulk_relinked once); signed-in admins need fresh MFA. An access token must come from a sign-in within the last 10 minutes (401 insufficient_user_authentication otherwise), except for a request that sends `\"dry_run\": true`.
2073
2198
  * @summary Relink legacy SAML users to an IdP
2074
2199
  * @param {AdminUsersApiAdminIdentitiesLegacySamlRelinkRequest} requestParameters Request parameters.
2075
2200
  * @param {*} [options] Override http request option.
@@ -2123,6 +2248,17 @@ class AdminUsersApi extends base_1.BaseAPI {
2123
2248
  adminIdentitiesUnlink(requestParameters, options) {
2124
2249
  return (0, exports.AdminUsersApiFp)(this.configuration).adminIdentitiesUnlink(requestParameters.type, requestParameters.orgId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
2125
2250
  }
2251
+ /**
2252
+ * Restores a user that inbound SCIM soft-deleted (list them with GET /users?deleted=true). The account keeps the roles, groups and permissions that it still holds, and its active and blocked state. Its sessions and tokens stay revoked: the user signs in again. An erased user cannot be restored.
2253
+ * @summary Restore a deleted user
2254
+ * @param {AdminUsersApiAdminUsersRestoreRequest} requestParameters Request parameters.
2255
+ * @param {*} [options] Override http request option.
2256
+ * @throws {RequiredError}
2257
+ * @memberof AdminUsersApi
2258
+ */
2259
+ adminUsersRestore(requestParameters, options) {
2260
+ return (0, exports.AdminUsersApiFp)(this.configuration).adminUsersRestore(requestParameters.orgId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
2261
+ }
2126
2262
  /**
2127
2263
  *
2128
2264
  * @summary Block a user
@@ -2209,7 +2345,7 @@ class AdminUsersApi extends base_1.BaseAPI {
2209
2345
  * @memberof AdminUsersApi
2210
2346
  */
2211
2347
  listUsers(requestParameters, options) {
2212
- return (0, exports.AdminUsersApiFp)(this.configuration).listUsers(requestParameters.orgId, options).then((request) => request(this.axios, this.basePath));
2348
+ return (0, exports.AdminUsersApiFp)(this.configuration).listUsers(requestParameters.orgId, requestParameters.page, requestParameters.limit, requestParameters.search, requestParameters.active, requestParameters.blocked, requestParameters.deleted, requestParameters.emailVerified, requestParameters.mfaEnabled, requestParameters.role, requestParameters.group, requestParameters.sortBy, requestParameters.sortDir, options).then((request) => request(this.axios, this.basePath));
2213
2349
  }
2214
2350
  /**
2215
2351
  *
@@ -2290,7 +2426,7 @@ class AdminUsersApi extends base_1.BaseAPI {
2290
2426
  return (0, exports.AdminUsersApiFp)(this.configuration).sendUserVerificationEmail(requestParameters.orgId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
2291
2427
  }
2292
2428
  /**
2293
- *
2429
+ * Needs `users.edit`, and the caller must hold every permission of the user. A signed-in administrator must have signed in or passed MFA within the last 10 minutes: a Bearer token needs a fresh `auth_time` (otherwise 401 `insufficient_user_authentication`), and an administrator who holds a second factor sends `X-MFA-Challenge` with an approved step_up challenge (otherwise 403 `step_up_required`). Organization API keys are not subject to this check.
2294
2430
  * @summary Set a user\'s password
2295
2431
  * @param {AdminUsersApiSetUserPasswordRequest} requestParameters Request parameters.
2296
2432
  * @param {*} [options] Override http request option.
@@ -2301,7 +2437,7 @@ class AdminUsersApi extends base_1.BaseAPI {
2301
2437
  return (0, exports.AdminUsersApiFp)(this.configuration).setUserPassword(requestParameters.orgId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
2302
2438
  }
2303
2439
  /**
2304
- *
2440
+ * Needs `users.edit`, and the caller must hold every permission of the user. A signed-in administrator must have signed in or passed MFA within the last 10 minutes: a Bearer token needs a fresh `auth_time` (otherwise 401 `insufficient_user_authentication`), and an administrator who holds a second factor sends `X-MFA-Challenge` with an approved step_up challenge (otherwise 403 `step_up_required`). Organization API keys are not subject to this check.
2305
2441
  * @summary Set a user\'s password
2306
2442
  * @param {AdminUsersApiSetUserPasswordPostRequest} requestParameters Request parameters.
2307
2443
  * @param {*} [options] Override http request option.
@@ -2379,3 +2515,24 @@ var AdminIdentitiesUnlinkType;
2379
2515
  AdminIdentitiesUnlinkType["LDAP"] = "ldap";
2380
2516
  AdminIdentitiesUnlinkType["SOCIAL"] = "social";
2381
2517
  })(AdminIdentitiesUnlinkType || (exports.AdminIdentitiesUnlinkType = AdminIdentitiesUnlinkType = {}));
2518
+ /**
2519
+ * @export
2520
+ * @enum {string}
2521
+ */
2522
+ var ListUsersSortBy;
2523
+ (function (ListUsersSortBy) {
2524
+ ListUsersSortBy["EMAIL"] = "email";
2525
+ ListUsersSortBy["NAME"] = "name";
2526
+ ListUsersSortBy["USERNAME"] = "username";
2527
+ ListUsersSortBy["CREATED_AT"] = "createdAt";
2528
+ ListUsersSortBy["LAST_LOGIN_AT"] = "lastLoginAt";
2529
+ })(ListUsersSortBy || (exports.ListUsersSortBy = ListUsersSortBy = {}));
2530
+ /**
2531
+ * @export
2532
+ * @enum {string}
2533
+ */
2534
+ var ListUsersSortDir;
2535
+ (function (ListUsersSortDir) {
2536
+ ListUsersSortDir["ASC"] = "ASC";
2537
+ ListUsersSortDir["DESC"] = "DESC";
2538
+ })(ListUsersSortDir || (exports.ListUsersSortDir = ListUsersSortDir = {}));
@@ -33,7 +33,7 @@ import type { VerifyAgentCardResponse } from '../models';
33
33
  */
34
34
  export declare const AgentsApiAxiosParamCreator: (configuration?: Configuration) => {
35
35
  /**
36
- * POST /orgs/{orgId}/api/v1/agents/ask Body: { \"action\": \"document.read\", \"context\": {\"id\": \"123\"} }
36
+ * POST /orgs/{orgId}/api/v1/agents/ask Body: { \"action\": \"document:read\", \"context\": {\"id\": \"123\"} }
37
37
  * @summary Agent-friendly permission check (Natural Language style)
38
38
  * @param {string} orgId
39
39
  * @param {AskRequest} askRequest
@@ -128,7 +128,7 @@ export declare const AgentsApiAxiosParamCreator: (configuration?: Configuration)
128
128
  */
129
129
  export declare const AgentsApiFp: (configuration?: Configuration) => {
130
130
  /**
131
- * POST /orgs/{orgId}/api/v1/agents/ask Body: { \"action\": \"document.read\", \"context\": {\"id\": \"123\"} }
131
+ * POST /orgs/{orgId}/api/v1/agents/ask Body: { \"action\": \"document:read\", \"context\": {\"id\": \"123\"} }
132
132
  * @summary Agent-friendly permission check (Natural Language style)
133
133
  * @param {string} orgId
134
134
  * @param {AskRequest} askRequest
@@ -223,7 +223,7 @@ export declare const AgentsApiFp: (configuration?: Configuration) => {
223
223
  */
224
224
  export declare const AgentsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
225
225
  /**
226
- * POST /orgs/{orgId}/api/v1/agents/ask Body: { \"action\": \"document.read\", \"context\": {\"id\": \"123\"} }
226
+ * POST /orgs/{orgId}/api/v1/agents/ask Body: { \"action\": \"document:read\", \"context\": {\"id\": \"123\"} }
227
227
  * @summary Agent-friendly permission check (Natural Language style)
228
228
  * @param {AgentsApiAskRequest} requestParameters Request parameters.
229
229
  * @param {*} [options] Override http request option.
@@ -308,7 +308,7 @@ export declare const AgentsApiFactory: (configuration?: Configuration, basePath?
308
308
  */
309
309
  export interface AgentsApiInterface {
310
310
  /**
311
- * POST /orgs/{orgId}/api/v1/agents/ask Body: { \"action\": \"document.read\", \"context\": {\"id\": \"123\"} }
311
+ * POST /orgs/{orgId}/api/v1/agents/ask Body: { \"action\": \"document:read\", \"context\": {\"id\": \"123\"} }
312
312
  * @summary Agent-friendly permission check (Natural Language style)
313
313
  * @param {AgentsApiAskRequest} requestParameters Request parameters.
314
314
  * @param {*} [options] Override http request option.
@@ -590,7 +590,7 @@ export interface AgentsApiVerifyAgentCardRequest {
590
590
  */
591
591
  export declare class AgentsApi extends BaseAPI implements AgentsApiInterface {
592
592
  /**
593
- * POST /orgs/{orgId}/api/v1/agents/ask Body: { \"action\": \"document.read\", \"context\": {\"id\": \"123\"} }
593
+ * POST /orgs/{orgId}/api/v1/agents/ask Body: { \"action\": \"document:read\", \"context\": {\"id\": \"123\"} }
594
594
  * @summary Agent-friendly permission check (Natural Language style)
595
595
  * @param {AgentsApiAskRequest} requestParameters Request parameters.
596
596
  * @param {*} [options] Override http request option.
@@ -36,7 +36,7 @@ const base_1 = require("../base");
36
36
  const AgentsApiAxiosParamCreator = function (configuration) {
37
37
  return {
38
38
  /**
39
- * POST /orgs/{orgId}/api/v1/agents/ask Body: { \"action\": \"document.read\", \"context\": {\"id\": \"123\"} }
39
+ * POST /orgs/{orgId}/api/v1/agents/ask Body: { \"action\": \"document:read\", \"context\": {\"id\": \"123\"} }
40
40
  * @summary Agent-friendly permission check (Natural Language style)
41
41
  * @param {string} orgId
42
42
  * @param {AskRequest} askRequest
@@ -421,7 +421,7 @@ const AgentsApiFp = function (configuration) {
421
421
  const localVarAxiosParamCreator = (0, exports.AgentsApiAxiosParamCreator)(configuration);
422
422
  return {
423
423
  /**
424
- * POST /orgs/{orgId}/api/v1/agents/ask Body: { \"action\": \"document.read\", \"context\": {\"id\": \"123\"} }
424
+ * POST /orgs/{orgId}/api/v1/agents/ask Body: { \"action\": \"document:read\", \"context\": {\"id\": \"123\"} }
425
425
  * @summary Agent-friendly permission check (Natural Language style)
426
426
  * @param {string} orgId
427
427
  * @param {AskRequest} askRequest
@@ -598,7 +598,7 @@ const AgentsApiFactory = function (configuration, basePath, axios) {
598
598
  const localVarFp = (0, exports.AgentsApiFp)(configuration);
599
599
  return {
600
600
  /**
601
- * POST /orgs/{orgId}/api/v1/agents/ask Body: { \"action\": \"document.read\", \"context\": {\"id\": \"123\"} }
601
+ * POST /orgs/{orgId}/api/v1/agents/ask Body: { \"action\": \"document:read\", \"context\": {\"id\": \"123\"} }
602
602
  * @summary Agent-friendly permission check (Natural Language style)
603
603
  * @param {AgentsApiAskRequest} requestParameters Request parameters.
604
604
  * @param {*} [options] Override http request option.
@@ -706,7 +706,7 @@ exports.AgentsApiFactory = AgentsApiFactory;
706
706
  */
707
707
  class AgentsApi extends base_1.BaseAPI {
708
708
  /**
709
- * POST /orgs/{orgId}/api/v1/agents/ask Body: { \"action\": \"document.read\", \"context\": {\"id\": \"123\"} }
709
+ * POST /orgs/{orgId}/api/v1/agents/ask Body: { \"action\": \"document:read\", \"context\": {\"id\": \"123\"} }
710
710
  * @summary Agent-friendly permission check (Natural Language style)
711
711
  * @param {AgentsApiAskRequest} requestParameters Request parameters.
712
712
  * @param {*} [options] Override http request option.