@lumoauth/api-client 1.1.0 → 1.2.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 +6 -0
- package/README.md +6 -2
- package/api/aauth-api.ts +5 -5
- package/api/admin-mcp-api.ts +5 -5
- package/api/agents-api.ts +5 -5
- package/api/mcp-api.ts +130 -0
- 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-mcp-api.d.ts +5 -5
- package/dist/api/admin-mcp-api.js +4 -4
- 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/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-mcp-api.d.ts +5 -5
- package/dist/esm/api/admin-mcp-api.js +4 -4
- 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/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/attest-response.d.ts +2 -1
- package/dist/esm/models/attest-response.js +1 -0
- 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 +3 -0
- package/dist/esm/models/index.js +3 -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 +1 -1
- package/dist/esm/models/protected-resource-metadata.d.ts +1 -1
- 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/attest-response.d.ts +2 -1
- package/dist/models/attest-response.js +1 -0
- 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 +3 -0
- package/dist/models/index.js +3 -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 +1 -1
- package/dist/models/protected-resource-metadata.d.ts +1 -1
- 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/AdminMcpApi.md +1 -1
- package/docs/AgentsApi.md +4 -3
- 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/OpenIdConfiguration.md +1 -1
- package/docs/ProtectedResourceMetadata.md +1 -1
- 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/attest-response.ts +2 -1
- 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 +3 -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 +1 -1
- package/models/protected-resource-metadata.ts +1 -1
- package/models/single-server-metadata.ts +1 -1
- package/package.json +1 -1
|
@@ -22,7 +22,7 @@ import type { MessageResponse } from '../models';
|
|
|
22
22
|
*/
|
|
23
23
|
export declare const AdminMcpApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
24
24
|
/**
|
|
25
|
-
* Body: name (required) — display name resource_uri (required) — RFC 8707 canonical URI
|
|
25
|
+
* Body: name (required) — display name resource_uri (required) — RFC 8707 canonical URI: https:// (http:// only for loopback), no fragment, no user info, not a LumoAuth host, unique per organization after normalisation (same rules as the portal) endpoint_url (optional) — actual MCP endpoint description (optional) scopes_supported (optional) — array OR space/comma-separated string; omnibus scopes, offline_access and admin/scim scopes are refused (422) basic_scopes (optional) — subset of scopes_supported advertised in the 401 challenge and Protected Resource Metadata; no wildcards transport (optional) — defaults to \"http_streamable\" (\"http_sse\" is deprecated in MCP 2026-07-28) auth_mode (optional) — defaults to \"oauth\" token_lifetime (optional, default 3600) — 60..86400, else 422 tool_authorizer_client_ids (optional) — the MCP server\'s own OAuth clients that may call the per-tool authorization endpoint allowed_client_ids (optional) — array of this organization\'s OAuth client ids; unknown ids are a 422 (never persisted as policy) require_pkce (optional, default true) require_resource_param (optional, default true) require_dpop (optional, default false) — RFC 9449 sender-constrained tokens only
|
|
26
26
|
* @summary Register an MCP server
|
|
27
27
|
* @param {string} orgId
|
|
28
28
|
* @param {*} [options] Override http request option.
|
|
@@ -62,7 +62,7 @@ export declare const AdminMcpApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
62
62
|
*/
|
|
63
63
|
export declare const AdminMcpApiFp: (configuration?: Configuration) => {
|
|
64
64
|
/**
|
|
65
|
-
* Body: name (required) — display name resource_uri (required) — RFC 8707 canonical URI
|
|
65
|
+
* Body: name (required) — display name resource_uri (required) — RFC 8707 canonical URI: https:// (http:// only for loopback), no fragment, no user info, not a LumoAuth host, unique per organization after normalisation (same rules as the portal) endpoint_url (optional) — actual MCP endpoint description (optional) scopes_supported (optional) — array OR space/comma-separated string; omnibus scopes, offline_access and admin/scim scopes are refused (422) basic_scopes (optional) — subset of scopes_supported advertised in the 401 challenge and Protected Resource Metadata; no wildcards transport (optional) — defaults to \"http_streamable\" (\"http_sse\" is deprecated in MCP 2026-07-28) auth_mode (optional) — defaults to \"oauth\" token_lifetime (optional, default 3600) — 60..86400, else 422 tool_authorizer_client_ids (optional) — the MCP server\'s own OAuth clients that may call the per-tool authorization endpoint allowed_client_ids (optional) — array of this organization\'s OAuth client ids; unknown ids are a 422 (never persisted as policy) require_pkce (optional, default true) require_resource_param (optional, default true) require_dpop (optional, default false) — RFC 9449 sender-constrained tokens only
|
|
66
66
|
* @summary Register an MCP server
|
|
67
67
|
* @param {string} orgId
|
|
68
68
|
* @param {*} [options] Override http request option.
|
|
@@ -102,7 +102,7 @@ export declare const AdminMcpApiFp: (configuration?: Configuration) => {
|
|
|
102
102
|
*/
|
|
103
103
|
export declare const AdminMcpApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
104
104
|
/**
|
|
105
|
-
* Body: name (required) — display name resource_uri (required) — RFC 8707 canonical URI
|
|
105
|
+
* Body: name (required) — display name resource_uri (required) — RFC 8707 canonical URI: https:// (http:// only for loopback), no fragment, no user info, not a LumoAuth host, unique per organization after normalisation (same rules as the portal) endpoint_url (optional) — actual MCP endpoint description (optional) scopes_supported (optional) — array OR space/comma-separated string; omnibus scopes, offline_access and admin/scim scopes are refused (422) basic_scopes (optional) — subset of scopes_supported advertised in the 401 challenge and Protected Resource Metadata; no wildcards transport (optional) — defaults to \"http_streamable\" (\"http_sse\" is deprecated in MCP 2026-07-28) auth_mode (optional) — defaults to \"oauth\" token_lifetime (optional, default 3600) — 60..86400, else 422 tool_authorizer_client_ids (optional) — the MCP server\'s own OAuth clients that may call the per-tool authorization endpoint allowed_client_ids (optional) — array of this organization\'s OAuth client ids; unknown ids are a 422 (never persisted as policy) require_pkce (optional, default true) require_resource_param (optional, default true) require_dpop (optional, default false) — RFC 9449 sender-constrained tokens only
|
|
106
106
|
* @summary Register an MCP server
|
|
107
107
|
* @param {AdminMcpApiAdminMcpServersCreateRequest} requestParameters Request parameters.
|
|
108
108
|
* @param {*} [options] Override http request option.
|
|
@@ -141,7 +141,7 @@ export declare const AdminMcpApiFactory: (configuration?: Configuration, basePat
|
|
|
141
141
|
*/
|
|
142
142
|
export interface AdminMcpApiInterface {
|
|
143
143
|
/**
|
|
144
|
-
* Body: name (required) — display name resource_uri (required) — RFC 8707 canonical URI
|
|
144
|
+
* Body: name (required) — display name resource_uri (required) — RFC 8707 canonical URI: https:// (http:// only for loopback), no fragment, no user info, not a LumoAuth host, unique per organization after normalisation (same rules as the portal) endpoint_url (optional) — actual MCP endpoint description (optional) scopes_supported (optional) — array OR space/comma-separated string; omnibus scopes, offline_access and admin/scim scopes are refused (422) basic_scopes (optional) — subset of scopes_supported advertised in the 401 challenge and Protected Resource Metadata; no wildcards transport (optional) — defaults to \"http_streamable\" (\"http_sse\" is deprecated in MCP 2026-07-28) auth_mode (optional) — defaults to \"oauth\" token_lifetime (optional, default 3600) — 60..86400, else 422 tool_authorizer_client_ids (optional) — the MCP server\'s own OAuth clients that may call the per-tool authorization endpoint allowed_client_ids (optional) — array of this organization\'s OAuth client ids; unknown ids are a 422 (never persisted as policy) require_pkce (optional, default true) require_resource_param (optional, default true) require_dpop (optional, default false) — RFC 9449 sender-constrained tokens only
|
|
145
145
|
* @summary Register an MCP server
|
|
146
146
|
* @param {AdminMcpApiAdminMcpServersCreateRequest} requestParameters Request parameters.
|
|
147
147
|
* @param {*} [options] Override http request option.
|
|
@@ -249,7 +249,7 @@ export interface AdminMcpApiAdminMcpServersListRequest {
|
|
|
249
249
|
*/
|
|
250
250
|
export declare class AdminMcpApi extends BaseAPI implements AdminMcpApiInterface {
|
|
251
251
|
/**
|
|
252
|
-
* Body: name (required) — display name resource_uri (required) — RFC 8707 canonical URI
|
|
252
|
+
* Body: name (required) — display name resource_uri (required) — RFC 8707 canonical URI: https:// (http:// only for loopback), no fragment, no user info, not a LumoAuth host, unique per organization after normalisation (same rules as the portal) endpoint_url (optional) — actual MCP endpoint description (optional) scopes_supported (optional) — array OR space/comma-separated string; omnibus scopes, offline_access and admin/scim scopes are refused (422) basic_scopes (optional) — subset of scopes_supported advertised in the 401 challenge and Protected Resource Metadata; no wildcards transport (optional) — defaults to \"http_streamable\" (\"http_sse\" is deprecated in MCP 2026-07-28) auth_mode (optional) — defaults to \"oauth\" token_lifetime (optional, default 3600) — 60..86400, else 422 tool_authorizer_client_ids (optional) — the MCP server\'s own OAuth clients that may call the per-tool authorization endpoint allowed_client_ids (optional) — array of this organization\'s OAuth client ids; unknown ids are a 422 (never persisted as policy) require_pkce (optional, default true) require_resource_param (optional, default true) require_dpop (optional, default false) — RFC 9449 sender-constrained tokens only
|
|
253
253
|
* @summary Register an MCP server
|
|
254
254
|
* @param {AdminMcpApiAdminMcpServersCreateRequest} requestParameters Request parameters.
|
|
255
255
|
* @param {*} [options] Override http request option.
|
|
@@ -36,7 +36,7 @@ const base_1 = require("../base");
|
|
|
36
36
|
const AdminMcpApiAxiosParamCreator = function (configuration) {
|
|
37
37
|
return {
|
|
38
38
|
/**
|
|
39
|
-
* Body: name (required) — display name resource_uri (required) — RFC 8707 canonical URI
|
|
39
|
+
* Body: name (required) — display name resource_uri (required) — RFC 8707 canonical URI: https:// (http:// only for loopback), no fragment, no user info, not a LumoAuth host, unique per organization after normalisation (same rules as the portal) endpoint_url (optional) — actual MCP endpoint description (optional) scopes_supported (optional) — array OR space/comma-separated string; omnibus scopes, offline_access and admin/scim scopes are refused (422) basic_scopes (optional) — subset of scopes_supported advertised in the 401 challenge and Protected Resource Metadata; no wildcards transport (optional) — defaults to \"http_streamable\" (\"http_sse\" is deprecated in MCP 2026-07-28) auth_mode (optional) — defaults to \"oauth\" token_lifetime (optional, default 3600) — 60..86400, else 422 tool_authorizer_client_ids (optional) — the MCP server\'s own OAuth clients that may call the per-tool authorization endpoint allowed_client_ids (optional) — array of this organization\'s OAuth client ids; unknown ids are a 422 (never persisted as policy) require_pkce (optional, default true) require_resource_param (optional, default true) require_dpop (optional, default false) — RFC 9449 sender-constrained tokens only
|
|
40
40
|
* @summary Register an MCP server
|
|
41
41
|
* @param {string} orgId
|
|
42
42
|
* @param {*} [options] Override http request option.
|
|
@@ -190,7 +190,7 @@ const AdminMcpApiFp = function (configuration) {
|
|
|
190
190
|
const localVarAxiosParamCreator = (0, exports.AdminMcpApiAxiosParamCreator)(configuration);
|
|
191
191
|
return {
|
|
192
192
|
/**
|
|
193
|
-
* Body: name (required) — display name resource_uri (required) — RFC 8707 canonical URI
|
|
193
|
+
* Body: name (required) — display name resource_uri (required) — RFC 8707 canonical URI: https:// (http:// only for loopback), no fragment, no user info, not a LumoAuth host, unique per organization after normalisation (same rules as the portal) endpoint_url (optional) — actual MCP endpoint description (optional) scopes_supported (optional) — array OR space/comma-separated string; omnibus scopes, offline_access and admin/scim scopes are refused (422) basic_scopes (optional) — subset of scopes_supported advertised in the 401 challenge and Protected Resource Metadata; no wildcards transport (optional) — defaults to \"http_streamable\" (\"http_sse\" is deprecated in MCP 2026-07-28) auth_mode (optional) — defaults to \"oauth\" token_lifetime (optional, default 3600) — 60..86400, else 422 tool_authorizer_client_ids (optional) — the MCP server\'s own OAuth clients that may call the per-tool authorization endpoint allowed_client_ids (optional) — array of this organization\'s OAuth client ids; unknown ids are a 422 (never persisted as policy) require_pkce (optional, default true) require_resource_param (optional, default true) require_dpop (optional, default false) — RFC 9449 sender-constrained tokens only
|
|
194
194
|
* @summary Register an MCP server
|
|
195
195
|
* @param {string} orgId
|
|
196
196
|
* @param {*} [options] Override http request option.
|
|
@@ -266,7 +266,7 @@ const AdminMcpApiFactory = function (configuration, basePath, axios) {
|
|
|
266
266
|
const localVarFp = (0, exports.AdminMcpApiFp)(configuration);
|
|
267
267
|
return {
|
|
268
268
|
/**
|
|
269
|
-
* Body: name (required) — display name resource_uri (required) — RFC 8707 canonical URI
|
|
269
|
+
* Body: name (required) — display name resource_uri (required) — RFC 8707 canonical URI: https:// (http:// only for loopback), no fragment, no user info, not a LumoAuth host, unique per organization after normalisation (same rules as the portal) endpoint_url (optional) — actual MCP endpoint description (optional) scopes_supported (optional) — array OR space/comma-separated string; omnibus scopes, offline_access and admin/scim scopes are refused (422) basic_scopes (optional) — subset of scopes_supported advertised in the 401 challenge and Protected Resource Metadata; no wildcards transport (optional) — defaults to \"http_streamable\" (\"http_sse\" is deprecated in MCP 2026-07-28) auth_mode (optional) — defaults to \"oauth\" token_lifetime (optional, default 3600) — 60..86400, else 422 tool_authorizer_client_ids (optional) — the MCP server\'s own OAuth clients that may call the per-tool authorization endpoint allowed_client_ids (optional) — array of this organization\'s OAuth client ids; unknown ids are a 422 (never persisted as policy) require_pkce (optional, default true) require_resource_param (optional, default true) require_dpop (optional, default false) — RFC 9449 sender-constrained tokens only
|
|
270
270
|
* @summary Register an MCP server
|
|
271
271
|
* @param {AdminMcpApiAdminMcpServersCreateRequest} requestParameters Request parameters.
|
|
272
272
|
* @param {*} [options] Override http request option.
|
|
@@ -316,7 +316,7 @@ exports.AdminMcpApiFactory = AdminMcpApiFactory;
|
|
|
316
316
|
*/
|
|
317
317
|
class AdminMcpApi extends base_1.BaseAPI {
|
|
318
318
|
/**
|
|
319
|
-
* Body: name (required) — display name resource_uri (required) — RFC 8707 canonical URI
|
|
319
|
+
* Body: name (required) — display name resource_uri (required) — RFC 8707 canonical URI: https:// (http:// only for loopback), no fragment, no user info, not a LumoAuth host, unique per organization after normalisation (same rules as the portal) endpoint_url (optional) — actual MCP endpoint description (optional) scopes_supported (optional) — array OR space/comma-separated string; omnibus scopes, offline_access and admin/scim scopes are refused (422) basic_scopes (optional) — subset of scopes_supported advertised in the 401 challenge and Protected Resource Metadata; no wildcards transport (optional) — defaults to \"http_streamable\" (\"http_sse\" is deprecated in MCP 2026-07-28) auth_mode (optional) — defaults to \"oauth\" token_lifetime (optional, default 3600) — 60..86400, else 422 tool_authorizer_client_ids (optional) — the MCP server\'s own OAuth clients that may call the per-tool authorization endpoint allowed_client_ids (optional) — array of this organization\'s OAuth client ids; unknown ids are a 422 (never persisted as policy) require_pkce (optional, default true) require_resource_param (optional, default true) require_dpop (optional, default false) — RFC 9449 sender-constrained tokens only
|
|
320
320
|
* @summary Register an MCP server
|
|
321
321
|
* @param {AdminMcpApiAdminMcpServersCreateRequest} requestParameters Request parameters.
|
|
322
322
|
* @param {*} [options] Override http request option.
|
package/dist/api/agents-api.d.ts
CHANGED
|
@@ -50,7 +50,7 @@ export declare const AgentsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
50
50
|
*/
|
|
51
51
|
attest: (orgId: string, agentId: string, attestRequest: AttestRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
52
52
|
/**
|
|
53
|
-
*
|
|
53
|
+
* An AGENT asks about itself: \"may I invoke <server>/<tool>?\" — with its own credential, before it calls the tool. Zanzibar-backed allow/deny (tool-level or server-wide grant), audited either way. An MCP SERVER must not use this endpoint: it would have to forward the agent\'s token (MCP 2026-07-28 forbids token passthrough). Servers call POST /orgs/{orgId}/api/v1/mcp/servers/{serverId}/tools/authorize with their own client-credentials token instead ({@see \\McpAuthorizationController::authorizeTool()}). POST /orgs/{orgId}/api/v1/agents/me/mcp/authorize Body: { \"server_id\": \"mcp_0123…\", \"tool\": \"send_payment_reminder\" }
|
|
54
54
|
* @summary Per-MCP-tool authorization for the authenticated agent (dx B3).
|
|
55
55
|
* @param {string} orgId
|
|
56
56
|
* @param {AuthorizeMcpRequest} authorizeMcpRequest
|
|
@@ -136,7 +136,7 @@ export declare const AgentsApiFp: (configuration?: Configuration) => {
|
|
|
136
136
|
*/
|
|
137
137
|
attest(orgId: string, agentId: string, attestRequest: AttestRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AttestResponse>>;
|
|
138
138
|
/**
|
|
139
|
-
*
|
|
139
|
+
* An AGENT asks about itself: \"may I invoke <server>/<tool>?\" — with its own credential, before it calls the tool. Zanzibar-backed allow/deny (tool-level or server-wide grant), audited either way. An MCP SERVER must not use this endpoint: it would have to forward the agent\'s token (MCP 2026-07-28 forbids token passthrough). Servers call POST /orgs/{orgId}/api/v1/mcp/servers/{serverId}/tools/authorize with their own client-credentials token instead ({@see \\McpAuthorizationController::authorizeTool()}). POST /orgs/{orgId}/api/v1/agents/me/mcp/authorize Body: { \"server_id\": \"mcp_0123…\", \"tool\": \"send_payment_reminder\" }
|
|
140
140
|
* @summary Per-MCP-tool authorization for the authenticated agent (dx B3).
|
|
141
141
|
* @param {string} orgId
|
|
142
142
|
* @param {AuthorizeMcpRequest} authorizeMcpRequest
|
|
@@ -219,7 +219,7 @@ export declare const AgentsApiFactory: (configuration?: Configuration, basePath?
|
|
|
219
219
|
*/
|
|
220
220
|
attest(requestParameters: AgentsApiAttestRequest, options?: RawAxiosRequestConfig): AxiosPromise<AttestResponse>;
|
|
221
221
|
/**
|
|
222
|
-
*
|
|
222
|
+
* An AGENT asks about itself: \"may I invoke <server>/<tool>?\" — with its own credential, before it calls the tool. Zanzibar-backed allow/deny (tool-level or server-wide grant), audited either way. An MCP SERVER must not use this endpoint: it would have to forward the agent\'s token (MCP 2026-07-28 forbids token passthrough). Servers call POST /orgs/{orgId}/api/v1/mcp/servers/{serverId}/tools/authorize with their own client-credentials token instead ({@see \\McpAuthorizationController::authorizeTool()}). POST /orgs/{orgId}/api/v1/agents/me/mcp/authorize Body: { \"server_id\": \"mcp_0123…\", \"tool\": \"send_payment_reminder\" }
|
|
223
223
|
* @summary Per-MCP-tool authorization for the authenticated agent (dx B3).
|
|
224
224
|
* @param {AgentsApiAuthorizeMcpRequest} requestParameters Request parameters.
|
|
225
225
|
* @param {*} [options] Override http request option.
|
|
@@ -298,7 +298,7 @@ export interface AgentsApiInterface {
|
|
|
298
298
|
*/
|
|
299
299
|
attest(requestParameters: AgentsApiAttestRequest, options?: RawAxiosRequestConfig): AxiosPromise<AttestResponse>;
|
|
300
300
|
/**
|
|
301
|
-
*
|
|
301
|
+
* An AGENT asks about itself: \"may I invoke <server>/<tool>?\" — with its own credential, before it calls the tool. Zanzibar-backed allow/deny (tool-level or server-wide grant), audited either way. An MCP SERVER must not use this endpoint: it would have to forward the agent\'s token (MCP 2026-07-28 forbids token passthrough). Servers call POST /orgs/{orgId}/api/v1/mcp/servers/{serverId}/tools/authorize with their own client-credentials token instead ({@see \\McpAuthorizationController::authorizeTool()}). POST /orgs/{orgId}/api/v1/agents/me/mcp/authorize Body: { \"server_id\": \"mcp_0123…\", \"tool\": \"send_payment_reminder\" }
|
|
302
302
|
* @summary Per-MCP-tool authorization for the authenticated agent (dx B3).
|
|
303
303
|
* @param {AgentsApiAuthorizeMcpRequest} requestParameters Request parameters.
|
|
304
304
|
* @param {*} [options] Override http request option.
|
|
@@ -552,7 +552,7 @@ export declare class AgentsApi extends BaseAPI implements AgentsApiInterface {
|
|
|
552
552
|
*/
|
|
553
553
|
attest(requestParameters: AgentsApiAttestRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AttestResponse, any, {}>>;
|
|
554
554
|
/**
|
|
555
|
-
*
|
|
555
|
+
* An AGENT asks about itself: \"may I invoke <server>/<tool>?\" — with its own credential, before it calls the tool. Zanzibar-backed allow/deny (tool-level or server-wide grant), audited either way. An MCP SERVER must not use this endpoint: it would have to forward the agent\'s token (MCP 2026-07-28 forbids token passthrough). Servers call POST /orgs/{orgId}/api/v1/mcp/servers/{serverId}/tools/authorize with their own client-credentials token instead ({@see \\McpAuthorizationController::authorizeTool()}). POST /orgs/{orgId}/api/v1/agents/me/mcp/authorize Body: { \"server_id\": \"mcp_0123…\", \"tool\": \"send_payment_reminder\" }
|
|
556
556
|
* @summary Per-MCP-tool authorization for the authenticated agent (dx B3).
|
|
557
557
|
* @param {AgentsApiAuthorizeMcpRequest} requestParameters Request parameters.
|
|
558
558
|
* @param {*} [options] Override http request option.
|
package/dist/api/agents-api.js
CHANGED
|
@@ -118,7 +118,7 @@ const AgentsApiAxiosParamCreator = function (configuration) {
|
|
|
118
118
|
};
|
|
119
119
|
}),
|
|
120
120
|
/**
|
|
121
|
-
*
|
|
121
|
+
* An AGENT asks about itself: \"may I invoke <server>/<tool>?\" — with its own credential, before it calls the tool. Zanzibar-backed allow/deny (tool-level or server-wide grant), audited either way. An MCP SERVER must not use this endpoint: it would have to forward the agent\'s token (MCP 2026-07-28 forbids token passthrough). Servers call POST /orgs/{orgId}/api/v1/mcp/servers/{serverId}/tools/authorize with their own client-credentials token instead ({@see \\McpAuthorizationController::authorizeTool()}). POST /orgs/{orgId}/api/v1/agents/me/mcp/authorize Body: { \"server_id\": \"mcp_0123…\", \"tool\": \"send_payment_reminder\" }
|
|
122
122
|
* @summary Per-MCP-tool authorization for the authenticated agent (dx B3).
|
|
123
123
|
* @param {string} orgId
|
|
124
124
|
* @param {AuthorizeMcpRequest} authorizeMcpRequest
|
|
@@ -417,7 +417,7 @@ const AgentsApiFp = function (configuration) {
|
|
|
417
417
|
});
|
|
418
418
|
},
|
|
419
419
|
/**
|
|
420
|
-
*
|
|
420
|
+
* An AGENT asks about itself: \"may I invoke <server>/<tool>?\" — with its own credential, before it calls the tool. Zanzibar-backed allow/deny (tool-level or server-wide grant), audited either way. An MCP SERVER must not use this endpoint: it would have to forward the agent\'s token (MCP 2026-07-28 forbids token passthrough). Servers call POST /orgs/{orgId}/api/v1/mcp/servers/{serverId}/tools/authorize with their own client-credentials token instead ({@see \\McpAuthorizationController::authorizeTool()}). POST /orgs/{orgId}/api/v1/agents/me/mcp/authorize Body: { \"server_id\": \"mcp_0123…\", \"tool\": \"send_payment_reminder\" }
|
|
421
421
|
* @summary Per-MCP-tool authorization for the authenticated agent (dx B3).
|
|
422
422
|
* @param {string} orgId
|
|
423
423
|
* @param {AuthorizeMcpRequest} authorizeMcpRequest
|
|
@@ -562,7 +562,7 @@ const AgentsApiFactory = function (configuration, basePath, axios) {
|
|
|
562
562
|
return localVarFp.attest(requestParameters.orgId, requestParameters.agentId, requestParameters.attestRequest, options).then((request) => request(axios, basePath));
|
|
563
563
|
},
|
|
564
564
|
/**
|
|
565
|
-
*
|
|
565
|
+
* An AGENT asks about itself: \"may I invoke <server>/<tool>?\" — with its own credential, before it calls the tool. Zanzibar-backed allow/deny (tool-level or server-wide grant), audited either way. An MCP SERVER must not use this endpoint: it would have to forward the agent\'s token (MCP 2026-07-28 forbids token passthrough). Servers call POST /orgs/{orgId}/api/v1/mcp/servers/{serverId}/tools/authorize with their own client-credentials token instead ({@see \\McpAuthorizationController::authorizeTool()}). POST /orgs/{orgId}/api/v1/agents/me/mcp/authorize Body: { \"server_id\": \"mcp_0123…\", \"tool\": \"send_payment_reminder\" }
|
|
566
566
|
* @summary Per-MCP-tool authorization for the authenticated agent (dx B3).
|
|
567
567
|
* @param {AgentsApiAuthorizeMcpRequest} requestParameters Request parameters.
|
|
568
568
|
* @param {*} [options] Override http request option.
|
|
@@ -662,7 +662,7 @@ class AgentsApi extends base_1.BaseAPI {
|
|
|
662
662
|
return (0, exports.AgentsApiFp)(this.configuration).attest(requestParameters.orgId, requestParameters.agentId, requestParameters.attestRequest, options).then((request) => request(this.axios, this.basePath));
|
|
663
663
|
}
|
|
664
664
|
/**
|
|
665
|
-
*
|
|
665
|
+
* An AGENT asks about itself: \"may I invoke <server>/<tool>?\" — with its own credential, before it calls the tool. Zanzibar-backed allow/deny (tool-level or server-wide grant), audited either way. An MCP SERVER must not use this endpoint: it would have to forward the agent\'s token (MCP 2026-07-28 forbids token passthrough). Servers call POST /orgs/{orgId}/api/v1/mcp/servers/{serverId}/tools/authorize with their own client-credentials token instead ({@see \\McpAuthorizationController::authorizeTool()}). POST /orgs/{orgId}/api/v1/agents/me/mcp/authorize Body: { \"server_id\": \"mcp_0123…\", \"tool\": \"send_payment_reminder\" }
|
|
666
666
|
* @summary Per-MCP-tool authorization for the authenticated agent (dx B3).
|
|
667
667
|
* @param {AgentsApiAuthorizeMcpRequest} requestParameters Request parameters.
|
|
668
668
|
* @param {*} [options] Override http request option.
|
package/dist/api/mcp-api.d.ts
CHANGED
|
@@ -16,6 +16,8 @@ import type { GetProtectedResourceMetadataRoot200Response } from '../models';
|
|
|
16
16
|
import type { GetServerChallengeResponse } from '../models';
|
|
17
17
|
import type { GetServerResponse } from '../models';
|
|
18
18
|
import type { ListServersResponse } from '../models';
|
|
19
|
+
import type { McpServerToolAuthorizeRequest } from '../models';
|
|
20
|
+
import type { McpServerToolAuthorizeResponse } from '../models';
|
|
19
21
|
import type { ProtectedResourceMetadata } from '../models';
|
|
20
22
|
/**
|
|
21
23
|
* McpApi - axios parameter creator
|
|
@@ -65,6 +67,16 @@ export declare const McpApiAxiosParamCreator: (configuration?: Configuration) =>
|
|
|
65
67
|
* @throws {RequiredError}
|
|
66
68
|
*/
|
|
67
69
|
listServers: (orgId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
70
|
+
/**
|
|
71
|
+
* 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.
|
|
72
|
+
* @summary Per-tool authorization for an MCP server (server credential)
|
|
73
|
+
* @param {string} orgId
|
|
74
|
+
* @param {string} serverId
|
|
75
|
+
* @param {McpServerToolAuthorizeRequest} mcpServerToolAuthorizeRequest
|
|
76
|
+
* @param {*} [options] Override http request option.
|
|
77
|
+
* @throws {RequiredError}
|
|
78
|
+
*/
|
|
79
|
+
mcpServerToolAuthorize: (orgId: string, serverId: string, mcpServerToolAuthorizeRequest: McpServerToolAuthorizeRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
68
80
|
/**
|
|
69
81
|
* Identical to GET; the HTTP method is only recorded in the audit trail.
|
|
70
82
|
* @summary Simulated MCP server authorization challenge (POST)
|
|
@@ -123,6 +135,16 @@ export declare const McpApiFp: (configuration?: Configuration) => {
|
|
|
123
135
|
* @throws {RequiredError}
|
|
124
136
|
*/
|
|
125
137
|
listServers(orgId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListServersResponse>>;
|
|
138
|
+
/**
|
|
139
|
+
* 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.
|
|
140
|
+
* @summary Per-tool authorization for an MCP server (server credential)
|
|
141
|
+
* @param {string} orgId
|
|
142
|
+
* @param {string} serverId
|
|
143
|
+
* @param {McpServerToolAuthorizeRequest} mcpServerToolAuthorizeRequest
|
|
144
|
+
* @param {*} [options] Override http request option.
|
|
145
|
+
* @throws {RequiredError}
|
|
146
|
+
*/
|
|
147
|
+
mcpServerToolAuthorize(orgId: string, serverId: string, mcpServerToolAuthorizeRequest: McpServerToolAuthorizeRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<McpServerToolAuthorizeResponse>>;
|
|
126
148
|
/**
|
|
127
149
|
* Identical to GET; the HTTP method is only recorded in the audit trail.
|
|
128
150
|
* @summary Simulated MCP server authorization challenge (POST)
|
|
@@ -178,6 +200,14 @@ export declare const McpApiFactory: (configuration?: Configuration, basePath?: s
|
|
|
178
200
|
* @throws {RequiredError}
|
|
179
201
|
*/
|
|
180
202
|
listServers(requestParameters: McpApiListServersRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListServersResponse>;
|
|
203
|
+
/**
|
|
204
|
+
* 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.
|
|
205
|
+
* @summary Per-tool authorization for an MCP server (server credential)
|
|
206
|
+
* @param {McpApiMcpServerToolAuthorizeRequest} requestParameters Request parameters.
|
|
207
|
+
* @param {*} [options] Override http request option.
|
|
208
|
+
* @throws {RequiredError}
|
|
209
|
+
*/
|
|
210
|
+
mcpServerToolAuthorize(requestParameters: McpApiMcpServerToolAuthorizeRequest, options?: RawAxiosRequestConfig): AxiosPromise<McpServerToolAuthorizeResponse>;
|
|
181
211
|
/**
|
|
182
212
|
* Identical to GET; the HTTP method is only recorded in the audit trail.
|
|
183
213
|
* @summary Simulated MCP server authorization challenge (POST)
|
|
@@ -238,6 +268,15 @@ export interface McpApiInterface {
|
|
|
238
268
|
* @memberof McpApiInterface
|
|
239
269
|
*/
|
|
240
270
|
listServers(requestParameters: McpApiListServersRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListServersResponse>;
|
|
271
|
+
/**
|
|
272
|
+
* 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.
|
|
273
|
+
* @summary Per-tool authorization for an MCP server (server credential)
|
|
274
|
+
* @param {McpApiMcpServerToolAuthorizeRequest} requestParameters Request parameters.
|
|
275
|
+
* @param {*} [options] Override http request option.
|
|
276
|
+
* @throws {RequiredError}
|
|
277
|
+
* @memberof McpApiInterface
|
|
278
|
+
*/
|
|
279
|
+
mcpServerToolAuthorize(requestParameters: McpApiMcpServerToolAuthorizeRequest, options?: RawAxiosRequestConfig): AxiosPromise<McpServerToolAuthorizeResponse>;
|
|
241
280
|
/**
|
|
242
281
|
* Identical to GET; the HTTP method is only recorded in the audit trail.
|
|
243
282
|
* @summary Simulated MCP server authorization challenge (POST)
|
|
@@ -331,6 +370,31 @@ export interface McpApiListServersRequest {
|
|
|
331
370
|
*/
|
|
332
371
|
readonly orgId: string;
|
|
333
372
|
}
|
|
373
|
+
/**
|
|
374
|
+
* Request parameters for mcpServerToolAuthorize operation in McpApi.
|
|
375
|
+
* @export
|
|
376
|
+
* @interface McpApiMcpServerToolAuthorizeRequest
|
|
377
|
+
*/
|
|
378
|
+
export interface McpApiMcpServerToolAuthorizeRequest {
|
|
379
|
+
/**
|
|
380
|
+
*
|
|
381
|
+
* @type {string}
|
|
382
|
+
* @memberof McpApiMcpServerToolAuthorize
|
|
383
|
+
*/
|
|
384
|
+
readonly orgId: string;
|
|
385
|
+
/**
|
|
386
|
+
*
|
|
387
|
+
* @type {string}
|
|
388
|
+
* @memberof McpApiMcpServerToolAuthorize
|
|
389
|
+
*/
|
|
390
|
+
readonly serverId: string;
|
|
391
|
+
/**
|
|
392
|
+
*
|
|
393
|
+
* @type {McpServerToolAuthorizeRequest}
|
|
394
|
+
* @memberof McpApiMcpServerToolAuthorize
|
|
395
|
+
*/
|
|
396
|
+
readonly mcpServerToolAuthorizeRequest: McpServerToolAuthorizeRequest;
|
|
397
|
+
}
|
|
334
398
|
/**
|
|
335
399
|
* Request parameters for postServerChallenge operation in McpApi.
|
|
336
400
|
* @export
|
|
@@ -402,6 +466,15 @@ export declare class McpApi extends BaseAPI implements McpApiInterface {
|
|
|
402
466
|
* @memberof McpApi
|
|
403
467
|
*/
|
|
404
468
|
listServers(requestParameters: McpApiListServersRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListServersResponse, any, {}>>;
|
|
469
|
+
/**
|
|
470
|
+
* 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.
|
|
471
|
+
* @summary Per-tool authorization for an MCP server (server credential)
|
|
472
|
+
* @param {McpApiMcpServerToolAuthorizeRequest} requestParameters Request parameters.
|
|
473
|
+
* @param {*} [options] Override http request option.
|
|
474
|
+
* @throws {RequiredError}
|
|
475
|
+
* @memberof McpApi
|
|
476
|
+
*/
|
|
477
|
+
mcpServerToolAuthorize(requestParameters: McpApiMcpServerToolAuthorizeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<McpServerToolAuthorizeResponse, any, {}>>;
|
|
405
478
|
/**
|
|
406
479
|
* Identical to GET; the HTTP method is only recorded in the audit trail.
|
|
407
480
|
* @summary Simulated MCP server authorization challenge (POST)
|
package/dist/api/mcp-api.js
CHANGED
|
@@ -205,6 +205,49 @@ const McpApiAxiosParamCreator = function (configuration) {
|
|
|
205
205
|
options: localVarRequestOptions,
|
|
206
206
|
};
|
|
207
207
|
}),
|
|
208
|
+
/**
|
|
209
|
+
* 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.
|
|
210
|
+
* @summary Per-tool authorization for an MCP server (server credential)
|
|
211
|
+
* @param {string} orgId
|
|
212
|
+
* @param {string} serverId
|
|
213
|
+
* @param {McpServerToolAuthorizeRequest} mcpServerToolAuthorizeRequest
|
|
214
|
+
* @param {*} [options] Override http request option.
|
|
215
|
+
* @throws {RequiredError}
|
|
216
|
+
*/
|
|
217
|
+
mcpServerToolAuthorize: (orgId_1, serverId_1, mcpServerToolAuthorizeRequest_1, ...args_1) => __awaiter(this, [orgId_1, serverId_1, mcpServerToolAuthorizeRequest_1, ...args_1], void 0, function* (orgId, serverId, mcpServerToolAuthorizeRequest, options = {}) {
|
|
218
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
219
|
+
(0, common_1.assertParamExists)('mcpServerToolAuthorize', 'orgId', orgId);
|
|
220
|
+
// verify required parameter 'serverId' is not null or undefined
|
|
221
|
+
(0, common_1.assertParamExists)('mcpServerToolAuthorize', 'serverId', serverId);
|
|
222
|
+
// verify required parameter 'mcpServerToolAuthorizeRequest' is not null or undefined
|
|
223
|
+
(0, common_1.assertParamExists)('mcpServerToolAuthorize', 'mcpServerToolAuthorizeRequest', mcpServerToolAuthorizeRequest);
|
|
224
|
+
const localVarPath = `/orgs/{orgId}/api/v1/mcp/servers/{serverId}/tools/authorize`
|
|
225
|
+
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)))
|
|
226
|
+
.replace(`{${"serverId"}}`, encodeURIComponent(String(serverId)));
|
|
227
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
228
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
229
|
+
let baseOptions;
|
|
230
|
+
if (configuration) {
|
|
231
|
+
baseOptions = configuration.baseOptions;
|
|
232
|
+
}
|
|
233
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
234
|
+
const localVarHeaderParameter = {};
|
|
235
|
+
const localVarQueryParameter = {};
|
|
236
|
+
// authentication ApiKeyAuth required
|
|
237
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-API-Key", configuration);
|
|
238
|
+
// authentication BearerAuth required
|
|
239
|
+
// http bearer authentication required
|
|
240
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
241
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
242
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
243
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
244
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
245
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(mcpServerToolAuthorizeRequest, localVarRequestOptions, configuration);
|
|
246
|
+
return {
|
|
247
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
248
|
+
options: localVarRequestOptions,
|
|
249
|
+
};
|
|
250
|
+
}),
|
|
208
251
|
/**
|
|
209
252
|
* Identical to GET; the HTTP method is only recorded in the audit trail.
|
|
210
253
|
* @summary Simulated MCP server authorization challenge (POST)
|
|
@@ -334,6 +377,24 @@ const McpApiFp = function (configuration) {
|
|
|
334
377
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
335
378
|
});
|
|
336
379
|
},
|
|
380
|
+
/**
|
|
381
|
+
* 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.
|
|
382
|
+
* @summary Per-tool authorization for an MCP server (server credential)
|
|
383
|
+
* @param {string} orgId
|
|
384
|
+
* @param {string} serverId
|
|
385
|
+
* @param {McpServerToolAuthorizeRequest} mcpServerToolAuthorizeRequest
|
|
386
|
+
* @param {*} [options] Override http request option.
|
|
387
|
+
* @throws {RequiredError}
|
|
388
|
+
*/
|
|
389
|
+
mcpServerToolAuthorize(orgId, serverId, mcpServerToolAuthorizeRequest, options) {
|
|
390
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
391
|
+
var _a, _b, _c;
|
|
392
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.mcpServerToolAuthorize(orgId, serverId, mcpServerToolAuthorizeRequest, options);
|
|
393
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
394
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['McpApi.mcpServerToolAuthorize']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
395
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
396
|
+
});
|
|
397
|
+
},
|
|
337
398
|
/**
|
|
338
399
|
* Identical to GET; the HTTP method is only recorded in the audit trail.
|
|
339
400
|
* @summary Simulated MCP server authorization challenge (POST)
|
|
@@ -411,6 +472,16 @@ const McpApiFactory = function (configuration, basePath, axios) {
|
|
|
411
472
|
listServers(requestParameters, options) {
|
|
412
473
|
return localVarFp.listServers(requestParameters.orgId, options).then((request) => request(axios, basePath));
|
|
413
474
|
},
|
|
475
|
+
/**
|
|
476
|
+
* 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.
|
|
477
|
+
* @summary Per-tool authorization for an MCP server (server credential)
|
|
478
|
+
* @param {McpApiMcpServerToolAuthorizeRequest} requestParameters Request parameters.
|
|
479
|
+
* @param {*} [options] Override http request option.
|
|
480
|
+
* @throws {RequiredError}
|
|
481
|
+
*/
|
|
482
|
+
mcpServerToolAuthorize(requestParameters, options) {
|
|
483
|
+
return localVarFp.mcpServerToolAuthorize(requestParameters.orgId, requestParameters.serverId, requestParameters.mcpServerToolAuthorizeRequest, options).then((request) => request(axios, basePath));
|
|
484
|
+
},
|
|
414
485
|
/**
|
|
415
486
|
* Identical to GET; the HTTP method is only recorded in the audit trail.
|
|
416
487
|
* @summary Simulated MCP server authorization challenge (POST)
|
|
@@ -486,6 +557,17 @@ class McpApi extends base_1.BaseAPI {
|
|
|
486
557
|
listServers(requestParameters, options) {
|
|
487
558
|
return (0, exports.McpApiFp)(this.configuration).listServers(requestParameters.orgId, options).then((request) => request(this.axios, this.basePath));
|
|
488
559
|
}
|
|
560
|
+
/**
|
|
561
|
+
* 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.
|
|
562
|
+
* @summary Per-tool authorization for an MCP server (server credential)
|
|
563
|
+
* @param {McpApiMcpServerToolAuthorizeRequest} requestParameters Request parameters.
|
|
564
|
+
* @param {*} [options] Override http request option.
|
|
565
|
+
* @throws {RequiredError}
|
|
566
|
+
* @memberof McpApi
|
|
567
|
+
*/
|
|
568
|
+
mcpServerToolAuthorize(requestParameters, options) {
|
|
569
|
+
return (0, exports.McpApiFp)(this.configuration).mcpServerToolAuthorize(requestParameters.orgId, requestParameters.serverId, requestParameters.mcpServerToolAuthorizeRequest, options).then((request) => request(this.axios, this.basePath));
|
|
570
|
+
}
|
|
489
571
|
/**
|
|
490
572
|
* Identical to GET; the HTTP method is only recorded in the audit trail.
|
|
491
573
|
* @summary Simulated MCP server authorization challenge (POST)
|
|
@@ -22,7 +22,7 @@ import type { OpenIdConfiguration } from '../models';
|
|
|
22
22
|
*/
|
|
23
23
|
export declare const WellKnownApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
24
24
|
/**
|
|
25
|
-
* 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.
|
|
25
|
+
* 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.
|
|
26
26
|
* @summary OAuth 2.0 authorization server metadata (RFC 8414)
|
|
27
27
|
* @param {string} orgId
|
|
28
28
|
* @param {*} [options] Override http request option.
|
|
@@ -38,7 +38,7 @@ export declare const WellKnownApiAxiosParamCreator: (configuration?: Configurati
|
|
|
38
38
|
*/
|
|
39
39
|
getJwks: (orgId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
40
40
|
/**
|
|
41
|
-
* 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.
|
|
41
|
+
* 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.
|
|
42
42
|
* @summary OpenID Provider configuration (OIDC Discovery 1.0)
|
|
43
43
|
* @param {string} orgId
|
|
44
44
|
* @param {*} [options] Override http request option.
|
|
@@ -60,7 +60,7 @@ export declare const WellKnownApiAxiosParamCreator: (configuration?: Configurati
|
|
|
60
60
|
*/
|
|
61
61
|
export declare const WellKnownApiFp: (configuration?: Configuration) => {
|
|
62
62
|
/**
|
|
63
|
-
* 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.
|
|
63
|
+
* 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.
|
|
64
64
|
* @summary OAuth 2.0 authorization server metadata (RFC 8414)
|
|
65
65
|
* @param {string} orgId
|
|
66
66
|
* @param {*} [options] Override http request option.
|
|
@@ -76,7 +76,7 @@ export declare const WellKnownApiFp: (configuration?: Configuration) => {
|
|
|
76
76
|
*/
|
|
77
77
|
getJwks(orgId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonWebKeySet>>;
|
|
78
78
|
/**
|
|
79
|
-
* 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.
|
|
79
|
+
* 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.
|
|
80
80
|
* @summary OpenID Provider configuration (OIDC Discovery 1.0)
|
|
81
81
|
* @param {string} orgId
|
|
82
82
|
* @param {*} [options] Override http request option.
|
|
@@ -98,7 +98,7 @@ export declare const WellKnownApiFp: (configuration?: Configuration) => {
|
|
|
98
98
|
*/
|
|
99
99
|
export declare const WellKnownApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
100
100
|
/**
|
|
101
|
-
* 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.
|
|
101
|
+
* 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.
|
|
102
102
|
* @summary OAuth 2.0 authorization server metadata (RFC 8414)
|
|
103
103
|
* @param {WellKnownApiGetAuthorizationServerMetadataRequest} requestParameters Request parameters.
|
|
104
104
|
* @param {*} [options] Override http request option.
|
|
@@ -114,7 +114,7 @@ export declare const WellKnownApiFactory: (configuration?: Configuration, basePa
|
|
|
114
114
|
*/
|
|
115
115
|
getJwks(requestParameters: WellKnownApiGetJwksRequest, options?: RawAxiosRequestConfig): AxiosPromise<JsonWebKeySet>;
|
|
116
116
|
/**
|
|
117
|
-
* 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.
|
|
117
|
+
* 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.
|
|
118
118
|
* @summary OpenID Provider configuration (OIDC Discovery 1.0)
|
|
119
119
|
* @param {WellKnownApiGetOpenidConfigurationRequest} requestParameters Request parameters.
|
|
120
120
|
* @param {*} [options] Override http request option.
|
|
@@ -137,7 +137,7 @@ export declare const WellKnownApiFactory: (configuration?: Configuration, basePa
|
|
|
137
137
|
*/
|
|
138
138
|
export interface WellKnownApiInterface {
|
|
139
139
|
/**
|
|
140
|
-
* 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.
|
|
140
|
+
* 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.
|
|
141
141
|
* @summary OAuth 2.0 authorization server metadata (RFC 8414)
|
|
142
142
|
* @param {WellKnownApiGetAuthorizationServerMetadataRequest} requestParameters Request parameters.
|
|
143
143
|
* @param {*} [options] Override http request option.
|
|
@@ -155,7 +155,7 @@ export interface WellKnownApiInterface {
|
|
|
155
155
|
*/
|
|
156
156
|
getJwks(requestParameters: WellKnownApiGetJwksRequest, options?: RawAxiosRequestConfig): AxiosPromise<JsonWebKeySet>;
|
|
157
157
|
/**
|
|
158
|
-
* 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.
|
|
158
|
+
* 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.
|
|
159
159
|
* @summary OpenID Provider configuration (OIDC Discovery 1.0)
|
|
160
160
|
* @param {WellKnownApiGetOpenidConfigurationRequest} requestParameters Request parameters.
|
|
161
161
|
* @param {*} [options] Override http request option.
|
|
@@ -233,7 +233,7 @@ export interface WellKnownApiGetSsfConfigurationRequest {
|
|
|
233
233
|
*/
|
|
234
234
|
export declare class WellKnownApi extends BaseAPI implements WellKnownApiInterface {
|
|
235
235
|
/**
|
|
236
|
-
* 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.
|
|
236
|
+
* 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.
|
|
237
237
|
* @summary OAuth 2.0 authorization server metadata (RFC 8414)
|
|
238
238
|
* @param {WellKnownApiGetAuthorizationServerMetadataRequest} requestParameters Request parameters.
|
|
239
239
|
* @param {*} [options] Override http request option.
|
|
@@ -251,7 +251,7 @@ export declare class WellKnownApi extends BaseAPI implements WellKnownApiInterfa
|
|
|
251
251
|
*/
|
|
252
252
|
getJwks(requestParameters: WellKnownApiGetJwksRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<JsonWebKeySet, any, {}>>;
|
|
253
253
|
/**
|
|
254
|
-
* 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.
|
|
254
|
+
* 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.
|
|
255
255
|
* @summary OpenID Provider configuration (OIDC Discovery 1.0)
|
|
256
256
|
* @param {WellKnownApiGetOpenidConfigurationRequest} requestParameters Request parameters.
|
|
257
257
|
* @param {*} [options] Override http request option.
|