@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,10 @@
1
+ export type CreateTransactionSourceOrDestinationClientDto = {
2
+ /**
3
+ * Client UUID associated with the transaction
4
+ */
5
+ client?: string;
6
+ /**
7
+ * Blockchain wallet address
8
+ */
9
+ walletAddress?: string;
10
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=CreateTransactionSourceOrDestinationClientDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateTransactionSourceOrDestinationClientDto.js","sourceRoot":"","sources":["../../models/CreateTransactionSourceOrDestinationClientDto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,19 @@
1
+ import type { CreateTransactionDto } from './CreateTransactionDto';
2
+ export type CreateWithdrawalOperationDto = {
3
+ /**
4
+ * External reference ID for the withdrawal operation
5
+ */
6
+ referenceId: string;
7
+ /**
8
+ * string of the user who initiated the withdrawal
9
+ */
10
+ initiatedBy?: string;
11
+ /**
12
+ * Date and time of the withdrawal operation. Defaults to current date and time if not provided
13
+ */
14
+ initiatedAt?: string;
15
+ /**
16
+ * Transaction details
17
+ */
18
+ withdrawTransaction: CreateTransactionDto;
19
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=CreateWithdrawalOperationDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateWithdrawalOperationDto.js","sourceRoot":"","sources":["../../models/CreateWithdrawalOperationDto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
1
+ import type { OperationInitiatorDto } from './OperationInitiatorDto';
2
+ import type { TransactionDto } from './TransactionDto';
3
+ export type DepositOperationDto = {
4
+ /**
5
+ * Unique identifier of the deposit operation
6
+ */
7
+ id: string;
8
+ /**
9
+ * ISO timestamp when the deposit operation was created or reported to the platform
10
+ */
11
+ createdAt: string;
12
+ /**
13
+ * Transaction details for the deposit
14
+ */
15
+ depositTransaction: TransactionDto;
16
+ /**
17
+ * Identifier of the user who initiated the deposit
18
+ */
19
+ initiatedBy?: OperationInitiatorDto;
20
+ /**
21
+ * ISO timestamp when the deposit operation was initiated
22
+ */
23
+ initiatedAt: string;
24
+ /**
25
+ * External reference ID for the deposit operation
26
+ */
27
+ referenceId?: string;
28
+ /**
29
+ * ISO timestamp when the deposit operation was last updated
30
+ */
31
+ updatedAt: string;
32
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=DepositOperationDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DepositOperationDto.js","sourceRoot":"","sources":["../../models/DepositOperationDto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,22 @@
1
+ export type IndividualClientAddressDto = {
2
+ /**
3
+ * First line of the address
4
+ */
5
+ addressLine1?: string;
6
+ /**
7
+ * Second line of the address
8
+ */
9
+ addressLine2?: string;
10
+ /**
11
+ * City name
12
+ */
13
+ city?: string;
14
+ /**
15
+ * Country code in ISO format
16
+ */
17
+ country?: string;
18
+ /**
19
+ * Postal code
20
+ */
21
+ postalCode?: string;
22
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IndividualClientAddressDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IndividualClientAddressDto.js","sourceRoot":"","sources":["../../models/IndividualClientAddressDto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ export type IndividualClientApplicationInformationDto = {
2
+ /**
3
+ * ISO timestamp when the application was submitted
4
+ */
5
+ submittedAt?: string;
6
+ /**
7
+ * ISO timestamp when the client was onboarded
8
+ */
9
+ onboardedAt?: string;
10
+ /**
11
+ * ISO timestamp for 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=IndividualClientApplicationInformationDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IndividualClientApplicationInformationDto.js","sourceRoot":"","sources":["../../models/IndividualClientApplicationInformationDto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ export type IndividualClientContactInformationDto = {
2
+ /**
3
+ * Email address of the client
4
+ */
5
+ emailAddress?: string;
6
+ /**
7
+ * Phone number of the client
8
+ */
9
+ phoneNumber?: string;
10
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IndividualClientContactInformationDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IndividualClientContactInformationDto.js","sourceRoot":"","sources":["../../models/IndividualClientContactInformationDto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,27 @@
1
+ export type IndividualClientCustomFieldDataDto = {
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?: IndividualClientCustomFieldDataDto.category;
14
+ };
15
+ export declare namespace IndividualClientCustomFieldDataDto {
16
+ /**
17
+ * Category of the custom field
18
+ */
19
+ enum category {
20
+ GENERAL = "GENERAL",
21
+ ADDRESS = "ADDRESS",
22
+ CONTACT = "CONTACT",
23
+ WORK = "WORK",
24
+ FINANCIAL = "FINANCIAL",
25
+ APPLICATION = "APPLICATION"
26
+ }
27
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IndividualClientCustomFieldDataDto = void 0;
4
+ var IndividualClientCustomFieldDataDto;
5
+ (function (IndividualClientCustomFieldDataDto) {
6
+ /**
7
+ * Category of the custom field
8
+ */
9
+ let category;
10
+ (function (category) {
11
+ category["GENERAL"] = "GENERAL";
12
+ category["ADDRESS"] = "ADDRESS";
13
+ category["CONTACT"] = "CONTACT";
14
+ category["WORK"] = "WORK";
15
+ category["FINANCIAL"] = "FINANCIAL";
16
+ category["APPLICATION"] = "APPLICATION";
17
+ })(category = IndividualClientCustomFieldDataDto.category || (IndividualClientCustomFieldDataDto.category = {}));
18
+ })(IndividualClientCustomFieldDataDto || (exports.IndividualClientCustomFieldDataDto = IndividualClientCustomFieldDataDto = {}));
19
+ //# sourceMappingURL=IndividualClientCustomFieldDataDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IndividualClientCustomFieldDataDto.js","sourceRoot":"","sources":["../../models/IndividualClientCustomFieldDataDto.ts"],"names":[],"mappings":";;;AAkBA,IAAiB,kCAAkC,CAYlD;AAZD,WAAiB,kCAAkC;IAC/C;;OAEG;IACH,IAAY,QAOX;IAPD,WAAY,QAAQ;QAChB,+BAAmB,CAAA;QACnB,+BAAmB,CAAA;QACnB,+BAAmB,CAAA;QACnB,yBAAa,CAAA;QACb,mCAAuB,CAAA;QACvB,uCAA2B,CAAA;IAC/B,CAAC,EAPW,QAAQ,GAAR,2CAAQ,KAAR,2CAAQ,QAOnB;AACL,CAAC,EAZgB,kCAAkC,kDAAlC,kCAAkC,QAYlD"}
@@ -0,0 +1,127 @@
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 IndividualClientDto = {
13
+ /**
14
+ * Unique identifier of the client
15
+ */
16
+ id: string;
17
+ /**
18
+ * External reference ID
19
+ */
20
+ referenceId?: string;
21
+ /**
22
+ * Current account status
23
+ */
24
+ accountStatus: IndividualClientDto.accountStatus;
25
+ /**
26
+ * Current activity status
27
+ */
28
+ activityStatus: IndividualClientDto.activityStatus;
29
+ /**
30
+ * Address information of the client
31
+ */
32
+ address: IndividualClientAddressDto;
33
+ /**
34
+ * Adverse media information
35
+ */
36
+ adverseMedia: AdverseMediaDto;
37
+ /**
38
+ * List of alert IDs associated with the client
39
+ */
40
+ alerts?: Array<string>;
41
+ /**
42
+ * Application information
43
+ */
44
+ application: IndividualClientApplicationInformationDto;
45
+ /**
46
+ * Contact information
47
+ */
48
+ contact?: IndividualClientContactInformationDto;
49
+ /**
50
+ * List of control measures applied
51
+ */
52
+ controls: Array<string>;
53
+ /**
54
+ * Current risk assessment
55
+ */
56
+ currentRisk?: ClientRiskDto;
57
+ /**
58
+ * Onboarding risk assessment of the client
59
+ */
60
+ onboardingRisk?: ClientRiskDto;
61
+ /**
62
+ * Custom fields data
63
+ */
64
+ customFields?: Record<string, IndividualClientCustomFieldDataDto>;
65
+ /**
66
+ * Financial information
67
+ */
68
+ financial?: IndividualClientFinancialInformationDto;
69
+ /**
70
+ * List of financial operation IDs
71
+ */
72
+ financialOperations?: Array<string>;
73
+ /**
74
+ * General information about the client
75
+ */
76
+ general: IndividualClientGeneralInformationDto;
77
+ /**
78
+ * Political exposure information
79
+ */
80
+ politicalExposure: PoliticalExposureDto;
81
+ /**
82
+ * Historical risk assessments
83
+ */
84
+ riskHistory: Array<ClientRiskDto>;
85
+ /**
86
+ * Sanctions information
87
+ */
88
+ sanctions: SanctionsDto;
89
+ /**
90
+ * Tags associated with the client
91
+ */
92
+ tags: Array<string>;
93
+ /**
94
+ * ISO timestamp of creation
95
+ */
96
+ createdAt: string;
97
+ /**
98
+ * ISO timestamp of last update
99
+ */
100
+ updatedAt: string;
101
+ /**
102
+ * Work-related information
103
+ */
104
+ work?: IndividualClientWorkInformationDto;
105
+ };
106
+ export declare namespace IndividualClientDto {
107
+ /**
108
+ * Current account status
109
+ */
110
+ enum accountStatus {
111
+ APPROVED = "APPROVED",
112
+ WAITING_FOR_REVIEW = "WAITING_FOR_REVIEW",
113
+ IN_REVIEW = "IN_REVIEW",
114
+ REJECTED = "REJECTED",
115
+ OFF_BOARDED = "OFF_BOARDED",
116
+ FROZEN = "FROZEN",
117
+ PENDING_DOCUMENTS = "PENDING_DOCUMENTS",
118
+ CLOSED_BY_CLIENT = "CLOSED_BY_CLIENT"
119
+ }
120
+ /**
121
+ * Current activity status
122
+ */
123
+ enum activityStatus {
124
+ ACTIVE = "ACTIVE",
125
+ NOT_ACTIVE = "NOT_ACTIVE"
126
+ }
127
+ }
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IndividualClientDto = void 0;
4
+ var IndividualClientDto;
5
+ (function (IndividualClientDto) {
6
+ /**
7
+ * Current account status
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 = IndividualClientDto.accountStatus || (IndividualClientDto.accountStatus = {}));
20
+ /**
21
+ * Current activity status
22
+ */
23
+ let activityStatus;
24
+ (function (activityStatus) {
25
+ activityStatus["ACTIVE"] = "ACTIVE";
26
+ activityStatus["NOT_ACTIVE"] = "NOT_ACTIVE";
27
+ })(activityStatus = IndividualClientDto.activityStatus || (IndividualClientDto.activityStatus = {}));
28
+ })(IndividualClientDto || (exports.IndividualClientDto = IndividualClientDto = {}));
29
+ //# sourceMappingURL=IndividualClientDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IndividualClientDto.js","sourceRoot":"","sources":["../../models/IndividualClientDto.ts"],"names":[],"mappings":";;;AA6GA,IAAiB,mBAAmB,CAqBnC;AArBD,WAAiB,mBAAmB;IAChC;;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,iCAAa,KAAb,iCAAa,QASxB;IACD;;OAEG;IACH,IAAY,cAGX;IAHD,WAAY,cAAc;QACtB,mCAAiB,CAAA;QACjB,2CAAyB,CAAA;IAC7B,CAAC,EAHW,cAAc,GAAd,kCAAc,KAAd,kCAAc,QAGzB;AACL,CAAC,EArBgB,mBAAmB,mCAAnB,mBAAmB,QAqBnC"}
@@ -0,0 +1,6 @@
1
+ export type IndividualClientFinancialInformationDto = {
2
+ /**
3
+ * Estimated annual deposit amount
4
+ */
5
+ annualDepositEstimate?: string;
6
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IndividualClientFinancialInformationDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IndividualClientFinancialInformationDto.js","sourceRoot":"","sources":["../../models/IndividualClientFinancialInformationDto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,39 @@
1
+ export type IndividualClientGeneralInformationDto = {
2
+ /**
3
+ * First name of the client
4
+ */
5
+ firstName?: string;
6
+ /**
7
+ * Middle name of the client
8
+ */
9
+ middleName?: string;
10
+ /**
11
+ * Last name of the client
12
+ */
13
+ lastName?: string;
14
+ /**
15
+ * Gender of the client
16
+ */
17
+ gender?: IndividualClientGeneralInformationDto.gender;
18
+ /**
19
+ * Date of birth of the client
20
+ */
21
+ dateOfBirth?: string;
22
+ /**
23
+ * Country code of citizenship
24
+ */
25
+ citizenship?: string;
26
+ /**
27
+ * Personal identification number
28
+ */
29
+ personalId?: string;
30
+ };
31
+ export declare namespace IndividualClientGeneralInformationDto {
32
+ /**
33
+ * Gender of the client
34
+ */
35
+ enum gender {
36
+ MALE = "MALE",
37
+ FEMALE = "FEMALE"
38
+ }
39
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IndividualClientGeneralInformationDto = void 0;
4
+ var IndividualClientGeneralInformationDto;
5
+ (function (IndividualClientGeneralInformationDto) {
6
+ /**
7
+ * Gender of the client
8
+ */
9
+ let gender;
10
+ (function (gender) {
11
+ gender["MALE"] = "MALE";
12
+ gender["FEMALE"] = "FEMALE";
13
+ })(gender = IndividualClientGeneralInformationDto.gender || (IndividualClientGeneralInformationDto.gender = {}));
14
+ })(IndividualClientGeneralInformationDto || (exports.IndividualClientGeneralInformationDto = IndividualClientGeneralInformationDto = {}));
15
+ //# sourceMappingURL=IndividualClientGeneralInformationDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IndividualClientGeneralInformationDto.js","sourceRoot":"","sources":["../../models/IndividualClientGeneralInformationDto.ts"],"names":[],"mappings":";;;AAkCA,IAAiB,qCAAqC,CAQrD;AARD,WAAiB,qCAAqC;IAClD;;OAEG;IACH,IAAY,MAGX;IAHD,WAAY,MAAM;QACd,uBAAa,CAAA;QACb,2BAAiB,CAAA;IACrB,CAAC,EAHW,MAAM,GAAN,4CAAM,KAAN,4CAAM,QAGjB;AACL,CAAC,EARgB,qCAAqC,qDAArC,qCAAqC,QAQrD"}
@@ -0,0 +1,6 @@
1
+ export type IndividualClientWorkInformationDto = {
2
+ /**
3
+ * Current occupation of the client
4
+ */
5
+ occupation?: string;
6
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IndividualClientWorkInformationDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IndividualClientWorkInformationDto.js","sourceRoot":"","sources":["../../models/IndividualClientWorkInformationDto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ export type OperationInitiatorDto = {
2
+ /**
3
+ * Unique identifier of the operation initiator
4
+ */
5
+ id: string;
6
+ /**
7
+ * External reference ID for the operation initiator
8
+ */
9
+ referenceId?: string;
10
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=OperationInitiatorDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OperationInitiatorDto.js","sourceRoot":"","sources":["../../models/OperationInitiatorDto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ export type PoliticalExposureDto = {
2
+ /**
3
+ * Indicates if the client is politically exposed
4
+ */
5
+ isPoliticallyExposed: boolean;
6
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=PoliticalExposureDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PoliticalExposureDto.js","sourceRoot":"","sources":["../../models/PoliticalExposureDto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ export type SanctionsDto = {
2
+ /**
3
+ * Indicates if the client is under any sanctions
4
+ */
5
+ isSanctioned: boolean;
6
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=SanctionsDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SanctionsDto.js","sourceRoot":"","sources":["../../models/SanctionsDto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,61 @@
1
+ import type { OperationInitiatorDto } from './OperationInitiatorDto';
2
+ import type { TransactionDto } from './TransactionDto';
3
+ export type TradeOperationDto = {
4
+ /**
5
+ * Unique identifier of the trade operation
6
+ */
7
+ id: string;
8
+ /**
9
+ * External reference ID for the trade operation
10
+ */
11
+ referenceId?: string;
12
+ /**
13
+ * ISO timestamp when the trade operation was created
14
+ */
15
+ createdAt: string;
16
+ /**
17
+ * ISO timestamp when the trade operation was initiated or reported to the platform
18
+ */
19
+ initiatedAt: string;
20
+ /**
21
+ * Identifier of the user who initiated the trade
22
+ */
23
+ initiatedBy?: OperationInitiatorDto;
24
+ /**
25
+ * ISO timestamp when the trade operation was last updated
26
+ */
27
+ updatedAt: string;
28
+ /**
29
+ * Type of the trade
30
+ */
31
+ tradeType: TradeOperationDto.tradeType;
32
+ /**
33
+ * Price of the trade
34
+ */
35
+ price: number;
36
+ /**
37
+ * Quantity of the trade
38
+ */
39
+ quantity: number;
40
+ /**
41
+ * Base asset of the trade
42
+ */
43
+ instrumentBaseAsset: string;
44
+ /**
45
+ * The transactions for the trade
46
+ */
47
+ transactions: Array<TransactionDto>;
48
+ /**
49
+ * Quote asset of the trade
50
+ */
51
+ instrumentQuoteAsset: string;
52
+ };
53
+ export declare namespace TradeOperationDto {
54
+ /**
55
+ * Type of the trade
56
+ */
57
+ enum tradeType {
58
+ BUY = "BUY",
59
+ SELL = "SELL"
60
+ }
61
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TradeOperationDto = void 0;
4
+ var TradeOperationDto;
5
+ (function (TradeOperationDto) {
6
+ /**
7
+ * Type of the trade
8
+ */
9
+ let tradeType;
10
+ (function (tradeType) {
11
+ tradeType["BUY"] = "BUY";
12
+ tradeType["SELL"] = "SELL";
13
+ })(tradeType = TradeOperationDto.tradeType || (TradeOperationDto.tradeType = {}));
14
+ })(TradeOperationDto || (exports.TradeOperationDto = TradeOperationDto = {}));
15
+ //# sourceMappingURL=TradeOperationDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TradeOperationDto.js","sourceRoot":"","sources":["../../models/TradeOperationDto.ts"],"names":[],"mappings":";;;AAwDA,IAAiB,iBAAiB,CAQjC;AARD,WAAiB,iBAAiB;IAC9B;;OAEG;IACH,IAAY,SAGX;IAHD,WAAY,SAAS;QACjB,wBAAW,CAAA;QACX,0BAAa,CAAA;IACjB,CAAC,EAHW,SAAS,GAAT,2BAAS,KAAT,2BAAS,QAGpB;AACL,CAAC,EARgB,iBAAiB,iCAAjB,iBAAiB,QAQjC"}
@@ -0,0 +1,14 @@
1
+ export type TransactionAmountDto = {
2
+ /**
3
+ * Amount of the transaction
4
+ */
5
+ amount: number;
6
+ /**
7
+ * Currency of the transaction, can be a crypto or fiat
8
+ */
9
+ currency: string;
10
+ /**
11
+ * Net amount after fees
12
+ */
13
+ netAmount?: number;
14
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=TransactionAmountDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TransactionAmountDto.js","sourceRoot":"","sources":["../../models/TransactionAmountDto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ export type TransactionCustomFieldDto = {
2
+ /**
3
+ * Label of the custom field
4
+ */
5
+ label: string;
6
+ /**
7
+ * Value of the custom field
8
+ */
9
+ value: (string | number | boolean);
10
+ /**
11
+ * Description of the custom field
12
+ */
13
+ description?: string;
14
+ };