@lumoauth/api-client 1.3.0 → 1.4.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 +10 -0
- package/README.md +9 -2
- package/api/admin-agents-api.ts +130 -0
- package/api/agents-api.ts +118 -0
- package/dist/api/admin-agents-api.d.ts +73 -0
- package/dist/api/admin-agents-api.js +82 -0
- package/dist/api/agents-api.d.ts +65 -0
- package/dist/api/agents-api.js +77 -0
- package/dist/esm/api/admin-agents-api.d.ts +73 -0
- package/dist/esm/api/admin-agents-api.js +82 -0
- package/dist/esm/api/agents-api.d.ts +65 -0
- package/dist/esm/api/agents-api.js +77 -0
- 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-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/index.d.ts +5 -0
- package/dist/esm/models/index.js +5 -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/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-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/index.d.ts +5 -0
- package/dist/models/index.js +5 -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/set-user-attribute-response-data.d.ts +1 -1
- package/dist/models/userinfo-response.d.ts +8 -0
- package/docs/AdminAgentsApi.md +63 -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/AgentsApi.md +59 -0
- package/docs/OIDCApi.md +2 -2
- package/docs/ReportAgentUsageResponse.md +22 -0
- 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-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/index.ts +5 -0
- package/models/report-agent-usage-response.ts +39 -0
- package/models/set-user-attribute-response-data.ts +1 -1
- package/models/userinfo-response.ts +6 -0
- package/package.json +1 -1
|
@@ -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
|
|
@@ -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
|
|
@@ -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 {};
|
|
@@ -25,6 +25,10 @@ export * from './admin-agents-generate-token-response-data';
|
|
|
25
25
|
export * from './admin-agents-get-response';
|
|
26
26
|
export * from './admin-agents-get-scopes-response';
|
|
27
27
|
export * from './admin-agents-list-response';
|
|
28
|
+
export * from './admin-agents-report-usage-request';
|
|
29
|
+
export * from './admin-agents-report-usage-response';
|
|
30
|
+
export * from './admin-agents-report-usage-response-data';
|
|
31
|
+
export * from './admin-agents-report-usage-response-data-recorded';
|
|
28
32
|
export * from './admin-agents-revoke-key-response';
|
|
29
33
|
export * from './admin-agents-rotate-credentials-response';
|
|
30
34
|
export * from './admin-agents-set-scopes-request';
|
|
@@ -343,6 +347,7 @@ export * from './registered-client-metadata';
|
|
|
343
347
|
export * from './remove-user-group-response';
|
|
344
348
|
export * from './remove-user-permission-response';
|
|
345
349
|
export * from './remove-user-role-response';
|
|
350
|
+
export * from './report-agent-usage-response';
|
|
346
351
|
export * from './request-permission-request';
|
|
347
352
|
export * from './request-permission-response';
|
|
348
353
|
export * from './revoke-agent-token-request';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -25,6 +25,10 @@ export * from './admin-agents-generate-token-response-data';
|
|
|
25
25
|
export * from './admin-agents-get-response';
|
|
26
26
|
export * from './admin-agents-get-scopes-response';
|
|
27
27
|
export * from './admin-agents-list-response';
|
|
28
|
+
export * from './admin-agents-report-usage-request';
|
|
29
|
+
export * from './admin-agents-report-usage-response';
|
|
30
|
+
export * from './admin-agents-report-usage-response-data';
|
|
31
|
+
export * from './admin-agents-report-usage-response-data-recorded';
|
|
28
32
|
export * from './admin-agents-revoke-key-response';
|
|
29
33
|
export * from './admin-agents-rotate-credentials-response';
|
|
30
34
|
export * from './admin-agents-set-scopes-request';
|
|
@@ -343,6 +347,7 @@ export * from './registered-client-metadata';
|
|
|
343
347
|
export * from './remove-user-group-response';
|
|
344
348
|
export * from './remove-user-permission-response';
|
|
345
349
|
export * from './remove-user-role-response';
|
|
350
|
+
export * from './report-agent-usage-response';
|
|
346
351
|
export * from './request-permission-request';
|
|
347
352
|
export * from './request-permission-response';
|
|
348
353
|
export * from './revoke-agent-token-request';
|
|
@@ -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 ReportAgentUsageResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface ReportAgentUsageResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {AdminAgentsReportUsageResponseDataRecorded}
|
|
22
|
+
* @memberof ReportAgentUsageResponse
|
|
23
|
+
*/
|
|
24
|
+
'recorded'?: AdminAgentsReportUsageResponseDataRecorded;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {{ [key: string]: any; }}
|
|
28
|
+
* @memberof ReportAgentUsageResponse
|
|
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 {};
|
|
@@ -173,6 +173,14 @@ export interface UserinfoResponse {
|
|
|
173
173
|
* @memberof UserinfoResponse
|
|
174
174
|
*/
|
|
175
175
|
'capabilities'?: Array<string> | null;
|
|
176
|
+
/**
|
|
177
|
+
* Agents only. The budget limits that are set (max_api_calls_per_hour, max_api_calls_per_day, max_tokens_per_hour, max_tokens_per_day, max_cost_per_day_usd, max_cost_per_month_usd, hard_limit; unlimited ones are left out) and any other policy keys, the usage in the current UTC windows (api_calls_this_hour, api_calls_today, tokens_used_this_hour, tokens_used_today, cost_today_usd, cost_this_month_usd), and exhausted: true when a limit is reached and the next metered call would get 429.
|
|
178
|
+
* @type {{ [key: string]: any; }}
|
|
179
|
+
* @memberof UserinfoResponse
|
|
180
|
+
*/
|
|
181
|
+
'budget_policy'?: {
|
|
182
|
+
[key: string]: any;
|
|
183
|
+
};
|
|
176
184
|
/**
|
|
177
185
|
* Clients only.
|
|
178
186
|
* @type {string}
|
|
@@ -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,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LumoAuth API
|
|
6
|
+
* LumoAuth REST API — authentication, authorization, agent registry, MCP server authorization, and tenant administration. Multi-tenant: most paths are scoped under `/orgs/{orgId}/api/v1/...`.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: sdk@lumoauth.dev
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -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
|
+
}
|