@lumoauth/api-client 1.2.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 +20 -0
- package/README.md +17 -4
- package/api/admin-agents-api.ts +130 -0
- package/api/admin-email-api.ts +67 -15
- package/api/admin-oauth-clients-api.ts +370 -0
- package/api/agents-api.ts +118 -0
- package/api/oauth-api.ts +0 -186
- package/dist/api/admin-agents-api.d.ts +73 -0
- package/dist/api/admin-agents-api.js +82 -0
- package/dist/api/admin-email-api.d.ts +41 -9
- package/dist/api/admin-email-api.js +34 -14
- package/dist/api/admin-oauth-clients-api.d.ts +210 -0
- package/dist/api/admin-oauth-clients-api.js +236 -0
- package/dist/api/agents-api.d.ts +65 -0
- package/dist/api/agents-api.js +77 -0
- package/dist/api/oauth-api.d.ts +0 -110
- package/dist/api/oauth-api.js +0 -132
- 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/admin-email-api.d.ts +41 -9
- package/dist/esm/api/admin-email-api.js +34 -14
- package/dist/esm/api/admin-oauth-clients-api.d.ts +210 -0
- package/dist/esm/api/admin-oauth-clients-api.js +236 -0
- 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 +0 -110
- package/dist/esm/api/oauth-api.js +0 -132
- 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/admin-clients-get-branding-response-data.d.ts +34 -0
- package/dist/esm/models/admin-clients-get-branding-response-data.js +14 -0
- package/dist/esm/models/admin-clients-get-branding-response.d.ts +25 -0
- package/dist/esm/models/admin-clients-get-branding-response.js +14 -0
- package/dist/esm/models/authorization-server-metadata.d.ts +0 -6
- package/dist/esm/models/index.d.ts +10 -0
- package/dist/esm/models/index.js +10 -0
- package/dist/esm/models/open-id-configuration.d.ts +6 -6
- package/dist/esm/models/patch-admin-clients-update-branding-response.d.ts +32 -0
- package/dist/esm/models/patch-admin-clients-update-branding-response.js +14 -0
- package/dist/esm/models/put-admin-clients-update-branding-request.d.ts +34 -0
- package/dist/esm/models/put-admin-clients-update-branding-request.js +14 -0
- package/dist/esm/models/put-admin-clients-update-branding-response.d.ts +32 -0
- package/dist/esm/models/put-admin-clients-update-branding-response.js +14 -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/admin-clients-get-branding-response-data.d.ts +34 -0
- package/dist/models/admin-clients-get-branding-response-data.js +15 -0
- package/dist/models/admin-clients-get-branding-response.d.ts +25 -0
- package/dist/models/admin-clients-get-branding-response.js +15 -0
- package/dist/models/authorization-server-metadata.d.ts +0 -6
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +10 -0
- package/dist/models/open-id-configuration.d.ts +6 -6
- package/dist/models/patch-admin-clients-update-branding-response.d.ts +32 -0
- package/dist/models/patch-admin-clients-update-branding-response.js +15 -0
- package/dist/models/put-admin-clients-update-branding-request.d.ts +34 -0
- package/dist/models/put-admin-clients-update-branding-request.js +15 -0
- package/dist/models/put-admin-clients-update-branding-response.d.ts +32 -0
- package/dist/models/put-admin-clients-update-branding-response.js +15 -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/AdminClientsGetBrandingResponse.md +20 -0
- package/docs/AdminClientsGetBrandingResponseData.md +22 -0
- package/docs/AdminEmailApi.md +15 -2
- package/docs/AdminOAuthClientsApi.md +174 -0
- package/docs/AgentsApi.md +59 -0
- package/docs/AuthorizationServerMetadata.md +0 -2
- package/docs/OAuthApi.md +0 -105
- package/docs/OIDCApi.md +2 -2
- package/docs/OpenIdConfiguration.md +2 -2
- package/docs/PatchAdminClientsUpdateBrandingResponse.md +22 -0
- package/docs/PutAdminClientsUpdateBrandingRequest.md +22 -0
- package/docs/PutAdminClientsUpdateBrandingResponse.md +22 -0
- 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/admin-clients-get-branding-response-data.ts +36 -0
- package/models/admin-clients-get-branding-response.ts +33 -0
- package/models/authorization-server-metadata.ts +0 -6
- package/models/index.ts +10 -0
- package/models/open-id-configuration.ts +6 -6
- package/models/patch-admin-clients-update-branding-response.ts +36 -0
- package/models/put-admin-clients-update-branding-request.ts +36 -0
- package/models/put-admin-clients-update-branding-response.ts +36 -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
|
|
@@ -90,14 +90,6 @@ export declare const OAuthApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
90
90
|
* @throws {RequiredError}
|
|
91
91
|
*/
|
|
92
92
|
par: (orgId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
93
|
-
/**
|
|
94
|
-
* Placeholder: flashes an informational message and redirects to the hosted login page. Not a JSON API.
|
|
95
|
-
* @summary Passkey login entry point
|
|
96
|
-
* @param {string} orgId
|
|
97
|
-
* @param {*} [options] Override http request option.
|
|
98
|
-
* @throws {RequiredError}
|
|
99
|
-
*/
|
|
100
|
-
passkeyLogin: (orgId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
101
93
|
/**
|
|
102
94
|
* Registers an OAuth client from a JSON metadata document. Authenticated with an initial access token (Authorization: Bearer) or an API key holding admin:clients:register; open registration applies when the organization allows it.
|
|
103
95
|
* @summary Dynamic client registration (RFC 7591 / OIDC DCR)
|
|
@@ -157,14 +149,6 @@ export declare const OAuthApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
157
149
|
* @throws {RequiredError}
|
|
158
150
|
*/
|
|
159
151
|
submitDeviceVerification: (orgId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
160
|
-
/**
|
|
161
|
-
* Receives the hosted OAuth login page\'s form (email, password, csrf token and the authorization request parameters). Every outcome — success, invalid credentials, locked account, captcha or CSRF failure — answers with the same redirect back to /oauth/authorize, which re-renders the login page or continues the flow. Not a JSON API.
|
|
162
|
-
* @summary Hosted login form submission
|
|
163
|
-
* @param {string} orgId
|
|
164
|
-
* @param {*} [options] Override http request option.
|
|
165
|
-
* @throws {RequiredError}
|
|
166
|
-
*/
|
|
167
|
-
submitLogin: (orgId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
168
152
|
/**
|
|
169
153
|
* Establishes the end-user browser session from JSON credentials so a following /oauth/authorize request issues a code without showing the hosted login page. Deliberately mints no tokens. Only accepted from trusted origins.
|
|
170
154
|
* @summary Programmatic (JSON) login for the authorization flow
|
|
@@ -260,14 +244,6 @@ export declare const OAuthApiFp: (configuration?: Configuration) => {
|
|
|
260
244
|
* @throws {RequiredError}
|
|
261
245
|
*/
|
|
262
246
|
par(orgId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ParResponse>>;
|
|
263
|
-
/**
|
|
264
|
-
* Placeholder: flashes an informational message and redirects to the hosted login page. Not a JSON API.
|
|
265
|
-
* @summary Passkey login entry point
|
|
266
|
-
* @param {string} orgId
|
|
267
|
-
* @param {*} [options] Override http request option.
|
|
268
|
-
* @throws {RequiredError}
|
|
269
|
-
*/
|
|
270
|
-
passkeyLogin(orgId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
271
247
|
/**
|
|
272
248
|
* Registers an OAuth client from a JSON metadata document. Authenticated with an initial access token (Authorization: Bearer) or an API key holding admin:clients:register; open registration applies when the organization allows it.
|
|
273
249
|
* @summary Dynamic client registration (RFC 7591 / OIDC DCR)
|
|
@@ -327,14 +303,6 @@ export declare const OAuthApiFp: (configuration?: Configuration) => {
|
|
|
327
303
|
* @throws {RequiredError}
|
|
328
304
|
*/
|
|
329
305
|
submitDeviceVerification(orgId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
|
|
330
|
-
/**
|
|
331
|
-
* Receives the hosted OAuth login page\'s form (email, password, csrf token and the authorization request parameters). Every outcome — success, invalid credentials, locked account, captcha or CSRF failure — answers with the same redirect back to /oauth/authorize, which re-renders the login page or continues the flow. Not a JSON API.
|
|
332
|
-
* @summary Hosted login form submission
|
|
333
|
-
* @param {string} orgId
|
|
334
|
-
* @param {*} [options] Override http request option.
|
|
335
|
-
* @throws {RequiredError}
|
|
336
|
-
*/
|
|
337
|
-
submitLogin(orgId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
338
306
|
/**
|
|
339
307
|
* Establishes the end-user browser session from JSON credentials so a following /oauth/authorize request issues a code without showing the hosted login page. Deliberately mints no tokens. Only accepted from trusted origins.
|
|
340
308
|
* @summary Programmatic (JSON) login for the authorization flow
|
|
@@ -429,14 +397,6 @@ export declare const OAuthApiFactory: (configuration?: Configuration, basePath?:
|
|
|
429
397
|
* @throws {RequiredError}
|
|
430
398
|
*/
|
|
431
399
|
par(requestParameters: OAuthApiParRequest, options?: RawAxiosRequestConfig): AxiosPromise<ParResponse>;
|
|
432
|
-
/**
|
|
433
|
-
* Placeholder: flashes an informational message and redirects to the hosted login page. Not a JSON API.
|
|
434
|
-
* @summary Passkey login entry point
|
|
435
|
-
* @param {OAuthApiPasskeyLoginRequest} requestParameters Request parameters.
|
|
436
|
-
* @param {*} [options] Override http request option.
|
|
437
|
-
* @throws {RequiredError}
|
|
438
|
-
*/
|
|
439
|
-
passkeyLogin(requestParameters: OAuthApiPasskeyLoginRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
440
400
|
/**
|
|
441
401
|
* Registers an OAuth client from a JSON metadata document. Authenticated with an initial access token (Authorization: Bearer) or an API key holding admin:clients:register; open registration applies when the organization allows it.
|
|
442
402
|
* @summary Dynamic client registration (RFC 7591 / OIDC DCR)
|
|
@@ -493,14 +453,6 @@ export declare const OAuthApiFactory: (configuration?: Configuration, basePath?:
|
|
|
493
453
|
* @throws {RequiredError}
|
|
494
454
|
*/
|
|
495
455
|
submitDeviceVerification(requestParameters: OAuthApiSubmitDeviceVerificationRequest, options?: RawAxiosRequestConfig): AxiosPromise<string>;
|
|
496
|
-
/**
|
|
497
|
-
* Receives the hosted OAuth login page\'s form (email, password, csrf token and the authorization request parameters). Every outcome — success, invalid credentials, locked account, captcha or CSRF failure — answers with the same redirect back to /oauth/authorize, which re-renders the login page or continues the flow. Not a JSON API.
|
|
498
|
-
* @summary Hosted login form submission
|
|
499
|
-
* @param {OAuthApiSubmitLoginRequest} requestParameters Request parameters.
|
|
500
|
-
* @param {*} [options] Override http request option.
|
|
501
|
-
* @throws {RequiredError}
|
|
502
|
-
*/
|
|
503
|
-
submitLogin(requestParameters: OAuthApiSubmitLoginRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
504
456
|
/**
|
|
505
457
|
* Establishes the end-user browser session from JSON credentials so a following /oauth/authorize request issues a code without showing the hosted login page. Deliberately mints no tokens. Only accepted from trusted origins.
|
|
506
458
|
* @summary Programmatic (JSON) login for the authorization flow
|
|
@@ -604,15 +556,6 @@ export interface OAuthApiInterface {
|
|
|
604
556
|
* @memberof OAuthApiInterface
|
|
605
557
|
*/
|
|
606
558
|
par(requestParameters: OAuthApiParRequest, options?: RawAxiosRequestConfig): AxiosPromise<ParResponse>;
|
|
607
|
-
/**
|
|
608
|
-
* Placeholder: flashes an informational message and redirects to the hosted login page. Not a JSON API.
|
|
609
|
-
* @summary Passkey login entry point
|
|
610
|
-
* @param {OAuthApiPasskeyLoginRequest} requestParameters Request parameters.
|
|
611
|
-
* @param {*} [options] Override http request option.
|
|
612
|
-
* @throws {RequiredError}
|
|
613
|
-
* @memberof OAuthApiInterface
|
|
614
|
-
*/
|
|
615
|
-
passkeyLogin(requestParameters: OAuthApiPasskeyLoginRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
616
559
|
/**
|
|
617
560
|
* Registers an OAuth client from a JSON metadata document. Authenticated with an initial access token (Authorization: Bearer) or an API key holding admin:clients:register; open registration applies when the organization allows it.
|
|
618
561
|
* @summary Dynamic client registration (RFC 7591 / OIDC DCR)
|
|
@@ -676,15 +619,6 @@ export interface OAuthApiInterface {
|
|
|
676
619
|
* @memberof OAuthApiInterface
|
|
677
620
|
*/
|
|
678
621
|
submitDeviceVerification(requestParameters: OAuthApiSubmitDeviceVerificationRequest, options?: RawAxiosRequestConfig): AxiosPromise<string>;
|
|
679
|
-
/**
|
|
680
|
-
* Receives the hosted OAuth login page\'s form (email, password, csrf token and the authorization request parameters). Every outcome — success, invalid credentials, locked account, captcha or CSRF failure — answers with the same redirect back to /oauth/authorize, which re-renders the login page or continues the flow. Not a JSON API.
|
|
681
|
-
* @summary Hosted login form submission
|
|
682
|
-
* @param {OAuthApiSubmitLoginRequest} requestParameters Request parameters.
|
|
683
|
-
* @param {*} [options] Override http request option.
|
|
684
|
-
* @throws {RequiredError}
|
|
685
|
-
* @memberof OAuthApiInterface
|
|
686
|
-
*/
|
|
687
|
-
submitLogin(requestParameters: OAuthApiSubmitLoginRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
688
622
|
/**
|
|
689
623
|
* Establishes the end-user browser session from JSON credentials so a following /oauth/authorize request issues a code without showing the hosted login page. Deliberately mints no tokens. Only accepted from trusted origins.
|
|
690
624
|
* @summary Programmatic (JSON) login for the authorization flow
|
|
@@ -823,19 +757,6 @@ export interface OAuthApiParRequest {
|
|
|
823
757
|
*/
|
|
824
758
|
readonly orgId: string;
|
|
825
759
|
}
|
|
826
|
-
/**
|
|
827
|
-
* Request parameters for passkeyLogin operation in OAuthApi.
|
|
828
|
-
* @export
|
|
829
|
-
* @interface OAuthApiPasskeyLoginRequest
|
|
830
|
-
*/
|
|
831
|
-
export interface OAuthApiPasskeyLoginRequest {
|
|
832
|
-
/**
|
|
833
|
-
*
|
|
834
|
-
* @type {string}
|
|
835
|
-
* @memberof OAuthApiPasskeyLogin
|
|
836
|
-
*/
|
|
837
|
-
readonly orgId: string;
|
|
838
|
-
}
|
|
839
760
|
/**
|
|
840
761
|
* Request parameters for registerClient operation in OAuthApi.
|
|
841
762
|
* @export
|
|
@@ -945,19 +866,6 @@ export interface OAuthApiSubmitDeviceVerificationRequest {
|
|
|
945
866
|
*/
|
|
946
867
|
readonly orgId: string;
|
|
947
868
|
}
|
|
948
|
-
/**
|
|
949
|
-
* Request parameters for submitLogin operation in OAuthApi.
|
|
950
|
-
* @export
|
|
951
|
-
* @interface OAuthApiSubmitLoginRequest
|
|
952
|
-
*/
|
|
953
|
-
export interface OAuthApiSubmitLoginRequest {
|
|
954
|
-
/**
|
|
955
|
-
*
|
|
956
|
-
* @type {string}
|
|
957
|
-
* @memberof OAuthApiSubmitLogin
|
|
958
|
-
*/
|
|
959
|
-
readonly orgId: string;
|
|
960
|
-
}
|
|
961
869
|
/**
|
|
962
870
|
* Request parameters for submitLoginJson operation in OAuthApi.
|
|
963
871
|
* @export
|
|
@@ -1076,15 +984,6 @@ export declare class OAuthApi extends BaseAPI implements OAuthApiInterface {
|
|
|
1076
984
|
* @memberof OAuthApi
|
|
1077
985
|
*/
|
|
1078
986
|
par(requestParameters: OAuthApiParRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ParResponse, any, {}>>;
|
|
1079
|
-
/**
|
|
1080
|
-
* Placeholder: flashes an informational message and redirects to the hosted login page. Not a JSON API.
|
|
1081
|
-
* @summary Passkey login entry point
|
|
1082
|
-
* @param {OAuthApiPasskeyLoginRequest} requestParameters Request parameters.
|
|
1083
|
-
* @param {*} [options] Override http request option.
|
|
1084
|
-
* @throws {RequiredError}
|
|
1085
|
-
* @memberof OAuthApi
|
|
1086
|
-
*/
|
|
1087
|
-
passkeyLogin(requestParameters: OAuthApiPasskeyLoginRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
1088
987
|
/**
|
|
1089
988
|
* Registers an OAuth client from a JSON metadata document. Authenticated with an initial access token (Authorization: Bearer) or an API key holding admin:clients:register; open registration applies when the organization allows it.
|
|
1090
989
|
* @summary Dynamic client registration (RFC 7591 / OIDC DCR)
|
|
@@ -1148,15 +1047,6 @@ export declare class OAuthApi extends BaseAPI implements OAuthApiInterface {
|
|
|
1148
1047
|
* @memberof OAuthApi
|
|
1149
1048
|
*/
|
|
1150
1049
|
submitDeviceVerification(requestParameters: OAuthApiSubmitDeviceVerificationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any, {}>>;
|
|
1151
|
-
/**
|
|
1152
|
-
* Receives the hosted OAuth login page\'s form (email, password, csrf token and the authorization request parameters). Every outcome — success, invalid credentials, locked account, captcha or CSRF failure — answers with the same redirect back to /oauth/authorize, which re-renders the login page or continues the flow. Not a JSON API.
|
|
1153
|
-
* @summary Hosted login form submission
|
|
1154
|
-
* @param {OAuthApiSubmitLoginRequest} requestParameters Request parameters.
|
|
1155
|
-
* @param {*} [options] Override http request option.
|
|
1156
|
-
* @throws {RequiredError}
|
|
1157
|
-
* @memberof OAuthApi
|
|
1158
|
-
*/
|
|
1159
|
-
submitLogin(requestParameters: OAuthApiSubmitLoginRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
1160
1050
|
/**
|
|
1161
1051
|
* Establishes the end-user browser session from JSON credentials so a following /oauth/authorize request issues a code without showing the hosted login page. Deliberately mints no tokens. Only accepted from trusted origins.
|
|
1162
1052
|
* @summary Programmatic (JSON) login for the authorization flow
|
|
@@ -285,35 +285,6 @@ export const OAuthApiAxiosParamCreator = function (configuration) {
|
|
|
285
285
|
options: localVarRequestOptions,
|
|
286
286
|
};
|
|
287
287
|
}),
|
|
288
|
-
/**
|
|
289
|
-
* Placeholder: flashes an informational message and redirects to the hosted login page. Not a JSON API.
|
|
290
|
-
* @summary Passkey login entry point
|
|
291
|
-
* @param {string} orgId
|
|
292
|
-
* @param {*} [options] Override http request option.
|
|
293
|
-
* @throws {RequiredError}
|
|
294
|
-
*/
|
|
295
|
-
passkeyLogin: (orgId_1, ...args_1) => __awaiter(this, [orgId_1, ...args_1], void 0, function* (orgId, options = {}) {
|
|
296
|
-
// verify required parameter 'orgId' is not null or undefined
|
|
297
|
-
assertParamExists('passkeyLogin', 'orgId', orgId);
|
|
298
|
-
const localVarPath = `/orgs/{orgId}/api/v1/oauth/passkey-login`
|
|
299
|
-
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
|
|
300
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
301
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
302
|
-
let baseOptions;
|
|
303
|
-
if (configuration) {
|
|
304
|
-
baseOptions = configuration.baseOptions;
|
|
305
|
-
}
|
|
306
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
307
|
-
const localVarHeaderParameter = {};
|
|
308
|
-
const localVarQueryParameter = {};
|
|
309
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
310
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
311
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
312
|
-
return {
|
|
313
|
-
url: toPathString(localVarUrlObj),
|
|
314
|
-
options: localVarRequestOptions,
|
|
315
|
-
};
|
|
316
|
-
}),
|
|
317
288
|
/**
|
|
318
289
|
* Registers an OAuth client from a JSON metadata document. Authenticated with an initial access token (Authorization: Bearer) or an API key holding admin:clients:register; open registration applies when the organization allows it.
|
|
319
290
|
* @summary Dynamic client registration (RFC 7591 / OIDC DCR)
|
|
@@ -537,35 +508,6 @@ export const OAuthApiAxiosParamCreator = function (configuration) {
|
|
|
537
508
|
options: localVarRequestOptions,
|
|
538
509
|
};
|
|
539
510
|
}),
|
|
540
|
-
/**
|
|
541
|
-
* Receives the hosted OAuth login page\'s form (email, password, csrf token and the authorization request parameters). Every outcome — success, invalid credentials, locked account, captcha or CSRF failure — answers with the same redirect back to /oauth/authorize, which re-renders the login page or continues the flow. Not a JSON API.
|
|
542
|
-
* @summary Hosted login form submission
|
|
543
|
-
* @param {string} orgId
|
|
544
|
-
* @param {*} [options] Override http request option.
|
|
545
|
-
* @throws {RequiredError}
|
|
546
|
-
*/
|
|
547
|
-
submitLogin: (orgId_1, ...args_1) => __awaiter(this, [orgId_1, ...args_1], void 0, function* (orgId, options = {}) {
|
|
548
|
-
// verify required parameter 'orgId' is not null or undefined
|
|
549
|
-
assertParamExists('submitLogin', 'orgId', orgId);
|
|
550
|
-
const localVarPath = `/orgs/{orgId}/api/v1/oauth/login/submit`
|
|
551
|
-
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
|
|
552
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
553
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
554
|
-
let baseOptions;
|
|
555
|
-
if (configuration) {
|
|
556
|
-
baseOptions = configuration.baseOptions;
|
|
557
|
-
}
|
|
558
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
559
|
-
const localVarHeaderParameter = {};
|
|
560
|
-
const localVarQueryParameter = {};
|
|
561
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
562
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
563
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
564
|
-
return {
|
|
565
|
-
url: toPathString(localVarUrlObj),
|
|
566
|
-
options: localVarRequestOptions,
|
|
567
|
-
};
|
|
568
|
-
}),
|
|
569
511
|
/**
|
|
570
512
|
* Establishes the end-user browser session from JSON credentials so a following /oauth/authorize request issues a code without showing the hosted login page. Deliberately mints no tokens. Only accepted from trusted origins.
|
|
571
513
|
* @summary Programmatic (JSON) login for the authorization flow
|
|
@@ -794,22 +736,6 @@ export const OAuthApiFp = function (configuration) {
|
|
|
794
736
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
795
737
|
});
|
|
796
738
|
},
|
|
797
|
-
/**
|
|
798
|
-
* Placeholder: flashes an informational message and redirects to the hosted login page. Not a JSON API.
|
|
799
|
-
* @summary Passkey login entry point
|
|
800
|
-
* @param {string} orgId
|
|
801
|
-
* @param {*} [options] Override http request option.
|
|
802
|
-
* @throws {RequiredError}
|
|
803
|
-
*/
|
|
804
|
-
passkeyLogin(orgId, options) {
|
|
805
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
806
|
-
var _a, _b, _c;
|
|
807
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.passkeyLogin(orgId, options);
|
|
808
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
809
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OAuthApi.passkeyLogin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
810
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
811
|
-
});
|
|
812
|
-
},
|
|
813
739
|
/**
|
|
814
740
|
* Registers an OAuth client from a JSON metadata document. Authenticated with an initial access token (Authorization: Bearer) or an API key holding admin:clients:register; open registration applies when the organization allows it.
|
|
815
741
|
* @summary Dynamic client registration (RFC 7591 / OIDC DCR)
|
|
@@ -925,22 +851,6 @@ export const OAuthApiFp = function (configuration) {
|
|
|
925
851
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
926
852
|
});
|
|
927
853
|
},
|
|
928
|
-
/**
|
|
929
|
-
* Receives the hosted OAuth login page\'s form (email, password, csrf token and the authorization request parameters). Every outcome — success, invalid credentials, locked account, captcha or CSRF failure — answers with the same redirect back to /oauth/authorize, which re-renders the login page or continues the flow. Not a JSON API.
|
|
930
|
-
* @summary Hosted login form submission
|
|
931
|
-
* @param {string} orgId
|
|
932
|
-
* @param {*} [options] Override http request option.
|
|
933
|
-
* @throws {RequiredError}
|
|
934
|
-
*/
|
|
935
|
-
submitLogin(orgId, options) {
|
|
936
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
937
|
-
var _a, _b, _c;
|
|
938
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.submitLogin(orgId, options);
|
|
939
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
940
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OAuthApi.submitLogin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
941
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
942
|
-
});
|
|
943
|
-
},
|
|
944
854
|
/**
|
|
945
855
|
* Establishes the end-user browser session from JSON credentials so a following /oauth/authorize request issues a code without showing the hosted login page. Deliberately mints no tokens. Only accepted from trusted origins.
|
|
946
856
|
* @summary Programmatic (JSON) login for the authorization flow
|
|
@@ -1078,16 +988,6 @@ export const OAuthApiFactory = function (configuration, basePath, axios) {
|
|
|
1078
988
|
par(requestParameters, options) {
|
|
1079
989
|
return localVarFp.par(requestParameters.orgId, options).then((request) => request(axios, basePath));
|
|
1080
990
|
},
|
|
1081
|
-
/**
|
|
1082
|
-
* Placeholder: flashes an informational message and redirects to the hosted login page. Not a JSON API.
|
|
1083
|
-
* @summary Passkey login entry point
|
|
1084
|
-
* @param {OAuthApiPasskeyLoginRequest} requestParameters Request parameters.
|
|
1085
|
-
* @param {*} [options] Override http request option.
|
|
1086
|
-
* @throws {RequiredError}
|
|
1087
|
-
*/
|
|
1088
|
-
passkeyLogin(requestParameters, options) {
|
|
1089
|
-
return localVarFp.passkeyLogin(requestParameters.orgId, options).then((request) => request(axios, basePath));
|
|
1090
|
-
},
|
|
1091
991
|
/**
|
|
1092
992
|
* Registers an OAuth client from a JSON metadata document. Authenticated with an initial access token (Authorization: Bearer) or an API key holding admin:clients:register; open registration applies when the organization allows it.
|
|
1093
993
|
* @summary Dynamic client registration (RFC 7591 / OIDC DCR)
|
|
@@ -1158,16 +1058,6 @@ export const OAuthApiFactory = function (configuration, basePath, axios) {
|
|
|
1158
1058
|
submitDeviceVerification(requestParameters, options) {
|
|
1159
1059
|
return localVarFp.submitDeviceVerification(requestParameters.orgId, options).then((request) => request(axios, basePath));
|
|
1160
1060
|
},
|
|
1161
|
-
/**
|
|
1162
|
-
* Receives the hosted OAuth login page\'s form (email, password, csrf token and the authorization request parameters). Every outcome — success, invalid credentials, locked account, captcha or CSRF failure — answers with the same redirect back to /oauth/authorize, which re-renders the login page or continues the flow. Not a JSON API.
|
|
1163
|
-
* @summary Hosted login form submission
|
|
1164
|
-
* @param {OAuthApiSubmitLoginRequest} requestParameters Request parameters.
|
|
1165
|
-
* @param {*} [options] Override http request option.
|
|
1166
|
-
* @throws {RequiredError}
|
|
1167
|
-
*/
|
|
1168
|
-
submitLogin(requestParameters, options) {
|
|
1169
|
-
return localVarFp.submitLogin(requestParameters.orgId, options).then((request) => request(axios, basePath));
|
|
1170
|
-
},
|
|
1171
1061
|
/**
|
|
1172
1062
|
* Establishes the end-user browser session from JSON credentials so a following /oauth/authorize request issues a code without showing the hosted login page. Deliberately mints no tokens. Only accepted from trusted origins.
|
|
1173
1063
|
* @summary Programmatic (JSON) login for the authorization flow
|
|
@@ -1295,17 +1185,6 @@ export class OAuthApi extends BaseAPI {
|
|
|
1295
1185
|
par(requestParameters, options) {
|
|
1296
1186
|
return OAuthApiFp(this.configuration).par(requestParameters.orgId, options).then((request) => request(this.axios, this.basePath));
|
|
1297
1187
|
}
|
|
1298
|
-
/**
|
|
1299
|
-
* Placeholder: flashes an informational message and redirects to the hosted login page. Not a JSON API.
|
|
1300
|
-
* @summary Passkey login entry point
|
|
1301
|
-
* @param {OAuthApiPasskeyLoginRequest} requestParameters Request parameters.
|
|
1302
|
-
* @param {*} [options] Override http request option.
|
|
1303
|
-
* @throws {RequiredError}
|
|
1304
|
-
* @memberof OAuthApi
|
|
1305
|
-
*/
|
|
1306
|
-
passkeyLogin(requestParameters, options) {
|
|
1307
|
-
return OAuthApiFp(this.configuration).passkeyLogin(requestParameters.orgId, options).then((request) => request(this.axios, this.basePath));
|
|
1308
|
-
}
|
|
1309
1188
|
/**
|
|
1310
1189
|
* Registers an OAuth client from a JSON metadata document. Authenticated with an initial access token (Authorization: Bearer) or an API key holding admin:clients:register; open registration applies when the organization allows it.
|
|
1311
1190
|
* @summary Dynamic client registration (RFC 7591 / OIDC DCR)
|
|
@@ -1383,17 +1262,6 @@ export class OAuthApi extends BaseAPI {
|
|
|
1383
1262
|
submitDeviceVerification(requestParameters, options) {
|
|
1384
1263
|
return OAuthApiFp(this.configuration).submitDeviceVerification(requestParameters.orgId, options).then((request) => request(this.axios, this.basePath));
|
|
1385
1264
|
}
|
|
1386
|
-
/**
|
|
1387
|
-
* Receives the hosted OAuth login page\'s form (email, password, csrf token and the authorization request parameters). Every outcome — success, invalid credentials, locked account, captcha or CSRF failure — answers with the same redirect back to /oauth/authorize, which re-renders the login page or continues the flow. Not a JSON API.
|
|
1388
|
-
* @summary Hosted login form submission
|
|
1389
|
-
* @param {OAuthApiSubmitLoginRequest} requestParameters Request parameters.
|
|
1390
|
-
* @param {*} [options] Override http request option.
|
|
1391
|
-
* @throws {RequiredError}
|
|
1392
|
-
* @memberof OAuthApi
|
|
1393
|
-
*/
|
|
1394
|
-
submitLogin(requestParameters, options) {
|
|
1395
|
-
return OAuthApiFp(this.configuration).submitLogin(requestParameters.orgId, options).then((request) => request(this.axios, this.basePath));
|
|
1396
|
-
}
|
|
1397
1265
|
/**
|
|
1398
1266
|
* Establishes the end-user browser session from JSON credentials so a following /oauth/authorize request issues a code without showing the hosted login page. Deliberately mints no tokens. Only accepted from trusted origins.
|
|
1399
1267
|
* @summary Programmatic (JSON) login for the authorization flow
|