@integrahub/vergefy-client 0.26.0 → 0.28.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/AIIAMPPMPPPaymentApi.d.ts +33 -31
- package/dist/apis/AIIAMPPMPPPaymentApi.js +50 -46
- package/dist/apis/APIAIHDIntegrationHelpdeskApi.d.ts +86 -0
- package/dist/apis/APIAIHDIntegrationHelpdeskApi.js +232 -0
- package/dist/apis/APIAINIntegrationApi.d.ts +5 -0
- package/dist/apis/APIAINIntegrationApi.js +5 -0
- package/dist/apis/APIAPAPaymentApi.d.ts +29 -4
- package/dist/apis/APIAPAPaymentApi.js +76 -5
- package/dist/apis/APIARTReturnApi.d.ts +3 -2
- package/dist/apis/APIARTReturnApi.js +5 -2
- package/dist/apis/APIIntegrationConfigurationApi.d.ts +1 -0
- package/dist/apis/APIIntegrationConfigurationApi.js +1 -0
- package/dist/apis/AUTHUAUIdentityAuthenticationApi.d.ts +3 -3
- package/dist/apis/AUTHUAUIdentityAuthenticationApi.js +2 -5
- package/dist/apis/PLATFORMLTNPTenantPrincipalsApi.d.ts +25 -0
- package/dist/apis/PLATFORMLTNPTenantPrincipalsApi.js +73 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/AIIAMPPMPPPaymentApi.js +50 -46
- package/dist/esm/apis/APIAIHDIntegrationHelpdeskApi.js +228 -0
- package/dist/esm/apis/APIAINIntegrationApi.js +5 -0
- package/dist/esm/apis/APIAPAPaymentApi.js +76 -5
- package/dist/esm/apis/APIARTReturnApi.js +5 -2
- package/dist/esm/apis/APIIntegrationConfigurationApi.js +1 -0
- package/dist/esm/apis/AUTHUAUIdentityAuthenticationApi.js +2 -5
- package/dist/esm/apis/PLATFORMLTNPTenantPrincipalsApi.js +73 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/ext/telemetry.js +1 -1
- package/dist/esm/models/AvailableProviderDTO.js +12 -0
- package/dist/esm/models/ChannelResult.js +1 -0
- package/dist/esm/models/ConnectorListingDTO.js +2 -0
- package/dist/esm/models/DataResponseDTOPagePrincipalAuditEventDTO.js +42 -0
- package/dist/esm/models/EdgeGatewayDTO.js +1 -0
- package/dist/esm/models/HelpdeskContactDTO.js +57 -0
- package/dist/esm/models/HelpdeskContextDTO.js +82 -0
- package/dist/esm/models/HelpdeskLookupKeyDTO.js +57 -0
- package/dist/esm/models/HelpdeskOrderDTO.js +76 -0
- package/dist/esm/models/HelpdeskOrderLineDTO.js +51 -0
- package/dist/esm/models/HelpdeskSidebarKeyDTO.js +67 -0
- package/dist/esm/models/HelpdeskSidebarKeyStateDTO.js +64 -0
- package/dist/esm/models/HostedCheckoutAddressDTO.js +49 -0
- package/dist/esm/models/HostedCheckoutBasketItemDTO.js +49 -0
- package/dist/esm/models/HostedCheckoutRequestDTO.js +71 -0
- package/dist/esm/models/HostedCheckoutResultDTO.js +45 -0
- package/dist/esm/models/ImportJobDTO.js +1 -0
- package/dist/esm/models/IntegrationConfigurationCreateDTO.js +2 -0
- package/dist/esm/models/IntegrationConfigurationDTO.js +2 -0
- package/dist/esm/models/IntegrationHealthSummaryDTO.js +2 -0
- package/dist/esm/models/InvoiceApiDTO.js +2 -1
- package/dist/esm/models/{MppPaymentSessionCreateApiDTO.js → MppChallengeOpenApiDTO.js} +18 -10
- package/dist/{models/MppPaymentSessionCreateApiDTO.js → esm/models/MppChallengePaymentApiDTO.js} +24 -17
- package/dist/esm/models/OrderReturnSummaryDTO.js +66 -0
- package/dist/esm/models/OrderShipmentSummaryDTO.js +68 -0
- package/dist/esm/models/PagePrincipalAuditEventDTO.js +64 -0
- package/dist/esm/models/PaymentConfigurationDTO.js +2 -1
- package/dist/esm/models/PrincipalDTO.js +2 -1
- package/dist/esm/models/ProviderHealthStatusDTO.js +1 -0
- package/dist/esm/models/ReturnRequestDTO.js +2 -0
- package/dist/esm/models/SocialConnectionRegisterDTO.js +1 -0
- package/dist/esm/models/SocialProviderCredentialReadinessDTO.js +1 -0
- package/dist/esm/models/index.js +17 -1
- package/dist/ext/telemetry.d.ts +1 -1
- package/dist/ext/telemetry.js +1 -1
- package/dist/models/AvailableProviderDTO.d.ts +17 -0
- package/dist/models/AvailableProviderDTO.js +13 -1
- package/dist/models/ChannelResult.d.ts +1 -0
- package/dist/models/ChannelResult.js +1 -0
- package/dist/models/ConnectorListingDTO.d.ts +2 -0
- package/dist/models/ConnectorListingDTO.js +2 -0
- package/dist/models/DataResponseDTOPagePrincipalAuditEventDTO.d.ts +33 -0
- package/dist/models/DataResponseDTOPagePrincipalAuditEventDTO.js +49 -0
- package/dist/models/EdgeGatewayDTO.d.ts +1 -0
- package/dist/models/EdgeGatewayDTO.js +1 -0
- package/dist/models/HelpdeskContactDTO.d.ts +74 -0
- package/dist/models/HelpdeskContactDTO.js +64 -0
- package/dist/models/HelpdeskContextDTO.d.ts +87 -0
- package/dist/models/HelpdeskContextDTO.js +90 -0
- package/dist/models/HelpdeskLookupKeyDTO.d.ts +49 -0
- package/dist/models/HelpdeskLookupKeyDTO.js +65 -0
- package/dist/models/HelpdeskOrderDTO.d.ts +125 -0
- package/dist/models/HelpdeskOrderDTO.js +83 -0
- package/dist/models/HelpdeskOrderLineDTO.d.ts +56 -0
- package/dist/models/HelpdeskOrderLineDTO.js +58 -0
- package/dist/models/HelpdeskSidebarKeyDTO.d.ts +68 -0
- package/dist/models/HelpdeskSidebarKeyDTO.js +74 -0
- package/dist/models/HelpdeskSidebarKeyStateDTO.d.ts +72 -0
- package/dist/models/HelpdeskSidebarKeyStateDTO.js +72 -0
- package/dist/models/HostedCheckoutAddressDTO.d.ts +56 -0
- package/dist/models/HostedCheckoutAddressDTO.js +56 -0
- package/dist/models/HostedCheckoutBasketItemDTO.d.ts +56 -0
- package/dist/models/HostedCheckoutBasketItemDTO.js +56 -0
- package/dist/models/HostedCheckoutRequestDTO.d.ts +118 -0
- package/dist/models/HostedCheckoutRequestDTO.js +78 -0
- package/dist/models/{MppPaymentSessionCreateApiDTO.d.ts → HostedCheckoutResultDTO.d.ts} +18 -12
- package/dist/models/HostedCheckoutResultDTO.js +52 -0
- package/dist/models/ImportJobDTO.d.ts +1 -0
- package/dist/models/ImportJobDTO.js +1 -0
- package/dist/models/IntegrationConfigurationCreateDTO.d.ts +2 -0
- package/dist/models/IntegrationConfigurationCreateDTO.js +2 -0
- package/dist/models/IntegrationConfigurationDTO.d.ts +2 -0
- package/dist/models/IntegrationConfigurationDTO.js +2 -0
- package/dist/models/IntegrationHealthSummaryDTO.d.ts +2 -0
- package/dist/models/IntegrationHealthSummaryDTO.js +2 -0
- package/dist/models/InvoiceApiDTO.d.ts +1 -0
- package/dist/models/InvoiceApiDTO.js +2 -1
- package/dist/models/MppChallengeOpenApiDTO.d.ts +50 -0
- package/dist/models/MppChallengeOpenApiDTO.js +60 -0
- package/dist/models/MppChallengePaymentApiDTO.d.ts +56 -0
- package/dist/models/MppChallengePaymentApiDTO.js +66 -0
- package/dist/models/OrderReturnSummaryDTO.d.ts +78 -0
- package/dist/models/OrderReturnSummaryDTO.js +74 -0
- package/dist/models/OrderShipmentSummaryDTO.d.ts +92 -0
- package/dist/models/OrderShipmentSummaryDTO.js +76 -0
- package/dist/models/PagePrincipalAuditEventDTO.d.ts +95 -0
- package/dist/models/PagePrincipalAuditEventDTO.js +71 -0
- package/dist/models/PaymentConfigurationDTO.d.ts +1 -0
- package/dist/models/PaymentConfigurationDTO.js +2 -1
- package/dist/models/PrincipalDTO.d.ts +1 -0
- package/dist/models/PrincipalDTO.js +2 -1
- package/dist/models/ProviderHealthStatusDTO.d.ts +1 -0
- package/dist/models/ProviderHealthStatusDTO.js +1 -0
- package/dist/models/ReturnRequestDTO.d.ts +6 -0
- package/dist/models/ReturnRequestDTO.js +2 -0
- package/dist/models/SocialConnectionRegisterDTO.d.ts +1 -0
- package/dist/models/SocialConnectionRegisterDTO.js +1 -0
- package/dist/models/SocialProviderCredentialReadinessDTO.d.ts +1 -0
- package/dist/models/SocialProviderCredentialReadinessDTO.js +1 -0
- package/dist/models/index.d.ts +17 -1
- package/dist/models/index.js +17 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @integrahub/vergefy-client@0.
|
|
1
|
+
# @integrahub/vergefy-client@0.28.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.28.0`
|
|
94
94
|
- Generator version: `7.22.0`
|
|
95
95
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
96
96
|
|
|
@@ -10,72 +10,74 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { type
|
|
14
|
-
|
|
15
|
-
token: string;
|
|
16
|
-
}
|
|
17
|
-
export interface IAMPP002Request {
|
|
18
|
-
mppPaymentSessionCreateApiDTO: MppPaymentSessionCreateApiDTO;
|
|
19
|
-
}
|
|
13
|
+
import { type MppChallengeOpenApiDTO } from '../models/MppChallengeOpenApiDTO';
|
|
14
|
+
import { type MppChallengePaymentApiDTO } from '../models/MppChallengePaymentApiDTO';
|
|
20
15
|
export interface IAMPP003Request {
|
|
21
16
|
receiptId: string;
|
|
22
17
|
}
|
|
18
|
+
export interface IAMPP004Request {
|
|
19
|
+
mppChallengeOpenApiDTO: MppChallengeOpenApiDTO;
|
|
20
|
+
}
|
|
21
|
+
export interface IAMPP005Request {
|
|
22
|
+
challengeId: string;
|
|
23
|
+
mppChallengePaymentApiDTO: MppChallengePaymentApiDTO;
|
|
24
|
+
}
|
|
23
25
|
/**
|
|
24
26
|
*
|
|
25
27
|
*/
|
|
26
28
|
export declare class AIIAMPPMPPPaymentApi extends runtime.BaseAPI {
|
|
27
29
|
/**
|
|
28
|
-
* Creates request options for
|
|
30
|
+
* Creates request options for iAMPP003 without sending the request
|
|
29
31
|
*/
|
|
30
|
-
|
|
32
|
+
iAMPP003RequestOpts(requestParameters: IAMPP003Request): Promise<runtime.RequestOpts>;
|
|
31
33
|
/**
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
+
* Retrieves an MPP payment receipt by its UUID. Receipts are issued when a Shared Payment Token is spent (IAMPP005), and are also returned inline on the tool result as _meta.org.paymentauth/receipt.
|
|
35
|
+
* IAMPP003 - Get MPP payment receipt
|
|
34
36
|
*/
|
|
35
|
-
|
|
37
|
+
iAMPP003Raw(requestParameters: IAMPP003Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
|
|
36
38
|
[key: string]: object;
|
|
37
39
|
}>>;
|
|
38
40
|
/**
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
+
* Retrieves an MPP payment receipt by its UUID. Receipts are issued when a Shared Payment Token is spent (IAMPP005), and are also returned inline on the tool result as _meta.org.paymentauth/receipt.
|
|
42
|
+
* IAMPP003 - Get MPP payment receipt
|
|
41
43
|
*/
|
|
42
|
-
|
|
44
|
+
iAMPP003(requestParameters: IAMPP003Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
|
|
43
45
|
[key: string]: object;
|
|
44
46
|
}>;
|
|
45
47
|
/**
|
|
46
|
-
* Creates request options for
|
|
48
|
+
* Creates request options for iAMPP004 without sending the request
|
|
47
49
|
*/
|
|
48
|
-
|
|
50
|
+
iAMPP004RequestOpts(requestParameters: IAMPP004Request): Promise<runtime.RequestOpts>;
|
|
49
51
|
/**
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
+
* Opens a single-use MPP payment challenge for a priced tool call: amount, currency, the platform\'s Stripe network id, and an expiry. The agent\'s wallet issues a Shared Payment Token for this challenge and presents it to IAMPP005.
|
|
53
|
+
* IAMPP004 - Open an MPP payment challenge
|
|
52
54
|
*/
|
|
53
|
-
|
|
55
|
+
iAMPP004Raw(requestParameters: IAMPP004Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
|
|
54
56
|
[key: string]: object;
|
|
55
57
|
}>>;
|
|
56
58
|
/**
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
+
* Opens a single-use MPP payment challenge for a priced tool call: amount, currency, the platform\'s Stripe network id, and an expiry. The agent\'s wallet issues a Shared Payment Token for this challenge and presents it to IAMPP005.
|
|
60
|
+
* IAMPP004 - Open an MPP payment challenge
|
|
59
61
|
*/
|
|
60
|
-
|
|
62
|
+
iAMPP004(requestParameters: IAMPP004Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
|
|
61
63
|
[key: string]: object;
|
|
62
64
|
}>;
|
|
63
65
|
/**
|
|
64
|
-
* Creates request options for
|
|
66
|
+
* Creates request options for iAMPP005 without sending the request
|
|
65
67
|
*/
|
|
66
|
-
|
|
68
|
+
iAMPP005RequestOpts(requestParameters: IAMPP005Request): Promise<runtime.RequestOpts>;
|
|
67
69
|
/**
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
+
* Charges the agent-supplied Shared Payment Token against a PENDING challenge opened by IAMPP004. Single-use, bound to the challenge\'s tool/amount/currency, and idempotent on retry (idempotency key derived from the challenge id).
|
|
71
|
+
* IAMPP005 - Pay an MPP challenge with a Shared Payment Token
|
|
70
72
|
*/
|
|
71
|
-
|
|
73
|
+
iAMPP005Raw(requestParameters: IAMPP005Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
|
|
72
74
|
[key: string]: object;
|
|
73
75
|
}>>;
|
|
74
76
|
/**
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
+
* Charges the agent-supplied Shared Payment Token against a PENDING challenge opened by IAMPP004. Single-use, bound to the challenge\'s tool/amount/currency, and idempotent on retry (idempotency key derived from the challenge id).
|
|
78
|
+
* IAMPP005 - Pay an MPP challenge with a Shared Payment Token
|
|
77
79
|
*/
|
|
78
|
-
|
|
80
|
+
iAMPP005(requestParameters: IAMPP005Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
|
|
79
81
|
[key: string]: object;
|
|
80
82
|
}>;
|
|
81
83
|
}
|
|
@@ -24,23 +24,21 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.AIIAMPPMPPPaymentApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
|
-
const
|
|
27
|
+
const MppChallengeOpenApiDTO_1 = require("../models/MppChallengeOpenApiDTO");
|
|
28
|
+
const MppChallengePaymentApiDTO_1 = require("../models/MppChallengePaymentApiDTO");
|
|
28
29
|
/**
|
|
29
30
|
*
|
|
30
31
|
*/
|
|
31
32
|
class AIIAMPPMPPPaymentApi extends runtime.BaseAPI {
|
|
32
33
|
/**
|
|
33
|
-
* Creates request options for
|
|
34
|
+
* Creates request options for iAMPP003 without sending the request
|
|
34
35
|
*/
|
|
35
|
-
|
|
36
|
+
iAMPP003RequestOpts(requestParameters) {
|
|
36
37
|
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
-
if (requestParameters['
|
|
38
|
-
throw new runtime.RequiredError('
|
|
38
|
+
if (requestParameters['receiptId'] == null) {
|
|
39
|
+
throw new runtime.RequiredError('receiptId', 'Required parameter "receiptId" was null or undefined when calling iAMPP003().');
|
|
39
40
|
}
|
|
40
41
|
const queryParameters = {};
|
|
41
|
-
if (requestParameters['token'] != null) {
|
|
42
|
-
queryParameters['token'] = requestParameters['token'];
|
|
43
|
-
}
|
|
44
42
|
const headerParameters = {};
|
|
45
43
|
if (this.configuration && this.configuration.accessToken) {
|
|
46
44
|
const token = this.configuration.accessToken;
|
|
@@ -49,7 +47,8 @@ class AIIAMPPMPPPaymentApi extends runtime.BaseAPI {
|
|
|
49
47
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
50
48
|
}
|
|
51
49
|
}
|
|
52
|
-
let urlPath = `/pb/ai/protocols/acp/mpp/
|
|
50
|
+
let urlPath = `/pb/ai/protocols/acp/mpp/receipts/{receiptId}`;
|
|
51
|
+
urlPath = urlPath.replace('{receiptId}', encodeURIComponent(String(requestParameters['receiptId'])));
|
|
53
52
|
return {
|
|
54
53
|
path: urlPath,
|
|
55
54
|
method: 'GET',
|
|
@@ -59,33 +58,33 @@ class AIIAMPPMPPPaymentApi extends runtime.BaseAPI {
|
|
|
59
58
|
});
|
|
60
59
|
}
|
|
61
60
|
/**
|
|
62
|
-
*
|
|
63
|
-
*
|
|
61
|
+
* Retrieves an MPP payment receipt by its UUID. Receipts are issued when a Shared Payment Token is spent (IAMPP005), and are also returned inline on the tool result as _meta.org.paymentauth/receipt.
|
|
62
|
+
* IAMPP003 - Get MPP payment receipt
|
|
64
63
|
*/
|
|
65
|
-
|
|
64
|
+
iAMPP003Raw(requestParameters, initOverrides) {
|
|
66
65
|
return __awaiter(this, void 0, void 0, function* () {
|
|
67
|
-
const requestOptions = yield this.
|
|
66
|
+
const requestOptions = yield this.iAMPP003RequestOpts(requestParameters);
|
|
68
67
|
const response = yield this.request(requestOptions, initOverrides);
|
|
69
68
|
return new runtime.JSONApiResponse(response);
|
|
70
69
|
});
|
|
71
70
|
}
|
|
72
71
|
/**
|
|
73
|
-
*
|
|
74
|
-
*
|
|
72
|
+
* Retrieves an MPP payment receipt by its UUID. Receipts are issued when a Shared Payment Token is spent (IAMPP005), and are also returned inline on the tool result as _meta.org.paymentauth/receipt.
|
|
73
|
+
* IAMPP003 - Get MPP payment receipt
|
|
75
74
|
*/
|
|
76
|
-
|
|
75
|
+
iAMPP003(requestParameters, initOverrides) {
|
|
77
76
|
return __awaiter(this, void 0, void 0, function* () {
|
|
78
|
-
const response = yield this.
|
|
77
|
+
const response = yield this.iAMPP003Raw(requestParameters, initOverrides);
|
|
79
78
|
return yield response.value();
|
|
80
79
|
});
|
|
81
80
|
}
|
|
82
81
|
/**
|
|
83
|
-
* Creates request options for
|
|
82
|
+
* Creates request options for iAMPP004 without sending the request
|
|
84
83
|
*/
|
|
85
|
-
|
|
84
|
+
iAMPP004RequestOpts(requestParameters) {
|
|
86
85
|
return __awaiter(this, void 0, void 0, function* () {
|
|
87
|
-
if (requestParameters['
|
|
88
|
-
throw new runtime.RequiredError('
|
|
86
|
+
if (requestParameters['mppChallengeOpenApiDTO'] == null) {
|
|
87
|
+
throw new runtime.RequiredError('mppChallengeOpenApiDTO', 'Required parameter "mppChallengeOpenApiDTO" was null or undefined when calling iAMPP004().');
|
|
89
88
|
}
|
|
90
89
|
const queryParameters = {};
|
|
91
90
|
const headerParameters = {};
|
|
@@ -97,47 +96,51 @@ class AIIAMPPMPPPaymentApi extends runtime.BaseAPI {
|
|
|
97
96
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
98
97
|
}
|
|
99
98
|
}
|
|
100
|
-
let urlPath = `/pb/ai/protocols/acp/mpp/
|
|
99
|
+
let urlPath = `/pb/ai/protocols/acp/mpp/challenges`;
|
|
101
100
|
return {
|
|
102
101
|
path: urlPath,
|
|
103
102
|
method: 'POST',
|
|
104
103
|
headers: headerParameters,
|
|
105
104
|
query: queryParameters,
|
|
106
|
-
body: (0,
|
|
105
|
+
body: (0, MppChallengeOpenApiDTO_1.MppChallengeOpenApiDTOToJSON)(requestParameters['mppChallengeOpenApiDTO']),
|
|
107
106
|
};
|
|
108
107
|
});
|
|
109
108
|
}
|
|
110
109
|
/**
|
|
111
|
-
*
|
|
112
|
-
*
|
|
110
|
+
* Opens a single-use MPP payment challenge for a priced tool call: amount, currency, the platform\'s Stripe network id, and an expiry. The agent\'s wallet issues a Shared Payment Token for this challenge and presents it to IAMPP005.
|
|
111
|
+
* IAMPP004 - Open an MPP payment challenge
|
|
113
112
|
*/
|
|
114
|
-
|
|
113
|
+
iAMPP004Raw(requestParameters, initOverrides) {
|
|
115
114
|
return __awaiter(this, void 0, void 0, function* () {
|
|
116
|
-
const requestOptions = yield this.
|
|
115
|
+
const requestOptions = yield this.iAMPP004RequestOpts(requestParameters);
|
|
117
116
|
const response = yield this.request(requestOptions, initOverrides);
|
|
118
117
|
return new runtime.JSONApiResponse(response);
|
|
119
118
|
});
|
|
120
119
|
}
|
|
121
120
|
/**
|
|
122
|
-
*
|
|
123
|
-
*
|
|
121
|
+
* Opens a single-use MPP payment challenge for a priced tool call: amount, currency, the platform\'s Stripe network id, and an expiry. The agent\'s wallet issues a Shared Payment Token for this challenge and presents it to IAMPP005.
|
|
122
|
+
* IAMPP004 - Open an MPP payment challenge
|
|
124
123
|
*/
|
|
125
|
-
|
|
124
|
+
iAMPP004(requestParameters, initOverrides) {
|
|
126
125
|
return __awaiter(this, void 0, void 0, function* () {
|
|
127
|
-
const response = yield this.
|
|
126
|
+
const response = yield this.iAMPP004Raw(requestParameters, initOverrides);
|
|
128
127
|
return yield response.value();
|
|
129
128
|
});
|
|
130
129
|
}
|
|
131
130
|
/**
|
|
132
|
-
* Creates request options for
|
|
131
|
+
* Creates request options for iAMPP005 without sending the request
|
|
133
132
|
*/
|
|
134
|
-
|
|
133
|
+
iAMPP005RequestOpts(requestParameters) {
|
|
135
134
|
return __awaiter(this, void 0, void 0, function* () {
|
|
136
|
-
if (requestParameters['
|
|
137
|
-
throw new runtime.RequiredError('
|
|
135
|
+
if (requestParameters['challengeId'] == null) {
|
|
136
|
+
throw new runtime.RequiredError('challengeId', 'Required parameter "challengeId" was null or undefined when calling iAMPP005().');
|
|
137
|
+
}
|
|
138
|
+
if (requestParameters['mppChallengePaymentApiDTO'] == null) {
|
|
139
|
+
throw new runtime.RequiredError('mppChallengePaymentApiDTO', 'Required parameter "mppChallengePaymentApiDTO" was null or undefined when calling iAMPP005().');
|
|
138
140
|
}
|
|
139
141
|
const queryParameters = {};
|
|
140
142
|
const headerParameters = {};
|
|
143
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
141
144
|
if (this.configuration && this.configuration.accessToken) {
|
|
142
145
|
const token = this.configuration.accessToken;
|
|
143
146
|
const tokenString = yield token("BearerAuth", []);
|
|
@@ -145,34 +148,35 @@ class AIIAMPPMPPPaymentApi extends runtime.BaseAPI {
|
|
|
145
148
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
146
149
|
}
|
|
147
150
|
}
|
|
148
|
-
let urlPath = `/pb/ai/protocols/acp/mpp/
|
|
149
|
-
urlPath = urlPath.replace('{
|
|
151
|
+
let urlPath = `/pb/ai/protocols/acp/mpp/challenges/{challengeId}/payment`;
|
|
152
|
+
urlPath = urlPath.replace('{challengeId}', encodeURIComponent(String(requestParameters['challengeId'])));
|
|
150
153
|
return {
|
|
151
154
|
path: urlPath,
|
|
152
|
-
method: '
|
|
155
|
+
method: 'POST',
|
|
153
156
|
headers: headerParameters,
|
|
154
157
|
query: queryParameters,
|
|
158
|
+
body: (0, MppChallengePaymentApiDTO_1.MppChallengePaymentApiDTOToJSON)(requestParameters['mppChallengePaymentApiDTO']),
|
|
155
159
|
};
|
|
156
160
|
});
|
|
157
161
|
}
|
|
158
162
|
/**
|
|
159
|
-
*
|
|
160
|
-
*
|
|
163
|
+
* Charges the agent-supplied Shared Payment Token against a PENDING challenge opened by IAMPP004. Single-use, bound to the challenge\'s tool/amount/currency, and idempotent on retry (idempotency key derived from the challenge id).
|
|
164
|
+
* IAMPP005 - Pay an MPP challenge with a Shared Payment Token
|
|
161
165
|
*/
|
|
162
|
-
|
|
166
|
+
iAMPP005Raw(requestParameters, initOverrides) {
|
|
163
167
|
return __awaiter(this, void 0, void 0, function* () {
|
|
164
|
-
const requestOptions = yield this.
|
|
168
|
+
const requestOptions = yield this.iAMPP005RequestOpts(requestParameters);
|
|
165
169
|
const response = yield this.request(requestOptions, initOverrides);
|
|
166
170
|
return new runtime.JSONApiResponse(response);
|
|
167
171
|
});
|
|
168
172
|
}
|
|
169
173
|
/**
|
|
170
|
-
*
|
|
171
|
-
*
|
|
174
|
+
* Charges the agent-supplied Shared Payment Token against a PENDING challenge opened by IAMPP004. Single-use, bound to the challenge\'s tool/amount/currency, and idempotent on retry (idempotency key derived from the challenge id).
|
|
175
|
+
* IAMPP005 - Pay an MPP challenge with a Shared Payment Token
|
|
172
176
|
*/
|
|
173
|
-
|
|
177
|
+
iAMPP005(requestParameters, initOverrides) {
|
|
174
178
|
return __awaiter(this, void 0, void 0, function* () {
|
|
175
|
-
const response = yield this.
|
|
179
|
+
const response = yield this.iAMPP005Raw(requestParameters, initOverrides);
|
|
176
180
|
return yield response.value();
|
|
177
181
|
});
|
|
178
182
|
}
|
|
@@ -0,0 +1,86 @@
|
|
|
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 HelpdeskContextDTO } from '../models/HelpdeskContextDTO';
|
|
14
|
+
import { type HelpdeskSidebarKeyDTO } from '../models/HelpdeskSidebarKeyDTO';
|
|
15
|
+
import { type HelpdeskSidebarKeyStateDTO } from '../models/HelpdeskSidebarKeyStateDTO';
|
|
16
|
+
export interface AIHD001Request {
|
|
17
|
+
xAppAccountId: string;
|
|
18
|
+
contactId?: string;
|
|
19
|
+
email?: string;
|
|
20
|
+
orderNumber?: string;
|
|
21
|
+
xHelpdeskAgentEmail?: string;
|
|
22
|
+
acceptLanguage?: string;
|
|
23
|
+
vergefyVersion?: string;
|
|
24
|
+
acceptTimezone?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface AIHD002Request {
|
|
27
|
+
id: string;
|
|
28
|
+
xAppAccountId: string;
|
|
29
|
+
acceptLanguage?: string;
|
|
30
|
+
vergefyVersion?: string;
|
|
31
|
+
acceptTimezone?: string;
|
|
32
|
+
}
|
|
33
|
+
export interface AIHD100Request {
|
|
34
|
+
id: string;
|
|
35
|
+
xAppAccountId: string;
|
|
36
|
+
acceptLanguage?: string;
|
|
37
|
+
vergefyVersion?: string;
|
|
38
|
+
acceptTimezone?: string;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
*/
|
|
43
|
+
export declare class APIAIHDIntegrationHelpdeskApi extends runtime.BaseAPI {
|
|
44
|
+
/**
|
|
45
|
+
* Creates request options for aIHD001 without sending the request
|
|
46
|
+
*/
|
|
47
|
+
aIHD001RequestOpts(requestParameters: AIHD001Request): Promise<runtime.RequestOpts>;
|
|
48
|
+
/**
|
|
49
|
+
* What Vergefy knows about a helpdesk ticket\'s requester, in one call: the matched contact (or up to 5 candidates sharing the e-mail), their latest 10 orders with lines, shipments, returns and stock on hand, money as decimal strings. Keys are tried most specific first: contactId, orderNumber (a Vergefy order number, then a marketplace\'s own order id, Amazon\'s included, then the number the marketplace showed its customer, Shopify\'s #1042 for one), email. No match is a 200 with empty lists and the keys tried. A section the caller may not read is left out and named in omittedSections, never an error.
|
|
50
|
+
* AIHD001 - Get Helpdesk Order Context
|
|
51
|
+
*/
|
|
52
|
+
aIHD001Raw(requestParameters: AIHD001Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<HelpdeskContextDTO>>;
|
|
53
|
+
/**
|
|
54
|
+
* What Vergefy knows about a helpdesk ticket\'s requester, in one call: the matched contact (or up to 5 candidates sharing the e-mail), their latest 10 orders with lines, shipments, returns and stock on hand, money as decimal strings. Keys are tried most specific first: contactId, orderNumber (a Vergefy order number, then a marketplace\'s own order id, Amazon\'s included, then the number the marketplace showed its customer, Shopify\'s #1042 for one), email. No match is a 200 with empty lists and the keys tried. A section the caller may not read is left out and named in omittedSections, never an error.
|
|
55
|
+
* AIHD001 - Get Helpdesk Order Context
|
|
56
|
+
*/
|
|
57
|
+
aIHD001(requestParameters: AIHD001Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<HelpdeskContextDTO>;
|
|
58
|
+
/**
|
|
59
|
+
* Creates request options for aIHD002 without sending the request
|
|
60
|
+
*/
|
|
61
|
+
aIHD002RequestOpts(requestParameters: AIHD002Request): Promise<runtime.RequestOpts>;
|
|
62
|
+
/**
|
|
63
|
+
* Where a helpdesk connection\'s sidebar key stands: never issued, working, revoked (replaced, or the connection was switched off) or switched off with its principal, with the key\'s prefix and dates. Never returns the key itself.
|
|
64
|
+
* AIHD002 - Get Helpdesk Sidebar Key Status
|
|
65
|
+
*/
|
|
66
|
+
aIHD002Raw(requestParameters: AIHD002Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<HelpdeskSidebarKeyStateDTO>>;
|
|
67
|
+
/**
|
|
68
|
+
* Where a helpdesk connection\'s sidebar key stands: never issued, working, revoked (replaced, or the connection was switched off) or switched off with its principal, with the key\'s prefix and dates. Never returns the key itself.
|
|
69
|
+
* AIHD002 - Get Helpdesk Sidebar Key Status
|
|
70
|
+
*/
|
|
71
|
+
aIHD002(requestParameters: AIHD002Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<HelpdeskSidebarKeyStateDTO>;
|
|
72
|
+
/**
|
|
73
|
+
* Creates request options for aIHD100 without sending the request
|
|
74
|
+
*/
|
|
75
|
+
aIHD100RequestOpts(requestParameters: AIHD100Request): Promise<runtime.RequestOpts>;
|
|
76
|
+
/**
|
|
77
|
+
* Issues the helpdesk sidebar\'s key for a helpdesk connection, or replaces it: the previous key stops working at once. The key belongs to the connection\'s own service principal and may only read contacts, orders, shipments, returns and stock, and create returns. The secret is returned only in this response. The caller must be a person holding all of those permissions.
|
|
78
|
+
* AIHD100 - Issue Helpdesk Sidebar Key
|
|
79
|
+
*/
|
|
80
|
+
aIHD100Raw(requestParameters: AIHD100Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<HelpdeskSidebarKeyDTO>>;
|
|
81
|
+
/**
|
|
82
|
+
* Issues the helpdesk sidebar\'s key for a helpdesk connection, or replaces it: the previous key stops working at once. The key belongs to the connection\'s own service principal and may only read contacts, orders, shipments, returns and stock, and create returns. The secret is returned only in this response. The caller must be a person holding all of those permissions.
|
|
83
|
+
* AIHD100 - Issue Helpdesk Sidebar Key
|
|
84
|
+
*/
|
|
85
|
+
aIHD100(requestParameters: AIHD100Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<HelpdeskSidebarKeyDTO>;
|
|
86
|
+
}
|