@integrahub/vergefy-client 0.27.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.
Files changed (119) 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/APIAIHDIntegrationHelpdeskApi.d.ts +86 -0
  5. package/dist/apis/APIAIHDIntegrationHelpdeskApi.js +232 -0
  6. package/dist/apis/APIAINIntegrationApi.d.ts +5 -0
  7. package/dist/apis/APIAINIntegrationApi.js +5 -0
  8. package/dist/apis/APIAPAPaymentApi.d.ts +29 -4
  9. package/dist/apis/APIAPAPaymentApi.js +76 -5
  10. package/dist/apis/APIARTReturnApi.d.ts +3 -2
  11. package/dist/apis/APIARTReturnApi.js +5 -2
  12. package/dist/apis/APIIntegrationConfigurationApi.d.ts +1 -0
  13. package/dist/apis/APIIntegrationConfigurationApi.js +1 -0
  14. package/dist/apis/index.d.ts +1 -0
  15. package/dist/apis/index.js +1 -0
  16. package/dist/esm/apis/AIIAMPPMPPPaymentApi.js +50 -46
  17. package/dist/esm/apis/APIAIHDIntegrationHelpdeskApi.js +228 -0
  18. package/dist/esm/apis/APIAINIntegrationApi.js +5 -0
  19. package/dist/esm/apis/APIAPAPaymentApi.js +76 -5
  20. package/dist/esm/apis/APIARTReturnApi.js +5 -2
  21. package/dist/esm/apis/APIIntegrationConfigurationApi.js +1 -0
  22. package/dist/esm/apis/index.js +1 -0
  23. package/dist/esm/ext/telemetry.js +1 -1
  24. package/dist/esm/models/AvailableProviderDTO.js +12 -0
  25. package/dist/esm/models/ChannelResult.js +1 -0
  26. package/dist/esm/models/ConnectorListingDTO.js +2 -0
  27. package/dist/esm/models/EdgeGatewayDTO.js +1 -0
  28. package/dist/esm/models/HelpdeskContactDTO.js +57 -0
  29. package/dist/esm/models/HelpdeskContextDTO.js +82 -0
  30. package/dist/esm/models/HelpdeskLookupKeyDTO.js +57 -0
  31. package/dist/esm/models/HelpdeskOrderDTO.js +76 -0
  32. package/dist/esm/models/HelpdeskOrderLineDTO.js +51 -0
  33. package/dist/esm/models/HelpdeskSidebarKeyDTO.js +67 -0
  34. package/dist/esm/models/HelpdeskSidebarKeyStateDTO.js +64 -0
  35. package/dist/esm/models/HostedCheckoutAddressDTO.js +49 -0
  36. package/dist/esm/models/HostedCheckoutBasketItemDTO.js +49 -0
  37. package/dist/esm/models/HostedCheckoutRequestDTO.js +71 -0
  38. package/dist/esm/models/HostedCheckoutResultDTO.js +45 -0
  39. package/dist/esm/models/ImportJobDTO.js +1 -0
  40. package/dist/esm/models/IntegrationConfigurationCreateDTO.js +2 -0
  41. package/dist/esm/models/IntegrationConfigurationDTO.js +2 -0
  42. package/dist/esm/models/IntegrationHealthSummaryDTO.js +2 -0
  43. package/dist/esm/models/InvoiceApiDTO.js +2 -1
  44. package/dist/esm/models/{MppPaymentSessionCreateApiDTO.js → MppChallengeOpenApiDTO.js} +18 -10
  45. package/dist/{models/MppPaymentSessionCreateApiDTO.js → esm/models/MppChallengePaymentApiDTO.js} +24 -17
  46. package/dist/esm/models/OrderReturnSummaryDTO.js +66 -0
  47. package/dist/esm/models/OrderShipmentSummaryDTO.js +68 -0
  48. package/dist/esm/models/PaymentConfigurationDTO.js +2 -1
  49. package/dist/esm/models/PrincipalDTO.js +2 -1
  50. package/dist/esm/models/ProviderHealthStatusDTO.js +1 -0
  51. package/dist/esm/models/ReturnRequestDTO.js +2 -0
  52. package/dist/esm/models/SocialConnectionRegisterDTO.js +1 -0
  53. package/dist/esm/models/SocialProviderCredentialReadinessDTO.js +1 -0
  54. package/dist/esm/models/index.js +15 -1
  55. package/dist/ext/telemetry.d.ts +1 -1
  56. package/dist/ext/telemetry.js +1 -1
  57. package/dist/models/AvailableProviderDTO.d.ts +17 -0
  58. package/dist/models/AvailableProviderDTO.js +13 -1
  59. package/dist/models/ChannelResult.d.ts +1 -0
  60. package/dist/models/ChannelResult.js +1 -0
  61. package/dist/models/ConnectorListingDTO.d.ts +2 -0
  62. package/dist/models/ConnectorListingDTO.js +2 -0
  63. package/dist/models/EdgeGatewayDTO.d.ts +1 -0
  64. package/dist/models/EdgeGatewayDTO.js +1 -0
  65. package/dist/models/HelpdeskContactDTO.d.ts +74 -0
  66. package/dist/models/HelpdeskContactDTO.js +64 -0
  67. package/dist/models/HelpdeskContextDTO.d.ts +87 -0
  68. package/dist/models/HelpdeskContextDTO.js +90 -0
  69. package/dist/models/HelpdeskLookupKeyDTO.d.ts +49 -0
  70. package/dist/models/HelpdeskLookupKeyDTO.js +65 -0
  71. package/dist/models/HelpdeskOrderDTO.d.ts +125 -0
  72. package/dist/models/HelpdeskOrderDTO.js +83 -0
  73. package/dist/models/HelpdeskOrderLineDTO.d.ts +56 -0
  74. package/dist/models/HelpdeskOrderLineDTO.js +58 -0
  75. package/dist/models/HelpdeskSidebarKeyDTO.d.ts +68 -0
  76. package/dist/models/HelpdeskSidebarKeyDTO.js +74 -0
  77. package/dist/models/HelpdeskSidebarKeyStateDTO.d.ts +72 -0
  78. package/dist/models/HelpdeskSidebarKeyStateDTO.js +72 -0
  79. package/dist/models/HostedCheckoutAddressDTO.d.ts +56 -0
  80. package/dist/models/HostedCheckoutAddressDTO.js +56 -0
  81. package/dist/models/HostedCheckoutBasketItemDTO.d.ts +56 -0
  82. package/dist/models/HostedCheckoutBasketItemDTO.js +56 -0
  83. package/dist/models/HostedCheckoutRequestDTO.d.ts +118 -0
  84. package/dist/models/HostedCheckoutRequestDTO.js +78 -0
  85. package/dist/models/{MppPaymentSessionCreateApiDTO.d.ts → HostedCheckoutResultDTO.d.ts} +18 -12
  86. package/dist/models/HostedCheckoutResultDTO.js +52 -0
  87. package/dist/models/ImportJobDTO.d.ts +1 -0
  88. package/dist/models/ImportJobDTO.js +1 -0
  89. package/dist/models/IntegrationConfigurationCreateDTO.d.ts +2 -0
  90. package/dist/models/IntegrationConfigurationCreateDTO.js +2 -0
  91. package/dist/models/IntegrationConfigurationDTO.d.ts +2 -0
  92. package/dist/models/IntegrationConfigurationDTO.js +2 -0
  93. package/dist/models/IntegrationHealthSummaryDTO.d.ts +2 -0
  94. package/dist/models/IntegrationHealthSummaryDTO.js +2 -0
  95. package/dist/models/InvoiceApiDTO.d.ts +1 -0
  96. package/dist/models/InvoiceApiDTO.js +2 -1
  97. package/dist/models/MppChallengeOpenApiDTO.d.ts +50 -0
  98. package/dist/models/MppChallengeOpenApiDTO.js +60 -0
  99. package/dist/models/MppChallengePaymentApiDTO.d.ts +56 -0
  100. package/dist/models/MppChallengePaymentApiDTO.js +66 -0
  101. package/dist/models/OrderReturnSummaryDTO.d.ts +78 -0
  102. package/dist/models/OrderReturnSummaryDTO.js +74 -0
  103. package/dist/models/OrderShipmentSummaryDTO.d.ts +92 -0
  104. package/dist/models/OrderShipmentSummaryDTO.js +76 -0
  105. package/dist/models/PaymentConfigurationDTO.d.ts +1 -0
  106. package/dist/models/PaymentConfigurationDTO.js +2 -1
  107. package/dist/models/PrincipalDTO.d.ts +1 -0
  108. package/dist/models/PrincipalDTO.js +2 -1
  109. package/dist/models/ProviderHealthStatusDTO.d.ts +1 -0
  110. package/dist/models/ProviderHealthStatusDTO.js +1 -0
  111. package/dist/models/ReturnRequestDTO.d.ts +6 -0
  112. package/dist/models/ReturnRequestDTO.js +2 -0
  113. package/dist/models/SocialConnectionRegisterDTO.d.ts +1 -0
  114. package/dist/models/SocialConnectionRegisterDTO.js +1 -0
  115. package/dist/models/SocialProviderCredentialReadinessDTO.d.ts +1 -0
  116. package/dist/models/SocialProviderCredentialReadinessDTO.js +1 -0
  117. package/dist/models/index.d.ts +15 -1
  118. package/dist/models/index.js +15 -1
  119. package/package.json +1 -1
@@ -21,23 +21,21 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { MppPaymentSessionCreateApiDTOToJSON, } from '../models/MppPaymentSessionCreateApiDTO';
24
+ import { MppChallengeOpenApiDTOToJSON, } from '../models/MppChallengeOpenApiDTO';
25
+ import { MppChallengePaymentApiDTOToJSON, } from '../models/MppChallengePaymentApiDTO';
25
26
  /**
26
27
  *
27
28
  */
28
29
  export class AIIAMPPMPPPaymentApi extends runtime.BaseAPI {
29
30
  /**
30
- * Creates request options for iAMPP001 without sending the request
31
+ * Creates request options for iAMPP003 without sending the request
31
32
  */
32
- iAMPP001RequestOpts(requestParameters) {
33
+ iAMPP003RequestOpts(requestParameters) {
33
34
  return __awaiter(this, void 0, void 0, function* () {
34
- if (requestParameters['token'] == null) {
35
- throw new runtime.RequiredError('token', 'Required parameter "token" was null or undefined when calling iAMPP001().');
35
+ if (requestParameters['receiptId'] == null) {
36
+ throw new runtime.RequiredError('receiptId', 'Required parameter "receiptId" was null or undefined when calling iAMPP003().');
36
37
  }
37
38
  const queryParameters = {};
38
- if (requestParameters['token'] != null) {
39
- queryParameters['token'] = requestParameters['token'];
40
- }
41
39
  const headerParameters = {};
42
40
  if (this.configuration && this.configuration.accessToken) {
43
41
  const token = this.configuration.accessToken;
@@ -46,7 +44,8 @@ export class AIIAMPPMPPPaymentApi extends runtime.BaseAPI {
46
44
  headerParameters["Authorization"] = `Bearer ${tokenString}`;
47
45
  }
48
46
  }
49
- let urlPath = `/pb/ai/protocols/acp/mpp/verify-spt`;
47
+ let urlPath = `/pb/ai/protocols/acp/mpp/receipts/{receiptId}`;
48
+ urlPath = urlPath.replace('{receiptId}', encodeURIComponent(String(requestParameters['receiptId'])));
50
49
  return {
51
50
  path: urlPath,
52
51
  method: 'GET',
@@ -56,33 +55,33 @@ export class AIIAMPPMPPPaymentApi extends runtime.BaseAPI {
56
55
  });
57
56
  }
58
57
  /**
59
- * Verifies a Stripe Shared Payment Token (SetupIntent) for MPP tool call authorization. Returns 200 + receiptId on success, 400 on invalid/replayed token.
60
- * IAMPP001 - Verify SPT token
58
+ * 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.
59
+ * IAMPP003 - Get MPP payment receipt
61
60
  */
62
- iAMPP001Raw(requestParameters, initOverrides) {
61
+ iAMPP003Raw(requestParameters, initOverrides) {
63
62
  return __awaiter(this, void 0, void 0, function* () {
64
- const requestOptions = yield this.iAMPP001RequestOpts(requestParameters);
63
+ const requestOptions = yield this.iAMPP003RequestOpts(requestParameters);
65
64
  const response = yield this.request(requestOptions, initOverrides);
66
65
  return new runtime.JSONApiResponse(response);
67
66
  });
68
67
  }
69
68
  /**
70
- * Verifies a Stripe Shared Payment Token (SetupIntent) for MPP tool call authorization. Returns 200 + receiptId on success, 400 on invalid/replayed token.
71
- * IAMPP001 - Verify SPT token
69
+ * 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.
70
+ * IAMPP003 - Get MPP payment receipt
72
71
  */
73
- iAMPP001(requestParameters, initOverrides) {
72
+ iAMPP003(requestParameters, initOverrides) {
74
73
  return __awaiter(this, void 0, void 0, function* () {
75
- const response = yield this.iAMPP001Raw(requestParameters, initOverrides);
74
+ const response = yield this.iAMPP003Raw(requestParameters, initOverrides);
76
75
  return yield response.value();
77
76
  });
78
77
  }
79
78
  /**
80
- * Creates request options for iAMPP002 without sending the request
79
+ * Creates request options for iAMPP004 without sending the request
81
80
  */
82
- iAMPP002RequestOpts(requestParameters) {
81
+ iAMPP004RequestOpts(requestParameters) {
83
82
  return __awaiter(this, void 0, void 0, function* () {
84
- if (requestParameters['mppPaymentSessionCreateApiDTO'] == null) {
85
- throw new runtime.RequiredError('mppPaymentSessionCreateApiDTO', 'Required parameter "mppPaymentSessionCreateApiDTO" was null or undefined when calling iAMPP002().');
83
+ if (requestParameters['mppChallengeOpenApiDTO'] == null) {
84
+ throw new runtime.RequiredError('mppChallengeOpenApiDTO', 'Required parameter "mppChallengeOpenApiDTO" was null or undefined when calling iAMPP004().');
86
85
  }
87
86
  const queryParameters = {};
88
87
  const headerParameters = {};
@@ -94,47 +93,51 @@ export class AIIAMPPMPPPaymentApi extends runtime.BaseAPI {
94
93
  headerParameters["Authorization"] = `Bearer ${tokenString}`;
95
94
  }
96
95
  }
97
- let urlPath = `/pb/ai/protocols/acp/mpp/payment-session`;
96
+ let urlPath = `/pb/ai/protocols/acp/mpp/challenges`;
98
97
  return {
99
98
  path: urlPath,
100
99
  method: 'POST',
101
100
  headers: headerParameters,
102
101
  query: queryParameters,
103
- body: MppPaymentSessionCreateApiDTOToJSON(requestParameters['mppPaymentSessionCreateApiDTO']),
102
+ body: MppChallengeOpenApiDTOToJSON(requestParameters['mppChallengeOpenApiDTO']),
104
103
  };
105
104
  });
106
105
  }
107
106
  /**
108
- * 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.
109
- * IAMPP002 - Create MPP payment session
107
+ * 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.
108
+ * IAMPP004 - Open an MPP payment challenge
110
109
  */
111
- iAMPP002Raw(requestParameters, initOverrides) {
110
+ iAMPP004Raw(requestParameters, initOverrides) {
112
111
  return __awaiter(this, void 0, void 0, function* () {
113
- const requestOptions = yield this.iAMPP002RequestOpts(requestParameters);
112
+ const requestOptions = yield this.iAMPP004RequestOpts(requestParameters);
114
113
  const response = yield this.request(requestOptions, initOverrides);
115
114
  return new runtime.JSONApiResponse(response);
116
115
  });
117
116
  }
118
117
  /**
119
- * 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.
120
- * IAMPP002 - Create MPP payment session
118
+ * 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.
119
+ * IAMPP004 - Open an MPP payment challenge
121
120
  */
122
- iAMPP002(requestParameters, initOverrides) {
121
+ iAMPP004(requestParameters, initOverrides) {
123
122
  return __awaiter(this, void 0, void 0, function* () {
124
- const response = yield this.iAMPP002Raw(requestParameters, initOverrides);
123
+ const response = yield this.iAMPP004Raw(requestParameters, initOverrides);
125
124
  return yield response.value();
126
125
  });
127
126
  }
128
127
  /**
129
- * Creates request options for iAMPP003 without sending the request
128
+ * Creates request options for iAMPP005 without sending the request
130
129
  */
131
- iAMPP003RequestOpts(requestParameters) {
130
+ iAMPP005RequestOpts(requestParameters) {
132
131
  return __awaiter(this, void 0, void 0, function* () {
133
- if (requestParameters['receiptId'] == null) {
134
- throw new runtime.RequiredError('receiptId', 'Required parameter "receiptId" was null or undefined when calling iAMPP003().');
132
+ if (requestParameters['challengeId'] == null) {
133
+ throw new runtime.RequiredError('challengeId', 'Required parameter "challengeId" was null or undefined when calling iAMPP005().');
134
+ }
135
+ if (requestParameters['mppChallengePaymentApiDTO'] == null) {
136
+ throw new runtime.RequiredError('mppChallengePaymentApiDTO', 'Required parameter "mppChallengePaymentApiDTO" was null or undefined when calling iAMPP005().');
135
137
  }
136
138
  const queryParameters = {};
137
139
  const headerParameters = {};
140
+ headerParameters['Content-Type'] = 'application/json';
138
141
  if (this.configuration && this.configuration.accessToken) {
139
142
  const token = this.configuration.accessToken;
140
143
  const tokenString = yield token("BearerAuth", []);
@@ -142,34 +145,35 @@ export class AIIAMPPMPPPaymentApi extends runtime.BaseAPI {
142
145
  headerParameters["Authorization"] = `Bearer ${tokenString}`;
143
146
  }
144
147
  }
145
- let urlPath = `/pb/ai/protocols/acp/mpp/receipts/{receiptId}`;
146
- urlPath = urlPath.replace('{receiptId}', encodeURIComponent(String(requestParameters['receiptId'])));
148
+ let urlPath = `/pb/ai/protocols/acp/mpp/challenges/{challengeId}/payment`;
149
+ urlPath = urlPath.replace('{challengeId}', encodeURIComponent(String(requestParameters['challengeId'])));
147
150
  return {
148
151
  path: urlPath,
149
- method: 'GET',
152
+ method: 'POST',
150
153
  headers: headerParameters,
151
154
  query: queryParameters,
155
+ body: MppChallengePaymentApiDTOToJSON(requestParameters['mppChallengePaymentApiDTO']),
152
156
  };
153
157
  });
154
158
  }
155
159
  /**
156
- * 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.
157
- * IAMPP003 - Get MPP payment receipt
160
+ * 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).
161
+ * IAMPP005 - Pay an MPP challenge with a Shared Payment Token
158
162
  */
159
- iAMPP003Raw(requestParameters, initOverrides) {
163
+ iAMPP005Raw(requestParameters, initOverrides) {
160
164
  return __awaiter(this, void 0, void 0, function* () {
161
- const requestOptions = yield this.iAMPP003RequestOpts(requestParameters);
165
+ const requestOptions = yield this.iAMPP005RequestOpts(requestParameters);
162
166
  const response = yield this.request(requestOptions, initOverrides);
163
167
  return new runtime.JSONApiResponse(response);
164
168
  });
165
169
  }
166
170
  /**
167
- * 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.
168
- * IAMPP003 - Get MPP payment receipt
171
+ * 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).
172
+ * IAMPP005 - Pay an MPP challenge with a Shared Payment Token
169
173
  */
170
- iAMPP003(requestParameters, initOverrides) {
174
+ iAMPP005(requestParameters, initOverrides) {
171
175
  return __awaiter(this, void 0, void 0, function* () {
172
- const response = yield this.iAMPP003Raw(requestParameters, initOverrides);
176
+ const response = yield this.iAMPP005Raw(requestParameters, initOverrides);
173
177
  return yield response.value();
174
178
  });
175
179
  }
@@ -0,0 +1,228 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Vergefy API
5
+ * <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>
6
+ *
7
+ * The version of the OpenAPI document: 2026-05-30
8
+ * Contact: support@integrahub.co
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import * as runtime from '../runtime';
24
+ import { HelpdeskContextDTOFromJSON, } from '../models/HelpdeskContextDTO';
25
+ import { HelpdeskSidebarKeyDTOFromJSON, } from '../models/HelpdeskSidebarKeyDTO';
26
+ import { HelpdeskSidebarKeyStateDTOFromJSON, } from '../models/HelpdeskSidebarKeyStateDTO';
27
+ /**
28
+ *
29
+ */
30
+ export class APIAIHDIntegrationHelpdeskApi extends runtime.BaseAPI {
31
+ /**
32
+ * Creates request options for aIHD001 without sending the request
33
+ */
34
+ aIHD001RequestOpts(requestParameters) {
35
+ return __awaiter(this, void 0, void 0, function* () {
36
+ if (requestParameters['xAppAccountId'] == null) {
37
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aIHD001().');
38
+ }
39
+ const queryParameters = {};
40
+ if (requestParameters['contactId'] != null) {
41
+ queryParameters['contactId'] = requestParameters['contactId'];
42
+ }
43
+ if (requestParameters['email'] != null) {
44
+ queryParameters['email'] = requestParameters['email'];
45
+ }
46
+ if (requestParameters['orderNumber'] != null) {
47
+ queryParameters['orderNumber'] = requestParameters['orderNumber'];
48
+ }
49
+ const headerParameters = {};
50
+ if (requestParameters['xHelpdeskAgentEmail'] != null) {
51
+ headerParameters['X-Helpdesk-Agent-Email'] = String(requestParameters['xHelpdeskAgentEmail']);
52
+ }
53
+ if (requestParameters['acceptLanguage'] != null) {
54
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
55
+ }
56
+ if (requestParameters['xAppAccountId'] != null) {
57
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
58
+ }
59
+ if (requestParameters['vergefyVersion'] != null) {
60
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
61
+ }
62
+ if (requestParameters['acceptTimezone'] != null) {
63
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
64
+ }
65
+ if (this.configuration && this.configuration.accessToken) {
66
+ const token = this.configuration.accessToken;
67
+ const tokenString = yield token("BearerAuth", []);
68
+ if (tokenString) {
69
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
70
+ }
71
+ }
72
+ let urlPath = `/api/integrations/helpdesk/context`;
73
+ return {
74
+ path: urlPath,
75
+ method: 'GET',
76
+ headers: headerParameters,
77
+ query: queryParameters,
78
+ };
79
+ });
80
+ }
81
+ /**
82
+ * 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.
83
+ * AIHD001 - Get Helpdesk Order Context
84
+ */
85
+ aIHD001Raw(requestParameters, initOverrides) {
86
+ return __awaiter(this, void 0, void 0, function* () {
87
+ const requestOptions = yield this.aIHD001RequestOpts(requestParameters);
88
+ const response = yield this.request(requestOptions, initOverrides);
89
+ return new runtime.JSONApiResponse(response, (jsonValue) => HelpdeskContextDTOFromJSON(jsonValue));
90
+ });
91
+ }
92
+ /**
93
+ * 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.
94
+ * AIHD001 - Get Helpdesk Order Context
95
+ */
96
+ aIHD001(requestParameters, initOverrides) {
97
+ return __awaiter(this, void 0, void 0, function* () {
98
+ const response = yield this.aIHD001Raw(requestParameters, initOverrides);
99
+ return yield response.value();
100
+ });
101
+ }
102
+ /**
103
+ * Creates request options for aIHD002 without sending the request
104
+ */
105
+ aIHD002RequestOpts(requestParameters) {
106
+ return __awaiter(this, void 0, void 0, function* () {
107
+ if (requestParameters['id'] == null) {
108
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling aIHD002().');
109
+ }
110
+ if (requestParameters['xAppAccountId'] == null) {
111
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aIHD002().');
112
+ }
113
+ const queryParameters = {};
114
+ const headerParameters = {};
115
+ if (requestParameters['acceptLanguage'] != null) {
116
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
117
+ }
118
+ if (requestParameters['xAppAccountId'] != null) {
119
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
120
+ }
121
+ if (requestParameters['vergefyVersion'] != null) {
122
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
123
+ }
124
+ if (requestParameters['acceptTimezone'] != null) {
125
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
126
+ }
127
+ if (this.configuration && this.configuration.accessToken) {
128
+ const token = this.configuration.accessToken;
129
+ const tokenString = yield token("BearerAuth", []);
130
+ if (tokenString) {
131
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
132
+ }
133
+ }
134
+ let urlPath = `/api/integrations/helpdesk/connections/{id}/sidebar-key`;
135
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
136
+ return {
137
+ path: urlPath,
138
+ method: 'GET',
139
+ headers: headerParameters,
140
+ query: queryParameters,
141
+ };
142
+ });
143
+ }
144
+ /**
145
+ * 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.
146
+ * AIHD002 - Get Helpdesk Sidebar Key Status
147
+ */
148
+ aIHD002Raw(requestParameters, initOverrides) {
149
+ return __awaiter(this, void 0, void 0, function* () {
150
+ const requestOptions = yield this.aIHD002RequestOpts(requestParameters);
151
+ const response = yield this.request(requestOptions, initOverrides);
152
+ return new runtime.JSONApiResponse(response, (jsonValue) => HelpdeskSidebarKeyStateDTOFromJSON(jsonValue));
153
+ });
154
+ }
155
+ /**
156
+ * 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.
157
+ * AIHD002 - Get Helpdesk Sidebar Key Status
158
+ */
159
+ aIHD002(requestParameters, initOverrides) {
160
+ return __awaiter(this, void 0, void 0, function* () {
161
+ const response = yield this.aIHD002Raw(requestParameters, initOverrides);
162
+ return yield response.value();
163
+ });
164
+ }
165
+ /**
166
+ * Creates request options for aIHD100 without sending the request
167
+ */
168
+ aIHD100RequestOpts(requestParameters) {
169
+ return __awaiter(this, void 0, void 0, function* () {
170
+ if (requestParameters['id'] == null) {
171
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling aIHD100().');
172
+ }
173
+ if (requestParameters['xAppAccountId'] == null) {
174
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aIHD100().');
175
+ }
176
+ const queryParameters = {};
177
+ const headerParameters = {};
178
+ if (requestParameters['acceptLanguage'] != null) {
179
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
180
+ }
181
+ if (requestParameters['xAppAccountId'] != null) {
182
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
183
+ }
184
+ if (requestParameters['vergefyVersion'] != null) {
185
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
186
+ }
187
+ if (requestParameters['acceptTimezone'] != null) {
188
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
189
+ }
190
+ if (this.configuration && this.configuration.accessToken) {
191
+ const token = this.configuration.accessToken;
192
+ const tokenString = yield token("BearerAuth", []);
193
+ if (tokenString) {
194
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
195
+ }
196
+ }
197
+ let urlPath = `/api/integrations/helpdesk/connections/{id}/sidebar-key`;
198
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
199
+ return {
200
+ path: urlPath,
201
+ method: 'POST',
202
+ headers: headerParameters,
203
+ query: queryParameters,
204
+ };
205
+ });
206
+ }
207
+ /**
208
+ * 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.
209
+ * AIHD100 - Issue Helpdesk Sidebar Key
210
+ */
211
+ aIHD100Raw(requestParameters, initOverrides) {
212
+ return __awaiter(this, void 0, void 0, function* () {
213
+ const requestOptions = yield this.aIHD100RequestOpts(requestParameters);
214
+ const response = yield this.request(requestOptions, initOverrides);
215
+ return new runtime.JSONApiResponse(response, (jsonValue) => HelpdeskSidebarKeyDTOFromJSON(jsonValue));
216
+ });
217
+ }
218
+ /**
219
+ * 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.
220
+ * AIHD100 - Issue Helpdesk Sidebar Key
221
+ */
222
+ aIHD100(requestParameters, initOverrides) {
223
+ return __awaiter(this, void 0, void 0, function* () {
224
+ const response = yield this.aIHD100Raw(requestParameters, initOverrides);
225
+ return yield response.value();
226
+ });
227
+ }
228
+ }
@@ -2039,6 +2039,7 @@ export const AIN103ProviderTypeEnum = {
2039
2039
  Aws: 'AWS',
2040
2040
  BambuCloud: 'BAMBU_CLOUD',
2041
2041
  EdgeAgent: 'EDGE_AGENT',
2042
+ Zendesk: 'ZENDESK',
2042
2043
  Custom: 'CUSTOM'
2043
2044
  };
2044
2045
  /**
@@ -2063,6 +2064,7 @@ export const AIN104CategoryTypeEnum = {
2063
2064
  Storage: 'STORAGE',
2064
2065
  Identity: 'IDENTITY',
2065
2066
  DeviceConnectivity: 'DEVICE_CONNECTIVITY',
2067
+ Helpdesk: 'HELPDESK',
2066
2068
  Custom: 'CUSTOM'
2067
2069
  };
2068
2070
  /**
@@ -2087,6 +2089,7 @@ export const AIN105CategoryTypeEnum = {
2087
2089
  Storage: 'STORAGE',
2088
2090
  Identity: 'IDENTITY',
2089
2091
  DeviceConnectivity: 'DEVICE_CONNECTIVITY',
2092
+ Helpdesk: 'HELPDESK',
2090
2093
  Custom: 'CUSTOM'
2091
2094
  };
2092
2095
  /**
@@ -2147,6 +2150,7 @@ export const AIN106ProviderTypeEnum = {
2147
2150
  Aws: 'AWS',
2148
2151
  BambuCloud: 'BAMBU_CLOUD',
2149
2152
  EdgeAgent: 'EDGE_AGENT',
2153
+ Zendesk: 'ZENDESK',
2150
2154
  Custom: 'CUSTOM'
2151
2155
  };
2152
2156
  /**
@@ -2171,6 +2175,7 @@ export const AIN106CategoryTypeEnum = {
2171
2175
  Storage: 'STORAGE',
2172
2176
  Identity: 'IDENTITY',
2173
2177
  DeviceConnectivity: 'DEVICE_CONNECTIVITY',
2178
+ Helpdesk: 'HELPDESK',
2174
2179
  Custom: 'CUSTOM'
2175
2180
  };
2176
2181
  /**
@@ -24,6 +24,8 @@ import * as runtime from '../runtime';
24
24
  import { DataResponseDTOPaymentConfigurationDTOFromJSON, } from '../models/DataResponseDTOPaymentConfigurationDTO';
25
25
  import { DataResponseDTOPaymentIntentDTOFromJSON, } from '../models/DataResponseDTOPaymentIntentDTO';
26
26
  import { DataResponseDTOPaymentMethodDTOFromJSON, } from '../models/DataResponseDTOPaymentMethodDTO';
27
+ import { HostedCheckoutRequestDTOToJSON, } from '../models/HostedCheckoutRequestDTO';
28
+ import { HostedCheckoutResultDTOFromJSON, } from '../models/HostedCheckoutResultDTO';
27
29
  import { PagePaymentConfigurationDTOFromJSON, } from '../models/PagePaymentConfigurationDTO';
28
30
  import { PagePaymentIntentDTOFromJSON, } from '../models/PagePaymentIntentDTO';
29
31
  import { PagePaymentMethodDTOFromJSON, } from '../models/PagePaymentMethodDTO';
@@ -140,7 +142,7 @@ export class APIAPAPaymentApi extends runtime.BaseAPI {
140
142
  });
141
143
  }
142
144
  /**
143
- * Captures a payment intent
145
+ * Captures a payment intent at its provider and records the provider\'s answer: paid, still settling, or declined. Read the intent (APA004) for its status.
144
146
  * APA002 - Capture Payment Intent
145
147
  */
146
148
  aPA002Raw(requestParameters, initOverrides) {
@@ -151,7 +153,7 @@ export class APIAPAPaymentApi extends runtime.BaseAPI {
151
153
  });
152
154
  }
153
155
  /**
154
- * Captures a payment intent
156
+ * Captures a payment intent at its provider and records the provider\'s answer: paid, still settling, or declined. Read the intent (APA004) for its status.
155
157
  * APA002 - Capture Payment Intent
156
158
  */
157
159
  aPA002(requestParameters, initOverrides) {
@@ -202,7 +204,7 @@ export class APIAPAPaymentApi extends runtime.BaseAPI {
202
204
  });
203
205
  }
204
206
  /**
205
- * Cancels a payment intent
207
+ * Cancels a payment intent at its provider and records the provider\'s answer. A paid intent stays paid. Read the intent (APA004) for its status.
206
208
  * APA003 - Cancel Payment Intent
207
209
  */
208
210
  aPA003Raw(requestParameters, initOverrides) {
@@ -213,7 +215,7 @@ export class APIAPAPaymentApi extends runtime.BaseAPI {
213
215
  });
214
216
  }
215
217
  /**
216
- * Cancels a payment intent
218
+ * Cancels a payment intent at its provider and records the provider\'s answer. A paid intent stays paid. Read the intent (APA004) for its status.
217
219
  * APA003 - Cancel Payment Intent
218
220
  */
219
221
  aPA003(requestParameters, initOverrides) {
@@ -1079,6 +1081,74 @@ export class APIAPAPaymentApi extends runtime.BaseAPI {
1079
1081
  return yield response.value();
1080
1082
  });
1081
1083
  }
1084
+ /**
1085
+ * Creates request options for aPA016 without sending the request
1086
+ */
1087
+ aPA016RequestOpts(requestParameters) {
1088
+ return __awaiter(this, void 0, void 0, function* () {
1089
+ if (requestParameters['paymentIntentId'] == null) {
1090
+ throw new runtime.RequiredError('paymentIntentId', 'Required parameter "paymentIntentId" was null or undefined when calling aPA016().');
1091
+ }
1092
+ if (requestParameters['xAppAccountId'] == null) {
1093
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aPA016().');
1094
+ }
1095
+ if (requestParameters['hostedCheckoutRequestDTO'] == null) {
1096
+ throw new runtime.RequiredError('hostedCheckoutRequestDTO', 'Required parameter "hostedCheckoutRequestDTO" was null or undefined when calling aPA016().');
1097
+ }
1098
+ const queryParameters = {};
1099
+ const headerParameters = {};
1100
+ headerParameters['Content-Type'] = 'application/json';
1101
+ if (requestParameters['acceptLanguage'] != null) {
1102
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
1103
+ }
1104
+ if (requestParameters['xAppAccountId'] != null) {
1105
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
1106
+ }
1107
+ if (requestParameters['vergefyVersion'] != null) {
1108
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
1109
+ }
1110
+ if (requestParameters['acceptTimezone'] != null) {
1111
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
1112
+ }
1113
+ if (this.configuration && this.configuration.accessToken) {
1114
+ const token = this.configuration.accessToken;
1115
+ const tokenString = yield token("BearerAuth", []);
1116
+ if (tokenString) {
1117
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1118
+ }
1119
+ }
1120
+ let urlPath = `/api/payments/intents/{paymentIntentId}/hosted-checkout`;
1121
+ urlPath = urlPath.replace('{paymentIntentId}', encodeURIComponent(String(requestParameters['paymentIntentId'])));
1122
+ return {
1123
+ path: urlPath,
1124
+ method: 'POST',
1125
+ headers: headerParameters,
1126
+ query: queryParameters,
1127
+ body: HostedCheckoutRequestDTOToJSON(requestParameters['hostedCheckoutRequestDTO']),
1128
+ };
1129
+ });
1130
+ }
1131
+ /**
1132
+ * Creates an Iyzico hosted checkout form for a payment intent and returns its payment page URL
1133
+ * APA016 - Create Hosted Checkout
1134
+ */
1135
+ aPA016Raw(requestParameters, initOverrides) {
1136
+ return __awaiter(this, void 0, void 0, function* () {
1137
+ const requestOptions = yield this.aPA016RequestOpts(requestParameters);
1138
+ const response = yield this.request(requestOptions, initOverrides);
1139
+ return new runtime.JSONApiResponse(response, (jsonValue) => HostedCheckoutResultDTOFromJSON(jsonValue));
1140
+ });
1141
+ }
1142
+ /**
1143
+ * Creates an Iyzico hosted checkout form for a payment intent and returns its payment page URL
1144
+ * APA016 - Create Hosted Checkout
1145
+ */
1146
+ aPA016(requestParameters, initOverrides) {
1147
+ return __awaiter(this, void 0, void 0, function* () {
1148
+ const response = yield this.aPA016Raw(requestParameters, initOverrides);
1149
+ return yield response.value();
1150
+ });
1151
+ }
1082
1152
  }
1083
1153
  /**
1084
1154
  * @export
@@ -1116,5 +1186,6 @@ export const APA010EntityStatusesEnum = {
1116
1186
  */
1117
1187
  export const APA015ProviderTypeEnum = {
1118
1188
  Custom: 'CUSTOM',
1119
- Stripe: 'STRIPE'
1189
+ Stripe: 'STRIPE',
1190
+ Iyzico: 'IYZICO'
1120
1191
  };
@@ -43,6 +43,9 @@ export class APIARTReturnApi extends runtime.BaseAPI {
43
43
  const queryParameters = {};
44
44
  const headerParameters = {};
45
45
  headerParameters['Content-Type'] = 'application/json';
46
+ if (requestParameters['idempotencyKey'] != null) {
47
+ headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
48
+ }
46
49
  if (requestParameters['acceptLanguage'] != null) {
47
50
  headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
48
51
  }
@@ -73,7 +76,7 @@ export class APIARTReturnApi extends runtime.BaseAPI {
73
76
  });
74
77
  }
75
78
  /**
76
- * Submit a new RMA (Return Merchandise Authorization) request for a purchase order
79
+ * Submit a new RMA (Return Merchandise Authorization) request for a purchase order. Send the optional Idempotency-Key header to make the call safe to retry: the first call creates the return (201); a retry with the same key and the same body returns that original return (200) instead of creating a second one; the same key with a different body is refused (422). Keys are scoped to the tenant. The optional sourceReference records where the return was opened from, e.g. zendesk:<subdomain>:<ticketId>.
77
80
  * ART001 - Create return request
78
81
  */
79
82
  aRT001Raw(requestParameters, initOverrides) {
@@ -84,7 +87,7 @@ export class APIARTReturnApi extends runtime.BaseAPI {
84
87
  });
85
88
  }
86
89
  /**
87
- * Submit a new RMA (Return Merchandise Authorization) request for a purchase order
90
+ * Submit a new RMA (Return Merchandise Authorization) request for a purchase order. Send the optional Idempotency-Key header to make the call safe to retry: the first call creates the return (201); a retry with the same key and the same body returns that original return (200) instead of creating a second one; the same key with a different body is refused (422). Keys are scoped to the tenant. The optional sourceReference records where the return was opened from, e.g. zendesk:<subdomain>:<ticketId>.
88
91
  * ART001 - Create return request
89
92
  */
90
93
  aRT001(requestParameters, initOverrides) {
@@ -171,5 +171,6 @@ export const AIN150CategoryEnum = {
171
171
  Storage: 'STORAGE',
172
172
  Identity: 'IDENTITY',
173
173
  DeviceConnectivity: 'DEVICE_CONNECTIVITY',
174
+ Helpdesk: 'HELPDESK',
174
175
  Custom: 'CUSTOM'
175
176
  };
@@ -90,6 +90,7 @@ export * from './APIAFTFilterApi';
90
90
  export * from './APIAGMGamificationApi';
91
91
  export * from './APIAGRGoodsReceiptApi';
92
92
  export * from './APIAIADIntegrationAdvertisingApi';
93
+ export * from './APIAIHDIntegrationHelpdeskApi';
93
94
  export * from './APIAIMIntegrationMarketDataApi';
94
95
  export * from './APIAINIntegrationApi';
95
96
  export * from './APIAINIntegrationAmazonApi';