@corsa-labs/sdk 1.0.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 (212) hide show
  1. package/README.md +282 -0
  2. package/dist/ComplianceClient.d.ts +22 -0
  3. package/dist/ComplianceClient.js +43 -0
  4. package/dist/ComplianceClient.js.map +1 -0
  5. package/dist/core/ApiError.d.ts +11 -0
  6. package/dist/core/ApiError.js +23 -0
  7. package/dist/core/ApiError.js.map +1 -0
  8. package/dist/core/ApiRequestOptions.d.ts +13 -0
  9. package/dist/core/ApiRequestOptions.js +3 -0
  10. package/dist/core/ApiRequestOptions.js.map +1 -0
  11. package/dist/core/ApiResult.d.ts +7 -0
  12. package/dist/core/ApiResult.js +3 -0
  13. package/dist/core/ApiResult.js.map +1 -0
  14. package/dist/core/BaseHttpRequest.d.ts +8 -0
  15. package/dist/core/BaseHttpRequest.js +11 -0
  16. package/dist/core/BaseHttpRequest.js.map +1 -0
  17. package/dist/core/CancelablePromise.d.ts +20 -0
  18. package/dist/core/CancelablePromise.js +105 -0
  19. package/dist/core/CancelablePromise.js.map +1 -0
  20. package/dist/core/FetchHttpRequest.d.ts +14 -0
  21. package/dist/core/FetchHttpRequest.js +21 -0
  22. package/dist/core/FetchHttpRequest.js.map +1 -0
  23. package/dist/core/OpenAPI.d.ts +16 -0
  24. package/dist/core/OpenAPI.js +15 -0
  25. package/dist/core/OpenAPI.js.map +1 -0
  26. package/dist/core/request.d.ts +30 -0
  27. package/dist/core/request.js +300 -0
  28. package/dist/core/request.js.map +1 -0
  29. package/dist/index.d.ts +61 -0
  30. package/dist/index.js +71 -0
  31. package/dist/index.js.map +1 -0
  32. package/dist/main.d.ts +2 -0
  33. package/dist/main.js +19 -0
  34. package/dist/main.js.map +1 -0
  35. package/dist/models/AdverseMediaDto.d.ts +6 -0
  36. package/dist/models/AdverseMediaDto.js +3 -0
  37. package/dist/models/AdverseMediaDto.js.map +1 -0
  38. package/dist/models/AlertAssociationResponseDto.d.ts +16 -0
  39. package/dist/models/AlertAssociationResponseDto.js +3 -0
  40. package/dist/models/AlertAssociationResponseDto.js.map +1 -0
  41. package/dist/models/AlertCustomFieldDataDto.d.ts +10 -0
  42. package/dist/models/AlertCustomFieldDataDto.js +3 -0
  43. package/dist/models/AlertCustomFieldDataDto.js.map +1 -0
  44. package/dist/models/AlertDto.d.ts +100 -0
  45. package/dist/models/AlertDto.js +41 -0
  46. package/dist/models/AlertDto.js.map +1 -0
  47. package/dist/models/AlertSourceDto.d.ts +18 -0
  48. package/dist/models/AlertSourceDto.js +3 -0
  49. package/dist/models/AlertSourceDto.js.map +1 -0
  50. package/dist/models/AlertStatusData.d.ts +25 -0
  51. package/dist/models/AlertStatusData.js +17 -0
  52. package/dist/models/AlertStatusData.js.map +1 -0
  53. package/dist/models/AssociatedClientDto.d.ts +10 -0
  54. package/dist/models/AssociatedClientDto.js +3 -0
  55. package/dist/models/AssociatedClientDto.js.map +1 -0
  56. package/dist/models/AssociatedTransactionDto.d.ts +10 -0
  57. package/dist/models/AssociatedTransactionDto.js +3 -0
  58. package/dist/models/AssociatedTransactionDto.js.map +1 -0
  59. package/dist/models/ClientRiskDto.d.ts +28 -0
  60. package/dist/models/ClientRiskDto.js +16 -0
  61. package/dist/models/ClientRiskDto.js.map +1 -0
  62. package/dist/models/CorporateClientAddressDto.d.ts +11 -0
  63. package/dist/models/CorporateClientAddressDto.js +3 -0
  64. package/dist/models/CorporateClientAddressDto.js.map +1 -0
  65. package/dist/models/CorporateClientAddressLineDto.d.ts +22 -0
  66. package/dist/models/CorporateClientAddressLineDto.js +3 -0
  67. package/dist/models/CorporateClientAddressLineDto.js.map +1 -0
  68. package/dist/models/CorporateClientApplicationDto.d.ts +14 -0
  69. package/dist/models/CorporateClientApplicationDto.js +3 -0
  70. package/dist/models/CorporateClientApplicationDto.js.map +1 -0
  71. package/dist/models/CorporateClientBusinessDto.d.ts +10 -0
  72. package/dist/models/CorporateClientBusinessDto.js +3 -0
  73. package/dist/models/CorporateClientBusinessDto.js.map +1 -0
  74. package/dist/models/CorporateClientCustomFieldDataDto.d.ts +26 -0
  75. package/dist/models/CorporateClientCustomFieldDataDto.js +18 -0
  76. package/dist/models/CorporateClientCustomFieldDataDto.js.map +1 -0
  77. package/dist/models/CorporateClientDto.d.ts +101 -0
  78. package/dist/models/CorporateClientDto.js +29 -0
  79. package/dist/models/CorporateClientDto.js.map +1 -0
  80. package/dist/models/CorporateClientGeneralDto.d.ts +14 -0
  81. package/dist/models/CorporateClientGeneralDto.js +3 -0
  82. package/dist/models/CorporateClientGeneralDto.js.map +1 -0
  83. package/dist/models/CreateAlertDto.d.ts +81 -0
  84. package/dist/models/CreateAlertDto.js +41 -0
  85. package/dist/models/CreateAlertDto.js.map +1 -0
  86. package/dist/models/CreateCorporateClientDto.d.ts +74 -0
  87. package/dist/models/CreateCorporateClientDto.js +29 -0
  88. package/dist/models/CreateCorporateClientDto.js.map +1 -0
  89. package/dist/models/CreateDepositOperationDto.d.ts +19 -0
  90. package/dist/models/CreateDepositOperationDto.js +3 -0
  91. package/dist/models/CreateDepositOperationDto.js.map +1 -0
  92. package/dist/models/CreateIndividualClientDto.d.ts +99 -0
  93. package/dist/models/CreateIndividualClientDto.js +29 -0
  94. package/dist/models/CreateIndividualClientDto.js.map +1 -0
  95. package/dist/models/CreateIndividualClientResponseDto.d.ts +60 -0
  96. package/dist/models/CreateIndividualClientResponseDto.js +27 -0
  97. package/dist/models/CreateIndividualClientResponseDto.js.map +1 -0
  98. package/dist/models/CreateOrUpdateRiskDto.d.ts +24 -0
  99. package/dist/models/CreateOrUpdateRiskDto.js +16 -0
  100. package/dist/models/CreateOrUpdateRiskDto.js.map +1 -0
  101. package/dist/models/CreateTradeOperationDto.d.ts +48 -0
  102. package/dist/models/CreateTradeOperationDto.js +15 -0
  103. package/dist/models/CreateTradeOperationDto.js.map +1 -0
  104. package/dist/models/CreateTransactionDto.d.ts +50 -0
  105. package/dist/models/CreateTransactionDto.js +3 -0
  106. package/dist/models/CreateTransactionDto.js.map +1 -0
  107. package/dist/models/CreateTransactionSourceOrDestinationClientDto.d.ts +10 -0
  108. package/dist/models/CreateTransactionSourceOrDestinationClientDto.js +3 -0
  109. package/dist/models/CreateTransactionSourceOrDestinationClientDto.js.map +1 -0
  110. package/dist/models/CreateWithdrawalOperationDto.d.ts +19 -0
  111. package/dist/models/CreateWithdrawalOperationDto.js +3 -0
  112. package/dist/models/CreateWithdrawalOperationDto.js.map +1 -0
  113. package/dist/models/DepositOperationDto.d.ts +32 -0
  114. package/dist/models/DepositOperationDto.js +3 -0
  115. package/dist/models/DepositOperationDto.js.map +1 -0
  116. package/dist/models/IndividualClientAddressDto.d.ts +22 -0
  117. package/dist/models/IndividualClientAddressDto.js +3 -0
  118. package/dist/models/IndividualClientAddressDto.js.map +1 -0
  119. package/dist/models/IndividualClientApplicationInformationDto.d.ts +14 -0
  120. package/dist/models/IndividualClientApplicationInformationDto.js +3 -0
  121. package/dist/models/IndividualClientApplicationInformationDto.js.map +1 -0
  122. package/dist/models/IndividualClientContactInformationDto.d.ts +10 -0
  123. package/dist/models/IndividualClientContactInformationDto.js +3 -0
  124. package/dist/models/IndividualClientContactInformationDto.js.map +1 -0
  125. package/dist/models/IndividualClientCustomFieldDataDto.d.ts +27 -0
  126. package/dist/models/IndividualClientCustomFieldDataDto.js +19 -0
  127. package/dist/models/IndividualClientCustomFieldDataDto.js.map +1 -0
  128. package/dist/models/IndividualClientDto.d.ts +127 -0
  129. package/dist/models/IndividualClientDto.js +29 -0
  130. package/dist/models/IndividualClientDto.js.map +1 -0
  131. package/dist/models/IndividualClientFinancialInformationDto.d.ts +6 -0
  132. package/dist/models/IndividualClientFinancialInformationDto.js +3 -0
  133. package/dist/models/IndividualClientFinancialInformationDto.js.map +1 -0
  134. package/dist/models/IndividualClientGeneralInformationDto.d.ts +39 -0
  135. package/dist/models/IndividualClientGeneralInformationDto.js +15 -0
  136. package/dist/models/IndividualClientGeneralInformationDto.js.map +1 -0
  137. package/dist/models/IndividualClientWorkInformationDto.d.ts +6 -0
  138. package/dist/models/IndividualClientWorkInformationDto.js +3 -0
  139. package/dist/models/IndividualClientWorkInformationDto.js.map +1 -0
  140. package/dist/models/OperationInitiatorDto.d.ts +10 -0
  141. package/dist/models/OperationInitiatorDto.js +3 -0
  142. package/dist/models/OperationInitiatorDto.js.map +1 -0
  143. package/dist/models/PoliticalExposureDto.d.ts +6 -0
  144. package/dist/models/PoliticalExposureDto.js +3 -0
  145. package/dist/models/PoliticalExposureDto.js.map +1 -0
  146. package/dist/models/SanctionsDto.d.ts +6 -0
  147. package/dist/models/SanctionsDto.js +3 -0
  148. package/dist/models/SanctionsDto.js.map +1 -0
  149. package/dist/models/TradeOperationDto.d.ts +61 -0
  150. package/dist/models/TradeOperationDto.js +15 -0
  151. package/dist/models/TradeOperationDto.js.map +1 -0
  152. package/dist/models/TransactionAmountDto.d.ts +14 -0
  153. package/dist/models/TransactionAmountDto.js +3 -0
  154. package/dist/models/TransactionAmountDto.js.map +1 -0
  155. package/dist/models/TransactionCustomFieldDto.d.ts +14 -0
  156. package/dist/models/TransactionCustomFieldDto.js +3 -0
  157. package/dist/models/TransactionCustomFieldDto.js.map +1 -0
  158. package/dist/models/TransactionDto.d.ts +82 -0
  159. package/dist/models/TransactionDto.js +24 -0
  160. package/dist/models/TransactionDto.js.map +1 -0
  161. package/dist/models/TransactionSourceOrDestinationClientDto.d.ts +10 -0
  162. package/dist/models/TransactionSourceOrDestinationClientDto.js +3 -0
  163. package/dist/models/TransactionSourceOrDestinationClientDto.js.map +1 -0
  164. package/dist/models/TransactionSourceOrDestinationDto.d.ts +11 -0
  165. package/dist/models/TransactionSourceOrDestinationDto.js +3 -0
  166. package/dist/models/TransactionSourceOrDestinationDto.js.map +1 -0
  167. package/dist/models/TransactionStatusDto.d.ts +29 -0
  168. package/dist/models/TransactionStatusDto.js +17 -0
  169. package/dist/models/TransactionStatusDto.js.map +1 -0
  170. package/dist/models/UpdateAlertDto.d.ts +60 -0
  171. package/dist/models/UpdateAlertDto.js +41 -0
  172. package/dist/models/UpdateAlertDto.js.map +1 -0
  173. package/dist/models/UpdateCorporateClientDto.d.ts +82 -0
  174. package/dist/models/UpdateCorporateClientDto.js +29 -0
  175. package/dist/models/UpdateCorporateClientDto.js.map +1 -0
  176. package/dist/models/UpdateIndividualClientDto.d.ts +107 -0
  177. package/dist/models/UpdateIndividualClientDto.js +29 -0
  178. package/dist/models/UpdateIndividualClientDto.js.map +1 -0
  179. package/dist/models/WithdrawalOperationDto.d.ts +33 -0
  180. package/dist/models/WithdrawalOperationDto.js +3 -0
  181. package/dist/models/WithdrawalOperationDto.js.map +1 -0
  182. package/dist/services/AlertsService.d.ts +48 -0
  183. package/dist/services/AlertsService.js +94 -0
  184. package/dist/services/AlertsService.js.map +1 -0
  185. package/dist/services/ClientsService.d.ts +56 -0
  186. package/dist/services/ClientsService.js +105 -0
  187. package/dist/services/ClientsService.js.map +1 -0
  188. package/dist/services/DepositsService.d.ts +22 -0
  189. package/dist/services/DepositsService.js +40 -0
  190. package/dist/services/DepositsService.js.map +1 -0
  191. package/dist/services/HealthService.d.ts +13 -0
  192. package/dist/services/HealthService.js +23 -0
  193. package/dist/services/HealthService.js.map +1 -0
  194. package/dist/services/TradesService.d.ts +32 -0
  195. package/dist/services/TradesService.js +62 -0
  196. package/dist/services/TradesService.js.map +1 -0
  197. package/dist/services/TransactionsService.d.ts +14 -0
  198. package/dist/services/TransactionsService.js +28 -0
  199. package/dist/services/TransactionsService.js.map +1 -0
  200. package/dist/services/WithdrawalsService.d.ts +22 -0
  201. package/dist/services/WithdrawalsService.js +40 -0
  202. package/dist/services/WithdrawalsService.js.map +1 -0
  203. package/dist/webhooks/index.d.ts +2 -0
  204. package/dist/webhooks/index.js +19 -0
  205. package/dist/webhooks/index.js.map +1 -0
  206. package/dist/webhooks/types.d.ts +56 -0
  207. package/dist/webhooks/types.js +30 -0
  208. package/dist/webhooks/types.js.map +1 -0
  209. package/dist/webhooks/verify-signature.d.ts +15 -0
  210. package/dist/webhooks/verify-signature.js +49 -0
  211. package/dist/webhooks/verify-signature.js.map +1 -0
  212. package/package.json +42 -0
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=TransactionCustomFieldDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TransactionCustomFieldDto.js","sourceRoot":"","sources":["../../models/TransactionCustomFieldDto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,82 @@
1
+ import type { TransactionAmountDto } from './TransactionAmountDto';
2
+ import type { TransactionSourceOrDestinationDto } from './TransactionSourceOrDestinationDto';
3
+ import type { TransactionStatusDto } from './TransactionStatusDto';
4
+ export type TransactionDto = {
5
+ /**
6
+ * Unique identifier of the transaction
7
+ */
8
+ id: string;
9
+ /**
10
+ * External reference ID for the transaction
11
+ */
12
+ referenceId?: string;
13
+ /**
14
+ * Type of operation
15
+ */
16
+ type: TransactionDto.type;
17
+ /**
18
+ * Current status of the transaction
19
+ */
20
+ currentStatus: TransactionStatusDto;
21
+ /**
22
+ * History of transaction statuses
23
+ */
24
+ statusHistory?: Array<TransactionStatusDto>;
25
+ /**
26
+ * Amount in cryptocurrency
27
+ */
28
+ amount: TransactionAmountDto;
29
+ /**
30
+ * Amount converted to other currencies
31
+ */
32
+ convertedAmount?: TransactionAmountDto;
33
+ /**
34
+ * Source of the transaction
35
+ */
36
+ from: TransactionSourceOrDestinationDto;
37
+ /**
38
+ * Destination of the transaction
39
+ */
40
+ to?: TransactionSourceOrDestinationDto;
41
+ /**
42
+ * Side of the trade (buy/sell)
43
+ */
44
+ sideInTrade?: TransactionDto.sideInTrade;
45
+ /**
46
+ * Method used for payment
47
+ */
48
+ paymentMethod?: string;
49
+ /**
50
+ * Timestamp when the transaction was created
51
+ */
52
+ createdAt: string;
53
+ /**
54
+ * Timestamp when the transaction was last updated
55
+ */
56
+ updatedAt: string;
57
+ /**
58
+ * Timestamp when the transaction was initiated
59
+ */
60
+ initiatedAt: string;
61
+ /**
62
+ * Blockchain transaction hash
63
+ */
64
+ txHash?: string;
65
+ };
66
+ export declare namespace TransactionDto {
67
+ /**
68
+ * Type of operation
69
+ */
70
+ enum type {
71
+ DEPOSIT = "DEPOSIT",
72
+ WITHDRAW = "WITHDRAW",
73
+ TRADE = "TRADE"
74
+ }
75
+ /**
76
+ * Side of the trade (buy/sell)
77
+ */
78
+ enum sideInTrade {
79
+ BUY = "BUY",
80
+ SELL = "SELL"
81
+ }
82
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TransactionDto = void 0;
4
+ var TransactionDto;
5
+ (function (TransactionDto) {
6
+ /**
7
+ * Type of operation
8
+ */
9
+ let type;
10
+ (function (type) {
11
+ type["DEPOSIT"] = "DEPOSIT";
12
+ type["WITHDRAW"] = "WITHDRAW";
13
+ type["TRADE"] = "TRADE";
14
+ })(type = TransactionDto.type || (TransactionDto.type = {}));
15
+ /**
16
+ * Side of the trade (buy/sell)
17
+ */
18
+ let sideInTrade;
19
+ (function (sideInTrade) {
20
+ sideInTrade["BUY"] = "BUY";
21
+ sideInTrade["SELL"] = "SELL";
22
+ })(sideInTrade = TransactionDto.sideInTrade || (TransactionDto.sideInTrade = {}));
23
+ })(TransactionDto || (exports.TransactionDto = TransactionDto = {}));
24
+ //# sourceMappingURL=TransactionDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TransactionDto.js","sourceRoot":"","sources":["../../models/TransactionDto.ts"],"names":[],"mappings":";;;AAqEA,IAAiB,cAAc,CAgB9B;AAhBD,WAAiB,cAAc;IAC3B;;OAEG;IACH,IAAY,IAIX;IAJD,WAAY,IAAI;QACZ,2BAAmB,CAAA;QACnB,6BAAqB,CAAA;QACrB,uBAAe,CAAA;IACnB,CAAC,EAJW,IAAI,GAAJ,mBAAI,KAAJ,mBAAI,QAIf;IACD;;OAEG;IACH,IAAY,WAGX;IAHD,WAAY,WAAW;QACnB,0BAAW,CAAA;QACX,4BAAa,CAAA;IACjB,CAAC,EAHW,WAAW,GAAX,0BAAW,KAAX,0BAAW,QAGtB;AACL,CAAC,EAhBgB,cAAc,8BAAd,cAAc,QAgB9B"}
@@ -0,0 +1,10 @@
1
+ export type TransactionSourceOrDestinationClientDto = {
2
+ /**
3
+ * Client UUID associated with the transaction
4
+ */
5
+ id: string;
6
+ /**
7
+ * Client reference ID associated with the transaction
8
+ */
9
+ referenceId?: string;
10
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=TransactionSourceOrDestinationClientDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TransactionSourceOrDestinationClientDto.js","sourceRoot":"","sources":["../../models/TransactionSourceOrDestinationClientDto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ import type { TransactionSourceOrDestinationClientDto } from './TransactionSourceOrDestinationClientDto';
2
+ export type TransactionSourceOrDestinationDto = {
3
+ /**
4
+ * Client associated with the transaction
5
+ */
6
+ client?: TransactionSourceOrDestinationClientDto;
7
+ /**
8
+ * Blockchain wallet address
9
+ */
10
+ walletAddress?: string;
11
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=TransactionSourceOrDestinationDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TransactionSourceOrDestinationDto.js","sourceRoot":"","sources":["../../models/TransactionSourceOrDestinationDto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,29 @@
1
+ export type TransactionStatusDto = {
2
+ /**
3
+ * Current status of the transaction
4
+ */
5
+ type: TransactionStatusDto.type;
6
+ /**
7
+ * Timestamp of the status update
8
+ */
9
+ timestamp?: string;
10
+ /**
11
+ * Reason for the current status
12
+ */
13
+ reason?: string;
14
+ /**
15
+ * Additional status details
16
+ */
17
+ subStatus?: string;
18
+ };
19
+ export declare namespace TransactionStatusDto {
20
+ /**
21
+ * Current status of the transaction
22
+ */
23
+ enum type {
24
+ SUCCESS = "SUCCESS",
25
+ PENDING = "PENDING",
26
+ CANCELLED = "CANCELLED",
27
+ FAILED = "FAILED"
28
+ }
29
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TransactionStatusDto = void 0;
4
+ var TransactionStatusDto;
5
+ (function (TransactionStatusDto) {
6
+ /**
7
+ * Current status of the transaction
8
+ */
9
+ let type;
10
+ (function (type) {
11
+ type["SUCCESS"] = "SUCCESS";
12
+ type["PENDING"] = "PENDING";
13
+ type["CANCELLED"] = "CANCELLED";
14
+ type["FAILED"] = "FAILED";
15
+ })(type = TransactionStatusDto.type || (TransactionStatusDto.type = {}));
16
+ })(TransactionStatusDto || (exports.TransactionStatusDto = TransactionStatusDto = {}));
17
+ //# sourceMappingURL=TransactionStatusDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TransactionStatusDto.js","sourceRoot":"","sources":["../../models/TransactionStatusDto.ts"],"names":[],"mappings":";;;AAsBA,IAAiB,oBAAoB,CAUpC;AAVD,WAAiB,oBAAoB;IACjC;;OAEG;IACH,IAAY,IAKX;IALD,WAAY,IAAI;QACZ,2BAAmB,CAAA;QACnB,2BAAmB,CAAA;QACnB,+BAAuB,CAAA;QACvB,yBAAiB,CAAA;IACrB,CAAC,EALW,IAAI,GAAJ,yBAAI,KAAJ,yBAAI,QAKf;AACL,CAAC,EAVgB,oBAAoB,oCAApB,oBAAoB,QAUpC"}
@@ -0,0 +1,60 @@
1
+ import type { AlertSourceDto } from './AlertSourceDto';
2
+ export type UpdateAlertDto = {
3
+ /**
4
+ * Priority level of the alert
5
+ */
6
+ priority?: UpdateAlertDto.priority;
7
+ /**
8
+ * Category of the alert
9
+ */
10
+ category?: UpdateAlertDto.category;
11
+ /**
12
+ * Current status of the alert
13
+ */
14
+ status?: UpdateAlertDto.status;
15
+ /**
16
+ * UUID of the user assigned to handle this alert
17
+ */
18
+ assigneeId?: string;
19
+ /**
20
+ * Source information for the alert
21
+ */
22
+ source?: AlertSourceDto;
23
+ /**
24
+ * Custom fields data
25
+ */
26
+ customFields?: Record<string, any>;
27
+ };
28
+ export declare namespace UpdateAlertDto {
29
+ /**
30
+ * Priority level of the alert
31
+ */
32
+ enum priority {
33
+ LOW = "LOW",
34
+ MEDIUM = "MEDIUM",
35
+ HIGH = "HIGH"
36
+ }
37
+ /**
38
+ * Category of the alert
39
+ */
40
+ enum category {
41
+ KYC = "KYC",
42
+ KYB = "KYB",
43
+ TRANSACTION_MONITORING = "TRANSACTION_MONITORING",
44
+ ONCHAIN_TRANSACTION_MONITORING = "ONCHAIN_TRANSACTION_MONITORING",
45
+ SCREENING = "SCREENING",
46
+ FRAUD = "FRAUD",
47
+ PERIODIC_REVIEW = "PERIODIC_REVIEW",
48
+ EDD = "EDD",
49
+ OTHER = "OTHER"
50
+ }
51
+ /**
52
+ * Current status of the alert
53
+ */
54
+ enum status {
55
+ NEW = "NEW",
56
+ IN_REVIEW = "IN_REVIEW",
57
+ ESCALATED = "ESCALATED",
58
+ RESOLVED = "RESOLVED"
59
+ }
60
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateAlertDto = void 0;
4
+ var UpdateAlertDto;
5
+ (function (UpdateAlertDto) {
6
+ /**
7
+ * Priority level of the alert
8
+ */
9
+ let priority;
10
+ (function (priority) {
11
+ priority["LOW"] = "LOW";
12
+ priority["MEDIUM"] = "MEDIUM";
13
+ priority["HIGH"] = "HIGH";
14
+ })(priority = UpdateAlertDto.priority || (UpdateAlertDto.priority = {}));
15
+ /**
16
+ * Category of the alert
17
+ */
18
+ let category;
19
+ (function (category) {
20
+ category["KYC"] = "KYC";
21
+ category["KYB"] = "KYB";
22
+ category["TRANSACTION_MONITORING"] = "TRANSACTION_MONITORING";
23
+ category["ONCHAIN_TRANSACTION_MONITORING"] = "ONCHAIN_TRANSACTION_MONITORING";
24
+ category["SCREENING"] = "SCREENING";
25
+ category["FRAUD"] = "FRAUD";
26
+ category["PERIODIC_REVIEW"] = "PERIODIC_REVIEW";
27
+ category["EDD"] = "EDD";
28
+ category["OTHER"] = "OTHER";
29
+ })(category = UpdateAlertDto.category || (UpdateAlertDto.category = {}));
30
+ /**
31
+ * Current status of the alert
32
+ */
33
+ let status;
34
+ (function (status) {
35
+ status["NEW"] = "NEW";
36
+ status["IN_REVIEW"] = "IN_REVIEW";
37
+ status["ESCALATED"] = "ESCALATED";
38
+ status["RESOLVED"] = "RESOLVED";
39
+ })(status = UpdateAlertDto.status || (UpdateAlertDto.status = {}));
40
+ })(UpdateAlertDto || (exports.UpdateAlertDto = UpdateAlertDto = {}));
41
+ //# sourceMappingURL=UpdateAlertDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UpdateAlertDto.js","sourceRoot":"","sources":["../../models/UpdateAlertDto.ts"],"names":[],"mappings":";;;AA+BA,IAAiB,cAAc,CAgC9B;AAhCD,WAAiB,cAAc;IAC3B;;OAEG;IACH,IAAY,QAIX;IAJD,WAAY,QAAQ;QAChB,uBAAW,CAAA;QACX,6BAAiB,CAAA;QACjB,yBAAa,CAAA;IACjB,CAAC,EAJW,QAAQ,GAAR,uBAAQ,KAAR,uBAAQ,QAInB;IACD;;OAEG;IACH,IAAY,QAUX;IAVD,WAAY,QAAQ;QAChB,uBAAW,CAAA;QACX,uBAAW,CAAA;QACX,6DAAiD,CAAA;QACjD,6EAAiE,CAAA;QACjE,mCAAuB,CAAA;QACvB,2BAAe,CAAA;QACf,+CAAmC,CAAA;QACnC,uBAAW,CAAA;QACX,2BAAe,CAAA;IACnB,CAAC,EAVW,QAAQ,GAAR,uBAAQ,KAAR,uBAAQ,QAUnB;IACD;;OAEG;IACH,IAAY,MAKX;IALD,WAAY,MAAM;QACd,qBAAW,CAAA;QACX,iCAAuB,CAAA;QACvB,iCAAuB,CAAA;QACvB,+BAAqB,CAAA;IACzB,CAAC,EALW,MAAM,GAAN,qBAAM,KAAN,qBAAM,QAKjB;AACL,CAAC,EAhCgB,cAAc,8BAAd,cAAc,QAgC9B"}
@@ -0,0 +1,82 @@
1
+ import type { CorporateClientAddressDto } from './CorporateClientAddressDto';
2
+ import type { CorporateClientApplicationDto } from './CorporateClientApplicationDto';
3
+ import type { CorporateClientBusinessDto } from './CorporateClientBusinessDto';
4
+ import type { CorporateClientCustomFieldDataDto } from './CorporateClientCustomFieldDataDto';
5
+ import type { CorporateClientGeneralDto } from './CorporateClientGeneralDto';
6
+ import type { CreateOrUpdateRiskDto } from './CreateOrUpdateRiskDto';
7
+ export type UpdateCorporateClientDto = {
8
+ /**
9
+ * Activity status of the corporate client
10
+ */
11
+ activityStatus?: UpdateCorporateClientDto.activityStatus;
12
+ /**
13
+ * Account status of the corporate client
14
+ */
15
+ accountStatus?: UpdateCorporateClientDto.accountStatus;
16
+ /**
17
+ * General information about the corporate client
18
+ */
19
+ general?: CorporateClientGeneralDto;
20
+ /**
21
+ * Current risk assessment of the corporate client
22
+ */
23
+ currentRisk?: CreateOrUpdateRiskDto;
24
+ /**
25
+ * Onboarding risk assessment of the corporate client
26
+ */
27
+ onboardingRisk?: CreateOrUpdateRiskDto;
28
+ /**
29
+ * Address information of the corporate client
30
+ */
31
+ address?: CorporateClientAddressDto;
32
+ /**
33
+ * Business information of the corporate client
34
+ */
35
+ business?: CorporateClientBusinessDto;
36
+ /**
37
+ * Application information of the corporate client
38
+ */
39
+ application?: CorporateClientApplicationDto;
40
+ /**
41
+ * Custom fields data for the corporate client
42
+ */
43
+ customFields?: Record<string, CorporateClientCustomFieldDataDto>;
44
+ /**
45
+ * Tags to add to the corporate client
46
+ */
47
+ tagsToAdd?: Array<string>;
48
+ /**
49
+ * Tags to remove from the corporate client
50
+ */
51
+ tagsToRemove?: Array<string>;
52
+ /**
53
+ * Controls to add to the corporate client
54
+ */
55
+ controlsToAdd?: Array<string>;
56
+ /**
57
+ * Controls to remove from the corporate client
58
+ */
59
+ controlsToRemove?: Array<string>;
60
+ };
61
+ export declare namespace UpdateCorporateClientDto {
62
+ /**
63
+ * Activity status of the corporate client
64
+ */
65
+ enum activityStatus {
66
+ ACTIVE = "ACTIVE",
67
+ NOT_ACTIVE = "NOT_ACTIVE"
68
+ }
69
+ /**
70
+ * Account status of the corporate client
71
+ */
72
+ enum accountStatus {
73
+ APPROVED = "APPROVED",
74
+ WAITING_FOR_REVIEW = "WAITING_FOR_REVIEW",
75
+ IN_REVIEW = "IN_REVIEW",
76
+ REJECTED = "REJECTED",
77
+ OFF_BOARDED = "OFF_BOARDED",
78
+ FROZEN = "FROZEN",
79
+ PENDING_DOCUMENTS = "PENDING_DOCUMENTS",
80
+ CLOSED_BY_CLIENT = "CLOSED_BY_CLIENT"
81
+ }
82
+ }
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateCorporateClientDto = void 0;
4
+ var UpdateCorporateClientDto;
5
+ (function (UpdateCorporateClientDto) {
6
+ /**
7
+ * Activity status of the corporate client
8
+ */
9
+ let activityStatus;
10
+ (function (activityStatus) {
11
+ activityStatus["ACTIVE"] = "ACTIVE";
12
+ activityStatus["NOT_ACTIVE"] = "NOT_ACTIVE";
13
+ })(activityStatus = UpdateCorporateClientDto.activityStatus || (UpdateCorporateClientDto.activityStatus = {}));
14
+ /**
15
+ * Account status of the corporate client
16
+ */
17
+ let accountStatus;
18
+ (function (accountStatus) {
19
+ accountStatus["APPROVED"] = "APPROVED";
20
+ accountStatus["WAITING_FOR_REVIEW"] = "WAITING_FOR_REVIEW";
21
+ accountStatus["IN_REVIEW"] = "IN_REVIEW";
22
+ accountStatus["REJECTED"] = "REJECTED";
23
+ accountStatus["OFF_BOARDED"] = "OFF_BOARDED";
24
+ accountStatus["FROZEN"] = "FROZEN";
25
+ accountStatus["PENDING_DOCUMENTS"] = "PENDING_DOCUMENTS";
26
+ accountStatus["CLOSED_BY_CLIENT"] = "CLOSED_BY_CLIENT";
27
+ })(accountStatus = UpdateCorporateClientDto.accountStatus || (UpdateCorporateClientDto.accountStatus = {}));
28
+ })(UpdateCorporateClientDto || (exports.UpdateCorporateClientDto = UpdateCorporateClientDto = {}));
29
+ //# sourceMappingURL=UpdateCorporateClientDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UpdateCorporateClientDto.js","sourceRoot":"","sources":["../../models/UpdateCorporateClientDto.ts"],"names":[],"mappings":";;;AAgEA,IAAiB,wBAAwB,CAqBxC;AArBD,WAAiB,wBAAwB;IACrC;;OAEG;IACH,IAAY,cAGX;IAHD,WAAY,cAAc;QACtB,mCAAiB,CAAA;QACjB,2CAAyB,CAAA;IAC7B,CAAC,EAHW,cAAc,GAAd,uCAAc,KAAd,uCAAc,QAGzB;IACD;;OAEG;IACH,IAAY,aASX;IATD,WAAY,aAAa;QACrB,sCAAqB,CAAA;QACrB,0DAAyC,CAAA;QACzC,wCAAuB,CAAA;QACvB,sCAAqB,CAAA;QACrB,4CAA2B,CAAA;QAC3B,kCAAiB,CAAA;QACjB,wDAAuC,CAAA;QACvC,sDAAqC,CAAA;IACzC,CAAC,EATW,aAAa,GAAb,sCAAa,KAAb,sCAAa,QASxB;AACL,CAAC,EArBgB,wBAAwB,wCAAxB,wBAAwB,QAqBxC"}
@@ -0,0 +1,107 @@
1
+ import type { AdverseMediaDto } from './AdverseMediaDto';
2
+ import type { CreateOrUpdateRiskDto } from './CreateOrUpdateRiskDto';
3
+ import type { IndividualClientAddressDto } from './IndividualClientAddressDto';
4
+ import type { IndividualClientApplicationInformationDto } from './IndividualClientApplicationInformationDto';
5
+ import type { IndividualClientContactInformationDto } from './IndividualClientContactInformationDto';
6
+ import type { IndividualClientCustomFieldDataDto } from './IndividualClientCustomFieldDataDto';
7
+ import type { IndividualClientFinancialInformationDto } from './IndividualClientFinancialInformationDto';
8
+ import type { IndividualClientGeneralInformationDto } from './IndividualClientGeneralInformationDto';
9
+ import type { IndividualClientWorkInformationDto } from './IndividualClientWorkInformationDto';
10
+ import type { PoliticalExposureDto } from './PoliticalExposureDto';
11
+ import type { SanctionsDto } from './SanctionsDto';
12
+ export type UpdateIndividualClientDto = {
13
+ /**
14
+ * General information about the individual client
15
+ */
16
+ general?: IndividualClientGeneralInformationDto;
17
+ /**
18
+ * Address information of the client
19
+ */
20
+ address?: IndividualClientAddressDto;
21
+ /**
22
+ * Contact information of the client
23
+ */
24
+ contact?: IndividualClientContactInformationDto;
25
+ /**
26
+ * Work-related information of the client
27
+ */
28
+ work?: IndividualClientWorkInformationDto;
29
+ /**
30
+ * Financial information of the client
31
+ */
32
+ financial?: IndividualClientFinancialInformationDto;
33
+ /**
34
+ * Application information of the client
35
+ */
36
+ application?: IndividualClientApplicationInformationDto;
37
+ /**
38
+ * Sanctions status information
39
+ */
40
+ sanctions?: SanctionsDto;
41
+ /**
42
+ * Political exposure status information
43
+ */
44
+ politicalExposure?: PoliticalExposureDto;
45
+ /**
46
+ * Adverse media status information
47
+ */
48
+ adverseMedia?: AdverseMediaDto;
49
+ /**
50
+ * Custom fields data for the client
51
+ */
52
+ customFields?: Record<string, IndividualClientCustomFieldDataDto>;
53
+ /**
54
+ * Tags to add to the individual client
55
+ */
56
+ tagsToAdd?: Array<string>;
57
+ /**
58
+ * Tags to remove from the individual client
59
+ */
60
+ tagsToRemove?: Array<string>;
61
+ /**
62
+ * Controls to add to the individual client
63
+ */
64
+ controlsToAdd?: Array<string>;
65
+ /**
66
+ * Controls to remove from the individual client
67
+ */
68
+ controlsToRemove?: Array<string>;
69
+ /**
70
+ * Activity status of the individual client
71
+ */
72
+ activityStatus?: UpdateIndividualClientDto.activityStatus;
73
+ /**
74
+ * Account status of the individual client
75
+ */
76
+ accountStatus?: UpdateIndividualClientDto.accountStatus;
77
+ /**
78
+ * Current risk assessment of the individual client
79
+ */
80
+ currentRisk?: CreateOrUpdateRiskDto;
81
+ /**
82
+ * Onboarding risk assessment of the individual client
83
+ */
84
+ onboardingRisk?: CreateOrUpdateRiskDto;
85
+ };
86
+ export declare namespace UpdateIndividualClientDto {
87
+ /**
88
+ * Activity status of the individual client
89
+ */
90
+ enum activityStatus {
91
+ ACTIVE = "ACTIVE",
92
+ NOT_ACTIVE = "NOT_ACTIVE"
93
+ }
94
+ /**
95
+ * Account status of the individual client
96
+ */
97
+ enum accountStatus {
98
+ APPROVED = "APPROVED",
99
+ WAITING_FOR_REVIEW = "WAITING_FOR_REVIEW",
100
+ IN_REVIEW = "IN_REVIEW",
101
+ REJECTED = "REJECTED",
102
+ OFF_BOARDED = "OFF_BOARDED",
103
+ FROZEN = "FROZEN",
104
+ PENDING_DOCUMENTS = "PENDING_DOCUMENTS",
105
+ CLOSED_BY_CLIENT = "CLOSED_BY_CLIENT"
106
+ }
107
+ }
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateIndividualClientDto = void 0;
4
+ var UpdateIndividualClientDto;
5
+ (function (UpdateIndividualClientDto) {
6
+ /**
7
+ * Activity status of the individual client
8
+ */
9
+ let activityStatus;
10
+ (function (activityStatus) {
11
+ activityStatus["ACTIVE"] = "ACTIVE";
12
+ activityStatus["NOT_ACTIVE"] = "NOT_ACTIVE";
13
+ })(activityStatus = UpdateIndividualClientDto.activityStatus || (UpdateIndividualClientDto.activityStatus = {}));
14
+ /**
15
+ * Account status of the individual client
16
+ */
17
+ let accountStatus;
18
+ (function (accountStatus) {
19
+ accountStatus["APPROVED"] = "APPROVED";
20
+ accountStatus["WAITING_FOR_REVIEW"] = "WAITING_FOR_REVIEW";
21
+ accountStatus["IN_REVIEW"] = "IN_REVIEW";
22
+ accountStatus["REJECTED"] = "REJECTED";
23
+ accountStatus["OFF_BOARDED"] = "OFF_BOARDED";
24
+ accountStatus["FROZEN"] = "FROZEN";
25
+ accountStatus["PENDING_DOCUMENTS"] = "PENDING_DOCUMENTS";
26
+ accountStatus["CLOSED_BY_CLIENT"] = "CLOSED_BY_CLIENT";
27
+ })(accountStatus = UpdateIndividualClientDto.accountStatus || (UpdateIndividualClientDto.accountStatus = {}));
28
+ })(UpdateIndividualClientDto || (exports.UpdateIndividualClientDto = UpdateIndividualClientDto = {}));
29
+ //# sourceMappingURL=UpdateIndividualClientDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UpdateIndividualClientDto.js","sourceRoot":"","sources":["../../models/UpdateIndividualClientDto.ts"],"names":[],"mappings":";;;AAyFA,IAAiB,yBAAyB,CAqBzC;AArBD,WAAiB,yBAAyB;IACtC;;OAEG;IACH,IAAY,cAGX;IAHD,WAAY,cAAc;QACtB,mCAAiB,CAAA;QACjB,2CAAyB,CAAA;IAC7B,CAAC,EAHW,cAAc,GAAd,wCAAc,KAAd,wCAAc,QAGzB;IACD;;OAEG;IACH,IAAY,aASX;IATD,WAAY,aAAa;QACrB,sCAAqB,CAAA;QACrB,0DAAyC,CAAA;QACzC,wCAAuB,CAAA;QACvB,sCAAqB,CAAA;QACrB,4CAA2B,CAAA;QAC3B,kCAAiB,CAAA;QACjB,wDAAuC,CAAA;QACvC,sDAAqC,CAAA;IACzC,CAAC,EATW,aAAa,GAAb,uCAAa,KAAb,uCAAa,QASxB;AACL,CAAC,EArBgB,yBAAyB,yCAAzB,yBAAyB,QAqBzC"}
@@ -0,0 +1,33 @@
1
+ import type { CorporateClientDto } from './CorporateClientDto';
2
+ import type { IndividualClientDto } from './IndividualClientDto';
3
+ import type { TransactionDto } from './TransactionDto';
4
+ export type WithdrawalOperationDto = {
5
+ /**
6
+ * Unique identifier of the withdrawal operation
7
+ */
8
+ id: string;
9
+ /**
10
+ * External reference ID for the withdrawal operation
11
+ */
12
+ referenceId?: string;
13
+ /**
14
+ * Identifier of the user who initiated the withdrawal
15
+ */
16
+ initiatedBy?: (CorporateClientDto | IndividualClientDto | string);
17
+ /**
18
+ * ISO timestamp when the withdrawal operation was initiated or reported to the platform
19
+ */
20
+ initiatedAt: string;
21
+ /**
22
+ * Transaction details or reference for the withdrawal
23
+ */
24
+ withdrawTransaction: TransactionDto;
25
+ /**
26
+ * ISO timestamp when the withdrawal operation was created
27
+ */
28
+ createdAt: string;
29
+ /**
30
+ * ISO timestamp when the withdrawal operation was last updated
31
+ */
32
+ updatedAt: string;
33
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=WithdrawalOperationDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WithdrawalOperationDto.js","sourceRoot":"","sources":["../../models/WithdrawalOperationDto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,48 @@
1
+ import type { AlertAssociationResponseDto } from '../models/AlertAssociationResponseDto';
2
+ import type { AlertDto } from '../models/AlertDto';
3
+ import type { CreateAlertDto } from '../models/CreateAlertDto';
4
+ import type { UpdateAlertDto } from '../models/UpdateAlertDto';
5
+ import type { CancelablePromise } from '../core/CancelablePromise';
6
+ import type { BaseHttpRequest } from '../core/BaseHttpRequest';
7
+ export declare class AlertsService {
8
+ readonly httpRequest: BaseHttpRequest;
9
+ constructor(httpRequest: BaseHttpRequest);
10
+ /**
11
+ * Create a new alert
12
+ * @param requestBody
13
+ * @returns AlertDto
14
+ * @throws ApiError
15
+ */
16
+ createAlert(requestBody: CreateAlertDto): CancelablePromise<AlertDto>;
17
+ /**
18
+ * Associate an alert with transactions
19
+ * @param alertId
20
+ * @param requestBody
21
+ * @returns AlertAssociationResponseDto
22
+ * @throws ApiError
23
+ */
24
+ associateAlertWithTransactions(alertId: string, requestBody: Array<string>): CancelablePromise<AlertAssociationResponseDto>;
25
+ /**
26
+ * Associate an alert with clients
27
+ * @param alertId
28
+ * @param requestBody
29
+ * @returns AlertAssociationResponseDto
30
+ * @throws ApiError
31
+ */
32
+ associateAlertWithClients(alertId: string, requestBody: Array<string>): CancelablePromise<AlertAssociationResponseDto>;
33
+ /**
34
+ * Update an alert
35
+ * @param alertId
36
+ * @param requestBody
37
+ * @returns AlertDto
38
+ * @throws ApiError
39
+ */
40
+ updateAlert(alertId: string, requestBody: UpdateAlertDto): CancelablePromise<AlertDto>;
41
+ /**
42
+ * Get an alert by ID
43
+ * @param alertId
44
+ * @returns AlertDto
45
+ * @throws ApiError
46
+ */
47
+ getAlert(alertId: string): CancelablePromise<AlertDto>;
48
+ }