@integrahub/vergefy-client 0.17.0 → 0.19.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/README.md +2 -2
- package/dist/apis/PLATFORMMCPOAuthQueryApi.d.ts +40 -0
- package/dist/apis/PLATFORMMCPOAuthQueryApi.js +96 -0
- package/dist/apis/PLATFORMPTCPlatformTenantConfigurationApi.d.ts +42 -0
- package/dist/apis/PLATFORMPTCPlatformTenantConfigurationApi.js +123 -0
- package/dist/esm/apis/PLATFORMMCPOAuthQueryApi.js +96 -0
- package/dist/esm/apis/PLATFORMPTCPlatformTenantConfigurationApi.js +123 -0
- package/dist/esm/ext/telemetry.js +1 -1
- package/dist/esm/models/DataResponseDTOListTenantConfigurationSchemaDTO.js +42 -0
- package/dist/esm/models/EntitledAppDTO.js +2 -2
- package/dist/esm/models/PlatformServiceDTO.js +2 -0
- package/dist/esm/models/TenantConfigurationSchemaDTO.js +110 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/ext/telemetry.d.ts +1 -1
- package/dist/ext/telemetry.js +1 -1
- package/dist/models/DataResponseDTOListTenantConfigurationSchemaDTO.d.ts +33 -0
- package/dist/models/DataResponseDTOListTenantConfigurationSchemaDTO.js +49 -0
- package/dist/models/EntitledAppDTO.d.ts +2 -2
- package/dist/models/EntitledAppDTO.js +2 -2
- package/dist/models/PlatformServiceDTO.d.ts +6 -0
- package/dist/models/PlatformServiceDTO.js +2 -0
- package/dist/models/TenantConfigurationSchemaDTO.d.ts +218 -0
- package/dist/models/TenantConfigurationSchemaDTO.js +118 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @integrahub/vergefy-client@0.
|
|
1
|
+
# @integrahub/vergefy-client@0.19.0
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the your-vergefy-host.invalid API.
|
|
4
4
|
|
|
@@ -90,7 +90,7 @@ and is automatically generated by the
|
|
|
90
90
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
91
91
|
|
|
92
92
|
- API version: `2026-05-30`
|
|
93
|
-
- Package version: `0.
|
|
93
|
+
- Package version: `0.19.0`
|
|
94
94
|
- Generator version: `7.22.0`
|
|
95
95
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
96
96
|
|
|
@@ -19,6 +19,10 @@ export interface LMCP005Request {
|
|
|
19
19
|
export interface LMCP007Request {
|
|
20
20
|
mcpIntrospectRequestDTO: McpIntrospectRequestDTO;
|
|
21
21
|
}
|
|
22
|
+
export interface LMCP009Request {
|
|
23
|
+
mcpIntrospectRequestDTO: McpIntrospectRequestDTO;
|
|
24
|
+
xAmznMtlsClientcertSubject?: string;
|
|
25
|
+
}
|
|
22
26
|
/**
|
|
23
27
|
*
|
|
24
28
|
*/
|
|
@@ -51,4 +55,40 @@ export declare class PLATFORMMCPOAuthQueryApi extends runtime.BaseAPI {
|
|
|
51
55
|
* LMCP007 - Introspect an MCP access token
|
|
52
56
|
*/
|
|
53
57
|
lMCP007(requestParameters: LMCP007Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<McpTokenIntrospectionDTO>;
|
|
58
|
+
/**
|
|
59
|
+
* Creates request options for lMCP008 without sending the request
|
|
60
|
+
*/
|
|
61
|
+
lMCP008RequestOpts(): Promise<runtime.RequestOpts>;
|
|
62
|
+
/**
|
|
63
|
+
* Public JSON Web Key Set for the key the MCP authorization server signs its own resource-bound access tokens with. Returns an empty key set while minting is disabled. Public — a verifier must be able to fetch it without a credential.
|
|
64
|
+
* LMCP008 - JWKS for the MCP authorization server signing key
|
|
65
|
+
*/
|
|
66
|
+
lMCP008Raw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
|
|
67
|
+
[key: string]: object;
|
|
68
|
+
}>>;
|
|
69
|
+
/**
|
|
70
|
+
* Public JSON Web Key Set for the key the MCP authorization server signs its own resource-bound access tokens with. Returns an empty key set while minting is disabled. Public — a verifier must be able to fetch it without a credential.
|
|
71
|
+
* LMCP008 - JWKS for the MCP authorization server signing key
|
|
72
|
+
*/
|
|
73
|
+
lMCP008(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
|
|
74
|
+
[key: string]: object;
|
|
75
|
+
}>;
|
|
76
|
+
/**
|
|
77
|
+
* Creates request options for lMCP009 without sending the request
|
|
78
|
+
*/
|
|
79
|
+
lMCP009RequestOpts(requestParameters: LMCP009Request): Promise<runtime.RequestOpts>;
|
|
80
|
+
/**
|
|
81
|
+
* Returns a short-lived Vergefy API access token for the user behind a live MCP connection, so the gateway never replays the token it was given. Requires a verified client certificate; reachable only via the mTLS listener.
|
|
82
|
+
* LMCP009 - Exchange an MCP token for an upstream credential
|
|
83
|
+
*/
|
|
84
|
+
lMCP009Raw(requestParameters: LMCP009Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
|
|
85
|
+
[key: string]: object;
|
|
86
|
+
}>>;
|
|
87
|
+
/**
|
|
88
|
+
* Returns a short-lived Vergefy API access token for the user behind a live MCP connection, so the gateway never replays the token it was given. Requires a verified client certificate; reachable only via the mTLS listener.
|
|
89
|
+
* LMCP009 - Exchange an MCP token for an upstream credential
|
|
90
|
+
*/
|
|
91
|
+
lMCP009(requestParameters: LMCP009Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
|
|
92
|
+
[key: string]: object;
|
|
93
|
+
}>;
|
|
54
94
|
}
|
|
@@ -130,5 +130,101 @@ class PLATFORMMCPOAuthQueryApi extends runtime.BaseAPI {
|
|
|
130
130
|
return yield response.value();
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
|
+
/**
|
|
134
|
+
* Creates request options for lMCP008 without sending the request
|
|
135
|
+
*/
|
|
136
|
+
lMCP008RequestOpts() {
|
|
137
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
138
|
+
const queryParameters = {};
|
|
139
|
+
const headerParameters = {};
|
|
140
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
141
|
+
const token = this.configuration.accessToken;
|
|
142
|
+
const tokenString = yield token("BearerAuth", []);
|
|
143
|
+
if (tokenString) {
|
|
144
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
let urlPath = `/pb/platform/mcp/.well-known/jwks.json`;
|
|
148
|
+
return {
|
|
149
|
+
path: urlPath,
|
|
150
|
+
method: 'GET',
|
|
151
|
+
headers: headerParameters,
|
|
152
|
+
query: queryParameters,
|
|
153
|
+
};
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Public JSON Web Key Set for the key the MCP authorization server signs its own resource-bound access tokens with. Returns an empty key set while minting is disabled. Public — a verifier must be able to fetch it without a credential.
|
|
158
|
+
* LMCP008 - JWKS for the MCP authorization server signing key
|
|
159
|
+
*/
|
|
160
|
+
lMCP008Raw(initOverrides) {
|
|
161
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
162
|
+
const requestOptions = yield this.lMCP008RequestOpts();
|
|
163
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
164
|
+
return new runtime.JSONApiResponse(response);
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Public JSON Web Key Set for the key the MCP authorization server signs its own resource-bound access tokens with. Returns an empty key set while minting is disabled. Public — a verifier must be able to fetch it without a credential.
|
|
169
|
+
* LMCP008 - JWKS for the MCP authorization server signing key
|
|
170
|
+
*/
|
|
171
|
+
lMCP008(initOverrides) {
|
|
172
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
173
|
+
const response = yield this.lMCP008Raw(initOverrides);
|
|
174
|
+
return yield response.value();
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Creates request options for lMCP009 without sending the request
|
|
179
|
+
*/
|
|
180
|
+
lMCP009RequestOpts(requestParameters) {
|
|
181
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
182
|
+
if (requestParameters['mcpIntrospectRequestDTO'] == null) {
|
|
183
|
+
throw new runtime.RequiredError('mcpIntrospectRequestDTO', 'Required parameter "mcpIntrospectRequestDTO" was null or undefined when calling lMCP009().');
|
|
184
|
+
}
|
|
185
|
+
const queryParameters = {};
|
|
186
|
+
const headerParameters = {};
|
|
187
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
188
|
+
if (requestParameters['xAmznMtlsClientcertSubject'] != null) {
|
|
189
|
+
headerParameters['X-Amzn-Mtls-Clientcert-Subject'] = String(requestParameters['xAmznMtlsClientcertSubject']);
|
|
190
|
+
}
|
|
191
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
192
|
+
const token = this.configuration.accessToken;
|
|
193
|
+
const tokenString = yield token("BearerAuth", []);
|
|
194
|
+
if (tokenString) {
|
|
195
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
let urlPath = `/pb/platform/mcp/token/exchange`;
|
|
199
|
+
return {
|
|
200
|
+
path: urlPath,
|
|
201
|
+
method: 'POST',
|
|
202
|
+
headers: headerParameters,
|
|
203
|
+
query: queryParameters,
|
|
204
|
+
body: (0, McpIntrospectRequestDTO_1.McpIntrospectRequestDTOToJSON)(requestParameters['mcpIntrospectRequestDTO']),
|
|
205
|
+
};
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* Returns a short-lived Vergefy API access token for the user behind a live MCP connection, so the gateway never replays the token it was given. Requires a verified client certificate; reachable only via the mTLS listener.
|
|
210
|
+
* LMCP009 - Exchange an MCP token for an upstream credential
|
|
211
|
+
*/
|
|
212
|
+
lMCP009Raw(requestParameters, initOverrides) {
|
|
213
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
214
|
+
const requestOptions = yield this.lMCP009RequestOpts(requestParameters);
|
|
215
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
216
|
+
return new runtime.JSONApiResponse(response);
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Returns a short-lived Vergefy API access token for the user behind a live MCP connection, so the gateway never replays the token it was given. Requires a verified client certificate; reachable only via the mTLS listener.
|
|
221
|
+
* LMCP009 - Exchange an MCP token for an upstream credential
|
|
222
|
+
*/
|
|
223
|
+
lMCP009(requestParameters, initOverrides) {
|
|
224
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
225
|
+
const response = yield this.lMCP009Raw(requestParameters, initOverrides);
|
|
226
|
+
return yield response.value();
|
|
227
|
+
});
|
|
228
|
+
}
|
|
133
229
|
}
|
|
134
230
|
exports.PLATFORMMCPOAuthQueryApi = PLATFORMMCPOAuthQueryApi;
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
+
import { type DataResponseDTOListTenantConfigurationSchemaDTO } from '../models/DataResponseDTOListTenantConfigurationSchemaDTO';
|
|
13
14
|
import { type DataResponseDTOTenantConfigurationDTO } from '../models/DataResponseDTOTenantConfigurationDTO';
|
|
14
15
|
import { type DataResponseDTOTenantConfigurationSchemaEntity } from '../models/DataResponseDTOTenantConfigurationSchemaEntity';
|
|
15
16
|
import { type PageTenantConfigurationDTO } from '../models/PageTenantConfigurationDTO';
|
|
@@ -70,6 +71,19 @@ export interface PTC007Request {
|
|
|
70
71
|
vergefyVersion?: string;
|
|
71
72
|
acceptTimezone?: string;
|
|
72
73
|
}
|
|
74
|
+
export interface PTC008Request {
|
|
75
|
+
namespace: string;
|
|
76
|
+
xAppAccountId: string;
|
|
77
|
+
acceptLanguage?: string;
|
|
78
|
+
vergefyVersion?: string;
|
|
79
|
+
acceptTimezone?: string;
|
|
80
|
+
}
|
|
81
|
+
export interface PTC009Request {
|
|
82
|
+
xAppAccountId: string;
|
|
83
|
+
acceptLanguage?: string;
|
|
84
|
+
vergefyVersion?: string;
|
|
85
|
+
acceptTimezone?: string;
|
|
86
|
+
}
|
|
73
87
|
/**
|
|
74
88
|
*
|
|
75
89
|
*/
|
|
@@ -172,4 +186,32 @@ export declare class PLATFORMPTCPlatformTenantConfigurationApi extends runtime.B
|
|
|
172
186
|
* PTC007 - Get a tenant\'s configuration by key (cross-tenant, service-only)
|
|
173
187
|
*/
|
|
174
188
|
pTC007(requestParameters: PTC007Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseDTOTenantConfigurationDTO>;
|
|
189
|
+
/**
|
|
190
|
+
* Creates request options for pTC008 without sending the request
|
|
191
|
+
*/
|
|
192
|
+
pTC008RequestOpts(requestParameters: PTC008Request): Promise<runtime.RequestOpts>;
|
|
193
|
+
/**
|
|
194
|
+
* Lists every active schema definition within a configuration namespace, with the render metadata a settings UI needs (label key, layout group and order, input widget, value type, required permissions). Results are filtered to the entries whose own readPermission the caller holds, so an empty array means \'nothing here you may read\', NOT \'this namespace is unregistered\'.
|
|
195
|
+
* PTC008 - List Schema Registry Entries by Namespace
|
|
196
|
+
*/
|
|
197
|
+
pTC008Raw(requestParameters: PTC008Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseDTOListTenantConfigurationSchemaDTO>>;
|
|
198
|
+
/**
|
|
199
|
+
* Lists every active schema definition within a configuration namespace, with the render metadata a settings UI needs (label key, layout group and order, input widget, value type, required permissions). Results are filtered to the entries whose own readPermission the caller holds, so an empty array means \'nothing here you may read\', NOT \'this namespace is unregistered\'.
|
|
200
|
+
* PTC008 - List Schema Registry Entries by Namespace
|
|
201
|
+
*/
|
|
202
|
+
pTC008(requestParameters: PTC008Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseDTOListTenantConfigurationSchemaDTO>;
|
|
203
|
+
/**
|
|
204
|
+
* Creates request options for pTC009 without sending the request
|
|
205
|
+
*/
|
|
206
|
+
pTC009RequestOpts(requestParameters: PTC009Request): Promise<runtime.RequestOpts>;
|
|
207
|
+
/**
|
|
208
|
+
* Lists every active schema definition across every namespace, ordered by namespace then layout order. This is the discovery read: a client cannot enumerate what is configurable from its entitled apps: measured against the registry, only 5 of 48 registered namespaces correspond to an app (INT-2796). Results are filtered to the entries whose own readPermission the caller holds; an empty array means \'nothing you may read\', not an empty registry.
|
|
209
|
+
* PTC009 - List All Schema Registry Entries
|
|
210
|
+
*/
|
|
211
|
+
pTC009Raw(requestParameters: PTC009Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseDTOListTenantConfigurationSchemaDTO>>;
|
|
212
|
+
/**
|
|
213
|
+
* Lists every active schema definition across every namespace, ordered by namespace then layout order. This is the discovery read: a client cannot enumerate what is configurable from its entitled apps: measured against the registry, only 5 of 48 registered namespaces correspond to an app (INT-2796). Results are filtered to the entries whose own readPermission the caller holds; an empty array means \'nothing you may read\', not an empty registry.
|
|
214
|
+
* PTC009 - List All Schema Registry Entries
|
|
215
|
+
*/
|
|
216
|
+
pTC009(requestParameters: PTC009Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseDTOListTenantConfigurationSchemaDTO>;
|
|
175
217
|
}
|
|
@@ -24,6 +24,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.PLATFORMPTCPlatformTenantConfigurationApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
|
+
const DataResponseDTOListTenantConfigurationSchemaDTO_1 = require("../models/DataResponseDTOListTenantConfigurationSchemaDTO");
|
|
27
28
|
const DataResponseDTOTenantConfigurationDTO_1 = require("../models/DataResponseDTOTenantConfigurationDTO");
|
|
28
29
|
const DataResponseDTOTenantConfigurationSchemaEntity_1 = require("../models/DataResponseDTOTenantConfigurationSchemaEntity");
|
|
29
30
|
const PageTenantConfigurationDTO_1 = require("../models/PageTenantConfigurationDTO");
|
|
@@ -505,5 +506,127 @@ class PLATFORMPTCPlatformTenantConfigurationApi extends runtime.BaseAPI {
|
|
|
505
506
|
return yield response.value();
|
|
506
507
|
});
|
|
507
508
|
}
|
|
509
|
+
/**
|
|
510
|
+
* Creates request options for pTC008 without sending the request
|
|
511
|
+
*/
|
|
512
|
+
pTC008RequestOpts(requestParameters) {
|
|
513
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
514
|
+
if (requestParameters['namespace'] == null) {
|
|
515
|
+
throw new runtime.RequiredError('namespace', 'Required parameter "namespace" was null or undefined when calling pTC008().');
|
|
516
|
+
}
|
|
517
|
+
if (requestParameters['xAppAccountId'] == null) {
|
|
518
|
+
throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling pTC008().');
|
|
519
|
+
}
|
|
520
|
+
const queryParameters = {};
|
|
521
|
+
const headerParameters = {};
|
|
522
|
+
if (requestParameters['acceptLanguage'] != null) {
|
|
523
|
+
headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
|
|
524
|
+
}
|
|
525
|
+
if (requestParameters['xAppAccountId'] != null) {
|
|
526
|
+
headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
|
|
527
|
+
}
|
|
528
|
+
if (requestParameters['vergefyVersion'] != null) {
|
|
529
|
+
headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
|
|
530
|
+
}
|
|
531
|
+
if (requestParameters['acceptTimezone'] != null) {
|
|
532
|
+
headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
|
|
533
|
+
}
|
|
534
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
535
|
+
const token = this.configuration.accessToken;
|
|
536
|
+
const tokenString = yield token("BearerAuth", []);
|
|
537
|
+
if (tokenString) {
|
|
538
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
let urlPath = `/platform/tenant-configurations/schema/{namespace}`;
|
|
542
|
+
urlPath = urlPath.replace('{namespace}', encodeURIComponent(String(requestParameters['namespace'])));
|
|
543
|
+
return {
|
|
544
|
+
path: urlPath,
|
|
545
|
+
method: 'GET',
|
|
546
|
+
headers: headerParameters,
|
|
547
|
+
query: queryParameters,
|
|
548
|
+
};
|
|
549
|
+
});
|
|
550
|
+
}
|
|
551
|
+
/**
|
|
552
|
+
* Lists every active schema definition within a configuration namespace, with the render metadata a settings UI needs (label key, layout group and order, input widget, value type, required permissions). Results are filtered to the entries whose own readPermission the caller holds, so an empty array means \'nothing here you may read\', NOT \'this namespace is unregistered\'.
|
|
553
|
+
* PTC008 - List Schema Registry Entries by Namespace
|
|
554
|
+
*/
|
|
555
|
+
pTC008Raw(requestParameters, initOverrides) {
|
|
556
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
557
|
+
const requestOptions = yield this.pTC008RequestOpts(requestParameters);
|
|
558
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
559
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOListTenantConfigurationSchemaDTO_1.DataResponseDTOListTenantConfigurationSchemaDTOFromJSON)(jsonValue));
|
|
560
|
+
});
|
|
561
|
+
}
|
|
562
|
+
/**
|
|
563
|
+
* Lists every active schema definition within a configuration namespace, with the render metadata a settings UI needs (label key, layout group and order, input widget, value type, required permissions). Results are filtered to the entries whose own readPermission the caller holds, so an empty array means \'nothing here you may read\', NOT \'this namespace is unregistered\'.
|
|
564
|
+
* PTC008 - List Schema Registry Entries by Namespace
|
|
565
|
+
*/
|
|
566
|
+
pTC008(requestParameters, initOverrides) {
|
|
567
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
568
|
+
const response = yield this.pTC008Raw(requestParameters, initOverrides);
|
|
569
|
+
return yield response.value();
|
|
570
|
+
});
|
|
571
|
+
}
|
|
572
|
+
/**
|
|
573
|
+
* Creates request options for pTC009 without sending the request
|
|
574
|
+
*/
|
|
575
|
+
pTC009RequestOpts(requestParameters) {
|
|
576
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
577
|
+
if (requestParameters['xAppAccountId'] == null) {
|
|
578
|
+
throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling pTC009().');
|
|
579
|
+
}
|
|
580
|
+
const queryParameters = {};
|
|
581
|
+
const headerParameters = {};
|
|
582
|
+
if (requestParameters['acceptLanguage'] != null) {
|
|
583
|
+
headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
|
|
584
|
+
}
|
|
585
|
+
if (requestParameters['xAppAccountId'] != null) {
|
|
586
|
+
headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
|
|
587
|
+
}
|
|
588
|
+
if (requestParameters['vergefyVersion'] != null) {
|
|
589
|
+
headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
|
|
590
|
+
}
|
|
591
|
+
if (requestParameters['acceptTimezone'] != null) {
|
|
592
|
+
headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
|
|
593
|
+
}
|
|
594
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
595
|
+
const token = this.configuration.accessToken;
|
|
596
|
+
const tokenString = yield token("BearerAuth", []);
|
|
597
|
+
if (tokenString) {
|
|
598
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
let urlPath = `/platform/tenant-configurations/schema`;
|
|
602
|
+
return {
|
|
603
|
+
path: urlPath,
|
|
604
|
+
method: 'GET',
|
|
605
|
+
headers: headerParameters,
|
|
606
|
+
query: queryParameters,
|
|
607
|
+
};
|
|
608
|
+
});
|
|
609
|
+
}
|
|
610
|
+
/**
|
|
611
|
+
* Lists every active schema definition across every namespace, ordered by namespace then layout order. This is the discovery read: a client cannot enumerate what is configurable from its entitled apps: measured against the registry, only 5 of 48 registered namespaces correspond to an app (INT-2796). Results are filtered to the entries whose own readPermission the caller holds; an empty array means \'nothing you may read\', not an empty registry.
|
|
612
|
+
* PTC009 - List All Schema Registry Entries
|
|
613
|
+
*/
|
|
614
|
+
pTC009Raw(requestParameters, initOverrides) {
|
|
615
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
616
|
+
const requestOptions = yield this.pTC009RequestOpts(requestParameters);
|
|
617
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
618
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOListTenantConfigurationSchemaDTO_1.DataResponseDTOListTenantConfigurationSchemaDTOFromJSON)(jsonValue));
|
|
619
|
+
});
|
|
620
|
+
}
|
|
621
|
+
/**
|
|
622
|
+
* Lists every active schema definition across every namespace, ordered by namespace then layout order. This is the discovery read: a client cannot enumerate what is configurable from its entitled apps: measured against the registry, only 5 of 48 registered namespaces correspond to an app (INT-2796). Results are filtered to the entries whose own readPermission the caller holds; an empty array means \'nothing you may read\', not an empty registry.
|
|
623
|
+
* PTC009 - List All Schema Registry Entries
|
|
624
|
+
*/
|
|
625
|
+
pTC009(requestParameters, initOverrides) {
|
|
626
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
627
|
+
const response = yield this.pTC009Raw(requestParameters, initOverrides);
|
|
628
|
+
return yield response.value();
|
|
629
|
+
});
|
|
630
|
+
}
|
|
508
631
|
}
|
|
509
632
|
exports.PLATFORMPTCPlatformTenantConfigurationApi = PLATFORMPTCPlatformTenantConfigurationApi;
|
|
@@ -127,4 +127,100 @@ export class PLATFORMMCPOAuthQueryApi extends runtime.BaseAPI {
|
|
|
127
127
|
return yield response.value();
|
|
128
128
|
});
|
|
129
129
|
}
|
|
130
|
+
/**
|
|
131
|
+
* Creates request options for lMCP008 without sending the request
|
|
132
|
+
*/
|
|
133
|
+
lMCP008RequestOpts() {
|
|
134
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
135
|
+
const queryParameters = {};
|
|
136
|
+
const headerParameters = {};
|
|
137
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
138
|
+
const token = this.configuration.accessToken;
|
|
139
|
+
const tokenString = yield token("BearerAuth", []);
|
|
140
|
+
if (tokenString) {
|
|
141
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
let urlPath = `/pb/platform/mcp/.well-known/jwks.json`;
|
|
145
|
+
return {
|
|
146
|
+
path: urlPath,
|
|
147
|
+
method: 'GET',
|
|
148
|
+
headers: headerParameters,
|
|
149
|
+
query: queryParameters,
|
|
150
|
+
};
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Public JSON Web Key Set for the key the MCP authorization server signs its own resource-bound access tokens with. Returns an empty key set while minting is disabled. Public — a verifier must be able to fetch it without a credential.
|
|
155
|
+
* LMCP008 - JWKS for the MCP authorization server signing key
|
|
156
|
+
*/
|
|
157
|
+
lMCP008Raw(initOverrides) {
|
|
158
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
159
|
+
const requestOptions = yield this.lMCP008RequestOpts();
|
|
160
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
161
|
+
return new runtime.JSONApiResponse(response);
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Public JSON Web Key Set for the key the MCP authorization server signs its own resource-bound access tokens with. Returns an empty key set while minting is disabled. Public — a verifier must be able to fetch it without a credential.
|
|
166
|
+
* LMCP008 - JWKS for the MCP authorization server signing key
|
|
167
|
+
*/
|
|
168
|
+
lMCP008(initOverrides) {
|
|
169
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
170
|
+
const response = yield this.lMCP008Raw(initOverrides);
|
|
171
|
+
return yield response.value();
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Creates request options for lMCP009 without sending the request
|
|
176
|
+
*/
|
|
177
|
+
lMCP009RequestOpts(requestParameters) {
|
|
178
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
179
|
+
if (requestParameters['mcpIntrospectRequestDTO'] == null) {
|
|
180
|
+
throw new runtime.RequiredError('mcpIntrospectRequestDTO', 'Required parameter "mcpIntrospectRequestDTO" was null or undefined when calling lMCP009().');
|
|
181
|
+
}
|
|
182
|
+
const queryParameters = {};
|
|
183
|
+
const headerParameters = {};
|
|
184
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
185
|
+
if (requestParameters['xAmznMtlsClientcertSubject'] != null) {
|
|
186
|
+
headerParameters['X-Amzn-Mtls-Clientcert-Subject'] = String(requestParameters['xAmznMtlsClientcertSubject']);
|
|
187
|
+
}
|
|
188
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
189
|
+
const token = this.configuration.accessToken;
|
|
190
|
+
const tokenString = yield token("BearerAuth", []);
|
|
191
|
+
if (tokenString) {
|
|
192
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
let urlPath = `/pb/platform/mcp/token/exchange`;
|
|
196
|
+
return {
|
|
197
|
+
path: urlPath,
|
|
198
|
+
method: 'POST',
|
|
199
|
+
headers: headerParameters,
|
|
200
|
+
query: queryParameters,
|
|
201
|
+
body: McpIntrospectRequestDTOToJSON(requestParameters['mcpIntrospectRequestDTO']),
|
|
202
|
+
};
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Returns a short-lived Vergefy API access token for the user behind a live MCP connection, so the gateway never replays the token it was given. Requires a verified client certificate; reachable only via the mTLS listener.
|
|
207
|
+
* LMCP009 - Exchange an MCP token for an upstream credential
|
|
208
|
+
*/
|
|
209
|
+
lMCP009Raw(requestParameters, initOverrides) {
|
|
210
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
211
|
+
const requestOptions = yield this.lMCP009RequestOpts(requestParameters);
|
|
212
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
213
|
+
return new runtime.JSONApiResponse(response);
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Returns a short-lived Vergefy API access token for the user behind a live MCP connection, so the gateway never replays the token it was given. Requires a verified client certificate; reachable only via the mTLS listener.
|
|
218
|
+
* LMCP009 - Exchange an MCP token for an upstream credential
|
|
219
|
+
*/
|
|
220
|
+
lMCP009(requestParameters, initOverrides) {
|
|
221
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
222
|
+
const response = yield this.lMCP009Raw(requestParameters, initOverrides);
|
|
223
|
+
return yield response.value();
|
|
224
|
+
});
|
|
225
|
+
}
|
|
130
226
|
}
|
|
@@ -21,6 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
+
import { DataResponseDTOListTenantConfigurationSchemaDTOFromJSON, } from '../models/DataResponseDTOListTenantConfigurationSchemaDTO';
|
|
24
25
|
import { DataResponseDTOTenantConfigurationDTOFromJSON, } from '../models/DataResponseDTOTenantConfigurationDTO';
|
|
25
26
|
import { DataResponseDTOTenantConfigurationSchemaEntityFromJSON, } from '../models/DataResponseDTOTenantConfigurationSchemaEntity';
|
|
26
27
|
import { PageTenantConfigurationDTOFromJSON, } from '../models/PageTenantConfigurationDTO';
|
|
@@ -502,4 +503,126 @@ export class PLATFORMPTCPlatformTenantConfigurationApi extends runtime.BaseAPI {
|
|
|
502
503
|
return yield response.value();
|
|
503
504
|
});
|
|
504
505
|
}
|
|
506
|
+
/**
|
|
507
|
+
* Creates request options for pTC008 without sending the request
|
|
508
|
+
*/
|
|
509
|
+
pTC008RequestOpts(requestParameters) {
|
|
510
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
511
|
+
if (requestParameters['namespace'] == null) {
|
|
512
|
+
throw new runtime.RequiredError('namespace', 'Required parameter "namespace" was null or undefined when calling pTC008().');
|
|
513
|
+
}
|
|
514
|
+
if (requestParameters['xAppAccountId'] == null) {
|
|
515
|
+
throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling pTC008().');
|
|
516
|
+
}
|
|
517
|
+
const queryParameters = {};
|
|
518
|
+
const headerParameters = {};
|
|
519
|
+
if (requestParameters['acceptLanguage'] != null) {
|
|
520
|
+
headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
|
|
521
|
+
}
|
|
522
|
+
if (requestParameters['xAppAccountId'] != null) {
|
|
523
|
+
headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
|
|
524
|
+
}
|
|
525
|
+
if (requestParameters['vergefyVersion'] != null) {
|
|
526
|
+
headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
|
|
527
|
+
}
|
|
528
|
+
if (requestParameters['acceptTimezone'] != null) {
|
|
529
|
+
headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
|
|
530
|
+
}
|
|
531
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
532
|
+
const token = this.configuration.accessToken;
|
|
533
|
+
const tokenString = yield token("BearerAuth", []);
|
|
534
|
+
if (tokenString) {
|
|
535
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
let urlPath = `/platform/tenant-configurations/schema/{namespace}`;
|
|
539
|
+
urlPath = urlPath.replace('{namespace}', encodeURIComponent(String(requestParameters['namespace'])));
|
|
540
|
+
return {
|
|
541
|
+
path: urlPath,
|
|
542
|
+
method: 'GET',
|
|
543
|
+
headers: headerParameters,
|
|
544
|
+
query: queryParameters,
|
|
545
|
+
};
|
|
546
|
+
});
|
|
547
|
+
}
|
|
548
|
+
/**
|
|
549
|
+
* Lists every active schema definition within a configuration namespace, with the render metadata a settings UI needs (label key, layout group and order, input widget, value type, required permissions). Results are filtered to the entries whose own readPermission the caller holds, so an empty array means \'nothing here you may read\', NOT \'this namespace is unregistered\'.
|
|
550
|
+
* PTC008 - List Schema Registry Entries by Namespace
|
|
551
|
+
*/
|
|
552
|
+
pTC008Raw(requestParameters, initOverrides) {
|
|
553
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
554
|
+
const requestOptions = yield this.pTC008RequestOpts(requestParameters);
|
|
555
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
556
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseDTOListTenantConfigurationSchemaDTOFromJSON(jsonValue));
|
|
557
|
+
});
|
|
558
|
+
}
|
|
559
|
+
/**
|
|
560
|
+
* Lists every active schema definition within a configuration namespace, with the render metadata a settings UI needs (label key, layout group and order, input widget, value type, required permissions). Results are filtered to the entries whose own readPermission the caller holds, so an empty array means \'nothing here you may read\', NOT \'this namespace is unregistered\'.
|
|
561
|
+
* PTC008 - List Schema Registry Entries by Namespace
|
|
562
|
+
*/
|
|
563
|
+
pTC008(requestParameters, initOverrides) {
|
|
564
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
565
|
+
const response = yield this.pTC008Raw(requestParameters, initOverrides);
|
|
566
|
+
return yield response.value();
|
|
567
|
+
});
|
|
568
|
+
}
|
|
569
|
+
/**
|
|
570
|
+
* Creates request options for pTC009 without sending the request
|
|
571
|
+
*/
|
|
572
|
+
pTC009RequestOpts(requestParameters) {
|
|
573
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
574
|
+
if (requestParameters['xAppAccountId'] == null) {
|
|
575
|
+
throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling pTC009().');
|
|
576
|
+
}
|
|
577
|
+
const queryParameters = {};
|
|
578
|
+
const headerParameters = {};
|
|
579
|
+
if (requestParameters['acceptLanguage'] != null) {
|
|
580
|
+
headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
|
|
581
|
+
}
|
|
582
|
+
if (requestParameters['xAppAccountId'] != null) {
|
|
583
|
+
headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
|
|
584
|
+
}
|
|
585
|
+
if (requestParameters['vergefyVersion'] != null) {
|
|
586
|
+
headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
|
|
587
|
+
}
|
|
588
|
+
if (requestParameters['acceptTimezone'] != null) {
|
|
589
|
+
headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
|
|
590
|
+
}
|
|
591
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
592
|
+
const token = this.configuration.accessToken;
|
|
593
|
+
const tokenString = yield token("BearerAuth", []);
|
|
594
|
+
if (tokenString) {
|
|
595
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
let urlPath = `/platform/tenant-configurations/schema`;
|
|
599
|
+
return {
|
|
600
|
+
path: urlPath,
|
|
601
|
+
method: 'GET',
|
|
602
|
+
headers: headerParameters,
|
|
603
|
+
query: queryParameters,
|
|
604
|
+
};
|
|
605
|
+
});
|
|
606
|
+
}
|
|
607
|
+
/**
|
|
608
|
+
* Lists every active schema definition across every namespace, ordered by namespace then layout order. This is the discovery read: a client cannot enumerate what is configurable from its entitled apps: measured against the registry, only 5 of 48 registered namespaces correspond to an app (INT-2796). Results are filtered to the entries whose own readPermission the caller holds; an empty array means \'nothing you may read\', not an empty registry.
|
|
609
|
+
* PTC009 - List All Schema Registry Entries
|
|
610
|
+
*/
|
|
611
|
+
pTC009Raw(requestParameters, initOverrides) {
|
|
612
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
613
|
+
const requestOptions = yield this.pTC009RequestOpts(requestParameters);
|
|
614
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
615
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseDTOListTenantConfigurationSchemaDTOFromJSON(jsonValue));
|
|
616
|
+
});
|
|
617
|
+
}
|
|
618
|
+
/**
|
|
619
|
+
* Lists every active schema definition across every namespace, ordered by namespace then layout order. This is the discovery read: a client cannot enumerate what is configurable from its entitled apps: measured against the registry, only 5 of 48 registered namespaces correspond to an app (INT-2796). Results are filtered to the entries whose own readPermission the caller holds; an empty array means \'nothing you may read\', not an empty registry.
|
|
620
|
+
* PTC009 - List All Schema Registry Entries
|
|
621
|
+
*/
|
|
622
|
+
pTC009(requestParameters, initOverrides) {
|
|
623
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
624
|
+
const response = yield this.pTC009Raw(requestParameters, initOverrides);
|
|
625
|
+
return yield response.value();
|
|
626
|
+
});
|
|
627
|
+
}
|
|
505
628
|
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* Mirrors the canonical Java `ext/Telemetry`.
|
|
9
9
|
*/
|
|
10
10
|
/** Kept in sync with `vergefySdkVersion` (the published artifact version). */
|
|
11
|
-
export const VERSION = '0.
|
|
11
|
+
export const VERSION = '0.19.0';
|
|
12
12
|
const NAME = 'vergefy-typescript-client';
|
|
13
13
|
/** The `User-Agent` value, e.g. `vergefy-typescript-client/0.1.0`. */
|
|
14
14
|
export function userAgent() {
|