@lumoauth/api-client 1.3.0 → 1.5.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 (237) hide show
  1. package/.openapi-generator/FILES +22 -0
  2. package/README.md +19 -5
  3. package/api/admin-agents-api.ts +166 -10
  4. package/api/admin-mcp-api.ts +5 -5
  5. package/api/admin-oauth-clients-api.ts +5 -5
  6. package/api/admin-sandbox-api.ts +5 -5
  7. package/api/admin-users-api.ts +27 -26
  8. package/api/admin-webhooks-api.ts +25 -25
  9. package/api/agents-api.ts +118 -0
  10. package/api/oauth-api.ts +111 -0
  11. package/dist/api/admin-agents-api.d.ts +94 -4
  12. package/dist/api/admin-agents-api.js +100 -10
  13. package/dist/api/admin-mcp-api.d.ts +5 -5
  14. package/dist/api/admin-mcp-api.js +4 -4
  15. package/dist/api/admin-oauth-clients-api.d.ts +5 -5
  16. package/dist/api/admin-oauth-clients-api.js +4 -4
  17. package/dist/api/admin-sandbox-api.d.ts +5 -5
  18. package/dist/api/admin-sandbox-api.js +4 -4
  19. package/dist/api/admin-users-api.d.ts +27 -26
  20. package/dist/api/admin-users-api.js +21 -20
  21. package/dist/api/admin-webhooks-api.d.ts +25 -25
  22. package/dist/api/admin-webhooks-api.js +20 -20
  23. package/dist/api/agents-api.d.ts +65 -0
  24. package/dist/api/agents-api.js +77 -0
  25. package/dist/api/oauth-api.d.ts +65 -0
  26. package/dist/api/oauth-api.js +72 -0
  27. package/dist/esm/api/admin-agents-api.d.ts +94 -4
  28. package/dist/esm/api/admin-agents-api.js +100 -10
  29. package/dist/esm/api/admin-mcp-api.d.ts +5 -5
  30. package/dist/esm/api/admin-mcp-api.js +4 -4
  31. package/dist/esm/api/admin-oauth-clients-api.d.ts +5 -5
  32. package/dist/esm/api/admin-oauth-clients-api.js +4 -4
  33. package/dist/esm/api/admin-sandbox-api.d.ts +5 -5
  34. package/dist/esm/api/admin-sandbox-api.js +4 -4
  35. package/dist/esm/api/admin-users-api.d.ts +27 -26
  36. package/dist/esm/api/admin-users-api.js +21 -20
  37. package/dist/esm/api/admin-webhooks-api.d.ts +25 -25
  38. package/dist/esm/api/admin-webhooks-api.js +20 -20
  39. package/dist/esm/api/agents-api.d.ts +65 -0
  40. package/dist/esm/api/agents-api.js +77 -0
  41. package/dist/esm/api/oauth-api.d.ts +65 -0
  42. package/dist/esm/api/oauth-api.js +73 -1
  43. package/dist/esm/models/abac-attribute-definition.d.ts +1 -1
  44. package/dist/esm/models/abac-resource-attribute.d.ts +1 -1
  45. package/dist/esm/models/admin-agents-agents-rotate-key-request.d.ts +30 -0
  46. package/dist/esm/models/admin-agents-agents-rotate-key-request.js +14 -0
  47. package/dist/esm/models/admin-agents-agents-rotate-key-response.d.ts +6 -0
  48. package/dist/esm/models/admin-agents-create-request.d.ts +8 -0
  49. package/dist/esm/models/admin-agents-report-usage-request.d.ts +30 -0
  50. package/dist/esm/models/admin-agents-report-usage-request.js +14 -0
  51. package/dist/esm/models/admin-agents-report-usage-response-data-recorded.d.ts +30 -0
  52. package/dist/esm/models/admin-agents-report-usage-response-data-recorded.js +14 -0
  53. package/dist/esm/models/admin-agents-report-usage-response-data.d.ts +33 -0
  54. package/dist/esm/models/admin-agents-report-usage-response-data.js +14 -0
  55. package/dist/esm/models/admin-agents-report-usage-response.d.ts +25 -0
  56. package/dist/esm/models/admin-agents-report-usage-response.js +14 -0
  57. package/dist/esm/models/admin-audit-logs-retention-response-data.d.ts +21 -3
  58. package/dist/esm/models/admin-identities-link-request.d.ts +8 -1
  59. package/dist/esm/models/admin-identities-link-request.js +1 -0
  60. package/dist/esm/models/admin-identities-list-response-data-bindings-item.d.ts +7 -0
  61. package/dist/esm/models/admin-identities-list-response-data-bindings-item.js +1 -0
  62. package/dist/esm/models/admin-sandbox-spawn-response-data.d.ts +18 -0
  63. package/dist/esm/models/admin-sandbox-spawn-response-data.js +14 -0
  64. package/dist/esm/models/admin-sandbox-spawn-response-data1.d.ts +24 -0
  65. package/dist/esm/models/admin-sandbox-spawn-response-data1.js +14 -0
  66. package/dist/esm/models/admin-sandbox-spawn-response.d.ts +3 -3
  67. package/dist/esm/models/admin-webhooks-delivery-replay-response-data.d.ts +48 -0
  68. package/dist/esm/models/admin-webhooks-delivery-replay-response-data.js +14 -0
  69. package/dist/esm/models/admin-webhooks-delivery-replay-response.d.ts +3 -3
  70. package/dist/esm/models/admin-webhooks-test-response.d.ts +6 -0
  71. package/dist/esm/models/attest-response-identity.d.ts +1 -1
  72. package/dist/esm/models/audit-log-entry.d.ts +1 -1
  73. package/dist/esm/models/authentication-settings-password-policy.d.ts +25 -1
  74. package/dist/esm/models/authentication-settings-password-rotation-policy.d.ts +1 -13
  75. package/dist/esm/models/authentication-settings.d.ts +13 -15
  76. package/dist/esm/models/authentication-settings.js +11 -0
  77. package/dist/esm/models/get-approval-status-response-approved-by.d.ts +2 -2
  78. package/dist/esm/models/index.d.ts +11 -0
  79. package/dist/esm/models/index.js +11 -0
  80. package/dist/esm/models/list-permissions-response-permissions-item.d.ts +1 -1
  81. package/dist/esm/models/oauth-client-secret-issued.d.ts +1 -1
  82. package/dist/esm/models/oauth-client.d.ts +6 -0
  83. package/dist/esm/models/push-enrollment-started.d.ts +1 -1
  84. package/dist/esm/models/put-admin-agents-update-request.d.ts +8 -0
  85. package/dist/esm/models/report-agent-usage-response.d.ts +33 -0
  86. package/dist/esm/models/report-agent-usage-response.js +14 -0
  87. package/dist/esm/models/request-magic-link-request.d.ts +42 -0
  88. package/dist/esm/models/request-magic-link-request.js +14 -0
  89. package/dist/esm/models/request-magic-link-response.d.ts +31 -0
  90. package/dist/esm/models/request-magic-link-response.js +21 -0
  91. package/dist/esm/models/scim-settings-inbound-protected-attributes.d.ts +2 -9
  92. package/dist/esm/models/scim-settings-inbound.d.ts +0 -8
  93. package/dist/esm/models/scim-settings-outbound.d.ts +2 -10
  94. package/dist/esm/models/set-user-attribute-response-data.d.ts +1 -1
  95. package/dist/esm/models/userinfo-response.d.ts +8 -0
  96. package/dist/models/abac-attribute-definition.d.ts +1 -1
  97. package/dist/models/abac-resource-attribute.d.ts +1 -1
  98. package/dist/models/admin-agents-agents-rotate-key-request.d.ts +30 -0
  99. package/dist/models/admin-agents-agents-rotate-key-request.js +15 -0
  100. package/dist/models/admin-agents-agents-rotate-key-response.d.ts +6 -0
  101. package/dist/models/admin-agents-create-request.d.ts +8 -0
  102. package/dist/models/admin-agents-report-usage-request.d.ts +30 -0
  103. package/dist/models/admin-agents-report-usage-request.js +15 -0
  104. package/dist/models/admin-agents-report-usage-response-data-recorded.d.ts +30 -0
  105. package/dist/models/admin-agents-report-usage-response-data-recorded.js +15 -0
  106. package/dist/models/admin-agents-report-usage-response-data.d.ts +33 -0
  107. package/dist/models/admin-agents-report-usage-response-data.js +15 -0
  108. package/dist/models/admin-agents-report-usage-response.d.ts +25 -0
  109. package/dist/models/admin-agents-report-usage-response.js +15 -0
  110. package/dist/models/admin-audit-logs-retention-response-data.d.ts +21 -3
  111. package/dist/models/admin-identities-link-request.d.ts +8 -1
  112. package/dist/models/admin-identities-link-request.js +1 -0
  113. package/dist/models/admin-identities-list-response-data-bindings-item.d.ts +7 -0
  114. package/dist/models/admin-identities-list-response-data-bindings-item.js +1 -0
  115. package/dist/models/admin-sandbox-spawn-response-data.d.ts +18 -0
  116. package/dist/models/admin-sandbox-spawn-response-data.js +15 -0
  117. package/dist/models/admin-sandbox-spawn-response-data1.d.ts +24 -0
  118. package/dist/models/admin-sandbox-spawn-response-data1.js +15 -0
  119. package/dist/models/admin-sandbox-spawn-response.d.ts +3 -3
  120. package/dist/models/admin-webhooks-delivery-replay-response-data.d.ts +48 -0
  121. package/dist/models/admin-webhooks-delivery-replay-response-data.js +15 -0
  122. package/dist/models/admin-webhooks-delivery-replay-response.d.ts +3 -3
  123. package/dist/models/admin-webhooks-test-response.d.ts +6 -0
  124. package/dist/models/attest-response-identity.d.ts +1 -1
  125. package/dist/models/audit-log-entry.d.ts +1 -1
  126. package/dist/models/authentication-settings-password-policy.d.ts +25 -1
  127. package/dist/models/authentication-settings-password-rotation-policy.d.ts +1 -13
  128. package/dist/models/authentication-settings.d.ts +13 -15
  129. package/dist/models/authentication-settings.js +12 -1
  130. package/dist/models/get-approval-status-response-approved-by.d.ts +2 -2
  131. package/dist/models/index.d.ts +11 -0
  132. package/dist/models/index.js +11 -0
  133. package/dist/models/list-permissions-response-permissions-item.d.ts +1 -1
  134. package/dist/models/oauth-client-secret-issued.d.ts +1 -1
  135. package/dist/models/oauth-client.d.ts +6 -0
  136. package/dist/models/push-enrollment-started.d.ts +1 -1
  137. package/dist/models/put-admin-agents-update-request.d.ts +8 -0
  138. package/dist/models/report-agent-usage-response.d.ts +33 -0
  139. package/dist/models/report-agent-usage-response.js +15 -0
  140. package/dist/models/request-magic-link-request.d.ts +42 -0
  141. package/dist/models/request-magic-link-request.js +15 -0
  142. package/dist/models/request-magic-link-response.d.ts +31 -0
  143. package/dist/models/request-magic-link-response.js +24 -0
  144. package/dist/models/scim-settings-inbound-protected-attributes.d.ts +2 -9
  145. package/dist/models/scim-settings-inbound.d.ts +0 -8
  146. package/dist/models/scim-settings-outbound.d.ts +2 -10
  147. package/dist/models/set-user-attribute-response-data.d.ts +1 -1
  148. package/dist/models/userinfo-response.d.ts +8 -0
  149. package/docs/AAuthApi.md +1 -1
  150. package/docs/AdminAbacApi.md +1 -1
  151. package/docs/AdminAgentsAgentsRotateKeyRequest.md +22 -0
  152. package/docs/AdminAgentsAgentsRotateKeyResponse.md +2 -0
  153. package/docs/AdminAgentsApi.md +83 -8
  154. package/docs/AdminAgentsCreateRequest.md +2 -0
  155. package/docs/AdminAgentsReportUsageRequest.md +22 -0
  156. package/docs/AdminAgentsReportUsageResponse.md +20 -0
  157. package/docs/AdminAgentsReportUsageResponseData.md +22 -0
  158. package/docs/AdminAgentsReportUsageResponseDataRecorded.md +22 -0
  159. package/docs/AdminAuditLogsRetentionResponseData.md +9 -3
  160. package/docs/AdminIdentitiesLinkRequest.md +3 -1
  161. package/docs/AdminIdentitiesListResponseDataBindingsItem.md +2 -0
  162. package/docs/AdminMcpApi.md +2 -1
  163. package/docs/AdminOAuthClientsApi.md +2 -2
  164. package/docs/AdminSandboxApi.md +3 -1
  165. package/docs/AdminSandboxSpawnResponse.md +1 -1
  166. package/docs/AdminSandboxSpawnResponseData.md +32 -0
  167. package/docs/AdminSandboxSpawnResponseData1.md +20 -0
  168. package/docs/AdminUsersApi.md +8 -8
  169. package/docs/AdminWebhooksApi.md +7 -5
  170. package/docs/AdminWebhooksDeliveryReplayResponse.md +1 -1
  171. package/docs/AdminWebhooksDeliveryReplayResponseData.md +28 -0
  172. package/docs/AdminWebhooksTestResponse.md +2 -0
  173. package/docs/AgentsApi.md +64 -2
  174. package/docs/AttestResponseIdentity.md +1 -1
  175. package/docs/AuditLogEntry.md +1 -1
  176. package/docs/AuthenticationSettings.md +2 -6
  177. package/docs/AuthenticationSettingsPasswordPolicy.md +9 -0
  178. package/docs/AuthenticationSettingsPasswordRotationPolicy.md +1 -4
  179. package/docs/AuthorizationApi.md +1 -1
  180. package/docs/CreateClientResponseData.md +3 -1
  181. package/docs/EnrollAuthenticator201Response.md +1 -1
  182. package/docs/GetApprovalStatusResponseApprovedBy.md +1 -1
  183. package/docs/JitApi.md +3 -3
  184. package/docs/ListPermissionsResponsePermissionsItem.md +1 -1
  185. package/docs/OAuthApi.md +63 -2
  186. package/docs/OAuthClient.md +2 -0
  187. package/docs/OAuthClientSecretIssued.md +1 -1
  188. package/docs/OIDCApi.md +2 -2
  189. package/docs/PushEnrollmentStarted.md +1 -1
  190. package/docs/PutAdminAgentsUpdateRequest.md +2 -0
  191. package/docs/ReportAgentUsageResponse.md +22 -0
  192. package/docs/RequestMagicLinkRequest.md +26 -0
  193. package/docs/RequestMagicLinkResponse.md +20 -0
  194. package/docs/ScimSettingsInbound.md +0 -2
  195. package/docs/ScimSettingsInboundProtectedAttributes.md +3 -5
  196. package/docs/ScimSettingsOutbound.md +2 -4
  197. package/docs/TokenVaultApi.md +2 -2
  198. package/docs/UserinfoResponse.md +2 -0
  199. package/models/abac-attribute-definition.ts +1 -1
  200. package/models/abac-resource-attribute.ts +1 -1
  201. package/models/admin-agents-agents-rotate-key-request.ts +36 -0
  202. package/models/admin-agents-agents-rotate-key-response.ts +6 -0
  203. package/models/admin-agents-create-request.ts +6 -0
  204. package/models/admin-agents-report-usage-request.ts +36 -0
  205. package/models/admin-agents-report-usage-response-data-recorded.ts +36 -0
  206. package/models/admin-agents-report-usage-response-data.ts +39 -0
  207. package/models/admin-agents-report-usage-response.ts +33 -0
  208. package/models/admin-audit-logs-retention-response-data.ts +21 -3
  209. package/models/admin-identities-link-request.ts +8 -1
  210. package/models/admin-identities-list-response-data-bindings-item.ts +7 -0
  211. package/models/admin-sandbox-spawn-response-data.ts +29 -0
  212. package/models/admin-sandbox-spawn-response-data1.ts +30 -0
  213. package/models/admin-sandbox-spawn-response.ts +3 -3
  214. package/models/admin-webhooks-delivery-replay-response-data.ts +54 -0
  215. package/models/admin-webhooks-delivery-replay-response.ts +3 -3
  216. package/models/admin-webhooks-test-response.ts +6 -0
  217. package/models/attest-response-identity.ts +1 -1
  218. package/models/audit-log-entry.ts +1 -1
  219. package/models/authentication-settings-password-policy.ts +25 -1
  220. package/models/authentication-settings-password-rotation-policy.ts +1 -13
  221. package/models/authentication-settings.ts +13 -15
  222. package/models/get-approval-status-response-approved-by.ts +2 -2
  223. package/models/index.ts +11 -0
  224. package/models/list-permissions-response-permissions-item.ts +1 -1
  225. package/models/oauth-client-secret-issued.ts +1 -1
  226. package/models/oauth-client.ts +6 -0
  227. package/models/push-enrollment-started.ts +1 -1
  228. package/models/put-admin-agents-update-request.ts +6 -0
  229. package/models/report-agent-usage-response.ts +39 -0
  230. package/models/request-magic-link-request.ts +48 -0
  231. package/models/request-magic-link-response.ts +39 -0
  232. package/models/scim-settings-inbound-protected-attributes.ts +2 -10
  233. package/models/scim-settings-inbound.ts +0 -6
  234. package/models/scim-settings-outbound.ts +2 -8
  235. package/models/set-user-attribute-response-data.ts +1 -1
  236. package/models/userinfo-response.ts +6 -0
  237. package/package.json +1 -1
@@ -15,6 +15,7 @@ import { type RequestArgs, BaseAPI } from '../base';
15
15
  import type { AdminAgentsActivateResponse } from '../models';
16
16
  import type { AdminAgentsAgentsDisableResponse } from '../models';
17
17
  import type { AdminAgentsAgentsEnableResponse } from '../models';
18
+ import type { AdminAgentsAgentsRotateKeyRequest } from '../models';
18
19
  import type { AdminAgentsAgentsRotateKeyResponse } from '../models';
19
20
  import type { AdminAgentsCreateRequest } from '../models';
20
21
  import type { AdminAgentsCreateResponse } from '../models';
@@ -25,6 +26,8 @@ import type { AdminAgentsGenerateTokenResponse } from '../models';
25
26
  import type { AdminAgentsGetResponse } from '../models';
26
27
  import type { AdminAgentsGetScopesResponse } from '../models';
27
28
  import type { AdminAgentsListResponse } from '../models';
29
+ import type { AdminAgentsReportUsageRequest } from '../models';
30
+ import type { AdminAgentsReportUsageResponse } from '../models';
28
31
  import type { AdminAgentsRevokeKeyResponse } from '../models';
29
32
  import type { AdminAgentsRotateCredentialsResponse } from '../models';
30
33
  import type { AdminAgentsSetScopesRequest } from '../models';
@@ -68,10 +71,11 @@ export declare const AdminAgentsApiAxiosParamCreator: (configuration?: Configura
68
71
  * @summary Rotate agent API key
69
72
  * @param {string} orgId
70
73
  * @param {string} agentId
74
+ * @param {AdminAgentsAgentsRotateKeyRequest} [adminAgentsAgentsRotateKeyRequest] Optional lifetime of the new API key. Without either field the current expiry date is kept, unless it has already passed (then the new key gets 180 days).
71
75
  * @param {*} [options] Override http request option.
72
76
  * @throws {RequiredError}
73
77
  */
74
- adminAgentsAgentsRotateKey: (orgId: string, agentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
78
+ adminAgentsAgentsRotateKey: (orgId: string, agentId: string, adminAgentsAgentsRotateKeyRequest?: AdminAgentsAgentsRotateKeyRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
75
79
  /**
76
80
  *
77
81
  * @summary Create a new agent
@@ -135,6 +139,16 @@ export declare const AdminAgentsApiAxiosParamCreator: (configuration?: Configura
135
139
  * @throws {RequiredError}
136
140
  */
137
141
  adminAgentsList: (orgId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
142
+ /**
143
+ * 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
+ * @summary Report model tokens and cost for an agent
145
+ * @param {string} orgId
146
+ * @param {string} agentId
147
+ * @param {AdminAgentsReportUsageRequest} adminAgentsReportUsageRequest
148
+ * @param {*} [options] Override http request option.
149
+ * @throws {RequiredError}
150
+ */
151
+ adminAgentsReportUsage: (orgId: string, agentId: string, adminAgentsReportUsageRequest: AdminAgentsReportUsageRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
138
152
  /**
139
153
  *
140
154
  * @summary Revoke agent API key (nullify it so it can no longer authenticate)
@@ -149,10 +163,11 @@ export declare const AdminAgentsApiAxiosParamCreator: (configuration?: Configura
149
163
  * @summary Rotate agent credentials
150
164
  * @param {string} orgId
151
165
  * @param {string} agentId
166
+ * @param {AdminAgentsAgentsRotateKeyRequest} [adminAgentsAgentsRotateKeyRequest] For an api_key agent, the optional lifetime of the new key (ignored for a client secret). Without either field the current expiry date is kept, unless it has already passed (then the new key gets 180 days).
152
167
  * @param {*} [options] Override http request option.
153
168
  * @throws {RequiredError}
154
169
  */
155
- adminAgentsRotateCredentials: (orgId: string, agentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
170
+ adminAgentsRotateCredentials: (orgId: string, agentId: string, adminAgentsAgentsRotateKeyRequest?: AdminAgentsAgentsRotateKeyRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
156
171
  /**
157
172
  *
158
173
  * @summary Update agent scopes/capabilities
@@ -221,10 +236,11 @@ export declare const AdminAgentsApiFp: (configuration?: Configuration) => {
221
236
  * @summary Rotate agent API key
222
237
  * @param {string} orgId
223
238
  * @param {string} agentId
239
+ * @param {AdminAgentsAgentsRotateKeyRequest} [adminAgentsAgentsRotateKeyRequest] Optional lifetime of the new API key. Without either field the current expiry date is kept, unless it has already passed (then the new key gets 180 days).
224
240
  * @param {*} [options] Override http request option.
225
241
  * @throws {RequiredError}
226
242
  */
227
- adminAgentsAgentsRotateKey(orgId: string, agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminAgentsAgentsRotateKeyResponse>>;
243
+ adminAgentsAgentsRotateKey(orgId: string, agentId: string, adminAgentsAgentsRotateKeyRequest?: AdminAgentsAgentsRotateKeyRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminAgentsAgentsRotateKeyResponse>>;
228
244
  /**
229
245
  *
230
246
  * @summary Create a new agent
@@ -288,6 +304,16 @@ export declare const AdminAgentsApiFp: (configuration?: Configuration) => {
288
304
  * @throws {RequiredError}
289
305
  */
290
306
  adminAgentsList(orgId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminAgentsListResponse>>;
307
+ /**
308
+ * 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
+ * @summary Report model tokens and cost for an agent
310
+ * @param {string} orgId
311
+ * @param {string} agentId
312
+ * @param {AdminAgentsReportUsageRequest} adminAgentsReportUsageRequest
313
+ * @param {*} [options] Override http request option.
314
+ * @throws {RequiredError}
315
+ */
316
+ adminAgentsReportUsage(orgId: string, agentId: string, adminAgentsReportUsageRequest: AdminAgentsReportUsageRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminAgentsReportUsageResponse>>;
291
317
  /**
292
318
  *
293
319
  * @summary Revoke agent API key (nullify it so it can no longer authenticate)
@@ -302,10 +328,11 @@ export declare const AdminAgentsApiFp: (configuration?: Configuration) => {
302
328
  * @summary Rotate agent credentials
303
329
  * @param {string} orgId
304
330
  * @param {string} agentId
331
+ * @param {AdminAgentsAgentsRotateKeyRequest} [adminAgentsAgentsRotateKeyRequest] For an api_key agent, the optional lifetime of the new key (ignored for a client secret). Without either field the current expiry date is kept, unless it has already passed (then the new key gets 180 days).
305
332
  * @param {*} [options] Override http request option.
306
333
  * @throws {RequiredError}
307
334
  */
308
- adminAgentsRotateCredentials(orgId: string, agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminAgentsRotateCredentialsResponse>>;
335
+ adminAgentsRotateCredentials(orgId: string, agentId: string, adminAgentsAgentsRotateKeyRequest?: AdminAgentsAgentsRotateKeyRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminAgentsRotateCredentialsResponse>>;
309
336
  /**
310
337
  *
311
338
  * @summary Update agent scopes/capabilities
@@ -430,6 +457,14 @@ export declare const AdminAgentsApiFactory: (configuration?: Configuration, base
430
457
  * @throws {RequiredError}
431
458
  */
432
459
  adminAgentsList(requestParameters: AdminAgentsApiAdminAgentsListRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminAgentsListResponse>;
460
+ /**
461
+ * 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.
462
+ * @summary Report model tokens and cost for an agent
463
+ * @param {AdminAgentsApiAdminAgentsReportUsageRequest} requestParameters Request parameters.
464
+ * @param {*} [options] Override http request option.
465
+ * @throws {RequiredError}
466
+ */
467
+ adminAgentsReportUsage(requestParameters: AdminAgentsApiAdminAgentsReportUsageRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminAgentsReportUsageResponse>;
433
468
  /**
434
469
  *
435
470
  * @summary Revoke agent API key (nullify it so it can no longer authenticate)
@@ -576,6 +611,15 @@ export interface AdminAgentsApiInterface {
576
611
  * @memberof AdminAgentsApiInterface
577
612
  */
578
613
  adminAgentsList(requestParameters: AdminAgentsApiAdminAgentsListRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminAgentsListResponse>;
614
+ /**
615
+ * 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.
616
+ * @summary Report model tokens and cost for an agent
617
+ * @param {AdminAgentsApiAdminAgentsReportUsageRequest} requestParameters Request parameters.
618
+ * @param {*} [options] Override http request option.
619
+ * @throws {RequiredError}
620
+ * @memberof AdminAgentsApiInterface
621
+ */
622
+ adminAgentsReportUsage(requestParameters: AdminAgentsApiAdminAgentsReportUsageRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminAgentsReportUsageResponse>;
579
623
  /**
580
624
  *
581
625
  * @summary Revoke agent API key (nullify it so it can no longer authenticate)
@@ -697,6 +741,12 @@ export interface AdminAgentsApiAdminAgentsAgentsRotateKeyRequest {
697
741
  * @memberof AdminAgentsApiAdminAgentsAgentsRotateKey
698
742
  */
699
743
  readonly agentId: string;
744
+ /**
745
+ * Optional lifetime of the new API key. Without either field the current expiry date is kept, unless it has already passed (then the new key gets 180 days).
746
+ * @type {AdminAgentsAgentsRotateKeyRequest}
747
+ * @memberof AdminAgentsApiAdminAgentsAgentsRotateKey
748
+ */
749
+ readonly adminAgentsAgentsRotateKeyRequest?: AdminAgentsAgentsRotateKeyRequest;
700
750
  }
701
751
  /**
702
752
  * Request parameters for adminAgentsCreate operation in AdminAgentsApi.
@@ -831,6 +881,31 @@ export interface AdminAgentsApiAdminAgentsListRequest {
831
881
  */
832
882
  readonly orgId: string;
833
883
  }
884
+ /**
885
+ * Request parameters for adminAgentsReportUsage operation in AdminAgentsApi.
886
+ * @export
887
+ * @interface AdminAgentsApiAdminAgentsReportUsageRequest
888
+ */
889
+ export interface AdminAgentsApiAdminAgentsReportUsageRequest {
890
+ /**
891
+ *
892
+ * @type {string}
893
+ * @memberof AdminAgentsApiAdminAgentsReportUsage
894
+ */
895
+ readonly orgId: string;
896
+ /**
897
+ *
898
+ * @type {string}
899
+ * @memberof AdminAgentsApiAdminAgentsReportUsage
900
+ */
901
+ readonly agentId: string;
902
+ /**
903
+ *
904
+ * @type {AdminAgentsReportUsageRequest}
905
+ * @memberof AdminAgentsApiAdminAgentsReportUsage
906
+ */
907
+ readonly adminAgentsReportUsageRequest: AdminAgentsReportUsageRequest;
908
+ }
834
909
  /**
835
910
  * Request parameters for adminAgentsRevokeKey operation in AdminAgentsApi.
836
911
  * @export
@@ -868,6 +943,12 @@ export interface AdminAgentsApiAdminAgentsRotateCredentialsRequest {
868
943
  * @memberof AdminAgentsApiAdminAgentsRotateCredentials
869
944
  */
870
945
  readonly agentId: string;
946
+ /**
947
+ * For an api_key agent, the optional lifetime of the new key (ignored for a client secret). Without either field the current expiry date is kept, unless it has already passed (then the new key gets 180 days).
948
+ * @type {AdminAgentsAgentsRotateKeyRequest}
949
+ * @memberof AdminAgentsApiAdminAgentsRotateCredentials
950
+ */
951
+ readonly adminAgentsAgentsRotateKeyRequest?: AdminAgentsAgentsRotateKeyRequest;
871
952
  }
872
953
  /**
873
954
  * Request parameters for adminAgentsSetScopes operation in AdminAgentsApi.
@@ -1050,6 +1131,15 @@ export declare class AdminAgentsApi extends BaseAPI implements AdminAgentsApiInt
1050
1131
  * @memberof AdminAgentsApi
1051
1132
  */
1052
1133
  adminAgentsList(requestParameters: AdminAgentsApiAdminAgentsListRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AdminAgentsListResponse, any, {}>>;
1134
+ /**
1135
+ * 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.
1136
+ * @summary Report model tokens and cost for an agent
1137
+ * @param {AdminAgentsApiAdminAgentsReportUsageRequest} requestParameters Request parameters.
1138
+ * @param {*} [options] Override http request option.
1139
+ * @throws {RequiredError}
1140
+ * @memberof AdminAgentsApi
1141
+ */
1142
+ adminAgentsReportUsage(requestParameters: AdminAgentsApiAdminAgentsReportUsageRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AdminAgentsReportUsageResponse, any, {}>>;
1053
1143
  /**
1054
1144
  *
1055
1145
  * @summary Revoke agent API key (nullify it so it can no longer authenticate)
@@ -151,10 +151,11 @@ export const AdminAgentsApiAxiosParamCreator = function (configuration) {
151
151
  * @summary Rotate agent API key
152
152
  * @param {string} orgId
153
153
  * @param {string} agentId
154
+ * @param {AdminAgentsAgentsRotateKeyRequest} [adminAgentsAgentsRotateKeyRequest] Optional lifetime of the new API key. Without either field the current expiry date is kept, unless it has already passed (then the new key gets 180 days).
154
155
  * @param {*} [options] Override http request option.
155
156
  * @throws {RequiredError}
156
157
  */
157
- adminAgentsAgentsRotateKey: (orgId_1, agentId_1, ...args_1) => __awaiter(this, [orgId_1, agentId_1, ...args_1], void 0, function* (orgId, agentId, options = {}) {
158
+ adminAgentsAgentsRotateKey: (orgId_1, agentId_1, adminAgentsAgentsRotateKeyRequest_1, ...args_1) => __awaiter(this, [orgId_1, agentId_1, adminAgentsAgentsRotateKeyRequest_1, ...args_1], void 0, function* (orgId, agentId, adminAgentsAgentsRotateKeyRequest, options = {}) {
158
159
  // verify required parameter 'orgId' is not null or undefined
159
160
  assertParamExists('adminAgentsAgentsRotateKey', 'orgId', orgId);
160
161
  // verify required parameter 'agentId' is not null or undefined
@@ -176,9 +177,11 @@ export const AdminAgentsApiAxiosParamCreator = function (configuration) {
176
177
  // authentication BearerAuth required
177
178
  // http bearer authentication required
178
179
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
180
+ localVarHeaderParameter['Content-Type'] = 'application/json';
179
181
  setSearchParams(localVarUrlObj, localVarQueryParameter);
180
182
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
181
183
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
184
+ localVarRequestOptions.data = serializeDataIfNeeded(adminAgentsAgentsRotateKeyRequest, localVarRequestOptions, configuration);
182
185
  return {
183
186
  url: toPathString(localVarUrlObj),
184
187
  options: localVarRequestOptions,
@@ -450,6 +453,49 @@ export const AdminAgentsApiAxiosParamCreator = function (configuration) {
450
453
  options: localVarRequestOptions,
451
454
  };
452
455
  }),
456
+ /**
457
+ * 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.
458
+ * @summary Report model tokens and cost for an agent
459
+ * @param {string} orgId
460
+ * @param {string} agentId
461
+ * @param {AdminAgentsReportUsageRequest} adminAgentsReportUsageRequest
462
+ * @param {*} [options] Override http request option.
463
+ * @throws {RequiredError}
464
+ */
465
+ adminAgentsReportUsage: (orgId_1, agentId_1, adminAgentsReportUsageRequest_1, ...args_1) => __awaiter(this, [orgId_1, agentId_1, adminAgentsReportUsageRequest_1, ...args_1], void 0, function* (orgId, agentId, adminAgentsReportUsageRequest, options = {}) {
466
+ // verify required parameter 'orgId' is not null or undefined
467
+ assertParamExists('adminAgentsReportUsage', 'orgId', orgId);
468
+ // verify required parameter 'agentId' is not null or undefined
469
+ assertParamExists('adminAgentsReportUsage', 'agentId', agentId);
470
+ // verify required parameter 'adminAgentsReportUsageRequest' is not null or undefined
471
+ assertParamExists('adminAgentsReportUsage', 'adminAgentsReportUsageRequest', adminAgentsReportUsageRequest);
472
+ const localVarPath = `/orgs/{orgId}/api/v1/admin/agents/{agentId}/usage`
473
+ .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)))
474
+ .replace(`{${"agentId"}}`, encodeURIComponent(String(agentId)));
475
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
476
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
477
+ let baseOptions;
478
+ if (configuration) {
479
+ baseOptions = configuration.baseOptions;
480
+ }
481
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
482
+ const localVarHeaderParameter = {};
483
+ const localVarQueryParameter = {};
484
+ // authentication ApiKeyAuth required
485
+ yield setApiKeyToObject(localVarHeaderParameter, "X-API-Key", configuration);
486
+ // authentication BearerAuth required
487
+ // http bearer authentication required
488
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
489
+ localVarHeaderParameter['Content-Type'] = 'application/json';
490
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
491
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
492
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
493
+ localVarRequestOptions.data = serializeDataIfNeeded(adminAgentsReportUsageRequest, localVarRequestOptions, configuration);
494
+ return {
495
+ url: toPathString(localVarUrlObj),
496
+ options: localVarRequestOptions,
497
+ };
498
+ }),
453
499
  /**
454
500
  *
455
501
  * @summary Revoke agent API key (nullify it so it can no longer authenticate)
@@ -493,10 +539,11 @@ export const AdminAgentsApiAxiosParamCreator = function (configuration) {
493
539
  * @summary Rotate agent credentials
494
540
  * @param {string} orgId
495
541
  * @param {string} agentId
542
+ * @param {AdminAgentsAgentsRotateKeyRequest} [adminAgentsAgentsRotateKeyRequest] For an api_key agent, the optional lifetime of the new key (ignored for a client secret). Without either field the current expiry date is kept, unless it has already passed (then the new key gets 180 days).
496
543
  * @param {*} [options] Override http request option.
497
544
  * @throws {RequiredError}
498
545
  */
499
- adminAgentsRotateCredentials: (orgId_1, agentId_1, ...args_1) => __awaiter(this, [orgId_1, agentId_1, ...args_1], void 0, function* (orgId, agentId, options = {}) {
546
+ adminAgentsRotateCredentials: (orgId_1, agentId_1, adminAgentsAgentsRotateKeyRequest_1, ...args_1) => __awaiter(this, [orgId_1, agentId_1, adminAgentsAgentsRotateKeyRequest_1, ...args_1], void 0, function* (orgId, agentId, adminAgentsAgentsRotateKeyRequest, options = {}) {
500
547
  // verify required parameter 'orgId' is not null or undefined
501
548
  assertParamExists('adminAgentsRotateCredentials', 'orgId', orgId);
502
549
  // verify required parameter 'agentId' is not null or undefined
@@ -518,9 +565,11 @@ export const AdminAgentsApiAxiosParamCreator = function (configuration) {
518
565
  // authentication BearerAuth required
519
566
  // http bearer authentication required
520
567
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
568
+ localVarHeaderParameter['Content-Type'] = 'application/json';
521
569
  setSearchParams(localVarUrlObj, localVarQueryParameter);
522
570
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
523
571
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
572
+ localVarRequestOptions.data = serializeDataIfNeeded(adminAgentsAgentsRotateKeyRequest, localVarRequestOptions, configuration);
524
573
  return {
525
574
  url: toPathString(localVarUrlObj),
526
575
  options: localVarRequestOptions,
@@ -720,13 +769,14 @@ export const AdminAgentsApiFp = function (configuration) {
720
769
  * @summary Rotate agent API key
721
770
  * @param {string} orgId
722
771
  * @param {string} agentId
772
+ * @param {AdminAgentsAgentsRotateKeyRequest} [adminAgentsAgentsRotateKeyRequest] Optional lifetime of the new API key. Without either field the current expiry date is kept, unless it has already passed (then the new key gets 180 days).
723
773
  * @param {*} [options] Override http request option.
724
774
  * @throws {RequiredError}
725
775
  */
726
- adminAgentsAgentsRotateKey(orgId, agentId, options) {
776
+ adminAgentsAgentsRotateKey(orgId, agentId, adminAgentsAgentsRotateKeyRequest, options) {
727
777
  return __awaiter(this, void 0, void 0, function* () {
728
778
  var _a, _b, _c;
729
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminAgentsAgentsRotateKey(orgId, agentId, options);
779
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminAgentsAgentsRotateKey(orgId, agentId, adminAgentsAgentsRotateKeyRequest, options);
730
780
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
731
781
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminAgentsApi.adminAgentsAgentsRotateKey']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
732
782
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -851,6 +901,24 @@ export const AdminAgentsApiFp = function (configuration) {
851
901
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
852
902
  });
853
903
  },
904
+ /**
905
+ * 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.
906
+ * @summary Report model tokens and cost for an agent
907
+ * @param {string} orgId
908
+ * @param {string} agentId
909
+ * @param {AdminAgentsReportUsageRequest} adminAgentsReportUsageRequest
910
+ * @param {*} [options] Override http request option.
911
+ * @throws {RequiredError}
912
+ */
913
+ adminAgentsReportUsage(orgId, agentId, adminAgentsReportUsageRequest, options) {
914
+ return __awaiter(this, void 0, void 0, function* () {
915
+ var _a, _b, _c;
916
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminAgentsReportUsage(orgId, agentId, adminAgentsReportUsageRequest, options);
917
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
918
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminAgentsApi.adminAgentsReportUsage']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
919
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
920
+ });
921
+ },
854
922
  /**
855
923
  *
856
924
  * @summary Revoke agent API key (nullify it so it can no longer authenticate)
@@ -873,13 +941,14 @@ export const AdminAgentsApiFp = function (configuration) {
873
941
  * @summary Rotate agent credentials
874
942
  * @param {string} orgId
875
943
  * @param {string} agentId
944
+ * @param {AdminAgentsAgentsRotateKeyRequest} [adminAgentsAgentsRotateKeyRequest] For an api_key agent, the optional lifetime of the new key (ignored for a client secret). Without either field the current expiry date is kept, unless it has already passed (then the new key gets 180 days).
876
945
  * @param {*} [options] Override http request option.
877
946
  * @throws {RequiredError}
878
947
  */
879
- adminAgentsRotateCredentials(orgId, agentId, options) {
948
+ adminAgentsRotateCredentials(orgId, agentId, adminAgentsAgentsRotateKeyRequest, options) {
880
949
  return __awaiter(this, void 0, void 0, function* () {
881
950
  var _a, _b, _c;
882
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminAgentsRotateCredentials(orgId, agentId, options);
951
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminAgentsRotateCredentials(orgId, agentId, adminAgentsAgentsRotateKeyRequest, options);
883
952
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
884
953
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminAgentsApi.adminAgentsRotateCredentials']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
885
954
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -986,7 +1055,7 @@ export const AdminAgentsApiFactory = function (configuration, basePath, axios) {
986
1055
  * @throws {RequiredError}
987
1056
  */
988
1057
  adminAgentsAgentsRotateKey(requestParameters, options) {
989
- return localVarFp.adminAgentsAgentsRotateKey(requestParameters.orgId, requestParameters.agentId, options).then((request) => request(axios, basePath));
1058
+ return localVarFp.adminAgentsAgentsRotateKey(requestParameters.orgId, requestParameters.agentId, requestParameters.adminAgentsAgentsRotateKeyRequest, options).then((request) => request(axios, basePath));
990
1059
  },
991
1060
  /**
992
1061
  *
@@ -1058,6 +1127,16 @@ export const AdminAgentsApiFactory = function (configuration, basePath, axios) {
1058
1127
  adminAgentsList(requestParameters, options) {
1059
1128
  return localVarFp.adminAgentsList(requestParameters.orgId, options).then((request) => request(axios, basePath));
1060
1129
  },
1130
+ /**
1131
+ * 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.
1132
+ * @summary Report model tokens and cost for an agent
1133
+ * @param {AdminAgentsApiAdminAgentsReportUsageRequest} requestParameters Request parameters.
1134
+ * @param {*} [options] Override http request option.
1135
+ * @throws {RequiredError}
1136
+ */
1137
+ adminAgentsReportUsage(requestParameters, options) {
1138
+ return localVarFp.adminAgentsReportUsage(requestParameters.orgId, requestParameters.agentId, requestParameters.adminAgentsReportUsageRequest, options).then((request) => request(axios, basePath));
1139
+ },
1061
1140
  /**
1062
1141
  *
1063
1142
  * @summary Revoke agent API key (nullify it so it can no longer authenticate)
@@ -1076,7 +1155,7 @@ export const AdminAgentsApiFactory = function (configuration, basePath, axios) {
1076
1155
  * @throws {RequiredError}
1077
1156
  */
1078
1157
  adminAgentsRotateCredentials(requestParameters, options) {
1079
- return localVarFp.adminAgentsRotateCredentials(requestParameters.orgId, requestParameters.agentId, options).then((request) => request(axios, basePath));
1158
+ return localVarFp.adminAgentsRotateCredentials(requestParameters.orgId, requestParameters.agentId, requestParameters.adminAgentsAgentsRotateKeyRequest, options).then((request) => request(axios, basePath));
1080
1159
  },
1081
1160
  /**
1082
1161
  *
@@ -1159,7 +1238,7 @@ export class AdminAgentsApi extends BaseAPI {
1159
1238
  * @memberof AdminAgentsApi
1160
1239
  */
1161
1240
  adminAgentsAgentsRotateKey(requestParameters, options) {
1162
- return AdminAgentsApiFp(this.configuration).adminAgentsAgentsRotateKey(requestParameters.orgId, requestParameters.agentId, options).then((request) => request(this.axios, this.basePath));
1241
+ return AdminAgentsApiFp(this.configuration).adminAgentsAgentsRotateKey(requestParameters.orgId, requestParameters.agentId, requestParameters.adminAgentsAgentsRotateKeyRequest, options).then((request) => request(this.axios, this.basePath));
1163
1242
  }
1164
1243
  /**
1165
1244
  *
@@ -1238,6 +1317,17 @@ export class AdminAgentsApi extends BaseAPI {
1238
1317
  adminAgentsList(requestParameters, options) {
1239
1318
  return AdminAgentsApiFp(this.configuration).adminAgentsList(requestParameters.orgId, options).then((request) => request(this.axios, this.basePath));
1240
1319
  }
1320
+ /**
1321
+ * 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.
1322
+ * @summary Report model tokens and cost for an agent
1323
+ * @param {AdminAgentsApiAdminAgentsReportUsageRequest} requestParameters Request parameters.
1324
+ * @param {*} [options] Override http request option.
1325
+ * @throws {RequiredError}
1326
+ * @memberof AdminAgentsApi
1327
+ */
1328
+ adminAgentsReportUsage(requestParameters, options) {
1329
+ return AdminAgentsApiFp(this.configuration).adminAgentsReportUsage(requestParameters.orgId, requestParameters.agentId, requestParameters.adminAgentsReportUsageRequest, options).then((request) => request(this.axios, this.basePath));
1330
+ }
1241
1331
  /**
1242
1332
  *
1243
1333
  * @summary Revoke agent API key (nullify it so it can no longer authenticate)
@@ -1258,7 +1348,7 @@ export class AdminAgentsApi extends BaseAPI {
1258
1348
  * @memberof AdminAgentsApi
1259
1349
  */
1260
1350
  adminAgentsRotateCredentials(requestParameters, options) {
1261
- return AdminAgentsApiFp(this.configuration).adminAgentsRotateCredentials(requestParameters.orgId, requestParameters.agentId, options).then((request) => request(this.axios, this.basePath));
1351
+ return AdminAgentsApiFp(this.configuration).adminAgentsRotateCredentials(requestParameters.orgId, requestParameters.agentId, requestParameters.adminAgentsAgentsRotateKeyRequest, options).then((request) => request(this.axios, this.basePath));
1262
1352
  }
1263
1353
  /**
1264
1354
  *
@@ -22,7 +22,7 @@ import type { MessageResponse } from '../models';
22
22
  */
23
23
  export declare const AdminMcpApiAxiosParamCreator: (configuration?: Configuration) => {
24
24
  /**
25
- * Body: name (required) — display name resource_uri (required) — RFC 8707 canonical URI: https:// (http:// only for loopback), no fragment, no user info, not a LumoAuth host, unique per organization after normalisation (same rules as the portal) endpoint_url (optional) — actual MCP endpoint description (optional) scopes_supported (optional) — array OR space/comma-separated string; omnibus scopes, offline_access and admin/scim scopes are refused (422) basic_scopes (optional) — subset of scopes_supported advertised in the 401 challenge and Protected Resource Metadata; no wildcards transport (optional) — defaults to \"http_streamable\" (\"http_sse\" is deprecated in MCP 2026-07-28) auth_mode (optional) — defaults to \"oauth\" token_lifetime (optional, default 3600) — 60..86400, else 422 tool_authorizer_client_ids (optional) — the MCP server\'s own OAuth clients that may call the per-tool authorization endpoint allowed_client_ids (optional) — array of this organization\'s OAuth client ids; unknown ids are a 422 (never persisted as policy) require_pkce (optional, default true) require_resource_param (optional, default true) require_dpop (optional, default false) — RFC 9449 sender-constrained tokens only
25
+ * Body: name (required) — display name resource_uri (required) — RFC 8707 canonical URI: https:// (http:// only for loopback), no fragment, no user info, not a LumoAuth host, unique per organization after normalisation (same rules as the portal) endpoint_url (optional) — actual MCP endpoint description (optional) scopes_supported (optional) — array OR space/comma-separated string; omnibus scopes, offline_access and admin/scim scopes are refused (422) basic_scopes (optional) — subset of scopes_supported advertised in the 401 challenge and Protected Resource Metadata; no wildcards transport (optional) — defaults to \"http_streamable\" (\"http_sse\" is deprecated in MCP 2026-07-28) auth_mode (optional) — defaults to \"oauth\" token_lifetime (optional, default 3600) — 60..86400, else 422 tool_authorizer_client_ids (optional) — the MCP server\'s own OAuth clients that may call the per-tool authorization endpoint allowed_client_ids (optional) — array of this organization\'s OAuth client ids; unknown ids are a 422 (never persisted as policy) require_pkce (optional, default true) require_resource_param (optional, default true) require_dpop (optional, default false) — RFC 9449 sender-constrained tokens only scope_descriptions (optional) — object scope => text for scopes in scopes_supported (portal and consent page only), 200 characters each A server that is not OAuth-protected (auth_mode \"none\" or transport \"stdio\") is stored with the three require_* switches off. Fields that cannot be configured (include_scope_in_challenge, bearer_methods_supported) are refused with 400 so that a caller is never told a value was stored.
26
26
  * @summary Register an MCP server
27
27
  * @param {string} orgId
28
28
  * @param {*} [options] Override http request option.
@@ -62,7 +62,7 @@ export declare const AdminMcpApiAxiosParamCreator: (configuration?: Configuratio
62
62
  */
63
63
  export declare const AdminMcpApiFp: (configuration?: Configuration) => {
64
64
  /**
65
- * Body: name (required) — display name resource_uri (required) — RFC 8707 canonical URI: https:// (http:// only for loopback), no fragment, no user info, not a LumoAuth host, unique per organization after normalisation (same rules as the portal) endpoint_url (optional) — actual MCP endpoint description (optional) scopes_supported (optional) — array OR space/comma-separated string; omnibus scopes, offline_access and admin/scim scopes are refused (422) basic_scopes (optional) — subset of scopes_supported advertised in the 401 challenge and Protected Resource Metadata; no wildcards transport (optional) — defaults to \"http_streamable\" (\"http_sse\" is deprecated in MCP 2026-07-28) auth_mode (optional) — defaults to \"oauth\" token_lifetime (optional, default 3600) — 60..86400, else 422 tool_authorizer_client_ids (optional) — the MCP server\'s own OAuth clients that may call the per-tool authorization endpoint allowed_client_ids (optional) — array of this organization\'s OAuth client ids; unknown ids are a 422 (never persisted as policy) require_pkce (optional, default true) require_resource_param (optional, default true) require_dpop (optional, default false) — RFC 9449 sender-constrained tokens only
65
+ * Body: name (required) — display name resource_uri (required) — RFC 8707 canonical URI: https:// (http:// only for loopback), no fragment, no user info, not a LumoAuth host, unique per organization after normalisation (same rules as the portal) endpoint_url (optional) — actual MCP endpoint description (optional) scopes_supported (optional) — array OR space/comma-separated string; omnibus scopes, offline_access and admin/scim scopes are refused (422) basic_scopes (optional) — subset of scopes_supported advertised in the 401 challenge and Protected Resource Metadata; no wildcards transport (optional) — defaults to \"http_streamable\" (\"http_sse\" is deprecated in MCP 2026-07-28) auth_mode (optional) — defaults to \"oauth\" token_lifetime (optional, default 3600) — 60..86400, else 422 tool_authorizer_client_ids (optional) — the MCP server\'s own OAuth clients that may call the per-tool authorization endpoint allowed_client_ids (optional) — array of this organization\'s OAuth client ids; unknown ids are a 422 (never persisted as policy) require_pkce (optional, default true) require_resource_param (optional, default true) require_dpop (optional, default false) — RFC 9449 sender-constrained tokens only scope_descriptions (optional) — object scope => text for scopes in scopes_supported (portal and consent page only), 200 characters each A server that is not OAuth-protected (auth_mode \"none\" or transport \"stdio\") is stored with the three require_* switches off. Fields that cannot be configured (include_scope_in_challenge, bearer_methods_supported) are refused with 400 so that a caller is never told a value was stored.
66
66
  * @summary Register an MCP server
67
67
  * @param {string} orgId
68
68
  * @param {*} [options] Override http request option.
@@ -102,7 +102,7 @@ export declare const AdminMcpApiFp: (configuration?: Configuration) => {
102
102
  */
103
103
  export declare const AdminMcpApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
104
104
  /**
105
- * Body: name (required) — display name resource_uri (required) — RFC 8707 canonical URI: https:// (http:// only for loopback), no fragment, no user info, not a LumoAuth host, unique per organization after normalisation (same rules as the portal) endpoint_url (optional) — actual MCP endpoint description (optional) scopes_supported (optional) — array OR space/comma-separated string; omnibus scopes, offline_access and admin/scim scopes are refused (422) basic_scopes (optional) — subset of scopes_supported advertised in the 401 challenge and Protected Resource Metadata; no wildcards transport (optional) — defaults to \"http_streamable\" (\"http_sse\" is deprecated in MCP 2026-07-28) auth_mode (optional) — defaults to \"oauth\" token_lifetime (optional, default 3600) — 60..86400, else 422 tool_authorizer_client_ids (optional) — the MCP server\'s own OAuth clients that may call the per-tool authorization endpoint allowed_client_ids (optional) — array of this organization\'s OAuth client ids; unknown ids are a 422 (never persisted as policy) require_pkce (optional, default true) require_resource_param (optional, default true) require_dpop (optional, default false) — RFC 9449 sender-constrained tokens only
105
+ * Body: name (required) — display name resource_uri (required) — RFC 8707 canonical URI: https:// (http:// only for loopback), no fragment, no user info, not a LumoAuth host, unique per organization after normalisation (same rules as the portal) endpoint_url (optional) — actual MCP endpoint description (optional) scopes_supported (optional) — array OR space/comma-separated string; omnibus scopes, offline_access and admin/scim scopes are refused (422) basic_scopes (optional) — subset of scopes_supported advertised in the 401 challenge and Protected Resource Metadata; no wildcards transport (optional) — defaults to \"http_streamable\" (\"http_sse\" is deprecated in MCP 2026-07-28) auth_mode (optional) — defaults to \"oauth\" token_lifetime (optional, default 3600) — 60..86400, else 422 tool_authorizer_client_ids (optional) — the MCP server\'s own OAuth clients that may call the per-tool authorization endpoint allowed_client_ids (optional) — array of this organization\'s OAuth client ids; unknown ids are a 422 (never persisted as policy) require_pkce (optional, default true) require_resource_param (optional, default true) require_dpop (optional, default false) — RFC 9449 sender-constrained tokens only scope_descriptions (optional) — object scope => text for scopes in scopes_supported (portal and consent page only), 200 characters each A server that is not OAuth-protected (auth_mode \"none\" or transport \"stdio\") is stored with the three require_* switches off. Fields that cannot be configured (include_scope_in_challenge, bearer_methods_supported) are refused with 400 so that a caller is never told a value was stored.
106
106
  * @summary Register an MCP server
107
107
  * @param {AdminMcpApiAdminMcpServersCreateRequest} requestParameters Request parameters.
108
108
  * @param {*} [options] Override http request option.
@@ -141,7 +141,7 @@ export declare const AdminMcpApiFactory: (configuration?: Configuration, basePat
141
141
  */
142
142
  export interface AdminMcpApiInterface {
143
143
  /**
144
- * Body: name (required) — display name resource_uri (required) — RFC 8707 canonical URI: https:// (http:// only for loopback), no fragment, no user info, not a LumoAuth host, unique per organization after normalisation (same rules as the portal) endpoint_url (optional) — actual MCP endpoint description (optional) scopes_supported (optional) — array OR space/comma-separated string; omnibus scopes, offline_access and admin/scim scopes are refused (422) basic_scopes (optional) — subset of scopes_supported advertised in the 401 challenge and Protected Resource Metadata; no wildcards transport (optional) — defaults to \"http_streamable\" (\"http_sse\" is deprecated in MCP 2026-07-28) auth_mode (optional) — defaults to \"oauth\" token_lifetime (optional, default 3600) — 60..86400, else 422 tool_authorizer_client_ids (optional) — the MCP server\'s own OAuth clients that may call the per-tool authorization endpoint allowed_client_ids (optional) — array of this organization\'s OAuth client ids; unknown ids are a 422 (never persisted as policy) require_pkce (optional, default true) require_resource_param (optional, default true) require_dpop (optional, default false) — RFC 9449 sender-constrained tokens only
144
+ * Body: name (required) — display name resource_uri (required) — RFC 8707 canonical URI: https:// (http:// only for loopback), no fragment, no user info, not a LumoAuth host, unique per organization after normalisation (same rules as the portal) endpoint_url (optional) — actual MCP endpoint description (optional) scopes_supported (optional) — array OR space/comma-separated string; omnibus scopes, offline_access and admin/scim scopes are refused (422) basic_scopes (optional) — subset of scopes_supported advertised in the 401 challenge and Protected Resource Metadata; no wildcards transport (optional) — defaults to \"http_streamable\" (\"http_sse\" is deprecated in MCP 2026-07-28) auth_mode (optional) — defaults to \"oauth\" token_lifetime (optional, default 3600) — 60..86400, else 422 tool_authorizer_client_ids (optional) — the MCP server\'s own OAuth clients that may call the per-tool authorization endpoint allowed_client_ids (optional) — array of this organization\'s OAuth client ids; unknown ids are a 422 (never persisted as policy) require_pkce (optional, default true) require_resource_param (optional, default true) require_dpop (optional, default false) — RFC 9449 sender-constrained tokens only scope_descriptions (optional) — object scope => text for scopes in scopes_supported (portal and consent page only), 200 characters each A server that is not OAuth-protected (auth_mode \"none\" or transport \"stdio\") is stored with the three require_* switches off. Fields that cannot be configured (include_scope_in_challenge, bearer_methods_supported) are refused with 400 so that a caller is never told a value was stored.
145
145
  * @summary Register an MCP server
146
146
  * @param {AdminMcpApiAdminMcpServersCreateRequest} requestParameters Request parameters.
147
147
  * @param {*} [options] Override http request option.
@@ -249,7 +249,7 @@ export interface AdminMcpApiAdminMcpServersListRequest {
249
249
  */
250
250
  export declare class AdminMcpApi extends BaseAPI implements AdminMcpApiInterface {
251
251
  /**
252
- * Body: name (required) — display name resource_uri (required) — RFC 8707 canonical URI: https:// (http:// only for loopback), no fragment, no user info, not a LumoAuth host, unique per organization after normalisation (same rules as the portal) endpoint_url (optional) — actual MCP endpoint description (optional) scopes_supported (optional) — array OR space/comma-separated string; omnibus scopes, offline_access and admin/scim scopes are refused (422) basic_scopes (optional) — subset of scopes_supported advertised in the 401 challenge and Protected Resource Metadata; no wildcards transport (optional) — defaults to \"http_streamable\" (\"http_sse\" is deprecated in MCP 2026-07-28) auth_mode (optional) — defaults to \"oauth\" token_lifetime (optional, default 3600) — 60..86400, else 422 tool_authorizer_client_ids (optional) — the MCP server\'s own OAuth clients that may call the per-tool authorization endpoint allowed_client_ids (optional) — array of this organization\'s OAuth client ids; unknown ids are a 422 (never persisted as policy) require_pkce (optional, default true) require_resource_param (optional, default true) require_dpop (optional, default false) — RFC 9449 sender-constrained tokens only
252
+ * Body: name (required) — display name resource_uri (required) — RFC 8707 canonical URI: https:// (http:// only for loopback), no fragment, no user info, not a LumoAuth host, unique per organization after normalisation (same rules as the portal) endpoint_url (optional) — actual MCP endpoint description (optional) scopes_supported (optional) — array OR space/comma-separated string; omnibus scopes, offline_access and admin/scim scopes are refused (422) basic_scopes (optional) — subset of scopes_supported advertised in the 401 challenge and Protected Resource Metadata; no wildcards transport (optional) — defaults to \"http_streamable\" (\"http_sse\" is deprecated in MCP 2026-07-28) auth_mode (optional) — defaults to \"oauth\" token_lifetime (optional, default 3600) — 60..86400, else 422 tool_authorizer_client_ids (optional) — the MCP server\'s own OAuth clients that may call the per-tool authorization endpoint allowed_client_ids (optional) — array of this organization\'s OAuth client ids; unknown ids are a 422 (never persisted as policy) require_pkce (optional, default true) require_resource_param (optional, default true) require_dpop (optional, default false) — RFC 9449 sender-constrained tokens only scope_descriptions (optional) — object scope => text for scopes in scopes_supported (portal and consent page only), 200 characters each A server that is not OAuth-protected (auth_mode \"none\" or transport \"stdio\") is stored with the three require_* switches off. Fields that cannot be configured (include_scope_in_challenge, bearer_methods_supported) are refused with 400 so that a caller is never told a value was stored.
253
253
  * @summary Register an MCP server
254
254
  * @param {AdminMcpApiAdminMcpServersCreateRequest} requestParameters Request parameters.
255
255
  * @param {*} [options] Override http request option.
@@ -33,7 +33,7 @@ import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
33
33
  export const AdminMcpApiAxiosParamCreator = function (configuration) {
34
34
  return {
35
35
  /**
36
- * Body: name (required) — display name resource_uri (required) — RFC 8707 canonical URI: https:// (http:// only for loopback), no fragment, no user info, not a LumoAuth host, unique per organization after normalisation (same rules as the portal) endpoint_url (optional) — actual MCP endpoint description (optional) scopes_supported (optional) — array OR space/comma-separated string; omnibus scopes, offline_access and admin/scim scopes are refused (422) basic_scopes (optional) — subset of scopes_supported advertised in the 401 challenge and Protected Resource Metadata; no wildcards transport (optional) — defaults to \"http_streamable\" (\"http_sse\" is deprecated in MCP 2026-07-28) auth_mode (optional) — defaults to \"oauth\" token_lifetime (optional, default 3600) — 60..86400, else 422 tool_authorizer_client_ids (optional) — the MCP server\'s own OAuth clients that may call the per-tool authorization endpoint allowed_client_ids (optional) — array of this organization\'s OAuth client ids; unknown ids are a 422 (never persisted as policy) require_pkce (optional, default true) require_resource_param (optional, default true) require_dpop (optional, default false) — RFC 9449 sender-constrained tokens only
36
+ * Body: name (required) — display name resource_uri (required) — RFC 8707 canonical URI: https:// (http:// only for loopback), no fragment, no user info, not a LumoAuth host, unique per organization after normalisation (same rules as the portal) endpoint_url (optional) — actual MCP endpoint description (optional) scopes_supported (optional) — array OR space/comma-separated string; omnibus scopes, offline_access and admin/scim scopes are refused (422) basic_scopes (optional) — subset of scopes_supported advertised in the 401 challenge and Protected Resource Metadata; no wildcards transport (optional) — defaults to \"http_streamable\" (\"http_sse\" is deprecated in MCP 2026-07-28) auth_mode (optional) — defaults to \"oauth\" token_lifetime (optional, default 3600) — 60..86400, else 422 tool_authorizer_client_ids (optional) — the MCP server\'s own OAuth clients that may call the per-tool authorization endpoint allowed_client_ids (optional) — array of this organization\'s OAuth client ids; unknown ids are a 422 (never persisted as policy) require_pkce (optional, default true) require_resource_param (optional, default true) require_dpop (optional, default false) — RFC 9449 sender-constrained tokens only scope_descriptions (optional) — object scope => text for scopes in scopes_supported (portal and consent page only), 200 characters each A server that is not OAuth-protected (auth_mode \"none\" or transport \"stdio\") is stored with the three require_* switches off. Fields that cannot be configured (include_scope_in_challenge, bearer_methods_supported) are refused with 400 so that a caller is never told a value was stored.
37
37
  * @summary Register an MCP server
38
38
  * @param {string} orgId
39
39
  * @param {*} [options] Override http request option.
@@ -186,7 +186,7 @@ export const AdminMcpApiFp = function (configuration) {
186
186
  const localVarAxiosParamCreator = AdminMcpApiAxiosParamCreator(configuration);
187
187
  return {
188
188
  /**
189
- * Body: name (required) — display name resource_uri (required) — RFC 8707 canonical URI: https:// (http:// only for loopback), no fragment, no user info, not a LumoAuth host, unique per organization after normalisation (same rules as the portal) endpoint_url (optional) — actual MCP endpoint description (optional) scopes_supported (optional) — array OR space/comma-separated string; omnibus scopes, offline_access and admin/scim scopes are refused (422) basic_scopes (optional) — subset of scopes_supported advertised in the 401 challenge and Protected Resource Metadata; no wildcards transport (optional) — defaults to \"http_streamable\" (\"http_sse\" is deprecated in MCP 2026-07-28) auth_mode (optional) — defaults to \"oauth\" token_lifetime (optional, default 3600) — 60..86400, else 422 tool_authorizer_client_ids (optional) — the MCP server\'s own OAuth clients that may call the per-tool authorization endpoint allowed_client_ids (optional) — array of this organization\'s OAuth client ids; unknown ids are a 422 (never persisted as policy) require_pkce (optional, default true) require_resource_param (optional, default true) require_dpop (optional, default false) — RFC 9449 sender-constrained tokens only
189
+ * Body: name (required) — display name resource_uri (required) — RFC 8707 canonical URI: https:// (http:// only for loopback), no fragment, no user info, not a LumoAuth host, unique per organization after normalisation (same rules as the portal) endpoint_url (optional) — actual MCP endpoint description (optional) scopes_supported (optional) — array OR space/comma-separated string; omnibus scopes, offline_access and admin/scim scopes are refused (422) basic_scopes (optional) — subset of scopes_supported advertised in the 401 challenge and Protected Resource Metadata; no wildcards transport (optional) — defaults to \"http_streamable\" (\"http_sse\" is deprecated in MCP 2026-07-28) auth_mode (optional) — defaults to \"oauth\" token_lifetime (optional, default 3600) — 60..86400, else 422 tool_authorizer_client_ids (optional) — the MCP server\'s own OAuth clients that may call the per-tool authorization endpoint allowed_client_ids (optional) — array of this organization\'s OAuth client ids; unknown ids are a 422 (never persisted as policy) require_pkce (optional, default true) require_resource_param (optional, default true) require_dpop (optional, default false) — RFC 9449 sender-constrained tokens only scope_descriptions (optional) — object scope => text for scopes in scopes_supported (portal and consent page only), 200 characters each A server that is not OAuth-protected (auth_mode \"none\" or transport \"stdio\") is stored with the three require_* switches off. Fields that cannot be configured (include_scope_in_challenge, bearer_methods_supported) are refused with 400 so that a caller is never told a value was stored.
190
190
  * @summary Register an MCP server
191
191
  * @param {string} orgId
192
192
  * @param {*} [options] Override http request option.
@@ -261,7 +261,7 @@ export const AdminMcpApiFactory = function (configuration, basePath, axios) {
261
261
  const localVarFp = AdminMcpApiFp(configuration);
262
262
  return {
263
263
  /**
264
- * Body: name (required) — display name resource_uri (required) — RFC 8707 canonical URI: https:// (http:// only for loopback), no fragment, no user info, not a LumoAuth host, unique per organization after normalisation (same rules as the portal) endpoint_url (optional) — actual MCP endpoint description (optional) scopes_supported (optional) — array OR space/comma-separated string; omnibus scopes, offline_access and admin/scim scopes are refused (422) basic_scopes (optional) — subset of scopes_supported advertised in the 401 challenge and Protected Resource Metadata; no wildcards transport (optional) — defaults to \"http_streamable\" (\"http_sse\" is deprecated in MCP 2026-07-28) auth_mode (optional) — defaults to \"oauth\" token_lifetime (optional, default 3600) — 60..86400, else 422 tool_authorizer_client_ids (optional) — the MCP server\'s own OAuth clients that may call the per-tool authorization endpoint allowed_client_ids (optional) — array of this organization\'s OAuth client ids; unknown ids are a 422 (never persisted as policy) require_pkce (optional, default true) require_resource_param (optional, default true) require_dpop (optional, default false) — RFC 9449 sender-constrained tokens only
264
+ * Body: name (required) — display name resource_uri (required) — RFC 8707 canonical URI: https:// (http:// only for loopback), no fragment, no user info, not a LumoAuth host, unique per organization after normalisation (same rules as the portal) endpoint_url (optional) — actual MCP endpoint description (optional) scopes_supported (optional) — array OR space/comma-separated string; omnibus scopes, offline_access and admin/scim scopes are refused (422) basic_scopes (optional) — subset of scopes_supported advertised in the 401 challenge and Protected Resource Metadata; no wildcards transport (optional) — defaults to \"http_streamable\" (\"http_sse\" is deprecated in MCP 2026-07-28) auth_mode (optional) — defaults to \"oauth\" token_lifetime (optional, default 3600) — 60..86400, else 422 tool_authorizer_client_ids (optional) — the MCP server\'s own OAuth clients that may call the per-tool authorization endpoint allowed_client_ids (optional) — array of this organization\'s OAuth client ids; unknown ids are a 422 (never persisted as policy) require_pkce (optional, default true) require_resource_param (optional, default true) require_dpop (optional, default false) — RFC 9449 sender-constrained tokens only scope_descriptions (optional) — object scope => text for scopes in scopes_supported (portal and consent page only), 200 characters each A server that is not OAuth-protected (auth_mode \"none\" or transport \"stdio\") is stored with the three require_* switches off. Fields that cannot be configured (include_scope_in_challenge, bearer_methods_supported) are refused with 400 so that a caller is never told a value was stored.
265
265
  * @summary Register an MCP server
266
266
  * @param {AdminMcpApiAdminMcpServersCreateRequest} requestParameters Request parameters.
267
267
  * @param {*} [options] Override http request option.
@@ -310,7 +310,7 @@ export const AdminMcpApiFactory = function (configuration, basePath, axios) {
310
310
  */
311
311
  export class AdminMcpApi extends BaseAPI {
312
312
  /**
313
- * Body: name (required) — display name resource_uri (required) — RFC 8707 canonical URI: https:// (http:// only for loopback), no fragment, no user info, not a LumoAuth host, unique per organization after normalisation (same rules as the portal) endpoint_url (optional) — actual MCP endpoint description (optional) scopes_supported (optional) — array OR space/comma-separated string; omnibus scopes, offline_access and admin/scim scopes are refused (422) basic_scopes (optional) — subset of scopes_supported advertised in the 401 challenge and Protected Resource Metadata; no wildcards transport (optional) — defaults to \"http_streamable\" (\"http_sse\" is deprecated in MCP 2026-07-28) auth_mode (optional) — defaults to \"oauth\" token_lifetime (optional, default 3600) — 60..86400, else 422 tool_authorizer_client_ids (optional) — the MCP server\'s own OAuth clients that may call the per-tool authorization endpoint allowed_client_ids (optional) — array of this organization\'s OAuth client ids; unknown ids are a 422 (never persisted as policy) require_pkce (optional, default true) require_resource_param (optional, default true) require_dpop (optional, default false) — RFC 9449 sender-constrained tokens only
313
+ * Body: name (required) — display name resource_uri (required) — RFC 8707 canonical URI: https:// (http:// only for loopback), no fragment, no user info, not a LumoAuth host, unique per organization after normalisation (same rules as the portal) endpoint_url (optional) — actual MCP endpoint description (optional) scopes_supported (optional) — array OR space/comma-separated string; omnibus scopes, offline_access and admin/scim scopes are refused (422) basic_scopes (optional) — subset of scopes_supported advertised in the 401 challenge and Protected Resource Metadata; no wildcards transport (optional) — defaults to \"http_streamable\" (\"http_sse\" is deprecated in MCP 2026-07-28) auth_mode (optional) — defaults to \"oauth\" token_lifetime (optional, default 3600) — 60..86400, else 422 tool_authorizer_client_ids (optional) — the MCP server\'s own OAuth clients that may call the per-tool authorization endpoint allowed_client_ids (optional) — array of this organization\'s OAuth client ids; unknown ids are a 422 (never persisted as policy) require_pkce (optional, default true) require_resource_param (optional, default true) require_dpop (optional, default false) — RFC 9449 sender-constrained tokens only scope_descriptions (optional) — object scope => text for scopes in scopes_supported (portal and consent page only), 200 characters each A server that is not OAuth-protected (auth_mode \"none\" or transport \"stdio\") is stored with the three require_* switches off. Fields that cannot be configured (include_scope_in_challenge, bearer_methods_supported) are refused with 400 so that a caller is never told a value was stored.
314
314
  * @summary Register an MCP server
315
315
  * @param {AdminMcpApiAdminMcpServersCreateRequest} requestParameters Request parameters.
316
316
  * @param {*} [options] Override http request option.
@@ -160,7 +160,7 @@ export declare const AdminOAuthClientsApiAxiosParamCreator: (configuration?: Con
160
160
  setClientScopes: (orgId: string, clientId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
161
161
  /**
162
162
  *
163
- * @summary Replace an OAuth client
163
+ * @summary Update an OAuth client (same as PATCH: only the fields that are sent change)
164
164
  * @param {string} orgId
165
165
  * @param {string} clientId
166
166
  * @param {*} [options] Override http request option.
@@ -301,7 +301,7 @@ export declare const AdminOAuthClientsApiFp: (configuration?: Configuration) =>
301
301
  setClientScopes(orgId: string, clientId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SetClientScopesResponse>>;
302
302
  /**
303
303
  *
304
- * @summary Replace an OAuth client
304
+ * @summary Update an OAuth client (same as PATCH: only the fields that are sent change)
305
305
  * @param {string} orgId
306
306
  * @param {string} clientId
307
307
  * @param {*} [options] Override http request option.
@@ -428,7 +428,7 @@ export declare const AdminOAuthClientsApiFactory: (configuration?: Configuration
428
428
  setClientScopes(requestParameters: AdminOAuthClientsApiSetClientScopesRequest, options?: RawAxiosRequestConfig): AxiosPromise<SetClientScopesResponse>;
429
429
  /**
430
430
  *
431
- * @summary Replace an OAuth client
431
+ * @summary Update an OAuth client (same as PATCH: only the fields that are sent change)
432
432
  * @param {AdminOAuthClientsApiUpdateClientRequest} requestParameters Request parameters.
433
433
  * @param {*} [options] Override http request option.
434
434
  * @throws {RequiredError}
@@ -569,7 +569,7 @@ export interface AdminOAuthClientsApiInterface {
569
569
  setClientScopes(requestParameters: AdminOAuthClientsApiSetClientScopesRequest, options?: RawAxiosRequestConfig): AxiosPromise<SetClientScopesResponse>;
570
570
  /**
571
571
  *
572
- * @summary Replace an OAuth client
572
+ * @summary Update an OAuth client (same as PATCH: only the fields that are sent change)
573
573
  * @param {AdminOAuthClientsApiUpdateClientRequest} requestParameters Request parameters.
574
574
  * @param {*} [options] Override http request option.
575
575
  * @throws {RequiredError}
@@ -997,7 +997,7 @@ export declare class AdminOAuthClientsApi extends BaseAPI implements AdminOAuthC
997
997
  setClientScopes(requestParameters: AdminOAuthClientsApiSetClientScopesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SetClientScopesResponse, any, {}>>;
998
998
  /**
999
999
  *
1000
- * @summary Replace an OAuth client
1000
+ * @summary Update an OAuth client (same as PATCH: only the fields that are sent change)
1001
1001
  * @param {AdminOAuthClientsApiUpdateClientRequest} requestParameters Request parameters.
1002
1002
  * @param {*} [options] Override http request option.
1003
1003
  * @throws {RequiredError}