@integrahub/vergefy-client 0.31.0 → 0.32.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/AIIUCPCUCPConfigurationApi.d.ts +45 -2
- package/dist/apis/AIIUCPCUCPConfigurationApi.js +126 -2
- package/dist/apis/AIIUCPPUCPPublicProfileApi.d.ts +35 -0
- package/dist/apis/AIIUCPPUCPPublicProfileApi.js +81 -0
- package/dist/apis/PLATFORMLPSPlatformServiceApi.d.ts +4 -4
- package/dist/apis/PLATFORMLPSPlatformServiceApi.js +4 -4
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/AIIUCPCUCPConfigurationApi.js +126 -2
- package/dist/esm/apis/AIIUCPPUCPPublicProfileApi.js +77 -0
- package/dist/esm/apis/PLATFORMLPSPlatformServiceApi.js +4 -4
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/ext/telemetry.js +1 -1
- package/dist/esm/models/CreateAccountRequestDTO.js +3 -1
- package/dist/esm/models/DataResponseDTOUcpSigningKeyRotationDTO.js +42 -0
- package/dist/esm/models/DataResponseDTOUcpSigningKeyWithdrawalDTO.js +42 -0
- package/dist/esm/models/MailSegment.js +3 -11
- package/dist/esm/models/RefundRequestDTO.js +2 -0
- package/dist/esm/models/UcpPublicProfileBodyDTO.js +43 -0
- package/dist/esm/models/UcpPublicProfileCapabilityDTO.js +45 -0
- package/dist/esm/models/UcpPublicProfileDTO.js +45 -0
- package/dist/esm/models/UcpSigningKeyJwkDTO.js +53 -0
- package/dist/esm/models/UcpSigningKeyRotationDTO.js +43 -0
- package/dist/esm/models/UcpSigningKeyWithdrawalDTO.js +47 -0
- package/dist/esm/models/index.js +8 -5
- package/dist/ext/telemetry.d.ts +1 -1
- package/dist/ext/telemetry.js +1 -1
- package/dist/models/CreateAccountRequestDTO.d.ts +1 -1
- package/dist/models/CreateAccountRequestDTO.js +3 -1
- package/dist/models/DataResponseDTOUcpSigningKeyRotationDTO.d.ts +33 -0
- package/dist/models/DataResponseDTOUcpSigningKeyRotationDTO.js +49 -0
- package/dist/models/DataResponseDTOUcpSigningKeyWithdrawalDTO.d.ts +33 -0
- package/dist/models/DataResponseDTOUcpSigningKeyWithdrawalDTO.js +49 -0
- package/dist/models/MailSegment.d.ts +4 -24
- package/dist/models/MailSegment.js +3 -11
- package/dist/models/RefundRequestDTO.d.ts +6 -0
- package/dist/models/RefundRequestDTO.js +2 -0
- package/dist/models/UcpPublicProfileBodyDTO.d.ts +41 -0
- package/dist/models/UcpPublicProfileBodyDTO.js +50 -0
- package/dist/models/UcpPublicProfileCapabilityDTO.d.ts +44 -0
- package/dist/models/UcpPublicProfileCapabilityDTO.js +52 -0
- package/dist/models/UcpPublicProfileDTO.d.ts +40 -0
- package/dist/models/UcpPublicProfileDTO.js +52 -0
- package/dist/models/UcpSigningKeyJwkDTO.d.ts +68 -0
- package/dist/models/UcpSigningKeyJwkDTO.js +60 -0
- package/dist/models/UcpSigningKeyRotationDTO.d.ts +38 -0
- package/dist/models/UcpSigningKeyRotationDTO.js +50 -0
- package/dist/models/UcpSigningKeyWithdrawalDTO.d.ts +50 -0
- package/dist/models/UcpSigningKeyWithdrawalDTO.js +54 -0
- package/dist/models/UcpWebhookRegistrationDTO.d.ts +2 -2
- package/dist/models/index.d.ts +8 -5
- package/dist/models/index.js +8 -5
- package/package.json +1 -1
- package/dist/esm/models/MailCampaign.js +0 -147
- package/dist/esm/models/MailCampaignSegment.js +0 -90
- package/dist/esm/models/MailSegmentSubscriber.js +0 -92
- package/dist/esm/models/MailSubscription.js +0 -156
- package/dist/esm/models/MailTemplate.js +0 -111
- package/dist/models/MailCampaign.d.ts +0 -296
- package/dist/models/MailCampaign.js +0 -155
- package/dist/models/MailCampaignSegment.d.ts +0 -154
- package/dist/models/MailCampaignSegment.js +0 -98
- package/dist/models/MailSegmentSubscriber.d.ts +0 -160
- package/dist/models/MailSegmentSubscriber.js +0 -100
- package/dist/models/MailSubscription.d.ts +0 -294
- package/dist/models/MailSubscription.js +0 -164
- package/dist/models/MailTemplate.d.ts +0 -192
- package/dist/models/MailTemplate.js +0 -119
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @integrahub/vergefy-client@0.
|
|
1
|
+
# @integrahub/vergefy-client@0.32.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.32.0`
|
|
94
94
|
- Generator version: `7.22.0`
|
|
95
95
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
96
96
|
|
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import { type DataListResponseDTOUcpWebhookRegistrationDTO } from '../models/DataListResponseDTOUcpWebhookRegistrationDTO';
|
|
14
|
+
import { type DataResponseDTOUcpSigningKeyRotationDTO } from '../models/DataResponseDTOUcpSigningKeyRotationDTO';
|
|
15
|
+
import { type DataResponseDTOUcpSigningKeyWithdrawalDTO } from '../models/DataResponseDTOUcpSigningKeyWithdrawalDTO';
|
|
14
16
|
import { type DataResponseDTOUcpWebhookRegistrationDTO } from '../models/DataResponseDTOUcpWebhookRegistrationDTO';
|
|
15
17
|
import { type UcpWebhookRegistrationDTO } from '../models/UcpWebhookRegistrationDTO';
|
|
16
18
|
export interface IUCPC023Request {
|
|
@@ -40,6 +42,19 @@ export interface IUCPC026Request {
|
|
|
40
42
|
vergefyVersion?: string;
|
|
41
43
|
acceptTimezone?: string;
|
|
42
44
|
}
|
|
45
|
+
export interface IUCPC027Request {
|
|
46
|
+
xAppAccountId: string;
|
|
47
|
+
acceptLanguage?: string;
|
|
48
|
+
vergefyVersion?: string;
|
|
49
|
+
acceptTimezone?: string;
|
|
50
|
+
}
|
|
51
|
+
export interface IUCPC028Request {
|
|
52
|
+
keyId: string;
|
|
53
|
+
xAppAccountId: string;
|
|
54
|
+
acceptLanguage?: string;
|
|
55
|
+
vergefyVersion?: string;
|
|
56
|
+
acceptTimezone?: string;
|
|
57
|
+
}
|
|
43
58
|
/**
|
|
44
59
|
*
|
|
45
60
|
*/
|
|
@@ -49,12 +64,12 @@ export declare class AIIUCPCUCPConfigurationApi extends runtime.BaseAPI {
|
|
|
49
64
|
*/
|
|
50
65
|
iUCPC023RequestOpts(requestParameters: IUCPC023Request): Promise<runtime.RequestOpts>;
|
|
51
66
|
/**
|
|
52
|
-
* Registers a webhook endpoint for the UCP order lifecycle events of the orders one agent places with this seller. `agentId` is that agent\'s profile URI, as the agent sends it in `agentProfileUri` when it opens a checkout session (or in the buyer\'s `agentProfileUri` when the request has none at the top).
|
|
67
|
+
* Registers a webhook endpoint for the UCP order lifecycle events of the orders one agent places with this seller. `agentId` is that agent\'s profile URI, as the agent sends it in `agentProfileUri` when it opens a checkout session (or in the buyer\'s `agentProfileUri` when the request has none at the top). Surrounding spaces are removed; after that it is compared character for character, so a different case or a trailing slash names a different agent, and an order\'s events reach only the active registrations of the agent that placed it. `endpointUrl` must be a public https URL, and the agent must declare it: registration fetches the agent\'s UCP profile from `agentId` (https, no redirect) and requires its order capability (`ucp.capabilities[\"dev.ucp.shopping.order\"][].config.webhook_url`) to name `endpointUrl`, compared as a URI: the scheme and host in any case, and a default port the same as none. `subscribedEvents` names event types with or without the `ucp.` prefix (`order.shipped` or `ucp.order.shipped`). Registering the same agent and endpoint again checks the profile again, replaces the subscribed events and returns the same registration.
|
|
53
68
|
* IUCPC023 - Register Agent Webhook
|
|
54
69
|
*/
|
|
55
70
|
iUCPC023Raw(requestParameters: IUCPC023Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseDTOUcpWebhookRegistrationDTO>>;
|
|
56
71
|
/**
|
|
57
|
-
* Registers a webhook endpoint for the UCP order lifecycle events of the orders one agent places with this seller. `agentId` is that agent\'s profile URI, as the agent sends it in `agentProfileUri` when it opens a checkout session (or in the buyer\'s `agentProfileUri` when the request has none at the top).
|
|
72
|
+
* Registers a webhook endpoint for the UCP order lifecycle events of the orders one agent places with this seller. `agentId` is that agent\'s profile URI, as the agent sends it in `agentProfileUri` when it opens a checkout session (or in the buyer\'s `agentProfileUri` when the request has none at the top). Surrounding spaces are removed; after that it is compared character for character, so a different case or a trailing slash names a different agent, and an order\'s events reach only the active registrations of the agent that placed it. `endpointUrl` must be a public https URL, and the agent must declare it: registration fetches the agent\'s UCP profile from `agentId` (https, no redirect) and requires its order capability (`ucp.capabilities[\"dev.ucp.shopping.order\"][].config.webhook_url`) to name `endpointUrl`, compared as a URI: the scheme and host in any case, and a default port the same as none. `subscribedEvents` names event types with or without the `ucp.` prefix (`order.shipped` or `ucp.order.shipped`). Registering the same agent and endpoint again checks the profile again, replaces the subscribed events and returns the same registration.
|
|
58
73
|
* IUCPC023 - Register Agent Webhook
|
|
59
74
|
*/
|
|
60
75
|
iUCPC023(requestParameters: IUCPC023Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseDTOUcpWebhookRegistrationDTO>;
|
|
@@ -100,4 +115,32 @@ export declare class AIIUCPCUCPConfigurationApi extends runtime.BaseAPI {
|
|
|
100
115
|
* IUCPC026 - Get Webhook by ID
|
|
101
116
|
*/
|
|
102
117
|
iUCPC026(requestParameters: IUCPC026Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseDTOUcpWebhookRegistrationDTO>;
|
|
118
|
+
/**
|
|
119
|
+
* Creates request options for iUCPC027 without sending the request
|
|
120
|
+
*/
|
|
121
|
+
iUCPC027RequestOpts(requestParameters: IUCPC027Request): Promise<runtime.RequestOpts>;
|
|
122
|
+
/**
|
|
123
|
+
* Rotates the key the seller\'s UCP order webhooks are signed with, as the 90-day schedule would. The new key is listed in the seller\'s public UCP profile at once, and starts signing 15 minutes later, longer than an agent may keep the profile; until then the key before it signs. The keys before it stay published for 48 hours, so an agent can verify every delivery they signed. One rotation may be pending at a time. A leaked key is withdrawn instead, which takes it out of the profile at once.
|
|
124
|
+
* IUCPC027 - Rotate Webhook Signing Key
|
|
125
|
+
*/
|
|
126
|
+
iUCPC027Raw(requestParameters: IUCPC027Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseDTOUcpSigningKeyRotationDTO>>;
|
|
127
|
+
/**
|
|
128
|
+
* Rotates the key the seller\'s UCP order webhooks are signed with, as the 90-day schedule would. The new key is listed in the seller\'s public UCP profile at once, and starts signing 15 minutes later, longer than an agent may keep the profile; until then the key before it signs. The keys before it stay published for 48 hours, so an agent can verify every delivery they signed. One rotation may be pending at a time. A leaked key is withdrawn instead, which takes it out of the profile at once.
|
|
129
|
+
* IUCPC027 - Rotate Webhook Signing Key
|
|
130
|
+
*/
|
|
131
|
+
iUCPC027(requestParameters: IUCPC027Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseDTOUcpSigningKeyRotationDTO>;
|
|
132
|
+
/**
|
|
133
|
+
* Creates request options for iUCPC028 without sending the request
|
|
134
|
+
*/
|
|
135
|
+
iUCPC028RequestOpts(requestParameters: IUCPC028Request): Promise<runtime.RequestOpts>;
|
|
136
|
+
/**
|
|
137
|
+
* Withdraws one of the seller\'s UCP webhook signing keys at once, as for a key that leaked: it is taken out of the seller\'s public UCP profile and never signs again. When it was the key signing, a new key replaces it and signs at once; an agent whose copy of the profile lacks the new key fetches the profile again. When it was a rotation\'s key that did not sign yet, a new key takes its place and signs 15 minutes later, while the key signing now goes on signing until then. Any other key needs no replacement. The key id is the one the profile lists.
|
|
138
|
+
* IUCPC028 - Withdraw Webhook Signing Key
|
|
139
|
+
*/
|
|
140
|
+
iUCPC028Raw(requestParameters: IUCPC028Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseDTOUcpSigningKeyWithdrawalDTO>>;
|
|
141
|
+
/**
|
|
142
|
+
* Withdraws one of the seller\'s UCP webhook signing keys at once, as for a key that leaked: it is taken out of the seller\'s public UCP profile and never signs again. When it was the key signing, a new key replaces it and signs at once; an agent whose copy of the profile lacks the new key fetches the profile again. When it was a rotation\'s key that did not sign yet, a new key takes its place and signs 15 minutes later, while the key signing now goes on signing until then. Any other key needs no replacement. The key id is the one the profile lists.
|
|
143
|
+
* IUCPC028 - Withdraw Webhook Signing Key
|
|
144
|
+
*/
|
|
145
|
+
iUCPC028(requestParameters: IUCPC028Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseDTOUcpSigningKeyWithdrawalDTO>;
|
|
103
146
|
}
|
|
@@ -25,6 +25,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
25
25
|
exports.AIIUCPCUCPConfigurationApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
27
|
const DataListResponseDTOUcpWebhookRegistrationDTO_1 = require("../models/DataListResponseDTOUcpWebhookRegistrationDTO");
|
|
28
|
+
const DataResponseDTOUcpSigningKeyRotationDTO_1 = require("../models/DataResponseDTOUcpSigningKeyRotationDTO");
|
|
29
|
+
const DataResponseDTOUcpSigningKeyWithdrawalDTO_1 = require("../models/DataResponseDTOUcpSigningKeyWithdrawalDTO");
|
|
28
30
|
const DataResponseDTOUcpWebhookRegistrationDTO_1 = require("../models/DataResponseDTOUcpWebhookRegistrationDTO");
|
|
29
31
|
const UcpWebhookRegistrationDTO_1 = require("../models/UcpWebhookRegistrationDTO");
|
|
30
32
|
/**
|
|
@@ -75,7 +77,7 @@ class AIIUCPCUCPConfigurationApi extends runtime.BaseAPI {
|
|
|
75
77
|
});
|
|
76
78
|
}
|
|
77
79
|
/**
|
|
78
|
-
* Registers a webhook endpoint for the UCP order lifecycle events of the orders one agent places with this seller. `agentId` is that agent\'s profile URI, as the agent sends it in `agentProfileUri` when it opens a checkout session (or in the buyer\'s `agentProfileUri` when the request has none at the top).
|
|
80
|
+
* Registers a webhook endpoint for the UCP order lifecycle events of the orders one agent places with this seller. `agentId` is that agent\'s profile URI, as the agent sends it in `agentProfileUri` when it opens a checkout session (or in the buyer\'s `agentProfileUri` when the request has none at the top). Surrounding spaces are removed; after that it is compared character for character, so a different case or a trailing slash names a different agent, and an order\'s events reach only the active registrations of the agent that placed it. `endpointUrl` must be a public https URL, and the agent must declare it: registration fetches the agent\'s UCP profile from `agentId` (https, no redirect) and requires its order capability (`ucp.capabilities[\"dev.ucp.shopping.order\"][].config.webhook_url`) to name `endpointUrl`, compared as a URI: the scheme and host in any case, and a default port the same as none. `subscribedEvents` names event types with or without the `ucp.` prefix (`order.shipped` or `ucp.order.shipped`). Registering the same agent and endpoint again checks the profile again, replaces the subscribed events and returns the same registration.
|
|
79
81
|
* IUCPC023 - Register Agent Webhook
|
|
80
82
|
*/
|
|
81
83
|
iUCPC023Raw(requestParameters, initOverrides) {
|
|
@@ -86,7 +88,7 @@ class AIIUCPCUCPConfigurationApi extends runtime.BaseAPI {
|
|
|
86
88
|
});
|
|
87
89
|
}
|
|
88
90
|
/**
|
|
89
|
-
* Registers a webhook endpoint for the UCP order lifecycle events of the orders one agent places with this seller. `agentId` is that agent\'s profile URI, as the agent sends it in `agentProfileUri` when it opens a checkout session (or in the buyer\'s `agentProfileUri` when the request has none at the top).
|
|
91
|
+
* Registers a webhook endpoint for the UCP order lifecycle events of the orders one agent places with this seller. `agentId` is that agent\'s profile URI, as the agent sends it in `agentProfileUri` when it opens a checkout session (or in the buyer\'s `agentProfileUri` when the request has none at the top). Surrounding spaces are removed; after that it is compared character for character, so a different case or a trailing slash names a different agent, and an order\'s events reach only the active registrations of the agent that placed it. `endpointUrl` must be a public https URL, and the agent must declare it: registration fetches the agent\'s UCP profile from `agentId` (https, no redirect) and requires its order capability (`ucp.capabilities[\"dev.ucp.shopping.order\"][].config.webhook_url`) to name `endpointUrl`, compared as a URI: the scheme and host in any case, and a default port the same as none. `subscribedEvents` names event types with or without the `ucp.` prefix (`order.shipped` or `ucp.order.shipped`). Registering the same agent and endpoint again checks the profile again, replaces the subscribed events and returns the same registration.
|
|
90
92
|
* IUCPC023 - Register Agent Webhook
|
|
91
93
|
*/
|
|
92
94
|
iUCPC023(requestParameters, initOverrides) {
|
|
@@ -279,5 +281,127 @@ class AIIUCPCUCPConfigurationApi extends runtime.BaseAPI {
|
|
|
279
281
|
return yield response.value();
|
|
280
282
|
});
|
|
281
283
|
}
|
|
284
|
+
/**
|
|
285
|
+
* Creates request options for iUCPC027 without sending the request
|
|
286
|
+
*/
|
|
287
|
+
iUCPC027RequestOpts(requestParameters) {
|
|
288
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
289
|
+
if (requestParameters['xAppAccountId'] == null) {
|
|
290
|
+
throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling iUCPC027().');
|
|
291
|
+
}
|
|
292
|
+
const queryParameters = {};
|
|
293
|
+
const headerParameters = {};
|
|
294
|
+
if (requestParameters['acceptLanguage'] != null) {
|
|
295
|
+
headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
|
|
296
|
+
}
|
|
297
|
+
if (requestParameters['xAppAccountId'] != null) {
|
|
298
|
+
headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
|
|
299
|
+
}
|
|
300
|
+
if (requestParameters['vergefyVersion'] != null) {
|
|
301
|
+
headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
|
|
302
|
+
}
|
|
303
|
+
if (requestParameters['acceptTimezone'] != null) {
|
|
304
|
+
headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
|
|
305
|
+
}
|
|
306
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
307
|
+
const token = this.configuration.accessToken;
|
|
308
|
+
const tokenString = yield token("BearerAuth", []);
|
|
309
|
+
if (tokenString) {
|
|
310
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
let urlPath = `/ai/protocols/ucp/signing-keys/rotate`;
|
|
314
|
+
return {
|
|
315
|
+
path: urlPath,
|
|
316
|
+
method: 'POST',
|
|
317
|
+
headers: headerParameters,
|
|
318
|
+
query: queryParameters,
|
|
319
|
+
};
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
/**
|
|
323
|
+
* Rotates the key the seller\'s UCP order webhooks are signed with, as the 90-day schedule would. The new key is listed in the seller\'s public UCP profile at once, and starts signing 15 minutes later, longer than an agent may keep the profile; until then the key before it signs. The keys before it stay published for 48 hours, so an agent can verify every delivery they signed. One rotation may be pending at a time. A leaked key is withdrawn instead, which takes it out of the profile at once.
|
|
324
|
+
* IUCPC027 - Rotate Webhook Signing Key
|
|
325
|
+
*/
|
|
326
|
+
iUCPC027Raw(requestParameters, initOverrides) {
|
|
327
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
328
|
+
const requestOptions = yield this.iUCPC027RequestOpts(requestParameters);
|
|
329
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
330
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOUcpSigningKeyRotationDTO_1.DataResponseDTOUcpSigningKeyRotationDTOFromJSON)(jsonValue));
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
/**
|
|
334
|
+
* Rotates the key the seller\'s UCP order webhooks are signed with, as the 90-day schedule would. The new key is listed in the seller\'s public UCP profile at once, and starts signing 15 minutes later, longer than an agent may keep the profile; until then the key before it signs. The keys before it stay published for 48 hours, so an agent can verify every delivery they signed. One rotation may be pending at a time. A leaked key is withdrawn instead, which takes it out of the profile at once.
|
|
335
|
+
* IUCPC027 - Rotate Webhook Signing Key
|
|
336
|
+
*/
|
|
337
|
+
iUCPC027(requestParameters, initOverrides) {
|
|
338
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
339
|
+
const response = yield this.iUCPC027Raw(requestParameters, initOverrides);
|
|
340
|
+
return yield response.value();
|
|
341
|
+
});
|
|
342
|
+
}
|
|
343
|
+
/**
|
|
344
|
+
* Creates request options for iUCPC028 without sending the request
|
|
345
|
+
*/
|
|
346
|
+
iUCPC028RequestOpts(requestParameters) {
|
|
347
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
348
|
+
if (requestParameters['keyId'] == null) {
|
|
349
|
+
throw new runtime.RequiredError('keyId', 'Required parameter "keyId" was null or undefined when calling iUCPC028().');
|
|
350
|
+
}
|
|
351
|
+
if (requestParameters['xAppAccountId'] == null) {
|
|
352
|
+
throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling iUCPC028().');
|
|
353
|
+
}
|
|
354
|
+
const queryParameters = {};
|
|
355
|
+
const headerParameters = {};
|
|
356
|
+
if (requestParameters['acceptLanguage'] != null) {
|
|
357
|
+
headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
|
|
358
|
+
}
|
|
359
|
+
if (requestParameters['xAppAccountId'] != null) {
|
|
360
|
+
headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
|
|
361
|
+
}
|
|
362
|
+
if (requestParameters['vergefyVersion'] != null) {
|
|
363
|
+
headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
|
|
364
|
+
}
|
|
365
|
+
if (requestParameters['acceptTimezone'] != null) {
|
|
366
|
+
headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
|
|
367
|
+
}
|
|
368
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
369
|
+
const token = this.configuration.accessToken;
|
|
370
|
+
const tokenString = yield token("BearerAuth", []);
|
|
371
|
+
if (tokenString) {
|
|
372
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
let urlPath = `/ai/protocols/ucp/signing-keys/{keyId}/withdraw`;
|
|
376
|
+
urlPath = urlPath.replace('{keyId}', encodeURIComponent(String(requestParameters['keyId'])));
|
|
377
|
+
return {
|
|
378
|
+
path: urlPath,
|
|
379
|
+
method: 'POST',
|
|
380
|
+
headers: headerParameters,
|
|
381
|
+
query: queryParameters,
|
|
382
|
+
};
|
|
383
|
+
});
|
|
384
|
+
}
|
|
385
|
+
/**
|
|
386
|
+
* Withdraws one of the seller\'s UCP webhook signing keys at once, as for a key that leaked: it is taken out of the seller\'s public UCP profile and never signs again. When it was the key signing, a new key replaces it and signs at once; an agent whose copy of the profile lacks the new key fetches the profile again. When it was a rotation\'s key that did not sign yet, a new key takes its place and signs 15 minutes later, while the key signing now goes on signing until then. Any other key needs no replacement. The key id is the one the profile lists.
|
|
387
|
+
* IUCPC028 - Withdraw Webhook Signing Key
|
|
388
|
+
*/
|
|
389
|
+
iUCPC028Raw(requestParameters, initOverrides) {
|
|
390
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
391
|
+
const requestOptions = yield this.iUCPC028RequestOpts(requestParameters);
|
|
392
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
393
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOUcpSigningKeyWithdrawalDTO_1.DataResponseDTOUcpSigningKeyWithdrawalDTOFromJSON)(jsonValue));
|
|
394
|
+
});
|
|
395
|
+
}
|
|
396
|
+
/**
|
|
397
|
+
* Withdraws one of the seller\'s UCP webhook signing keys at once, as for a key that leaked: it is taken out of the seller\'s public UCP profile and never signs again. When it was the key signing, a new key replaces it and signs at once; an agent whose copy of the profile lacks the new key fetches the profile again. When it was a rotation\'s key that did not sign yet, a new key takes its place and signs 15 minutes later, while the key signing now goes on signing until then. Any other key needs no replacement. The key id is the one the profile lists.
|
|
398
|
+
* IUCPC028 - Withdraw Webhook Signing Key
|
|
399
|
+
*/
|
|
400
|
+
iUCPC028(requestParameters, initOverrides) {
|
|
401
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
402
|
+
const response = yield this.iUCPC028Raw(requestParameters, initOverrides);
|
|
403
|
+
return yield response.value();
|
|
404
|
+
});
|
|
405
|
+
}
|
|
282
406
|
}
|
|
283
407
|
exports.AIIUCPCUCPConfigurationApi = AIIUCPCUCPConfigurationApi;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vergefy API
|
|
3
|
+
* <h1>AI Agent Management</h1><p>Create, configure, and orchestrate AI agents with multi-provider support.</p><h2>Modules</h2><ul><li><b>Agent (IAG):</b> Agent creation, configuration, lifecycle, insight and analytics (IAG001-057, IAG500-505, IAG700-701)</li><li><b>Template (IAT):</b> Agent template management — /ai/agents-templates</li><li><b>Template Advanced (IATEMP):</b> Versions, analytics, recommendations, diffs — /ai/agents-templates (IATEMP001-008)</li><li><b>Agent Upgrade (IAGENT):</b> Upgrade, rollback, version management — /ai/agents/{id}/upgrade|rollback (IAGENT001-005)</li><li><b>Hierarchy (IAH):</b> Supervisor-worker relationships, delegation — /ai/agents/hierarchies</li><li><b>Goal (IAGG):</b> Autonomous goals, success criteria — /ai/agents/goals</li><li><b>Pool (IAGP):</b> Agent pool management, allocation, coordination (queries IAGP001-023, commands IAGP101-109) — /ai/agents/pools</li><li><b>Execution (IAGE):</b> Execution tracking, history — /ai/agents/executions</li><li><b>Health (IAGH):</b> Health checks, recovery — /ai/agents/health</li><li><b>Communication (IAGC):</b> Channels (IAGC001-019) and inter-agent messages (IAGC020-052) — /ai/agents/channels, /ai/agents/messages</li><li><b>Handoff (IAGD):</b> Agent handoff and transfer — /ai/agents/handoffs</li><li><b>Orchestration (IAGO):</b> Orchestration sessions — /ai/agents/orchestration/sessions</li><li><b>Workflow (IAGW):</b> Workflow assignment and execution — /ai/agents-workflows</li><li><b>Capability (IACAP):</b> Capability definitions, permissions (queries IACAP001-011, commands IACAP101-105) — /ai/capabilities</li><li><b>Capability Mapping (IACF):</b> Capability to feature mapping — /ai/agents/capability-feature-mappings</li></ul><p><b>Providers:</b> OpenAI GPT-4, Anthropic Claude, Google Gemini</p>
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2026-05-30
|
|
6
|
+
* Contact: support@integrahub.co
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import { type UcpPublicProfileDTO } from '../models/UcpPublicProfileDTO';
|
|
14
|
+
export interface IUCPP012Request {
|
|
15
|
+
tenantSlug: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
export declare class AIIUCPPUCPPublicProfileApi extends runtime.BaseAPI {
|
|
21
|
+
/**
|
|
22
|
+
* Creates request options for iUCPP012 without sending the request
|
|
23
|
+
*/
|
|
24
|
+
iUCPP012RequestOpts(requestParameters: IUCPP012Request): Promise<runtime.RequestOpts>;
|
|
25
|
+
/**
|
|
26
|
+
* The public UCP profile (UCP 2026-04-08) of the seller identified by {tenantSlug}: the capabilities it supports and, in `signing_keys`, the public keys its UCP order webhooks are signed with, as JWKs. A signed webhook names this URL in its `UCP-Agent` header, and its `Signature-Input` names the key by `keyid`. The body is the profile itself, not wrapped in `data`. No authentication.
|
|
27
|
+
* IUCPP012 - Get a Seller\'s Public UCP Profile
|
|
28
|
+
*/
|
|
29
|
+
iUCPP012Raw(requestParameters: IUCPP012Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UcpPublicProfileDTO>>;
|
|
30
|
+
/**
|
|
31
|
+
* The public UCP profile (UCP 2026-04-08) of the seller identified by {tenantSlug}: the capabilities it supports and, in `signing_keys`, the public keys its UCP order webhooks are signed with, as JWKs. A signed webhook names this URL in its `UCP-Agent` header, and its `Signature-Input` names the key by `keyid`. The body is the profile itself, not wrapped in `data`. No authentication.
|
|
32
|
+
* IUCPP012 - Get a Seller\'s Public UCP Profile
|
|
33
|
+
*/
|
|
34
|
+
iUCPP012(requestParameters: IUCPP012Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UcpPublicProfileDTO>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Vergefy API
|
|
6
|
+
* <h1>AI Agent Management</h1><p>Create, configure, and orchestrate AI agents with multi-provider support.</p><h2>Modules</h2><ul><li><b>Agent (IAG):</b> Agent creation, configuration, lifecycle, insight and analytics (IAG001-057, IAG500-505, IAG700-701)</li><li><b>Template (IAT):</b> Agent template management — /ai/agents-templates</li><li><b>Template Advanced (IATEMP):</b> Versions, analytics, recommendations, diffs — /ai/agents-templates (IATEMP001-008)</li><li><b>Agent Upgrade (IAGENT):</b> Upgrade, rollback, version management — /ai/agents/{id}/upgrade|rollback (IAGENT001-005)</li><li><b>Hierarchy (IAH):</b> Supervisor-worker relationships, delegation — /ai/agents/hierarchies</li><li><b>Goal (IAGG):</b> Autonomous goals, success criteria — /ai/agents/goals</li><li><b>Pool (IAGP):</b> Agent pool management, allocation, coordination (queries IAGP001-023, commands IAGP101-109) — /ai/agents/pools</li><li><b>Execution (IAGE):</b> Execution tracking, history — /ai/agents/executions</li><li><b>Health (IAGH):</b> Health checks, recovery — /ai/agents/health</li><li><b>Communication (IAGC):</b> Channels (IAGC001-019) and inter-agent messages (IAGC020-052) — /ai/agents/channels, /ai/agents/messages</li><li><b>Handoff (IAGD):</b> Agent handoff and transfer — /ai/agents/handoffs</li><li><b>Orchestration (IAGO):</b> Orchestration sessions — /ai/agents/orchestration/sessions</li><li><b>Workflow (IAGW):</b> Workflow assignment and execution — /ai/agents-workflows</li><li><b>Capability (IACAP):</b> Capability definitions, permissions (queries IACAP001-011, commands IACAP101-105) — /ai/capabilities</li><li><b>Capability Mapping (IACF):</b> Capability to feature mapping — /ai/agents/capability-feature-mappings</li></ul><p><b>Providers:</b> OpenAI GPT-4, Anthropic Claude, Google Gemini</p>
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2026-05-30
|
|
9
|
+
* Contact: support@integrahub.co
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.AIIUCPPUCPPublicProfileApi = void 0;
|
|
26
|
+
const runtime = require("../runtime");
|
|
27
|
+
const UcpPublicProfileDTO_1 = require("../models/UcpPublicProfileDTO");
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
class AIIUCPPUCPPublicProfileApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
* Creates request options for iUCPP012 without sending the request
|
|
34
|
+
*/
|
|
35
|
+
iUCPP012RequestOpts(requestParameters) {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
if (requestParameters['tenantSlug'] == null) {
|
|
38
|
+
throw new runtime.RequiredError('tenantSlug', 'Required parameter "tenantSlug" was null or undefined when calling iUCPP012().');
|
|
39
|
+
}
|
|
40
|
+
const queryParameters = {};
|
|
41
|
+
const headerParameters = {};
|
|
42
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
43
|
+
const token = this.configuration.accessToken;
|
|
44
|
+
const tokenString = yield token("BearerAuth", []);
|
|
45
|
+
if (tokenString) {
|
|
46
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
let urlPath = `/pb/ai/protocols/ucp/{tenantSlug}/.well-known/ucp`;
|
|
50
|
+
urlPath = urlPath.replace('{tenantSlug}', encodeURIComponent(String(requestParameters['tenantSlug'])));
|
|
51
|
+
return {
|
|
52
|
+
path: urlPath,
|
|
53
|
+
method: 'GET',
|
|
54
|
+
headers: headerParameters,
|
|
55
|
+
query: queryParameters,
|
|
56
|
+
};
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* The public UCP profile (UCP 2026-04-08) of the seller identified by {tenantSlug}: the capabilities it supports and, in `signing_keys`, the public keys its UCP order webhooks are signed with, as JWKs. A signed webhook names this URL in its `UCP-Agent` header, and its `Signature-Input` names the key by `keyid`. The body is the profile itself, not wrapped in `data`. No authentication.
|
|
61
|
+
* IUCPP012 - Get a Seller\'s Public UCP Profile
|
|
62
|
+
*/
|
|
63
|
+
iUCPP012Raw(requestParameters, initOverrides) {
|
|
64
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
65
|
+
const requestOptions = yield this.iUCPP012RequestOpts(requestParameters);
|
|
66
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
67
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, UcpPublicProfileDTO_1.UcpPublicProfileDTOFromJSON)(jsonValue));
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* The public UCP profile (UCP 2026-04-08) of the seller identified by {tenantSlug}: the capabilities it supports and, in `signing_keys`, the public keys its UCP order webhooks are signed with, as JWKs. A signed webhook names this URL in its `UCP-Agent` header, and its `Signature-Input` names the key by `keyid`. The body is the profile itself, not wrapped in `data`. No authentication.
|
|
72
|
+
* IUCPP012 - Get a Seller\'s Public UCP Profile
|
|
73
|
+
*/
|
|
74
|
+
iUCPP012(requestParameters, initOverrides) {
|
|
75
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
76
|
+
const response = yield this.iUCPP012Raw(requestParameters, initOverrides);
|
|
77
|
+
return yield response.value();
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
exports.AIIUCPPUCPPublicProfileApi = AIIUCPPUCPPublicProfileApi;
|
|
@@ -310,12 +310,12 @@ export declare class PLATFORMLPSPlatformServiceApi extends runtime.BaseAPI {
|
|
|
310
310
|
*/
|
|
311
311
|
lPS006RequestOpts(requestParameters: LPS006Request): Promise<runtime.RequestOpts>;
|
|
312
312
|
/**
|
|
313
|
-
* Searches and retrieves platform service plans with advanced filtering and pagination support
|
|
313
|
+
* Searches and retrieves platform service plans with advanced filtering and pagination support. A signed-in tenant sees only its pricing region\'s plans: those of the country its company profile names, and the Global Default (USD) plans of any service with none in its region\'s currency. A caller who has not signed in sees every region\'s.
|
|
314
314
|
* LPS006 - Search Platform Service Plans
|
|
315
315
|
*/
|
|
316
316
|
lPS006Raw(requestParameters: LPS006Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PagePlatformServicePlanDTO>>;
|
|
317
317
|
/**
|
|
318
|
-
* Searches and retrieves platform service plans with advanced filtering and pagination support
|
|
318
|
+
* Searches and retrieves platform service plans with advanced filtering and pagination support. A signed-in tenant sees only its pricing region\'s plans: those of the country its company profile names, and the Global Default (USD) plans of any service with none in its region\'s currency. A caller who has not signed in sees every region\'s.
|
|
319
319
|
* LPS006 - Search Platform Service Plans
|
|
320
320
|
*/
|
|
321
321
|
lPS006(requestParameters?: LPS006Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PagePlatformServicePlanDTO>;
|
|
@@ -352,12 +352,12 @@ export declare class PLATFORMLPSPlatformServiceApi extends runtime.BaseAPI {
|
|
|
352
352
|
*/
|
|
353
353
|
lPS009RequestOpts(requestParameters: LPS009Request): Promise<runtime.RequestOpts>;
|
|
354
354
|
/**
|
|
355
|
-
* Retrieves all platform service plans associated with a specific service Id
|
|
355
|
+
* Retrieves all platform service plans associated with a specific service Id. A signed-in tenant sees only its pricing region\'s plans: those of the country its company profile names, and the Global Default (USD) plans of any service with none in its region\'s currency. A caller who has not signed in sees every region\'s.
|
|
356
356
|
* LPS009 - Get Platform Service Plans By Service Id
|
|
357
357
|
*/
|
|
358
358
|
lPS009Raw(requestParameters: LPS009Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PagePlatformServicePlanDTO>>;
|
|
359
359
|
/**
|
|
360
|
-
* Retrieves all platform service plans associated with a specific service Id
|
|
360
|
+
* Retrieves all platform service plans associated with a specific service Id. A signed-in tenant sees only its pricing region\'s plans: those of the country its company profile names, and the Global Default (USD) plans of any service with none in its region\'s currency. A caller who has not signed in sees every region\'s.
|
|
361
361
|
* LPS009 - Get Platform Service Plans By Service Id
|
|
362
362
|
*/
|
|
363
363
|
lPS009(requestParameters: LPS009Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PagePlatformServicePlanDTO>;
|
|
@@ -444,7 +444,7 @@ class PLATFORMLPSPlatformServiceApi extends runtime.BaseAPI {
|
|
|
444
444
|
});
|
|
445
445
|
}
|
|
446
446
|
/**
|
|
447
|
-
* Searches and retrieves platform service plans with advanced filtering and pagination support
|
|
447
|
+
* Searches and retrieves platform service plans with advanced filtering and pagination support. A signed-in tenant sees only its pricing region\'s plans: those of the country its company profile names, and the Global Default (USD) plans of any service with none in its region\'s currency. A caller who has not signed in sees every region\'s.
|
|
448
448
|
* LPS006 - Search Platform Service Plans
|
|
449
449
|
*/
|
|
450
450
|
lPS006Raw(requestParameters, initOverrides) {
|
|
@@ -455,7 +455,7 @@ class PLATFORMLPSPlatformServiceApi extends runtime.BaseAPI {
|
|
|
455
455
|
});
|
|
456
456
|
}
|
|
457
457
|
/**
|
|
458
|
-
* Searches and retrieves platform service plans with advanced filtering and pagination support
|
|
458
|
+
* Searches and retrieves platform service plans with advanced filtering and pagination support. A signed-in tenant sees only its pricing region\'s plans: those of the country its company profile names, and the Global Default (USD) plans of any service with none in its region\'s currency. A caller who has not signed in sees every region\'s.
|
|
459
459
|
* LPS006 - Search Platform Service Plans
|
|
460
460
|
*/
|
|
461
461
|
lPS006() {
|
|
@@ -684,7 +684,7 @@ class PLATFORMLPSPlatformServiceApi extends runtime.BaseAPI {
|
|
|
684
684
|
});
|
|
685
685
|
}
|
|
686
686
|
/**
|
|
687
|
-
* Retrieves all platform service plans associated with a specific service Id
|
|
687
|
+
* Retrieves all platform service plans associated with a specific service Id. A signed-in tenant sees only its pricing region\'s plans: those of the country its company profile names, and the Global Default (USD) plans of any service with none in its region\'s currency. A caller who has not signed in sees every region\'s.
|
|
688
688
|
* LPS009 - Get Platform Service Plans By Service Id
|
|
689
689
|
*/
|
|
690
690
|
lPS009Raw(requestParameters, initOverrides) {
|
|
@@ -695,7 +695,7 @@ class PLATFORMLPSPlatformServiceApi extends runtime.BaseAPI {
|
|
|
695
695
|
});
|
|
696
696
|
}
|
|
697
697
|
/**
|
|
698
|
-
* Retrieves all platform service plans associated with a specific service Id
|
|
698
|
+
* Retrieves all platform service plans associated with a specific service Id. A signed-in tenant sees only its pricing region\'s plans: those of the country its company profile names, and the Global Default (USD) plans of any service with none in its region\'s currency. A caller who has not signed in sees every region\'s.
|
|
699
699
|
* LPS009 - Get Platform Service Plans By Service Id
|
|
700
700
|
*/
|
|
701
701
|
lPS009(requestParameters, initOverrides) {
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ export * from './AIICHMChatMultiAgentSessionApi';
|
|
|
28
28
|
export * from './AIIUCPCUCPConfigurationApi';
|
|
29
29
|
export * from './AIIUCPIUCPIdentityApi';
|
|
30
30
|
export * from './AIIUCPPUCPProfileApi';
|
|
31
|
+
export * from './AIIUCPPUCPPublicProfileApi';
|
|
31
32
|
export * from './AIIUCPUCPCheckoutApi';
|
|
32
33
|
export * from './AIIUCPUCPPublicCheckoutApi';
|
|
33
34
|
export * from './AILAIKTenantModelKeysApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -46,6 +46,7 @@ __exportStar(require("./AIICHMChatMultiAgentSessionApi"), exports);
|
|
|
46
46
|
__exportStar(require("./AIIUCPCUCPConfigurationApi"), exports);
|
|
47
47
|
__exportStar(require("./AIIUCPIUCPIdentityApi"), exports);
|
|
48
48
|
__exportStar(require("./AIIUCPPUCPProfileApi"), exports);
|
|
49
|
+
__exportStar(require("./AIIUCPPUCPPublicProfileApi"), exports);
|
|
49
50
|
__exportStar(require("./AIIUCPUCPCheckoutApi"), exports);
|
|
50
51
|
__exportStar(require("./AIIUCPUCPPublicCheckoutApi"), exports);
|
|
51
52
|
__exportStar(require("./AILAIKTenantModelKeysApi"), exports);
|
|
@@ -22,6 +22,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
24
|
import { DataListResponseDTOUcpWebhookRegistrationDTOFromJSON, } from '../models/DataListResponseDTOUcpWebhookRegistrationDTO';
|
|
25
|
+
import { DataResponseDTOUcpSigningKeyRotationDTOFromJSON, } from '../models/DataResponseDTOUcpSigningKeyRotationDTO';
|
|
26
|
+
import { DataResponseDTOUcpSigningKeyWithdrawalDTOFromJSON, } from '../models/DataResponseDTOUcpSigningKeyWithdrawalDTO';
|
|
25
27
|
import { DataResponseDTOUcpWebhookRegistrationDTOFromJSON, } from '../models/DataResponseDTOUcpWebhookRegistrationDTO';
|
|
26
28
|
import { UcpWebhookRegistrationDTOToJSON, } from '../models/UcpWebhookRegistrationDTO';
|
|
27
29
|
/**
|
|
@@ -72,7 +74,7 @@ export class AIIUCPCUCPConfigurationApi extends runtime.BaseAPI {
|
|
|
72
74
|
});
|
|
73
75
|
}
|
|
74
76
|
/**
|
|
75
|
-
* Registers a webhook endpoint for the UCP order lifecycle events of the orders one agent places with this seller. `agentId` is that agent\'s profile URI, as the agent sends it in `agentProfileUri` when it opens a checkout session (or in the buyer\'s `agentProfileUri` when the request has none at the top).
|
|
77
|
+
* Registers a webhook endpoint for the UCP order lifecycle events of the orders one agent places with this seller. `agentId` is that agent\'s profile URI, as the agent sends it in `agentProfileUri` when it opens a checkout session (or in the buyer\'s `agentProfileUri` when the request has none at the top). Surrounding spaces are removed; after that it is compared character for character, so a different case or a trailing slash names a different agent, and an order\'s events reach only the active registrations of the agent that placed it. `endpointUrl` must be a public https URL, and the agent must declare it: registration fetches the agent\'s UCP profile from `agentId` (https, no redirect) and requires its order capability (`ucp.capabilities[\"dev.ucp.shopping.order\"][].config.webhook_url`) to name `endpointUrl`, compared as a URI: the scheme and host in any case, and a default port the same as none. `subscribedEvents` names event types with or without the `ucp.` prefix (`order.shipped` or `ucp.order.shipped`). Registering the same agent and endpoint again checks the profile again, replaces the subscribed events and returns the same registration.
|
|
76
78
|
* IUCPC023 - Register Agent Webhook
|
|
77
79
|
*/
|
|
78
80
|
iUCPC023Raw(requestParameters, initOverrides) {
|
|
@@ -83,7 +85,7 @@ export class AIIUCPCUCPConfigurationApi extends runtime.BaseAPI {
|
|
|
83
85
|
});
|
|
84
86
|
}
|
|
85
87
|
/**
|
|
86
|
-
* Registers a webhook endpoint for the UCP order lifecycle events of the orders one agent places with this seller. `agentId` is that agent\'s profile URI, as the agent sends it in `agentProfileUri` when it opens a checkout session (or in the buyer\'s `agentProfileUri` when the request has none at the top).
|
|
88
|
+
* Registers a webhook endpoint for the UCP order lifecycle events of the orders one agent places with this seller. `agentId` is that agent\'s profile URI, as the agent sends it in `agentProfileUri` when it opens a checkout session (or in the buyer\'s `agentProfileUri` when the request has none at the top). Surrounding spaces are removed; after that it is compared character for character, so a different case or a trailing slash names a different agent, and an order\'s events reach only the active registrations of the agent that placed it. `endpointUrl` must be a public https URL, and the agent must declare it: registration fetches the agent\'s UCP profile from `agentId` (https, no redirect) and requires its order capability (`ucp.capabilities[\"dev.ucp.shopping.order\"][].config.webhook_url`) to name `endpointUrl`, compared as a URI: the scheme and host in any case, and a default port the same as none. `subscribedEvents` names event types with or without the `ucp.` prefix (`order.shipped` or `ucp.order.shipped`). Registering the same agent and endpoint again checks the profile again, replaces the subscribed events and returns the same registration.
|
|
87
89
|
* IUCPC023 - Register Agent Webhook
|
|
88
90
|
*/
|
|
89
91
|
iUCPC023(requestParameters, initOverrides) {
|
|
@@ -276,4 +278,126 @@ export class AIIUCPCUCPConfigurationApi extends runtime.BaseAPI {
|
|
|
276
278
|
return yield response.value();
|
|
277
279
|
});
|
|
278
280
|
}
|
|
281
|
+
/**
|
|
282
|
+
* Creates request options for iUCPC027 without sending the request
|
|
283
|
+
*/
|
|
284
|
+
iUCPC027RequestOpts(requestParameters) {
|
|
285
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
286
|
+
if (requestParameters['xAppAccountId'] == null) {
|
|
287
|
+
throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling iUCPC027().');
|
|
288
|
+
}
|
|
289
|
+
const queryParameters = {};
|
|
290
|
+
const headerParameters = {};
|
|
291
|
+
if (requestParameters['acceptLanguage'] != null) {
|
|
292
|
+
headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
|
|
293
|
+
}
|
|
294
|
+
if (requestParameters['xAppAccountId'] != null) {
|
|
295
|
+
headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
|
|
296
|
+
}
|
|
297
|
+
if (requestParameters['vergefyVersion'] != null) {
|
|
298
|
+
headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
|
|
299
|
+
}
|
|
300
|
+
if (requestParameters['acceptTimezone'] != null) {
|
|
301
|
+
headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
|
|
302
|
+
}
|
|
303
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
304
|
+
const token = this.configuration.accessToken;
|
|
305
|
+
const tokenString = yield token("BearerAuth", []);
|
|
306
|
+
if (tokenString) {
|
|
307
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
let urlPath = `/ai/protocols/ucp/signing-keys/rotate`;
|
|
311
|
+
return {
|
|
312
|
+
path: urlPath,
|
|
313
|
+
method: 'POST',
|
|
314
|
+
headers: headerParameters,
|
|
315
|
+
query: queryParameters,
|
|
316
|
+
};
|
|
317
|
+
});
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* Rotates the key the seller\'s UCP order webhooks are signed with, as the 90-day schedule would. The new key is listed in the seller\'s public UCP profile at once, and starts signing 15 minutes later, longer than an agent may keep the profile; until then the key before it signs. The keys before it stay published for 48 hours, so an agent can verify every delivery they signed. One rotation may be pending at a time. A leaked key is withdrawn instead, which takes it out of the profile at once.
|
|
321
|
+
* IUCPC027 - Rotate Webhook Signing Key
|
|
322
|
+
*/
|
|
323
|
+
iUCPC027Raw(requestParameters, initOverrides) {
|
|
324
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
325
|
+
const requestOptions = yield this.iUCPC027RequestOpts(requestParameters);
|
|
326
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
327
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseDTOUcpSigningKeyRotationDTOFromJSON(jsonValue));
|
|
328
|
+
});
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
* Rotates the key the seller\'s UCP order webhooks are signed with, as the 90-day schedule would. The new key is listed in the seller\'s public UCP profile at once, and starts signing 15 minutes later, longer than an agent may keep the profile; until then the key before it signs. The keys before it stay published for 48 hours, so an agent can verify every delivery they signed. One rotation may be pending at a time. A leaked key is withdrawn instead, which takes it out of the profile at once.
|
|
332
|
+
* IUCPC027 - Rotate Webhook Signing Key
|
|
333
|
+
*/
|
|
334
|
+
iUCPC027(requestParameters, initOverrides) {
|
|
335
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
336
|
+
const response = yield this.iUCPC027Raw(requestParameters, initOverrides);
|
|
337
|
+
return yield response.value();
|
|
338
|
+
});
|
|
339
|
+
}
|
|
340
|
+
/**
|
|
341
|
+
* Creates request options for iUCPC028 without sending the request
|
|
342
|
+
*/
|
|
343
|
+
iUCPC028RequestOpts(requestParameters) {
|
|
344
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
345
|
+
if (requestParameters['keyId'] == null) {
|
|
346
|
+
throw new runtime.RequiredError('keyId', 'Required parameter "keyId" was null or undefined when calling iUCPC028().');
|
|
347
|
+
}
|
|
348
|
+
if (requestParameters['xAppAccountId'] == null) {
|
|
349
|
+
throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling iUCPC028().');
|
|
350
|
+
}
|
|
351
|
+
const queryParameters = {};
|
|
352
|
+
const headerParameters = {};
|
|
353
|
+
if (requestParameters['acceptLanguage'] != null) {
|
|
354
|
+
headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
|
|
355
|
+
}
|
|
356
|
+
if (requestParameters['xAppAccountId'] != null) {
|
|
357
|
+
headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
|
|
358
|
+
}
|
|
359
|
+
if (requestParameters['vergefyVersion'] != null) {
|
|
360
|
+
headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
|
|
361
|
+
}
|
|
362
|
+
if (requestParameters['acceptTimezone'] != null) {
|
|
363
|
+
headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
|
|
364
|
+
}
|
|
365
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
366
|
+
const token = this.configuration.accessToken;
|
|
367
|
+
const tokenString = yield token("BearerAuth", []);
|
|
368
|
+
if (tokenString) {
|
|
369
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
let urlPath = `/ai/protocols/ucp/signing-keys/{keyId}/withdraw`;
|
|
373
|
+
urlPath = urlPath.replace('{keyId}', encodeURIComponent(String(requestParameters['keyId'])));
|
|
374
|
+
return {
|
|
375
|
+
path: urlPath,
|
|
376
|
+
method: 'POST',
|
|
377
|
+
headers: headerParameters,
|
|
378
|
+
query: queryParameters,
|
|
379
|
+
};
|
|
380
|
+
});
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
* Withdraws one of the seller\'s UCP webhook signing keys at once, as for a key that leaked: it is taken out of the seller\'s public UCP profile and never signs again. When it was the key signing, a new key replaces it and signs at once; an agent whose copy of the profile lacks the new key fetches the profile again. When it was a rotation\'s key that did not sign yet, a new key takes its place and signs 15 minutes later, while the key signing now goes on signing until then. Any other key needs no replacement. The key id is the one the profile lists.
|
|
384
|
+
* IUCPC028 - Withdraw Webhook Signing Key
|
|
385
|
+
*/
|
|
386
|
+
iUCPC028Raw(requestParameters, initOverrides) {
|
|
387
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
388
|
+
const requestOptions = yield this.iUCPC028RequestOpts(requestParameters);
|
|
389
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
390
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseDTOUcpSigningKeyWithdrawalDTOFromJSON(jsonValue));
|
|
391
|
+
});
|
|
392
|
+
}
|
|
393
|
+
/**
|
|
394
|
+
* Withdraws one of the seller\'s UCP webhook signing keys at once, as for a key that leaked: it is taken out of the seller\'s public UCP profile and never signs again. When it was the key signing, a new key replaces it and signs at once; an agent whose copy of the profile lacks the new key fetches the profile again. When it was a rotation\'s key that did not sign yet, a new key takes its place and signs 15 minutes later, while the key signing now goes on signing until then. Any other key needs no replacement. The key id is the one the profile lists.
|
|
395
|
+
* IUCPC028 - Withdraw Webhook Signing Key
|
|
396
|
+
*/
|
|
397
|
+
iUCPC028(requestParameters, initOverrides) {
|
|
398
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
399
|
+
const response = yield this.iUCPC028Raw(requestParameters, initOverrides);
|
|
400
|
+
return yield response.value();
|
|
401
|
+
});
|
|
402
|
+
}
|
|
279
403
|
}
|