@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.
- package/.openapi-generator/FILES +22 -0
- package/README.md +19 -5
- package/api/admin-agents-api.ts +166 -10
- package/api/admin-mcp-api.ts +5 -5
- package/api/admin-oauth-clients-api.ts +5 -5
- package/api/admin-sandbox-api.ts +5 -5
- package/api/admin-users-api.ts +27 -26
- package/api/admin-webhooks-api.ts +25 -25
- package/api/agents-api.ts +118 -0
- package/api/oauth-api.ts +111 -0
- package/dist/api/admin-agents-api.d.ts +94 -4
- package/dist/api/admin-agents-api.js +100 -10
- package/dist/api/admin-mcp-api.d.ts +5 -5
- package/dist/api/admin-mcp-api.js +4 -4
- package/dist/api/admin-oauth-clients-api.d.ts +5 -5
- package/dist/api/admin-oauth-clients-api.js +4 -4
- package/dist/api/admin-sandbox-api.d.ts +5 -5
- package/dist/api/admin-sandbox-api.js +4 -4
- package/dist/api/admin-users-api.d.ts +27 -26
- package/dist/api/admin-users-api.js +21 -20
- package/dist/api/admin-webhooks-api.d.ts +25 -25
- package/dist/api/admin-webhooks-api.js +20 -20
- package/dist/api/agents-api.d.ts +65 -0
- package/dist/api/agents-api.js +77 -0
- package/dist/api/oauth-api.d.ts +65 -0
- package/dist/api/oauth-api.js +72 -0
- package/dist/esm/api/admin-agents-api.d.ts +94 -4
- package/dist/esm/api/admin-agents-api.js +100 -10
- package/dist/esm/api/admin-mcp-api.d.ts +5 -5
- package/dist/esm/api/admin-mcp-api.js +4 -4
- package/dist/esm/api/admin-oauth-clients-api.d.ts +5 -5
- package/dist/esm/api/admin-oauth-clients-api.js +4 -4
- package/dist/esm/api/admin-sandbox-api.d.ts +5 -5
- package/dist/esm/api/admin-sandbox-api.js +4 -4
- package/dist/esm/api/admin-users-api.d.ts +27 -26
- package/dist/esm/api/admin-users-api.js +21 -20
- package/dist/esm/api/admin-webhooks-api.d.ts +25 -25
- package/dist/esm/api/admin-webhooks-api.js +20 -20
- package/dist/esm/api/agents-api.d.ts +65 -0
- package/dist/esm/api/agents-api.js +77 -0
- package/dist/esm/api/oauth-api.d.ts +65 -0
- package/dist/esm/api/oauth-api.js +73 -1
- package/dist/esm/models/abac-attribute-definition.d.ts +1 -1
- package/dist/esm/models/abac-resource-attribute.d.ts +1 -1
- package/dist/esm/models/admin-agents-agents-rotate-key-request.d.ts +30 -0
- package/dist/esm/models/admin-agents-agents-rotate-key-request.js +14 -0
- package/dist/esm/models/admin-agents-agents-rotate-key-response.d.ts +6 -0
- package/dist/esm/models/admin-agents-create-request.d.ts +8 -0
- package/dist/esm/models/admin-agents-report-usage-request.d.ts +30 -0
- package/dist/esm/models/admin-agents-report-usage-request.js +14 -0
- package/dist/esm/models/admin-agents-report-usage-response-data-recorded.d.ts +30 -0
- package/dist/esm/models/admin-agents-report-usage-response-data-recorded.js +14 -0
- package/dist/esm/models/admin-agents-report-usage-response-data.d.ts +33 -0
- package/dist/esm/models/admin-agents-report-usage-response-data.js +14 -0
- package/dist/esm/models/admin-agents-report-usage-response.d.ts +25 -0
- package/dist/esm/models/admin-agents-report-usage-response.js +14 -0
- package/dist/esm/models/admin-audit-logs-retention-response-data.d.ts +21 -3
- package/dist/esm/models/admin-identities-link-request.d.ts +8 -1
- package/dist/esm/models/admin-identities-link-request.js +1 -0
- package/dist/esm/models/admin-identities-list-response-data-bindings-item.d.ts +7 -0
- package/dist/esm/models/admin-identities-list-response-data-bindings-item.js +1 -0
- package/dist/esm/models/admin-sandbox-spawn-response-data.d.ts +18 -0
- package/dist/esm/models/admin-sandbox-spawn-response-data.js +14 -0
- package/dist/esm/models/admin-sandbox-spawn-response-data1.d.ts +24 -0
- package/dist/esm/models/admin-sandbox-spawn-response-data1.js +14 -0
- package/dist/esm/models/admin-sandbox-spawn-response.d.ts +3 -3
- package/dist/esm/models/admin-webhooks-delivery-replay-response-data.d.ts +48 -0
- package/dist/esm/models/admin-webhooks-delivery-replay-response-data.js +14 -0
- package/dist/esm/models/admin-webhooks-delivery-replay-response.d.ts +3 -3
- package/dist/esm/models/admin-webhooks-test-response.d.ts +6 -0
- package/dist/esm/models/attest-response-identity.d.ts +1 -1
- package/dist/esm/models/audit-log-entry.d.ts +1 -1
- package/dist/esm/models/authentication-settings-password-policy.d.ts +25 -1
- package/dist/esm/models/authentication-settings-password-rotation-policy.d.ts +1 -13
- package/dist/esm/models/authentication-settings.d.ts +13 -15
- package/dist/esm/models/authentication-settings.js +11 -0
- package/dist/esm/models/get-approval-status-response-approved-by.d.ts +2 -2
- package/dist/esm/models/index.d.ts +11 -0
- package/dist/esm/models/index.js +11 -0
- package/dist/esm/models/list-permissions-response-permissions-item.d.ts +1 -1
- package/dist/esm/models/oauth-client-secret-issued.d.ts +1 -1
- package/dist/esm/models/oauth-client.d.ts +6 -0
- package/dist/esm/models/push-enrollment-started.d.ts +1 -1
- package/dist/esm/models/put-admin-agents-update-request.d.ts +8 -0
- package/dist/esm/models/report-agent-usage-response.d.ts +33 -0
- package/dist/esm/models/report-agent-usage-response.js +14 -0
- package/dist/esm/models/request-magic-link-request.d.ts +42 -0
- package/dist/esm/models/request-magic-link-request.js +14 -0
- package/dist/esm/models/request-magic-link-response.d.ts +31 -0
- package/dist/esm/models/request-magic-link-response.js +21 -0
- package/dist/esm/models/scim-settings-inbound-protected-attributes.d.ts +2 -9
- package/dist/esm/models/scim-settings-inbound.d.ts +0 -8
- package/dist/esm/models/scim-settings-outbound.d.ts +2 -10
- package/dist/esm/models/set-user-attribute-response-data.d.ts +1 -1
- package/dist/esm/models/userinfo-response.d.ts +8 -0
- package/dist/models/abac-attribute-definition.d.ts +1 -1
- package/dist/models/abac-resource-attribute.d.ts +1 -1
- package/dist/models/admin-agents-agents-rotate-key-request.d.ts +30 -0
- package/dist/models/admin-agents-agents-rotate-key-request.js +15 -0
- package/dist/models/admin-agents-agents-rotate-key-response.d.ts +6 -0
- package/dist/models/admin-agents-create-request.d.ts +8 -0
- package/dist/models/admin-agents-report-usage-request.d.ts +30 -0
- package/dist/models/admin-agents-report-usage-request.js +15 -0
- package/dist/models/admin-agents-report-usage-response-data-recorded.d.ts +30 -0
- package/dist/models/admin-agents-report-usage-response-data-recorded.js +15 -0
- package/dist/models/admin-agents-report-usage-response-data.d.ts +33 -0
- package/dist/models/admin-agents-report-usage-response-data.js +15 -0
- package/dist/models/admin-agents-report-usage-response.d.ts +25 -0
- package/dist/models/admin-agents-report-usage-response.js +15 -0
- package/dist/models/admin-audit-logs-retention-response-data.d.ts +21 -3
- package/dist/models/admin-identities-link-request.d.ts +8 -1
- package/dist/models/admin-identities-link-request.js +1 -0
- package/dist/models/admin-identities-list-response-data-bindings-item.d.ts +7 -0
- package/dist/models/admin-identities-list-response-data-bindings-item.js +1 -0
- package/dist/models/admin-sandbox-spawn-response-data.d.ts +18 -0
- package/dist/models/admin-sandbox-spawn-response-data.js +15 -0
- package/dist/models/admin-sandbox-spawn-response-data1.d.ts +24 -0
- package/dist/models/admin-sandbox-spawn-response-data1.js +15 -0
- package/dist/models/admin-sandbox-spawn-response.d.ts +3 -3
- package/dist/models/admin-webhooks-delivery-replay-response-data.d.ts +48 -0
- package/dist/models/admin-webhooks-delivery-replay-response-data.js +15 -0
- package/dist/models/admin-webhooks-delivery-replay-response.d.ts +3 -3
- package/dist/models/admin-webhooks-test-response.d.ts +6 -0
- package/dist/models/attest-response-identity.d.ts +1 -1
- package/dist/models/audit-log-entry.d.ts +1 -1
- package/dist/models/authentication-settings-password-policy.d.ts +25 -1
- package/dist/models/authentication-settings-password-rotation-policy.d.ts +1 -13
- package/dist/models/authentication-settings.d.ts +13 -15
- package/dist/models/authentication-settings.js +12 -1
- package/dist/models/get-approval-status-response-approved-by.d.ts +2 -2
- package/dist/models/index.d.ts +11 -0
- package/dist/models/index.js +11 -0
- package/dist/models/list-permissions-response-permissions-item.d.ts +1 -1
- package/dist/models/oauth-client-secret-issued.d.ts +1 -1
- package/dist/models/oauth-client.d.ts +6 -0
- package/dist/models/push-enrollment-started.d.ts +1 -1
- package/dist/models/put-admin-agents-update-request.d.ts +8 -0
- package/dist/models/report-agent-usage-response.d.ts +33 -0
- package/dist/models/report-agent-usage-response.js +15 -0
- package/dist/models/request-magic-link-request.d.ts +42 -0
- package/dist/models/request-magic-link-request.js +15 -0
- package/dist/models/request-magic-link-response.d.ts +31 -0
- package/dist/models/request-magic-link-response.js +24 -0
- package/dist/models/scim-settings-inbound-protected-attributes.d.ts +2 -9
- package/dist/models/scim-settings-inbound.d.ts +0 -8
- package/dist/models/scim-settings-outbound.d.ts +2 -10
- package/dist/models/set-user-attribute-response-data.d.ts +1 -1
- package/dist/models/userinfo-response.d.ts +8 -0
- package/docs/AAuthApi.md +1 -1
- package/docs/AdminAbacApi.md +1 -1
- package/docs/AdminAgentsAgentsRotateKeyRequest.md +22 -0
- package/docs/AdminAgentsAgentsRotateKeyResponse.md +2 -0
- package/docs/AdminAgentsApi.md +83 -8
- package/docs/AdminAgentsCreateRequest.md +2 -0
- package/docs/AdminAgentsReportUsageRequest.md +22 -0
- package/docs/AdminAgentsReportUsageResponse.md +20 -0
- package/docs/AdminAgentsReportUsageResponseData.md +22 -0
- package/docs/AdminAgentsReportUsageResponseDataRecorded.md +22 -0
- package/docs/AdminAuditLogsRetentionResponseData.md +9 -3
- package/docs/AdminIdentitiesLinkRequest.md +3 -1
- package/docs/AdminIdentitiesListResponseDataBindingsItem.md +2 -0
- package/docs/AdminMcpApi.md +2 -1
- package/docs/AdminOAuthClientsApi.md +2 -2
- package/docs/AdminSandboxApi.md +3 -1
- package/docs/AdminSandboxSpawnResponse.md +1 -1
- package/docs/AdminSandboxSpawnResponseData.md +32 -0
- package/docs/AdminSandboxSpawnResponseData1.md +20 -0
- package/docs/AdminUsersApi.md +8 -8
- package/docs/AdminWebhooksApi.md +7 -5
- package/docs/AdminWebhooksDeliveryReplayResponse.md +1 -1
- package/docs/AdminWebhooksDeliveryReplayResponseData.md +28 -0
- package/docs/AdminWebhooksTestResponse.md +2 -0
- package/docs/AgentsApi.md +64 -2
- package/docs/AttestResponseIdentity.md +1 -1
- package/docs/AuditLogEntry.md +1 -1
- package/docs/AuthenticationSettings.md +2 -6
- package/docs/AuthenticationSettingsPasswordPolicy.md +9 -0
- package/docs/AuthenticationSettingsPasswordRotationPolicy.md +1 -4
- package/docs/AuthorizationApi.md +1 -1
- package/docs/CreateClientResponseData.md +3 -1
- package/docs/EnrollAuthenticator201Response.md +1 -1
- package/docs/GetApprovalStatusResponseApprovedBy.md +1 -1
- package/docs/JitApi.md +3 -3
- package/docs/ListPermissionsResponsePermissionsItem.md +1 -1
- package/docs/OAuthApi.md +63 -2
- package/docs/OAuthClient.md +2 -0
- package/docs/OAuthClientSecretIssued.md +1 -1
- package/docs/OIDCApi.md +2 -2
- package/docs/PushEnrollmentStarted.md +1 -1
- package/docs/PutAdminAgentsUpdateRequest.md +2 -0
- package/docs/ReportAgentUsageResponse.md +22 -0
- package/docs/RequestMagicLinkRequest.md +26 -0
- package/docs/RequestMagicLinkResponse.md +20 -0
- package/docs/ScimSettingsInbound.md +0 -2
- package/docs/ScimSettingsInboundProtectedAttributes.md +3 -5
- package/docs/ScimSettingsOutbound.md +2 -4
- package/docs/TokenVaultApi.md +2 -2
- package/docs/UserinfoResponse.md +2 -0
- package/models/abac-attribute-definition.ts +1 -1
- package/models/abac-resource-attribute.ts +1 -1
- package/models/admin-agents-agents-rotate-key-request.ts +36 -0
- package/models/admin-agents-agents-rotate-key-response.ts +6 -0
- package/models/admin-agents-create-request.ts +6 -0
- package/models/admin-agents-report-usage-request.ts +36 -0
- package/models/admin-agents-report-usage-response-data-recorded.ts +36 -0
- package/models/admin-agents-report-usage-response-data.ts +39 -0
- package/models/admin-agents-report-usage-response.ts +33 -0
- package/models/admin-audit-logs-retention-response-data.ts +21 -3
- package/models/admin-identities-link-request.ts +8 -1
- package/models/admin-identities-list-response-data-bindings-item.ts +7 -0
- package/models/admin-sandbox-spawn-response-data.ts +29 -0
- package/models/admin-sandbox-spawn-response-data1.ts +30 -0
- package/models/admin-sandbox-spawn-response.ts +3 -3
- package/models/admin-webhooks-delivery-replay-response-data.ts +54 -0
- package/models/admin-webhooks-delivery-replay-response.ts +3 -3
- package/models/admin-webhooks-test-response.ts +6 -0
- package/models/attest-response-identity.ts +1 -1
- package/models/audit-log-entry.ts +1 -1
- package/models/authentication-settings-password-policy.ts +25 -1
- package/models/authentication-settings-password-rotation-policy.ts +1 -13
- package/models/authentication-settings.ts +13 -15
- package/models/get-approval-status-response-approved-by.ts +2 -2
- package/models/index.ts +11 -0
- package/models/list-permissions-response-permissions-item.ts +1 -1
- package/models/oauth-client-secret-issued.ts +1 -1
- package/models/oauth-client.ts +6 -0
- package/models/push-enrollment-started.ts +1 -1
- package/models/put-admin-agents-update-request.ts +6 -0
- package/models/report-agent-usage-response.ts +39 -0
- package/models/request-magic-link-request.ts +48 -0
- package/models/request-magic-link-response.ts +39 -0
- package/models/scim-settings-inbound-protected-attributes.ts +2 -10
- package/models/scim-settings-inbound.ts +0 -6
- package/models/scim-settings-outbound.ts +2 -8
- package/models/set-user-attribute-response-data.ts +1 -1
- package/models/userinfo-response.ts +6 -0
- package/package.json +1 -1
|
@@ -329,6 +329,45 @@ export const AgentsApiAxiosParamCreator = function (configuration) {
|
|
|
329
329
|
options: localVarRequestOptions,
|
|
330
330
|
};
|
|
331
331
|
}),
|
|
332
|
+
/**
|
|
333
|
+
* Adds the reported tokens and cost to the agent\'s budget windows (current UTC hour, day and month). LumoAuth does not see model calls, so token and cost limits apply only to usage that is reported here or through the Admin API. The report adds no API call and is accepted even when the budget is spent. Agent credentials only; portal test tokens are refused. Rate limited per agent.
|
|
334
|
+
* @summary Report the model tokens and cost that the agent used
|
|
335
|
+
* @param {string} orgId
|
|
336
|
+
* @param {AdminAgentsReportUsageRequest} adminAgentsReportUsageRequest
|
|
337
|
+
* @param {*} [options] Override http request option.
|
|
338
|
+
* @throws {RequiredError}
|
|
339
|
+
*/
|
|
340
|
+
reportAgentUsage: (orgId_1, adminAgentsReportUsageRequest_1, ...args_1) => __awaiter(this, [orgId_1, adminAgentsReportUsageRequest_1, ...args_1], void 0, function* (orgId, adminAgentsReportUsageRequest, options = {}) {
|
|
341
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
342
|
+
assertParamExists('reportAgentUsage', 'orgId', orgId);
|
|
343
|
+
// verify required parameter 'adminAgentsReportUsageRequest' is not null or undefined
|
|
344
|
+
assertParamExists('reportAgentUsage', 'adminAgentsReportUsageRequest', adminAgentsReportUsageRequest);
|
|
345
|
+
const localVarPath = `/orgs/{orgId}/api/v1/agents/me/usage`
|
|
346
|
+
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
|
|
347
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
348
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
349
|
+
let baseOptions;
|
|
350
|
+
if (configuration) {
|
|
351
|
+
baseOptions = configuration.baseOptions;
|
|
352
|
+
}
|
|
353
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
354
|
+
const localVarHeaderParameter = {};
|
|
355
|
+
const localVarQueryParameter = {};
|
|
356
|
+
// authentication ApiKeyAuth required
|
|
357
|
+
yield setApiKeyToObject(localVarHeaderParameter, "X-API-Key", configuration);
|
|
358
|
+
// authentication BearerAuth required
|
|
359
|
+
// http bearer authentication required
|
|
360
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
361
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
362
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
363
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
364
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
365
|
+
localVarRequestOptions.data = serializeDataIfNeeded(adminAgentsReportUsageRequest, localVarRequestOptions, configuration);
|
|
366
|
+
return {
|
|
367
|
+
url: toPathString(localVarUrlObj),
|
|
368
|
+
options: localVarRequestOptions,
|
|
369
|
+
};
|
|
370
|
+
}),
|
|
332
371
|
/**
|
|
333
372
|
* Authenticated (user, agent or API key of this organization). The body is the signed card itself, or {\"card\": {...}, \"jwks_uri\": \"https://...\"} to verify against an external issuer\'s key set (SSRF-guarded); by default the organization\'s own JWKS is used.
|
|
334
373
|
* @summary Verify a signed A2A agent card
|
|
@@ -510,6 +549,23 @@ export const AgentsApiFp = function (configuration) {
|
|
|
510
549
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
511
550
|
});
|
|
512
551
|
},
|
|
552
|
+
/**
|
|
553
|
+
* Adds the reported tokens and cost to the agent\'s budget windows (current UTC hour, day and month). LumoAuth does not see model calls, so token and cost limits apply only to usage that is reported here or through the Admin API. The report adds no API call and is accepted even when the budget is spent. Agent credentials only; portal test tokens are refused. Rate limited per agent.
|
|
554
|
+
* @summary Report the model tokens and cost that the agent used
|
|
555
|
+
* @param {string} orgId
|
|
556
|
+
* @param {AdminAgentsReportUsageRequest} adminAgentsReportUsageRequest
|
|
557
|
+
* @param {*} [options] Override http request option.
|
|
558
|
+
* @throws {RequiredError}
|
|
559
|
+
*/
|
|
560
|
+
reportAgentUsage(orgId, adminAgentsReportUsageRequest, options) {
|
|
561
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
562
|
+
var _a, _b, _c;
|
|
563
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.reportAgentUsage(orgId, adminAgentsReportUsageRequest, options);
|
|
564
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
565
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AgentsApi.reportAgentUsage']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
566
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
567
|
+
});
|
|
568
|
+
},
|
|
513
569
|
/**
|
|
514
570
|
* Authenticated (user, agent or API key of this organization). The body is the signed card itself, or {\"card\": {...}, \"jwks_uri\": \"https://...\"} to verify against an external issuer\'s key set (SSRF-guarded); by default the organization\'s own JWKS is used.
|
|
515
571
|
* @summary Verify a signed A2A agent card
|
|
@@ -614,6 +670,16 @@ export const AgentsApiFactory = function (configuration, basePath, axios) {
|
|
|
614
670
|
registerAgent(requestParameters, options) {
|
|
615
671
|
return localVarFp.registerAgent(requestParameters.orgId, options).then((request) => request(axios, basePath));
|
|
616
672
|
},
|
|
673
|
+
/**
|
|
674
|
+
* Adds the reported tokens and cost to the agent\'s budget windows (current UTC hour, day and month). LumoAuth does not see model calls, so token and cost limits apply only to usage that is reported here or through the Admin API. The report adds no API call and is accepted even when the budget is spent. Agent credentials only; portal test tokens are refused. Rate limited per agent.
|
|
675
|
+
* @summary Report the model tokens and cost that the agent used
|
|
676
|
+
* @param {AgentsApiReportAgentUsageRequest} requestParameters Request parameters.
|
|
677
|
+
* @param {*} [options] Override http request option.
|
|
678
|
+
* @throws {RequiredError}
|
|
679
|
+
*/
|
|
680
|
+
reportAgentUsage(requestParameters, options) {
|
|
681
|
+
return localVarFp.reportAgentUsage(requestParameters.orgId, requestParameters.adminAgentsReportUsageRequest, options).then((request) => request(axios, basePath));
|
|
682
|
+
},
|
|
617
683
|
/**
|
|
618
684
|
* Authenticated (user, agent or API key of this organization). The body is the signed card itself, or {\"card\": {...}, \"jwks_uri\": \"https://...\"} to verify against an external issuer\'s key set (SSRF-guarded); by default the organization\'s own JWKS is used.
|
|
619
685
|
* @summary Verify a signed A2A agent card
|
|
@@ -719,6 +785,17 @@ export class AgentsApi extends BaseAPI {
|
|
|
719
785
|
registerAgent(requestParameters, options) {
|
|
720
786
|
return AgentsApiFp(this.configuration).registerAgent(requestParameters.orgId, options).then((request) => request(this.axios, this.basePath));
|
|
721
787
|
}
|
|
788
|
+
/**
|
|
789
|
+
* Adds the reported tokens and cost to the agent\'s budget windows (current UTC hour, day and month). LumoAuth does not see model calls, so token and cost limits apply only to usage that is reported here or through the Admin API. The report adds no API call and is accepted even when the budget is spent. Agent credentials only; portal test tokens are refused. Rate limited per agent.
|
|
790
|
+
* @summary Report the model tokens and cost that the agent used
|
|
791
|
+
* @param {AgentsApiReportAgentUsageRequest} requestParameters Request parameters.
|
|
792
|
+
* @param {*} [options] Override http request option.
|
|
793
|
+
* @throws {RequiredError}
|
|
794
|
+
* @memberof AgentsApi
|
|
795
|
+
*/
|
|
796
|
+
reportAgentUsage(requestParameters, options) {
|
|
797
|
+
return AgentsApiFp(this.configuration).reportAgentUsage(requestParameters.orgId, requestParameters.adminAgentsReportUsageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
798
|
+
}
|
|
722
799
|
/**
|
|
723
800
|
* Authenticated (user, agent or API key of this organization). The body is the signed card itself, or {\"card\": {...}, \"jwks_uri\": \"https://...\"} to verify against an external issuer\'s key set (SSRF-guarded); by default the organization\'s own JWKS is used.
|
|
724
801
|
* @summary Verify a signed A2A agent card
|
|
@@ -18,6 +18,8 @@ import type { IntrospectResponse } from '../models';
|
|
|
18
18
|
import type { ParResponse } from '../models';
|
|
19
19
|
import type { RegisterClientResponse } from '../models';
|
|
20
20
|
import type { RegisteredClientMetadata } from '../models';
|
|
21
|
+
import type { RequestMagicLinkRequest } from '../models';
|
|
22
|
+
import type { RequestMagicLinkResponse } from '../models';
|
|
21
23
|
import type { SubmitLoginJsonResponse } from '../models';
|
|
22
24
|
import type { TokenResponse } from '../models';
|
|
23
25
|
/**
|
|
@@ -98,6 +100,15 @@ export declare const OAuthApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
98
100
|
* @throws {RequiredError}
|
|
99
101
|
*/
|
|
100
102
|
registerClient: (orgId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
103
|
+
/**
|
|
104
|
+
* For applications that render their own sign-in form. Mails a single-use sign-in link to the address when it belongs to an account of the organization, and gives the same answer when it does not. Signs nobody in and mints no tokens: the person opens the link, confirms on the hosted page, and is then sent to `return_to`, where the application starts its normal authorization flow. A browser request must come from one of the allowed origins of the application named by `client_id`.
|
|
105
|
+
* @summary Request a sign-in link by email
|
|
106
|
+
* @param {string} orgId
|
|
107
|
+
* @param {RequestMagicLinkRequest} requestMagicLinkRequest
|
|
108
|
+
* @param {*} [options] Override http request option.
|
|
109
|
+
* @throws {RequiredError}
|
|
110
|
+
*/
|
|
111
|
+
requestMagicLink: (orgId: string, requestMagicLinkRequest: RequestMagicLinkRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
101
112
|
/**
|
|
102
113
|
* Revokes an access or refresh token (revoking a refresh token also revokes the access tokens issued with it). Requires client authentication. Always sent with Cache-Control: no-store.
|
|
103
114
|
* @summary Token revocation (RFC 7009)
|
|
@@ -252,6 +263,15 @@ export declare const OAuthApiFp: (configuration?: Configuration) => {
|
|
|
252
263
|
* @throws {RequiredError}
|
|
253
264
|
*/
|
|
254
265
|
registerClient(orgId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegisterClientResponse>>;
|
|
266
|
+
/**
|
|
267
|
+
* For applications that render their own sign-in form. Mails a single-use sign-in link to the address when it belongs to an account of the organization, and gives the same answer when it does not. Signs nobody in and mints no tokens: the person opens the link, confirms on the hosted page, and is then sent to `return_to`, where the application starts its normal authorization flow. A browser request must come from one of the allowed origins of the application named by `client_id`.
|
|
268
|
+
* @summary Request a sign-in link by email
|
|
269
|
+
* @param {string} orgId
|
|
270
|
+
* @param {RequestMagicLinkRequest} requestMagicLinkRequest
|
|
271
|
+
* @param {*} [options] Override http request option.
|
|
272
|
+
* @throws {RequiredError}
|
|
273
|
+
*/
|
|
274
|
+
requestMagicLink(orgId: string, requestMagicLinkRequest: RequestMagicLinkRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestMagicLinkResponse>>;
|
|
255
275
|
/**
|
|
256
276
|
* Revokes an access or refresh token (revoking a refresh token also revokes the access tokens issued with it). Requires client authentication. Always sent with Cache-Control: no-store.
|
|
257
277
|
* @summary Token revocation (RFC 7009)
|
|
@@ -405,6 +425,14 @@ export declare const OAuthApiFactory: (configuration?: Configuration, basePath?:
|
|
|
405
425
|
* @throws {RequiredError}
|
|
406
426
|
*/
|
|
407
427
|
registerClient(requestParameters: OAuthApiRegisterClientRequest, options?: RawAxiosRequestConfig): AxiosPromise<RegisterClientResponse>;
|
|
428
|
+
/**
|
|
429
|
+
* For applications that render their own sign-in form. Mails a single-use sign-in link to the address when it belongs to an account of the organization, and gives the same answer when it does not. Signs nobody in and mints no tokens: the person opens the link, confirms on the hosted page, and is then sent to `return_to`, where the application starts its normal authorization flow. A browser request must come from one of the allowed origins of the application named by `client_id`.
|
|
430
|
+
* @summary Request a sign-in link by email
|
|
431
|
+
* @param {OAuthApiRequestMagicLinkRequest} requestParameters Request parameters.
|
|
432
|
+
* @param {*} [options] Override http request option.
|
|
433
|
+
* @throws {RequiredError}
|
|
434
|
+
*/
|
|
435
|
+
requestMagicLink(requestParameters: OAuthApiRequestMagicLinkRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestMagicLinkResponse>;
|
|
408
436
|
/**
|
|
409
437
|
* Revokes an access or refresh token (revoking a refresh token also revokes the access tokens issued with it). Requires client authentication. Always sent with Cache-Control: no-store.
|
|
410
438
|
* @summary Token revocation (RFC 7009)
|
|
@@ -565,6 +593,15 @@ export interface OAuthApiInterface {
|
|
|
565
593
|
* @memberof OAuthApiInterface
|
|
566
594
|
*/
|
|
567
595
|
registerClient(requestParameters: OAuthApiRegisterClientRequest, options?: RawAxiosRequestConfig): AxiosPromise<RegisterClientResponse>;
|
|
596
|
+
/**
|
|
597
|
+
* For applications that render their own sign-in form. Mails a single-use sign-in link to the address when it belongs to an account of the organization, and gives the same answer when it does not. Signs nobody in and mints no tokens: the person opens the link, confirms on the hosted page, and is then sent to `return_to`, where the application starts its normal authorization flow. A browser request must come from one of the allowed origins of the application named by `client_id`.
|
|
598
|
+
* @summary Request a sign-in link by email
|
|
599
|
+
* @param {OAuthApiRequestMagicLinkRequest} requestParameters Request parameters.
|
|
600
|
+
* @param {*} [options] Override http request option.
|
|
601
|
+
* @throws {RequiredError}
|
|
602
|
+
* @memberof OAuthApiInterface
|
|
603
|
+
*/
|
|
604
|
+
requestMagicLink(requestParameters: OAuthApiRequestMagicLinkRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestMagicLinkResponse>;
|
|
568
605
|
/**
|
|
569
606
|
* Revokes an access or refresh token (revoking a refresh token also revokes the access tokens issued with it). Requires client authentication. Always sent with Cache-Control: no-store.
|
|
570
607
|
* @summary Token revocation (RFC 7009)
|
|
@@ -770,6 +807,25 @@ export interface OAuthApiRegisterClientRequest {
|
|
|
770
807
|
*/
|
|
771
808
|
readonly orgId: string;
|
|
772
809
|
}
|
|
810
|
+
/**
|
|
811
|
+
* Request parameters for requestMagicLink operation in OAuthApi.
|
|
812
|
+
* @export
|
|
813
|
+
* @interface OAuthApiRequestMagicLinkRequest
|
|
814
|
+
*/
|
|
815
|
+
export interface OAuthApiRequestMagicLinkRequest {
|
|
816
|
+
/**
|
|
817
|
+
*
|
|
818
|
+
* @type {string}
|
|
819
|
+
* @memberof OAuthApiRequestMagicLink
|
|
820
|
+
*/
|
|
821
|
+
readonly orgId: string;
|
|
822
|
+
/**
|
|
823
|
+
*
|
|
824
|
+
* @type {RequestMagicLinkRequest}
|
|
825
|
+
* @memberof OAuthApiRequestMagicLink
|
|
826
|
+
*/
|
|
827
|
+
readonly requestMagicLinkRequest: RequestMagicLinkRequest;
|
|
828
|
+
}
|
|
773
829
|
/**
|
|
774
830
|
* Request parameters for revoke operation in OAuthApi.
|
|
775
831
|
* @export
|
|
@@ -993,6 +1049,15 @@ export declare class OAuthApi extends BaseAPI implements OAuthApiInterface {
|
|
|
993
1049
|
* @memberof OAuthApi
|
|
994
1050
|
*/
|
|
995
1051
|
registerClient(requestParameters: OAuthApiRegisterClientRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RegisterClientResponse, any, {}>>;
|
|
1052
|
+
/**
|
|
1053
|
+
* For applications that render their own sign-in form. Mails a single-use sign-in link to the address when it belongs to an account of the organization, and gives the same answer when it does not. Signs nobody in and mints no tokens: the person opens the link, confirms on the hosted page, and is then sent to `return_to`, where the application starts its normal authorization flow. A browser request must come from one of the allowed origins of the application named by `client_id`.
|
|
1054
|
+
* @summary Request a sign-in link by email
|
|
1055
|
+
* @param {OAuthApiRequestMagicLinkRequest} requestParameters Request parameters.
|
|
1056
|
+
* @param {*} [options] Override http request option.
|
|
1057
|
+
* @throws {RequiredError}
|
|
1058
|
+
* @memberof OAuthApi
|
|
1059
|
+
*/
|
|
1060
|
+
requestMagicLink(requestParameters: OAuthApiRequestMagicLinkRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RequestMagicLinkResponse, any, {}>>;
|
|
996
1061
|
/**
|
|
997
1062
|
* Revokes an access or refresh token (revoking a refresh token also revokes the access tokens issued with it). Requires client authentication. Always sent with Cache-Control: no-store.
|
|
998
1063
|
* @summary Token revocation (RFC 7009)
|
|
@@ -23,7 +23,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
23
23
|
import globalAxios from 'axios';
|
|
24
24
|
// Some imports not used depending on template conditions
|
|
25
25
|
// @ts-ignore
|
|
26
|
-
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setSearchParams, toPathString, createRequestFunction } from '../common';
|
|
26
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
27
27
|
// @ts-ignore
|
|
28
28
|
import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
|
|
29
29
|
/**
|
|
@@ -319,6 +319,40 @@ export const OAuthApiAxiosParamCreator = function (configuration) {
|
|
|
319
319
|
options: localVarRequestOptions,
|
|
320
320
|
};
|
|
321
321
|
}),
|
|
322
|
+
/**
|
|
323
|
+
* For applications that render their own sign-in form. Mails a single-use sign-in link to the address when it belongs to an account of the organization, and gives the same answer when it does not. Signs nobody in and mints no tokens: the person opens the link, confirms on the hosted page, and is then sent to `return_to`, where the application starts its normal authorization flow. A browser request must come from one of the allowed origins of the application named by `client_id`.
|
|
324
|
+
* @summary Request a sign-in link by email
|
|
325
|
+
* @param {string} orgId
|
|
326
|
+
* @param {RequestMagicLinkRequest} requestMagicLinkRequest
|
|
327
|
+
* @param {*} [options] Override http request option.
|
|
328
|
+
* @throws {RequiredError}
|
|
329
|
+
*/
|
|
330
|
+
requestMagicLink: (orgId_1, requestMagicLinkRequest_1, ...args_1) => __awaiter(this, [orgId_1, requestMagicLinkRequest_1, ...args_1], void 0, function* (orgId, requestMagicLinkRequest, options = {}) {
|
|
331
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
332
|
+
assertParamExists('requestMagicLink', 'orgId', orgId);
|
|
333
|
+
// verify required parameter 'requestMagicLinkRequest' is not null or undefined
|
|
334
|
+
assertParamExists('requestMagicLink', 'requestMagicLinkRequest', requestMagicLinkRequest);
|
|
335
|
+
const localVarPath = `/orgs/{orgId}/api/v1/oauth/magic-link`
|
|
336
|
+
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
|
|
337
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
338
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
339
|
+
let baseOptions;
|
|
340
|
+
if (configuration) {
|
|
341
|
+
baseOptions = configuration.baseOptions;
|
|
342
|
+
}
|
|
343
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
344
|
+
const localVarHeaderParameter = {};
|
|
345
|
+
const localVarQueryParameter = {};
|
|
346
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
347
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
348
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
349
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
350
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestMagicLinkRequest, localVarRequestOptions, configuration);
|
|
351
|
+
return {
|
|
352
|
+
url: toPathString(localVarUrlObj),
|
|
353
|
+
options: localVarRequestOptions,
|
|
354
|
+
};
|
|
355
|
+
}),
|
|
322
356
|
/**
|
|
323
357
|
* Revokes an access or refresh token (revoking a refresh token also revokes the access tokens issued with it). Requires client authentication. Always sent with Cache-Control: no-store.
|
|
324
358
|
* @summary Token revocation (RFC 7009)
|
|
@@ -752,6 +786,23 @@ export const OAuthApiFp = function (configuration) {
|
|
|
752
786
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
753
787
|
});
|
|
754
788
|
},
|
|
789
|
+
/**
|
|
790
|
+
* For applications that render their own sign-in form. Mails a single-use sign-in link to the address when it belongs to an account of the organization, and gives the same answer when it does not. Signs nobody in and mints no tokens: the person opens the link, confirms on the hosted page, and is then sent to `return_to`, where the application starts its normal authorization flow. A browser request must come from one of the allowed origins of the application named by `client_id`.
|
|
791
|
+
* @summary Request a sign-in link by email
|
|
792
|
+
* @param {string} orgId
|
|
793
|
+
* @param {RequestMagicLinkRequest} requestMagicLinkRequest
|
|
794
|
+
* @param {*} [options] Override http request option.
|
|
795
|
+
* @throws {RequiredError}
|
|
796
|
+
*/
|
|
797
|
+
requestMagicLink(orgId, requestMagicLinkRequest, options) {
|
|
798
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
799
|
+
var _a, _b, _c;
|
|
800
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.requestMagicLink(orgId, requestMagicLinkRequest, options);
|
|
801
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
802
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OAuthApi.requestMagicLink']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
803
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
804
|
+
});
|
|
805
|
+
},
|
|
755
806
|
/**
|
|
756
807
|
* Revokes an access or refresh token (revoking a refresh token also revokes the access tokens issued with it). Requires client authentication. Always sent with Cache-Control: no-store.
|
|
757
808
|
* @summary Token revocation (RFC 7009)
|
|
@@ -998,6 +1049,16 @@ export const OAuthApiFactory = function (configuration, basePath, axios) {
|
|
|
998
1049
|
registerClient(requestParameters, options) {
|
|
999
1050
|
return localVarFp.registerClient(requestParameters.orgId, options).then((request) => request(axios, basePath));
|
|
1000
1051
|
},
|
|
1052
|
+
/**
|
|
1053
|
+
* For applications that render their own sign-in form. Mails a single-use sign-in link to the address when it belongs to an account of the organization, and gives the same answer when it does not. Signs nobody in and mints no tokens: the person opens the link, confirms on the hosted page, and is then sent to `return_to`, where the application starts its normal authorization flow. A browser request must come from one of the allowed origins of the application named by `client_id`.
|
|
1054
|
+
* @summary Request a sign-in link by email
|
|
1055
|
+
* @param {OAuthApiRequestMagicLinkRequest} requestParameters Request parameters.
|
|
1056
|
+
* @param {*} [options] Override http request option.
|
|
1057
|
+
* @throws {RequiredError}
|
|
1058
|
+
*/
|
|
1059
|
+
requestMagicLink(requestParameters, options) {
|
|
1060
|
+
return localVarFp.requestMagicLink(requestParameters.orgId, requestParameters.requestMagicLinkRequest, options).then((request) => request(axios, basePath));
|
|
1061
|
+
},
|
|
1001
1062
|
/**
|
|
1002
1063
|
* Revokes an access or refresh token (revoking a refresh token also revokes the access tokens issued with it). Requires client authentication. Always sent with Cache-Control: no-store.
|
|
1003
1064
|
* @summary Token revocation (RFC 7009)
|
|
@@ -1196,6 +1257,17 @@ export class OAuthApi extends BaseAPI {
|
|
|
1196
1257
|
registerClient(requestParameters, options) {
|
|
1197
1258
|
return OAuthApiFp(this.configuration).registerClient(requestParameters.orgId, options).then((request) => request(this.axios, this.basePath));
|
|
1198
1259
|
}
|
|
1260
|
+
/**
|
|
1261
|
+
* For applications that render their own sign-in form. Mails a single-use sign-in link to the address when it belongs to an account of the organization, and gives the same answer when it does not. Signs nobody in and mints no tokens: the person opens the link, confirms on the hosted page, and is then sent to `return_to`, where the application starts its normal authorization flow. A browser request must come from one of the allowed origins of the application named by `client_id`.
|
|
1262
|
+
* @summary Request a sign-in link by email
|
|
1263
|
+
* @param {OAuthApiRequestMagicLinkRequest} requestParameters Request parameters.
|
|
1264
|
+
* @param {*} [options] Override http request option.
|
|
1265
|
+
* @throws {RequiredError}
|
|
1266
|
+
* @memberof OAuthApi
|
|
1267
|
+
*/
|
|
1268
|
+
requestMagicLink(requestParameters, options) {
|
|
1269
|
+
return OAuthApiFp(this.configuration).requestMagicLink(requestParameters.orgId, requestParameters.requestMagicLinkRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1270
|
+
}
|
|
1199
1271
|
/**
|
|
1200
1272
|
* Revokes an access or refresh token (revoking a refresh token also revokes the access tokens issued with it). Requires client authentication. Always sent with Cache-Control: no-store.
|
|
1201
1273
|
* @summary Token revocation (RFC 7009)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LumoAuth API
|
|
3
|
+
* LumoAuth REST API — authentication, authorization, agent registry, MCP server authorization, and tenant administration. Multi-tenant: most paths are scoped under `/orgs/{orgId}/api/v1/...`.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: sdk@lumoauth.dev
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AdminAgentsAgentsRotateKeyRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface AdminAgentsAgentsRotateKeyRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Days until the new key expires; null for a key that never expires.
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof AdminAgentsAgentsRotateKeyRequest
|
|
22
|
+
*/
|
|
23
|
+
'apiKeyExpiresInDays'?: number | null;
|
|
24
|
+
/**
|
|
25
|
+
* Exact expiry of the new key (ISO 8601, in the future); null for never. Ignored when apiKeyExpiresInDays is sent.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AdminAgentsAgentsRotateKeyRequest
|
|
28
|
+
*/
|
|
29
|
+
'apiKeyExpiresAt'?: string | null;
|
|
30
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LumoAuth API
|
|
5
|
+
* LumoAuth REST API — authentication, authorization, agent registry, MCP server authorization, and tenant administration. Multi-tenant: most paths are scoped under `/orgs/{orgId}/api/v1/...`.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: sdk@lumoauth.dev
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export {};
|
|
@@ -27,4 +27,10 @@ export interface AdminAgentsAgentsRotateKeyResponse {
|
|
|
27
27
|
* @memberof AdminAgentsAgentsRotateKeyResponse
|
|
28
28
|
*/
|
|
29
29
|
'api_key'?: string;
|
|
30
|
+
/**
|
|
31
|
+
* When the new key expires; null = never.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AdminAgentsAgentsRotateKeyResponse
|
|
34
|
+
*/
|
|
35
|
+
'api_key_expires_at'?: string | null;
|
|
30
36
|
}
|
|
@@ -33,4 +33,12 @@ export interface AdminAgentsCreateRequest {
|
|
|
33
33
|
* @memberof AdminAgentsCreateRequest
|
|
34
34
|
*/
|
|
35
35
|
'capabilities'?: Array<string>;
|
|
36
|
+
/**
|
|
37
|
+
* The agent budget. Keys: max_api_calls_per_hour, max_api_calls_per_day, max_tokens_per_hour, max_tokens_per_day (whole numbers), max_cost_per_day_usd, max_cost_per_month_usd, hard_limit (USD), max_steps, timeout_seconds (whole numbers, read by the agent from UserInfo), and the gateway-only max_cost_usd, monthly_usd, max_budget (USD). Each value must be greater than zero; an unknown key or an invalid value is refused with 400. Leave it out for an agent without a budget.
|
|
38
|
+
* @type {{ [key: string]: any; }}
|
|
39
|
+
* @memberof AdminAgentsCreateRequest
|
|
40
|
+
*/
|
|
41
|
+
'budgetPolicy'?: {
|
|
42
|
+
[key: string]: any;
|
|
43
|
+
} | null;
|
|
36
44
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LumoAuth API
|
|
3
|
+
* LumoAuth REST API — authentication, authorization, agent registry, MCP server authorization, and tenant administration. Multi-tenant: most paths are scoped under `/orgs/{orgId}/api/v1/...`.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: sdk@lumoauth.dev
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AdminAgentsReportUsageRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface AdminAgentsReportUsageRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Model tokens used since the last report (input and output together).
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof AdminAgentsReportUsageRequest
|
|
22
|
+
*/
|
|
23
|
+
'tokens'?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Cost in USD since the last report.
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof AdminAgentsReportUsageRequest
|
|
28
|
+
*/
|
|
29
|
+
'cost_usd'?: number;
|
|
30
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LumoAuth API
|
|
5
|
+
* LumoAuth REST API — authentication, authorization, agent registry, MCP server authorization, and tenant administration. Multi-tenant: most paths are scoped under `/orgs/{orgId}/api/v1/...`.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: sdk@lumoauth.dev
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LumoAuth API
|
|
3
|
+
* LumoAuth REST API — authentication, authorization, agent registry, MCP server authorization, and tenant administration. Multi-tenant: most paths are scoped under `/orgs/{orgId}/api/v1/...`.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: sdk@lumoauth.dev
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AdminAgentsReportUsageResponseDataRecorded
|
|
16
|
+
*/
|
|
17
|
+
export interface AdminAgentsReportUsageResponseDataRecorded {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof AdminAgentsReportUsageResponseDataRecorded
|
|
22
|
+
*/
|
|
23
|
+
'tokens'?: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof AdminAgentsReportUsageResponseDataRecorded
|
|
28
|
+
*/
|
|
29
|
+
'cost_usd'?: number;
|
|
30
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LumoAuth API
|
|
5
|
+
* LumoAuth REST API — authentication, authorization, agent registry, MCP server authorization, and tenant administration. Multi-tenant: most paths are scoped under `/orgs/{orgId}/api/v1/...`.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: sdk@lumoauth.dev
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LumoAuth API
|
|
3
|
+
* LumoAuth REST API — authentication, authorization, agent registry, MCP server authorization, and tenant administration. Multi-tenant: most paths are scoped under `/orgs/{orgId}/api/v1/...`.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: sdk@lumoauth.dev
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { AdminAgentsReportUsageResponseDataRecorded } from './admin-agents-report-usage-response-data-recorded';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AdminAgentsReportUsageResponseData
|
|
17
|
+
*/
|
|
18
|
+
export interface AdminAgentsReportUsageResponseData {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {AdminAgentsReportUsageResponseDataRecorded}
|
|
22
|
+
* @memberof AdminAgentsReportUsageResponseData
|
|
23
|
+
*/
|
|
24
|
+
'recorded'?: AdminAgentsReportUsageResponseDataRecorded;
|
|
25
|
+
/**
|
|
26
|
+
* Same shape as budget_policy in UserInfo: limits, usage in the current windows, exhausted.
|
|
27
|
+
* @type {{ [key: string]: any; }}
|
|
28
|
+
* @memberof AdminAgentsReportUsageResponseData
|
|
29
|
+
*/
|
|
30
|
+
'budget'?: {
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LumoAuth API
|
|
5
|
+
* LumoAuth REST API — authentication, authorization, agent registry, MCP server authorization, and tenant administration. Multi-tenant: most paths are scoped under `/orgs/{orgId}/api/v1/...`.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: sdk@lumoauth.dev
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LumoAuth API
|
|
3
|
+
* LumoAuth REST API — authentication, authorization, agent registry, MCP server authorization, and tenant administration. Multi-tenant: most paths are scoped under `/orgs/{orgId}/api/v1/...`.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: sdk@lumoauth.dev
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { AdminAgentsReportUsageResponseData } from './admin-agents-report-usage-response-data';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AdminAgentsReportUsageResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface AdminAgentsReportUsageResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {AdminAgentsReportUsageResponseData}
|
|
22
|
+
* @memberof AdminAgentsReportUsageResponse
|
|
23
|
+
*/
|
|
24
|
+
'data'?: AdminAgentsReportUsageResponseData;
|
|
25
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LumoAuth API
|
|
5
|
+
* LumoAuth REST API — authentication, authorization, agent registry, MCP server authorization, and tenant administration. Multi-tenant: most paths are scoped under `/orgs/{orgId}/api/v1/...`.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: sdk@lumoauth.dev
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export {};
|