@cobo/cobo-waas2 1.27.0 → 1.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 (251) hide show
  1. package/README.md +96 -7
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/api/AddressBooksApi.js +2 -2
  4. package/dist/api/AutoSweepApi.js +4 -4
  5. package/dist/api/ComplianceApi.js +144 -4
  6. package/dist/api/FeeStationApi.js +2 -2
  7. package/dist/api/OAuthApi.js +4 -4
  8. package/dist/api/PaymentApi.js +1453 -123
  9. package/dist/api/StakingsApi.js +44 -2
  10. package/dist/api/SwapsApi.js +2 -2
  11. package/dist/api/TransactionsApi.js +10 -10
  12. package/dist/api/WalletsApi.js +14 -14
  13. package/dist/index.js +399 -0
  14. package/dist/model/AddressRiskLevel.js +71 -0
  15. package/dist/model/AddressesEventData.js +13 -3
  16. package/dist/model/AllocationRecord.js +196 -0
  17. package/dist/model/AllocationRequest.js +170 -0
  18. package/dist/model/BabylonCreateStakingExpansion.js +157 -0
  19. package/dist/model/BabylonStakeExtra.js +26 -0
  20. package/dist/model/BabylonStakingRegistration.js +1 -1
  21. package/dist/model/BalanceUpdateInfoEventData.js +13 -3
  22. package/dist/model/BatchAllocation.js +190 -0
  23. package/dist/model/BatchAllocationDetail.js +188 -0
  24. package/dist/model/ChainsEventData.js +13 -3
  25. package/dist/model/CommissionFee.js +2 -2
  26. package/dist/model/ComplianceDispositionUpdateEventData.js +13 -3
  27. package/dist/model/ComplianceKyaScreeningsUpdateEventData.js +341 -0
  28. package/dist/model/ComplianceKytScreeningsUpdateEventData.js +13 -3
  29. package/dist/model/ContractCallDestination.js +42 -8
  30. package/dist/model/ContractCallDestinationType.js +5 -0
  31. package/dist/model/ContractCallParams.js +2 -2
  32. package/dist/model/CosmosContractCallDestination.js +0 -13
  33. package/dist/model/CounterpartyWalletAddressDetail.js +2 -2
  34. package/dist/model/CreateBatchAllocationRequest.js +142 -0
  35. package/dist/model/CreateCounterpartyEntry201Response.js +143 -0
  36. package/dist/model/CreateCounterpartyEntryRequest.js +141 -0
  37. package/dist/model/CreateCustodialWalletParams.js +1 -1
  38. package/dist/model/CreateDestinationEntry201Response.js +172 -0
  39. package/dist/model/CreateDestinationEntryRequest.js +172 -0
  40. package/dist/model/CreateExchangeWalletParams.js +2 -2
  41. package/dist/model/CreateKyaScreeningsBody.js +129 -0
  42. package/dist/model/CreateMerchantRequest.js +1 -1
  43. package/dist/model/CreateMpcWalletParams.js +2 -2
  44. package/dist/model/CreatePaymentOrderRequest.js +115 -68
  45. package/dist/model/CreatePayoutRequest.js +192 -0
  46. package/dist/model/CreateRefundRequest.js +3 -3
  47. package/dist/model/CreateReportRequest.js +156 -0
  48. package/dist/model/CreateSafeWalletParams.js +1 -1
  49. package/dist/model/CreateSettlement.js +1 -1
  50. package/dist/model/CreateSettlementRequestRequest.js +1 -1
  51. package/dist/model/CreateSmartContractWalletParams.js +1 -1
  52. package/dist/model/CreateStakeActivityExtra.js +12 -0
  53. package/dist/model/CreateWalletAddress.js +2 -2
  54. package/dist/model/CreateWalletParams.js +1 -1
  55. package/dist/model/DeleteCounterpartyById200Response.js +110 -0
  56. package/dist/model/DeleteCounterpartyEntry200Response.js +110 -0
  57. package/dist/model/DeleteDestinationById200Response.js +110 -0
  58. package/dist/model/DeleteDestinationEntry200Response.js +110 -0
  59. package/dist/model/EntryType.js +61 -0
  60. package/dist/model/GetCounterpartyEntry200Response.js +90 -0
  61. package/dist/model/GetDestinationEntry200Response.js +106 -0
  62. package/dist/model/GetExchangeRate200Response.js +2 -2
  63. package/dist/model/GetReports200Response.js +123 -0
  64. package/dist/model/KyaRiskAssessment.js +151 -0
  65. package/dist/model/KyaRiskDetail.js +126 -0
  66. package/dist/model/KyaRiskLevel.js +66 -0
  67. package/dist/model/KyaScreeningRequest.js +154 -0
  68. package/dist/model/KyaScreeningResult.js +222 -0
  69. package/dist/model/KyaScreeningResultRiskAssessment.js +171 -0
  70. package/dist/model/KyaScreeningStatus.js +71 -0
  71. package/dist/model/KyaScreeningsEventData.js +174 -0
  72. package/dist/model/LinkDisplayInfo.js +13 -0
  73. package/dist/model/ListAllocations200Response.js +123 -0
  74. package/dist/model/ListBatchAllocations200Response.js +123 -0
  75. package/dist/model/ListCounterpartyEntries200Response.js +123 -0
  76. package/dist/model/ListDestinationEntries200Response.js +153 -0
  77. package/dist/model/ListKyaScreenings200Response.js +145 -0
  78. package/dist/model/ListPayoutItems200Response.js +123 -0
  79. package/dist/model/ListPayouts200Response.js +123 -0
  80. package/dist/model/MPCVaultEventData.js +13 -3
  81. package/dist/model/MerchantBalance.js +28 -2
  82. package/dist/model/Order.js +135 -102
  83. package/dist/model/OrderLinkBusinessInfo.js +150 -86
  84. package/dist/model/OrderLinkBusinessInfoCustomExchangeRatesInner.js +2 -4
  85. package/dist/model/OrderLinkBusinessInfoPayableAmountsInner.js +125 -0
  86. package/dist/model/PaymentAddressUpdateEventData.js +13 -3
  87. package/dist/model/PaymentAllocationAmount.js +125 -0
  88. package/dist/model/PaymentOrderEventData.js +205 -147
  89. package/dist/model/PaymentPayout.js +250 -0
  90. package/dist/model/PaymentPayoutDetail.js +248 -0
  91. package/dist/model/PaymentPayoutEvent.js +438 -0
  92. package/dist/model/PaymentPayoutItem.js +299 -0
  93. package/dist/model/PaymentPayoutItemDetail.js +299 -0
  94. package/dist/model/PaymentPayoutItemStatus.js +76 -0
  95. package/dist/model/PaymentPayoutParam.js +166 -0
  96. package/dist/model/PaymentPayoutStatus.js +81 -0
  97. package/dist/model/PaymentRefundEventData.js +13 -3
  98. package/dist/model/PaymentSettlementEvent.js +13 -3
  99. package/dist/model/PaymentSourceType.js +61 -0
  100. package/dist/model/PaymentTransactionEventData.js +13 -3
  101. package/dist/model/PspBalance.js +28 -2
  102. package/dist/model/RefundLinkBusinessInfo.js +1 -1
  103. package/dist/model/Report.js +209 -0
  104. package/dist/model/ReportExportFormat.js +66 -0
  105. package/dist/model/ReportStatus.js +61 -0
  106. package/dist/model/ReportType.js +121 -0
  107. package/dist/model/Stakings.js +33 -6
  108. package/dist/model/SuspendedTokenEventData.js +13 -3
  109. package/dist/model/SwapActivity.js +1 -1
  110. package/dist/model/SwapActivityDetail.js +2 -2
  111. package/dist/model/SwapActivityTimeline.js +1 -1
  112. package/dist/model/TSSRequestWebhookEventData.js +13 -3
  113. package/dist/model/TokenListingEventData.js +13 -3
  114. package/dist/model/TokensEventData.js +13 -3
  115. package/dist/model/TransactionCosmosContractDestination.js +0 -13
  116. package/dist/model/TransactionWebhookEventData.js +13 -3
  117. package/dist/model/TransferParams.js +2 -2
  118. package/dist/model/UpdateCounterpartyRequest.js +160 -0
  119. package/dist/model/UpdateDestinationEntry200Response.js +90 -0
  120. package/dist/model/UpdateDestinationEntryRequest.js +135 -0
  121. package/dist/model/UpdateDestinationRequest.js +173 -0
  122. package/dist/model/UpdateMerchantByIdRequest.js +1 -1
  123. package/dist/model/WalletAddress.js +20 -2
  124. package/dist/model/WalletInfoEventData.js +13 -3
  125. package/dist/model/WebhookEventData.js +145 -47
  126. package/dist/model/WebhookEventDataType.js +12 -2
  127. package/dist/model/WebhookEventType.js +15 -0
  128. package/docs/AddressBooksApi.md +1 -1
  129. package/docs/AddressRiskLevel.md +16 -0
  130. package/docs/AddressesEventData.md +5 -1
  131. package/docs/AllocationRecord.md +15 -0
  132. package/docs/AllocationRequest.md +13 -0
  133. package/docs/AutoSweepApi.md +2 -2
  134. package/docs/BabylonCreateStakingExpansion.md +12 -0
  135. package/docs/BabylonStakeExtra.md +2 -0
  136. package/docs/BalanceUpdateInfoEventData.md +5 -1
  137. package/docs/BatchAllocation.md +14 -0
  138. package/docs/BatchAllocationDetail.md +14 -0
  139. package/docs/ChainsEventData.md +5 -1
  140. package/docs/CommissionFee.md +1 -1
  141. package/docs/ComplianceApi.md +163 -0
  142. package/docs/ComplianceDispositionUpdateEventData.md +5 -1
  143. package/docs/ComplianceKyaScreeningsUpdateEventData.md +62 -0
  144. package/docs/ComplianceKytScreeningsUpdateEventData.md +5 -1
  145. package/docs/ContractCallDestination.md +1 -0
  146. package/docs/ContractCallDestinationType.md +2 -0
  147. package/docs/ContractCallParams.md +1 -1
  148. package/docs/CosmosContractCallDestination.md +0 -1
  149. package/docs/CounterpartyWalletAddressDetail.md +1 -1
  150. package/docs/CreateBatchAllocationRequest.md +10 -0
  151. package/docs/CreateCounterpartyEntry201Response.md +10 -0
  152. package/docs/CreateCounterpartyEntryRequest.md +10 -0
  153. package/docs/CreateCustodialWalletParams.md +1 -1
  154. package/docs/CreateDestinationEntry201Response.md +11 -0
  155. package/docs/CreateDestinationEntryRequest.md +11 -0
  156. package/docs/CreateExchangeWalletParams.md +1 -1
  157. package/docs/CreateKyaScreeningsBody.md +9 -0
  158. package/docs/CreateMerchantRequest.md +1 -1
  159. package/docs/CreateMpcWalletParams.md +1 -1
  160. package/docs/CreatePaymentOrderRequest.md +15 -11
  161. package/docs/CreatePayoutRequest.md +14 -0
  162. package/docs/CreateRefundRequest.md +3 -3
  163. package/docs/CreateReportRequest.md +13 -0
  164. package/docs/CreateSafeWalletParams.md +1 -1
  165. package/docs/CreateSettlement.md +1 -1
  166. package/docs/CreateSettlementRequestRequest.md +1 -1
  167. package/docs/CreateSmartContractWalletParams.md +1 -1
  168. package/docs/CreateStakeActivityExtra.md +2 -0
  169. package/docs/CreateWalletAddress.md +1 -1
  170. package/docs/CreateWalletParams.md +1 -1
  171. package/docs/DeleteCounterpartyById200Response.md +9 -0
  172. package/docs/DeleteCounterpartyEntry200Response.md +9 -0
  173. package/docs/DeleteDestinationById200Response.md +9 -0
  174. package/docs/DeleteDestinationEntry200Response.md +9 -0
  175. package/docs/EntryType.md +12 -0
  176. package/docs/FeeStationApi.md +1 -1
  177. package/docs/GetCounterpartyEntry200Response.md +9 -0
  178. package/docs/GetDestinationEntry200Response.md +10 -0
  179. package/docs/GetExchangeRate200Response.md +1 -1
  180. package/docs/GetReports200Response.md +10 -0
  181. package/docs/KyaRiskAssessment.md +11 -0
  182. package/docs/KyaRiskDetail.md +10 -0
  183. package/docs/KyaRiskLevel.md +14 -0
  184. package/docs/KyaScreeningRequest.md +12 -0
  185. package/docs/KyaScreeningResult.md +17 -0
  186. package/docs/KyaScreeningResultRiskAssessment.md +11 -0
  187. package/docs/KyaScreeningStatus.md +16 -0
  188. package/docs/KyaScreeningsEventData.md +14 -0
  189. package/docs/LinkDisplayInfo.md +1 -0
  190. package/docs/ListAllocations200Response.md +10 -0
  191. package/docs/ListBatchAllocations200Response.md +10 -0
  192. package/docs/ListCounterpartyEntries200Response.md +10 -0
  193. package/docs/ListDestinationEntries200Response.md +11 -0
  194. package/docs/ListKyaScreenings200Response.md +10 -0
  195. package/docs/ListPayoutItems200Response.md +10 -0
  196. package/docs/ListPayouts200Response.md +10 -0
  197. package/docs/MPCVaultEventData.md +5 -1
  198. package/docs/MerchantBalance.md +4 -2
  199. package/docs/OAuthApi.md +2 -2
  200. package/docs/Order.md +16 -13
  201. package/docs/OrderLinkBusinessInfo.md +11 -7
  202. package/docs/OrderLinkBusinessInfoCustomExchangeRatesInner.md +2 -2
  203. package/docs/OrderLinkBusinessInfoPayableAmountsInner.md +10 -0
  204. package/docs/PaymentAddressUpdateEventData.md +5 -1
  205. package/docs/PaymentAllocationAmount.md +10 -0
  206. package/docs/PaymentApi.md +1737 -287
  207. package/docs/PaymentOrderEventData.md +21 -14
  208. package/docs/PaymentPayout.md +19 -0
  209. package/docs/PaymentPayoutDetail.md +19 -0
  210. package/docs/PaymentPayoutEvent.md +67 -0
  211. package/docs/PaymentPayoutItem.md +22 -0
  212. package/docs/PaymentPayoutItemDetail.md +22 -0
  213. package/docs/PaymentPayoutItemStatus.md +18 -0
  214. package/docs/PaymentPayoutParam.md +13 -0
  215. package/docs/PaymentPayoutStatus.md +20 -0
  216. package/docs/PaymentRefundEventData.md +5 -1
  217. package/docs/PaymentSettlementEvent.md +5 -1
  218. package/docs/PaymentSourceType.md +12 -0
  219. package/docs/PaymentTransactionEventData.md +5 -1
  220. package/docs/PspBalance.md +4 -2
  221. package/docs/RefundLinkBusinessInfo.md +1 -1
  222. package/docs/Report.md +17 -0
  223. package/docs/ReportExportFormat.md +14 -0
  224. package/docs/ReportStatus.md +12 -0
  225. package/docs/ReportType.md +36 -0
  226. package/docs/Stakings.md +2 -1
  227. package/docs/StakingsApi.md +54 -1
  228. package/docs/SuspendedTokenEventData.md +5 -1
  229. package/docs/SwapActivity.md +1 -1
  230. package/docs/SwapActivityDetail.md +1 -1
  231. package/docs/SwapActivityTimeline.md +1 -1
  232. package/docs/SwapsApi.md +1 -1
  233. package/docs/TSSRequestWebhookEventData.md +5 -1
  234. package/docs/TokenListingEventData.md +5 -1
  235. package/docs/TokensEventData.md +5 -1
  236. package/docs/TransactionCosmosContractDestination.md +0 -1
  237. package/docs/TransactionWebhookEventData.md +5 -1
  238. package/docs/TransactionsApi.md +5 -5
  239. package/docs/TransferParams.md +1 -1
  240. package/docs/UpdateCounterpartyRequest.md +13 -0
  241. package/docs/UpdateDestinationEntry200Response.md +9 -0
  242. package/docs/UpdateDestinationEntryRequest.md +11 -0
  243. package/docs/UpdateDestinationRequest.md +14 -0
  244. package/docs/UpdateMerchantByIdRequest.md +1 -1
  245. package/docs/WalletAddress.md +3 -1
  246. package/docs/WalletInfoEventData.md +5 -1
  247. package/docs/WalletsApi.md +7 -7
  248. package/docs/WebhookEventData.md +27 -16
  249. package/docs/WebhookEventDataType.md +5 -1
  250. package/docs/WebhookEventType.md +6 -0
  251. package/package.json +1 -1
@@ -5,11 +5,14 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _CreateKyaScreeningsBody = _interopRequireDefault(require("../model/CreateKyaScreeningsBody"));
8
9
  var _DispositionQueryResponse = _interopRequireDefault(require("../model/DispositionQueryResponse"));
9
10
  var _DispositionResponse = _interopRequireDefault(require("../model/DispositionResponse"));
10
11
  var _ErrorResponse = _interopRequireDefault(require("../model/ErrorResponse"));
11
12
  var _IsolateDisposition = _interopRequireDefault(require("../model/IsolateDisposition"));
13
+ var _KyaScreeningResult = _interopRequireDefault(require("../model/KyaScreeningResult"));
12
14
  var _KytScreeningsTransaction = _interopRequireDefault(require("../model/KytScreeningsTransaction"));
15
+ var _ListKyaScreenings200Response = _interopRequireDefault(require("../model/ListKyaScreenings200Response"));
13
16
  var _RefundDisposition = _interopRequireDefault(require("../model/RefundDisposition"));
14
17
  var _SubmitKytResponse = _interopRequireDefault(require("../model/SubmitKytResponse"));
15
18
  var _SubmitKytScreeningsDecisionsBody = _interopRequireDefault(require("../model/SubmitKytScreeningsDecisionsBody"));
@@ -49,12 +52,53 @@ var ComplianceApi = exports["default"] = /*#__PURE__*/function () {
49
52
  }
50
53
 
51
54
  /**
52
- * Get disposition status
53
- * This operation retrieves the current status of a disposition request for a specific transaction. You can use this endpoint to check the status of any disposition operation (Refund, Isolate, or Unfreeze) that has been initiated for a transaction. The response includes the disposition type, current status, and the disposition transaction ID if applicable. <Note>Use this endpoint to monitor the progress of disposition operations and verify their completion.</Note>
54
- * @param {String} transaction_id The unique identifier (UUID) of the transaction to retrieve KYT screening status information for.
55
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DispositionQueryResponse} and HTTP response
55
+ * Create KYA address screening requests
56
+ * This operation submits up to 50 address screening requests in one request to assess address compliance and risk levels. <Note>This endpoint supports cross-chain address screening with independent idempotency for each address, enabling flexible error handling and partial retries.</Note>
57
+ * @param {Object} opts Optional parameters
58
+ * @param {module:model/CreateKyaScreeningsBody} [CreateKyaScreeningsBody] The request body to create KYA address screening requests.
59
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/KyaScreeningResult>} and HTTP response
56
60
  */
57
61
  return _createClass(ComplianceApi, [{
62
+ key: "createKyaScreeningsWithHttpInfo",
63
+ value: function createKyaScreeningsWithHttpInfo(opts) {
64
+ opts = opts || {};
65
+ var postBody = opts['CreateKyaScreeningsBody'];
66
+ if (postBody && postBody.toJSON) {
67
+ postBody = postBody.toJSON();
68
+ }
69
+ var pathParams = {};
70
+ var queryParams = {};
71
+ var headerParams = {};
72
+ var formParams = {};
73
+ var authNames = ['OAuth2', 'CoboAuth'];
74
+ var contentTypes = ['application/json'];
75
+ var accepts = ['application/json'];
76
+ var returnType = [_KyaScreeningResult["default"]];
77
+ return this.apiClient.callApi('/compliance/kya/screenings', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
78
+ }
79
+
80
+ /**
81
+ * Create KYA address screening requests
82
+ * This operation submits up to 50 address screening requests in one request to assess address compliance and risk levels. <Note>This endpoint supports cross-chain address screening with independent idempotency for each address, enabling flexible error handling and partial retries.</Note>
83
+ * @param {Object} opts Optional parameters
84
+ * @param {module:model/CreateKyaScreeningsBody} opts.CreateKyaScreeningsBody The request body to create KYA address screening requests.
85
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/KyaScreeningResult>}
86
+ */
87
+ }, {
88
+ key: "createKyaScreenings",
89
+ value: function createKyaScreenings(opts) {
90
+ return this.createKyaScreeningsWithHttpInfo(opts).then(function (response_and_data) {
91
+ return response_and_data.data;
92
+ });
93
+ }
94
+
95
+ /**
96
+ * Get disposition status
97
+ * This operation retrieves the current status of a disposition request for a specific transaction. You can use this endpoint to check the status of any disposition operation (Refund, Isolate, or Unfreeze) that has been initiated for a transaction. The response includes the disposition type, current status, and the disposition transaction ID if applicable. <Note>Use this endpoint to monitor the progress of disposition operations and verify their completion.</Note>
98
+ * @param {String} transaction_id The unique identifier (UUID) of the transaction to retrieve KYT screening status information for.
99
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DispositionQueryResponse} and HTTP response
100
+ */
101
+ }, {
58
102
  key: "getDispositionStatusWithHttpInfo",
59
103
  value: function getDispositionStatusWithHttpInfo(transaction_id) {
60
104
  var postBody = null;
@@ -92,6 +136,50 @@ var ComplianceApi = exports["default"] = /*#__PURE__*/function () {
92
136
  });
93
137
  }
94
138
 
139
+ /**
140
+ * Get KYA address screening result
141
+ * This operation retrieves a specific address screening result by `screening_id`, including risk assessment information. <Info>This endpoint returns the full screening details including risk level, summary, and detailed risk category exposures.</Info>
142
+ * @param {String} screening_id The unique identifier (UUID) of the address screening request.
143
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/KyaScreeningResult} and HTTP response
144
+ */
145
+ }, {
146
+ key: "getKyaScreeningWithHttpInfo",
147
+ value: function getKyaScreeningWithHttpInfo(screening_id) {
148
+ var postBody = null;
149
+ if (postBody && postBody.toJSON) {
150
+ postBody = postBody.toJSON();
151
+ }
152
+ // verify the required parameter 'screening_id' is set
153
+ if (screening_id === undefined || screening_id === null) {
154
+ throw new Error("Missing the required parameter 'screening_id' when calling getKyaScreening");
155
+ }
156
+ var pathParams = {
157
+ 'screening_id': screening_id
158
+ };
159
+ var queryParams = {};
160
+ var headerParams = {};
161
+ var formParams = {};
162
+ var authNames = ['OAuth2', 'CoboAuth'];
163
+ var contentTypes = [];
164
+ var accepts = ['application/json'];
165
+ var returnType = _KyaScreeningResult["default"];
166
+ return this.apiClient.callApi('/compliance/kya/screenings/{screening_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
167
+ }
168
+
169
+ /**
170
+ * Get KYA address screening result
171
+ * This operation retrieves a specific address screening result by `screening_id`, including risk assessment information. <Info>This endpoint returns the full screening details including risk level, summary, and detailed risk category exposures.</Info>
172
+ * @param {String} screening_id The unique identifier (UUID) of the address screening request.
173
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/KyaScreeningResult}
174
+ */
175
+ }, {
176
+ key: "getKyaScreening",
177
+ value: function getKyaScreening(screening_id) {
178
+ return this.getKyaScreeningWithHttpInfo(screening_id).then(function (response_and_data) {
179
+ return response_and_data.data;
180
+ });
181
+ }
182
+
95
183
  /**
96
184
  * Get KYT screening status
97
185
  * This operation retrieves the current KYT (Know Your Transaction) screening status, including review status and fund disposition status, for a specific transaction. Use this endpoint to monitor the real-time screening progress for transactions processed through the KYT compliance system. <Note>This endpoint provides comprehensive compliance monitoring capabilities to help maintain AML (Anti-Money Laundering) regulatory compliance and audit trail requirements.</Note>
@@ -177,6 +265,58 @@ var ComplianceApi = exports["default"] = /*#__PURE__*/function () {
177
265
  });
178
266
  }
179
267
 
268
+ /**
269
+ * List KYA address screening results
270
+ * This operation retrieves the results of specified screening requests with pagination support. You can filter specific screening requests using screening_ids (up to 50 IDs). <Note>For larger result sets (exceeding 50 screening results), use pagination parameters (limit, before, after) to page through results.</Note>
271
+ * @param {Object} opts Optional parameters
272
+ * @param {String} [screening_ids] A comma-separated list of screening request IDs to filter specific screening results. Maximum 50 IDs allowed to ensure URL length stays within standard web server limits (typically 8KB). Each ID must be in standard UUID format (36 characters fixed length). Example: `f47ac10b-58cc-4372-a567-0e02b2c3d479,a1b2c3d4-e5f6-4321-8765-fedcba987654`
273
+ * @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
274
+ * @param {String} [before] A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response.
275
+ * @param {String} [after] A cursor indicating the position after the current page. This value is generated by Cobo and returned in the response. You do not need to provide it on the first request. When paginating forward (to the next page), you should pass the after value returned from the last response.
276
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListKyaScreenings200Response} and HTTP response
277
+ */
278
+ }, {
279
+ key: "listKyaScreeningsWithHttpInfo",
280
+ value: function listKyaScreeningsWithHttpInfo(opts) {
281
+ opts = opts || {};
282
+ var postBody = null;
283
+ if (postBody && postBody.toJSON) {
284
+ postBody = postBody.toJSON();
285
+ }
286
+ var pathParams = {};
287
+ var queryParams = {
288
+ 'screening_ids': opts['screening_ids'],
289
+ 'limit': opts['limit'],
290
+ 'before': opts['before'],
291
+ 'after': opts['after']
292
+ };
293
+ var headerParams = {};
294
+ var formParams = {};
295
+ var authNames = ['OAuth2', 'CoboAuth'];
296
+ var contentTypes = [];
297
+ var accepts = ['application/json'];
298
+ var returnType = _ListKyaScreenings200Response["default"];
299
+ return this.apiClient.callApi('/compliance/kya/screenings', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
300
+ }
301
+
302
+ /**
303
+ * List KYA address screening results
304
+ * This operation retrieves the results of specified screening requests with pagination support. You can filter specific screening requests using screening_ids (up to 50 IDs). <Note>For larger result sets (exceeding 50 screening results), use pagination parameters (limit, before, after) to page through results.</Note>
305
+ * @param {Object} opts Optional parameters
306
+ * @param {String} opts.screening_ids A comma-separated list of screening request IDs to filter specific screening results. Maximum 50 IDs allowed to ensure URL length stays within standard web server limits (typically 8KB). Each ID must be in standard UUID format (36 characters fixed length). Example: `f47ac10b-58cc-4372-a567-0e02b2c3d479,a1b2c3d4-e5f6-4321-8765-fedcba987654`
307
+ * @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
308
+ * @param {String} opts.before A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response.
309
+ * @param {String} opts.after A cursor indicating the position after the current page. This value is generated by Cobo and returned in the response. You do not need to provide it on the first request. When paginating forward (to the next page), you should pass the after value returned from the last response.
310
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListKyaScreenings200Response}
311
+ */
312
+ }, {
313
+ key: "listKyaScreenings",
314
+ value: function listKyaScreenings(opts) {
315
+ return this.listKyaScreeningsWithHttpInfo(opts).then(function (response_and_data) {
316
+ return response_and_data.data;
317
+ });
318
+ }
319
+
180
320
  /**
181
321
  * Refund funds
182
322
  * This operation creates a request to refund funds for a specific transaction. The funds will be sent to the specified destination address. You need to specify the transaction ID to be refunded and the destination address. Optional parameters include custom categories for tracking purposes. <Note>The refund will initiate a withdrawal transaction from the compliance-managed address to the specified destination.</Note>
@@ -51,7 +51,7 @@ var FeeStationApi = exports["default"] = /*#__PURE__*/function () {
51
51
  * Check Fee Station usage
52
52
  * This operation evaluates Fee Station usage for the current transaction. It determines whether Fee station can be used, checks if the Fee Station balance is sufficient, and returns a breakdown of the amounts involved, including any portion that must be covered by the user or sponsored in USD stablecoin.
53
53
  * @param {Object} opts Optional parameters
54
- * @param {module:model/FeeStationCheckFeeStationUsage} [FeeStationCheckFeeStationUsage] The information for evaluating Fee Station usage.
54
+ * @param {module:model/FeeStationCheckFeeStationUsage} [FeeStationCheckFeeStationUsage] The request body for evaluating Fee Station usage.
55
55
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/FeeStationCheckFeeStationUsageResponse} and HTTP response
56
56
  */
57
57
  return _createClass(FeeStationApi, [{
@@ -77,7 +77,7 @@ var FeeStationApi = exports["default"] = /*#__PURE__*/function () {
77
77
  * Check Fee Station usage
78
78
  * This operation evaluates Fee Station usage for the current transaction. It determines whether Fee station can be used, checks if the Fee Station balance is sufficient, and returns a breakdown of the amounts involved, including any portion that must be covered by the user or sponsored in USD stablecoin.
79
79
  * @param {Object} opts Optional parameters
80
- * @param {module:model/FeeStationCheckFeeStationUsage} opts.FeeStationCheckFeeStationUsage The information for evaluating Fee Station usage.
80
+ * @param {module:model/FeeStationCheckFeeStationUsage} opts.FeeStationCheckFeeStationUsage The request body for evaluating Fee Station usage.
81
81
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/FeeStationCheckFeeStationUsageResponse}
82
82
  */
83
83
  }, {
@@ -48,7 +48,7 @@ var OAuthApi = exports["default"] = /*#__PURE__*/function () {
48
48
 
49
49
  /**
50
50
  * Get Access Token
51
- * This operation acquires an Access Token and a Refresh Token for the [Checkout SDK](https://www.cobo.com/developers/v2_cn/payments/checkout-sdk). For security purposes, an Access Token expires after a certain period. Once it expires, you need to call the [Refresh Access Token](https://www.cobo.com/developers/v2/api-references/oauth/refresh-access-token) operation to get a new Access Token and a new Refresh Token.
51
+ * <Warning>This operation has been deprecated.</Warning> This operation acquires an Access Token and a Refresh Token for the [Checkout SDK](https://www.cobo.com/developers/v2_cn/payments/checkout-sdk). For security purposes, an Access Token expires after a certain period. Once it expires, you need to call the [Refresh Access Token](https://www.cobo.com/developers/v2/api-references/oauth/refresh-access-token) operation to get a new Access Token and a new Refresh Token.
52
52
  * @param {module:model/ExchangePermissionTokenRequest} ExchangePermissionTokenRequest The request body to acquire an Access Token.
53
53
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ExchangePermissionToken201Response} and HTTP response
54
54
  */
@@ -76,7 +76,7 @@ var OAuthApi = exports["default"] = /*#__PURE__*/function () {
76
76
 
77
77
  /**
78
78
  * Get Access Token
79
- * This operation acquires an Access Token and a Refresh Token for the [Checkout SDK](https://www.cobo.com/developers/v2_cn/payments/checkout-sdk). For security purposes, an Access Token expires after a certain period. Once it expires, you need to call the [Refresh Access Token](https://www.cobo.com/developers/v2/api-references/oauth/refresh-access-token) operation to get a new Access Token and a new Refresh Token.
79
+ * <Warning>This operation has been deprecated.</Warning> This operation acquires an Access Token and a Refresh Token for the [Checkout SDK](https://www.cobo.com/developers/v2_cn/payments/checkout-sdk). For security purposes, an Access Token expires after a certain period. Once it expires, you need to call the [Refresh Access Token](https://www.cobo.com/developers/v2/api-references/oauth/refresh-access-token) operation to get a new Access Token and a new Refresh Token.
80
80
  * @param {module:model/ExchangePermissionTokenRequest} ExchangePermissionTokenRequest The request body to acquire an Access Token.
81
81
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ExchangePermissionToken201Response}
82
82
  */
@@ -148,7 +148,7 @@ var OAuthApi = exports["default"] = /*#__PURE__*/function () {
148
148
 
149
149
  /**
150
150
  * Refresh Access Token
151
- * This operation refreshes the Access Token and Refresh Token for the [Checkout SDK](https://www.cobo.com/developers/v2_cn/payments/checkout-sdk). For security purposes, an Access Token expires after a certain period. Once it expires, you need to call this operation to get a new Access Token and Refresh Token.
151
+ * <Warning>This operation has been deprecated.</Warning> This operation refreshes the Access Token and Refresh Token for the [Checkout SDK](https://www.cobo.com/developers/v2_cn/payments/checkout-sdk). For security purposes, an Access Token expires after a certain period. Once it expires, you need to call this operation to get a new Access Token and Refresh Token.
152
152
  * @param {module:model/RefreshPermissionTokenRequest} RefreshPermissionTokenRequest The request body to refresh the Access Token and the Refresh Token.
153
153
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ExchangePermissionToken201Response} and HTTP response
154
154
  */
@@ -176,7 +176,7 @@ var OAuthApi = exports["default"] = /*#__PURE__*/function () {
176
176
 
177
177
  /**
178
178
  * Refresh Access Token
179
- * This operation refreshes the Access Token and Refresh Token for the [Checkout SDK](https://www.cobo.com/developers/v2_cn/payments/checkout-sdk). For security purposes, an Access Token expires after a certain period. Once it expires, you need to call this operation to get a new Access Token and Refresh Token.
179
+ * <Warning>This operation has been deprecated.</Warning> This operation refreshes the Access Token and Refresh Token for the [Checkout SDK](https://www.cobo.com/developers/v2_cn/payments/checkout-sdk). For security purposes, an Access Token expires after a certain period. Once it expires, you need to call this operation to get a new Access Token and Refresh Token.
180
180
  * @param {module:model/RefreshPermissionTokenRequest} RefreshPermissionTokenRequest The request body to refresh the Access Token and the Refresh Token.
181
181
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ExchangePermissionToken201Response}
182
182
  */