@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
|
@@ -36,7 +36,7 @@ const base_1 = require("../base");
|
|
|
36
36
|
const AdminWebhooksApiAxiosParamCreator = function (configuration) {
|
|
37
37
|
return {
|
|
38
38
|
/**
|
|
39
|
-
* The signing secret is generated server-side and returned once in this response only.
|
|
39
|
+
* Accepts `url`, `events`, `isActive` (also as `active` or `enabled`), `type` and `configuration`. The signing secret is generated server-side and returned once in this response only: a `secret` in the request, an unknown field and an event name that is not in the catalogue are refused with 400.
|
|
40
40
|
* @summary Create a webhook
|
|
41
41
|
* @param {string} orgId
|
|
42
42
|
* @param {*} [options] Override http request option.
|
|
@@ -146,7 +146,7 @@ const AdminWebhooksApiAxiosParamCreator = function (configuration) {
|
|
|
146
146
|
};
|
|
147
147
|
}),
|
|
148
148
|
/**
|
|
149
|
-
*
|
|
149
|
+
* Queues a new delivery with the same event and payload and returns its id. The original delivery is not changed. A disabled webhook sends nothing, so the call answers 409 until the webhook is enabled.
|
|
150
150
|
* @summary Replay a delivery
|
|
151
151
|
* @param {string} orgId
|
|
152
152
|
* @param {string} webhookId
|
|
@@ -336,7 +336,7 @@ const AdminWebhooksApiAxiosParamCreator = function (configuration) {
|
|
|
336
336
|
};
|
|
337
337
|
}),
|
|
338
338
|
/**
|
|
339
|
-
* Generates a new HMAC secret and
|
|
339
|
+
* Generates a new HMAC secret and returns it once. For 24 hours every delivery also carries `X-LumoAuth-Signature-Previous`, signed with the secret that was replaced, so the receiver can be updated without losing events. The `kid` of `X-LumoAuth-Signature` changes with every rotation.
|
|
340
340
|
* @summary Rotate the signing secret
|
|
341
341
|
* @param {string} orgId
|
|
342
342
|
* @param {string} webhookId
|
|
@@ -374,7 +374,7 @@ const AdminWebhooksApiAxiosParamCreator = function (configuration) {
|
|
|
374
374
|
};
|
|
375
375
|
}),
|
|
376
376
|
/**
|
|
377
|
-
*
|
|
377
|
+
* Sends one `webhook.test` event to the webhook URL now, with the same body, headers and signature as any event, and records it in the delivery history. A receiver answer outside 2xx still yields HTTP 200 with `success: false`; when no answer was received (connection or TLS error) the endpoint answers 502. A failed test is not retried.
|
|
378
378
|
* @summary Send a test delivery
|
|
379
379
|
* @param {string} orgId
|
|
380
380
|
* @param {string} webhookId
|
|
@@ -636,7 +636,7 @@ const AdminWebhooksApiAxiosParamCreator = function (configuration) {
|
|
|
636
636
|
};
|
|
637
637
|
}),
|
|
638
638
|
/**
|
|
639
|
-
*
|
|
639
|
+
* Changes only the fields that are sent: `url`, `events`, `isActive` (also as `active` or `enabled`), `type`, `configuration`, `rotateSecret`. A new `url` for a webhook that has a signing secret needs `rotateSecret: true`; the response then carries the new `secret` once. Unknown fields, `secret` and event names that are not in the catalogue are refused with 400.
|
|
640
640
|
* @summary Update a webhook
|
|
641
641
|
* @param {string} orgId
|
|
642
642
|
* @param {string} webhookId
|
|
@@ -684,7 +684,7 @@ const AdminWebhooksApiFp = function (configuration) {
|
|
|
684
684
|
const localVarAxiosParamCreator = (0, exports.AdminWebhooksApiAxiosParamCreator)(configuration);
|
|
685
685
|
return {
|
|
686
686
|
/**
|
|
687
|
-
* The signing secret is generated server-side and returned once in this response only.
|
|
687
|
+
* Accepts `url`, `events`, `isActive` (also as `active` or `enabled`), `type` and `configuration`. The signing secret is generated server-side and returned once in this response only: a `secret` in the request, an unknown field and an event name that is not in the catalogue are refused with 400.
|
|
688
688
|
* @summary Create a webhook
|
|
689
689
|
* @param {string} orgId
|
|
690
690
|
* @param {*} [options] Override http request option.
|
|
@@ -734,7 +734,7 @@ const AdminWebhooksApiFp = function (configuration) {
|
|
|
734
734
|
});
|
|
735
735
|
},
|
|
736
736
|
/**
|
|
737
|
-
*
|
|
737
|
+
* Queues a new delivery with the same event and payload and returns its id. The original delivery is not changed. A disabled webhook sends nothing, so the call answers 409 until the webhook is enabled.
|
|
738
738
|
* @summary Replay a delivery
|
|
739
739
|
* @param {string} orgId
|
|
740
740
|
* @param {string} webhookId
|
|
@@ -819,7 +819,7 @@ const AdminWebhooksApiFp = function (configuration) {
|
|
|
819
819
|
});
|
|
820
820
|
},
|
|
821
821
|
/**
|
|
822
|
-
* Generates a new HMAC secret and
|
|
822
|
+
* Generates a new HMAC secret and returns it once. For 24 hours every delivery also carries `X-LumoAuth-Signature-Previous`, signed with the secret that was replaced, so the receiver can be updated without losing events. The `kid` of `X-LumoAuth-Signature` changes with every rotation.
|
|
823
823
|
* @summary Rotate the signing secret
|
|
824
824
|
* @param {string} orgId
|
|
825
825
|
* @param {string} webhookId
|
|
@@ -836,7 +836,7 @@ const AdminWebhooksApiFp = function (configuration) {
|
|
|
836
836
|
});
|
|
837
837
|
},
|
|
838
838
|
/**
|
|
839
|
-
*
|
|
839
|
+
* Sends one `webhook.test` event to the webhook URL now, with the same body, headers and signature as any event, and records it in the delivery history. A receiver answer outside 2xx still yields HTTP 200 with `success: false`; when no answer was received (connection or TLS error) the endpoint answers 502. A failed test is not retried.
|
|
840
840
|
* @summary Send a test delivery
|
|
841
841
|
* @param {string} orgId
|
|
842
842
|
* @param {string} webhookId
|
|
@@ -954,7 +954,7 @@ const AdminWebhooksApiFp = function (configuration) {
|
|
|
954
954
|
});
|
|
955
955
|
},
|
|
956
956
|
/**
|
|
957
|
-
*
|
|
957
|
+
* Changes only the fields that are sent: `url`, `events`, `isActive` (also as `active` or `enabled`), `type`, `configuration`, `rotateSecret`. A new `url` for a webhook that has a signing secret needs `rotateSecret: true`; the response then carries the new `secret` once. Unknown fields, `secret` and event names that are not in the catalogue are refused with 400.
|
|
958
958
|
* @summary Update a webhook
|
|
959
959
|
* @param {string} orgId
|
|
960
960
|
* @param {string} webhookId
|
|
@@ -981,7 +981,7 @@ const AdminWebhooksApiFactory = function (configuration, basePath, axios) {
|
|
|
981
981
|
const localVarFp = (0, exports.AdminWebhooksApiFp)(configuration);
|
|
982
982
|
return {
|
|
983
983
|
/**
|
|
984
|
-
* The signing secret is generated server-side and returned once in this response only.
|
|
984
|
+
* Accepts `url`, `events`, `isActive` (also as `active` or `enabled`), `type` and `configuration`. The signing secret is generated server-side and returned once in this response only: a `secret` in the request, an unknown field and an event name that is not in the catalogue are refused with 400.
|
|
985
985
|
* @summary Create a webhook
|
|
986
986
|
* @param {AdminWebhooksApiAdminWebhooksCreateRequest} requestParameters Request parameters.
|
|
987
987
|
* @param {*} [options] Override http request option.
|
|
@@ -1011,7 +1011,7 @@ const AdminWebhooksApiFactory = function (configuration, basePath, axios) {
|
|
|
1011
1011
|
return localVarFp.adminWebhooksDeliveriesList(requestParameters.orgId, requestParameters.webhookId, options).then((request) => request(axios, basePath));
|
|
1012
1012
|
},
|
|
1013
1013
|
/**
|
|
1014
|
-
*
|
|
1014
|
+
* Queues a new delivery with the same event and payload and returns its id. The original delivery is not changed. A disabled webhook sends nothing, so the call answers 409 until the webhook is enabled.
|
|
1015
1015
|
* @summary Replay a delivery
|
|
1016
1016
|
* @param {AdminWebhooksApiAdminWebhooksDeliveryReplayRequest} requestParameters Request parameters.
|
|
1017
1017
|
* @param {*} [options] Override http request option.
|
|
@@ -1061,7 +1061,7 @@ const AdminWebhooksApiFactory = function (configuration, basePath, axios) {
|
|
|
1061
1061
|
return localVarFp.adminWebhooksList(requestParameters.orgId, options).then((request) => request(axios, basePath));
|
|
1062
1062
|
},
|
|
1063
1063
|
/**
|
|
1064
|
-
* Generates a new HMAC secret and
|
|
1064
|
+
* Generates a new HMAC secret and returns it once. For 24 hours every delivery also carries `X-LumoAuth-Signature-Previous`, signed with the secret that was replaced, so the receiver can be updated without losing events. The `kid` of `X-LumoAuth-Signature` changes with every rotation.
|
|
1065
1065
|
* @summary Rotate the signing secret
|
|
1066
1066
|
* @param {AdminWebhooksApiAdminWebhooksRotateSecretRequest} requestParameters Request parameters.
|
|
1067
1067
|
* @param {*} [options] Override http request option.
|
|
@@ -1071,7 +1071,7 @@ const AdminWebhooksApiFactory = function (configuration, basePath, axios) {
|
|
|
1071
1071
|
return localVarFp.adminWebhooksRotateSecret(requestParameters.orgId, requestParameters.webhookId, options).then((request) => request(axios, basePath));
|
|
1072
1072
|
},
|
|
1073
1073
|
/**
|
|
1074
|
-
*
|
|
1074
|
+
* Sends one `webhook.test` event to the webhook URL now, with the same body, headers and signature as any event, and records it in the delivery history. A receiver answer outside 2xx still yields HTTP 200 with `success: false`; when no answer was received (connection or TLS error) the endpoint answers 502. A failed test is not retried.
|
|
1075
1075
|
* @summary Send a test delivery
|
|
1076
1076
|
* @param {AdminWebhooksApiAdminWebhooksTestRequest} requestParameters Request parameters.
|
|
1077
1077
|
* @param {*} [options] Override http request option.
|
|
@@ -1141,7 +1141,7 @@ const AdminWebhooksApiFactory = function (configuration, basePath, axios) {
|
|
|
1141
1141
|
return localVarFp.patchAdminWebhooksUpdate(requestParameters.orgId, requestParameters.webhookId, options).then((request) => request(axios, basePath));
|
|
1142
1142
|
},
|
|
1143
1143
|
/**
|
|
1144
|
-
*
|
|
1144
|
+
* Changes only the fields that are sent: `url`, `events`, `isActive` (also as `active` or `enabled`), `type`, `configuration`, `rotateSecret`. A new `url` for a webhook that has a signing secret needs `rotateSecret: true`; the response then carries the new `secret` once. Unknown fields, `secret` and event names that are not in the catalogue are refused with 400.
|
|
1145
1145
|
* @summary Update a webhook
|
|
1146
1146
|
* @param {AdminWebhooksApiPutAdminWebhooksUpdateRequest} requestParameters Request parameters.
|
|
1147
1147
|
* @param {*} [options] Override http request option.
|
|
@@ -1161,7 +1161,7 @@ exports.AdminWebhooksApiFactory = AdminWebhooksApiFactory;
|
|
|
1161
1161
|
*/
|
|
1162
1162
|
class AdminWebhooksApi extends base_1.BaseAPI {
|
|
1163
1163
|
/**
|
|
1164
|
-
* The signing secret is generated server-side and returned once in this response only.
|
|
1164
|
+
* Accepts `url`, `events`, `isActive` (also as `active` or `enabled`), `type` and `configuration`. The signing secret is generated server-side and returned once in this response only: a `secret` in the request, an unknown field and an event name that is not in the catalogue are refused with 400.
|
|
1165
1165
|
* @summary Create a webhook
|
|
1166
1166
|
* @param {AdminWebhooksApiAdminWebhooksCreateRequest} requestParameters Request parameters.
|
|
1167
1167
|
* @param {*} [options] Override http request option.
|
|
@@ -1194,7 +1194,7 @@ class AdminWebhooksApi extends base_1.BaseAPI {
|
|
|
1194
1194
|
return (0, exports.AdminWebhooksApiFp)(this.configuration).adminWebhooksDeliveriesList(requestParameters.orgId, requestParameters.webhookId, options).then((request) => request(this.axios, this.basePath));
|
|
1195
1195
|
}
|
|
1196
1196
|
/**
|
|
1197
|
-
*
|
|
1197
|
+
* Queues a new delivery with the same event and payload and returns its id. The original delivery is not changed. A disabled webhook sends nothing, so the call answers 409 until the webhook is enabled.
|
|
1198
1198
|
* @summary Replay a delivery
|
|
1199
1199
|
* @param {AdminWebhooksApiAdminWebhooksDeliveryReplayRequest} requestParameters Request parameters.
|
|
1200
1200
|
* @param {*} [options] Override http request option.
|
|
@@ -1249,7 +1249,7 @@ class AdminWebhooksApi extends base_1.BaseAPI {
|
|
|
1249
1249
|
return (0, exports.AdminWebhooksApiFp)(this.configuration).adminWebhooksList(requestParameters.orgId, options).then((request) => request(this.axios, this.basePath));
|
|
1250
1250
|
}
|
|
1251
1251
|
/**
|
|
1252
|
-
* Generates a new HMAC secret and
|
|
1252
|
+
* Generates a new HMAC secret and returns it once. For 24 hours every delivery also carries `X-LumoAuth-Signature-Previous`, signed with the secret that was replaced, so the receiver can be updated without losing events. The `kid` of `X-LumoAuth-Signature` changes with every rotation.
|
|
1253
1253
|
* @summary Rotate the signing secret
|
|
1254
1254
|
* @param {AdminWebhooksApiAdminWebhooksRotateSecretRequest} requestParameters Request parameters.
|
|
1255
1255
|
* @param {*} [options] Override http request option.
|
|
@@ -1260,7 +1260,7 @@ class AdminWebhooksApi extends base_1.BaseAPI {
|
|
|
1260
1260
|
return (0, exports.AdminWebhooksApiFp)(this.configuration).adminWebhooksRotateSecret(requestParameters.orgId, requestParameters.webhookId, options).then((request) => request(this.axios, this.basePath));
|
|
1261
1261
|
}
|
|
1262
1262
|
/**
|
|
1263
|
-
*
|
|
1263
|
+
* Sends one `webhook.test` event to the webhook URL now, with the same body, headers and signature as any event, and records it in the delivery history. A receiver answer outside 2xx still yields HTTP 200 with `success: false`; when no answer was received (connection or TLS error) the endpoint answers 502. A failed test is not retried.
|
|
1264
1264
|
* @summary Send a test delivery
|
|
1265
1265
|
* @param {AdminWebhooksApiAdminWebhooksTestRequest} requestParameters Request parameters.
|
|
1266
1266
|
* @param {*} [options] Override http request option.
|
|
@@ -1337,7 +1337,7 @@ class AdminWebhooksApi extends base_1.BaseAPI {
|
|
|
1337
1337
|
return (0, exports.AdminWebhooksApiFp)(this.configuration).patchAdminWebhooksUpdate(requestParameters.orgId, requestParameters.webhookId, options).then((request) => request(this.axios, this.basePath));
|
|
1338
1338
|
}
|
|
1339
1339
|
/**
|
|
1340
|
-
*
|
|
1340
|
+
* Changes only the fields that are sent: `url`, `events`, `isActive` (also as `active` or `enabled`), `type`, `configuration`, `rotateSecret`. A new `url` for a webhook that has a signing secret needs `rotateSecret: true`; the response then carries the new `secret` once. Unknown fields, `secret` and event names that are not in the catalogue are refused with 400.
|
|
1341
1341
|
* @summary Update a webhook
|
|
1342
1342
|
* @param {AdminWebhooksApiPutAdminWebhooksUpdateRequest} requestParameters Request parameters.
|
|
1343
1343
|
* @param {*} [options] Override http request option.
|
package/dist/api/agents-api.d.ts
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import type { Configuration } from '../configuration';
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import type { AdminAgentsReportUsageRequest } from '../models';
|
|
15
16
|
import type { AskRequest } from '../models';
|
|
16
17
|
import type { AskResponse } from '../models';
|
|
17
18
|
import type { AttestRequest } from '../models';
|
|
@@ -23,6 +24,7 @@ import type { CreateApprovalResponse } from '../models';
|
|
|
23
24
|
import type { GetApprovalStatusResponse } from '../models';
|
|
24
25
|
import type { GetCurrentAgentResponse } from '../models';
|
|
25
26
|
import type { RegisterAgentResponse } from '../models';
|
|
27
|
+
import type { ReportAgentUsageResponse } from '../models';
|
|
26
28
|
import type { SignedAgentCard } from '../models';
|
|
27
29
|
import type { VerifyAgentCardResponse } from '../models';
|
|
28
30
|
/**
|
|
@@ -99,6 +101,15 @@ export declare const AgentsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
99
101
|
* @throws {RequiredError}
|
|
100
102
|
*/
|
|
101
103
|
registerAgent: (orgId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
104
|
+
/**
|
|
105
|
+
* 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.
|
|
106
|
+
* @summary Report the model tokens and cost that the agent used
|
|
107
|
+
* @param {string} orgId
|
|
108
|
+
* @param {AdminAgentsReportUsageRequest} adminAgentsReportUsageRequest
|
|
109
|
+
* @param {*} [options] Override http request option.
|
|
110
|
+
* @throws {RequiredError}
|
|
111
|
+
*/
|
|
112
|
+
reportAgentUsage: (orgId: string, adminAgentsReportUsageRequest: AdminAgentsReportUsageRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
102
113
|
/**
|
|
103
114
|
* 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.
|
|
104
115
|
* @summary Verify a signed A2A agent card
|
|
@@ -185,6 +196,15 @@ export declare const AgentsApiFp: (configuration?: Configuration) => {
|
|
|
185
196
|
* @throws {RequiredError}
|
|
186
197
|
*/
|
|
187
198
|
registerAgent(orgId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegisterAgentResponse>>;
|
|
199
|
+
/**
|
|
200
|
+
* 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.
|
|
201
|
+
* @summary Report the model tokens and cost that the agent used
|
|
202
|
+
* @param {string} orgId
|
|
203
|
+
* @param {AdminAgentsReportUsageRequest} adminAgentsReportUsageRequest
|
|
204
|
+
* @param {*} [options] Override http request option.
|
|
205
|
+
* @throws {RequiredError}
|
|
206
|
+
*/
|
|
207
|
+
reportAgentUsage(orgId: string, adminAgentsReportUsageRequest: AdminAgentsReportUsageRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReportAgentUsageResponse>>;
|
|
188
208
|
/**
|
|
189
209
|
* 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.
|
|
190
210
|
* @summary Verify a signed A2A agent card
|
|
@@ -264,6 +284,14 @@ export declare const AgentsApiFactory: (configuration?: Configuration, basePath?
|
|
|
264
284
|
* @throws {RequiredError}
|
|
265
285
|
*/
|
|
266
286
|
registerAgent(requestParameters: AgentsApiRegisterAgentRequest, options?: RawAxiosRequestConfig): AxiosPromise<RegisterAgentResponse>;
|
|
287
|
+
/**
|
|
288
|
+
* 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.
|
|
289
|
+
* @summary Report the model tokens and cost that the agent used
|
|
290
|
+
* @param {AgentsApiReportAgentUsageRequest} requestParameters Request parameters.
|
|
291
|
+
* @param {*} [options] Override http request option.
|
|
292
|
+
* @throws {RequiredError}
|
|
293
|
+
*/
|
|
294
|
+
reportAgentUsage(requestParameters: AgentsApiReportAgentUsageRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReportAgentUsageResponse>;
|
|
267
295
|
/**
|
|
268
296
|
* 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.
|
|
269
297
|
* @summary Verify a signed A2A agent card
|
|
@@ -349,6 +377,15 @@ export interface AgentsApiInterface {
|
|
|
349
377
|
* @memberof AgentsApiInterface
|
|
350
378
|
*/
|
|
351
379
|
registerAgent(requestParameters: AgentsApiRegisterAgentRequest, options?: RawAxiosRequestConfig): AxiosPromise<RegisterAgentResponse>;
|
|
380
|
+
/**
|
|
381
|
+
* 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.
|
|
382
|
+
* @summary Report the model tokens and cost that the agent used
|
|
383
|
+
* @param {AgentsApiReportAgentUsageRequest} requestParameters Request parameters.
|
|
384
|
+
* @param {*} [options] Override http request option.
|
|
385
|
+
* @throws {RequiredError}
|
|
386
|
+
* @memberof AgentsApiInterface
|
|
387
|
+
*/
|
|
388
|
+
reportAgentUsage(requestParameters: AgentsApiReportAgentUsageRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReportAgentUsageResponse>;
|
|
352
389
|
/**
|
|
353
390
|
* 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.
|
|
354
391
|
* @summary Verify a signed A2A agent card
|
|
@@ -505,6 +542,25 @@ export interface AgentsApiRegisterAgentRequest {
|
|
|
505
542
|
*/
|
|
506
543
|
readonly orgId: string;
|
|
507
544
|
}
|
|
545
|
+
/**
|
|
546
|
+
* Request parameters for reportAgentUsage operation in AgentsApi.
|
|
547
|
+
* @export
|
|
548
|
+
* @interface AgentsApiReportAgentUsageRequest
|
|
549
|
+
*/
|
|
550
|
+
export interface AgentsApiReportAgentUsageRequest {
|
|
551
|
+
/**
|
|
552
|
+
*
|
|
553
|
+
* @type {string}
|
|
554
|
+
* @memberof AgentsApiReportAgentUsage
|
|
555
|
+
*/
|
|
556
|
+
readonly orgId: string;
|
|
557
|
+
/**
|
|
558
|
+
*
|
|
559
|
+
* @type {AdminAgentsReportUsageRequest}
|
|
560
|
+
* @memberof AgentsApiReportAgentUsage
|
|
561
|
+
*/
|
|
562
|
+
readonly adminAgentsReportUsageRequest: AdminAgentsReportUsageRequest;
|
|
563
|
+
}
|
|
508
564
|
/**
|
|
509
565
|
* Request parameters for verifyAgentCard operation in AgentsApi.
|
|
510
566
|
* @export
|
|
@@ -603,6 +659,15 @@ export declare class AgentsApi extends BaseAPI implements AgentsApiInterface {
|
|
|
603
659
|
* @memberof AgentsApi
|
|
604
660
|
*/
|
|
605
661
|
registerAgent(requestParameters: AgentsApiRegisterAgentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RegisterAgentResponse, any, {}>>;
|
|
662
|
+
/**
|
|
663
|
+
* 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.
|
|
664
|
+
* @summary Report the model tokens and cost that the agent used
|
|
665
|
+
* @param {AgentsApiReportAgentUsageRequest} requestParameters Request parameters.
|
|
666
|
+
* @param {*} [options] Override http request option.
|
|
667
|
+
* @throws {RequiredError}
|
|
668
|
+
* @memberof AgentsApi
|
|
669
|
+
*/
|
|
670
|
+
reportAgentUsage(requestParameters: AgentsApiReportAgentUsageRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReportAgentUsageResponse, any, {}>>;
|
|
606
671
|
/**
|
|
607
672
|
* 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.
|
|
608
673
|
* @summary Verify a signed A2A agent card
|
package/dist/api/agents-api.js
CHANGED
|
@@ -332,6 +332,45 @@ const AgentsApiAxiosParamCreator = function (configuration) {
|
|
|
332
332
|
options: localVarRequestOptions,
|
|
333
333
|
};
|
|
334
334
|
}),
|
|
335
|
+
/**
|
|
336
|
+
* 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.
|
|
337
|
+
* @summary Report the model tokens and cost that the agent used
|
|
338
|
+
* @param {string} orgId
|
|
339
|
+
* @param {AdminAgentsReportUsageRequest} adminAgentsReportUsageRequest
|
|
340
|
+
* @param {*} [options] Override http request option.
|
|
341
|
+
* @throws {RequiredError}
|
|
342
|
+
*/
|
|
343
|
+
reportAgentUsage: (orgId_1, adminAgentsReportUsageRequest_1, ...args_1) => __awaiter(this, [orgId_1, adminAgentsReportUsageRequest_1, ...args_1], void 0, function* (orgId, adminAgentsReportUsageRequest, options = {}) {
|
|
344
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
345
|
+
(0, common_1.assertParamExists)('reportAgentUsage', 'orgId', orgId);
|
|
346
|
+
// verify required parameter 'adminAgentsReportUsageRequest' is not null or undefined
|
|
347
|
+
(0, common_1.assertParamExists)('reportAgentUsage', 'adminAgentsReportUsageRequest', adminAgentsReportUsageRequest);
|
|
348
|
+
const localVarPath = `/orgs/{orgId}/api/v1/agents/me/usage`
|
|
349
|
+
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
|
|
350
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
351
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
352
|
+
let baseOptions;
|
|
353
|
+
if (configuration) {
|
|
354
|
+
baseOptions = configuration.baseOptions;
|
|
355
|
+
}
|
|
356
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
357
|
+
const localVarHeaderParameter = {};
|
|
358
|
+
const localVarQueryParameter = {};
|
|
359
|
+
// authentication ApiKeyAuth required
|
|
360
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-API-Key", configuration);
|
|
361
|
+
// authentication BearerAuth required
|
|
362
|
+
// http bearer authentication required
|
|
363
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
364
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
365
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
366
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
367
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
368
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminAgentsReportUsageRequest, localVarRequestOptions, configuration);
|
|
369
|
+
return {
|
|
370
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
371
|
+
options: localVarRequestOptions,
|
|
372
|
+
};
|
|
373
|
+
}),
|
|
335
374
|
/**
|
|
336
375
|
* 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.
|
|
337
376
|
* @summary Verify a signed A2A agent card
|
|
@@ -514,6 +553,23 @@ const AgentsApiFp = function (configuration) {
|
|
|
514
553
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
515
554
|
});
|
|
516
555
|
},
|
|
556
|
+
/**
|
|
557
|
+
* 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.
|
|
558
|
+
* @summary Report the model tokens and cost that the agent used
|
|
559
|
+
* @param {string} orgId
|
|
560
|
+
* @param {AdminAgentsReportUsageRequest} adminAgentsReportUsageRequest
|
|
561
|
+
* @param {*} [options] Override http request option.
|
|
562
|
+
* @throws {RequiredError}
|
|
563
|
+
*/
|
|
564
|
+
reportAgentUsage(orgId, adminAgentsReportUsageRequest, options) {
|
|
565
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
566
|
+
var _a, _b, _c;
|
|
567
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.reportAgentUsage(orgId, adminAgentsReportUsageRequest, options);
|
|
568
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
569
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AgentsApi.reportAgentUsage']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
570
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
571
|
+
});
|
|
572
|
+
},
|
|
517
573
|
/**
|
|
518
574
|
* 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.
|
|
519
575
|
* @summary Verify a signed A2A agent card
|
|
@@ -619,6 +675,16 @@ const AgentsApiFactory = function (configuration, basePath, axios) {
|
|
|
619
675
|
registerAgent(requestParameters, options) {
|
|
620
676
|
return localVarFp.registerAgent(requestParameters.orgId, options).then((request) => request(axios, basePath));
|
|
621
677
|
},
|
|
678
|
+
/**
|
|
679
|
+
* 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.
|
|
680
|
+
* @summary Report the model tokens and cost that the agent used
|
|
681
|
+
* @param {AgentsApiReportAgentUsageRequest} requestParameters Request parameters.
|
|
682
|
+
* @param {*} [options] Override http request option.
|
|
683
|
+
* @throws {RequiredError}
|
|
684
|
+
*/
|
|
685
|
+
reportAgentUsage(requestParameters, options) {
|
|
686
|
+
return localVarFp.reportAgentUsage(requestParameters.orgId, requestParameters.adminAgentsReportUsageRequest, options).then((request) => request(axios, basePath));
|
|
687
|
+
},
|
|
622
688
|
/**
|
|
623
689
|
* 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.
|
|
624
690
|
* @summary Verify a signed A2A agent card
|
|
@@ -725,6 +791,17 @@ class AgentsApi extends base_1.BaseAPI {
|
|
|
725
791
|
registerAgent(requestParameters, options) {
|
|
726
792
|
return (0, exports.AgentsApiFp)(this.configuration).registerAgent(requestParameters.orgId, options).then((request) => request(this.axios, this.basePath));
|
|
727
793
|
}
|
|
794
|
+
/**
|
|
795
|
+
* 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.
|
|
796
|
+
* @summary Report the model tokens and cost that the agent used
|
|
797
|
+
* @param {AgentsApiReportAgentUsageRequest} requestParameters Request parameters.
|
|
798
|
+
* @param {*} [options] Override http request option.
|
|
799
|
+
* @throws {RequiredError}
|
|
800
|
+
* @memberof AgentsApi
|
|
801
|
+
*/
|
|
802
|
+
reportAgentUsage(requestParameters, options) {
|
|
803
|
+
return (0, exports.AgentsApiFp)(this.configuration).reportAgentUsage(requestParameters.orgId, requestParameters.adminAgentsReportUsageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
804
|
+
}
|
|
728
805
|
/**
|
|
729
806
|
* 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.
|
|
730
807
|
* @summary Verify a signed A2A agent card
|
package/dist/api/oauth-api.d.ts
CHANGED
|
@@ -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)
|
package/dist/api/oauth-api.js
CHANGED
|
@@ -322,6 +322,40 @@ const OAuthApiAxiosParamCreator = function (configuration) {
|
|
|
322
322
|
options: localVarRequestOptions,
|
|
323
323
|
};
|
|
324
324
|
}),
|
|
325
|
+
/**
|
|
326
|
+
* 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`.
|
|
327
|
+
* @summary Request a sign-in link by email
|
|
328
|
+
* @param {string} orgId
|
|
329
|
+
* @param {RequestMagicLinkRequest} requestMagicLinkRequest
|
|
330
|
+
* @param {*} [options] Override http request option.
|
|
331
|
+
* @throws {RequiredError}
|
|
332
|
+
*/
|
|
333
|
+
requestMagicLink: (orgId_1, requestMagicLinkRequest_1, ...args_1) => __awaiter(this, [orgId_1, requestMagicLinkRequest_1, ...args_1], void 0, function* (orgId, requestMagicLinkRequest, options = {}) {
|
|
334
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
335
|
+
(0, common_1.assertParamExists)('requestMagicLink', 'orgId', orgId);
|
|
336
|
+
// verify required parameter 'requestMagicLinkRequest' is not null or undefined
|
|
337
|
+
(0, common_1.assertParamExists)('requestMagicLink', 'requestMagicLinkRequest', requestMagicLinkRequest);
|
|
338
|
+
const localVarPath = `/orgs/{orgId}/api/v1/oauth/magic-link`
|
|
339
|
+
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
|
|
340
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
341
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
342
|
+
let baseOptions;
|
|
343
|
+
if (configuration) {
|
|
344
|
+
baseOptions = configuration.baseOptions;
|
|
345
|
+
}
|
|
346
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
347
|
+
const localVarHeaderParameter = {};
|
|
348
|
+
const localVarQueryParameter = {};
|
|
349
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
350
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
351
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
352
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
353
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestMagicLinkRequest, localVarRequestOptions, configuration);
|
|
354
|
+
return {
|
|
355
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
356
|
+
options: localVarRequestOptions,
|
|
357
|
+
};
|
|
358
|
+
}),
|
|
325
359
|
/**
|
|
326
360
|
* 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.
|
|
327
361
|
* @summary Token revocation (RFC 7009)
|
|
@@ -756,6 +790,23 @@ const OAuthApiFp = function (configuration) {
|
|
|
756
790
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
757
791
|
});
|
|
758
792
|
},
|
|
793
|
+
/**
|
|
794
|
+
* 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`.
|
|
795
|
+
* @summary Request a sign-in link by email
|
|
796
|
+
* @param {string} orgId
|
|
797
|
+
* @param {RequestMagicLinkRequest} requestMagicLinkRequest
|
|
798
|
+
* @param {*} [options] Override http request option.
|
|
799
|
+
* @throws {RequiredError}
|
|
800
|
+
*/
|
|
801
|
+
requestMagicLink(orgId, requestMagicLinkRequest, options) {
|
|
802
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
803
|
+
var _a, _b, _c;
|
|
804
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.requestMagicLink(orgId, requestMagicLinkRequest, options);
|
|
805
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
806
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OAuthApi.requestMagicLink']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
807
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
808
|
+
});
|
|
809
|
+
},
|
|
759
810
|
/**
|
|
760
811
|
* 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.
|
|
761
812
|
* @summary Token revocation (RFC 7009)
|
|
@@ -1003,6 +1054,16 @@ const OAuthApiFactory = function (configuration, basePath, axios) {
|
|
|
1003
1054
|
registerClient(requestParameters, options) {
|
|
1004
1055
|
return localVarFp.registerClient(requestParameters.orgId, options).then((request) => request(axios, basePath));
|
|
1005
1056
|
},
|
|
1057
|
+
/**
|
|
1058
|
+
* 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`.
|
|
1059
|
+
* @summary Request a sign-in link by email
|
|
1060
|
+
* @param {OAuthApiRequestMagicLinkRequest} requestParameters Request parameters.
|
|
1061
|
+
* @param {*} [options] Override http request option.
|
|
1062
|
+
* @throws {RequiredError}
|
|
1063
|
+
*/
|
|
1064
|
+
requestMagicLink(requestParameters, options) {
|
|
1065
|
+
return localVarFp.requestMagicLink(requestParameters.orgId, requestParameters.requestMagicLinkRequest, options).then((request) => request(axios, basePath));
|
|
1066
|
+
},
|
|
1006
1067
|
/**
|
|
1007
1068
|
* 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.
|
|
1008
1069
|
* @summary Token revocation (RFC 7009)
|
|
@@ -1202,6 +1263,17 @@ class OAuthApi extends base_1.BaseAPI {
|
|
|
1202
1263
|
registerClient(requestParameters, options) {
|
|
1203
1264
|
return (0, exports.OAuthApiFp)(this.configuration).registerClient(requestParameters.orgId, options).then((request) => request(this.axios, this.basePath));
|
|
1204
1265
|
}
|
|
1266
|
+
/**
|
|
1267
|
+
* 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`.
|
|
1268
|
+
* @summary Request a sign-in link by email
|
|
1269
|
+
* @param {OAuthApiRequestMagicLinkRequest} requestParameters Request parameters.
|
|
1270
|
+
* @param {*} [options] Override http request option.
|
|
1271
|
+
* @throws {RequiredError}
|
|
1272
|
+
* @memberof OAuthApi
|
|
1273
|
+
*/
|
|
1274
|
+
requestMagicLink(requestParameters, options) {
|
|
1275
|
+
return (0, exports.OAuthApiFp)(this.configuration).requestMagicLink(requestParameters.orgId, requestParameters.requestMagicLinkRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1276
|
+
}
|
|
1205
1277
|
/**
|
|
1206
1278
|
* 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.
|
|
1207
1279
|
* @summary Token revocation (RFC 7009)
|