@corsa-labs/sdk 4.39.0 → 4.41.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 (115) hide show
  1. package/dist/index.d.ts +28 -1
  2. package/dist/index.js +17 -5
  3. package/dist/index.js.map +1 -1
  4. package/dist/models/BatchCreateCaseFailedDto.d.ts +14 -0
  5. package/dist/models/BatchCreateCaseFailedDto.js +3 -0
  6. package/dist/models/BatchCreateCaseFailedDto.js.map +1 -0
  7. package/dist/models/BatchCreateCasesDto.d.ts +7 -0
  8. package/dist/models/BatchCreateCasesDto.js +3 -0
  9. package/dist/models/BatchCreateCasesDto.js.map +1 -0
  10. package/dist/models/BatchCreateCasesResponseDto.d.ts +24 -0
  11. package/dist/models/BatchCreateCasesResponseDto.js +3 -0
  12. package/dist/models/BatchCreateCasesResponseDto.js.map +1 -0
  13. package/dist/models/BulkAlertUpdateFields.d.ts +193 -0
  14. package/dist/models/BulkAlertUpdateFields.js +66 -0
  15. package/dist/models/BulkAlertUpdateFields.js.map +1 -0
  16. package/dist/models/BulkCaseUpdateFields.d.ts +88 -0
  17. package/dist/models/BulkCaseUpdateFields.js +35 -0
  18. package/dist/models/BulkCaseUpdateFields.js.map +1 -0
  19. package/dist/models/BulkCorporateClientUpdateFields.d.ts +128 -0
  20. package/dist/models/BulkCorporateClientUpdateFields.js +30 -0
  21. package/dist/models/BulkCorporateClientUpdateFields.js.map +1 -0
  22. package/dist/models/BulkFailedCorporateClientDto.d.ts +10 -0
  23. package/dist/models/BulkFailedCorporateClientDto.js +3 -0
  24. package/dist/models/BulkFailedCorporateClientDto.js.map +1 -0
  25. package/dist/models/BulkFailedIndividualClientDto.d.ts +10 -0
  26. package/dist/models/BulkFailedIndividualClientDto.js +3 -0
  27. package/dist/models/BulkFailedIndividualClientDto.js.map +1 -0
  28. package/dist/models/BulkFailedTransactionDto.d.ts +10 -0
  29. package/dist/models/BulkFailedTransactionDto.js +3 -0
  30. package/dist/models/BulkFailedTransactionDto.js.map +1 -0
  31. package/dist/models/BulkIndividualClientUpdateFields.d.ts +123 -0
  32. package/dist/models/BulkIndividualClientUpdateFields.js +30 -0
  33. package/dist/models/BulkIndividualClientUpdateFields.js.map +1 -0
  34. package/dist/models/BulkTransactionUpdateFields.d.ts +47 -0
  35. package/dist/models/BulkTransactionUpdateFields.js +16 -0
  36. package/dist/models/BulkTransactionUpdateFields.js.map +1 -0
  37. package/dist/models/BulkUpdateAlertDto.d.ts +11 -0
  38. package/dist/models/BulkUpdateAlertDto.js +3 -0
  39. package/dist/models/BulkUpdateAlertDto.js.map +1 -0
  40. package/dist/models/BulkUpdateAlertResponseDto.d.ts +28 -0
  41. package/dist/models/BulkUpdateAlertResponseDto.js +3 -0
  42. package/dist/models/BulkUpdateAlertResponseDto.js.map +1 -0
  43. package/dist/models/BulkUpdateCaseDto.d.ts +11 -0
  44. package/dist/models/BulkUpdateCaseDto.js +3 -0
  45. package/dist/models/BulkUpdateCaseDto.js.map +1 -0
  46. package/dist/models/BulkUpdateCaseResponseDto.d.ts +28 -0
  47. package/dist/models/BulkUpdateCaseResponseDto.js +3 -0
  48. package/dist/models/BulkUpdateCaseResponseDto.js.map +1 -0
  49. package/dist/models/BulkUpdateCorporateClientsDto.d.ts +11 -0
  50. package/dist/models/BulkUpdateCorporateClientsDto.js +3 -0
  51. package/dist/models/BulkUpdateCorporateClientsDto.js.map +1 -0
  52. package/dist/models/BulkUpdateCorporateClientsResponseDto.d.ts +24 -0
  53. package/dist/models/BulkUpdateCorporateClientsResponseDto.js +3 -0
  54. package/dist/models/BulkUpdateCorporateClientsResponseDto.js.map +1 -0
  55. package/dist/models/BulkUpdateIndividualClientsDto.d.ts +11 -0
  56. package/dist/models/BulkUpdateIndividualClientsDto.js +3 -0
  57. package/dist/models/BulkUpdateIndividualClientsDto.js.map +1 -0
  58. package/dist/models/BulkUpdateIndividualClientsResponseDto.d.ts +24 -0
  59. package/dist/models/BulkUpdateIndividualClientsResponseDto.js +3 -0
  60. package/dist/models/BulkUpdateIndividualClientsResponseDto.js.map +1 -0
  61. package/dist/models/BulkUpdateTransactionsDto.d.ts +11 -0
  62. package/dist/models/BulkUpdateTransactionsDto.js +3 -0
  63. package/dist/models/BulkUpdateTransactionsDto.js.map +1 -0
  64. package/dist/models/BulkUpdateTransactionsResponseDto.d.ts +24 -0
  65. package/dist/models/BulkUpdateTransactionsResponseDto.js +3 -0
  66. package/dist/models/BulkUpdateTransactionsResponseDto.js.map +1 -0
  67. package/dist/models/BulkUpdatedAlertFieldsDto.d.ts +14 -0
  68. package/dist/models/BulkUpdatedAlertFieldsDto.js +3 -0
  69. package/dist/models/BulkUpdatedAlertFieldsDto.js.map +1 -0
  70. package/dist/models/BulkUpdatedCaseFieldsDto.d.ts +14 -0
  71. package/dist/models/BulkUpdatedCaseFieldsDto.js +3 -0
  72. package/dist/models/BulkUpdatedCaseFieldsDto.js.map +1 -0
  73. package/dist/models/BulkUpdatedCorporateClientDto.d.ts +14 -0
  74. package/dist/models/BulkUpdatedCorporateClientDto.js +3 -0
  75. package/dist/models/BulkUpdatedCorporateClientDto.js.map +1 -0
  76. package/dist/models/BulkUpdatedIndividualClientDto.d.ts +14 -0
  77. package/dist/models/BulkUpdatedIndividualClientDto.js +3 -0
  78. package/dist/models/BulkUpdatedIndividualClientDto.js.map +1 -0
  79. package/dist/models/BulkUpdatedTransactionDto.d.ts +14 -0
  80. package/dist/models/BulkUpdatedTransactionDto.js +3 -0
  81. package/dist/models/BulkUpdatedTransactionDto.js.map +1 -0
  82. package/dist/models/ClientSumsubDto.d.ts +4 -0
  83. package/dist/models/CreateDepositOperationDto.d.ts +1 -1
  84. package/dist/models/{UpsertVerificationDto.d.ts → CreateVerificationDto.d.ts} +10 -17
  85. package/dist/models/CreateVerificationDto.js +19 -0
  86. package/dist/models/CreateVerificationDto.js.map +1 -0
  87. package/dist/models/CreateWithdrawalOperationDto.d.ts +2 -2
  88. package/dist/models/UpdateVerificationDto.d.ts +52 -0
  89. package/dist/models/UpdateVerificationDto.js +19 -0
  90. package/dist/models/UpdateVerificationDto.js.map +1 -0
  91. package/dist/models/VerificationCheckDto.d.ts +6 -6
  92. package/dist/models/VerificationCheckDto.js +1 -1
  93. package/dist/models/VerificationCheckImageDto.d.ts +7 -7
  94. package/dist/models/VerificationCheckImageDto.js +1 -1
  95. package/dist/models/VerificationResponseDto.d.ts +17 -24
  96. package/dist/models/VerificationResponseDto.js +1 -9
  97. package/dist/models/VerificationResponseDto.js.map +1 -1
  98. package/dist/services/AlertsService.d.ts +10 -0
  99. package/dist/services/AlertsService.js +15 -0
  100. package/dist/services/AlertsService.js.map +1 -1
  101. package/dist/services/CasesService.d.ts +20 -0
  102. package/dist/services/CasesService.js +30 -0
  103. package/dist/services/CasesService.js.map +1 -1
  104. package/dist/services/ClientsService.d.ts +20 -0
  105. package/dist/services/ClientsService.js +30 -0
  106. package/dist/services/ClientsService.js.map +1 -1
  107. package/dist/services/TransactionsService.d.ts +10 -0
  108. package/dist/services/TransactionsService.js +15 -0
  109. package/dist/services/TransactionsService.js.map +1 -1
  110. package/dist/services/VerificationsService.d.ts +15 -4
  111. package/dist/services/VerificationsService.js +29 -5
  112. package/dist/services/VerificationsService.js.map +1 -1
  113. package/package.json +1 -1
  114. package/dist/models/UpsertVerificationDto.js +0 -27
  115. package/dist/models/UpsertVerificationDto.js.map +0 -1
@@ -0,0 +1,24 @@
1
+ import type { BulkFailedIndividualClientDto } from './BulkFailedIndividualClientDto';
2
+ import type { BulkUpdatedIndividualClientDto } from './BulkUpdatedIndividualClientDto';
3
+ export type BulkUpdateIndividualClientsResponseDto = {
4
+ /**
5
+ * Array of successfully updated clients
6
+ */
7
+ updatedClients: Array<BulkUpdatedIndividualClientDto>;
8
+ /**
9
+ * Array of clients that failed to process
10
+ */
11
+ failedClients: Array<BulkFailedIndividualClientDto>;
12
+ /**
13
+ * Total number of clients processed
14
+ */
15
+ totalProcessed: number;
16
+ /**
17
+ * Number of clients successfully processed
18
+ */
19
+ successCount: number;
20
+ /**
21
+ * Number of clients that failed to process
22
+ */
23
+ failureCount: number;
24
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=BulkUpdateIndividualClientsResponseDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BulkUpdateIndividualClientsResponseDto.js","sourceRoot":"","sources":["../../models/BulkUpdateIndividualClientsResponseDto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ import type { BulkTransactionUpdateFields } from './BulkTransactionUpdateFields';
2
+ export type BulkUpdateTransactionsDto = {
3
+ /**
4
+ * Array of transaction IDs or reference IDs (maximum 100)
5
+ */
6
+ transactionIds: Array<string>;
7
+ /**
8
+ * Fields to update on all specified transactions
9
+ */
10
+ update: BulkTransactionUpdateFields;
11
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=BulkUpdateTransactionsDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BulkUpdateTransactionsDto.js","sourceRoot":"","sources":["../../models/BulkUpdateTransactionsDto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,24 @@
1
+ import type { BulkFailedTransactionDto } from './BulkFailedTransactionDto';
2
+ import type { BulkUpdatedTransactionDto } from './BulkUpdatedTransactionDto';
3
+ export type BulkUpdateTransactionsResponseDto = {
4
+ /**
5
+ * Array of successfully updated transactions
6
+ */
7
+ updatedTransactions: Array<BulkUpdatedTransactionDto>;
8
+ /**
9
+ * Array of transactions that failed to process
10
+ */
11
+ failedTransactions: Array<BulkFailedTransactionDto>;
12
+ /**
13
+ * Total number of transactions processed
14
+ */
15
+ totalProcessed: number;
16
+ /**
17
+ * Number of transactions successfully processed
18
+ */
19
+ successCount: number;
20
+ /**
21
+ * Number of transactions that failed to process
22
+ */
23
+ failureCount: number;
24
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=BulkUpdateTransactionsResponseDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BulkUpdateTransactionsResponseDto.js","sourceRoot":"","sources":["../../models/BulkUpdateTransactionsResponseDto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ export type BulkUpdatedAlertFieldsDto = {
2
+ /**
3
+ * The ID of the updated alert
4
+ */
5
+ id: string;
6
+ /**
7
+ * The reference ID of the updated alert
8
+ */
9
+ referenceId?: string;
10
+ /**
11
+ * The fields that were applied to this entity
12
+ */
13
+ appliedChanges: Record<string, any>;
14
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=BulkUpdatedAlertFieldsDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BulkUpdatedAlertFieldsDto.js","sourceRoot":"","sources":["../../models/BulkUpdatedAlertFieldsDto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ export type BulkUpdatedCaseFieldsDto = {
2
+ /**
3
+ * The ID of the updated case
4
+ */
5
+ id: string;
6
+ /**
7
+ * The reference ID of the updated case
8
+ */
9
+ referenceId?: string;
10
+ /**
11
+ * The fields that were applied to this entity
12
+ */
13
+ appliedChanges: Record<string, any>;
14
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=BulkUpdatedCaseFieldsDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BulkUpdatedCaseFieldsDto.js","sourceRoot":"","sources":["../../models/BulkUpdatedCaseFieldsDto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ export type BulkUpdatedCorporateClientDto = {
2
+ /**
3
+ * The ID of the updated client
4
+ */
5
+ id: string;
6
+ /**
7
+ * The reference ID of the updated client
8
+ */
9
+ referenceId?: string;
10
+ /**
11
+ * The fields that were applied to this entity
12
+ */
13
+ appliedChanges: Record<string, any>;
14
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=BulkUpdatedCorporateClientDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BulkUpdatedCorporateClientDto.js","sourceRoot":"","sources":["../../models/BulkUpdatedCorporateClientDto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ export type BulkUpdatedIndividualClientDto = {
2
+ /**
3
+ * The ID of the updated client
4
+ */
5
+ id: string;
6
+ /**
7
+ * The reference ID of the updated client
8
+ */
9
+ referenceId?: string;
10
+ /**
11
+ * The fields that were applied to this entity
12
+ */
13
+ appliedChanges: Record<string, any>;
14
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=BulkUpdatedIndividualClientDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BulkUpdatedIndividualClientDto.js","sourceRoot":"","sources":["../../models/BulkUpdatedIndividualClientDto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ export type BulkUpdatedTransactionDto = {
2
+ /**
3
+ * The ID of the updated transaction
4
+ */
5
+ id: string;
6
+ /**
7
+ * The reference ID of the updated transaction
8
+ */
9
+ referenceId?: string;
10
+ /**
11
+ * The fields that were applied to this entity
12
+ */
13
+ appliedChanges: Record<string, any>;
14
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=BulkUpdatedTransactionDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BulkUpdatedTransactionDto.js","sourceRoot":"","sources":["../../models/BulkUpdatedTransactionDto.ts"],"names":[],"mappings":""}
@@ -6,18 +6,22 @@ export type ClientSumsubDto = {
6
6
  id?: string;
7
7
  /**
8
8
  * Status of the verification image
9
+ * @deprecated
9
10
  */
10
11
  status?: string;
11
12
  /**
12
13
  * Reject labels if the image was rejected
14
+ * @deprecated
13
15
  */
14
16
  rejectLabels?: Array<string>;
15
17
  /**
16
18
  * Reason for rejection if applicable
19
+ * @deprecated
17
20
  */
18
21
  reason?: string;
19
22
  /**
20
23
  * Sumsub verifications
24
+ * @deprecated
21
25
  */
22
26
  verifications?: Array<SumsubVerificationDto>;
23
27
  };
@@ -8,7 +8,7 @@ export type CreateDepositOperationDto = {
8
8
  /**
9
9
  * UUID of the client who initiated the deposit
10
10
  */
11
- initiatedBy?: string;
11
+ initiatedBy: string;
12
12
  /**
13
13
  * Date and time the deposit was initiated. Defaults to current date and time if not provided
14
14
  */
@@ -1,15 +1,15 @@
1
1
  import type { VerificationCheckDto } from './VerificationCheckDto';
2
- export type UpsertVerificationDto = {
2
+ export type CreateVerificationDto = {
3
3
  /**
4
- * Verification provider
4
+ * Name of the KYC/KYB provider (e.g. SUMSUB, PERSONA)
5
5
  */
6
- provider: UpsertVerificationDto.provider;
6
+ provider: string;
7
7
  /**
8
- * Provider-specific verification ID
8
+ * Unique verification identifier in the provider's system
9
9
  */
10
10
  providerId: string;
11
11
  /**
12
- * Status as reported by the provider
12
+ * Raw verification status as reported by the provider (e.g. completed, pending, init)
13
13
  */
14
14
  providerStatus: string;
15
15
  /**
@@ -17,9 +17,9 @@ export type UpsertVerificationDto = {
17
17
  */
18
18
  providerLink?: string;
19
19
  /**
20
- * Normalized verification status
20
+ * Corsa-normalized verification status
21
21
  */
22
- status: UpsertVerificationDto.status;
22
+ status: CreateVerificationDto.status;
23
23
  /**
24
24
  * Review comment summarizing the verification outcome
25
25
  */
@@ -37,7 +37,7 @@ export type UpsertVerificationDto = {
37
37
  */
38
38
  completedAt?: string;
39
39
  /**
40
- * Individual verification checks
40
+ * Individual verification checks performed by the provider (e.g. identity, document, selfie)
41
41
  */
42
42
  checks?: Array<VerificationCheckDto>;
43
43
  /**
@@ -45,16 +45,9 @@ export type UpsertVerificationDto = {
45
45
  */
46
46
  metadata?: string;
47
47
  };
48
- export declare namespace UpsertVerificationDto {
48
+ export declare namespace CreateVerificationDto {
49
49
  /**
50
- * Verification provider
51
- */
52
- enum provider {
53
- SUMSUB = "SUMSUB",
54
- PERSONA = "PERSONA"
55
- }
56
- /**
57
- * Normalized verification status
50
+ * Corsa-normalized verification status
58
51
  */
59
52
  enum status {
60
53
  REQUESTED = "REQUESTED",
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateVerificationDto = void 0;
4
+ var CreateVerificationDto;
5
+ (function (CreateVerificationDto) {
6
+ /**
7
+ * Corsa-normalized verification status
8
+ */
9
+ let status;
10
+ (function (status) {
11
+ status["REQUESTED"] = "REQUESTED";
12
+ status["PENDING"] = "PENDING";
13
+ status["APPROVED"] = "APPROVED";
14
+ status["REJECTED"] = "REJECTED";
15
+ status["EXPIRED"] = "EXPIRED";
16
+ status["CANCELLED"] = "CANCELLED";
17
+ })(status = CreateVerificationDto.status || (CreateVerificationDto.status = {}));
18
+ })(CreateVerificationDto || (exports.CreateVerificationDto = CreateVerificationDto = {}));
19
+ //# sourceMappingURL=CreateVerificationDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateVerificationDto.js","sourceRoot":"","sources":["../../models/CreateVerificationDto.ts"],"names":[],"mappings":";;;AAmDA,IAAiB,qBAAqB,CAYrC;AAZD,WAAiB,qBAAqB;IAClC;;OAEG;IACH,IAAY,MAOX;IAPD,WAAY,MAAM;QACd,iCAAuB,CAAA;QACvB,6BAAmB,CAAA;QACnB,+BAAqB,CAAA;QACrB,+BAAqB,CAAA;QACrB,6BAAmB,CAAA;QACnB,iCAAuB,CAAA;IAC3B,CAAC,EAPW,MAAM,GAAN,4BAAM,KAAN,4BAAM,QAOjB;AACL,CAAC,EAZgB,qBAAqB,qCAArB,qBAAqB,QAYrC"}
@@ -6,9 +6,9 @@ export type CreateWithdrawalOperationDto = {
6
6
  */
7
7
  referenceId?: string;
8
8
  /**
9
- * string of the client who initiated the withdrawal
9
+ * UUID of the client who initiated the withdrawal
10
10
  */
11
- initiatedBy?: string;
11
+ initiatedBy: string;
12
12
  /**
13
13
  * Date and time of the withdrawal operation. Defaults to current date and time if not provided
14
14
  */
@@ -0,0 +1,52 @@
1
+ import type { VerificationCheckDto } from './VerificationCheckDto';
2
+ export type UpdateVerificationDto = {
3
+ /**
4
+ * Raw verification status as reported by the provider (e.g. completed, pending, init)
5
+ */
6
+ providerStatus?: string;
7
+ /**
8
+ * Direct link to this verification in the provider's dashboard
9
+ */
10
+ providerLink?: string;
11
+ /**
12
+ * Corsa-normalized verification status
13
+ */
14
+ status?: UpdateVerificationDto.status;
15
+ /**
16
+ * Review comment summarizing the verification outcome
17
+ */
18
+ reviewComment?: string;
19
+ /**
20
+ * Provider-specific rejection reason labels
21
+ */
22
+ rejectLabels?: Array<string>;
23
+ /**
24
+ * When the verification was started
25
+ */
26
+ startedAt?: string;
27
+ /**
28
+ * When the verification was completed
29
+ */
30
+ completedAt?: string;
31
+ /**
32
+ * Individual verification checks performed by the provider (e.g. identity, document, selfie)
33
+ */
34
+ checks?: Array<VerificationCheckDto>;
35
+ /**
36
+ * Additional provider-specific metadata as JSON string
37
+ */
38
+ metadata?: string;
39
+ };
40
+ export declare namespace UpdateVerificationDto {
41
+ /**
42
+ * Corsa-normalized verification status
43
+ */
44
+ enum status {
45
+ REQUESTED = "REQUESTED",
46
+ PENDING = "PENDING",
47
+ APPROVED = "APPROVED",
48
+ REJECTED = "REJECTED",
49
+ EXPIRED = "EXPIRED",
50
+ CANCELLED = "CANCELLED"
51
+ }
52
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateVerificationDto = void 0;
4
+ var UpdateVerificationDto;
5
+ (function (UpdateVerificationDto) {
6
+ /**
7
+ * Corsa-normalized verification status
8
+ */
9
+ let status;
10
+ (function (status) {
11
+ status["REQUESTED"] = "REQUESTED";
12
+ status["PENDING"] = "PENDING";
13
+ status["APPROVED"] = "APPROVED";
14
+ status["REJECTED"] = "REJECTED";
15
+ status["EXPIRED"] = "EXPIRED";
16
+ status["CANCELLED"] = "CANCELLED";
17
+ })(status = UpdateVerificationDto.status || (UpdateVerificationDto.status = {}));
18
+ })(UpdateVerificationDto || (exports.UpdateVerificationDto = UpdateVerificationDto = {}));
19
+ //# sourceMappingURL=UpdateVerificationDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UpdateVerificationDto.js","sourceRoot":"","sources":["../../models/UpdateVerificationDto.ts"],"names":[],"mappings":";;;AA2CA,IAAiB,qBAAqB,CAYrC;AAZD,WAAiB,qBAAqB;IAClC;;OAEG;IACH,IAAY,MAOX;IAPD,WAAY,MAAM;QACd,iCAAuB,CAAA;QACvB,6BAAmB,CAAA;QACnB,+BAAqB,CAAA;QACrB,+BAAqB,CAAA;QACrB,6BAAmB,CAAA;QACnB,iCAAuB,CAAA;IAC3B,CAAC,EAPW,MAAM,GAAN,4BAAM,KAAN,4BAAM,QAOjB;AACL,CAAC,EAZgB,qBAAqB,qCAArB,qBAAqB,QAYrC"}
@@ -1,29 +1,29 @@
1
1
  import type { VerificationCheckImageDto } from './VerificationCheckImageDto';
2
2
  export type VerificationCheckDto = {
3
3
  /**
4
- * Check title
4
+ * Name of the verification check (e.g. Identity, Document, Selfie)
5
5
  */
6
6
  title: string;
7
7
  /**
8
- * Check status
8
+ * Overall status of this verification check
9
9
  */
10
10
  status: VerificationCheckDto.status;
11
11
  /**
12
- * Country code
12
+ * ISO 3166-1 alpha-2 country code of the issued document
13
13
  */
14
14
  country?: string;
15
15
  /**
16
- * Document type
16
+ * Type of document verified (e.g. PASSPORT, ID_CARD, DRIVERS_LICENSE)
17
17
  */
18
18
  documentType?: string;
19
19
  /**
20
- * Images associated with this check
20
+ * Document images submitted and reviewed for this check
21
21
  */
22
22
  images?: Array<VerificationCheckImageDto>;
23
23
  };
24
24
  export declare namespace VerificationCheckDto {
25
25
  /**
26
- * Check status
26
+ * Overall status of this verification check
27
27
  */
28
28
  enum status {
29
29
  APPROVED = "Approved",
@@ -4,7 +4,7 @@ exports.VerificationCheckDto = void 0;
4
4
  var VerificationCheckDto;
5
5
  (function (VerificationCheckDto) {
6
6
  /**
7
- * Check status
7
+ * Overall status of this verification check
8
8
  */
9
9
  let status;
10
10
  (function (status) {
@@ -1,32 +1,32 @@
1
1
  export type VerificationCheckImageDto = {
2
2
  /**
3
- * Image ID from the provider
3
+ * Provider-assigned image identifier
4
4
  */
5
5
  id: string;
6
6
  /**
7
- * Image check status
7
+ * Review status of the document image
8
8
  */
9
9
  status: VerificationCheckImageDto.status;
10
10
  /**
11
- * Rejection labels for the image
11
+ * Provider-specific rejection labels for the document image
12
12
  */
13
13
  rejectLabels?: Array<string>;
14
14
  /**
15
- * Rejection reason
15
+ * Human-readable rejection reason for the document image
16
16
  */
17
17
  reason?: string;
18
18
  /**
19
- * Stored file ID
19
+ * Corsa file ID referencing the stored document image
20
20
  */
21
21
  fileId?: string;
22
22
  /**
23
- * Original file name
23
+ * Original file name as uploaded by the applicant
24
24
  */
25
25
  fileName?: string;
26
26
  };
27
27
  export declare namespace VerificationCheckImageDto {
28
28
  /**
29
- * Image check status
29
+ * Review status of the document image
30
30
  */
31
31
  enum status {
32
32
  APPROVED = "Approved",
@@ -4,7 +4,7 @@ exports.VerificationCheckImageDto = void 0;
4
4
  var VerificationCheckImageDto;
5
5
  (function (VerificationCheckImageDto) {
6
6
  /**
7
- * Image check status
7
+ * Review status of the document image
8
8
  */
9
9
  let status;
10
10
  (function (status) {
@@ -1,39 +1,39 @@
1
1
  import type { VerificationCheckDto } from './VerificationCheckDto';
2
2
  export type VerificationResponseDto = {
3
3
  /**
4
- * Verification ID
4
+ * Corsa verification ID
5
5
  */
6
6
  id: string;
7
7
  /**
8
- * Platform ID
8
+ * Corsa platform (tenant) ID
9
9
  */
10
10
  platformId: string;
11
11
  /**
12
- * Creation timestamp
12
+ * Timestamp when the verification was created in Corsa
13
13
  */
14
14
  createdAt: string;
15
15
  /**
16
- * Last update timestamp
16
+ * Timestamp when the verification was last updated in Corsa
17
17
  */
18
18
  updatedAt: string;
19
19
  /**
20
- * Verification provider
20
+ * Name of the KYC/KYB provider (e.g. SUMSUB, PERSONA)
21
21
  */
22
- provider: VerificationResponseDto.provider;
22
+ provider: string;
23
23
  /**
24
- * Provider-specific verification ID
24
+ * Unique verification identifier in the provider's system
25
25
  */
26
26
  providerId: string;
27
27
  /**
28
- * Status as reported by the provider
28
+ * Raw verification status as reported by the provider
29
29
  */
30
30
  providerStatus: string;
31
31
  /**
32
- * Link to provider dashboard
32
+ * Direct link to this verification in the provider's dashboard
33
33
  */
34
34
  providerLink?: string;
35
35
  /**
36
- * Normalized verification status
36
+ * Corsa-normalized verification status
37
37
  */
38
38
  status: VerificationResponseDto.status;
39
39
  /**
@@ -41,40 +41,33 @@ export type VerificationResponseDto = {
41
41
  */
42
42
  reviewComment?: string;
43
43
  /**
44
- * Rejection labels
44
+ * Provider-specific rejection reason labels
45
45
  */
46
46
  rejectLabels?: Array<string>;
47
47
  /**
48
- * When verification started
48
+ * Timestamp when the verification process was initiated by the provider
49
49
  */
50
50
  startedAt?: string;
51
51
  /**
52
- * When verification completed
52
+ * Timestamp when the verification process was completed by the provider
53
53
  */
54
54
  completedAt?: string;
55
55
  /**
56
- * Verification checks
56
+ * Individual verification checks performed by the provider (e.g. identity, document, selfie)
57
57
  */
58
58
  checks?: Array<VerificationCheckDto>;
59
59
  /**
60
- * Additional metadata
60
+ * Additional provider-specific metadata as JSON string
61
61
  */
62
62
  metadata?: string;
63
63
  /**
64
- * Associated client ID
64
+ * Corsa client ID this verification belongs to
65
65
  */
66
66
  clientId?: string;
67
67
  };
68
68
  export declare namespace VerificationResponseDto {
69
69
  /**
70
- * Verification provider
71
- */
72
- enum provider {
73
- SUMSUB = "SUMSUB",
74
- PERSONA = "PERSONA"
75
- }
76
- /**
77
- * Normalized verification status
70
+ * Corsa-normalized verification status
78
71
  */
79
72
  enum status {
80
73
  REQUESTED = "REQUESTED",
@@ -4,15 +4,7 @@ exports.VerificationResponseDto = void 0;
4
4
  var VerificationResponseDto;
5
5
  (function (VerificationResponseDto) {
6
6
  /**
7
- * Verification provider
8
- */
9
- let provider;
10
- (function (provider) {
11
- provider["SUMSUB"] = "SUMSUB";
12
- provider["PERSONA"] = "PERSONA";
13
- })(provider = VerificationResponseDto.provider || (VerificationResponseDto.provider = {}));
14
- /**
15
- * Normalized verification status
7
+ * Corsa-normalized verification status
16
8
  */
17
9
  let status;
18
10
  (function (status) {
@@ -1 +1 @@
1
- {"version":3,"file":"VerificationResponseDto.js","sourceRoot":"","sources":["../../models/VerificationResponseDto.ts"],"names":[],"mappings":";;;AAuEA,IAAiB,uBAAuB,CAmBvC;AAnBD,WAAiB,uBAAuB;IACpC;;OAEG;IACH,IAAY,QAGX;IAHD,WAAY,QAAQ;QAChB,6BAAiB,CAAA;QACjB,+BAAmB,CAAA;IACvB,CAAC,EAHW,QAAQ,GAAR,gCAAQ,KAAR,gCAAQ,QAGnB;IACD;;OAEG;IACH,IAAY,MAOX;IAPD,WAAY,MAAM;QACd,iCAAuB,CAAA;QACvB,6BAAmB,CAAA;QACnB,+BAAqB,CAAA;QACrB,+BAAqB,CAAA;QACrB,6BAAmB,CAAA;QACnB,iCAAuB,CAAA;IAC3B,CAAC,EAPW,MAAM,GAAN,8BAAM,KAAN,8BAAM,QAOjB;AACL,CAAC,EAnBgB,uBAAuB,uCAAvB,uBAAuB,QAmBvC"}
1
+ {"version":3,"file":"VerificationResponseDto.js","sourceRoot":"","sources":["../../models/VerificationResponseDto.ts"],"names":[],"mappings":";;;AAuEA,IAAiB,uBAAuB,CAYvC;AAZD,WAAiB,uBAAuB;IACpC;;OAEG;IACH,IAAY,MAOX;IAPD,WAAY,MAAM;QACd,iCAAuB,CAAA;QACvB,6BAAmB,CAAA;QACnB,+BAAqB,CAAA;QACrB,+BAAqB,CAAA;QACrB,6BAAmB,CAAA;QACnB,iCAAuB,CAAA;IAC3B,CAAC,EAPW,MAAM,GAAN,8BAAM,KAAN,8BAAM,QAOjB;AACL,CAAC,EAZgB,uBAAuB,uCAAvB,uBAAuB,QAYvC"}