@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
|
@@ -26,6 +26,10 @@ import type { AdminClientsCimdCheckRequest } from '../models';
|
|
|
26
26
|
// @ts-ignore
|
|
27
27
|
import type { AdminClientsCimdCheckResponse } from '../models';
|
|
28
28
|
// @ts-ignore
|
|
29
|
+
import type { AdminClientsGetBrandingResponse } from '../models';
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
import type { AdminClientsGetBrandingResponseData } from '../models';
|
|
32
|
+
// @ts-ignore
|
|
29
33
|
import type { CreateClientResponse } from '../models';
|
|
30
34
|
// @ts-ignore
|
|
31
35
|
import type { GetClientResponse } from '../models';
|
|
@@ -36,6 +40,12 @@ import type { ListClientsResponse } from '../models';
|
|
|
36
40
|
// @ts-ignore
|
|
37
41
|
import type { MessageResponse } from '../models';
|
|
38
42
|
// @ts-ignore
|
|
43
|
+
import type { PatchAdminClientsUpdateBrandingResponse } from '../models';
|
|
44
|
+
// @ts-ignore
|
|
45
|
+
import type { PutAdminClientsUpdateBrandingRequest } from '../models';
|
|
46
|
+
// @ts-ignore
|
|
47
|
+
import type { PutAdminClientsUpdateBrandingResponse } from '../models';
|
|
48
|
+
// @ts-ignore
|
|
39
49
|
import type { RotateClientSecretResponse } from '../models';
|
|
40
50
|
// @ts-ignore
|
|
41
51
|
import type { SetClientScopesResponse } from '../models';
|
|
@@ -94,6 +104,51 @@ export const AdminOAuthClientsApiAxiosParamCreator = function (configuration?: C
|
|
|
94
104
|
options: localVarRequestOptions,
|
|
95
105
|
};
|
|
96
106
|
},
|
|
107
|
+
/**
|
|
108
|
+
* Login settings use the same keys as the organization branding settings (GET /settings/branding); a missing or null value means \"same as the organization\".
|
|
109
|
+
* @summary Get an OAuth client\'s login and consent page branding
|
|
110
|
+
* @param {string} orgId
|
|
111
|
+
* @param {string} clientId
|
|
112
|
+
* @param {*} [options] Override http request option.
|
|
113
|
+
* @throws {RequiredError}
|
|
114
|
+
*/
|
|
115
|
+
adminClientsGetBranding: async (orgId: string, clientId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
116
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
117
|
+
assertParamExists('adminClientsGetBranding', 'orgId', orgId)
|
|
118
|
+
// verify required parameter 'clientId' is not null or undefined
|
|
119
|
+
assertParamExists('adminClientsGetBranding', 'clientId', clientId)
|
|
120
|
+
const localVarPath = `/orgs/{orgId}/api/v1/admin/clients/{clientId}/branding`
|
|
121
|
+
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)))
|
|
122
|
+
.replace(`{${"clientId"}}`, encodeURIComponent(String(clientId)));
|
|
123
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
124
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
125
|
+
let baseOptions;
|
|
126
|
+
if (configuration) {
|
|
127
|
+
baseOptions = configuration.baseOptions;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
131
|
+
const localVarHeaderParameter = {} as any;
|
|
132
|
+
const localVarQueryParameter = {} as any;
|
|
133
|
+
|
|
134
|
+
// authentication ApiKeyAuth required
|
|
135
|
+
await setApiKeyToObject(localVarHeaderParameter, "X-API-Key", configuration)
|
|
136
|
+
|
|
137
|
+
// authentication BearerAuth required
|
|
138
|
+
// http bearer authentication required
|
|
139
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
144
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
145
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
146
|
+
|
|
147
|
+
return {
|
|
148
|
+
url: toPathString(localVarUrlObj),
|
|
149
|
+
options: localVarRequestOptions,
|
|
150
|
+
};
|
|
151
|
+
},
|
|
97
152
|
/**
|
|
98
153
|
*
|
|
99
154
|
* @summary Create an OAuth client
|
|
@@ -401,6 +456,55 @@ export const AdminOAuthClientsApiAxiosParamCreator = function (configuration?: C
|
|
|
401
456
|
options: localVarRequestOptions,
|
|
402
457
|
};
|
|
403
458
|
},
|
|
459
|
+
/**
|
|
460
|
+
*
|
|
461
|
+
* @summary Change keys of an OAuth client\'s login and/or consent page branding
|
|
462
|
+
* @param {string} orgId
|
|
463
|
+
* @param {string} clientId
|
|
464
|
+
* @param {AdminClientsGetBrandingResponseData} [adminClientsGetBrandingResponseData]
|
|
465
|
+
* @param {*} [options] Override http request option.
|
|
466
|
+
* @throws {RequiredError}
|
|
467
|
+
*/
|
|
468
|
+
patchAdminClientsUpdateBranding: async (orgId: string, clientId: string, adminClientsGetBrandingResponseData?: AdminClientsGetBrandingResponseData, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
469
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
470
|
+
assertParamExists('patchAdminClientsUpdateBranding', 'orgId', orgId)
|
|
471
|
+
// verify required parameter 'clientId' is not null or undefined
|
|
472
|
+
assertParamExists('patchAdminClientsUpdateBranding', 'clientId', clientId)
|
|
473
|
+
const localVarPath = `/orgs/{orgId}/api/v1/admin/clients/{clientId}/branding`
|
|
474
|
+
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)))
|
|
475
|
+
.replace(`{${"clientId"}}`, encodeURIComponent(String(clientId)));
|
|
476
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
477
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
478
|
+
let baseOptions;
|
|
479
|
+
if (configuration) {
|
|
480
|
+
baseOptions = configuration.baseOptions;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
484
|
+
const localVarHeaderParameter = {} as any;
|
|
485
|
+
const localVarQueryParameter = {} as any;
|
|
486
|
+
|
|
487
|
+
// authentication ApiKeyAuth required
|
|
488
|
+
await setApiKeyToObject(localVarHeaderParameter, "X-API-Key", configuration)
|
|
489
|
+
|
|
490
|
+
// authentication BearerAuth required
|
|
491
|
+
// http bearer authentication required
|
|
492
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
493
|
+
|
|
494
|
+
|
|
495
|
+
|
|
496
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
497
|
+
|
|
498
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
499
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
500
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
501
|
+
localVarRequestOptions.data = serializeDataIfNeeded(adminClientsGetBrandingResponseData, localVarRequestOptions, configuration)
|
|
502
|
+
|
|
503
|
+
return {
|
|
504
|
+
url: toPathString(localVarUrlObj),
|
|
505
|
+
options: localVarRequestOptions,
|
|
506
|
+
};
|
|
507
|
+
},
|
|
404
508
|
/**
|
|
405
509
|
*
|
|
406
510
|
* @summary Update an OAuth client
|
|
@@ -446,6 +550,55 @@ export const AdminOAuthClientsApiAxiosParamCreator = function (configuration?: C
|
|
|
446
550
|
options: localVarRequestOptions,
|
|
447
551
|
};
|
|
448
552
|
},
|
|
553
|
+
/**
|
|
554
|
+
*
|
|
555
|
+
* @summary Replace an OAuth client\'s login and/or consent page branding
|
|
556
|
+
* @param {string} orgId
|
|
557
|
+
* @param {string} clientId
|
|
558
|
+
* @param {PutAdminClientsUpdateBrandingRequest} [putAdminClientsUpdateBrandingRequest]
|
|
559
|
+
* @param {*} [options] Override http request option.
|
|
560
|
+
* @throws {RequiredError}
|
|
561
|
+
*/
|
|
562
|
+
putAdminClientsUpdateBranding: async (orgId: string, clientId: string, putAdminClientsUpdateBrandingRequest?: PutAdminClientsUpdateBrandingRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
563
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
564
|
+
assertParamExists('putAdminClientsUpdateBranding', 'orgId', orgId)
|
|
565
|
+
// verify required parameter 'clientId' is not null or undefined
|
|
566
|
+
assertParamExists('putAdminClientsUpdateBranding', 'clientId', clientId)
|
|
567
|
+
const localVarPath = `/orgs/{orgId}/api/v1/admin/clients/{clientId}/branding`
|
|
568
|
+
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)))
|
|
569
|
+
.replace(`{${"clientId"}}`, encodeURIComponent(String(clientId)));
|
|
570
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
571
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
572
|
+
let baseOptions;
|
|
573
|
+
if (configuration) {
|
|
574
|
+
baseOptions = configuration.baseOptions;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
578
|
+
const localVarHeaderParameter = {} as any;
|
|
579
|
+
const localVarQueryParameter = {} as any;
|
|
580
|
+
|
|
581
|
+
// authentication ApiKeyAuth required
|
|
582
|
+
await setApiKeyToObject(localVarHeaderParameter, "X-API-Key", configuration)
|
|
583
|
+
|
|
584
|
+
// authentication BearerAuth required
|
|
585
|
+
// http bearer authentication required
|
|
586
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
587
|
+
|
|
588
|
+
|
|
589
|
+
|
|
590
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
591
|
+
|
|
592
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
593
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
594
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
595
|
+
localVarRequestOptions.data = serializeDataIfNeeded(putAdminClientsUpdateBrandingRequest, localVarRequestOptions, configuration)
|
|
596
|
+
|
|
597
|
+
return {
|
|
598
|
+
url: toPathString(localVarUrlObj),
|
|
599
|
+
options: localVarRequestOptions,
|
|
600
|
+
};
|
|
601
|
+
},
|
|
449
602
|
/**
|
|
450
603
|
*
|
|
451
604
|
* @summary Rotate an OAuth client secret
|
|
@@ -605,6 +758,20 @@ export const AdminOAuthClientsApiFp = function(configuration?: Configuration) {
|
|
|
605
758
|
const localVarOperationServerBasePath = operationServerMap['AdminOAuthClientsApi.adminClientsCimdCheck']?.[localVarOperationServerIndex]?.url;
|
|
606
759
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
607
760
|
},
|
|
761
|
+
/**
|
|
762
|
+
* Login settings use the same keys as the organization branding settings (GET /settings/branding); a missing or null value means \"same as the organization\".
|
|
763
|
+
* @summary Get an OAuth client\'s login and consent page branding
|
|
764
|
+
* @param {string} orgId
|
|
765
|
+
* @param {string} clientId
|
|
766
|
+
* @param {*} [options] Override http request option.
|
|
767
|
+
* @throws {RequiredError}
|
|
768
|
+
*/
|
|
769
|
+
async adminClientsGetBranding(orgId: string, clientId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminClientsGetBrandingResponse>> {
|
|
770
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminClientsGetBranding(orgId, clientId, options);
|
|
771
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
772
|
+
const localVarOperationServerBasePath = operationServerMap['AdminOAuthClientsApi.adminClientsGetBranding']?.[localVarOperationServerIndex]?.url;
|
|
773
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
774
|
+
},
|
|
608
775
|
/**
|
|
609
776
|
*
|
|
610
777
|
* @summary Create an OAuth client
|
|
@@ -701,6 +868,21 @@ export const AdminOAuthClientsApiFp = function(configuration?: Configuration) {
|
|
|
701
868
|
const localVarOperationServerBasePath = operationServerMap['AdminOAuthClientsApi.listClients']?.[localVarOperationServerIndex]?.url;
|
|
702
869
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
703
870
|
},
|
|
871
|
+
/**
|
|
872
|
+
*
|
|
873
|
+
* @summary Change keys of an OAuth client\'s login and/or consent page branding
|
|
874
|
+
* @param {string} orgId
|
|
875
|
+
* @param {string} clientId
|
|
876
|
+
* @param {AdminClientsGetBrandingResponseData} [adminClientsGetBrandingResponseData]
|
|
877
|
+
* @param {*} [options] Override http request option.
|
|
878
|
+
* @throws {RequiredError}
|
|
879
|
+
*/
|
|
880
|
+
async patchAdminClientsUpdateBranding(orgId: string, clientId: string, adminClientsGetBrandingResponseData?: AdminClientsGetBrandingResponseData, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchAdminClientsUpdateBrandingResponse>> {
|
|
881
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.patchAdminClientsUpdateBranding(orgId, clientId, adminClientsGetBrandingResponseData, options);
|
|
882
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
883
|
+
const localVarOperationServerBasePath = operationServerMap['AdminOAuthClientsApi.patchAdminClientsUpdateBranding']?.[localVarOperationServerIndex]?.url;
|
|
884
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
885
|
+
},
|
|
704
886
|
/**
|
|
705
887
|
*
|
|
706
888
|
* @summary Update an OAuth client
|
|
@@ -715,6 +897,21 @@ export const AdminOAuthClientsApiFp = function(configuration?: Configuration) {
|
|
|
715
897
|
const localVarOperationServerBasePath = operationServerMap['AdminOAuthClientsApi.patchClient']?.[localVarOperationServerIndex]?.url;
|
|
716
898
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
717
899
|
},
|
|
900
|
+
/**
|
|
901
|
+
*
|
|
902
|
+
* @summary Replace an OAuth client\'s login and/or consent page branding
|
|
903
|
+
* @param {string} orgId
|
|
904
|
+
* @param {string} clientId
|
|
905
|
+
* @param {PutAdminClientsUpdateBrandingRequest} [putAdminClientsUpdateBrandingRequest]
|
|
906
|
+
* @param {*} [options] Override http request option.
|
|
907
|
+
* @throws {RequiredError}
|
|
908
|
+
*/
|
|
909
|
+
async putAdminClientsUpdateBranding(orgId: string, clientId: string, putAdminClientsUpdateBrandingRequest?: PutAdminClientsUpdateBrandingRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PutAdminClientsUpdateBrandingResponse>> {
|
|
910
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.putAdminClientsUpdateBranding(orgId, clientId, putAdminClientsUpdateBrandingRequest, options);
|
|
911
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
912
|
+
const localVarOperationServerBasePath = operationServerMap['AdminOAuthClientsApi.putAdminClientsUpdateBranding']?.[localVarOperationServerIndex]?.url;
|
|
913
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
914
|
+
},
|
|
718
915
|
/**
|
|
719
916
|
*
|
|
720
917
|
* @summary Rotate an OAuth client secret
|
|
@@ -777,6 +974,16 @@ export const AdminOAuthClientsApiFactory = function (configuration?: Configurati
|
|
|
777
974
|
adminClientsCimdCheck(requestParameters: AdminOAuthClientsApiAdminClientsCimdCheckRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminClientsCimdCheckResponse> {
|
|
778
975
|
return localVarFp.adminClientsCimdCheck(requestParameters.orgId, requestParameters.adminClientsCimdCheckRequest, options).then((request) => request(axios, basePath));
|
|
779
976
|
},
|
|
977
|
+
/**
|
|
978
|
+
* Login settings use the same keys as the organization branding settings (GET /settings/branding); a missing or null value means \"same as the organization\".
|
|
979
|
+
* @summary Get an OAuth client\'s login and consent page branding
|
|
980
|
+
* @param {AdminOAuthClientsApiAdminClientsGetBrandingRequest} requestParameters Request parameters.
|
|
981
|
+
* @param {*} [options] Override http request option.
|
|
982
|
+
* @throws {RequiredError}
|
|
983
|
+
*/
|
|
984
|
+
adminClientsGetBranding(requestParameters: AdminOAuthClientsApiAdminClientsGetBrandingRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminClientsGetBrandingResponse> {
|
|
985
|
+
return localVarFp.adminClientsGetBranding(requestParameters.orgId, requestParameters.clientId, options).then((request) => request(axios, basePath));
|
|
986
|
+
},
|
|
780
987
|
/**
|
|
781
988
|
*
|
|
782
989
|
* @summary Create an OAuth client
|
|
@@ -847,6 +1054,16 @@ export const AdminOAuthClientsApiFactory = function (configuration?: Configurati
|
|
|
847
1054
|
listClients(requestParameters: AdminOAuthClientsApiListClientsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListClientsResponse> {
|
|
848
1055
|
return localVarFp.listClients(requestParameters.orgId, options).then((request) => request(axios, basePath));
|
|
849
1056
|
},
|
|
1057
|
+
/**
|
|
1058
|
+
*
|
|
1059
|
+
* @summary Change keys of an OAuth client\'s login and/or consent page branding
|
|
1060
|
+
* @param {AdminOAuthClientsApiPatchAdminClientsUpdateBrandingRequest} requestParameters Request parameters.
|
|
1061
|
+
* @param {*} [options] Override http request option.
|
|
1062
|
+
* @throws {RequiredError}
|
|
1063
|
+
*/
|
|
1064
|
+
patchAdminClientsUpdateBranding(requestParameters: AdminOAuthClientsApiPatchAdminClientsUpdateBrandingRequest, options?: RawAxiosRequestConfig): AxiosPromise<PatchAdminClientsUpdateBrandingResponse> {
|
|
1065
|
+
return localVarFp.patchAdminClientsUpdateBranding(requestParameters.orgId, requestParameters.clientId, requestParameters.adminClientsGetBrandingResponseData, options).then((request) => request(axios, basePath));
|
|
1066
|
+
},
|
|
850
1067
|
/**
|
|
851
1068
|
*
|
|
852
1069
|
* @summary Update an OAuth client
|
|
@@ -857,6 +1074,16 @@ export const AdminOAuthClientsApiFactory = function (configuration?: Configurati
|
|
|
857
1074
|
patchClient(requestParameters: AdminOAuthClientsApiPatchClientRequest, options?: RawAxiosRequestConfig): AxiosPromise<UpdateClientResponse> {
|
|
858
1075
|
return localVarFp.patchClient(requestParameters.orgId, requestParameters.clientId, options).then((request) => request(axios, basePath));
|
|
859
1076
|
},
|
|
1077
|
+
/**
|
|
1078
|
+
*
|
|
1079
|
+
* @summary Replace an OAuth client\'s login and/or consent page branding
|
|
1080
|
+
* @param {AdminOAuthClientsApiPutAdminClientsUpdateBrandingRequest} requestParameters Request parameters.
|
|
1081
|
+
* @param {*} [options] Override http request option.
|
|
1082
|
+
* @throws {RequiredError}
|
|
1083
|
+
*/
|
|
1084
|
+
putAdminClientsUpdateBranding(requestParameters: AdminOAuthClientsApiPutAdminClientsUpdateBrandingRequest, options?: RawAxiosRequestConfig): AxiosPromise<PutAdminClientsUpdateBrandingResponse> {
|
|
1085
|
+
return localVarFp.putAdminClientsUpdateBranding(requestParameters.orgId, requestParameters.clientId, requestParameters.putAdminClientsUpdateBrandingRequest, options).then((request) => request(axios, basePath));
|
|
1086
|
+
},
|
|
860
1087
|
/**
|
|
861
1088
|
*
|
|
862
1089
|
* @summary Rotate an OAuth client secret
|
|
@@ -906,6 +1133,16 @@ export interface AdminOAuthClientsApiInterface {
|
|
|
906
1133
|
*/
|
|
907
1134
|
adminClientsCimdCheck(requestParameters: AdminOAuthClientsApiAdminClientsCimdCheckRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminClientsCimdCheckResponse>;
|
|
908
1135
|
|
|
1136
|
+
/**
|
|
1137
|
+
* Login settings use the same keys as the organization branding settings (GET /settings/branding); a missing or null value means \"same as the organization\".
|
|
1138
|
+
* @summary Get an OAuth client\'s login and consent page branding
|
|
1139
|
+
* @param {AdminOAuthClientsApiAdminClientsGetBrandingRequest} requestParameters Request parameters.
|
|
1140
|
+
* @param {*} [options] Override http request option.
|
|
1141
|
+
* @throws {RequiredError}
|
|
1142
|
+
* @memberof AdminOAuthClientsApiInterface
|
|
1143
|
+
*/
|
|
1144
|
+
adminClientsGetBranding(requestParameters: AdminOAuthClientsApiAdminClientsGetBrandingRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminClientsGetBrandingResponse>;
|
|
1145
|
+
|
|
909
1146
|
/**
|
|
910
1147
|
*
|
|
911
1148
|
* @summary Create an OAuth client
|
|
@@ -976,6 +1213,16 @@ export interface AdminOAuthClientsApiInterface {
|
|
|
976
1213
|
*/
|
|
977
1214
|
listClients(requestParameters: AdminOAuthClientsApiListClientsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListClientsResponse>;
|
|
978
1215
|
|
|
1216
|
+
/**
|
|
1217
|
+
*
|
|
1218
|
+
* @summary Change keys of an OAuth client\'s login and/or consent page branding
|
|
1219
|
+
* @param {AdminOAuthClientsApiPatchAdminClientsUpdateBrandingRequest} requestParameters Request parameters.
|
|
1220
|
+
* @param {*} [options] Override http request option.
|
|
1221
|
+
* @throws {RequiredError}
|
|
1222
|
+
* @memberof AdminOAuthClientsApiInterface
|
|
1223
|
+
*/
|
|
1224
|
+
patchAdminClientsUpdateBranding(requestParameters: AdminOAuthClientsApiPatchAdminClientsUpdateBrandingRequest, options?: RawAxiosRequestConfig): AxiosPromise<PatchAdminClientsUpdateBrandingResponse>;
|
|
1225
|
+
|
|
979
1226
|
/**
|
|
980
1227
|
*
|
|
981
1228
|
* @summary Update an OAuth client
|
|
@@ -986,6 +1233,16 @@ export interface AdminOAuthClientsApiInterface {
|
|
|
986
1233
|
*/
|
|
987
1234
|
patchClient(requestParameters: AdminOAuthClientsApiPatchClientRequest, options?: RawAxiosRequestConfig): AxiosPromise<UpdateClientResponse>;
|
|
988
1235
|
|
|
1236
|
+
/**
|
|
1237
|
+
*
|
|
1238
|
+
* @summary Replace an OAuth client\'s login and/or consent page branding
|
|
1239
|
+
* @param {AdminOAuthClientsApiPutAdminClientsUpdateBrandingRequest} requestParameters Request parameters.
|
|
1240
|
+
* @param {*} [options] Override http request option.
|
|
1241
|
+
* @throws {RequiredError}
|
|
1242
|
+
* @memberof AdminOAuthClientsApiInterface
|
|
1243
|
+
*/
|
|
1244
|
+
putAdminClientsUpdateBranding(requestParameters: AdminOAuthClientsApiPutAdminClientsUpdateBrandingRequest, options?: RawAxiosRequestConfig): AxiosPromise<PutAdminClientsUpdateBrandingResponse>;
|
|
1245
|
+
|
|
989
1246
|
/**
|
|
990
1247
|
*
|
|
991
1248
|
* @summary Rotate an OAuth client secret
|
|
@@ -1039,6 +1296,27 @@ export interface AdminOAuthClientsApiAdminClientsCimdCheckRequest {
|
|
|
1039
1296
|
readonly adminClientsCimdCheckRequest: AdminClientsCimdCheckRequest
|
|
1040
1297
|
}
|
|
1041
1298
|
|
|
1299
|
+
/**
|
|
1300
|
+
* Request parameters for adminClientsGetBranding operation in AdminOAuthClientsApi.
|
|
1301
|
+
* @export
|
|
1302
|
+
* @interface AdminOAuthClientsApiAdminClientsGetBrandingRequest
|
|
1303
|
+
*/
|
|
1304
|
+
export interface AdminOAuthClientsApiAdminClientsGetBrandingRequest {
|
|
1305
|
+
/**
|
|
1306
|
+
*
|
|
1307
|
+
* @type {string}
|
|
1308
|
+
* @memberof AdminOAuthClientsApiAdminClientsGetBranding
|
|
1309
|
+
*/
|
|
1310
|
+
readonly orgId: string
|
|
1311
|
+
|
|
1312
|
+
/**
|
|
1313
|
+
*
|
|
1314
|
+
* @type {string}
|
|
1315
|
+
* @memberof AdminOAuthClientsApiAdminClientsGetBranding
|
|
1316
|
+
*/
|
|
1317
|
+
readonly clientId: string
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1042
1320
|
/**
|
|
1043
1321
|
* Request parameters for createClient operation in AdminOAuthClientsApi.
|
|
1044
1322
|
* @export
|
|
@@ -1172,6 +1450,34 @@ export interface AdminOAuthClientsApiListClientsRequest {
|
|
|
1172
1450
|
readonly orgId: string
|
|
1173
1451
|
}
|
|
1174
1452
|
|
|
1453
|
+
/**
|
|
1454
|
+
* Request parameters for patchAdminClientsUpdateBranding operation in AdminOAuthClientsApi.
|
|
1455
|
+
* @export
|
|
1456
|
+
* @interface AdminOAuthClientsApiPatchAdminClientsUpdateBrandingRequest
|
|
1457
|
+
*/
|
|
1458
|
+
export interface AdminOAuthClientsApiPatchAdminClientsUpdateBrandingRequest {
|
|
1459
|
+
/**
|
|
1460
|
+
*
|
|
1461
|
+
* @type {string}
|
|
1462
|
+
* @memberof AdminOAuthClientsApiPatchAdminClientsUpdateBranding
|
|
1463
|
+
*/
|
|
1464
|
+
readonly orgId: string
|
|
1465
|
+
|
|
1466
|
+
/**
|
|
1467
|
+
*
|
|
1468
|
+
* @type {string}
|
|
1469
|
+
* @memberof AdminOAuthClientsApiPatchAdminClientsUpdateBranding
|
|
1470
|
+
*/
|
|
1471
|
+
readonly clientId: string
|
|
1472
|
+
|
|
1473
|
+
/**
|
|
1474
|
+
*
|
|
1475
|
+
* @type {AdminClientsGetBrandingResponseData}
|
|
1476
|
+
* @memberof AdminOAuthClientsApiPatchAdminClientsUpdateBranding
|
|
1477
|
+
*/
|
|
1478
|
+
readonly adminClientsGetBrandingResponseData?: AdminClientsGetBrandingResponseData
|
|
1479
|
+
}
|
|
1480
|
+
|
|
1175
1481
|
/**
|
|
1176
1482
|
* Request parameters for patchClient operation in AdminOAuthClientsApi.
|
|
1177
1483
|
* @export
|
|
@@ -1193,6 +1499,34 @@ export interface AdminOAuthClientsApiPatchClientRequest {
|
|
|
1193
1499
|
readonly clientId: string
|
|
1194
1500
|
}
|
|
1195
1501
|
|
|
1502
|
+
/**
|
|
1503
|
+
* Request parameters for putAdminClientsUpdateBranding operation in AdminOAuthClientsApi.
|
|
1504
|
+
* @export
|
|
1505
|
+
* @interface AdminOAuthClientsApiPutAdminClientsUpdateBrandingRequest
|
|
1506
|
+
*/
|
|
1507
|
+
export interface AdminOAuthClientsApiPutAdminClientsUpdateBrandingRequest {
|
|
1508
|
+
/**
|
|
1509
|
+
*
|
|
1510
|
+
* @type {string}
|
|
1511
|
+
* @memberof AdminOAuthClientsApiPutAdminClientsUpdateBranding
|
|
1512
|
+
*/
|
|
1513
|
+
readonly orgId: string
|
|
1514
|
+
|
|
1515
|
+
/**
|
|
1516
|
+
*
|
|
1517
|
+
* @type {string}
|
|
1518
|
+
* @memberof AdminOAuthClientsApiPutAdminClientsUpdateBranding
|
|
1519
|
+
*/
|
|
1520
|
+
readonly clientId: string
|
|
1521
|
+
|
|
1522
|
+
/**
|
|
1523
|
+
*
|
|
1524
|
+
* @type {PutAdminClientsUpdateBrandingRequest}
|
|
1525
|
+
* @memberof AdminOAuthClientsApiPutAdminClientsUpdateBranding
|
|
1526
|
+
*/
|
|
1527
|
+
readonly putAdminClientsUpdateBrandingRequest?: PutAdminClientsUpdateBrandingRequest
|
|
1528
|
+
}
|
|
1529
|
+
|
|
1196
1530
|
/**
|
|
1197
1531
|
* Request parameters for rotateClientSecret operation in AdminOAuthClientsApi.
|
|
1198
1532
|
* @export
|
|
@@ -1275,6 +1609,18 @@ export class AdminOAuthClientsApi extends BaseAPI implements AdminOAuthClientsAp
|
|
|
1275
1609
|
return AdminOAuthClientsApiFp(this.configuration).adminClientsCimdCheck(requestParameters.orgId, requestParameters.adminClientsCimdCheckRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1276
1610
|
}
|
|
1277
1611
|
|
|
1612
|
+
/**
|
|
1613
|
+
* Login settings use the same keys as the organization branding settings (GET /settings/branding); a missing or null value means \"same as the organization\".
|
|
1614
|
+
* @summary Get an OAuth client\'s login and consent page branding
|
|
1615
|
+
* @param {AdminOAuthClientsApiAdminClientsGetBrandingRequest} requestParameters Request parameters.
|
|
1616
|
+
* @param {*} [options] Override http request option.
|
|
1617
|
+
* @throws {RequiredError}
|
|
1618
|
+
* @memberof AdminOAuthClientsApi
|
|
1619
|
+
*/
|
|
1620
|
+
public adminClientsGetBranding(requestParameters: AdminOAuthClientsApiAdminClientsGetBrandingRequest, options?: RawAxiosRequestConfig) {
|
|
1621
|
+
return AdminOAuthClientsApiFp(this.configuration).adminClientsGetBranding(requestParameters.orgId, requestParameters.clientId, options).then((request) => request(this.axios, this.basePath));
|
|
1622
|
+
}
|
|
1623
|
+
|
|
1278
1624
|
/**
|
|
1279
1625
|
*
|
|
1280
1626
|
* @summary Create an OAuth client
|
|
@@ -1359,6 +1705,18 @@ export class AdminOAuthClientsApi extends BaseAPI implements AdminOAuthClientsAp
|
|
|
1359
1705
|
return AdminOAuthClientsApiFp(this.configuration).listClients(requestParameters.orgId, options).then((request) => request(this.axios, this.basePath));
|
|
1360
1706
|
}
|
|
1361
1707
|
|
|
1708
|
+
/**
|
|
1709
|
+
*
|
|
1710
|
+
* @summary Change keys of an OAuth client\'s login and/or consent page branding
|
|
1711
|
+
* @param {AdminOAuthClientsApiPatchAdminClientsUpdateBrandingRequest} requestParameters Request parameters.
|
|
1712
|
+
* @param {*} [options] Override http request option.
|
|
1713
|
+
* @throws {RequiredError}
|
|
1714
|
+
* @memberof AdminOAuthClientsApi
|
|
1715
|
+
*/
|
|
1716
|
+
public patchAdminClientsUpdateBranding(requestParameters: AdminOAuthClientsApiPatchAdminClientsUpdateBrandingRequest, options?: RawAxiosRequestConfig) {
|
|
1717
|
+
return AdminOAuthClientsApiFp(this.configuration).patchAdminClientsUpdateBranding(requestParameters.orgId, requestParameters.clientId, requestParameters.adminClientsGetBrandingResponseData, options).then((request) => request(this.axios, this.basePath));
|
|
1718
|
+
}
|
|
1719
|
+
|
|
1362
1720
|
/**
|
|
1363
1721
|
*
|
|
1364
1722
|
* @summary Update an OAuth client
|
|
@@ -1371,6 +1729,18 @@ export class AdminOAuthClientsApi extends BaseAPI implements AdminOAuthClientsAp
|
|
|
1371
1729
|
return AdminOAuthClientsApiFp(this.configuration).patchClient(requestParameters.orgId, requestParameters.clientId, options).then((request) => request(this.axios, this.basePath));
|
|
1372
1730
|
}
|
|
1373
1731
|
|
|
1732
|
+
/**
|
|
1733
|
+
*
|
|
1734
|
+
* @summary Replace an OAuth client\'s login and/or consent page branding
|
|
1735
|
+
* @param {AdminOAuthClientsApiPutAdminClientsUpdateBrandingRequest} requestParameters Request parameters.
|
|
1736
|
+
* @param {*} [options] Override http request option.
|
|
1737
|
+
* @throws {RequiredError}
|
|
1738
|
+
* @memberof AdminOAuthClientsApi
|
|
1739
|
+
*/
|
|
1740
|
+
public putAdminClientsUpdateBranding(requestParameters: AdminOAuthClientsApiPutAdminClientsUpdateBrandingRequest, options?: RawAxiosRequestConfig) {
|
|
1741
|
+
return AdminOAuthClientsApiFp(this.configuration).putAdminClientsUpdateBranding(requestParameters.orgId, requestParameters.clientId, requestParameters.putAdminClientsUpdateBrandingRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1742
|
+
}
|
|
1743
|
+
|
|
1374
1744
|
/**
|
|
1375
1745
|
*
|
|
1376
1746
|
* @summary Rotate an OAuth client secret
|
package/api/agents-api.ts
CHANGED
|
@@ -154,7 +154,7 @@ export const AgentsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
154
154
|
};
|
|
155
155
|
},
|
|
156
156
|
/**
|
|
157
|
-
*
|
|
157
|
+
* 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\" }
|
|
158
158
|
* @summary Per-MCP-tool authorization for the authenticated agent (dx B3).
|
|
159
159
|
* @param {string} orgId
|
|
160
160
|
* @param {AuthorizeMcpRequest} authorizeMcpRequest
|
|
@@ -497,7 +497,7 @@ export const AgentsApiFp = function(configuration?: Configuration) {
|
|
|
497
497
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
498
498
|
},
|
|
499
499
|
/**
|
|
500
|
-
*
|
|
500
|
+
* 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\" }
|
|
501
501
|
* @summary Per-MCP-tool authorization for the authenticated agent (dx B3).
|
|
502
502
|
* @param {string} orgId
|
|
503
503
|
* @param {AuthorizeMcpRequest} authorizeMcpRequest
|
|
@@ -621,7 +621,7 @@ export const AgentsApiFactory = function (configuration?: Configuration, basePat
|
|
|
621
621
|
return localVarFp.attest(requestParameters.orgId, requestParameters.agentId, requestParameters.attestRequest, options).then((request) => request(axios, basePath));
|
|
622
622
|
},
|
|
623
623
|
/**
|
|
624
|
-
*
|
|
624
|
+
* 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\" }
|
|
625
625
|
* @summary Per-MCP-tool authorization for the authenticated agent (dx B3).
|
|
626
626
|
* @param {AgentsApiAuthorizeMcpRequest} requestParameters Request parameters.
|
|
627
627
|
* @param {*} [options] Override http request option.
|
|
@@ -718,7 +718,7 @@ export interface AgentsApiInterface {
|
|
|
718
718
|
attest(requestParameters: AgentsApiAttestRequest, options?: RawAxiosRequestConfig): AxiosPromise<AttestResponse>;
|
|
719
719
|
|
|
720
720
|
/**
|
|
721
|
-
*
|
|
721
|
+
* 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\" }
|
|
722
722
|
* @summary Per-MCP-tool authorization for the authenticated agent (dx B3).
|
|
723
723
|
* @param {AgentsApiAuthorizeMcpRequest} requestParameters Request parameters.
|
|
724
724
|
* @param {*} [options] Override http request option.
|
|
@@ -1001,7 +1001,7 @@ export class AgentsApi extends BaseAPI implements AgentsApiInterface {
|
|
|
1001
1001
|
}
|
|
1002
1002
|
|
|
1003
1003
|
/**
|
|
1004
|
-
*
|
|
1004
|
+
* 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\" }
|
|
1005
1005
|
* @summary Per-MCP-tool authorization for the authenticated agent (dx B3).
|
|
1006
1006
|
* @param {AgentsApiAuthorizeMcpRequest} requestParameters Request parameters.
|
|
1007
1007
|
* @param {*} [options] Override http request option.
|