@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,100 @@
1
+ import type { AlertCustomFieldDataDto } from './AlertCustomFieldDataDto';
2
+ import type { AlertSourceDto } from './AlertSourceDto';
3
+ import type { AlertStatusData } from './AlertStatusData';
4
+ import type { AssociatedClientDto } from './AssociatedClientDto';
5
+ import type { AssociatedTransactionDto } from './AssociatedTransactionDto';
6
+ export type AlertDto = {
7
+ /**
8
+ * The ID of the alert
9
+ */
10
+ id: string;
11
+ /**
12
+ * The reference ID of the alert
13
+ */
14
+ referenceId?: string;
15
+ /**
16
+ * The ID of the assignee of the alert
17
+ */
18
+ assigneeId?: string;
19
+ /**
20
+ * The category of the alert
21
+ */
22
+ category: AlertDto.category;
23
+ /**
24
+ * The priority of the alert
25
+ */
26
+ priority: AlertDto.priority;
27
+ /**
28
+ * The status of the alert
29
+ */
30
+ status: AlertDto.status;
31
+ /**
32
+ * The description of the alert
33
+ */
34
+ description: string;
35
+ /**
36
+ * ISO Date when the alert was raised
37
+ */
38
+ raisedAt: string;
39
+ /**
40
+ * The source of the alert
41
+ */
42
+ source: AlertSourceDto;
43
+ /**
44
+ * The custom fields of the alert
45
+ */
46
+ customFields?: Record<string, AlertCustomFieldDataDto>;
47
+ /**
48
+ * The status history of the alert
49
+ */
50
+ statusHistory: Array<AlertStatusData>;
51
+ /**
52
+ * The transactions associated with the alert
53
+ */
54
+ associatedTransactions: Array<AssociatedTransactionDto>;
55
+ /**
56
+ * The clients associated with the alert
57
+ */
58
+ associatedClients: Array<AssociatedClientDto>;
59
+ /**
60
+ * ISO Date when the alert was created
61
+ */
62
+ createdAt: string;
63
+ /**
64
+ * ISO Date when the alert was updated
65
+ */
66
+ updatedAt: string;
67
+ };
68
+ export declare namespace AlertDto {
69
+ /**
70
+ * The category of the alert
71
+ */
72
+ enum category {
73
+ KYC = "KYC",
74
+ KYB = "KYB",
75
+ TRANSACTION_MONITORING = "TRANSACTION_MONITORING",
76
+ ONCHAIN_TRANSACTION_MONITORING = "ONCHAIN_TRANSACTION_MONITORING",
77
+ SCREENING = "SCREENING",
78
+ FRAUD = "FRAUD",
79
+ PERIODIC_REVIEW = "PERIODIC_REVIEW",
80
+ EDD = "EDD",
81
+ OTHER = "OTHER"
82
+ }
83
+ /**
84
+ * The priority of the alert
85
+ */
86
+ enum priority {
87
+ LOW = "LOW",
88
+ MEDIUM = "MEDIUM",
89
+ HIGH = "HIGH"
90
+ }
91
+ /**
92
+ * The status of the alert
93
+ */
94
+ enum status {
95
+ NEW = "NEW",
96
+ IN_REVIEW = "IN_REVIEW",
97
+ ESCALATED = "ESCALATED",
98
+ RESOLVED = "RESOLVED"
99
+ }
100
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AlertDto = void 0;
4
+ var AlertDto;
5
+ (function (AlertDto) {
6
+ /**
7
+ * The 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 = AlertDto.category || (AlertDto.category = {}));
21
+ /**
22
+ * The priority of the alert
23
+ */
24
+ let priority;
25
+ (function (priority) {
26
+ priority["LOW"] = "LOW";
27
+ priority["MEDIUM"] = "MEDIUM";
28
+ priority["HIGH"] = "HIGH";
29
+ })(priority = AlertDto.priority || (AlertDto.priority = {}));
30
+ /**
31
+ * The 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 = AlertDto.status || (AlertDto.status = {}));
40
+ })(AlertDto || (exports.AlertDto = AlertDto = {}));
41
+ //# sourceMappingURL=AlertDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AlertDto.js","sourceRoot":"","sources":["../../models/AlertDto.ts"],"names":[],"mappings":";;;AAuEA,IAAiB,QAAQ,CAgCxB;AAhCD,WAAiB,QAAQ;IACrB;;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,iBAAQ,KAAR,iBAAQ,QAUnB;IACD;;OAEG;IACH,IAAY,QAIX;IAJD,WAAY,QAAQ;QAChB,uBAAW,CAAA;QACX,6BAAiB,CAAA;QACjB,yBAAa,CAAA;IACjB,CAAC,EAJW,QAAQ,GAAR,iBAAQ,KAAR,iBAAQ,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,eAAM,KAAN,eAAM,QAKjB;AACL,CAAC,EAhCgB,QAAQ,wBAAR,QAAQ,QAgCxB"}
@@ -0,0 +1,18 @@
1
+ export type AlertSourceDto = {
2
+ /**
3
+ * The vendor that generated the alert
4
+ */
5
+ vendor?: string;
6
+ /**
7
+ * The ID of the alert in the vendor system
8
+ */
9
+ vendorAlertId?: string;
10
+ /**
11
+ * Additional data provided by the vendor
12
+ */
13
+ vendorData?: Record<string, any>;
14
+ /**
15
+ * Link to the alert details in the vendor system
16
+ */
17
+ link?: string;
18
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=AlertSourceDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AlertSourceDto.js","sourceRoot":"","sources":["../../models/AlertSourceDto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,25 @@
1
+ export type AlertStatusData = {
2
+ /**
3
+ * The status of the alert
4
+ */
5
+ status: AlertStatusData.status;
6
+ /**
7
+ * ISO Date when the alert was evaluated
8
+ */
9
+ evaluatedAt: string;
10
+ /**
11
+ * The ID of the user who evaluated the alert
12
+ */
13
+ evaluatedBy: string;
14
+ };
15
+ export declare namespace AlertStatusData {
16
+ /**
17
+ * The status of the alert
18
+ */
19
+ enum status {
20
+ NEW = "NEW",
21
+ IN_REVIEW = "IN_REVIEW",
22
+ ESCALATED = "ESCALATED",
23
+ RESOLVED = "RESOLVED"
24
+ }
25
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AlertStatusData = void 0;
4
+ var AlertStatusData;
5
+ (function (AlertStatusData) {
6
+ /**
7
+ * The status of the alert
8
+ */
9
+ let status;
10
+ (function (status) {
11
+ status["NEW"] = "NEW";
12
+ status["IN_REVIEW"] = "IN_REVIEW";
13
+ status["ESCALATED"] = "ESCALATED";
14
+ status["RESOLVED"] = "RESOLVED";
15
+ })(status = AlertStatusData.status || (AlertStatusData.status = {}));
16
+ })(AlertStatusData || (exports.AlertStatusData = AlertStatusData = {}));
17
+ //# sourceMappingURL=AlertStatusData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AlertStatusData.js","sourceRoot":"","sources":["../../models/AlertStatusData.ts"],"names":[],"mappings":";;;AAkBA,IAAiB,eAAe,CAU/B;AAVD,WAAiB,eAAe;IAC5B;;OAEG;IACH,IAAY,MAKX;IALD,WAAY,MAAM;QACd,qBAAW,CAAA;QACX,iCAAuB,CAAA;QACvB,iCAAuB,CAAA;QACvB,+BAAqB,CAAA;IACzB,CAAC,EALW,MAAM,GAAN,sBAAM,KAAN,sBAAM,QAKjB;AACL,CAAC,EAVgB,eAAe,+BAAf,eAAe,QAU/B"}
@@ -0,0 +1,10 @@
1
+ export type AssociatedClientDto = {
2
+ /**
3
+ * The ID of the client
4
+ */
5
+ id: string;
6
+ /**
7
+ * The reference ID of the client
8
+ */
9
+ referenceId?: string;
10
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=AssociatedClientDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AssociatedClientDto.js","sourceRoot":"","sources":["../../models/AssociatedClientDto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ export type AssociatedTransactionDto = {
2
+ /**
3
+ * The ID of the transaction
4
+ */
5
+ id: string;
6
+ /**
7
+ * The reference ID of the transaction
8
+ */
9
+ referenceId?: string;
10
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=AssociatedTransactionDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AssociatedTransactionDto.js","sourceRoot":"","sources":["../../models/AssociatedTransactionDto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,28 @@
1
+ export type ClientRiskDto = {
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?: ClientRiskDto.level;
10
+ /**
11
+ * Explanation for the assigned risk score
12
+ */
13
+ reason?: string;
14
+ /**
15
+ * ISO timestamp when the risk was calculated
16
+ */
17
+ calculatedAt: string;
18
+ };
19
+ export declare namespace ClientRiskDto {
20
+ /**
21
+ * Risk level label based on the score. If you don't supply a level, the score will be used to calculate the level
22
+ */
23
+ enum level {
24
+ LOW = "LOW",
25
+ MEDIUM = "MEDIUM",
26
+ HIGH = "HIGH"
27
+ }
28
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ClientRiskDto = void 0;
4
+ var ClientRiskDto;
5
+ (function (ClientRiskDto) {
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 = ClientRiskDto.level || (ClientRiskDto.level = {}));
15
+ })(ClientRiskDto || (exports.ClientRiskDto = ClientRiskDto = {}));
16
+ //# sourceMappingURL=ClientRiskDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ClientRiskDto.js","sourceRoot":"","sources":["../../models/ClientRiskDto.ts"],"names":[],"mappings":";;;AAsBA,IAAiB,aAAa,CAS7B;AATD,WAAiB,aAAa;IAC1B;;OAEG;IACH,IAAY,KAIX;IAJD,WAAY,KAAK;QACb,oBAAW,CAAA;QACX,0BAAiB,CAAA;QACjB,sBAAa,CAAA;IACjB,CAAC,EAJW,KAAK,GAAL,mBAAK,KAAL,mBAAK,QAIhB;AACL,CAAC,EATgB,aAAa,6BAAb,aAAa,QAS7B"}
@@ -0,0 +1,11 @@
1
+ import type { CorporateClientAddressLineDto } from './CorporateClientAddressLineDto';
2
+ export type CorporateClientAddressDto = {
3
+ /**
4
+ * Registration address details of the corporate client
5
+ */
6
+ registrationAddress?: CorporateClientAddressLineDto;
7
+ /**
8
+ * Business address details if different from registration address
9
+ */
10
+ businessAddress?: CorporateClientAddressLineDto;
11
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=CorporateClientAddressDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CorporateClientAddressDto.js","sourceRoot":"","sources":["../../models/CorporateClientAddressDto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,22 @@
1
+ export type CorporateClientAddressLineDto = {
2
+ /**
3
+ * Country code of the address
4
+ */
5
+ country?: string;
6
+ /**
7
+ * City name
8
+ */
9
+ city?: string;
10
+ /**
11
+ * Postal code
12
+ */
13
+ postalCode?: string;
14
+ /**
15
+ * First line of the address
16
+ */
17
+ addressLine1?: string;
18
+ /**
19
+ * Second line of the address (optional)
20
+ */
21
+ addressLine2?: string;
22
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=CorporateClientAddressLineDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CorporateClientAddressLineDto.js","sourceRoot":"","sources":["../../models/CorporateClientAddressLineDto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ export type CorporateClientApplicationDto = {
2
+ /**
3
+ * The date when the client application was submitted
4
+ */
5
+ submittedAt?: string;
6
+ /**
7
+ * The date when the client was successfully onboarded
8
+ */
9
+ onboardedAt?: string;
10
+ /**
11
+ * ISO Date of the next scheduled periodic review
12
+ */
13
+ nextPeriodicReview?: string;
14
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=CorporateClientApplicationDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CorporateClientApplicationDto.js","sourceRoot":"","sources":["../../models/CorporateClientApplicationDto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ export type CorporateClientBusinessDto = {
2
+ /**
3
+ * Primary industry sector of the business
4
+ */
5
+ industry?: string;
6
+ /**
7
+ * Description of the business
8
+ */
9
+ description?: string;
10
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=CorporateClientBusinessDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CorporateClientBusinessDto.js","sourceRoot":"","sources":["../../models/CorporateClientBusinessDto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,26 @@
1
+ export type CorporateClientCustomFieldDataDto = {
2
+ /**
3
+ * Label of the custom field
4
+ */
5
+ label: string;
6
+ /**
7
+ * Value of the custom field. It can be a string, number, boolean. If you'd like to submit a country code, use the ISO 3166-1 alpha-2 code. If you'd like to submit a date, use the ISO 8601 format.
8
+ */
9
+ value: (string | number | boolean);
10
+ /**
11
+ * Category of the custom field
12
+ */
13
+ category: CorporateClientCustomFieldDataDto.category;
14
+ };
15
+ export declare namespace CorporateClientCustomFieldDataDto {
16
+ /**
17
+ * Category of the custom field
18
+ */
19
+ enum category {
20
+ GENERAL = "GENERAL",
21
+ ADDRESS = "ADDRESS",
22
+ BUSINESS = "BUSINESS",
23
+ APPLICATION = "APPLICATION",
24
+ OTHER = "OTHER"
25
+ }
26
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CorporateClientCustomFieldDataDto = void 0;
4
+ var CorporateClientCustomFieldDataDto;
5
+ (function (CorporateClientCustomFieldDataDto) {
6
+ /**
7
+ * Category of the custom field
8
+ */
9
+ let category;
10
+ (function (category) {
11
+ category["GENERAL"] = "GENERAL";
12
+ category["ADDRESS"] = "ADDRESS";
13
+ category["BUSINESS"] = "BUSINESS";
14
+ category["APPLICATION"] = "APPLICATION";
15
+ category["OTHER"] = "OTHER";
16
+ })(category = CorporateClientCustomFieldDataDto.category || (CorporateClientCustomFieldDataDto.category = {}));
17
+ })(CorporateClientCustomFieldDataDto || (exports.CorporateClientCustomFieldDataDto = CorporateClientCustomFieldDataDto = {}));
18
+ //# sourceMappingURL=CorporateClientCustomFieldDataDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CorporateClientCustomFieldDataDto.js","sourceRoot":"","sources":["../../models/CorporateClientCustomFieldDataDto.ts"],"names":[],"mappings":";;;AAkBA,IAAiB,iCAAiC,CAWjD;AAXD,WAAiB,iCAAiC;IAC9C;;OAEG;IACH,IAAY,QAMX;IAND,WAAY,QAAQ;QAChB,+BAAmB,CAAA;QACnB,+BAAmB,CAAA;QACnB,iCAAqB,CAAA;QACrB,uCAA2B,CAAA;QAC3B,2BAAe,CAAA;IACnB,CAAC,EANW,QAAQ,GAAR,0CAAQ,KAAR,0CAAQ,QAMnB;AACL,CAAC,EAXgB,iCAAiC,iDAAjC,iCAAiC,QAWjD"}
@@ -0,0 +1,101 @@
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 { CorporateClientGeneralDto } from './CorporateClientGeneralDto';
6
+ export type CorporateClientDto = {
7
+ /**
8
+ * Unique identifier of the corporate client
9
+ */
10
+ id: string;
11
+ /**
12
+ * External reference ID for the client
13
+ */
14
+ referenceId?: string;
15
+ /**
16
+ * Current status of the client account
17
+ */
18
+ accountStatus: CorporateClientDto.accountStatus;
19
+ /**
20
+ * Current activity status of the client
21
+ */
22
+ activityStatus: CorporateClientDto.activityStatus;
23
+ /**
24
+ * Address information of the corporate client
25
+ */
26
+ address: CorporateClientAddressDto;
27
+ /**
28
+ * List of alert IDs associated with the client
29
+ */
30
+ alerts?: Array<string>;
31
+ /**
32
+ * Application and onboarding information
33
+ */
34
+ application: CorporateClientApplicationDto;
35
+ /**
36
+ * Business-related information
37
+ */
38
+ business: CorporateClientBusinessDto;
39
+ /**
40
+ * List of control measures applied to the client
41
+ */
42
+ controls?: Array<string>;
43
+ /**
44
+ * Current risk assessment of the client
45
+ */
46
+ currentRisk?: ClientRiskDto;
47
+ /**
48
+ * Onboarding risk assessment of the client
49
+ */
50
+ onboardingRisk?: ClientRiskDto;
51
+ /**
52
+ * Custom fields data for the client
53
+ */
54
+ customFields?: Record<string, any>;
55
+ /**
56
+ * List of financial operation IDs associated with the client
57
+ */
58
+ financialOperations?: Array<string>;
59
+ /**
60
+ * General information about the corporate client
61
+ */
62
+ general: CorporateClientGeneralDto;
63
+ /**
64
+ * Historical risk assessments of the client
65
+ */
66
+ riskHistory: Array<ClientRiskDto>;
67
+ /**
68
+ * Tags associated with the client
69
+ */
70
+ tags?: Array<string>;
71
+ /**
72
+ * ISO Date when the client record was created
73
+ */
74
+ createdAt: string;
75
+ /**
76
+ * ISO Date when the client record was last updated
77
+ */
78
+ updatedAt: string;
79
+ };
80
+ export declare namespace CorporateClientDto {
81
+ /**
82
+ * Current status of the client account
83
+ */
84
+ enum accountStatus {
85
+ APPROVED = "APPROVED",
86
+ WAITING_FOR_REVIEW = "WAITING_FOR_REVIEW",
87
+ IN_REVIEW = "IN_REVIEW",
88
+ REJECTED = "REJECTED",
89
+ OFF_BOARDED = "OFF_BOARDED",
90
+ FROZEN = "FROZEN",
91
+ PENDING_DOCUMENTS = "PENDING_DOCUMENTS",
92
+ CLOSED_BY_CLIENT = "CLOSED_BY_CLIENT"
93
+ }
94
+ /**
95
+ * Current activity status of the client
96
+ */
97
+ enum activityStatus {
98
+ ACTIVE = "ACTIVE",
99
+ NOT_ACTIVE = "NOT_ACTIVE"
100
+ }
101
+ }
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CorporateClientDto = void 0;
4
+ var CorporateClientDto;
5
+ (function (CorporateClientDto) {
6
+ /**
7
+ * Current status of the client account
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 = CorporateClientDto.accountStatus || (CorporateClientDto.accountStatus = {}));
20
+ /**
21
+ * Current activity status of the client
22
+ */
23
+ let activityStatus;
24
+ (function (activityStatus) {
25
+ activityStatus["ACTIVE"] = "ACTIVE";
26
+ activityStatus["NOT_ACTIVE"] = "NOT_ACTIVE";
27
+ })(activityStatus = CorporateClientDto.activityStatus || (CorporateClientDto.activityStatus = {}));
28
+ })(CorporateClientDto || (exports.CorporateClientDto = CorporateClientDto = {}));
29
+ //# sourceMappingURL=CorporateClientDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CorporateClientDto.js","sourceRoot":"","sources":["../../models/CorporateClientDto.ts"],"names":[],"mappings":";;;AAmFA,IAAiB,kBAAkB,CAqBlC;AArBD,WAAiB,kBAAkB;IAC/B;;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,gCAAa,KAAb,gCAAa,QASxB;IACD;;OAEG;IACH,IAAY,cAGX;IAHD,WAAY,cAAc;QACtB,mCAAiB,CAAA;QACjB,2CAAyB,CAAA;IAC7B,CAAC,EAHW,cAAc,GAAd,iCAAc,KAAd,iCAAc,QAGzB;AACL,CAAC,EArBgB,kBAAkB,kCAAlB,kBAAkB,QAqBlC"}
@@ -0,0 +1,14 @@
1
+ export type CorporateClientGeneralDto = {
2
+ /**
3
+ * Legal registered name of the corporate entity
4
+ */
5
+ legalEntityName?: string;
6
+ /**
7
+ * ISO Date when the company was incorporated
8
+ */
9
+ dateOfIncorporation?: string;
10
+ /**
11
+ * Country where the company is incorporated
12
+ */
13
+ countryOfIncorporation?: string;
14
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=CorporateClientGeneralDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CorporateClientGeneralDto.js","sourceRoot":"","sources":["../../models/CorporateClientGeneralDto.ts"],"names":[],"mappings":""}