@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
package/dist/api/agents-api.d.ts
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import type { Configuration } from '../configuration';
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import type { AdminAgentsReportUsageRequest } from '../models';
|
|
15
16
|
import type { AskRequest } from '../models';
|
|
16
17
|
import type { AskResponse } from '../models';
|
|
17
18
|
import type { AttestRequest } from '../models';
|
|
@@ -23,6 +24,7 @@ import type { CreateApprovalResponse } from '../models';
|
|
|
23
24
|
import type { GetApprovalStatusResponse } from '../models';
|
|
24
25
|
import type { GetCurrentAgentResponse } from '../models';
|
|
25
26
|
import type { RegisterAgentResponse } from '../models';
|
|
27
|
+
import type { ReportAgentUsageResponse } from '../models';
|
|
26
28
|
import type { SignedAgentCard } from '../models';
|
|
27
29
|
import type { VerifyAgentCardResponse } from '../models';
|
|
28
30
|
/**
|
|
@@ -99,6 +101,15 @@ export declare const AgentsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
99
101
|
* @throws {RequiredError}
|
|
100
102
|
*/
|
|
101
103
|
registerAgent: (orgId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
104
|
+
/**
|
|
105
|
+
* Adds the reported tokens and cost to the agent\'s budget windows (current UTC hour, day and month). LumoAuth does not see model calls, so token and cost limits apply only to usage that is reported here or through the Admin API. The report adds no API call and is accepted even when the budget is spent. Agent credentials only; portal test tokens are refused. Rate limited per agent.
|
|
106
|
+
* @summary Report the model tokens and cost that the agent used
|
|
107
|
+
* @param {string} orgId
|
|
108
|
+
* @param {AdminAgentsReportUsageRequest} adminAgentsReportUsageRequest
|
|
109
|
+
* @param {*} [options] Override http request option.
|
|
110
|
+
* @throws {RequiredError}
|
|
111
|
+
*/
|
|
112
|
+
reportAgentUsage: (orgId: string, adminAgentsReportUsageRequest: AdminAgentsReportUsageRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
102
113
|
/**
|
|
103
114
|
* Authenticated (user, agent or API key of this organization). The body is the signed card itself, or {\"card\": {...}, \"jwks_uri\": \"https://...\"} to verify against an external issuer\'s key set (SSRF-guarded); by default the organization\'s own JWKS is used.
|
|
104
115
|
* @summary Verify a signed A2A agent card
|
|
@@ -185,6 +196,15 @@ export declare const AgentsApiFp: (configuration?: Configuration) => {
|
|
|
185
196
|
* @throws {RequiredError}
|
|
186
197
|
*/
|
|
187
198
|
registerAgent(orgId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegisterAgentResponse>>;
|
|
199
|
+
/**
|
|
200
|
+
* Adds the reported tokens and cost to the agent\'s budget windows (current UTC hour, day and month). LumoAuth does not see model calls, so token and cost limits apply only to usage that is reported here or through the Admin API. The report adds no API call and is accepted even when the budget is spent. Agent credentials only; portal test tokens are refused. Rate limited per agent.
|
|
201
|
+
* @summary Report the model tokens and cost that the agent used
|
|
202
|
+
* @param {string} orgId
|
|
203
|
+
* @param {AdminAgentsReportUsageRequest} adminAgentsReportUsageRequest
|
|
204
|
+
* @param {*} [options] Override http request option.
|
|
205
|
+
* @throws {RequiredError}
|
|
206
|
+
*/
|
|
207
|
+
reportAgentUsage(orgId: string, adminAgentsReportUsageRequest: AdminAgentsReportUsageRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReportAgentUsageResponse>>;
|
|
188
208
|
/**
|
|
189
209
|
* Authenticated (user, agent or API key of this organization). The body is the signed card itself, or {\"card\": {...}, \"jwks_uri\": \"https://...\"} to verify against an external issuer\'s key set (SSRF-guarded); by default the organization\'s own JWKS is used.
|
|
190
210
|
* @summary Verify a signed A2A agent card
|
|
@@ -264,6 +284,14 @@ export declare const AgentsApiFactory: (configuration?: Configuration, basePath?
|
|
|
264
284
|
* @throws {RequiredError}
|
|
265
285
|
*/
|
|
266
286
|
registerAgent(requestParameters: AgentsApiRegisterAgentRequest, options?: RawAxiosRequestConfig): AxiosPromise<RegisterAgentResponse>;
|
|
287
|
+
/**
|
|
288
|
+
* Adds the reported tokens and cost to the agent\'s budget windows (current UTC hour, day and month). LumoAuth does not see model calls, so token and cost limits apply only to usage that is reported here or through the Admin API. The report adds no API call and is accepted even when the budget is spent. Agent credentials only; portal test tokens are refused. Rate limited per agent.
|
|
289
|
+
* @summary Report the model tokens and cost that the agent used
|
|
290
|
+
* @param {AgentsApiReportAgentUsageRequest} requestParameters Request parameters.
|
|
291
|
+
* @param {*} [options] Override http request option.
|
|
292
|
+
* @throws {RequiredError}
|
|
293
|
+
*/
|
|
294
|
+
reportAgentUsage(requestParameters: AgentsApiReportAgentUsageRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReportAgentUsageResponse>;
|
|
267
295
|
/**
|
|
268
296
|
* Authenticated (user, agent or API key of this organization). The body is the signed card itself, or {\"card\": {...}, \"jwks_uri\": \"https://...\"} to verify against an external issuer\'s key set (SSRF-guarded); by default the organization\'s own JWKS is used.
|
|
269
297
|
* @summary Verify a signed A2A agent card
|
|
@@ -349,6 +377,15 @@ export interface AgentsApiInterface {
|
|
|
349
377
|
* @memberof AgentsApiInterface
|
|
350
378
|
*/
|
|
351
379
|
registerAgent(requestParameters: AgentsApiRegisterAgentRequest, options?: RawAxiosRequestConfig): AxiosPromise<RegisterAgentResponse>;
|
|
380
|
+
/**
|
|
381
|
+
* Adds the reported tokens and cost to the agent\'s budget windows (current UTC hour, day and month). LumoAuth does not see model calls, so token and cost limits apply only to usage that is reported here or through the Admin API. The report adds no API call and is accepted even when the budget is spent. Agent credentials only; portal test tokens are refused. Rate limited per agent.
|
|
382
|
+
* @summary Report the model tokens and cost that the agent used
|
|
383
|
+
* @param {AgentsApiReportAgentUsageRequest} requestParameters Request parameters.
|
|
384
|
+
* @param {*} [options] Override http request option.
|
|
385
|
+
* @throws {RequiredError}
|
|
386
|
+
* @memberof AgentsApiInterface
|
|
387
|
+
*/
|
|
388
|
+
reportAgentUsage(requestParameters: AgentsApiReportAgentUsageRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReportAgentUsageResponse>;
|
|
352
389
|
/**
|
|
353
390
|
* Authenticated (user, agent or API key of this organization). The body is the signed card itself, or {\"card\": {...}, \"jwks_uri\": \"https://...\"} to verify against an external issuer\'s key set (SSRF-guarded); by default the organization\'s own JWKS is used.
|
|
354
391
|
* @summary Verify a signed A2A agent card
|
|
@@ -505,6 +542,25 @@ export interface AgentsApiRegisterAgentRequest {
|
|
|
505
542
|
*/
|
|
506
543
|
readonly orgId: string;
|
|
507
544
|
}
|
|
545
|
+
/**
|
|
546
|
+
* Request parameters for reportAgentUsage operation in AgentsApi.
|
|
547
|
+
* @export
|
|
548
|
+
* @interface AgentsApiReportAgentUsageRequest
|
|
549
|
+
*/
|
|
550
|
+
export interface AgentsApiReportAgentUsageRequest {
|
|
551
|
+
/**
|
|
552
|
+
*
|
|
553
|
+
* @type {string}
|
|
554
|
+
* @memberof AgentsApiReportAgentUsage
|
|
555
|
+
*/
|
|
556
|
+
readonly orgId: string;
|
|
557
|
+
/**
|
|
558
|
+
*
|
|
559
|
+
* @type {AdminAgentsReportUsageRequest}
|
|
560
|
+
* @memberof AgentsApiReportAgentUsage
|
|
561
|
+
*/
|
|
562
|
+
readonly adminAgentsReportUsageRequest: AdminAgentsReportUsageRequest;
|
|
563
|
+
}
|
|
508
564
|
/**
|
|
509
565
|
* Request parameters for verifyAgentCard operation in AgentsApi.
|
|
510
566
|
* @export
|
|
@@ -603,6 +659,15 @@ export declare class AgentsApi extends BaseAPI implements AgentsApiInterface {
|
|
|
603
659
|
* @memberof AgentsApi
|
|
604
660
|
*/
|
|
605
661
|
registerAgent(requestParameters: AgentsApiRegisterAgentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RegisterAgentResponse, any, {}>>;
|
|
662
|
+
/**
|
|
663
|
+
* Adds the reported tokens and cost to the agent\'s budget windows (current UTC hour, day and month). LumoAuth does not see model calls, so token and cost limits apply only to usage that is reported here or through the Admin API. The report adds no API call and is accepted even when the budget is spent. Agent credentials only; portal test tokens are refused. Rate limited per agent.
|
|
664
|
+
* @summary Report the model tokens and cost that the agent used
|
|
665
|
+
* @param {AgentsApiReportAgentUsageRequest} requestParameters Request parameters.
|
|
666
|
+
* @param {*} [options] Override http request option.
|
|
667
|
+
* @throws {RequiredError}
|
|
668
|
+
* @memberof AgentsApi
|
|
669
|
+
*/
|
|
670
|
+
reportAgentUsage(requestParameters: AgentsApiReportAgentUsageRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReportAgentUsageResponse, any, {}>>;
|
|
606
671
|
/**
|
|
607
672
|
* Authenticated (user, agent or API key of this organization). The body is the signed card itself, or {\"card\": {...}, \"jwks_uri\": \"https://...\"} to verify against an external issuer\'s key set (SSRF-guarded); by default the organization\'s own JWKS is used.
|
|
608
673
|
* @summary Verify a signed A2A agent card
|
package/dist/api/agents-api.js
CHANGED
|
@@ -332,6 +332,45 @@ const AgentsApiAxiosParamCreator = function (configuration) {
|
|
|
332
332
|
options: localVarRequestOptions,
|
|
333
333
|
};
|
|
334
334
|
}),
|
|
335
|
+
/**
|
|
336
|
+
* Adds the reported tokens and cost to the agent\'s budget windows (current UTC hour, day and month). LumoAuth does not see model calls, so token and cost limits apply only to usage that is reported here or through the Admin API. The report adds no API call and is accepted even when the budget is spent. Agent credentials only; portal test tokens are refused. Rate limited per agent.
|
|
337
|
+
* @summary Report the model tokens and cost that the agent used
|
|
338
|
+
* @param {string} orgId
|
|
339
|
+
* @param {AdminAgentsReportUsageRequest} adminAgentsReportUsageRequest
|
|
340
|
+
* @param {*} [options] Override http request option.
|
|
341
|
+
* @throws {RequiredError}
|
|
342
|
+
*/
|
|
343
|
+
reportAgentUsage: (orgId_1, adminAgentsReportUsageRequest_1, ...args_1) => __awaiter(this, [orgId_1, adminAgentsReportUsageRequest_1, ...args_1], void 0, function* (orgId, adminAgentsReportUsageRequest, options = {}) {
|
|
344
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
345
|
+
(0, common_1.assertParamExists)('reportAgentUsage', 'orgId', orgId);
|
|
346
|
+
// verify required parameter 'adminAgentsReportUsageRequest' is not null or undefined
|
|
347
|
+
(0, common_1.assertParamExists)('reportAgentUsage', 'adminAgentsReportUsageRequest', adminAgentsReportUsageRequest);
|
|
348
|
+
const localVarPath = `/orgs/{orgId}/api/v1/agents/me/usage`
|
|
349
|
+
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
|
|
350
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
351
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
352
|
+
let baseOptions;
|
|
353
|
+
if (configuration) {
|
|
354
|
+
baseOptions = configuration.baseOptions;
|
|
355
|
+
}
|
|
356
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
357
|
+
const localVarHeaderParameter = {};
|
|
358
|
+
const localVarQueryParameter = {};
|
|
359
|
+
// authentication ApiKeyAuth required
|
|
360
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-API-Key", configuration);
|
|
361
|
+
// authentication BearerAuth required
|
|
362
|
+
// http bearer authentication required
|
|
363
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
364
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
365
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
366
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
367
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
368
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminAgentsReportUsageRequest, localVarRequestOptions, configuration);
|
|
369
|
+
return {
|
|
370
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
371
|
+
options: localVarRequestOptions,
|
|
372
|
+
};
|
|
373
|
+
}),
|
|
335
374
|
/**
|
|
336
375
|
* Authenticated (user, agent or API key of this organization). The body is the signed card itself, or {\"card\": {...}, \"jwks_uri\": \"https://...\"} to verify against an external issuer\'s key set (SSRF-guarded); by default the organization\'s own JWKS is used.
|
|
337
376
|
* @summary Verify a signed A2A agent card
|
|
@@ -514,6 +553,23 @@ const AgentsApiFp = function (configuration) {
|
|
|
514
553
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
515
554
|
});
|
|
516
555
|
},
|
|
556
|
+
/**
|
|
557
|
+
* Adds the reported tokens and cost to the agent\'s budget windows (current UTC hour, day and month). LumoAuth does not see model calls, so token and cost limits apply only to usage that is reported here or through the Admin API. The report adds no API call and is accepted even when the budget is spent. Agent credentials only; portal test tokens are refused. Rate limited per agent.
|
|
558
|
+
* @summary Report the model tokens and cost that the agent used
|
|
559
|
+
* @param {string} orgId
|
|
560
|
+
* @param {AdminAgentsReportUsageRequest} adminAgentsReportUsageRequest
|
|
561
|
+
* @param {*} [options] Override http request option.
|
|
562
|
+
* @throws {RequiredError}
|
|
563
|
+
*/
|
|
564
|
+
reportAgentUsage(orgId, adminAgentsReportUsageRequest, options) {
|
|
565
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
566
|
+
var _a, _b, _c;
|
|
567
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.reportAgentUsage(orgId, adminAgentsReportUsageRequest, options);
|
|
568
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
569
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AgentsApi.reportAgentUsage']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
570
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
571
|
+
});
|
|
572
|
+
},
|
|
517
573
|
/**
|
|
518
574
|
* Authenticated (user, agent or API key of this organization). The body is the signed card itself, or {\"card\": {...}, \"jwks_uri\": \"https://...\"} to verify against an external issuer\'s key set (SSRF-guarded); by default the organization\'s own JWKS is used.
|
|
519
575
|
* @summary Verify a signed A2A agent card
|
|
@@ -619,6 +675,16 @@ const AgentsApiFactory = function (configuration, basePath, axios) {
|
|
|
619
675
|
registerAgent(requestParameters, options) {
|
|
620
676
|
return localVarFp.registerAgent(requestParameters.orgId, options).then((request) => request(axios, basePath));
|
|
621
677
|
},
|
|
678
|
+
/**
|
|
679
|
+
* Adds the reported tokens and cost to the agent\'s budget windows (current UTC hour, day and month). LumoAuth does not see model calls, so token and cost limits apply only to usage that is reported here or through the Admin API. The report adds no API call and is accepted even when the budget is spent. Agent credentials only; portal test tokens are refused. Rate limited per agent.
|
|
680
|
+
* @summary Report the model tokens and cost that the agent used
|
|
681
|
+
* @param {AgentsApiReportAgentUsageRequest} requestParameters Request parameters.
|
|
682
|
+
* @param {*} [options] Override http request option.
|
|
683
|
+
* @throws {RequiredError}
|
|
684
|
+
*/
|
|
685
|
+
reportAgentUsage(requestParameters, options) {
|
|
686
|
+
return localVarFp.reportAgentUsage(requestParameters.orgId, requestParameters.adminAgentsReportUsageRequest, options).then((request) => request(axios, basePath));
|
|
687
|
+
},
|
|
622
688
|
/**
|
|
623
689
|
* Authenticated (user, agent or API key of this organization). The body is the signed card itself, or {\"card\": {...}, \"jwks_uri\": \"https://...\"} to verify against an external issuer\'s key set (SSRF-guarded); by default the organization\'s own JWKS is used.
|
|
624
690
|
* @summary Verify a signed A2A agent card
|
|
@@ -725,6 +791,17 @@ class AgentsApi extends base_1.BaseAPI {
|
|
|
725
791
|
registerAgent(requestParameters, options) {
|
|
726
792
|
return (0, exports.AgentsApiFp)(this.configuration).registerAgent(requestParameters.orgId, options).then((request) => request(this.axios, this.basePath));
|
|
727
793
|
}
|
|
794
|
+
/**
|
|
795
|
+
* Adds the reported tokens and cost to the agent\'s budget windows (current UTC hour, day and month). LumoAuth does not see model calls, so token and cost limits apply only to usage that is reported here or through the Admin API. The report adds no API call and is accepted even when the budget is spent. Agent credentials only; portal test tokens are refused. Rate limited per agent.
|
|
796
|
+
* @summary Report the model tokens and cost that the agent used
|
|
797
|
+
* @param {AgentsApiReportAgentUsageRequest} requestParameters Request parameters.
|
|
798
|
+
* @param {*} [options] Override http request option.
|
|
799
|
+
* @throws {RequiredError}
|
|
800
|
+
* @memberof AgentsApi
|
|
801
|
+
*/
|
|
802
|
+
reportAgentUsage(requestParameters, options) {
|
|
803
|
+
return (0, exports.AgentsApiFp)(this.configuration).reportAgentUsage(requestParameters.orgId, requestParameters.adminAgentsReportUsageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
804
|
+
}
|
|
728
805
|
/**
|
|
729
806
|
* Authenticated (user, agent or API key of this organization). The body is the signed card itself, or {\"card\": {...}, \"jwks_uri\": \"https://...\"} to verify against an external issuer\'s key set (SSRF-guarded); by default the organization\'s own JWKS is used.
|
|
730
807
|
* @summary Verify a signed A2A agent card
|
package/dist/api/oauth-api.d.ts
CHANGED
|
@@ -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
|
package/dist/api/oauth-api.js
CHANGED
|
@@ -288,35 +288,6 @@ const OAuthApiAxiosParamCreator = function (configuration) {
|
|
|
288
288
|
options: localVarRequestOptions,
|
|
289
289
|
};
|
|
290
290
|
}),
|
|
291
|
-
/**
|
|
292
|
-
* Placeholder: flashes an informational message and redirects to the hosted login page. Not a JSON API.
|
|
293
|
-
* @summary Passkey login entry point
|
|
294
|
-
* @param {string} orgId
|
|
295
|
-
* @param {*} [options] Override http request option.
|
|
296
|
-
* @throws {RequiredError}
|
|
297
|
-
*/
|
|
298
|
-
passkeyLogin: (orgId_1, ...args_1) => __awaiter(this, [orgId_1, ...args_1], void 0, function* (orgId, options = {}) {
|
|
299
|
-
// verify required parameter 'orgId' is not null or undefined
|
|
300
|
-
(0, common_1.assertParamExists)('passkeyLogin', 'orgId', orgId);
|
|
301
|
-
const localVarPath = `/orgs/{orgId}/api/v1/oauth/passkey-login`
|
|
302
|
-
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
|
|
303
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
304
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
305
|
-
let baseOptions;
|
|
306
|
-
if (configuration) {
|
|
307
|
-
baseOptions = configuration.baseOptions;
|
|
308
|
-
}
|
|
309
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
310
|
-
const localVarHeaderParameter = {};
|
|
311
|
-
const localVarQueryParameter = {};
|
|
312
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
313
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
314
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
315
|
-
return {
|
|
316
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
317
|
-
options: localVarRequestOptions,
|
|
318
|
-
};
|
|
319
|
-
}),
|
|
320
291
|
/**
|
|
321
292
|
* 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.
|
|
322
293
|
* @summary Dynamic client registration (RFC 7591 / OIDC DCR)
|
|
@@ -540,35 +511,6 @@ const OAuthApiAxiosParamCreator = function (configuration) {
|
|
|
540
511
|
options: localVarRequestOptions,
|
|
541
512
|
};
|
|
542
513
|
}),
|
|
543
|
-
/**
|
|
544
|
-
* 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.
|
|
545
|
-
* @summary Hosted login form submission
|
|
546
|
-
* @param {string} orgId
|
|
547
|
-
* @param {*} [options] Override http request option.
|
|
548
|
-
* @throws {RequiredError}
|
|
549
|
-
*/
|
|
550
|
-
submitLogin: (orgId_1, ...args_1) => __awaiter(this, [orgId_1, ...args_1], void 0, function* (orgId, options = {}) {
|
|
551
|
-
// verify required parameter 'orgId' is not null or undefined
|
|
552
|
-
(0, common_1.assertParamExists)('submitLogin', 'orgId', orgId);
|
|
553
|
-
const localVarPath = `/orgs/{orgId}/api/v1/oauth/login/submit`
|
|
554
|
-
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
|
|
555
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
556
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
557
|
-
let baseOptions;
|
|
558
|
-
if (configuration) {
|
|
559
|
-
baseOptions = configuration.baseOptions;
|
|
560
|
-
}
|
|
561
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
562
|
-
const localVarHeaderParameter = {};
|
|
563
|
-
const localVarQueryParameter = {};
|
|
564
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
565
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
566
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
567
|
-
return {
|
|
568
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
569
|
-
options: localVarRequestOptions,
|
|
570
|
-
};
|
|
571
|
-
}),
|
|
572
514
|
/**
|
|
573
515
|
* 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.
|
|
574
516
|
* @summary Programmatic (JSON) login for the authorization flow
|
|
@@ -798,22 +740,6 @@ const OAuthApiFp = function (configuration) {
|
|
|
798
740
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
799
741
|
});
|
|
800
742
|
},
|
|
801
|
-
/**
|
|
802
|
-
* Placeholder: flashes an informational message and redirects to the hosted login page. Not a JSON API.
|
|
803
|
-
* @summary Passkey login entry point
|
|
804
|
-
* @param {string} orgId
|
|
805
|
-
* @param {*} [options] Override http request option.
|
|
806
|
-
* @throws {RequiredError}
|
|
807
|
-
*/
|
|
808
|
-
passkeyLogin(orgId, options) {
|
|
809
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
810
|
-
var _a, _b, _c;
|
|
811
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.passkeyLogin(orgId, options);
|
|
812
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
813
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OAuthApi.passkeyLogin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
814
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
815
|
-
});
|
|
816
|
-
},
|
|
817
743
|
/**
|
|
818
744
|
* 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.
|
|
819
745
|
* @summary Dynamic client registration (RFC 7591 / OIDC DCR)
|
|
@@ -929,22 +855,6 @@ const OAuthApiFp = function (configuration) {
|
|
|
929
855
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
930
856
|
});
|
|
931
857
|
},
|
|
932
|
-
/**
|
|
933
|
-
* 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.
|
|
934
|
-
* @summary Hosted login form submission
|
|
935
|
-
* @param {string} orgId
|
|
936
|
-
* @param {*} [options] Override http request option.
|
|
937
|
-
* @throws {RequiredError}
|
|
938
|
-
*/
|
|
939
|
-
submitLogin(orgId, options) {
|
|
940
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
941
|
-
var _a, _b, _c;
|
|
942
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.submitLogin(orgId, options);
|
|
943
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
944
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OAuthApi.submitLogin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
945
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
946
|
-
});
|
|
947
|
-
},
|
|
948
858
|
/**
|
|
949
859
|
* 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.
|
|
950
860
|
* @summary Programmatic (JSON) login for the authorization flow
|
|
@@ -1083,16 +993,6 @@ const OAuthApiFactory = function (configuration, basePath, axios) {
|
|
|
1083
993
|
par(requestParameters, options) {
|
|
1084
994
|
return localVarFp.par(requestParameters.orgId, options).then((request) => request(axios, basePath));
|
|
1085
995
|
},
|
|
1086
|
-
/**
|
|
1087
|
-
* Placeholder: flashes an informational message and redirects to the hosted login page. Not a JSON API.
|
|
1088
|
-
* @summary Passkey login entry point
|
|
1089
|
-
* @param {OAuthApiPasskeyLoginRequest} requestParameters Request parameters.
|
|
1090
|
-
* @param {*} [options] Override http request option.
|
|
1091
|
-
* @throws {RequiredError}
|
|
1092
|
-
*/
|
|
1093
|
-
passkeyLogin(requestParameters, options) {
|
|
1094
|
-
return localVarFp.passkeyLogin(requestParameters.orgId, options).then((request) => request(axios, basePath));
|
|
1095
|
-
},
|
|
1096
996
|
/**
|
|
1097
997
|
* 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.
|
|
1098
998
|
* @summary Dynamic client registration (RFC 7591 / OIDC DCR)
|
|
@@ -1163,16 +1063,6 @@ const OAuthApiFactory = function (configuration, basePath, axios) {
|
|
|
1163
1063
|
submitDeviceVerification(requestParameters, options) {
|
|
1164
1064
|
return localVarFp.submitDeviceVerification(requestParameters.orgId, options).then((request) => request(axios, basePath));
|
|
1165
1065
|
},
|
|
1166
|
-
/**
|
|
1167
|
-
* 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.
|
|
1168
|
-
* @summary Hosted login form submission
|
|
1169
|
-
* @param {OAuthApiSubmitLoginRequest} requestParameters Request parameters.
|
|
1170
|
-
* @param {*} [options] Override http request option.
|
|
1171
|
-
* @throws {RequiredError}
|
|
1172
|
-
*/
|
|
1173
|
-
submitLogin(requestParameters, options) {
|
|
1174
|
-
return localVarFp.submitLogin(requestParameters.orgId, options).then((request) => request(axios, basePath));
|
|
1175
|
-
},
|
|
1176
1066
|
/**
|
|
1177
1067
|
* 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.
|
|
1178
1068
|
* @summary Programmatic (JSON) login for the authorization flow
|
|
@@ -1301,17 +1191,6 @@ class OAuthApi extends base_1.BaseAPI {
|
|
|
1301
1191
|
par(requestParameters, options) {
|
|
1302
1192
|
return (0, exports.OAuthApiFp)(this.configuration).par(requestParameters.orgId, options).then((request) => request(this.axios, this.basePath));
|
|
1303
1193
|
}
|
|
1304
|
-
/**
|
|
1305
|
-
* Placeholder: flashes an informational message and redirects to the hosted login page. Not a JSON API.
|
|
1306
|
-
* @summary Passkey login entry point
|
|
1307
|
-
* @param {OAuthApiPasskeyLoginRequest} requestParameters Request parameters.
|
|
1308
|
-
* @param {*} [options] Override http request option.
|
|
1309
|
-
* @throws {RequiredError}
|
|
1310
|
-
* @memberof OAuthApi
|
|
1311
|
-
*/
|
|
1312
|
-
passkeyLogin(requestParameters, options) {
|
|
1313
|
-
return (0, exports.OAuthApiFp)(this.configuration).passkeyLogin(requestParameters.orgId, options).then((request) => request(this.axios, this.basePath));
|
|
1314
|
-
}
|
|
1315
1194
|
/**
|
|
1316
1195
|
* 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.
|
|
1317
1196
|
* @summary Dynamic client registration (RFC 7591 / OIDC DCR)
|
|
@@ -1389,17 +1268,6 @@ class OAuthApi extends base_1.BaseAPI {
|
|
|
1389
1268
|
submitDeviceVerification(requestParameters, options) {
|
|
1390
1269
|
return (0, exports.OAuthApiFp)(this.configuration).submitDeviceVerification(requestParameters.orgId, options).then((request) => request(this.axios, this.basePath));
|
|
1391
1270
|
}
|
|
1392
|
-
/**
|
|
1393
|
-
* 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.
|
|
1394
|
-
* @summary Hosted login form submission
|
|
1395
|
-
* @param {OAuthApiSubmitLoginRequest} requestParameters Request parameters.
|
|
1396
|
-
* @param {*} [options] Override http request option.
|
|
1397
|
-
* @throws {RequiredError}
|
|
1398
|
-
* @memberof OAuthApi
|
|
1399
|
-
*/
|
|
1400
|
-
submitLogin(requestParameters, options) {
|
|
1401
|
-
return (0, exports.OAuthApiFp)(this.configuration).submitLogin(requestParameters.orgId, options).then((request) => request(this.axios, this.basePath));
|
|
1402
|
-
}
|
|
1403
1271
|
/**
|
|
1404
1272
|
* 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.
|
|
1405
1273
|
* @summary Programmatic (JSON) login for the authorization flow
|