@lumoauth/api-client 1.1.0 → 1.3.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 +16 -0
- package/README.md +14 -4
- package/api/aauth-api.ts +5 -5
- package/api/admin-email-api.ts +67 -15
- package/api/admin-mcp-api.ts +5 -5
- package/api/admin-oauth-clients-api.ts +370 -0
- package/api/agents-api.ts +5 -5
- package/api/mcp-api.ts +130 -0
- package/api/oauth-api.ts +0 -186
- package/api/well-known-api.ts +10 -10
- package/dist/api/aauth-api.d.ts +5 -5
- package/dist/api/aauth-api.js +4 -4
- package/dist/api/admin-email-api.d.ts +41 -9
- package/dist/api/admin-email-api.js +34 -14
- package/dist/api/admin-mcp-api.d.ts +5 -5
- package/dist/api/admin-mcp-api.js +4 -4
- package/dist/api/admin-oauth-clients-api.d.ts +210 -0
- package/dist/api/admin-oauth-clients-api.js +236 -0
- package/dist/api/agents-api.d.ts +5 -5
- package/dist/api/agents-api.js +4 -4
- package/dist/api/mcp-api.d.ts +73 -0
- package/dist/api/mcp-api.js +82 -0
- package/dist/api/oauth-api.d.ts +0 -110
- package/dist/api/oauth-api.js +0 -132
- package/dist/api/well-known-api.d.ts +10 -10
- package/dist/api/well-known-api.js +8 -8
- package/dist/esm/api/aauth-api.d.ts +5 -5
- package/dist/esm/api/aauth-api.js +4 -4
- 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-mcp-api.d.ts +5 -5
- package/dist/esm/api/admin-mcp-api.js +4 -4
- package/dist/esm/api/admin-oauth-clients-api.d.ts +210 -0
- package/dist/esm/api/admin-oauth-clients-api.js +236 -0
- package/dist/esm/api/agents-api.d.ts +5 -5
- package/dist/esm/api/agents-api.js +4 -4
- package/dist/esm/api/mcp-api.d.ts +73 -0
- package/dist/esm/api/mcp-api.js +83 -1
- package/dist/esm/api/oauth-api.d.ts +0 -110
- package/dist/esm/api/oauth-api.js +0 -132
- package/dist/esm/api/well-known-api.d.ts +10 -10
- package/dist/esm/api/well-known-api.js +8 -8
- package/dist/esm/models/admin-agents-generate-token-request.d.ts +7 -1
- package/dist/esm/models/admin-agents-generate-token-response-data.d.ts +12 -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/attest-response.d.ts +2 -1
- package/dist/esm/models/attest-response.js +1 -0
- package/dist/esm/models/authorization-server-metadata.d.ts +0 -6
- package/dist/esm/models/authorize-mcp-request.d.ts +1 -1
- package/dist/esm/models/get-protected-resource-metadata-root-response1-resources-item.d.ts +1 -1
- package/dist/esm/models/index.d.ts +8 -0
- package/dist/esm/models/index.js +8 -0
- package/dist/esm/models/mcp-server-tool-authorize-request-subject.d.ts +38 -0
- package/dist/esm/models/mcp-server-tool-authorize-request-subject.js +22 -0
- package/dist/esm/models/mcp-server-tool-authorize-request.d.ts +31 -0
- package/dist/esm/models/mcp-server-tool-authorize-request.js +14 -0
- package/dist/esm/models/mcp-server-tool-authorize-response.d.ts +36 -0
- package/dist/esm/models/mcp-server-tool-authorize-response.js +14 -0
- package/dist/esm/models/mcp-server.d.ts +18 -0
- package/dist/esm/models/open-id-configuration.d.ts +7 -7
- 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/protected-resource-metadata.d.ts +1 -1
- 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/single-server-metadata.d.ts +1 -1
- package/dist/models/admin-agents-generate-token-request.d.ts +7 -1
- package/dist/models/admin-agents-generate-token-response-data.d.ts +12 -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/attest-response.d.ts +2 -1
- package/dist/models/attest-response.js +1 -0
- package/dist/models/authorization-server-metadata.d.ts +0 -6
- package/dist/models/authorize-mcp-request.d.ts +1 -1
- package/dist/models/get-protected-resource-metadata-root-response1-resources-item.d.ts +1 -1
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/dist/models/mcp-server-tool-authorize-request-subject.d.ts +38 -0
- package/dist/models/mcp-server-tool-authorize-request-subject.js +25 -0
- package/dist/models/mcp-server-tool-authorize-request.d.ts +31 -0
- package/dist/models/mcp-server-tool-authorize-request.js +15 -0
- package/dist/models/mcp-server-tool-authorize-response.d.ts +36 -0
- package/dist/models/mcp-server-tool-authorize-response.js +15 -0
- package/dist/models/mcp-server.d.ts +18 -0
- package/dist/models/open-id-configuration.d.ts +7 -7
- 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/protected-resource-metadata.d.ts +1 -1
- 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/single-server-metadata.d.ts +1 -1
- package/docs/AAuthApi.md +1 -1
- package/docs/AdminAgentsApi.md +1 -1
- package/docs/AdminAgentsGenerateTokenRequest.md +3 -1
- package/docs/AdminAgentsGenerateTokenResponseData.md +4 -0
- package/docs/AdminClientsGetBrandingResponse.md +20 -0
- package/docs/AdminClientsGetBrandingResponseData.md +22 -0
- package/docs/AdminEmailApi.md +15 -2
- package/docs/AdminMcpApi.md +1 -1
- package/docs/AdminOAuthClientsApi.md +174 -0
- package/docs/AgentsApi.md +4 -3
- package/docs/AuthorizationServerMetadata.md +0 -2
- package/docs/AuthorizeMcpRequest.md +1 -1
- package/docs/GetProtectedResourceMetadataRoot200Response.md +1 -1
- package/docs/GetProtectedResourceMetadataRootResponse1ResourcesItem.md +1 -1
- package/docs/McpApi.md +64 -0
- package/docs/McpServer.md +6 -0
- package/docs/McpServerToolAuthorizeRequest.md +22 -0
- package/docs/McpServerToolAuthorizeRequestSubject.md +22 -0
- package/docs/McpServerToolAuthorizeResponse.md +24 -0
- package/docs/OAuthApi.md +0 -105
- package/docs/OpenIdConfiguration.md +3 -3
- package/docs/PatchAdminClientsUpdateBrandingResponse.md +22 -0
- package/docs/ProtectedResourceMetadata.md +1 -1
- package/docs/PutAdminClientsUpdateBrandingRequest.md +22 -0
- package/docs/PutAdminClientsUpdateBrandingResponse.md +22 -0
- package/docs/SingleServerMetadata.md +1 -1
- package/docs/WellKnownApi.md +2 -2
- package/models/admin-agents-generate-token-request.ts +7 -1
- package/models/admin-agents-generate-token-response-data.ts +12 -0
- package/models/admin-clients-get-branding-response-data.ts +36 -0
- package/models/admin-clients-get-branding-response.ts +33 -0
- package/models/attest-response.ts +2 -1
- package/models/authorization-server-metadata.ts +0 -6
- package/models/authorize-mcp-request.ts +1 -1
- package/models/get-protected-resource-metadata-root-response1-resources-item.ts +1 -1
- package/models/index.ts +8 -0
- package/models/mcp-server-tool-authorize-request-subject.ts +46 -0
- package/models/mcp-server-tool-authorize-request.ts +39 -0
- package/models/mcp-server-tool-authorize-response.ts +42 -0
- package/models/mcp-server.ts +18 -0
- package/models/open-id-configuration.ts +7 -7
- package/models/patch-admin-clients-update-branding-response.ts +36 -0
- package/models/protected-resource-metadata.ts +1 -1
- package/models/put-admin-clients-update-branding-request.ts +36 -0
- package/models/put-admin-clients-update-branding-response.ts +36 -0
- package/models/single-server-metadata.ts +1 -1
- package/package.json +1 -1
package/api/mcp-api.ts
CHANGED
|
@@ -30,6 +30,10 @@ import type { GetServerResponse } from '../models';
|
|
|
30
30
|
// @ts-ignore
|
|
31
31
|
import type { ListServersResponse } from '../models';
|
|
32
32
|
// @ts-ignore
|
|
33
|
+
import type { McpServerToolAuthorizeRequest } from '../models';
|
|
34
|
+
// @ts-ignore
|
|
35
|
+
import type { McpServerToolAuthorizeResponse } from '../models';
|
|
36
|
+
// @ts-ignore
|
|
33
37
|
import type { ProtectedResourceMetadata } from '../models';
|
|
34
38
|
/**
|
|
35
39
|
* McpApi - axios parameter creator
|
|
@@ -237,6 +241,57 @@ export const McpApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
237
241
|
options: localVarRequestOptions,
|
|
238
242
|
};
|
|
239
243
|
},
|
|
244
|
+
/**
|
|
245
|
+
* Called by the MCP server with its own client-credentials access token (scope mcp:authorize; the client must be listed in the server\'s tool_authorizer_client_ids). The body names the caller the server already verified. The server never forwards the caller\'s token.
|
|
246
|
+
* @summary Per-tool authorization for an MCP server (server credential)
|
|
247
|
+
* @param {string} orgId
|
|
248
|
+
* @param {string} serverId
|
|
249
|
+
* @param {McpServerToolAuthorizeRequest} mcpServerToolAuthorizeRequest
|
|
250
|
+
* @param {*} [options] Override http request option.
|
|
251
|
+
* @throws {RequiredError}
|
|
252
|
+
*/
|
|
253
|
+
mcpServerToolAuthorize: async (orgId: string, serverId: string, mcpServerToolAuthorizeRequest: McpServerToolAuthorizeRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
254
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
255
|
+
assertParamExists('mcpServerToolAuthorize', 'orgId', orgId)
|
|
256
|
+
// verify required parameter 'serverId' is not null or undefined
|
|
257
|
+
assertParamExists('mcpServerToolAuthorize', 'serverId', serverId)
|
|
258
|
+
// verify required parameter 'mcpServerToolAuthorizeRequest' is not null or undefined
|
|
259
|
+
assertParamExists('mcpServerToolAuthorize', 'mcpServerToolAuthorizeRequest', mcpServerToolAuthorizeRequest)
|
|
260
|
+
const localVarPath = `/orgs/{orgId}/api/v1/mcp/servers/{serverId}/tools/authorize`
|
|
261
|
+
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)))
|
|
262
|
+
.replace(`{${"serverId"}}`, encodeURIComponent(String(serverId)));
|
|
263
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
264
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
265
|
+
let baseOptions;
|
|
266
|
+
if (configuration) {
|
|
267
|
+
baseOptions = configuration.baseOptions;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
271
|
+
const localVarHeaderParameter = {} as any;
|
|
272
|
+
const localVarQueryParameter = {} as any;
|
|
273
|
+
|
|
274
|
+
// authentication ApiKeyAuth required
|
|
275
|
+
await setApiKeyToObject(localVarHeaderParameter, "X-API-Key", configuration)
|
|
276
|
+
|
|
277
|
+
// authentication BearerAuth required
|
|
278
|
+
// http bearer authentication required
|
|
279
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
284
|
+
|
|
285
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
286
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
287
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
288
|
+
localVarRequestOptions.data = serializeDataIfNeeded(mcpServerToolAuthorizeRequest, localVarRequestOptions, configuration)
|
|
289
|
+
|
|
290
|
+
return {
|
|
291
|
+
url: toPathString(localVarUrlObj),
|
|
292
|
+
options: localVarRequestOptions,
|
|
293
|
+
};
|
|
294
|
+
},
|
|
240
295
|
/**
|
|
241
296
|
* Identical to GET; the HTTP method is only recorded in the audit trail.
|
|
242
297
|
* @summary Simulated MCP server authorization challenge (POST)
|
|
@@ -357,6 +412,21 @@ export const McpApiFp = function(configuration?: Configuration) {
|
|
|
357
412
|
const localVarOperationServerBasePath = operationServerMap['McpApi.listServers']?.[localVarOperationServerIndex]?.url;
|
|
358
413
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
359
414
|
},
|
|
415
|
+
/**
|
|
416
|
+
* Called by the MCP server with its own client-credentials access token (scope mcp:authorize; the client must be listed in the server\'s tool_authorizer_client_ids). The body names the caller the server already verified. The server never forwards the caller\'s token.
|
|
417
|
+
* @summary Per-tool authorization for an MCP server (server credential)
|
|
418
|
+
* @param {string} orgId
|
|
419
|
+
* @param {string} serverId
|
|
420
|
+
* @param {McpServerToolAuthorizeRequest} mcpServerToolAuthorizeRequest
|
|
421
|
+
* @param {*} [options] Override http request option.
|
|
422
|
+
* @throws {RequiredError}
|
|
423
|
+
*/
|
|
424
|
+
async mcpServerToolAuthorize(orgId: string, serverId: string, mcpServerToolAuthorizeRequest: McpServerToolAuthorizeRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<McpServerToolAuthorizeResponse>> {
|
|
425
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.mcpServerToolAuthorize(orgId, serverId, mcpServerToolAuthorizeRequest, options);
|
|
426
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
427
|
+
const localVarOperationServerBasePath = operationServerMap['McpApi.mcpServerToolAuthorize']?.[localVarOperationServerIndex]?.url;
|
|
428
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
429
|
+
},
|
|
360
430
|
/**
|
|
361
431
|
* Identical to GET; the HTTP method is only recorded in the audit trail.
|
|
362
432
|
* @summary Simulated MCP server authorization challenge (POST)
|
|
@@ -431,6 +501,16 @@ export const McpApiFactory = function (configuration?: Configuration, basePath?:
|
|
|
431
501
|
listServers(requestParameters: McpApiListServersRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListServersResponse> {
|
|
432
502
|
return localVarFp.listServers(requestParameters.orgId, options).then((request) => request(axios, basePath));
|
|
433
503
|
},
|
|
504
|
+
/**
|
|
505
|
+
* Called by the MCP server with its own client-credentials access token (scope mcp:authorize; the client must be listed in the server\'s tool_authorizer_client_ids). The body names the caller the server already verified. The server never forwards the caller\'s token.
|
|
506
|
+
* @summary Per-tool authorization for an MCP server (server credential)
|
|
507
|
+
* @param {McpApiMcpServerToolAuthorizeRequest} requestParameters Request parameters.
|
|
508
|
+
* @param {*} [options] Override http request option.
|
|
509
|
+
* @throws {RequiredError}
|
|
510
|
+
*/
|
|
511
|
+
mcpServerToolAuthorize(requestParameters: McpApiMcpServerToolAuthorizeRequest, options?: RawAxiosRequestConfig): AxiosPromise<McpServerToolAuthorizeResponse> {
|
|
512
|
+
return localVarFp.mcpServerToolAuthorize(requestParameters.orgId, requestParameters.serverId, requestParameters.mcpServerToolAuthorizeRequest, options).then((request) => request(axios, basePath));
|
|
513
|
+
},
|
|
434
514
|
/**
|
|
435
515
|
* Identical to GET; the HTTP method is only recorded in the audit trail.
|
|
436
516
|
* @summary Simulated MCP server authorization challenge (POST)
|
|
@@ -500,6 +580,16 @@ export interface McpApiInterface {
|
|
|
500
580
|
*/
|
|
501
581
|
listServers(requestParameters: McpApiListServersRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListServersResponse>;
|
|
502
582
|
|
|
583
|
+
/**
|
|
584
|
+
* Called by the MCP server with its own client-credentials access token (scope mcp:authorize; the client must be listed in the server\'s tool_authorizer_client_ids). The body names the caller the server already verified. The server never forwards the caller\'s token.
|
|
585
|
+
* @summary Per-tool authorization for an MCP server (server credential)
|
|
586
|
+
* @param {McpApiMcpServerToolAuthorizeRequest} requestParameters Request parameters.
|
|
587
|
+
* @param {*} [options] Override http request option.
|
|
588
|
+
* @throws {RequiredError}
|
|
589
|
+
* @memberof McpApiInterface
|
|
590
|
+
*/
|
|
591
|
+
mcpServerToolAuthorize(requestParameters: McpApiMcpServerToolAuthorizeRequest, options?: RawAxiosRequestConfig): AxiosPromise<McpServerToolAuthorizeResponse>;
|
|
592
|
+
|
|
503
593
|
/**
|
|
504
594
|
* Identical to GET; the HTTP method is only recorded in the audit trail.
|
|
505
595
|
* @summary Simulated MCP server authorization challenge (POST)
|
|
@@ -603,6 +693,34 @@ export interface McpApiListServersRequest {
|
|
|
603
693
|
readonly orgId: string
|
|
604
694
|
}
|
|
605
695
|
|
|
696
|
+
/**
|
|
697
|
+
* Request parameters for mcpServerToolAuthorize operation in McpApi.
|
|
698
|
+
* @export
|
|
699
|
+
* @interface McpApiMcpServerToolAuthorizeRequest
|
|
700
|
+
*/
|
|
701
|
+
export interface McpApiMcpServerToolAuthorizeRequest {
|
|
702
|
+
/**
|
|
703
|
+
*
|
|
704
|
+
* @type {string}
|
|
705
|
+
* @memberof McpApiMcpServerToolAuthorize
|
|
706
|
+
*/
|
|
707
|
+
readonly orgId: string
|
|
708
|
+
|
|
709
|
+
/**
|
|
710
|
+
*
|
|
711
|
+
* @type {string}
|
|
712
|
+
* @memberof McpApiMcpServerToolAuthorize
|
|
713
|
+
*/
|
|
714
|
+
readonly serverId: string
|
|
715
|
+
|
|
716
|
+
/**
|
|
717
|
+
*
|
|
718
|
+
* @type {McpServerToolAuthorizeRequest}
|
|
719
|
+
* @memberof McpApiMcpServerToolAuthorize
|
|
720
|
+
*/
|
|
721
|
+
readonly mcpServerToolAuthorizeRequest: McpServerToolAuthorizeRequest
|
|
722
|
+
}
|
|
723
|
+
|
|
606
724
|
/**
|
|
607
725
|
* Request parameters for postServerChallenge operation in McpApi.
|
|
608
726
|
* @export
|
|
@@ -691,6 +809,18 @@ export class McpApi extends BaseAPI implements McpApiInterface {
|
|
|
691
809
|
return McpApiFp(this.configuration).listServers(requestParameters.orgId, options).then((request) => request(this.axios, this.basePath));
|
|
692
810
|
}
|
|
693
811
|
|
|
812
|
+
/**
|
|
813
|
+
* Called by the MCP server with its own client-credentials access token (scope mcp:authorize; the client must be listed in the server\'s tool_authorizer_client_ids). The body names the caller the server already verified. The server never forwards the caller\'s token.
|
|
814
|
+
* @summary Per-tool authorization for an MCP server (server credential)
|
|
815
|
+
* @param {McpApiMcpServerToolAuthorizeRequest} requestParameters Request parameters.
|
|
816
|
+
* @param {*} [options] Override http request option.
|
|
817
|
+
* @throws {RequiredError}
|
|
818
|
+
* @memberof McpApi
|
|
819
|
+
*/
|
|
820
|
+
public mcpServerToolAuthorize(requestParameters: McpApiMcpServerToolAuthorizeRequest, options?: RawAxiosRequestConfig) {
|
|
821
|
+
return McpApiFp(this.configuration).mcpServerToolAuthorize(requestParameters.orgId, requestParameters.serverId, requestParameters.mcpServerToolAuthorizeRequest, options).then((request) => request(this.axios, this.basePath));
|
|
822
|
+
}
|
|
823
|
+
|
|
694
824
|
/**
|
|
695
825
|
* Identical to GET; the HTTP method is only recorded in the audit trail.
|
|
696
826
|
* @summary Simulated MCP server authorization challenge (POST)
|
package/api/oauth-api.ts
CHANGED
|
@@ -333,40 +333,6 @@ export const OAuthApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
333
333
|
|
|
334
334
|
|
|
335
335
|
|
|
336
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
337
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
338
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
339
|
-
|
|
340
|
-
return {
|
|
341
|
-
url: toPathString(localVarUrlObj),
|
|
342
|
-
options: localVarRequestOptions,
|
|
343
|
-
};
|
|
344
|
-
},
|
|
345
|
-
/**
|
|
346
|
-
* Placeholder: flashes an informational message and redirects to the hosted login page. Not a JSON API.
|
|
347
|
-
* @summary Passkey login entry point
|
|
348
|
-
* @param {string} orgId
|
|
349
|
-
* @param {*} [options] Override http request option.
|
|
350
|
-
* @throws {RequiredError}
|
|
351
|
-
*/
|
|
352
|
-
passkeyLogin: async (orgId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
353
|
-
// verify required parameter 'orgId' is not null or undefined
|
|
354
|
-
assertParamExists('passkeyLogin', 'orgId', orgId)
|
|
355
|
-
const localVarPath = `/orgs/{orgId}/api/v1/oauth/passkey-login`
|
|
356
|
-
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
|
|
357
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
358
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
359
|
-
let baseOptions;
|
|
360
|
-
if (configuration) {
|
|
361
|
-
baseOptions = configuration.baseOptions;
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
365
|
-
const localVarHeaderParameter = {} as any;
|
|
366
|
-
const localVarQueryParameter = {} as any;
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
336
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
371
337
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
372
338
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -628,40 +594,6 @@ export const OAuthApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
628
594
|
|
|
629
595
|
|
|
630
596
|
|
|
631
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
632
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
633
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
634
|
-
|
|
635
|
-
return {
|
|
636
|
-
url: toPathString(localVarUrlObj),
|
|
637
|
-
options: localVarRequestOptions,
|
|
638
|
-
};
|
|
639
|
-
},
|
|
640
|
-
/**
|
|
641
|
-
* 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.
|
|
642
|
-
* @summary Hosted login form submission
|
|
643
|
-
* @param {string} orgId
|
|
644
|
-
* @param {*} [options] Override http request option.
|
|
645
|
-
* @throws {RequiredError}
|
|
646
|
-
*/
|
|
647
|
-
submitLogin: async (orgId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
648
|
-
// verify required parameter 'orgId' is not null or undefined
|
|
649
|
-
assertParamExists('submitLogin', 'orgId', orgId)
|
|
650
|
-
const localVarPath = `/orgs/{orgId}/api/v1/oauth/login/submit`
|
|
651
|
-
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
|
|
652
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
653
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
654
|
-
let baseOptions;
|
|
655
|
-
if (configuration) {
|
|
656
|
-
baseOptions = configuration.baseOptions;
|
|
657
|
-
}
|
|
658
|
-
|
|
659
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
660
|
-
const localVarHeaderParameter = {} as any;
|
|
661
|
-
const localVarQueryParameter = {} as any;
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
597
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
666
598
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
667
599
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -892,19 +824,6 @@ export const OAuthApiFp = function(configuration?: Configuration) {
|
|
|
892
824
|
const localVarOperationServerBasePath = operationServerMap['OAuthApi.par']?.[localVarOperationServerIndex]?.url;
|
|
893
825
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
894
826
|
},
|
|
895
|
-
/**
|
|
896
|
-
* Placeholder: flashes an informational message and redirects to the hosted login page. Not a JSON API.
|
|
897
|
-
* @summary Passkey login entry point
|
|
898
|
-
* @param {string} orgId
|
|
899
|
-
* @param {*} [options] Override http request option.
|
|
900
|
-
* @throws {RequiredError}
|
|
901
|
-
*/
|
|
902
|
-
async passkeyLogin(orgId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
903
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.passkeyLogin(orgId, options);
|
|
904
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
905
|
-
const localVarOperationServerBasePath = operationServerMap['OAuthApi.passkeyLogin']?.[localVarOperationServerIndex]?.url;
|
|
906
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
907
|
-
},
|
|
908
827
|
/**
|
|
909
828
|
* 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.
|
|
910
829
|
* @summary Dynamic client registration (RFC 7591 / OIDC DCR)
|
|
@@ -999,19 +918,6 @@ export const OAuthApiFp = function(configuration?: Configuration) {
|
|
|
999
918
|
const localVarOperationServerBasePath = operationServerMap['OAuthApi.submitDeviceVerification']?.[localVarOperationServerIndex]?.url;
|
|
1000
919
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1001
920
|
},
|
|
1002
|
-
/**
|
|
1003
|
-
* 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.
|
|
1004
|
-
* @summary Hosted login form submission
|
|
1005
|
-
* @param {string} orgId
|
|
1006
|
-
* @param {*} [options] Override http request option.
|
|
1007
|
-
* @throws {RequiredError}
|
|
1008
|
-
*/
|
|
1009
|
-
async submitLogin(orgId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1010
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.submitLogin(orgId, options);
|
|
1011
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1012
|
-
const localVarOperationServerBasePath = operationServerMap['OAuthApi.submitLogin']?.[localVarOperationServerIndex]?.url;
|
|
1013
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1014
|
-
},
|
|
1015
921
|
/**
|
|
1016
922
|
* 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.
|
|
1017
923
|
* @summary Programmatic (JSON) login for the authorization flow
|
|
@@ -1141,16 +1047,6 @@ export const OAuthApiFactory = function (configuration?: Configuration, basePath
|
|
|
1141
1047
|
par(requestParameters: OAuthApiParRequest, options?: RawAxiosRequestConfig): AxiosPromise<ParResponse> {
|
|
1142
1048
|
return localVarFp.par(requestParameters.orgId, options).then((request) => request(axios, basePath));
|
|
1143
1049
|
},
|
|
1144
|
-
/**
|
|
1145
|
-
* Placeholder: flashes an informational message and redirects to the hosted login page. Not a JSON API.
|
|
1146
|
-
* @summary Passkey login entry point
|
|
1147
|
-
* @param {OAuthApiPasskeyLoginRequest} requestParameters Request parameters.
|
|
1148
|
-
* @param {*} [options] Override http request option.
|
|
1149
|
-
* @throws {RequiredError}
|
|
1150
|
-
*/
|
|
1151
|
-
passkeyLogin(requestParameters: OAuthApiPasskeyLoginRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1152
|
-
return localVarFp.passkeyLogin(requestParameters.orgId, options).then((request) => request(axios, basePath));
|
|
1153
|
-
},
|
|
1154
1050
|
/**
|
|
1155
1051
|
* 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.
|
|
1156
1052
|
* @summary Dynamic client registration (RFC 7591 / OIDC DCR)
|
|
@@ -1221,16 +1117,6 @@ export const OAuthApiFactory = function (configuration?: Configuration, basePath
|
|
|
1221
1117
|
submitDeviceVerification(requestParameters: OAuthApiSubmitDeviceVerificationRequest, options?: RawAxiosRequestConfig): AxiosPromise<string> {
|
|
1222
1118
|
return localVarFp.submitDeviceVerification(requestParameters.orgId, options).then((request) => request(axios, basePath));
|
|
1223
1119
|
},
|
|
1224
|
-
/**
|
|
1225
|
-
* 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.
|
|
1226
|
-
* @summary Hosted login form submission
|
|
1227
|
-
* @param {OAuthApiSubmitLoginRequest} requestParameters Request parameters.
|
|
1228
|
-
* @param {*} [options] Override http request option.
|
|
1229
|
-
* @throws {RequiredError}
|
|
1230
|
-
*/
|
|
1231
|
-
submitLogin(requestParameters: OAuthApiSubmitLoginRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1232
|
-
return localVarFp.submitLogin(requestParameters.orgId, options).then((request) => request(axios, basePath));
|
|
1233
|
-
},
|
|
1234
1120
|
/**
|
|
1235
1121
|
* 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.
|
|
1236
1122
|
* @summary Programmatic (JSON) login for the authorization flow
|
|
@@ -1350,16 +1236,6 @@ export interface OAuthApiInterface {
|
|
|
1350
1236
|
*/
|
|
1351
1237
|
par(requestParameters: OAuthApiParRequest, options?: RawAxiosRequestConfig): AxiosPromise<ParResponse>;
|
|
1352
1238
|
|
|
1353
|
-
/**
|
|
1354
|
-
* Placeholder: flashes an informational message and redirects to the hosted login page. Not a JSON API.
|
|
1355
|
-
* @summary Passkey login entry point
|
|
1356
|
-
* @param {OAuthApiPasskeyLoginRequest} requestParameters Request parameters.
|
|
1357
|
-
* @param {*} [options] Override http request option.
|
|
1358
|
-
* @throws {RequiredError}
|
|
1359
|
-
* @memberof OAuthApiInterface
|
|
1360
|
-
*/
|
|
1361
|
-
passkeyLogin(requestParameters: OAuthApiPasskeyLoginRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
1362
|
-
|
|
1363
1239
|
/**
|
|
1364
1240
|
* 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.
|
|
1365
1241
|
* @summary Dynamic client registration (RFC 7591 / OIDC DCR)
|
|
@@ -1430,16 +1306,6 @@ export interface OAuthApiInterface {
|
|
|
1430
1306
|
*/
|
|
1431
1307
|
submitDeviceVerification(requestParameters: OAuthApiSubmitDeviceVerificationRequest, options?: RawAxiosRequestConfig): AxiosPromise<string>;
|
|
1432
1308
|
|
|
1433
|
-
/**
|
|
1434
|
-
* 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.
|
|
1435
|
-
* @summary Hosted login form submission
|
|
1436
|
-
* @param {OAuthApiSubmitLoginRequest} requestParameters Request parameters.
|
|
1437
|
-
* @param {*} [options] Override http request option.
|
|
1438
|
-
* @throws {RequiredError}
|
|
1439
|
-
* @memberof OAuthApiInterface
|
|
1440
|
-
*/
|
|
1441
|
-
submitLogin(requestParameters: OAuthApiSubmitLoginRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
1442
|
-
|
|
1443
1309
|
/**
|
|
1444
1310
|
* 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.
|
|
1445
1311
|
* @summary Programmatic (JSON) login for the authorization flow
|
|
@@ -1591,20 +1457,6 @@ export interface OAuthApiParRequest {
|
|
|
1591
1457
|
readonly orgId: string
|
|
1592
1458
|
}
|
|
1593
1459
|
|
|
1594
|
-
/**
|
|
1595
|
-
* Request parameters for passkeyLogin operation in OAuthApi.
|
|
1596
|
-
* @export
|
|
1597
|
-
* @interface OAuthApiPasskeyLoginRequest
|
|
1598
|
-
*/
|
|
1599
|
-
export interface OAuthApiPasskeyLoginRequest {
|
|
1600
|
-
/**
|
|
1601
|
-
*
|
|
1602
|
-
* @type {string}
|
|
1603
|
-
* @memberof OAuthApiPasskeyLogin
|
|
1604
|
-
*/
|
|
1605
|
-
readonly orgId: string
|
|
1606
|
-
}
|
|
1607
|
-
|
|
1608
1460
|
/**
|
|
1609
1461
|
* Request parameters for registerClient operation in OAuthApi.
|
|
1610
1462
|
* @export
|
|
@@ -1724,20 +1576,6 @@ export interface OAuthApiSubmitDeviceVerificationRequest {
|
|
|
1724
1576
|
readonly orgId: string
|
|
1725
1577
|
}
|
|
1726
1578
|
|
|
1727
|
-
/**
|
|
1728
|
-
* Request parameters for submitLogin operation in OAuthApi.
|
|
1729
|
-
* @export
|
|
1730
|
-
* @interface OAuthApiSubmitLoginRequest
|
|
1731
|
-
*/
|
|
1732
|
-
export interface OAuthApiSubmitLoginRequest {
|
|
1733
|
-
/**
|
|
1734
|
-
*
|
|
1735
|
-
* @type {string}
|
|
1736
|
-
* @memberof OAuthApiSubmitLogin
|
|
1737
|
-
*/
|
|
1738
|
-
readonly orgId: string
|
|
1739
|
-
}
|
|
1740
|
-
|
|
1741
1579
|
/**
|
|
1742
1580
|
* Request parameters for submitLoginJson operation in OAuthApi.
|
|
1743
1581
|
* @export
|
|
@@ -1883,18 +1721,6 @@ export class OAuthApi extends BaseAPI implements OAuthApiInterface {
|
|
|
1883
1721
|
return OAuthApiFp(this.configuration).par(requestParameters.orgId, options).then((request) => request(this.axios, this.basePath));
|
|
1884
1722
|
}
|
|
1885
1723
|
|
|
1886
|
-
/**
|
|
1887
|
-
* Placeholder: flashes an informational message and redirects to the hosted login page. Not a JSON API.
|
|
1888
|
-
* @summary Passkey login entry point
|
|
1889
|
-
* @param {OAuthApiPasskeyLoginRequest} requestParameters Request parameters.
|
|
1890
|
-
* @param {*} [options] Override http request option.
|
|
1891
|
-
* @throws {RequiredError}
|
|
1892
|
-
* @memberof OAuthApi
|
|
1893
|
-
*/
|
|
1894
|
-
public passkeyLogin(requestParameters: OAuthApiPasskeyLoginRequest, options?: RawAxiosRequestConfig) {
|
|
1895
|
-
return OAuthApiFp(this.configuration).passkeyLogin(requestParameters.orgId, options).then((request) => request(this.axios, this.basePath));
|
|
1896
|
-
}
|
|
1897
|
-
|
|
1898
1724
|
/**
|
|
1899
1725
|
* 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.
|
|
1900
1726
|
* @summary Dynamic client registration (RFC 7591 / OIDC DCR)
|
|
@@ -1979,18 +1805,6 @@ export class OAuthApi extends BaseAPI implements OAuthApiInterface {
|
|
|
1979
1805
|
return OAuthApiFp(this.configuration).submitDeviceVerification(requestParameters.orgId, options).then((request) => request(this.axios, this.basePath));
|
|
1980
1806
|
}
|
|
1981
1807
|
|
|
1982
|
-
/**
|
|
1983
|
-
* 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.
|
|
1984
|
-
* @summary Hosted login form submission
|
|
1985
|
-
* @param {OAuthApiSubmitLoginRequest} requestParameters Request parameters.
|
|
1986
|
-
* @param {*} [options] Override http request option.
|
|
1987
|
-
* @throws {RequiredError}
|
|
1988
|
-
* @memberof OAuthApi
|
|
1989
|
-
*/
|
|
1990
|
-
public submitLogin(requestParameters: OAuthApiSubmitLoginRequest, options?: RawAxiosRequestConfig) {
|
|
1991
|
-
return OAuthApiFp(this.configuration).submitLogin(requestParameters.orgId, options).then((request) => request(this.axios, this.basePath));
|
|
1992
|
-
}
|
|
1993
|
-
|
|
1994
1808
|
/**
|
|
1995
1809
|
* 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.
|
|
1996
1810
|
* @summary Programmatic (JSON) login for the authorization flow
|
package/api/well-known-api.ts
CHANGED
|
@@ -36,7 +36,7 @@ import type { OpenIdConfiguration } from '../models';
|
|
|
36
36
|
export const WellKnownApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
37
37
|
return {
|
|
38
38
|
/**
|
|
39
|
-
* Public, CORS-enabled and cacheable (Cache-Control: public, max-age=3600). Endpoint URLs are rewritten to the organization\'s custom domain when one is active.
|
|
39
|
+
* Public, CORS-enabled and cacheable (Cache-Control: public, max-age=3600). Endpoint URLs are rewritten to the organization\'s custom domain when one is active. RFC 8414 clients read it from /.well-known/oauth-authorization-server/orgs/{orgId}/api/v1 (the issuer\'s path-inserted location) and, on a verified custom domain, from /.well-known/oauth-authorization-server.
|
|
40
40
|
* @summary OAuth 2.0 authorization server metadata (RFC 8414)
|
|
41
41
|
* @param {string} orgId
|
|
42
42
|
* @param {*} [options] Override http request option.
|
|
@@ -104,7 +104,7 @@ export const WellKnownApiAxiosParamCreator = function (configuration?: Configura
|
|
|
104
104
|
};
|
|
105
105
|
},
|
|
106
106
|
/**
|
|
107
|
-
* Public, CORS-enabled and cacheable (Cache-Control: public, max-age=3600). Endpoint URLs are rewritten to the organization\'s custom domain when one is active.
|
|
107
|
+
* Public, CORS-enabled and cacheable (Cache-Control: public, max-age=3600). Endpoint URLs are rewritten to the organization\'s custom domain when one is active. The same document is served at the RFC 8414 location /.well-known/openid-configuration/orgs/{orgId}/api/v1 and, on a verified custom domain (whose issuer is the bare domain), at /.well-known/openid-configuration.
|
|
108
108
|
* @summary OpenID Provider configuration (OIDC Discovery 1.0)
|
|
109
109
|
* @param {string} orgId
|
|
110
110
|
* @param {*} [options] Override http request option.
|
|
@@ -182,7 +182,7 @@ export const WellKnownApiFp = function(configuration?: Configuration) {
|
|
|
182
182
|
const localVarAxiosParamCreator = WellKnownApiAxiosParamCreator(configuration)
|
|
183
183
|
return {
|
|
184
184
|
/**
|
|
185
|
-
* Public, CORS-enabled and cacheable (Cache-Control: public, max-age=3600). Endpoint URLs are rewritten to the organization\'s custom domain when one is active.
|
|
185
|
+
* Public, CORS-enabled and cacheable (Cache-Control: public, max-age=3600). Endpoint URLs are rewritten to the organization\'s custom domain when one is active. RFC 8414 clients read it from /.well-known/oauth-authorization-server/orgs/{orgId}/api/v1 (the issuer\'s path-inserted location) and, on a verified custom domain, from /.well-known/oauth-authorization-server.
|
|
186
186
|
* @summary OAuth 2.0 authorization server metadata (RFC 8414)
|
|
187
187
|
* @param {string} orgId
|
|
188
188
|
* @param {*} [options] Override http request option.
|
|
@@ -208,7 +208,7 @@ export const WellKnownApiFp = function(configuration?: Configuration) {
|
|
|
208
208
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
209
209
|
},
|
|
210
210
|
/**
|
|
211
|
-
* Public, CORS-enabled and cacheable (Cache-Control: public, max-age=3600). Endpoint URLs are rewritten to the organization\'s custom domain when one is active.
|
|
211
|
+
* Public, CORS-enabled and cacheable (Cache-Control: public, max-age=3600). Endpoint URLs are rewritten to the organization\'s custom domain when one is active. The same document is served at the RFC 8414 location /.well-known/openid-configuration/orgs/{orgId}/api/v1 and, on a verified custom domain (whose issuer is the bare domain), at /.well-known/openid-configuration.
|
|
212
212
|
* @summary OpenID Provider configuration (OIDC Discovery 1.0)
|
|
213
213
|
* @param {string} orgId
|
|
214
214
|
* @param {*} [options] Override http request option.
|
|
@@ -244,7 +244,7 @@ export const WellKnownApiFactory = function (configuration?: Configuration, base
|
|
|
244
244
|
const localVarFp = WellKnownApiFp(configuration)
|
|
245
245
|
return {
|
|
246
246
|
/**
|
|
247
|
-
* Public, CORS-enabled and cacheable (Cache-Control: public, max-age=3600). Endpoint URLs are rewritten to the organization\'s custom domain when one is active.
|
|
247
|
+
* Public, CORS-enabled and cacheable (Cache-Control: public, max-age=3600). Endpoint URLs are rewritten to the organization\'s custom domain when one is active. RFC 8414 clients read it from /.well-known/oauth-authorization-server/orgs/{orgId}/api/v1 (the issuer\'s path-inserted location) and, on a verified custom domain, from /.well-known/oauth-authorization-server.
|
|
248
248
|
* @summary OAuth 2.0 authorization server metadata (RFC 8414)
|
|
249
249
|
* @param {WellKnownApiGetAuthorizationServerMetadataRequest} requestParameters Request parameters.
|
|
250
250
|
* @param {*} [options] Override http request option.
|
|
@@ -264,7 +264,7 @@ export const WellKnownApiFactory = function (configuration?: Configuration, base
|
|
|
264
264
|
return localVarFp.getJwks(requestParameters.orgId, options).then((request) => request(axios, basePath));
|
|
265
265
|
},
|
|
266
266
|
/**
|
|
267
|
-
* Public, CORS-enabled and cacheable (Cache-Control: public, max-age=3600). Endpoint URLs are rewritten to the organization\'s custom domain when one is active.
|
|
267
|
+
* Public, CORS-enabled and cacheable (Cache-Control: public, max-age=3600). Endpoint URLs are rewritten to the organization\'s custom domain when one is active. The same document is served at the RFC 8414 location /.well-known/openid-configuration/orgs/{orgId}/api/v1 and, on a verified custom domain (whose issuer is the bare domain), at /.well-known/openid-configuration.
|
|
268
268
|
* @summary OpenID Provider configuration (OIDC Discovery 1.0)
|
|
269
269
|
* @param {WellKnownApiGetOpenidConfigurationRequest} requestParameters Request parameters.
|
|
270
270
|
* @param {*} [options] Override http request option.
|
|
@@ -293,7 +293,7 @@ export const WellKnownApiFactory = function (configuration?: Configuration, base
|
|
|
293
293
|
*/
|
|
294
294
|
export interface WellKnownApiInterface {
|
|
295
295
|
/**
|
|
296
|
-
* Public, CORS-enabled and cacheable (Cache-Control: public, max-age=3600). Endpoint URLs are rewritten to the organization\'s custom domain when one is active.
|
|
296
|
+
* Public, CORS-enabled and cacheable (Cache-Control: public, max-age=3600). Endpoint URLs are rewritten to the organization\'s custom domain when one is active. RFC 8414 clients read it from /.well-known/oauth-authorization-server/orgs/{orgId}/api/v1 (the issuer\'s path-inserted location) and, on a verified custom domain, from /.well-known/oauth-authorization-server.
|
|
297
297
|
* @summary OAuth 2.0 authorization server metadata (RFC 8414)
|
|
298
298
|
* @param {WellKnownApiGetAuthorizationServerMetadataRequest} requestParameters Request parameters.
|
|
299
299
|
* @param {*} [options] Override http request option.
|
|
@@ -313,7 +313,7 @@ export interface WellKnownApiInterface {
|
|
|
313
313
|
getJwks(requestParameters: WellKnownApiGetJwksRequest, options?: RawAxiosRequestConfig): AxiosPromise<JsonWebKeySet>;
|
|
314
314
|
|
|
315
315
|
/**
|
|
316
|
-
* Public, CORS-enabled and cacheable (Cache-Control: public, max-age=3600). Endpoint URLs are rewritten to the organization\'s custom domain when one is active.
|
|
316
|
+
* Public, CORS-enabled and cacheable (Cache-Control: public, max-age=3600). Endpoint URLs are rewritten to the organization\'s custom domain when one is active. The same document is served at the RFC 8414 location /.well-known/openid-configuration/orgs/{orgId}/api/v1 and, on a verified custom domain (whose issuer is the bare domain), at /.well-known/openid-configuration.
|
|
317
317
|
* @summary OpenID Provider configuration (OIDC Discovery 1.0)
|
|
318
318
|
* @param {WellKnownApiGetOpenidConfigurationRequest} requestParameters Request parameters.
|
|
319
319
|
* @param {*} [options] Override http request option.
|
|
@@ -398,7 +398,7 @@ export interface WellKnownApiGetSsfConfigurationRequest {
|
|
|
398
398
|
*/
|
|
399
399
|
export class WellKnownApi extends BaseAPI implements WellKnownApiInterface {
|
|
400
400
|
/**
|
|
401
|
-
* Public, CORS-enabled and cacheable (Cache-Control: public, max-age=3600). Endpoint URLs are rewritten to the organization\'s custom domain when one is active.
|
|
401
|
+
* Public, CORS-enabled and cacheable (Cache-Control: public, max-age=3600). Endpoint URLs are rewritten to the organization\'s custom domain when one is active. RFC 8414 clients read it from /.well-known/oauth-authorization-server/orgs/{orgId}/api/v1 (the issuer\'s path-inserted location) and, on a verified custom domain, from /.well-known/oauth-authorization-server.
|
|
402
402
|
* @summary OAuth 2.0 authorization server metadata (RFC 8414)
|
|
403
403
|
* @param {WellKnownApiGetAuthorizationServerMetadataRequest} requestParameters Request parameters.
|
|
404
404
|
* @param {*} [options] Override http request option.
|
|
@@ -422,7 +422,7 @@ export class WellKnownApi extends BaseAPI implements WellKnownApiInterface {
|
|
|
422
422
|
}
|
|
423
423
|
|
|
424
424
|
/**
|
|
425
|
-
* Public, CORS-enabled and cacheable (Cache-Control: public, max-age=3600). Endpoint URLs are rewritten to the organization\'s custom domain when one is active.
|
|
425
|
+
* Public, CORS-enabled and cacheable (Cache-Control: public, max-age=3600). Endpoint URLs are rewritten to the organization\'s custom domain when one is active. The same document is served at the RFC 8414 location /.well-known/openid-configuration/orgs/{orgId}/api/v1 and, on a verified custom domain (whose issuer is the bare domain), at /.well-known/openid-configuration.
|
|
426
426
|
* @summary OpenID Provider configuration (OIDC Discovery 1.0)
|
|
427
427
|
* @param {WellKnownApiGetOpenidConfigurationRequest} requestParameters Request parameters.
|
|
428
428
|
* @param {*} [options] Override http request option.
|
package/dist/api/aauth-api.d.ts
CHANGED
|
@@ -110,7 +110,7 @@ export declare const AAuthApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
110
110
|
*/
|
|
111
111
|
getResourceMetadataById: (orgId: string, resourceId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
112
112
|
/**
|
|
113
|
-
* Per Section 9: The agent token endpoint is the auth server\'s endpoint agents use to request auth tokens. Required HTTP signature covering: @method, @
|
|
113
|
+
* Per Section 9: The agent token endpoint is the auth server\'s endpoint agents use to request auth tokens. Required HTTP signature covering: @method, @authority, @path, signature-key (plus @query when the URL has one), content-digest, content-type, authorization
|
|
114
114
|
* @summary Agent Token Endpoint
|
|
115
115
|
* @param {string} orgId
|
|
116
116
|
* @param {IssueAgentTokenRequest} issueAgentTokenRequest
|
|
@@ -254,7 +254,7 @@ export declare const AAuthApiFp: (configuration?: Configuration) => {
|
|
|
254
254
|
*/
|
|
255
255
|
getResourceMetadataById(orgId: string, resourceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
256
256
|
/**
|
|
257
|
-
* Per Section 9: The agent token endpoint is the auth server\'s endpoint agents use to request auth tokens. Required HTTP signature covering: @method, @
|
|
257
|
+
* Per Section 9: The agent token endpoint is the auth server\'s endpoint agents use to request auth tokens. Required HTTP signature covering: @method, @authority, @path, signature-key (plus @query when the URL has one), content-digest, content-type, authorization
|
|
258
258
|
* @summary Agent Token Endpoint
|
|
259
259
|
* @param {string} orgId
|
|
260
260
|
* @param {IssueAgentTokenRequest} issueAgentTokenRequest
|
|
@@ -394,7 +394,7 @@ export declare const AAuthApiFactory: (configuration?: Configuration, basePath?:
|
|
|
394
394
|
*/
|
|
395
395
|
getResourceMetadataById(requestParameters: AAuthApiGetResourceMetadataByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<object>;
|
|
396
396
|
/**
|
|
397
|
-
* Per Section 9: The agent token endpoint is the auth server\'s endpoint agents use to request auth tokens. Required HTTP signature covering: @method, @
|
|
397
|
+
* Per Section 9: The agent token endpoint is the auth server\'s endpoint agents use to request auth tokens. Required HTTP signature covering: @method, @authority, @path, signature-key (plus @query when the URL has one), content-digest, content-type, authorization
|
|
398
398
|
* @summary Agent Token Endpoint
|
|
399
399
|
* @param {AAuthApiIssueAgentTokenRequest} requestParameters Request parameters.
|
|
400
400
|
* @param {*} [options] Override http request option.
|
|
@@ -537,7 +537,7 @@ export interface AAuthApiInterface {
|
|
|
537
537
|
*/
|
|
538
538
|
getResourceMetadataById(requestParameters: AAuthApiGetResourceMetadataByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<object>;
|
|
539
539
|
/**
|
|
540
|
-
* Per Section 9: The agent token endpoint is the auth server\'s endpoint agents use to request auth tokens. Required HTTP signature covering: @method, @
|
|
540
|
+
* Per Section 9: The agent token endpoint is the auth server\'s endpoint agents use to request auth tokens. Required HTTP signature covering: @method, @authority, @path, signature-key (plus @query when the URL has one), content-digest, content-type, authorization
|
|
541
541
|
* @summary Agent Token Endpoint
|
|
542
542
|
* @param {AAuthApiIssueAgentTokenRequest} requestParameters Request parameters.
|
|
543
543
|
* @param {*} [options] Override http request option.
|
|
@@ -962,7 +962,7 @@ export declare class AAuthApi extends BaseAPI implements AAuthApiInterface {
|
|
|
962
962
|
*/
|
|
963
963
|
getResourceMetadataById(requestParameters: AAuthApiGetResourceMetadataByIdRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}>>;
|
|
964
964
|
/**
|
|
965
|
-
* Per Section 9: The agent token endpoint is the auth server\'s endpoint agents use to request auth tokens. Required HTTP signature covering: @method, @
|
|
965
|
+
* Per Section 9: The agent token endpoint is the auth server\'s endpoint agents use to request auth tokens. Required HTTP signature covering: @method, @authority, @path, signature-key (plus @query when the URL has one), content-digest, content-type, authorization
|
|
966
966
|
* @summary Agent Token Endpoint
|
|
967
967
|
* @param {AAuthApiIssueAgentTokenRequest} requestParameters Request parameters.
|
|
968
968
|
* @param {*} [options] Override http request option.
|
package/dist/api/aauth-api.js
CHANGED
|
@@ -316,7 +316,7 @@ const AAuthApiAxiosParamCreator = function (configuration) {
|
|
|
316
316
|
};
|
|
317
317
|
}),
|
|
318
318
|
/**
|
|
319
|
-
* Per Section 9: The agent token endpoint is the auth server\'s endpoint agents use to request auth tokens. Required HTTP signature covering: @method, @
|
|
319
|
+
* Per Section 9: The agent token endpoint is the auth server\'s endpoint agents use to request auth tokens. Required HTTP signature covering: @method, @authority, @path, signature-key (plus @query when the URL has one), content-digest, content-type, authorization
|
|
320
320
|
* @summary Agent Token Endpoint
|
|
321
321
|
* @param {string} orgId
|
|
322
322
|
* @param {IssueAgentTokenRequest} issueAgentTokenRequest
|
|
@@ -732,7 +732,7 @@ const AAuthApiFp = function (configuration) {
|
|
|
732
732
|
});
|
|
733
733
|
},
|
|
734
734
|
/**
|
|
735
|
-
* Per Section 9: The agent token endpoint is the auth server\'s endpoint agents use to request auth tokens. Required HTTP signature covering: @method, @
|
|
735
|
+
* Per Section 9: The agent token endpoint is the auth server\'s endpoint agents use to request auth tokens. Required HTTP signature covering: @method, @authority, @path, signature-key (plus @query when the URL has one), content-digest, content-type, authorization
|
|
736
736
|
* @summary Agent Token Endpoint
|
|
737
737
|
* @param {string} orgId
|
|
738
738
|
* @param {IssueAgentTokenRequest} issueAgentTokenRequest
|
|
@@ -950,7 +950,7 @@ const AAuthApiFactory = function (configuration, basePath, axios) {
|
|
|
950
950
|
return localVarFp.getResourceMetadataById(requestParameters.orgId, requestParameters.resourceId, options).then((request) => request(axios, basePath));
|
|
951
951
|
},
|
|
952
952
|
/**
|
|
953
|
-
* Per Section 9: The agent token endpoint is the auth server\'s endpoint agents use to request auth tokens. Required HTTP signature covering: @method, @
|
|
953
|
+
* Per Section 9: The agent token endpoint is the auth server\'s endpoint agents use to request auth tokens. Required HTTP signature covering: @method, @authority, @path, signature-key (plus @query when the URL has one), content-digest, content-type, authorization
|
|
954
954
|
* @summary Agent Token Endpoint
|
|
955
955
|
* @param {AAuthApiIssueAgentTokenRequest} requestParameters Request parameters.
|
|
956
956
|
* @param {*} [options] Override http request option.
|
|
@@ -1128,7 +1128,7 @@ class AAuthApi extends base_1.BaseAPI {
|
|
|
1128
1128
|
return (0, exports.AAuthApiFp)(this.configuration).getResourceMetadataById(requestParameters.orgId, requestParameters.resourceId, options).then((request) => request(this.axios, this.basePath));
|
|
1129
1129
|
}
|
|
1130
1130
|
/**
|
|
1131
|
-
* Per Section 9: The agent token endpoint is the auth server\'s endpoint agents use to request auth tokens. Required HTTP signature covering: @method, @
|
|
1131
|
+
* Per Section 9: The agent token endpoint is the auth server\'s endpoint agents use to request auth tokens. Required HTTP signature covering: @method, @authority, @path, signature-key (plus @query when the URL has one), content-digest, content-type, authorization
|
|
1132
1132
|
* @summary Agent Token Endpoint
|
|
1133
1133
|
* @param {AAuthApiIssueAgentTokenRequest} requestParameters Request parameters.
|
|
1134
1134
|
* @param {*} [options] Override http request option.
|