@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
@@ -71,7 +71,7 @@ export const AdminUsersApiAxiosParamCreator = function (configuration) {
71
71
  };
72
72
  }),
73
73
  /**
74
- *
74
+ * 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.
75
75
  * @summary Assign a permission to a user
76
76
  * @param {string} orgId
77
77
  * @param {string} userId
@@ -147,7 +147,7 @@ export const AdminUsersApiAxiosParamCreator = function (configuration) {
147
147
  };
148
148
  }),
149
149
  /**
150
- * 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.
150
+ * 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`.
151
151
  * @summary Relink legacy SAML users to an IdP
152
152
  * @param {string} orgId
153
153
  * @param {AdminIdentitiesLegacySamlRelinkRequest} adminIdentitiesLegacySamlRelinkRequest
@@ -346,6 +346,44 @@ export const AdminUsersApiAxiosParamCreator = function (configuration) {
346
346
  options: localVarRequestOptions,
347
347
  };
348
348
  }),
349
+ /**
350
+ * 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.
351
+ * @summary Restore a deleted user
352
+ * @param {string} orgId
353
+ * @param {string} userId
354
+ * @param {*} [options] Override http request option.
355
+ * @throws {RequiredError}
356
+ */
357
+ adminUsersRestore: (orgId_1, userId_1, ...args_1) => __awaiter(this, [orgId_1, userId_1, ...args_1], void 0, function* (orgId, userId, options = {}) {
358
+ // verify required parameter 'orgId' is not null or undefined
359
+ assertParamExists('adminUsersRestore', 'orgId', orgId);
360
+ // verify required parameter 'userId' is not null or undefined
361
+ assertParamExists('adminUsersRestore', 'userId', userId);
362
+ const localVarPath = `/orgs/{orgId}/api/v1/admin/users/{userId}/restore`
363
+ .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)))
364
+ .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
365
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
366
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
367
+ let baseOptions;
368
+ if (configuration) {
369
+ baseOptions = configuration.baseOptions;
370
+ }
371
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
372
+ const localVarHeaderParameter = {};
373
+ const localVarQueryParameter = {};
374
+ // authentication ApiKeyAuth required
375
+ yield setApiKeyToObject(localVarHeaderParameter, "X-API-Key", configuration);
376
+ // authentication BearerAuth required
377
+ // http bearer authentication required
378
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
379
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
380
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
381
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
382
+ return {
383
+ url: toPathString(localVarUrlObj),
384
+ options: localVarRequestOptions,
385
+ };
386
+ }),
349
387
  /**
350
388
  *
351
389
  * @summary Block a user
@@ -612,10 +650,22 @@ export const AdminUsersApiAxiosParamCreator = function (configuration) {
612
650
  *
613
651
  * @summary List users
614
652
  * @param {string} orgId
615
- * @param {*} [options] Override http request option.
616
- * @throws {RequiredError}
617
- */
618
- listUsers: (orgId_1, ...args_1) => __awaiter(this, [orgId_1, ...args_1], void 0, function* (orgId, options = {}) {
653
+ * @param {number} [page] Page number.
654
+ * @param {number} [limit] Users per page (1 to 100).
655
+ * @param {string} [search] Users whose email address, name or username contains this text (case-sensitive; the first 100 characters are used).
656
+ * @param {boolean} [active] Only active (`true`) or inactive (`false`) users.
657
+ * @param {boolean} [blocked] Only blocked (`true`) or not blocked (`false`) users.
658
+ * @param {boolean} [deleted] `true` lists only the users that SCIM deleted (soft-deleted). Without it, or with `false`, the list leaves them out.
659
+ * @param {boolean} [emailVerified] Only users whose email address is verified (`true`) or not (`false`).
660
+ * @param {boolean} [mfaEnabled] Only users with (`true`) or without (`false`) multi-factor authentication.
661
+ * @param {string} [role] Only users who hold the role with this slug.
662
+ * @param {string} [group] Only members of the group with this slug.
663
+ * @param {ListUsersSortBy} [sortBy] Sort field. Without it the list is sorted by createdAt, newest first. Another value sorts by createdAt.
664
+ * @param {ListUsersSortDir} [sortDir] Sort direction. Used only together with sortBy.
665
+ * @param {*} [options] Override http request option.
666
+ * @throws {RequiredError}
667
+ */
668
+ 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 = {}) {
619
669
  // verify required parameter 'orgId' is not null or undefined
620
670
  assertParamExists('listUsers', 'orgId', orgId);
621
671
  const localVarPath = `/orgs/{orgId}/api/v1/admin/users`
@@ -634,6 +684,42 @@ export const AdminUsersApiAxiosParamCreator = function (configuration) {
634
684
  // authentication BearerAuth required
635
685
  // http bearer authentication required
636
686
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
687
+ if (page !== undefined) {
688
+ localVarQueryParameter['page'] = page;
689
+ }
690
+ if (limit !== undefined) {
691
+ localVarQueryParameter['limit'] = limit;
692
+ }
693
+ if (search !== undefined) {
694
+ localVarQueryParameter['search'] = search;
695
+ }
696
+ if (active !== undefined) {
697
+ localVarQueryParameter['active'] = active;
698
+ }
699
+ if (blocked !== undefined) {
700
+ localVarQueryParameter['blocked'] = blocked;
701
+ }
702
+ if (deleted !== undefined) {
703
+ localVarQueryParameter['deleted'] = deleted;
704
+ }
705
+ if (emailVerified !== undefined) {
706
+ localVarQueryParameter['emailVerified'] = emailVerified;
707
+ }
708
+ if (mfaEnabled !== undefined) {
709
+ localVarQueryParameter['mfaEnabled'] = mfaEnabled;
710
+ }
711
+ if (role !== undefined) {
712
+ localVarQueryParameter['role'] = role;
713
+ }
714
+ if (group !== undefined) {
715
+ localVarQueryParameter['group'] = group;
716
+ }
717
+ if (sortBy !== undefined) {
718
+ localVarQueryParameter['sortBy'] = sortBy;
719
+ }
720
+ if (sortDir !== undefined) {
721
+ localVarQueryParameter['sortDir'] = sortDir;
722
+ }
637
723
  setSearchParams(localVarUrlObj, localVarQueryParameter);
638
724
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
639
725
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -922,7 +1008,7 @@ export const AdminUsersApiAxiosParamCreator = function (configuration) {
922
1008
  };
923
1009
  }),
924
1010
  /**
925
- *
1011
+ * 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.
926
1012
  * @summary Set a user\'s password
927
1013
  * @param {string} orgId
928
1014
  * @param {string} userId
@@ -960,7 +1046,7 @@ export const AdminUsersApiAxiosParamCreator = function (configuration) {
960
1046
  };
961
1047
  }),
962
1048
  /**
963
- *
1049
+ * 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.
964
1050
  * @summary Set a user\'s password
965
1051
  * @param {string} orgId
966
1052
  * @param {string} userId
@@ -1214,7 +1300,7 @@ export const AdminUsersApiFp = function (configuration) {
1214
1300
  });
1215
1301
  },
1216
1302
  /**
1217
- *
1303
+ * 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.
1218
1304
  * @summary Assign a permission to a user
1219
1305
  * @param {string} orgId
1220
1306
  * @param {string} userId
@@ -1248,7 +1334,7 @@ export const AdminUsersApiFp = function (configuration) {
1248
1334
  });
1249
1335
  },
1250
1336
  /**
1251
- * 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.
1337
+ * 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`.
1252
1338
  * @summary Relink legacy SAML users to an IdP
1253
1339
  * @param {string} orgId
1254
1340
  * @param {AdminIdentitiesLegacySamlRelinkRequest} adminIdentitiesLegacySamlRelinkRequest
@@ -1334,6 +1420,23 @@ export const AdminUsersApiFp = function (configuration) {
1334
1420
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1335
1421
  });
1336
1422
  },
1423
+ /**
1424
+ * 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.
1425
+ * @summary Restore a deleted user
1426
+ * @param {string} orgId
1427
+ * @param {string} userId
1428
+ * @param {*} [options] Override http request option.
1429
+ * @throws {RequiredError}
1430
+ */
1431
+ adminUsersRestore(orgId, userId, options) {
1432
+ return __awaiter(this, void 0, void 0, function* () {
1433
+ var _a, _b, _c;
1434
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminUsersRestore(orgId, userId, options);
1435
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1436
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminUsersApi.adminUsersRestore']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1437
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1438
+ });
1439
+ },
1337
1440
  /**
1338
1441
  *
1339
1442
  * @summary Block a user
@@ -1456,13 +1559,25 @@ export const AdminUsersApiFp = function (configuration) {
1456
1559
  *
1457
1560
  * @summary List users
1458
1561
  * @param {string} orgId
1459
- * @param {*} [options] Override http request option.
1460
- * @throws {RequiredError}
1461
- */
1462
- listUsers(orgId, options) {
1562
+ * @param {number} [page] Page number.
1563
+ * @param {number} [limit] Users per page (1 to 100).
1564
+ * @param {string} [search] Users whose email address, name or username contains this text (case-sensitive; the first 100 characters are used).
1565
+ * @param {boolean} [active] Only active (`true`) or inactive (`false`) users.
1566
+ * @param {boolean} [blocked] Only blocked (`true`) or not blocked (`false`) users.
1567
+ * @param {boolean} [deleted] `true` lists only the users that SCIM deleted (soft-deleted). Without it, or with `false`, the list leaves them out.
1568
+ * @param {boolean} [emailVerified] Only users whose email address is verified (`true`) or not (`false`).
1569
+ * @param {boolean} [mfaEnabled] Only users with (`true`) or without (`false`) multi-factor authentication.
1570
+ * @param {string} [role] Only users who hold the role with this slug.
1571
+ * @param {string} [group] Only members of the group with this slug.
1572
+ * @param {ListUsersSortBy} [sortBy] Sort field. Without it the list is sorted by createdAt, newest first. Another value sorts by createdAt.
1573
+ * @param {ListUsersSortDir} [sortDir] Sort direction. Used only together with sortBy.
1574
+ * @param {*} [options] Override http request option.
1575
+ * @throws {RequiredError}
1576
+ */
1577
+ listUsers(orgId, page, limit, search, active, blocked, deleted, emailVerified, mfaEnabled, role, group, sortBy, sortDir, options) {
1463
1578
  return __awaiter(this, void 0, void 0, function* () {
1464
1579
  var _a, _b, _c;
1465
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listUsers(orgId, options);
1580
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listUsers(orgId, page, limit, search, active, blocked, deleted, emailVerified, mfaEnabled, role, group, sortBy, sortDir, options);
1466
1581
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1467
1582
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminUsersApi.listUsers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1468
1583
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1592,7 +1707,7 @@ export const AdminUsersApiFp = function (configuration) {
1592
1707
  });
1593
1708
  },
1594
1709
  /**
1595
- *
1710
+ * 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.
1596
1711
  * @summary Set a user\'s password
1597
1712
  * @param {string} orgId
1598
1713
  * @param {string} userId
@@ -1609,7 +1724,7 @@ export const AdminUsersApiFp = function (configuration) {
1609
1724
  });
1610
1725
  },
1611
1726
  /**
1612
- *
1727
+ * 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.
1613
1728
  * @summary Set a user\'s password
1614
1729
  * @param {string} orgId
1615
1730
  * @param {string} userId
@@ -1730,7 +1845,7 @@ export const AdminUsersApiFactory = function (configuration, basePath, axios) {
1730
1845
  return localVarFp.addUserGroup(requestParameters.orgId, requestParameters.userId, options).then((request) => request(axios, basePath));
1731
1846
  },
1732
1847
  /**
1733
- *
1848
+ * 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.
1734
1849
  * @summary Assign a permission to a user
1735
1850
  * @param {AdminUsersApiAddUserPermissionRequest} requestParameters Request parameters.
1736
1851
  * @param {*} [options] Override http request option.
@@ -1750,7 +1865,7 @@ export const AdminUsersApiFactory = function (configuration, basePath, axios) {
1750
1865
  return localVarFp.addUserRole(requestParameters.orgId, requestParameters.userId, options).then((request) => request(axios, basePath));
1751
1866
  },
1752
1867
  /**
1753
- * 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.
1868
+ * 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`.
1754
1869
  * @summary Relink legacy SAML users to an IdP
1755
1870
  * @param {AdminUsersApiAdminIdentitiesLegacySamlRelinkRequest} requestParameters Request parameters.
1756
1871
  * @param {*} [options] Override http request option.
@@ -1799,6 +1914,16 @@ export const AdminUsersApiFactory = function (configuration, basePath, axios) {
1799
1914
  adminIdentitiesUnlink(requestParameters, options) {
1800
1915
  return localVarFp.adminIdentitiesUnlink(requestParameters.type, requestParameters.orgId, requestParameters.userId, options).then((request) => request(axios, basePath));
1801
1916
  },
1917
+ /**
1918
+ * 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.
1919
+ * @summary Restore a deleted user
1920
+ * @param {AdminUsersApiAdminUsersRestoreRequest} requestParameters Request parameters.
1921
+ * @param {*} [options] Override http request option.
1922
+ * @throws {RequiredError}
1923
+ */
1924
+ adminUsersRestore(requestParameters, options) {
1925
+ return localVarFp.adminUsersRestore(requestParameters.orgId, requestParameters.userId, options).then((request) => request(axios, basePath));
1926
+ },
1802
1927
  /**
1803
1928
  *
1804
1929
  * @summary Block a user
@@ -1877,7 +2002,7 @@ export const AdminUsersApiFactory = function (configuration, basePath, axios) {
1877
2002
  * @throws {RequiredError}
1878
2003
  */
1879
2004
  listUsers(requestParameters, options) {
1880
- return localVarFp.listUsers(requestParameters.orgId, options).then((request) => request(axios, basePath));
2005
+ 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));
1881
2006
  },
1882
2007
  /**
1883
2008
  *
@@ -1951,7 +2076,7 @@ export const AdminUsersApiFactory = function (configuration, basePath, axios) {
1951
2076
  return localVarFp.sendUserVerificationEmail(requestParameters.orgId, requestParameters.userId, options).then((request) => request(axios, basePath));
1952
2077
  },
1953
2078
  /**
1954
- *
2079
+ * 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.
1955
2080
  * @summary Set a user\'s password
1956
2081
  * @param {AdminUsersApiSetUserPasswordRequest} requestParameters Request parameters.
1957
2082
  * @param {*} [options] Override http request option.
@@ -1961,7 +2086,7 @@ export const AdminUsersApiFactory = function (configuration, basePath, axios) {
1961
2086
  return localVarFp.setUserPassword(requestParameters.orgId, requestParameters.userId, options).then((request) => request(axios, basePath));
1962
2087
  },
1963
2088
  /**
1964
- *
2089
+ * 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.
1965
2090
  * @summary Set a user\'s password
1966
2091
  * @param {AdminUsersApiSetUserPasswordPostRequest} requestParameters Request parameters.
1967
2092
  * @param {*} [options] Override http request option.
@@ -2041,7 +2166,7 @@ export class AdminUsersApi extends BaseAPI {
2041
2166
  return AdminUsersApiFp(this.configuration).addUserGroup(requestParameters.orgId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
2042
2167
  }
2043
2168
  /**
2044
- *
2169
+ * 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.
2045
2170
  * @summary Assign a permission to a user
2046
2171
  * @param {AdminUsersApiAddUserPermissionRequest} requestParameters Request parameters.
2047
2172
  * @param {*} [options] Override http request option.
@@ -2063,7 +2188,7 @@ export class AdminUsersApi extends BaseAPI {
2063
2188
  return AdminUsersApiFp(this.configuration).addUserRole(requestParameters.orgId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
2064
2189
  }
2065
2190
  /**
2066
- * 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.
2191
+ * 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`.
2067
2192
  * @summary Relink legacy SAML users to an IdP
2068
2193
  * @param {AdminUsersApiAdminIdentitiesLegacySamlRelinkRequest} requestParameters Request parameters.
2069
2194
  * @param {*} [options] Override http request option.
@@ -2117,6 +2242,17 @@ export class AdminUsersApi extends BaseAPI {
2117
2242
  adminIdentitiesUnlink(requestParameters, options) {
2118
2243
  return AdminUsersApiFp(this.configuration).adminIdentitiesUnlink(requestParameters.type, requestParameters.orgId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
2119
2244
  }
2245
+ /**
2246
+ * 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.
2247
+ * @summary Restore a deleted user
2248
+ * @param {AdminUsersApiAdminUsersRestoreRequest} requestParameters Request parameters.
2249
+ * @param {*} [options] Override http request option.
2250
+ * @throws {RequiredError}
2251
+ * @memberof AdminUsersApi
2252
+ */
2253
+ adminUsersRestore(requestParameters, options) {
2254
+ return AdminUsersApiFp(this.configuration).adminUsersRestore(requestParameters.orgId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
2255
+ }
2120
2256
  /**
2121
2257
  *
2122
2258
  * @summary Block a user
@@ -2203,7 +2339,7 @@ export class AdminUsersApi extends BaseAPI {
2203
2339
  * @memberof AdminUsersApi
2204
2340
  */
2205
2341
  listUsers(requestParameters, options) {
2206
- return AdminUsersApiFp(this.configuration).listUsers(requestParameters.orgId, options).then((request) => request(this.axios, this.basePath));
2342
+ return 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));
2207
2343
  }
2208
2344
  /**
2209
2345
  *
@@ -2284,7 +2420,7 @@ export class AdminUsersApi extends BaseAPI {
2284
2420
  return AdminUsersApiFp(this.configuration).sendUserVerificationEmail(requestParameters.orgId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
2285
2421
  }
2286
2422
  /**
2287
- *
2423
+ * 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.
2288
2424
  * @summary Set a user\'s password
2289
2425
  * @param {AdminUsersApiSetUserPasswordRequest} requestParameters Request parameters.
2290
2426
  * @param {*} [options] Override http request option.
@@ -2295,7 +2431,7 @@ export class AdminUsersApi extends BaseAPI {
2295
2431
  return AdminUsersApiFp(this.configuration).setUserPassword(requestParameters.orgId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
2296
2432
  }
2297
2433
  /**
2298
- *
2434
+ * 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.
2299
2435
  * @summary Set a user\'s password
2300
2436
  * @param {AdminUsersApiSetUserPasswordPostRequest} requestParameters Request parameters.
2301
2437
  * @param {*} [options] Override http request option.
@@ -2372,3 +2508,24 @@ export var AdminIdentitiesUnlinkType;
2372
2508
  AdminIdentitiesUnlinkType["LDAP"] = "ldap";
2373
2509
  AdminIdentitiesUnlinkType["SOCIAL"] = "social";
2374
2510
  })(AdminIdentitiesUnlinkType || (AdminIdentitiesUnlinkType = {}));
2511
+ /**
2512
+ * @export
2513
+ * @enum {string}
2514
+ */
2515
+ export var ListUsersSortBy;
2516
+ (function (ListUsersSortBy) {
2517
+ ListUsersSortBy["EMAIL"] = "email";
2518
+ ListUsersSortBy["NAME"] = "name";
2519
+ ListUsersSortBy["USERNAME"] = "username";
2520
+ ListUsersSortBy["CREATED_AT"] = "createdAt";
2521
+ ListUsersSortBy["LAST_LOGIN_AT"] = "lastLoginAt";
2522
+ })(ListUsersSortBy || (ListUsersSortBy = {}));
2523
+ /**
2524
+ * @export
2525
+ * @enum {string}
2526
+ */
2527
+ export var ListUsersSortDir;
2528
+ (function (ListUsersSortDir) {
2529
+ ListUsersSortDir["ASC"] = "ASC";
2530
+ ListUsersSortDir["DESC"] = "DESC";
2531
+ })(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.
@@ -33,7 +33,7 @@ import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
33
33
  export const AgentsApiAxiosParamCreator = function (configuration) {
34
34
  return {
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
@@ -417,7 +417,7 @@ export const AgentsApiFp = function (configuration) {
417
417
  const localVarAxiosParamCreator = AgentsApiAxiosParamCreator(configuration);
418
418
  return {
419
419
  /**
420
- * POST /orgs/{orgId}/api/v1/agents/ask Body: { \"action\": \"document.read\", \"context\": {\"id\": \"123\"} }
420
+ * POST /orgs/{orgId}/api/v1/agents/ask Body: { \"action\": \"document:read\", \"context\": {\"id\": \"123\"} }
421
421
  * @summary Agent-friendly permission check (Natural Language style)
422
422
  * @param {string} orgId
423
423
  * @param {AskRequest} askRequest
@@ -593,7 +593,7 @@ export const AgentsApiFactory = function (configuration, basePath, axios) {
593
593
  const localVarFp = AgentsApiFp(configuration);
594
594
  return {
595
595
  /**
596
- * POST /orgs/{orgId}/api/v1/agents/ask Body: { \"action\": \"document.read\", \"context\": {\"id\": \"123\"} }
596
+ * POST /orgs/{orgId}/api/v1/agents/ask Body: { \"action\": \"document:read\", \"context\": {\"id\": \"123\"} }
597
597
  * @summary Agent-friendly permission check (Natural Language style)
598
598
  * @param {AgentsApiAskRequest} requestParameters Request parameters.
599
599
  * @param {*} [options] Override http request option.
@@ -700,7 +700,7 @@ export const AgentsApiFactory = function (configuration, basePath, axios) {
700
700
  */
701
701
  export class AgentsApi extends BaseAPI {
702
702
  /**
703
- * POST /orgs/{orgId}/api/v1/agents/ask Body: { \"action\": \"document.read\", \"context\": {\"id\": \"123\"} }
703
+ * POST /orgs/{orgId}/api/v1/agents/ask Body: { \"action\": \"document:read\", \"context\": {\"id\": \"123\"} }
704
704
  * @summary Agent-friendly permission check (Natural Language style)
705
705
  * @param {AgentsApiAskRequest} requestParameters Request parameters.
706
706
  * @param {*} [options] Override http request option.