@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
@@ -96,6 +96,40 @@ const OAuthApiAxiosParamCreator = function (configuration) {
96
96
  options: localVarRequestOptions,
97
97
  };
98
98
  }),
99
+ /**
100
+ * For applications that render their own sign-in form. Returns the sign-in methods that the organization offers, so that the form can show the next step after an address was typed. The answer does not depend on the address: `exists` is always `true`, and a known address and a new one get the same answer. Takes no credential and signs nobody in. A browser request must come from one of the allowed origins of the application named by `client_id`.
101
+ * @summary Sign-in methods for an email-first form
102
+ * @param {string} orgId
103
+ * @param {CheckEmailFirstRequest} checkEmailFirstRequest
104
+ * @param {*} [options] Override http request option.
105
+ * @throws {RequiredError}
106
+ */
107
+ checkEmailFirst: (orgId_1, checkEmailFirstRequest_1, ...args_1) => __awaiter(this, [orgId_1, checkEmailFirstRequest_1, ...args_1], void 0, function* (orgId, checkEmailFirstRequest, options = {}) {
108
+ // verify required parameter 'orgId' is not null or undefined
109
+ (0, common_1.assertParamExists)('checkEmailFirst', 'orgId', orgId);
110
+ // verify required parameter 'checkEmailFirstRequest' is not null or undefined
111
+ (0, common_1.assertParamExists)('checkEmailFirst', 'checkEmailFirstRequest', checkEmailFirstRequest);
112
+ const localVarPath = `/orgs/{orgId}/api/v1/oauth/check-email`
113
+ .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
114
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
115
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
116
+ let baseOptions;
117
+ if (configuration) {
118
+ baseOptions = configuration.baseOptions;
119
+ }
120
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
121
+ const localVarHeaderParameter = {};
122
+ const localVarQueryParameter = {};
123
+ localVarHeaderParameter['Content-Type'] = 'application/json';
124
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
125
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
126
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
127
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(checkEmailFirstRequest, localVarRequestOptions, configuration);
128
+ return {
129
+ url: (0, common_1.toPathString)(localVarUrlObj),
130
+ options: localVarRequestOptions,
131
+ };
132
+ }),
99
133
  /**
100
134
  * Starts the device authorization grant for a client registered for urn:ietf:params:oauth:grant-type:device_code. Public clients send client_id only; confidential clients must authenticate. The device then polls the token endpoint with the device_code.
101
135
  * @summary Device authorization request (RFC 8628)
@@ -289,7 +323,7 @@ const OAuthApiAxiosParamCreator = function (configuration) {
289
323
  };
290
324
  }),
291
325
  /**
292
- * Registers an OAuth client from a JSON metadata document. Authenticated with an initial access token (Authorization: Bearer) or an API key holding admin:clients:register; open registration applies when the organization allows it.
326
+ * Registers an OAuth client from a JSON metadata document. Authenticated with an initial access token (Authorization: Bearer) or an API key holding admin:clients:register; open registration applies when the organization allows it. Refused with invalid_client_metadata: grant_types other than authorization_code and refresh_token, response_types other than code and none, subject_type other than public, sector_identifier_uri, request_uris, userinfo_signed_response_alg, an id_token_signed_response_alg other than the organization\'s signing algorithm, and every encryption member (id_token_encrypted_response_*, userinfo_encrypted_response_*, request_object_encryption_*, authorization_encrypted_response_*).
293
327
  * @summary Dynamic client registration (RFC 7591 / OIDC DCR)
294
328
  * @param {string} orgId
295
329
  * @param {*} [options] Override http request option.
@@ -677,6 +711,23 @@ const OAuthApiFp = function (configuration) {
677
711
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
678
712
  });
679
713
  },
714
+ /**
715
+ * For applications that render their own sign-in form. Returns the sign-in methods that the organization offers, so that the form can show the next step after an address was typed. The answer does not depend on the address: `exists` is always `true`, and a known address and a new one get the same answer. Takes no credential and signs nobody in. A browser request must come from one of the allowed origins of the application named by `client_id`.
716
+ * @summary Sign-in methods for an email-first form
717
+ * @param {string} orgId
718
+ * @param {CheckEmailFirstRequest} checkEmailFirstRequest
719
+ * @param {*} [options] Override http request option.
720
+ * @throws {RequiredError}
721
+ */
722
+ checkEmailFirst(orgId, checkEmailFirstRequest, options) {
723
+ return __awaiter(this, void 0, void 0, function* () {
724
+ var _a, _b, _c;
725
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.checkEmailFirst(orgId, checkEmailFirstRequest, options);
726
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
727
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OAuthApi.checkEmailFirst']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
728
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
729
+ });
730
+ },
680
731
  /**
681
732
  * Starts the device authorization grant for a client registered for urn:ietf:params:oauth:grant-type:device_code. Public clients send client_id only; confidential clients must authenticate. The device then polls the token endpoint with the device_code.
682
733
  * @summary Device authorization request (RFC 8628)
@@ -775,7 +826,7 @@ const OAuthApiFp = function (configuration) {
775
826
  });
776
827
  },
777
828
  /**
778
- * Registers an OAuth client from a JSON metadata document. Authenticated with an initial access token (Authorization: Bearer) or an API key holding admin:clients:register; open registration applies when the organization allows it.
829
+ * Registers an OAuth client from a JSON metadata document. Authenticated with an initial access token (Authorization: Bearer) or an API key holding admin:clients:register; open registration applies when the organization allows it. Refused with invalid_client_metadata: grant_types other than authorization_code and refresh_token, response_types other than code and none, subject_type other than public, sector_identifier_uri, request_uris, userinfo_signed_response_alg, an id_token_signed_response_alg other than the organization\'s signing algorithm, and every encryption member (id_token_encrypted_response_*, userinfo_encrypted_response_*, request_object_encryption_*, authorization_encrypted_response_*).
779
830
  * @summary Dynamic client registration (RFC 7591 / OIDC DCR)
780
831
  * @param {string} orgId
781
832
  * @param {*} [options] Override http request option.
@@ -984,6 +1035,16 @@ const OAuthApiFactory = function (configuration, basePath, axios) {
984
1035
  backchannelAuthorize(requestParameters, options) {
985
1036
  return localVarFp.backchannelAuthorize(requestParameters.orgId, options).then((request) => request(axios, basePath));
986
1037
  },
1038
+ /**
1039
+ * For applications that render their own sign-in form. Returns the sign-in methods that the organization offers, so that the form can show the next step after an address was typed. The answer does not depend on the address: `exists` is always `true`, and a known address and a new one get the same answer. Takes no credential and signs nobody in. A browser request must come from one of the allowed origins of the application named by `client_id`.
1040
+ * @summary Sign-in methods for an email-first form
1041
+ * @param {OAuthApiCheckEmailFirstRequest} requestParameters Request parameters.
1042
+ * @param {*} [options] Override http request option.
1043
+ * @throws {RequiredError}
1044
+ */
1045
+ checkEmailFirst(requestParameters, options) {
1046
+ return localVarFp.checkEmailFirst(requestParameters.orgId, requestParameters.checkEmailFirstRequest, options).then((request) => request(axios, basePath));
1047
+ },
987
1048
  /**
988
1049
  * Starts the device authorization grant for a client registered for urn:ietf:params:oauth:grant-type:device_code. Public clients send client_id only; confidential clients must authenticate. The device then polls the token endpoint with the device_code.
989
1050
  * @summary Device authorization request (RFC 8628)
@@ -1045,7 +1106,7 @@ const OAuthApiFactory = function (configuration, basePath, axios) {
1045
1106
  return localVarFp.par(requestParameters.orgId, options).then((request) => request(axios, basePath));
1046
1107
  },
1047
1108
  /**
1048
- * Registers an OAuth client from a JSON metadata document. Authenticated with an initial access token (Authorization: Bearer) or an API key holding admin:clients:register; open registration applies when the organization allows it.
1109
+ * Registers an OAuth client from a JSON metadata document. Authenticated with an initial access token (Authorization: Bearer) or an API key holding admin:clients:register; open registration applies when the organization allows it. Refused with invalid_client_metadata: grant_types other than authorization_code and refresh_token, response_types other than code and none, subject_type other than public, sector_identifier_uri, request_uris, userinfo_signed_response_alg, an id_token_signed_response_alg other than the organization\'s signing algorithm, and every encryption member (id_token_encrypted_response_*, userinfo_encrypted_response_*, request_object_encryption_*, authorization_encrypted_response_*).
1049
1110
  * @summary Dynamic client registration (RFC 7591 / OIDC DCR)
1050
1111
  * @param {OAuthApiRegisterClientRequest} requestParameters Request parameters.
1051
1112
  * @param {*} [options] Override http request option.
@@ -1186,6 +1247,17 @@ class OAuthApi extends base_1.BaseAPI {
1186
1247
  backchannelAuthorize(requestParameters, options) {
1187
1248
  return (0, exports.OAuthApiFp)(this.configuration).backchannelAuthorize(requestParameters.orgId, options).then((request) => request(this.axios, this.basePath));
1188
1249
  }
1250
+ /**
1251
+ * For applications that render their own sign-in form. Returns the sign-in methods that the organization offers, so that the form can show the next step after an address was typed. The answer does not depend on the address: `exists` is always `true`, and a known address and a new one get the same answer. Takes no credential and signs nobody in. A browser request must come from one of the allowed origins of the application named by `client_id`.
1252
+ * @summary Sign-in methods for an email-first form
1253
+ * @param {OAuthApiCheckEmailFirstRequest} requestParameters Request parameters.
1254
+ * @param {*} [options] Override http request option.
1255
+ * @throws {RequiredError}
1256
+ * @memberof OAuthApi
1257
+ */
1258
+ checkEmailFirst(requestParameters, options) {
1259
+ return (0, exports.OAuthApiFp)(this.configuration).checkEmailFirst(requestParameters.orgId, requestParameters.checkEmailFirstRequest, options).then((request) => request(this.axios, this.basePath));
1260
+ }
1189
1261
  /**
1190
1262
  * Starts the device authorization grant for a client registered for urn:ietf:params:oauth:grant-type:device_code. Public clients send client_id only; confidential clients must authenticate. The device then polls the token endpoint with the device_code.
1191
1263
  * @summary Device authorization request (RFC 8628)
@@ -1253,7 +1325,7 @@ class OAuthApi extends base_1.BaseAPI {
1253
1325
  return (0, exports.OAuthApiFp)(this.configuration).par(requestParameters.orgId, options).then((request) => request(this.axios, this.basePath));
1254
1326
  }
1255
1327
  /**
1256
- * Registers an OAuth client from a JSON metadata document. Authenticated with an initial access token (Authorization: Bearer) or an API key holding admin:clients:register; open registration applies when the organization allows it.
1328
+ * Registers an OAuth client from a JSON metadata document. Authenticated with an initial access token (Authorization: Bearer) or an API key holding admin:clients:register; open registration applies when the organization allows it. Refused with invalid_client_metadata: grant_types other than authorization_code and refresh_token, response_types other than code and none, subject_type other than public, sector_identifier_uri, request_uris, userinfo_signed_response_alg, an id_token_signed_response_alg other than the organization\'s signing algorithm, and every encryption member (id_token_encrypted_response_*, userinfo_encrypted_response_*, request_object_encryption_*, authorization_encrypted_response_*).
1257
1329
  * @summary Dynamic client registration (RFC 7591 / OIDC DCR)
1258
1330
  * @param {OAuthApiRegisterClientRequest} requestParameters Request parameters.
1259
1331
  * @param {*} [options] Override http request option.
@@ -37,7 +37,7 @@ export declare const SsfApiAxiosParamCreator: (configuration?: Configuration) =>
37
37
  */
38
38
  deleteStreamConfig: (streamId: string, orgId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
39
39
  /**
40
- *
40
+ * Needs `webhooks.view` and `agents.view`, as the Security signals page in the portal does.
41
41
  * @summary Read SSF stream configuration(s)
42
42
  * @param {string} orgId
43
43
  * @param {string} [streamId]
@@ -46,7 +46,7 @@ export declare const SsfApiAxiosParamCreator: (configuration?: Configuration) =>
46
46
  */
47
47
  getStreamConfig: (orgId: string, streamId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
48
48
  /**
49
- *
49
+ * Needs `settings.manage`, as the portal does.
50
50
  * @summary Request a stream verification event
51
51
  * @param {string} orgId
52
52
  * @param {*} [options] Override http request option.
@@ -77,7 +77,7 @@ export declare const SsfApiFp: (configuration?: Configuration) => {
77
77
  */
78
78
  deleteStreamConfig(streamId: string, orgId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
79
79
  /**
80
- *
80
+ * Needs `webhooks.view` and `agents.view`, as the Security signals page in the portal does.
81
81
  * @summary Read SSF stream configuration(s)
82
82
  * @param {string} orgId
83
83
  * @param {string} [streamId]
@@ -86,7 +86,7 @@ export declare const SsfApiFp: (configuration?: Configuration) => {
86
86
  */
87
87
  getStreamConfig(orgId: string, streamId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetStreamConfig200Response>>;
88
88
  /**
89
- *
89
+ * Needs `settings.manage`, as the portal does.
90
90
  * @summary Request a stream verification event
91
91
  * @param {string} orgId
92
92
  * @param {*} [options] Override http request option.
@@ -116,7 +116,7 @@ export declare const SsfApiFactory: (configuration?: Configuration, basePath?: s
116
116
  */
117
117
  deleteStreamConfig(requestParameters: SsfApiDeleteStreamConfigRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
118
118
  /**
119
- *
119
+ * Needs `webhooks.view` and `agents.view`, as the Security signals page in the portal does.
120
120
  * @summary Read SSF stream configuration(s)
121
121
  * @param {SsfApiGetStreamConfigRequest} requestParameters Request parameters.
122
122
  * @param {*} [options] Override http request option.
@@ -124,7 +124,7 @@ export declare const SsfApiFactory: (configuration?: Configuration, basePath?: s
124
124
  */
125
125
  getStreamConfig(requestParameters: SsfApiGetStreamConfigRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetStreamConfig200Response>;
126
126
  /**
127
- *
127
+ * Needs `settings.manage`, as the portal does.
128
128
  * @summary Request a stream verification event
129
129
  * @param {SsfApiVerifyStreamRequest} requestParameters Request parameters.
130
130
  * @param {*} [options] Override http request option.
@@ -157,7 +157,7 @@ export interface SsfApiInterface {
157
157
  */
158
158
  deleteStreamConfig(requestParameters: SsfApiDeleteStreamConfigRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
159
159
  /**
160
- *
160
+ * Needs `webhooks.view` and `agents.view`, as the Security signals page in the portal does.
161
161
  * @summary Read SSF stream configuration(s)
162
162
  * @param {SsfApiGetStreamConfigRequest} requestParameters Request parameters.
163
163
  * @param {*} [options] Override http request option.
@@ -166,7 +166,7 @@ export interface SsfApiInterface {
166
166
  */
167
167
  getStreamConfig(requestParameters: SsfApiGetStreamConfigRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetStreamConfig200Response>;
168
168
  /**
169
- *
169
+ * Needs `settings.manage`, as the portal does.
170
170
  * @summary Request a stream verification event
171
171
  * @param {SsfApiVerifyStreamRequest} requestParameters Request parameters.
172
172
  * @param {*} [options] Override http request option.
@@ -265,7 +265,7 @@ export declare class SsfApi extends BaseAPI implements SsfApiInterface {
265
265
  */
266
266
  deleteStreamConfig(requestParameters: SsfApiDeleteStreamConfigRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
267
267
  /**
268
- *
268
+ * Needs `webhooks.view` and `agents.view`, as the Security signals page in the portal does.
269
269
  * @summary Read SSF stream configuration(s)
270
270
  * @param {SsfApiGetStreamConfigRequest} requestParameters Request parameters.
271
271
  * @param {*} [options] Override http request option.
@@ -274,7 +274,7 @@ export declare class SsfApi extends BaseAPI implements SsfApiInterface {
274
274
  */
275
275
  getStreamConfig(requestParameters: SsfApiGetStreamConfigRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetStreamConfig200Response, any, {}>>;
276
276
  /**
277
- *
277
+ * Needs `settings.manage`, as the portal does.
278
278
  * @summary Request a stream verification event
279
279
  * @param {SsfApiVerifyStreamRequest} requestParameters Request parameters.
280
280
  * @param {*} [options] Override http request option.
@@ -110,7 +110,7 @@ const SsfApiAxiosParamCreator = function (configuration) {
110
110
  };
111
111
  }),
112
112
  /**
113
- *
113
+ * Needs `webhooks.view` and `agents.view`, as the Security signals page in the portal does.
114
114
  * @summary Read SSF stream configuration(s)
115
115
  * @param {string} orgId
116
116
  * @param {string} [streamId]
@@ -148,7 +148,7 @@ const SsfApiAxiosParamCreator = function (configuration) {
148
148
  };
149
149
  }),
150
150
  /**
151
- *
151
+ * Needs `settings.manage`, as the portal does.
152
152
  * @summary Request a stream verification event
153
153
  * @param {string} orgId
154
154
  * @param {*} [options] Override http request option.
@@ -225,7 +225,7 @@ const SsfApiFp = function (configuration) {
225
225
  });
226
226
  },
227
227
  /**
228
- *
228
+ * Needs `webhooks.view` and `agents.view`, as the Security signals page in the portal does.
229
229
  * @summary Read SSF stream configuration(s)
230
230
  * @param {string} orgId
231
231
  * @param {string} [streamId]
@@ -242,7 +242,7 @@ const SsfApiFp = function (configuration) {
242
242
  });
243
243
  },
244
244
  /**
245
- *
245
+ * Needs `settings.manage`, as the portal does.
246
246
  * @summary Request a stream verification event
247
247
  * @param {string} orgId
248
248
  * @param {*} [options] Override http request option.
@@ -288,7 +288,7 @@ const SsfApiFactory = function (configuration, basePath, axios) {
288
288
  return localVarFp.deleteStreamConfig(requestParameters.streamId, requestParameters.orgId, options).then((request) => request(axios, basePath));
289
289
  },
290
290
  /**
291
- *
291
+ * Needs `webhooks.view` and `agents.view`, as the Security signals page in the portal does.
292
292
  * @summary Read SSF stream configuration(s)
293
293
  * @param {SsfApiGetStreamConfigRequest} requestParameters Request parameters.
294
294
  * @param {*} [options] Override http request option.
@@ -298,7 +298,7 @@ const SsfApiFactory = function (configuration, basePath, axios) {
298
298
  return localVarFp.getStreamConfig(requestParameters.orgId, requestParameters.streamId, options).then((request) => request(axios, basePath));
299
299
  },
300
300
  /**
301
- *
301
+ * Needs `settings.manage`, as the portal does.
302
302
  * @summary Request a stream verification event
303
303
  * @param {SsfApiVerifyStreamRequest} requestParameters Request parameters.
304
304
  * @param {*} [options] Override http request option.
@@ -340,7 +340,7 @@ class SsfApi extends base_1.BaseAPI {
340
340
  return (0, exports.SsfApiFp)(this.configuration).deleteStreamConfig(requestParameters.streamId, requestParameters.orgId, options).then((request) => request(this.axios, this.basePath));
341
341
  }
342
342
  /**
343
- *
343
+ * Needs `webhooks.view` and `agents.view`, as the Security signals page in the portal does.
344
344
  * @summary Read SSF stream configuration(s)
345
345
  * @param {SsfApiGetStreamConfigRequest} requestParameters Request parameters.
346
346
  * @param {*} [options] Override http request option.
@@ -351,7 +351,7 @@ class SsfApi extends base_1.BaseAPI {
351
351
  return (0, exports.SsfApiFp)(this.configuration).getStreamConfig(requestParameters.orgId, requestParameters.streamId, options).then((request) => request(this.axios, this.basePath));
352
352
  }
353
353
  /**
354
- *
354
+ * Needs `settings.manage`, as the portal does.
355
355
  * @summary Request a stream verification event
356
356
  * @param {SsfApiVerifyStreamRequest} requestParameters Request parameters.
357
357
  * @param {*} [options] Override http request option.
@@ -91,10 +91,11 @@ export declare const AdminAbacApiAxiosParamCreator: (configuration?: Configurati
91
91
  *
92
92
  * @summary List ABAC policies
93
93
  * @param {string} orgId
94
+ * @param {string} [action] Only policies that name this action, alone or in a comma-separated list. &#x60;*&#x60; lists the policies that name &#x60;*&#x60;.
94
95
  * @param {*} [options] Override http request option.
95
96
  * @throws {RequiredError}
96
97
  */
97
- abacPoliciesList: (orgId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
98
+ abacPoliciesList: (orgId: string, action?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
98
99
  /**
99
100
  *
100
101
  * @summary Toggle a policy between active and inactive
@@ -210,10 +211,11 @@ export declare const AdminAbacApiFp: (configuration?: Configuration) => {
210
211
  *
211
212
  * @summary List ABAC policies
212
213
  * @param {string} orgId
214
+ * @param {string} [action] Only policies that name this action, alone or in a comma-separated list. &#x60;*&#x60; lists the policies that name &#x60;*&#x60;.
213
215
  * @param {*} [options] Override http request option.
214
216
  * @throws {RequiredError}
215
217
  */
216
- abacPoliciesList(orgId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AbacPoliciesListResponse>>;
218
+ abacPoliciesList(orgId: string, action?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AbacPoliciesListResponse>>;
217
219
  /**
218
220
  *
219
221
  * @summary Toggle a policy between active and inactive
@@ -621,6 +623,12 @@ export interface AdminAbacApiAbacPoliciesListRequest {
621
623
  * @memberof AdminAbacApiAbacPoliciesList
622
624
  */
623
625
  readonly orgId: string;
626
+ /**
627
+ * Only policies that name this action, alone or in a comma-separated list. &#x60;*&#x60; lists the policies that name &#x60;*&#x60;.
628
+ * @type {string}
629
+ * @memberof AdminAbacApiAbacPoliciesList
630
+ */
631
+ readonly action?: string;
624
632
  }
625
633
  /**
626
634
  * Request parameters for abacPoliciesToggle operation in AdminAbacApi.
@@ -290,10 +290,11 @@ export const AdminAbacApiAxiosParamCreator = function (configuration) {
290
290
  *
291
291
  * @summary List ABAC policies
292
292
  * @param {string} orgId
293
+ * @param {string} [action] Only policies that name this action, alone or in a comma-separated list. &#x60;*&#x60; lists the policies that name &#x60;*&#x60;.
293
294
  * @param {*} [options] Override http request option.
294
295
  * @throws {RequiredError}
295
296
  */
296
- abacPoliciesList: (orgId_1, ...args_1) => __awaiter(this, [orgId_1, ...args_1], void 0, function* (orgId, options = {}) {
297
+ abacPoliciesList: (orgId_1, action_1, ...args_1) => __awaiter(this, [orgId_1, action_1, ...args_1], void 0, function* (orgId, action, options = {}) {
297
298
  // verify required parameter 'orgId' is not null or undefined
298
299
  assertParamExists('abacPoliciesList', 'orgId', orgId);
299
300
  const localVarPath = `/orgs/{orgId}/api/v1/abac/policies`
@@ -312,6 +313,9 @@ export const AdminAbacApiAxiosParamCreator = function (configuration) {
312
313
  // authentication BearerAuth required
313
314
  // http bearer authentication required
314
315
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
316
+ if (action !== undefined) {
317
+ localVarQueryParameter['action'] = action;
318
+ }
315
319
  setSearchParams(localVarUrlObj, localVarQueryParameter);
316
320
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
317
321
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -639,13 +643,14 @@ export const AdminAbacApiFp = function (configuration) {
639
643
  *
640
644
  * @summary List ABAC policies
641
645
  * @param {string} orgId
646
+ * @param {string} [action] Only policies that name this action, alone or in a comma-separated list. &#x60;*&#x60; lists the policies that name &#x60;*&#x60;.
642
647
  * @param {*} [options] Override http request option.
643
648
  * @throws {RequiredError}
644
649
  */
645
- abacPoliciesList(orgId, options) {
650
+ abacPoliciesList(orgId, action, options) {
646
651
  return __awaiter(this, void 0, void 0, function* () {
647
652
  var _a, _b, _c;
648
- const localVarAxiosArgs = yield localVarAxiosParamCreator.abacPoliciesList(orgId, options);
653
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.abacPoliciesList(orgId, action, options);
649
654
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
650
655
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminAbacApi.abacPoliciesList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
651
656
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -823,7 +828,7 @@ export const AdminAbacApiFactory = function (configuration, basePath, axios) {
823
828
  * @throws {RequiredError}
824
829
  */
825
830
  abacPoliciesList(requestParameters, options) {
826
- return localVarFp.abacPoliciesList(requestParameters.orgId, options).then((request) => request(axios, basePath));
831
+ return localVarFp.abacPoliciesList(requestParameters.orgId, requestParameters.action, options).then((request) => request(axios, basePath));
827
832
  },
828
833
  /**
829
834
  *
@@ -970,7 +975,7 @@ export class AdminAbacApi extends BaseAPI {
970
975
  * @memberof AdminAbacApi
971
976
  */
972
977
  abacPoliciesList(requestParameters, options) {
973
- return AdminAbacApiFp(this.configuration).abacPoliciesList(requestParameters.orgId, options).then((request) => request(this.axios, this.basePath));
978
+ return AdminAbacApiFp(this.configuration).abacPoliciesList(requestParameters.orgId, requestParameters.action, options).then((request) => request(this.axios, this.basePath));
974
979
  }
975
980
  /**
976
981
  *
@@ -135,10 +135,12 @@ export declare const AdminAgentsApiAxiosParamCreator: (configuration?: Configura
135
135
  *
136
136
  * @summary List all agents in the tenant
137
137
  * @param {string} orgId
138
+ * @param {AdminAgentsListSortBy} [sortBy] Sort field. Default: name. Another value is ignored.
139
+ * @param {AdminAgentsListSortDir} [sortDir] Sort direction, used with sortBy.
138
140
  * @param {*} [options] Override http request option.
139
141
  * @throws {RequiredError}
140
142
  */
141
- adminAgentsList: (orgId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
143
+ adminAgentsList: (orgId: string, sortBy?: AdminAgentsListSortBy, sortDir?: AdminAgentsListSortDir, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
142
144
  /**
143
145
  * For a trusted component of your organization, such as an AI gateway\'s spend callback or an orchestrator, that sees the agent\'s model calls. Adds the tokens and cost to the agent\'s budget windows (current UTC hour, day and month), exactly like POST /agents/me/usage from the agent itself. The report adds no API call and is accepted even when the budget is spent.
144
146
  * @summary Report model tokens and cost for an agent
@@ -300,10 +302,12 @@ export declare const AdminAgentsApiFp: (configuration?: Configuration) => {
300
302
  *
301
303
  * @summary List all agents in the tenant
302
304
  * @param {string} orgId
305
+ * @param {AdminAgentsListSortBy} [sortBy] Sort field. Default: name. Another value is ignored.
306
+ * @param {AdminAgentsListSortDir} [sortDir] Sort direction, used with sortBy.
303
307
  * @param {*} [options] Override http request option.
304
308
  * @throws {RequiredError}
305
309
  */
306
- adminAgentsList(orgId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminAgentsListResponse>>;
310
+ adminAgentsList(orgId: string, sortBy?: AdminAgentsListSortBy, sortDir?: AdminAgentsListSortDir, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminAgentsListResponse>>;
307
311
  /**
308
312
  * For a trusted component of your organization, such as an AI gateway\'s spend callback or an orchestrator, that sees the agent\'s model calls. Adds the tokens and cost to the agent\'s budget windows (current UTC hour, day and month), exactly like POST /agents/me/usage from the agent itself. The report adds no API call and is accepted even when the budget is spent.
309
313
  * @summary Report model tokens and cost for an agent
@@ -880,6 +884,18 @@ export interface AdminAgentsApiAdminAgentsListRequest {
880
884
  * @memberof AdminAgentsApiAdminAgentsList
881
885
  */
882
886
  readonly orgId: string;
887
+ /**
888
+ * Sort field. Default: name. Another value is ignored.
889
+ * @type {'name' | 'agentId' | 'status' | 'createdAt' | 'lastUsedAt'}
890
+ * @memberof AdminAgentsApiAdminAgentsList
891
+ */
892
+ readonly sortBy?: AdminAgentsListSortBy;
893
+ /**
894
+ * Sort direction, used with sortBy.
895
+ * @type {'ASC' | 'DESC'}
896
+ * @memberof AdminAgentsApiAdminAgentsList
897
+ */
898
+ readonly sortDir?: AdminAgentsListSortDir;
883
899
  }
884
900
  /**
885
901
  * Request parameters for adminAgentsReportUsage operation in AdminAgentsApi.
@@ -1186,3 +1202,22 @@ export declare class AdminAgentsApi extends BaseAPI implements AdminAgentsApiInt
1186
1202
  */
1187
1203
  putAdminAgentsUpdate(requestParameters: AdminAgentsApiPutAdminAgentsUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PutAdminAgentsUpdateResponse, any, {}>>;
1188
1204
  }
1205
+ /**
1206
+ * @export
1207
+ * @enum {string}
1208
+ */
1209
+ export declare enum AdminAgentsListSortBy {
1210
+ NAME = "name",
1211
+ AGENT_ID = "agentId",
1212
+ STATUS = "status",
1213
+ CREATED_AT = "createdAt",
1214
+ LAST_USED_AT = "lastUsedAt"
1215
+ }
1216
+ /**
1217
+ * @export
1218
+ * @enum {string}
1219
+ */
1220
+ export declare enum AdminAgentsListSortDir {
1221
+ ASC = "ASC",
1222
+ DESC = "DESC"
1223
+ }
@@ -423,10 +423,12 @@ export const AdminAgentsApiAxiosParamCreator = function (configuration) {
423
423
  *
424
424
  * @summary List all agents in the tenant
425
425
  * @param {string} orgId
426
+ * @param {AdminAgentsListSortBy} [sortBy] Sort field. Default: name. Another value is ignored.
427
+ * @param {AdminAgentsListSortDir} [sortDir] Sort direction, used with sortBy.
426
428
  * @param {*} [options] Override http request option.
427
429
  * @throws {RequiredError}
428
430
  */
429
- adminAgentsList: (orgId_1, ...args_1) => __awaiter(this, [orgId_1, ...args_1], void 0, function* (orgId, options = {}) {
431
+ adminAgentsList: (orgId_1, sortBy_1, sortDir_1, ...args_1) => __awaiter(this, [orgId_1, sortBy_1, sortDir_1, ...args_1], void 0, function* (orgId, sortBy, sortDir, options = {}) {
430
432
  // verify required parameter 'orgId' is not null or undefined
431
433
  assertParamExists('adminAgentsList', 'orgId', orgId);
432
434
  const localVarPath = `/orgs/{orgId}/api/v1/admin/agents`
@@ -445,6 +447,12 @@ export const AdminAgentsApiAxiosParamCreator = function (configuration) {
445
447
  // authentication BearerAuth required
446
448
  // http bearer authentication required
447
449
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
450
+ if (sortBy !== undefined) {
451
+ localVarQueryParameter['sortBy'] = sortBy;
452
+ }
453
+ if (sortDir !== undefined) {
454
+ localVarQueryParameter['sortDir'] = sortDir;
455
+ }
448
456
  setSearchParams(localVarUrlObj, localVarQueryParameter);
449
457
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
450
458
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -889,13 +897,15 @@ export const AdminAgentsApiFp = function (configuration) {
889
897
  *
890
898
  * @summary List all agents in the tenant
891
899
  * @param {string} orgId
900
+ * @param {AdminAgentsListSortBy} [sortBy] Sort field. Default: name. Another value is ignored.
901
+ * @param {AdminAgentsListSortDir} [sortDir] Sort direction, used with sortBy.
892
902
  * @param {*} [options] Override http request option.
893
903
  * @throws {RequiredError}
894
904
  */
895
- adminAgentsList(orgId, options) {
905
+ adminAgentsList(orgId, sortBy, sortDir, options) {
896
906
  return __awaiter(this, void 0, void 0, function* () {
897
907
  var _a, _b, _c;
898
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminAgentsList(orgId, options);
908
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminAgentsList(orgId, sortBy, sortDir, options);
899
909
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
900
910
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminAgentsApi.adminAgentsList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
901
911
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1125,7 +1135,7 @@ export const AdminAgentsApiFactory = function (configuration, basePath, axios) {
1125
1135
  * @throws {RequiredError}
1126
1136
  */
1127
1137
  adminAgentsList(requestParameters, options) {
1128
- return localVarFp.adminAgentsList(requestParameters.orgId, options).then((request) => request(axios, basePath));
1138
+ return localVarFp.adminAgentsList(requestParameters.orgId, requestParameters.sortBy, requestParameters.sortDir, options).then((request) => request(axios, basePath));
1129
1139
  },
1130
1140
  /**
1131
1141
  * For a trusted component of your organization, such as an AI gateway\'s spend callback or an orchestrator, that sees the agent\'s model calls. Adds the tokens and cost to the agent\'s budget windows (current UTC hour, day and month), exactly like POST /agents/me/usage from the agent itself. The report adds no API call and is accepted even when the budget is spent.
@@ -1315,7 +1325,7 @@ export class AdminAgentsApi extends BaseAPI {
1315
1325
  * @memberof AdminAgentsApi
1316
1326
  */
1317
1327
  adminAgentsList(requestParameters, options) {
1318
- return AdminAgentsApiFp(this.configuration).adminAgentsList(requestParameters.orgId, options).then((request) => request(this.axios, this.basePath));
1328
+ return AdminAgentsApiFp(this.configuration).adminAgentsList(requestParameters.orgId, requestParameters.sortBy, requestParameters.sortDir, options).then((request) => request(this.axios, this.basePath));
1319
1329
  }
1320
1330
  /**
1321
1331
  * For a trusted component of your organization, such as an AI gateway\'s spend callback or an orchestrator, that sees the agent\'s model calls. Adds the tokens and cost to the agent\'s budget windows (current UTC hour, day and month), exactly like POST /agents/me/usage from the agent itself. The report adds no API call and is accepted even when the budget is spent.
@@ -1384,3 +1394,24 @@ export class AdminAgentsApi extends BaseAPI {
1384
1394
  return AdminAgentsApiFp(this.configuration).putAdminAgentsUpdate(requestParameters.orgId, requestParameters.agentId, requestParameters.putAdminAgentsUpdateRequest, options).then((request) => request(this.axios, this.basePath));
1385
1395
  }
1386
1396
  }
1397
+ /**
1398
+ * @export
1399
+ * @enum {string}
1400
+ */
1401
+ export var AdminAgentsListSortBy;
1402
+ (function (AdminAgentsListSortBy) {
1403
+ AdminAgentsListSortBy["NAME"] = "name";
1404
+ AdminAgentsListSortBy["AGENT_ID"] = "agentId";
1405
+ AdminAgentsListSortBy["STATUS"] = "status";
1406
+ AdminAgentsListSortBy["CREATED_AT"] = "createdAt";
1407
+ AdminAgentsListSortBy["LAST_USED_AT"] = "lastUsedAt";
1408
+ })(AdminAgentsListSortBy || (AdminAgentsListSortBy = {}));
1409
+ /**
1410
+ * @export
1411
+ * @enum {string}
1412
+ */
1413
+ export var AdminAgentsListSortDir;
1414
+ (function (AdminAgentsListSortDir) {
1415
+ AdminAgentsListSortDir["ASC"] = "ASC";
1416
+ AdminAgentsListSortDir["DESC"] = "DESC";
1417
+ })(AdminAgentsListSortDir || (AdminAgentsListSortDir = {}));