@integrahub/vergefy-client 0.27.0 → 0.29.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.
Files changed (132) hide show
  1. package/README.md +2 -2
  2. package/dist/apis/AIIAMPPMPPPaymentApi.d.ts +33 -31
  3. package/dist/apis/AIIAMPPMPPPaymentApi.js +50 -46
  4. package/dist/apis/AIIUCPCUCPConfigurationApi.d.ts +2 -2
  5. package/dist/apis/AIIUCPCUCPConfigurationApi.js +2 -2
  6. package/dist/apis/APIAGRGoodsReceiptApi.d.ts +2 -2
  7. package/dist/apis/APIAGRGoodsReceiptApi.js +2 -2
  8. package/dist/apis/APIAIHDIntegrationHelpdeskApi.d.ts +86 -0
  9. package/dist/apis/APIAIHDIntegrationHelpdeskApi.js +232 -0
  10. package/dist/apis/APIAINIntegrationApi.d.ts +5 -0
  11. package/dist/apis/APIAINIntegrationApi.js +5 -0
  12. package/dist/apis/APIAPAPaymentApi.d.ts +29 -4
  13. package/dist/apis/APIAPAPaymentApi.js +76 -5
  14. package/dist/apis/APIARTReturnApi.d.ts +3 -2
  15. package/dist/apis/APIARTReturnApi.js +5 -2
  16. package/dist/apis/APIIntegrationConfigurationApi.d.ts +1 -0
  17. package/dist/apis/APIIntegrationConfigurationApi.js +1 -0
  18. package/dist/apis/PLATFORMLPCPlatformPaymentCheckoutApi.d.ts +21 -0
  19. package/dist/apis/PLATFORMLPCPlatformPaymentCheckoutApi.js +63 -0
  20. package/dist/apis/index.d.ts +1 -0
  21. package/dist/apis/index.js +1 -0
  22. package/dist/esm/apis/AIIAMPPMPPPaymentApi.js +50 -46
  23. package/dist/esm/apis/AIIUCPCUCPConfigurationApi.js +2 -2
  24. package/dist/esm/apis/APIAGRGoodsReceiptApi.js +2 -2
  25. package/dist/esm/apis/APIAIHDIntegrationHelpdeskApi.js +228 -0
  26. package/dist/esm/apis/APIAINIntegrationApi.js +5 -0
  27. package/dist/esm/apis/APIAPAPaymentApi.js +76 -5
  28. package/dist/esm/apis/APIARTReturnApi.js +5 -2
  29. package/dist/esm/apis/APIIntegrationConfigurationApi.js +1 -0
  30. package/dist/esm/apis/PLATFORMLPCPlatformPaymentCheckoutApi.js +63 -0
  31. package/dist/esm/apis/index.js +1 -0
  32. package/dist/esm/ext/telemetry.js +1 -1
  33. package/dist/esm/models/AvailableProviderDTO.js +12 -0
  34. package/dist/esm/models/ChannelResult.js +1 -0
  35. package/dist/esm/models/ConnectorListingDTO.js +2 -0
  36. package/dist/esm/models/EdgeGatewayDTO.js +1 -0
  37. package/dist/esm/models/HelpdeskContactDTO.js +57 -0
  38. package/dist/esm/models/HelpdeskContextDTO.js +82 -0
  39. package/dist/esm/models/HelpdeskLookupKeyDTO.js +57 -0
  40. package/dist/esm/models/HelpdeskOrderDTO.js +76 -0
  41. package/dist/esm/models/HelpdeskOrderLineDTO.js +51 -0
  42. package/dist/esm/models/HelpdeskSidebarKeyDTO.js +67 -0
  43. package/dist/esm/models/HelpdeskSidebarKeyStateDTO.js +64 -0
  44. package/dist/esm/models/HostedCheckoutAddressDTO.js +49 -0
  45. package/dist/esm/models/HostedCheckoutBasketItemDTO.js +49 -0
  46. package/dist/esm/models/HostedCheckoutRequestDTO.js +71 -0
  47. package/dist/esm/models/HostedCheckoutResultDTO.js +45 -0
  48. package/dist/esm/models/ImportJobDTO.js +1 -0
  49. package/dist/esm/models/IntegrationConfigurationCreateDTO.js +2 -0
  50. package/dist/esm/models/IntegrationConfigurationDTO.js +2 -0
  51. package/dist/esm/models/IntegrationHealthSummaryDTO.js +2 -0
  52. package/dist/esm/models/InvoiceApiDTO.js +2 -1
  53. package/dist/esm/models/{MppPaymentSessionCreateApiDTO.js → MppChallengeOpenApiDTO.js} +18 -10
  54. package/dist/{models/MppPaymentSessionCreateApiDTO.js → esm/models/MppChallengePaymentApiDTO.js} +24 -17
  55. package/dist/esm/models/OrderReturnSummaryDTO.js +66 -0
  56. package/dist/esm/models/OrderShipmentSummaryDTO.js +68 -0
  57. package/dist/esm/models/PaymentConfigurationDTO.js +2 -1
  58. package/dist/esm/models/PaymentIntentDTO.js +27 -9
  59. package/dist/esm/models/PrincipalDTO.js +2 -1
  60. package/dist/esm/models/ProviderHealthStatusDTO.js +1 -0
  61. package/dist/esm/models/ReturnRequestDTO.js +2 -0
  62. package/dist/esm/models/SocialConnectionRegisterDTO.js +1 -0
  63. package/dist/esm/models/SocialProviderCredentialReadinessDTO.js +1 -0
  64. package/dist/esm/models/index.js +15 -1
  65. package/dist/ext/telemetry.d.ts +1 -1
  66. package/dist/ext/telemetry.js +1 -1
  67. package/dist/models/AvailableProviderDTO.d.ts +17 -0
  68. package/dist/models/AvailableProviderDTO.js +13 -1
  69. package/dist/models/ChannelResult.d.ts +1 -0
  70. package/dist/models/ChannelResult.js +1 -0
  71. package/dist/models/ConnectorListingDTO.d.ts +2 -0
  72. package/dist/models/ConnectorListingDTO.js +2 -0
  73. package/dist/models/EdgeGatewayDTO.d.ts +1 -0
  74. package/dist/models/EdgeGatewayDTO.js +1 -0
  75. package/dist/models/HelpdeskContactDTO.d.ts +74 -0
  76. package/dist/models/HelpdeskContactDTO.js +64 -0
  77. package/dist/models/HelpdeskContextDTO.d.ts +87 -0
  78. package/dist/models/HelpdeskContextDTO.js +90 -0
  79. package/dist/models/HelpdeskLookupKeyDTO.d.ts +49 -0
  80. package/dist/models/HelpdeskLookupKeyDTO.js +65 -0
  81. package/dist/models/HelpdeskOrderDTO.d.ts +125 -0
  82. package/dist/models/HelpdeskOrderDTO.js +83 -0
  83. package/dist/models/HelpdeskOrderLineDTO.d.ts +56 -0
  84. package/dist/models/HelpdeskOrderLineDTO.js +58 -0
  85. package/dist/models/HelpdeskSidebarKeyDTO.d.ts +68 -0
  86. package/dist/models/HelpdeskSidebarKeyDTO.js +74 -0
  87. package/dist/models/HelpdeskSidebarKeyStateDTO.d.ts +72 -0
  88. package/dist/models/HelpdeskSidebarKeyStateDTO.js +72 -0
  89. package/dist/models/HostedCheckoutAddressDTO.d.ts +56 -0
  90. package/dist/models/HostedCheckoutAddressDTO.js +56 -0
  91. package/dist/models/HostedCheckoutBasketItemDTO.d.ts +56 -0
  92. package/dist/models/HostedCheckoutBasketItemDTO.js +56 -0
  93. package/dist/models/HostedCheckoutRequestDTO.d.ts +118 -0
  94. package/dist/models/HostedCheckoutRequestDTO.js +78 -0
  95. package/dist/models/{MppPaymentSessionCreateApiDTO.d.ts → HostedCheckoutResultDTO.d.ts} +18 -12
  96. package/dist/models/HostedCheckoutResultDTO.js +52 -0
  97. package/dist/models/ImportJobDTO.d.ts +1 -0
  98. package/dist/models/ImportJobDTO.js +1 -0
  99. package/dist/models/IntegrationConfigurationCreateDTO.d.ts +2 -0
  100. package/dist/models/IntegrationConfigurationCreateDTO.js +2 -0
  101. package/dist/models/IntegrationConfigurationDTO.d.ts +2 -0
  102. package/dist/models/IntegrationConfigurationDTO.js +2 -0
  103. package/dist/models/IntegrationHealthSummaryDTO.d.ts +2 -0
  104. package/dist/models/IntegrationHealthSummaryDTO.js +2 -0
  105. package/dist/models/InvoiceApiDTO.d.ts +1 -0
  106. package/dist/models/InvoiceApiDTO.js +2 -1
  107. package/dist/models/MppChallengeOpenApiDTO.d.ts +50 -0
  108. package/dist/models/MppChallengeOpenApiDTO.js +60 -0
  109. package/dist/models/MppChallengePaymentApiDTO.d.ts +56 -0
  110. package/dist/models/MppChallengePaymentApiDTO.js +66 -0
  111. package/dist/models/OrderReturnSummaryDTO.d.ts +78 -0
  112. package/dist/models/OrderReturnSummaryDTO.js +74 -0
  113. package/dist/models/OrderShipmentSummaryDTO.d.ts +92 -0
  114. package/dist/models/OrderShipmentSummaryDTO.js +76 -0
  115. package/dist/models/PaymentConfigurationDTO.d.ts +1 -0
  116. package/dist/models/PaymentConfigurationDTO.js +2 -1
  117. package/dist/models/PaymentIntentDTO.d.ts +9 -9
  118. package/dist/models/PaymentIntentDTO.js +27 -9
  119. package/dist/models/PrincipalDTO.d.ts +1 -0
  120. package/dist/models/PrincipalDTO.js +2 -1
  121. package/dist/models/ProviderHealthStatusDTO.d.ts +1 -0
  122. package/dist/models/ProviderHealthStatusDTO.js +1 -0
  123. package/dist/models/ReturnRequestDTO.d.ts +6 -0
  124. package/dist/models/ReturnRequestDTO.js +2 -0
  125. package/dist/models/SocialConnectionRegisterDTO.d.ts +1 -0
  126. package/dist/models/SocialConnectionRegisterDTO.js +1 -0
  127. package/dist/models/SocialProviderCredentialReadinessDTO.d.ts +1 -0
  128. package/dist/models/SocialProviderCredentialReadinessDTO.js +1 -0
  129. package/dist/models/UcpWebhookRegistrationDTO.d.ts +1 -1
  130. package/dist/models/index.d.ts +15 -1
  131. package/dist/models/index.js +15 -1
  132. package/package.json +1 -1
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @integrahub/vergefy-client@0.27.0
1
+ # @integrahub/vergefy-client@0.29.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.27.0`
93
+ - Package version: `0.29.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 MppPaymentSessionCreateApiDTO } from '../models/MppPaymentSessionCreateApiDTO';
14
- export interface IAMPP001Request {
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 iAMPP001 without sending the request
30
+ * Creates request options for iAMPP003 without sending the request
29
31
  */
30
- iAMPP001RequestOpts(requestParameters: IAMPP001Request): Promise<runtime.RequestOpts>;
32
+ iAMPP003RequestOpts(requestParameters: IAMPP003Request): Promise<runtime.RequestOpts>;
31
33
  /**
32
- * Verifies a Stripe Shared Payment Token (SetupIntent) for MPP tool call authorization. Returns 200 + receiptId on success, 400 on invalid/replayed token.
33
- * IAMPP001 - Verify SPT token
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
- iAMPP001Raw(requestParameters: IAMPP001Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
37
+ iAMPP003Raw(requestParameters: IAMPP003Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
36
38
  [key: string]: object;
37
39
  }>>;
38
40
  /**
39
- * Verifies a Stripe Shared Payment Token (SetupIntent) for MPP tool call authorization. Returns 200 + receiptId on success, 400 on invalid/replayed token.
40
- * IAMPP001 - Verify SPT token
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
- iAMPP001(requestParameters: IAMPP001Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
44
+ iAMPP003(requestParameters: IAMPP003Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
43
45
  [key: string]: object;
44
46
  }>;
45
47
  /**
46
- * Creates request options for iAMPP002 without sending the request
48
+ * Creates request options for iAMPP004 without sending the request
47
49
  */
48
- iAMPP002RequestOpts(requestParameters: IAMPP002Request): Promise<runtime.RequestOpts>;
50
+ iAMPP004RequestOpts(requestParameters: IAMPP004Request): Promise<runtime.RequestOpts>;
49
51
  /**
50
- * Creates a Stripe SetupIntent (Shared Payment Token) pre-authorizing the given amount for this tenant, and records the authorization. The returned token is presented as _meta.org.paymentauth/credential on a priced MCP tool call.
51
- * IAMPP002 - Create MPP payment session
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
- iAMPP002Raw(requestParameters: IAMPP002Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
55
+ iAMPP004Raw(requestParameters: IAMPP004Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
54
56
  [key: string]: object;
55
57
  }>>;
56
58
  /**
57
- * Creates a Stripe SetupIntent (Shared Payment Token) pre-authorizing the given amount for this tenant, and records the authorization. The returned token is presented as _meta.org.paymentauth/credential on a priced MCP tool call.
58
- * IAMPP002 - Create MPP payment session
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
- iAMPP002(requestParameters: IAMPP002Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
62
+ iAMPP004(requestParameters: IAMPP004Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
61
63
  [key: string]: object;
62
64
  }>;
63
65
  /**
64
- * Creates request options for iAMPP003 without sending the request
66
+ * Creates request options for iAMPP005 without sending the request
65
67
  */
66
- iAMPP003RequestOpts(requestParameters: IAMPP003Request): Promise<runtime.RequestOpts>;
68
+ iAMPP005RequestOpts(requestParameters: IAMPP005Request): Promise<runtime.RequestOpts>;
67
69
  /**
68
- * Retrieves an MPP payment receipt by its UUID. Receipts are issued when a Shared Payment Token is spent, and are also returned inline on the tool result as _meta.org.paymentauth/receipt.
69
- * IAMPP003 - Get MPP payment receipt
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
- iAMPP003Raw(requestParameters: IAMPP003Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
73
+ iAMPP005Raw(requestParameters: IAMPP005Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
72
74
  [key: string]: object;
73
75
  }>>;
74
76
  /**
75
- * Retrieves an MPP payment receipt by its UUID. Receipts are issued when a Shared Payment Token is spent, and are also returned inline on the tool result as _meta.org.paymentauth/receipt.
76
- * IAMPP003 - Get MPP payment receipt
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
- iAMPP003(requestParameters: IAMPP003Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
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 MppPaymentSessionCreateApiDTO_1 = require("../models/MppPaymentSessionCreateApiDTO");
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 iAMPP001 without sending the request
34
+ * Creates request options for iAMPP003 without sending the request
34
35
  */
35
- iAMPP001RequestOpts(requestParameters) {
36
+ iAMPP003RequestOpts(requestParameters) {
36
37
  return __awaiter(this, void 0, void 0, function* () {
37
- if (requestParameters['token'] == null) {
38
- throw new runtime.RequiredError('token', 'Required parameter "token" was null or undefined when calling iAMPP001().');
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/verify-spt`;
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
- * Verifies a Stripe Shared Payment Token (SetupIntent) for MPP tool call authorization. Returns 200 + receiptId on success, 400 on invalid/replayed token.
63
- * IAMPP001 - Verify SPT token
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
- iAMPP001Raw(requestParameters, initOverrides) {
64
+ iAMPP003Raw(requestParameters, initOverrides) {
66
65
  return __awaiter(this, void 0, void 0, function* () {
67
- const requestOptions = yield this.iAMPP001RequestOpts(requestParameters);
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
- * Verifies a Stripe Shared Payment Token (SetupIntent) for MPP tool call authorization. Returns 200 + receiptId on success, 400 on invalid/replayed token.
74
- * IAMPP001 - Verify SPT token
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
- iAMPP001(requestParameters, initOverrides) {
75
+ iAMPP003(requestParameters, initOverrides) {
77
76
  return __awaiter(this, void 0, void 0, function* () {
78
- const response = yield this.iAMPP001Raw(requestParameters, initOverrides);
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 iAMPP002 without sending the request
82
+ * Creates request options for iAMPP004 without sending the request
84
83
  */
85
- iAMPP002RequestOpts(requestParameters) {
84
+ iAMPP004RequestOpts(requestParameters) {
86
85
  return __awaiter(this, void 0, void 0, function* () {
87
- if (requestParameters['mppPaymentSessionCreateApiDTO'] == null) {
88
- throw new runtime.RequiredError('mppPaymentSessionCreateApiDTO', 'Required parameter "mppPaymentSessionCreateApiDTO" was null or undefined when calling iAMPP002().');
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/payment-session`;
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, MppPaymentSessionCreateApiDTO_1.MppPaymentSessionCreateApiDTOToJSON)(requestParameters['mppPaymentSessionCreateApiDTO']),
105
+ body: (0, MppChallengeOpenApiDTO_1.MppChallengeOpenApiDTOToJSON)(requestParameters['mppChallengeOpenApiDTO']),
107
106
  };
108
107
  });
109
108
  }
110
109
  /**
111
- * Creates a Stripe SetupIntent (Shared Payment Token) pre-authorizing the given amount for this tenant, and records the authorization. The returned token is presented as _meta.org.paymentauth/credential on a priced MCP tool call.
112
- * IAMPP002 - Create MPP payment session
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
- iAMPP002Raw(requestParameters, initOverrides) {
113
+ iAMPP004Raw(requestParameters, initOverrides) {
115
114
  return __awaiter(this, void 0, void 0, function* () {
116
- const requestOptions = yield this.iAMPP002RequestOpts(requestParameters);
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
- * Creates a Stripe SetupIntent (Shared Payment Token) pre-authorizing the given amount for this tenant, and records the authorization. The returned token is presented as _meta.org.paymentauth/credential on a priced MCP tool call.
123
- * IAMPP002 - Create MPP payment session
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
- iAMPP002(requestParameters, initOverrides) {
124
+ iAMPP004(requestParameters, initOverrides) {
126
125
  return __awaiter(this, void 0, void 0, function* () {
127
- const response = yield this.iAMPP002Raw(requestParameters, initOverrides);
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 iAMPP003 without sending the request
131
+ * Creates request options for iAMPP005 without sending the request
133
132
  */
134
- iAMPP003RequestOpts(requestParameters) {
133
+ iAMPP005RequestOpts(requestParameters) {
135
134
  return __awaiter(this, void 0, void 0, function* () {
136
- if (requestParameters['receiptId'] == null) {
137
- throw new runtime.RequiredError('receiptId', 'Required parameter "receiptId" was null or undefined when calling iAMPP003().');
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/receipts/{receiptId}`;
149
- urlPath = urlPath.replace('{receiptId}', encodeURIComponent(String(requestParameters['receiptId'])));
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: 'GET',
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
- * Retrieves an MPP payment receipt by its UUID. Receipts are issued when a Shared Payment Token is spent, and are also returned inline on the tool result as _meta.org.paymentauth/receipt.
160
- * IAMPP003 - Get MPP payment receipt
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
- iAMPP003Raw(requestParameters, initOverrides) {
166
+ iAMPP005Raw(requestParameters, initOverrides) {
163
167
  return __awaiter(this, void 0, void 0, function* () {
164
- const requestOptions = yield this.iAMPP003RequestOpts(requestParameters);
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
- * Retrieves an MPP payment receipt by its UUID. Receipts are issued when a Shared Payment Token is spent, and are also returned inline on the tool result as _meta.org.paymentauth/receipt.
171
- * IAMPP003 - Get MPP payment receipt
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
- iAMPP003(requestParameters, initOverrides) {
177
+ iAMPP005(requestParameters, initOverrides) {
174
178
  return __awaiter(this, void 0, void 0, function* () {
175
- const response = yield this.iAMPP003Raw(requestParameters, initOverrides);
179
+ const response = yield this.iAMPP005Raw(requestParameters, initOverrides);
176
180
  return yield response.value();
177
181
  });
178
182
  }
@@ -49,12 +49,12 @@ export declare class AIIUCPCUCPConfigurationApi extends runtime.BaseAPI {
49
49
  */
50
50
  iUCPC023RequestOpts(requestParameters: IUCPC023Request): Promise<runtime.RequestOpts>;
51
51
  /**
52
- * Registers an AI agent webhook endpoint to receive UCP order lifecycle events.
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). It is compared character for character, so a different case, a trailing slash or a surrounding space 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. `subscribedEvents` names event types with or without the `ucp.` prefix (`order.shipped` or `ucp.order.shipped`). Registering the same agent and endpoint again replaces the subscribed events and returns the same registration.
53
53
  * IUCPC023 - Register Agent Webhook
54
54
  */
55
55
  iUCPC023Raw(requestParameters: IUCPC023Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseDTOUcpWebhookRegistrationDTO>>;
56
56
  /**
57
- * Registers an AI agent webhook endpoint to receive UCP order lifecycle events.
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). It is compared character for character, so a different case, a trailing slash or a surrounding space 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. `subscribedEvents` names event types with or without the `ucp.` prefix (`order.shipped` or `ucp.order.shipped`). Registering the same agent and endpoint again replaces the subscribed events and returns the same registration.
58
58
  * IUCPC023 - Register Agent Webhook
59
59
  */
60
60
  iUCPC023(requestParameters: IUCPC023Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseDTOUcpWebhookRegistrationDTO>;
@@ -75,7 +75,7 @@ class AIIUCPCUCPConfigurationApi extends runtime.BaseAPI {
75
75
  });
76
76
  }
77
77
  /**
78
- * Registers an AI agent webhook endpoint to receive UCP order lifecycle events.
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). It is compared character for character, so a different case, a trailing slash or a surrounding space 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. `subscribedEvents` names event types with or without the `ucp.` prefix (`order.shipped` or `ucp.order.shipped`). Registering the same agent and endpoint again replaces the subscribed events and returns the same registration.
79
79
  * IUCPC023 - Register Agent Webhook
80
80
  */
81
81
  iUCPC023Raw(requestParameters, initOverrides) {
@@ -86,7 +86,7 @@ class AIIUCPCUCPConfigurationApi extends runtime.BaseAPI {
86
86
  });
87
87
  }
88
88
  /**
89
- * Registers an AI agent webhook endpoint to receive UCP order lifecycle events.
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). It is compared character for character, so a different case, a trailing slash or a surrounding space 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. `subscribedEvents` names event types with or without the `ucp.` prefix (`order.shipped` or `ucp.order.shipped`). Registering the same agent and endpoint again replaces the subscribed events and returns the same registration.
90
90
  * IUCPC023 - Register Agent Webhook
91
91
  */
92
92
  iUCPC023(requestParameters, initOverrides) {
@@ -70,12 +70,12 @@ export declare class APIAGRGoodsReceiptApi extends runtime.BaseAPI {
70
70
  */
71
71
  aGR002RequestOpts(requestParameters: AGR002Request): Promise<runtime.RequestOpts>;
72
72
  /**
73
- * Receives the goods: each line creates a StockLot and increases on-hand (receiveNewLot), then puts away at its destination bin. Flips DRAFT -> RECEIVED / PUT_AWAY. Requires the PRO/PREMIUM lot-tracking entitlement (402 otherwise)
73
+ * Receives the goods and puts each line away at its destination bin. With the PRO/PREMIUM lot-tracking entitlement each line creates a StockLot and increases on-hand (receiveNewLot); without it each line increases on-hand as plain stock, and a line carrying a lot number, an expiry date or a condition other than AVAILABLE is refused (402). Flips DRAFT -> RECEIVED / PUT_AWAY.
74
74
  * AGR002 - Receive Goods Receipt
75
75
  */
76
76
  aGR002Raw(requestParameters: AGR002Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseDTOGoodsReceiptDTO>>;
77
77
  /**
78
- * Receives the goods: each line creates a StockLot and increases on-hand (receiveNewLot), then puts away at its destination bin. Flips DRAFT -> RECEIVED / PUT_AWAY. Requires the PRO/PREMIUM lot-tracking entitlement (402 otherwise)
78
+ * Receives the goods and puts each line away at its destination bin. With the PRO/PREMIUM lot-tracking entitlement each line creates a StockLot and increases on-hand (receiveNewLot); without it each line increases on-hand as plain stock, and a line carrying a lot number, an expiry date or a condition other than AVAILABLE is refused (402). Flips DRAFT -> RECEIVED / PUT_AWAY.
79
79
  * AGR002 - Receive Goods Receipt
80
80
  */
81
81
  aGR002(requestParameters: AGR002Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseDTOGoodsReceiptDTO>;
@@ -138,7 +138,7 @@ class APIAGRGoodsReceiptApi extends runtime.BaseAPI {
138
138
  });
139
139
  }
140
140
  /**
141
- * Receives the goods: each line creates a StockLot and increases on-hand (receiveNewLot), then puts away at its destination bin. Flips DRAFT -> RECEIVED / PUT_AWAY. Requires the PRO/PREMIUM lot-tracking entitlement (402 otherwise)
141
+ * Receives the goods and puts each line away at its destination bin. With the PRO/PREMIUM lot-tracking entitlement each line creates a StockLot and increases on-hand (receiveNewLot); without it each line increases on-hand as plain stock, and a line carrying a lot number, an expiry date or a condition other than AVAILABLE is refused (402). Flips DRAFT -> RECEIVED / PUT_AWAY.
142
142
  * AGR002 - Receive Goods Receipt
143
143
  */
144
144
  aGR002Raw(requestParameters, initOverrides) {
@@ -149,7 +149,7 @@ class APIAGRGoodsReceiptApi extends runtime.BaseAPI {
149
149
  });
150
150
  }
151
151
  /**
152
- * Receives the goods: each line creates a StockLot and increases on-hand (receiveNewLot), then puts away at its destination bin. Flips DRAFT -> RECEIVED / PUT_AWAY. Requires the PRO/PREMIUM lot-tracking entitlement (402 otherwise)
152
+ * Receives the goods and puts each line away at its destination bin. With the PRO/PREMIUM lot-tracking entitlement each line creates a StockLot and increases on-hand (receiveNewLot); without it each line increases on-hand as plain stock, and a line carrying a lot number, an expiry date or a condition other than AVAILABLE is refused (402). Flips DRAFT -> RECEIVED / PUT_AWAY.
153
153
  * AGR002 - Receive Goods Receipt
154
154
  */
155
155
  aGR002(requestParameters, initOverrides) {
@@ -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
+ }