@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
|
@@ -71,6 +71,44 @@ export const AdminOAuthClientsApiAxiosParamCreator = function (configuration) {
|
|
|
71
71
|
options: localVarRequestOptions,
|
|
72
72
|
};
|
|
73
73
|
}),
|
|
74
|
+
/**
|
|
75
|
+
* Login settings use the same keys as the organization branding settings (GET /settings/branding); a missing or null value means \"same as the organization\".
|
|
76
|
+
* @summary Get an OAuth client\'s login and consent page branding
|
|
77
|
+
* @param {string} orgId
|
|
78
|
+
* @param {string} clientId
|
|
79
|
+
* @param {*} [options] Override http request option.
|
|
80
|
+
* @throws {RequiredError}
|
|
81
|
+
*/
|
|
82
|
+
adminClientsGetBranding: (orgId_1, clientId_1, ...args_1) => __awaiter(this, [orgId_1, clientId_1, ...args_1], void 0, function* (orgId, clientId, options = {}) {
|
|
83
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
84
|
+
assertParamExists('adminClientsGetBranding', 'orgId', orgId);
|
|
85
|
+
// verify required parameter 'clientId' is not null or undefined
|
|
86
|
+
assertParamExists('adminClientsGetBranding', 'clientId', clientId);
|
|
87
|
+
const localVarPath = `/orgs/{orgId}/api/v1/admin/clients/{clientId}/branding`
|
|
88
|
+
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)))
|
|
89
|
+
.replace(`{${"clientId"}}`, encodeURIComponent(String(clientId)));
|
|
90
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
91
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
92
|
+
let baseOptions;
|
|
93
|
+
if (configuration) {
|
|
94
|
+
baseOptions = configuration.baseOptions;
|
|
95
|
+
}
|
|
96
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
97
|
+
const localVarHeaderParameter = {};
|
|
98
|
+
const localVarQueryParameter = {};
|
|
99
|
+
// authentication ApiKeyAuth required
|
|
100
|
+
yield setApiKeyToObject(localVarHeaderParameter, "X-API-Key", configuration);
|
|
101
|
+
// authentication BearerAuth required
|
|
102
|
+
// http bearer authentication required
|
|
103
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
104
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
105
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
106
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
107
|
+
return {
|
|
108
|
+
url: toPathString(localVarUrlObj),
|
|
109
|
+
options: localVarRequestOptions,
|
|
110
|
+
};
|
|
111
|
+
}),
|
|
74
112
|
/**
|
|
75
113
|
*
|
|
76
114
|
* @summary Create an OAuth client
|
|
@@ -329,6 +367,47 @@ export const AdminOAuthClientsApiAxiosParamCreator = function (configuration) {
|
|
|
329
367
|
options: localVarRequestOptions,
|
|
330
368
|
};
|
|
331
369
|
}),
|
|
370
|
+
/**
|
|
371
|
+
*
|
|
372
|
+
* @summary Change keys of an OAuth client\'s login and/or consent page branding
|
|
373
|
+
* @param {string} orgId
|
|
374
|
+
* @param {string} clientId
|
|
375
|
+
* @param {AdminClientsGetBrandingResponseData} [adminClientsGetBrandingResponseData]
|
|
376
|
+
* @param {*} [options] Override http request option.
|
|
377
|
+
* @throws {RequiredError}
|
|
378
|
+
*/
|
|
379
|
+
patchAdminClientsUpdateBranding: (orgId_1, clientId_1, adminClientsGetBrandingResponseData_1, ...args_1) => __awaiter(this, [orgId_1, clientId_1, adminClientsGetBrandingResponseData_1, ...args_1], void 0, function* (orgId, clientId, adminClientsGetBrandingResponseData, options = {}) {
|
|
380
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
381
|
+
assertParamExists('patchAdminClientsUpdateBranding', 'orgId', orgId);
|
|
382
|
+
// verify required parameter 'clientId' is not null or undefined
|
|
383
|
+
assertParamExists('patchAdminClientsUpdateBranding', 'clientId', clientId);
|
|
384
|
+
const localVarPath = `/orgs/{orgId}/api/v1/admin/clients/{clientId}/branding`
|
|
385
|
+
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)))
|
|
386
|
+
.replace(`{${"clientId"}}`, encodeURIComponent(String(clientId)));
|
|
387
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
388
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
389
|
+
let baseOptions;
|
|
390
|
+
if (configuration) {
|
|
391
|
+
baseOptions = configuration.baseOptions;
|
|
392
|
+
}
|
|
393
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
394
|
+
const localVarHeaderParameter = {};
|
|
395
|
+
const localVarQueryParameter = {};
|
|
396
|
+
// authentication ApiKeyAuth required
|
|
397
|
+
yield setApiKeyToObject(localVarHeaderParameter, "X-API-Key", configuration);
|
|
398
|
+
// authentication BearerAuth required
|
|
399
|
+
// http bearer authentication required
|
|
400
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
401
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
402
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
403
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
404
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
405
|
+
localVarRequestOptions.data = serializeDataIfNeeded(adminClientsGetBrandingResponseData, localVarRequestOptions, configuration);
|
|
406
|
+
return {
|
|
407
|
+
url: toPathString(localVarUrlObj),
|
|
408
|
+
options: localVarRequestOptions,
|
|
409
|
+
};
|
|
410
|
+
}),
|
|
332
411
|
/**
|
|
333
412
|
*
|
|
334
413
|
* @summary Update an OAuth client
|
|
@@ -367,6 +446,47 @@ export const AdminOAuthClientsApiAxiosParamCreator = function (configuration) {
|
|
|
367
446
|
options: localVarRequestOptions,
|
|
368
447
|
};
|
|
369
448
|
}),
|
|
449
|
+
/**
|
|
450
|
+
*
|
|
451
|
+
* @summary Replace an OAuth client\'s login and/or consent page branding
|
|
452
|
+
* @param {string} orgId
|
|
453
|
+
* @param {string} clientId
|
|
454
|
+
* @param {PutAdminClientsUpdateBrandingRequest} [putAdminClientsUpdateBrandingRequest]
|
|
455
|
+
* @param {*} [options] Override http request option.
|
|
456
|
+
* @throws {RequiredError}
|
|
457
|
+
*/
|
|
458
|
+
putAdminClientsUpdateBranding: (orgId_1, clientId_1, putAdminClientsUpdateBrandingRequest_1, ...args_1) => __awaiter(this, [orgId_1, clientId_1, putAdminClientsUpdateBrandingRequest_1, ...args_1], void 0, function* (orgId, clientId, putAdminClientsUpdateBrandingRequest, options = {}) {
|
|
459
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
460
|
+
assertParamExists('putAdminClientsUpdateBranding', 'orgId', orgId);
|
|
461
|
+
// verify required parameter 'clientId' is not null or undefined
|
|
462
|
+
assertParamExists('putAdminClientsUpdateBranding', 'clientId', clientId);
|
|
463
|
+
const localVarPath = `/orgs/{orgId}/api/v1/admin/clients/{clientId}/branding`
|
|
464
|
+
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)))
|
|
465
|
+
.replace(`{${"clientId"}}`, encodeURIComponent(String(clientId)));
|
|
466
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
467
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
468
|
+
let baseOptions;
|
|
469
|
+
if (configuration) {
|
|
470
|
+
baseOptions = configuration.baseOptions;
|
|
471
|
+
}
|
|
472
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
473
|
+
const localVarHeaderParameter = {};
|
|
474
|
+
const localVarQueryParameter = {};
|
|
475
|
+
// authentication ApiKeyAuth required
|
|
476
|
+
yield setApiKeyToObject(localVarHeaderParameter, "X-API-Key", configuration);
|
|
477
|
+
// authentication BearerAuth required
|
|
478
|
+
// http bearer authentication required
|
|
479
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
480
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
481
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
482
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
483
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
484
|
+
localVarRequestOptions.data = serializeDataIfNeeded(putAdminClientsUpdateBrandingRequest, localVarRequestOptions, configuration);
|
|
485
|
+
return {
|
|
486
|
+
url: toPathString(localVarUrlObj),
|
|
487
|
+
options: localVarRequestOptions,
|
|
488
|
+
};
|
|
489
|
+
}),
|
|
370
490
|
/**
|
|
371
491
|
*
|
|
372
492
|
* @summary Rotate an OAuth client secret
|
|
@@ -507,6 +627,23 @@ export const AdminOAuthClientsApiFp = function (configuration) {
|
|
|
507
627
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
508
628
|
});
|
|
509
629
|
},
|
|
630
|
+
/**
|
|
631
|
+
* Login settings use the same keys as the organization branding settings (GET /settings/branding); a missing or null value means \"same as the organization\".
|
|
632
|
+
* @summary Get an OAuth client\'s login and consent page branding
|
|
633
|
+
* @param {string} orgId
|
|
634
|
+
* @param {string} clientId
|
|
635
|
+
* @param {*} [options] Override http request option.
|
|
636
|
+
* @throws {RequiredError}
|
|
637
|
+
*/
|
|
638
|
+
adminClientsGetBranding(orgId, clientId, options) {
|
|
639
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
640
|
+
var _a, _b, _c;
|
|
641
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminClientsGetBranding(orgId, clientId, options);
|
|
642
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
643
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminOAuthClientsApi.adminClientsGetBranding']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
644
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
645
|
+
});
|
|
646
|
+
},
|
|
510
647
|
/**
|
|
511
648
|
*
|
|
512
649
|
* @summary Create an OAuth client
|
|
@@ -624,6 +761,24 @@ export const AdminOAuthClientsApiFp = function (configuration) {
|
|
|
624
761
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
625
762
|
});
|
|
626
763
|
},
|
|
764
|
+
/**
|
|
765
|
+
*
|
|
766
|
+
* @summary Change keys of an OAuth client\'s login and/or consent page branding
|
|
767
|
+
* @param {string} orgId
|
|
768
|
+
* @param {string} clientId
|
|
769
|
+
* @param {AdminClientsGetBrandingResponseData} [adminClientsGetBrandingResponseData]
|
|
770
|
+
* @param {*} [options] Override http request option.
|
|
771
|
+
* @throws {RequiredError}
|
|
772
|
+
*/
|
|
773
|
+
patchAdminClientsUpdateBranding(orgId, clientId, adminClientsGetBrandingResponseData, options) {
|
|
774
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
775
|
+
var _a, _b, _c;
|
|
776
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.patchAdminClientsUpdateBranding(orgId, clientId, adminClientsGetBrandingResponseData, options);
|
|
777
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
778
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminOAuthClientsApi.patchAdminClientsUpdateBranding']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
779
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
780
|
+
});
|
|
781
|
+
},
|
|
627
782
|
/**
|
|
628
783
|
*
|
|
629
784
|
* @summary Update an OAuth client
|
|
@@ -641,6 +796,24 @@ export const AdminOAuthClientsApiFp = function (configuration) {
|
|
|
641
796
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
642
797
|
});
|
|
643
798
|
},
|
|
799
|
+
/**
|
|
800
|
+
*
|
|
801
|
+
* @summary Replace an OAuth client\'s login and/or consent page branding
|
|
802
|
+
* @param {string} orgId
|
|
803
|
+
* @param {string} clientId
|
|
804
|
+
* @param {PutAdminClientsUpdateBrandingRequest} [putAdminClientsUpdateBrandingRequest]
|
|
805
|
+
* @param {*} [options] Override http request option.
|
|
806
|
+
* @throws {RequiredError}
|
|
807
|
+
*/
|
|
808
|
+
putAdminClientsUpdateBranding(orgId, clientId, putAdminClientsUpdateBrandingRequest, options) {
|
|
809
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
810
|
+
var _a, _b, _c;
|
|
811
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.putAdminClientsUpdateBranding(orgId, clientId, putAdminClientsUpdateBrandingRequest, options);
|
|
812
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
813
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminOAuthClientsApi.putAdminClientsUpdateBranding']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
814
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
815
|
+
});
|
|
816
|
+
},
|
|
644
817
|
/**
|
|
645
818
|
*
|
|
646
819
|
* @summary Rotate an OAuth client secret
|
|
@@ -711,6 +884,16 @@ export const AdminOAuthClientsApiFactory = function (configuration, basePath, ax
|
|
|
711
884
|
adminClientsCimdCheck(requestParameters, options) {
|
|
712
885
|
return localVarFp.adminClientsCimdCheck(requestParameters.orgId, requestParameters.adminClientsCimdCheckRequest, options).then((request) => request(axios, basePath));
|
|
713
886
|
},
|
|
887
|
+
/**
|
|
888
|
+
* Login settings use the same keys as the organization branding settings (GET /settings/branding); a missing or null value means \"same as the organization\".
|
|
889
|
+
* @summary Get an OAuth client\'s login and consent page branding
|
|
890
|
+
* @param {AdminOAuthClientsApiAdminClientsGetBrandingRequest} requestParameters Request parameters.
|
|
891
|
+
* @param {*} [options] Override http request option.
|
|
892
|
+
* @throws {RequiredError}
|
|
893
|
+
*/
|
|
894
|
+
adminClientsGetBranding(requestParameters, options) {
|
|
895
|
+
return localVarFp.adminClientsGetBranding(requestParameters.orgId, requestParameters.clientId, options).then((request) => request(axios, basePath));
|
|
896
|
+
},
|
|
714
897
|
/**
|
|
715
898
|
*
|
|
716
899
|
* @summary Create an OAuth client
|
|
@@ -781,6 +964,16 @@ export const AdminOAuthClientsApiFactory = function (configuration, basePath, ax
|
|
|
781
964
|
listClients(requestParameters, options) {
|
|
782
965
|
return localVarFp.listClients(requestParameters.orgId, options).then((request) => request(axios, basePath));
|
|
783
966
|
},
|
|
967
|
+
/**
|
|
968
|
+
*
|
|
969
|
+
* @summary Change keys of an OAuth client\'s login and/or consent page branding
|
|
970
|
+
* @param {AdminOAuthClientsApiPatchAdminClientsUpdateBrandingRequest} requestParameters Request parameters.
|
|
971
|
+
* @param {*} [options] Override http request option.
|
|
972
|
+
* @throws {RequiredError}
|
|
973
|
+
*/
|
|
974
|
+
patchAdminClientsUpdateBranding(requestParameters, options) {
|
|
975
|
+
return localVarFp.patchAdminClientsUpdateBranding(requestParameters.orgId, requestParameters.clientId, requestParameters.adminClientsGetBrandingResponseData, options).then((request) => request(axios, basePath));
|
|
976
|
+
},
|
|
784
977
|
/**
|
|
785
978
|
*
|
|
786
979
|
* @summary Update an OAuth client
|
|
@@ -791,6 +984,16 @@ export const AdminOAuthClientsApiFactory = function (configuration, basePath, ax
|
|
|
791
984
|
patchClient(requestParameters, options) {
|
|
792
985
|
return localVarFp.patchClient(requestParameters.orgId, requestParameters.clientId, options).then((request) => request(axios, basePath));
|
|
793
986
|
},
|
|
987
|
+
/**
|
|
988
|
+
*
|
|
989
|
+
* @summary Replace an OAuth client\'s login and/or consent page branding
|
|
990
|
+
* @param {AdminOAuthClientsApiPutAdminClientsUpdateBrandingRequest} requestParameters Request parameters.
|
|
991
|
+
* @param {*} [options] Override http request option.
|
|
992
|
+
* @throws {RequiredError}
|
|
993
|
+
*/
|
|
994
|
+
putAdminClientsUpdateBranding(requestParameters, options) {
|
|
995
|
+
return localVarFp.putAdminClientsUpdateBranding(requestParameters.orgId, requestParameters.clientId, requestParameters.putAdminClientsUpdateBrandingRequest, options).then((request) => request(axios, basePath));
|
|
996
|
+
},
|
|
794
997
|
/**
|
|
795
998
|
*
|
|
796
999
|
* @summary Rotate an OAuth client secret
|
|
@@ -841,6 +1044,17 @@ export class AdminOAuthClientsApi extends BaseAPI {
|
|
|
841
1044
|
adminClientsCimdCheck(requestParameters, options) {
|
|
842
1045
|
return AdminOAuthClientsApiFp(this.configuration).adminClientsCimdCheck(requestParameters.orgId, requestParameters.adminClientsCimdCheckRequest, options).then((request) => request(this.axios, this.basePath));
|
|
843
1046
|
}
|
|
1047
|
+
/**
|
|
1048
|
+
* Login settings use the same keys as the organization branding settings (GET /settings/branding); a missing or null value means \"same as the organization\".
|
|
1049
|
+
* @summary Get an OAuth client\'s login and consent page branding
|
|
1050
|
+
* @param {AdminOAuthClientsApiAdminClientsGetBrandingRequest} requestParameters Request parameters.
|
|
1051
|
+
* @param {*} [options] Override http request option.
|
|
1052
|
+
* @throws {RequiredError}
|
|
1053
|
+
* @memberof AdminOAuthClientsApi
|
|
1054
|
+
*/
|
|
1055
|
+
adminClientsGetBranding(requestParameters, options) {
|
|
1056
|
+
return AdminOAuthClientsApiFp(this.configuration).adminClientsGetBranding(requestParameters.orgId, requestParameters.clientId, options).then((request) => request(this.axios, this.basePath));
|
|
1057
|
+
}
|
|
844
1058
|
/**
|
|
845
1059
|
*
|
|
846
1060
|
* @summary Create an OAuth client
|
|
@@ -918,6 +1132,17 @@ export class AdminOAuthClientsApi extends BaseAPI {
|
|
|
918
1132
|
listClients(requestParameters, options) {
|
|
919
1133
|
return AdminOAuthClientsApiFp(this.configuration).listClients(requestParameters.orgId, options).then((request) => request(this.axios, this.basePath));
|
|
920
1134
|
}
|
|
1135
|
+
/**
|
|
1136
|
+
*
|
|
1137
|
+
* @summary Change keys of an OAuth client\'s login and/or consent page branding
|
|
1138
|
+
* @param {AdminOAuthClientsApiPatchAdminClientsUpdateBrandingRequest} requestParameters Request parameters.
|
|
1139
|
+
* @param {*} [options] Override http request option.
|
|
1140
|
+
* @throws {RequiredError}
|
|
1141
|
+
* @memberof AdminOAuthClientsApi
|
|
1142
|
+
*/
|
|
1143
|
+
patchAdminClientsUpdateBranding(requestParameters, options) {
|
|
1144
|
+
return AdminOAuthClientsApiFp(this.configuration).patchAdminClientsUpdateBranding(requestParameters.orgId, requestParameters.clientId, requestParameters.adminClientsGetBrandingResponseData, options).then((request) => request(this.axios, this.basePath));
|
|
1145
|
+
}
|
|
921
1146
|
/**
|
|
922
1147
|
*
|
|
923
1148
|
* @summary Update an OAuth client
|
|
@@ -929,6 +1154,17 @@ export class AdminOAuthClientsApi extends BaseAPI {
|
|
|
929
1154
|
patchClient(requestParameters, options) {
|
|
930
1155
|
return AdminOAuthClientsApiFp(this.configuration).patchClient(requestParameters.orgId, requestParameters.clientId, options).then((request) => request(this.axios, this.basePath));
|
|
931
1156
|
}
|
|
1157
|
+
/**
|
|
1158
|
+
*
|
|
1159
|
+
* @summary Replace an OAuth client\'s login and/or consent page branding
|
|
1160
|
+
* @param {AdminOAuthClientsApiPutAdminClientsUpdateBrandingRequest} requestParameters Request parameters.
|
|
1161
|
+
* @param {*} [options] Override http request option.
|
|
1162
|
+
* @throws {RequiredError}
|
|
1163
|
+
* @memberof AdminOAuthClientsApi
|
|
1164
|
+
*/
|
|
1165
|
+
putAdminClientsUpdateBranding(requestParameters, options) {
|
|
1166
|
+
return AdminOAuthClientsApiFp(this.configuration).putAdminClientsUpdateBranding(requestParameters.orgId, requestParameters.clientId, requestParameters.putAdminClientsUpdateBrandingRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1167
|
+
}
|
|
932
1168
|
/**
|
|
933
1169
|
*
|
|
934
1170
|
* @summary Rotate an OAuth client secret
|
|
@@ -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.
|
|
@@ -115,7 +115,7 @@ export const AgentsApiAxiosParamCreator = function (configuration) {
|
|
|
115
115
|
};
|
|
116
116
|
}),
|
|
117
117
|
/**
|
|
118
|
-
*
|
|
118
|
+
* 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\" }
|
|
119
119
|
* @summary Per-MCP-tool authorization for the authenticated agent (dx B3).
|
|
120
120
|
* @param {string} orgId
|
|
121
121
|
* @param {AuthorizeMcpRequest} authorizeMcpRequest
|
|
@@ -413,7 +413,7 @@ export const AgentsApiFp = function (configuration) {
|
|
|
413
413
|
});
|
|
414
414
|
},
|
|
415
415
|
/**
|
|
416
|
-
*
|
|
416
|
+
* 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\" }
|
|
417
417
|
* @summary Per-MCP-tool authorization for the authenticated agent (dx B3).
|
|
418
418
|
* @param {string} orgId
|
|
419
419
|
* @param {AuthorizeMcpRequest} authorizeMcpRequest
|
|
@@ -557,7 +557,7 @@ export const AgentsApiFactory = function (configuration, basePath, axios) {
|
|
|
557
557
|
return localVarFp.attest(requestParameters.orgId, requestParameters.agentId, requestParameters.attestRequest, options).then((request) => request(axios, basePath));
|
|
558
558
|
},
|
|
559
559
|
/**
|
|
560
|
-
*
|
|
560
|
+
* 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\" }
|
|
561
561
|
* @summary Per-MCP-tool authorization for the authenticated agent (dx B3).
|
|
562
562
|
* @param {AgentsApiAuthorizeMcpRequest} requestParameters Request parameters.
|
|
563
563
|
* @param {*} [options] Override http request option.
|
|
@@ -656,7 +656,7 @@ export class AgentsApi extends BaseAPI {
|
|
|
656
656
|
return AgentsApiFp(this.configuration).attest(requestParameters.orgId, requestParameters.agentId, requestParameters.attestRequest, options).then((request) => request(this.axios, this.basePath));
|
|
657
657
|
}
|
|
658
658
|
/**
|
|
659
|
-
*
|
|
659
|
+
* 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\" }
|
|
660
660
|
* @summary Per-MCP-tool authorization for the authenticated agent (dx B3).
|
|
661
661
|
* @param {AgentsApiAuthorizeMcpRequest} requestParameters Request parameters.
|
|
662
662
|
* @param {*} [options] Override http request option.
|
|
@@ -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)
|