@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,81 @@
1
+ import type { AlertCustomFieldDataDto } from './AlertCustomFieldDataDto';
2
+ import type { AlertSourceDto } from './AlertSourceDto';
3
+ export type CreateAlertDto = {
4
+ /**
5
+ * UUID of the user assigned to handle this alert
6
+ */
7
+ assigneeId?: string;
8
+ /**
9
+ * Category of the alert
10
+ */
11
+ category: CreateAlertDto.category;
12
+ /**
13
+ * Description of the alert
14
+ */
15
+ description: string;
16
+ /**
17
+ * Priority level of the alert
18
+ */
19
+ priority: CreateAlertDto.priority;
20
+ /**
21
+ * ISO timestamp when the alert was raised
22
+ */
23
+ raisedAt?: string;
24
+ /**
25
+ * External reference ID for the alert
26
+ */
27
+ referenceId: string;
28
+ /**
29
+ * Source information for the alert
30
+ */
31
+ source?: AlertSourceDto;
32
+ /**
33
+ * Current status of the alert
34
+ */
35
+ status: CreateAlertDto.status;
36
+ /**
37
+ * List of client IDs associated with this alert
38
+ */
39
+ associatedClients?: Array<string>;
40
+ /**
41
+ * List of transaction IDs associated with this alert
42
+ */
43
+ associatedTransactions?: Array<string>;
44
+ /**
45
+ * Custom fields data
46
+ */
47
+ customFields?: Record<string, AlertCustomFieldDataDto>;
48
+ };
49
+ export declare namespace CreateAlertDto {
50
+ /**
51
+ * Category of the alert
52
+ */
53
+ enum category {
54
+ KYC = "KYC",
55
+ KYB = "KYB",
56
+ TRANSACTION_MONITORING = "TRANSACTION_MONITORING",
57
+ ONCHAIN_TRANSACTION_MONITORING = "ONCHAIN_TRANSACTION_MONITORING",
58
+ SCREENING = "SCREENING",
59
+ FRAUD = "FRAUD",
60
+ PERIODIC_REVIEW = "PERIODIC_REVIEW",
61
+ EDD = "EDD",
62
+ OTHER = "OTHER"
63
+ }
64
+ /**
65
+ * Priority level of the alert
66
+ */
67
+ enum priority {
68
+ LOW = "LOW",
69
+ MEDIUM = "MEDIUM",
70
+ HIGH = "HIGH"
71
+ }
72
+ /**
73
+ * Current status of the alert
74
+ */
75
+ enum status {
76
+ NEW = "NEW",
77
+ IN_REVIEW = "IN_REVIEW",
78
+ ESCALATED = "ESCALATED",
79
+ RESOLVED = "RESOLVED"
80
+ }
81
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateAlertDto = void 0;
4
+ var CreateAlertDto;
5
+ (function (CreateAlertDto) {
6
+ /**
7
+ * Category of the alert
8
+ */
9
+ let category;
10
+ (function (category) {
11
+ category["KYC"] = "KYC";
12
+ category["KYB"] = "KYB";
13
+ category["TRANSACTION_MONITORING"] = "TRANSACTION_MONITORING";
14
+ category["ONCHAIN_TRANSACTION_MONITORING"] = "ONCHAIN_TRANSACTION_MONITORING";
15
+ category["SCREENING"] = "SCREENING";
16
+ category["FRAUD"] = "FRAUD";
17
+ category["PERIODIC_REVIEW"] = "PERIODIC_REVIEW";
18
+ category["EDD"] = "EDD";
19
+ category["OTHER"] = "OTHER";
20
+ })(category = CreateAlertDto.category || (CreateAlertDto.category = {}));
21
+ /**
22
+ * Priority level of the alert
23
+ */
24
+ let priority;
25
+ (function (priority) {
26
+ priority["LOW"] = "LOW";
27
+ priority["MEDIUM"] = "MEDIUM";
28
+ priority["HIGH"] = "HIGH";
29
+ })(priority = CreateAlertDto.priority || (CreateAlertDto.priority = {}));
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 = CreateAlertDto.status || (CreateAlertDto.status = {}));
40
+ })(CreateAlertDto || (exports.CreateAlertDto = CreateAlertDto = {}));
41
+ //# sourceMappingURL=CreateAlertDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateAlertDto.js","sourceRoot":"","sources":["../../models/CreateAlertDto.ts"],"names":[],"mappings":";;;AAoDA,IAAiB,cAAc,CAgC9B;AAhCD,WAAiB,cAAc;IAC3B;;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,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,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,74 @@
1
+ import type { ClientRiskDto } from './ClientRiskDto';
2
+ import type { CorporateClientAddressDto } from './CorporateClientAddressDto';
3
+ import type { CorporateClientApplicationDto } from './CorporateClientApplicationDto';
4
+ import type { CorporateClientBusinessDto } from './CorporateClientBusinessDto';
5
+ import type { CorporateClientCustomFieldDataDto } from './CorporateClientCustomFieldDataDto';
6
+ import type { CorporateClientGeneralDto } from './CorporateClientGeneralDto';
7
+ export type CreateCorporateClientDto = {
8
+ /**
9
+ * External reference ID for the corporate client
10
+ */
11
+ referenceId: string;
12
+ /**
13
+ * Current account status of the corporate client
14
+ */
15
+ accountStatus?: CreateCorporateClientDto.accountStatus;
16
+ /**
17
+ * Current activity status of the corporate client
18
+ */
19
+ activityStatus?: CreateCorporateClientDto.activityStatus;
20
+ /**
21
+ * Historical risk assessments of the corporate client
22
+ */
23
+ riskHistory?: Array<ClientRiskDto>;
24
+ /**
25
+ * Tags associated with the corporate client
26
+ */
27
+ tags?: Array<string>;
28
+ /**
29
+ * Control measures applied to the corporate client
30
+ */
31
+ controls?: Array<string>;
32
+ /**
33
+ * General information about the corporate client
34
+ */
35
+ general?: CorporateClientGeneralDto;
36
+ /**
37
+ * Address information of the corporate client
38
+ */
39
+ address?: CorporateClientAddressDto;
40
+ /**
41
+ * Application information of the corporate client
42
+ */
43
+ application?: CorporateClientApplicationDto;
44
+ /**
45
+ * Business information of the corporate client
46
+ */
47
+ business?: CorporateClientBusinessDto;
48
+ /**
49
+ * Custom fields data for the corporate client
50
+ */
51
+ customFields?: Record<string, CorporateClientCustomFieldDataDto>;
52
+ };
53
+ export declare namespace CreateCorporateClientDto {
54
+ /**
55
+ * Current account status of the corporate client
56
+ */
57
+ enum accountStatus {
58
+ APPROVED = "APPROVED",
59
+ WAITING_FOR_REVIEW = "WAITING_FOR_REVIEW",
60
+ IN_REVIEW = "IN_REVIEW",
61
+ REJECTED = "REJECTED",
62
+ OFF_BOARDED = "OFF_BOARDED",
63
+ FROZEN = "FROZEN",
64
+ PENDING_DOCUMENTS = "PENDING_DOCUMENTS",
65
+ CLOSED_BY_CLIENT = "CLOSED_BY_CLIENT"
66
+ }
67
+ /**
68
+ * Current activity status of the corporate client
69
+ */
70
+ enum activityStatus {
71
+ ACTIVE = "ACTIVE",
72
+ NOT_ACTIVE = "NOT_ACTIVE"
73
+ }
74
+ }
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateCorporateClientDto = void 0;
4
+ var CreateCorporateClientDto;
5
+ (function (CreateCorporateClientDto) {
6
+ /**
7
+ * Current account status of the corporate client
8
+ */
9
+ let accountStatus;
10
+ (function (accountStatus) {
11
+ accountStatus["APPROVED"] = "APPROVED";
12
+ accountStatus["WAITING_FOR_REVIEW"] = "WAITING_FOR_REVIEW";
13
+ accountStatus["IN_REVIEW"] = "IN_REVIEW";
14
+ accountStatus["REJECTED"] = "REJECTED";
15
+ accountStatus["OFF_BOARDED"] = "OFF_BOARDED";
16
+ accountStatus["FROZEN"] = "FROZEN";
17
+ accountStatus["PENDING_DOCUMENTS"] = "PENDING_DOCUMENTS";
18
+ accountStatus["CLOSED_BY_CLIENT"] = "CLOSED_BY_CLIENT";
19
+ })(accountStatus = CreateCorporateClientDto.accountStatus || (CreateCorporateClientDto.accountStatus = {}));
20
+ /**
21
+ * Current activity status of the corporate client
22
+ */
23
+ let activityStatus;
24
+ (function (activityStatus) {
25
+ activityStatus["ACTIVE"] = "ACTIVE";
26
+ activityStatus["NOT_ACTIVE"] = "NOT_ACTIVE";
27
+ })(activityStatus = CreateCorporateClientDto.activityStatus || (CreateCorporateClientDto.activityStatus = {}));
28
+ })(CreateCorporateClientDto || (exports.CreateCorporateClientDto = CreateCorporateClientDto = {}));
29
+ //# sourceMappingURL=CreateCorporateClientDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateCorporateClientDto.js","sourceRoot":"","sources":["../../models/CreateCorporateClientDto.ts"],"names":[],"mappings":";;;AAwDA,IAAiB,wBAAwB,CAqBxC;AArBD,WAAiB,wBAAwB;IACrC;;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;IACD;;OAEG;IACH,IAAY,cAGX;IAHD,WAAY,cAAc;QACtB,mCAAiB,CAAA;QACjB,2CAAyB,CAAA;IAC7B,CAAC,EAHW,cAAc,GAAd,uCAAc,KAAd,uCAAc,QAGzB;AACL,CAAC,EArBgB,wBAAwB,wCAAxB,wBAAwB,QAqBxC"}
@@ -0,0 +1,19 @@
1
+ import type { CreateTransactionDto } from './CreateTransactionDto';
2
+ export type CreateDepositOperationDto = {
3
+ /**
4
+ * External reference ID for the deposit operation
5
+ */
6
+ referenceId: string;
7
+ /**
8
+ * UUID of the user who initiated the deposit
9
+ */
10
+ initiatedBy?: string;
11
+ /**
12
+ * Date and time the deposit was initiated. Defaults to current date and time if not provided
13
+ */
14
+ initiatedAt?: string;
15
+ /**
16
+ * Transaction details for the deposit
17
+ */
18
+ depositTransaction: CreateTransactionDto;
19
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=CreateDepositOperationDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateDepositOperationDto.js","sourceRoot":"","sources":["../../models/CreateDepositOperationDto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,99 @@
1
+ import type { AdverseMediaDto } from './AdverseMediaDto';
2
+ import type { ClientRiskDto } from './ClientRiskDto';
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 CreateIndividualClientDto = {
13
+ /**
14
+ * External reference ID for the individual client
15
+ */
16
+ referenceId: string;
17
+ /**
18
+ * Current activity status of the individual client
19
+ */
20
+ activityStatus?: CreateIndividualClientDto.activityStatus;
21
+ /**
22
+ * Current account status of the individual client
23
+ */
24
+ accountStatus?: CreateIndividualClientDto.accountStatus;
25
+ /**
26
+ * Tags associated with the individual client
27
+ */
28
+ tags?: Array<string>;
29
+ /**
30
+ * Control measures applied to the individual client
31
+ */
32
+ controls?: Array<string>;
33
+ /**
34
+ * Address information of the individual client
35
+ */
36
+ address?: IndividualClientAddressDto;
37
+ /**
38
+ * Adverse media information for the individual client
39
+ */
40
+ adverseMedia?: AdverseMediaDto;
41
+ /**
42
+ * Application information of the individual client
43
+ */
44
+ application?: IndividualClientApplicationInformationDto;
45
+ /**
46
+ * Risk history of the individual client
47
+ */
48
+ riskHistory?: Array<ClientRiskDto>;
49
+ /**
50
+ * Contact information of the individual client
51
+ */
52
+ contact?: IndividualClientContactInformationDto;
53
+ /**
54
+ * Custom fields data for the client
55
+ */
56
+ customFields?: Record<string, IndividualClientCustomFieldDataDto>;
57
+ /**
58
+ * Financial information of the individual client
59
+ */
60
+ financial?: IndividualClientFinancialInformationDto;
61
+ /**
62
+ * General information about the individual client
63
+ */
64
+ general?: IndividualClientGeneralInformationDto;
65
+ /**
66
+ * Political exposure information for the individual client
67
+ */
68
+ politicalExposure?: PoliticalExposureDto;
69
+ /**
70
+ * Sanctions information for the individual client
71
+ */
72
+ sanctions?: SanctionsDto;
73
+ /**
74
+ * Work information of the individual client
75
+ */
76
+ work?: IndividualClientWorkInformationDto;
77
+ };
78
+ export declare namespace CreateIndividualClientDto {
79
+ /**
80
+ * Current activity status of the individual client
81
+ */
82
+ enum activityStatus {
83
+ ACTIVE = "ACTIVE",
84
+ NOT_ACTIVE = "NOT_ACTIVE"
85
+ }
86
+ /**
87
+ * Current account status of the individual client
88
+ */
89
+ enum accountStatus {
90
+ APPROVED = "APPROVED",
91
+ WAITING_FOR_REVIEW = "WAITING_FOR_REVIEW",
92
+ IN_REVIEW = "IN_REVIEW",
93
+ REJECTED = "REJECTED",
94
+ OFF_BOARDED = "OFF_BOARDED",
95
+ FROZEN = "FROZEN",
96
+ PENDING_DOCUMENTS = "PENDING_DOCUMENTS",
97
+ CLOSED_BY_CLIENT = "CLOSED_BY_CLIENT"
98
+ }
99
+ }
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateIndividualClientDto = void 0;
4
+ var CreateIndividualClientDto;
5
+ (function (CreateIndividualClientDto) {
6
+ /**
7
+ * Current 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 = CreateIndividualClientDto.activityStatus || (CreateIndividualClientDto.activityStatus = {}));
14
+ /**
15
+ * Current 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 = CreateIndividualClientDto.accountStatus || (CreateIndividualClientDto.accountStatus = {}));
28
+ })(CreateIndividualClientDto || (exports.CreateIndividualClientDto = CreateIndividualClientDto = {}));
29
+ //# sourceMappingURL=CreateIndividualClientDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateIndividualClientDto.js","sourceRoot":"","sources":["../../models/CreateIndividualClientDto.ts"],"names":[],"mappings":";;;AAiFA,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,60 @@
1
+ import type { ClientRiskDto } from './ClientRiskDto';
2
+ import type { IndividualClientCustomFieldDataDto } from './IndividualClientCustomFieldDataDto';
3
+ export type CreateIndividualClientResponseDto = {
4
+ /**
5
+ * Unique identifier of the client
6
+ */
7
+ id: string;
8
+ /**
9
+ * External reference ID for the individual client
10
+ */
11
+ referenceId?: string;
12
+ /**
13
+ * Created at timestamp of the individual client
14
+ */
15
+ createdAt?: string;
16
+ /**
17
+ * Updated at timestamp of the individual client
18
+ */
19
+ updatedAt?: string;
20
+ /**
21
+ * Current activity status of the individual client
22
+ */
23
+ activityStatus?: CreateIndividualClientResponseDto.activityStatus;
24
+ /**
25
+ * Current account status of the individual client
26
+ */
27
+ accountStatus?: CreateIndividualClientResponseDto.accountStatus;
28
+ /**
29
+ * Custom fields data for the individual client
30
+ */
31
+ customFields?: Record<string, IndividualClientCustomFieldDataDto>;
32
+ /**
33
+ * Current risk assessment of the individual client
34
+ */
35
+ currentRisk?: ClientRiskDto;
36
+ /**
37
+ * Risk history of the individual client
38
+ */
39
+ riskHistory?: Array<ClientRiskDto>;
40
+ };
41
+ export declare namespace CreateIndividualClientResponseDto {
42
+ /**
43
+ * Current activity status of the individual client
44
+ */
45
+ enum activityStatus {
46
+ ACTIVE = "ACTIVE",
47
+ NOT_ACTIVE = "NOT_ACTIVE"
48
+ }
49
+ /**
50
+ * Current account status of the individual client
51
+ */
52
+ enum accountStatus {
53
+ APPROVED = "APPROVED",
54
+ WAITING_FOR_REVIEW = "WAITING_FOR_REVIEW",
55
+ IN_REVIEW = "IN_REVIEW",
56
+ REJECTED = "REJECTED",
57
+ OFF_BOARDED = "OFF_BOARDED",
58
+ FROZEN = "FROZEN"
59
+ }
60
+ }
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateIndividualClientResponseDto = void 0;
4
+ var CreateIndividualClientResponseDto;
5
+ (function (CreateIndividualClientResponseDto) {
6
+ /**
7
+ * Current 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 = CreateIndividualClientResponseDto.activityStatus || (CreateIndividualClientResponseDto.activityStatus = {}));
14
+ /**
15
+ * Current 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 = CreateIndividualClientResponseDto.accountStatus || (CreateIndividualClientResponseDto.accountStatus = {}));
26
+ })(CreateIndividualClientResponseDto || (exports.CreateIndividualClientResponseDto = CreateIndividualClientResponseDto = {}));
27
+ //# sourceMappingURL=CreateIndividualClientResponseDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateIndividualClientResponseDto.js","sourceRoot":"","sources":["../../models/CreateIndividualClientResponseDto.ts"],"names":[],"mappings":";;;AA4CA,IAAiB,iCAAiC,CAmBjD;AAnBD,WAAiB,iCAAiC;IAC9C;;OAEG;IACH,IAAY,cAGX;IAHD,WAAY,cAAc;QACtB,mCAAiB,CAAA;QACjB,2CAAyB,CAAA;IAC7B,CAAC,EAHW,cAAc,GAAd,gDAAc,KAAd,gDAAc,QAGzB;IACD;;OAEG;IACH,IAAY,aAOX;IAPD,WAAY,aAAa;QACrB,sCAAqB,CAAA;QACrB,0DAAyC,CAAA;QACzC,wCAAuB,CAAA;QACvB,sCAAqB,CAAA;QACrB,4CAA2B,CAAA;QAC3B,kCAAiB,CAAA;IACrB,CAAC,EAPW,aAAa,GAAb,+CAAa,KAAb,+CAAa,QAOxB;AACL,CAAC,EAnBgB,iCAAiC,iDAAjC,iCAAiC,QAmBjD"}
@@ -0,0 +1,24 @@
1
+ export type CreateOrUpdateRiskDto = {
2
+ /**
3
+ * Risk score value for the client. The score is a number between 0 and 100. 0-49 is low, 50-74 is medium, 75-100 is high
4
+ */
5
+ score: number;
6
+ /**
7
+ * Risk level label based on the score. If you don't supply a level, the score will be used to calculate the level
8
+ */
9
+ level?: CreateOrUpdateRiskDto.level;
10
+ /**
11
+ * Explanation for the assigned risk score
12
+ */
13
+ reason?: string;
14
+ };
15
+ export declare namespace CreateOrUpdateRiskDto {
16
+ /**
17
+ * Risk level label based on the score. If you don't supply a level, the score will be used to calculate the level
18
+ */
19
+ enum level {
20
+ LOW = "LOW",
21
+ MEDIUM = "MEDIUM",
22
+ HIGH = "HIGH"
23
+ }
24
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateOrUpdateRiskDto = void 0;
4
+ var CreateOrUpdateRiskDto;
5
+ (function (CreateOrUpdateRiskDto) {
6
+ /**
7
+ * Risk level label based on the score. If you don't supply a level, the score will be used to calculate the level
8
+ */
9
+ let level;
10
+ (function (level) {
11
+ level["LOW"] = "LOW";
12
+ level["MEDIUM"] = "MEDIUM";
13
+ level["HIGH"] = "HIGH";
14
+ })(level = CreateOrUpdateRiskDto.level || (CreateOrUpdateRiskDto.level = {}));
15
+ })(CreateOrUpdateRiskDto || (exports.CreateOrUpdateRiskDto = CreateOrUpdateRiskDto = {}));
16
+ //# sourceMappingURL=CreateOrUpdateRiskDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateOrUpdateRiskDto.js","sourceRoot":"","sources":["../../models/CreateOrUpdateRiskDto.ts"],"names":[],"mappings":";;;AAkBA,IAAiB,qBAAqB,CASrC;AATD,WAAiB,qBAAqB;IAClC;;OAEG;IACH,IAAY,KAIX;IAJD,WAAY,KAAK;QACb,oBAAW,CAAA;QACX,0BAAiB,CAAA;QACjB,sBAAa,CAAA;IACjB,CAAC,EAJW,KAAK,GAAL,2BAAK,KAAL,2BAAK,QAIhB;AACL,CAAC,EATgB,qBAAqB,qCAArB,qBAAqB,QASrC"}
@@ -0,0 +1,48 @@
1
+ import type { CreateTransactionDto } from './CreateTransactionDto';
2
+ export type CreateTradeOperationDto = {
3
+ /**
4
+ * string of the user who initiated this trade
5
+ */
6
+ initiatedBy?: string;
7
+ /**
8
+ * Date and time of the trade operation. Defaults to current date and time if not provided
9
+ */
10
+ initiatedAt?: string;
11
+ /**
12
+ * External reference ID for the trade operation
13
+ */
14
+ referenceId: string;
15
+ /**
16
+ * Transactions for the trade
17
+ */
18
+ transactions: Array<CreateTransactionDto>;
19
+ /**
20
+ * Type of the trade
21
+ */
22
+ tradeType: CreateTradeOperationDto.tradeType;
23
+ /**
24
+ * Price of the trade
25
+ */
26
+ price: number;
27
+ /**
28
+ * Quantity of the trade
29
+ */
30
+ quantity: number;
31
+ /**
32
+ * Base asset of the trade
33
+ */
34
+ instrumentBaseAsset: string;
35
+ /**
36
+ * Quote asset of the trade
37
+ */
38
+ instrumentQuoteAsset: string;
39
+ };
40
+ export declare namespace CreateTradeOperationDto {
41
+ /**
42
+ * Type of the trade
43
+ */
44
+ enum tradeType {
45
+ BUY = "BUY",
46
+ SELL = "SELL"
47
+ }
48
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateTradeOperationDto = void 0;
4
+ var CreateTradeOperationDto;
5
+ (function (CreateTradeOperationDto) {
6
+ /**
7
+ * Type of the trade
8
+ */
9
+ let tradeType;
10
+ (function (tradeType) {
11
+ tradeType["BUY"] = "BUY";
12
+ tradeType["SELL"] = "SELL";
13
+ })(tradeType = CreateTradeOperationDto.tradeType || (CreateTradeOperationDto.tradeType = {}));
14
+ })(CreateTradeOperationDto || (exports.CreateTradeOperationDto = CreateTradeOperationDto = {}));
15
+ //# sourceMappingURL=CreateTradeOperationDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateTradeOperationDto.js","sourceRoot":"","sources":["../../models/CreateTradeOperationDto.ts"],"names":[],"mappings":";;;AA2CA,IAAiB,uBAAuB,CAQvC;AARD,WAAiB,uBAAuB;IACpC;;OAEG;IACH,IAAY,SAGX;IAHD,WAAY,SAAS;QACjB,wBAAW,CAAA;QACX,0BAAa,CAAA;IACjB,CAAC,EAHW,SAAS,GAAT,iCAAS,KAAT,iCAAS,QAGpB;AACL,CAAC,EARgB,uBAAuB,uCAAvB,uBAAuB,QAQvC"}
@@ -0,0 +1,50 @@
1
+ import type { CreateTransactionSourceOrDestinationClientDto } from './CreateTransactionSourceOrDestinationClientDto';
2
+ import type { TransactionAmountDto } from './TransactionAmountDto';
3
+ import type { TransactionCustomFieldDto } from './TransactionCustomFieldDto';
4
+ import type { TransactionStatusDto } from './TransactionStatusDto';
5
+ export type CreateTransactionDto = {
6
+ /**
7
+ * External reference ID for the transaction
8
+ */
9
+ referenceId: string;
10
+ /**
11
+ * Date and time of the transaction
12
+ */
13
+ initiatedAt?: string;
14
+ /**
15
+ * Blockchain transaction hash
16
+ */
17
+ txHash?: string;
18
+ /**
19
+ * History of transaction statuses
20
+ */
21
+ statusHistory?: Array<TransactionStatusDto>;
22
+ /**
23
+ * The amount of the transaction in the currency of the transaction
24
+ */
25
+ amount: TransactionAmountDto;
26
+ /**
27
+ * Amount converted to other currencies
28
+ */
29
+ convertedAmount?: TransactionAmountDto;
30
+ /**
31
+ * Source of the transaction
32
+ */
33
+ from?: CreateTransactionSourceOrDestinationClientDto;
34
+ /**
35
+ * Destination of the transaction
36
+ */
37
+ to?: CreateTransactionSourceOrDestinationClientDto;
38
+ /**
39
+ * Identifier of the blockchain network
40
+ */
41
+ blockchainNetworkId?: string;
42
+ /**
43
+ * Method used for payment
44
+ */
45
+ paymentMethod?: string;
46
+ /**
47
+ * Custom fields data for the client
48
+ */
49
+ customFields?: Record<string, TransactionCustomFieldDto>;
50
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=CreateTransactionDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateTransactionDto.js","sourceRoot":"","sources":["../../models/CreateTransactionDto.ts"],"names":[],"mappings":""}