@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.
- package/dist/index.d.ts +28 -1
- package/dist/index.js +17 -5
- package/dist/index.js.map +1 -1
- package/dist/models/BatchCreateCaseFailedDto.d.ts +14 -0
- package/dist/models/BatchCreateCaseFailedDto.js +3 -0
- package/dist/models/BatchCreateCaseFailedDto.js.map +1 -0
- package/dist/models/BatchCreateCasesDto.d.ts +7 -0
- package/dist/models/BatchCreateCasesDto.js +3 -0
- package/dist/models/BatchCreateCasesDto.js.map +1 -0
- package/dist/models/BatchCreateCasesResponseDto.d.ts +24 -0
- package/dist/models/BatchCreateCasesResponseDto.js +3 -0
- package/dist/models/BatchCreateCasesResponseDto.js.map +1 -0
- package/dist/models/BulkAlertUpdateFields.d.ts +193 -0
- package/dist/models/BulkAlertUpdateFields.js +66 -0
- package/dist/models/BulkAlertUpdateFields.js.map +1 -0
- package/dist/models/BulkCaseUpdateFields.d.ts +88 -0
- package/dist/models/BulkCaseUpdateFields.js +35 -0
- package/dist/models/BulkCaseUpdateFields.js.map +1 -0
- package/dist/models/BulkCorporateClientUpdateFields.d.ts +128 -0
- package/dist/models/BulkCorporateClientUpdateFields.js +30 -0
- package/dist/models/BulkCorporateClientUpdateFields.js.map +1 -0
- package/dist/models/BulkFailedCorporateClientDto.d.ts +10 -0
- package/dist/models/BulkFailedCorporateClientDto.js +3 -0
- package/dist/models/BulkFailedCorporateClientDto.js.map +1 -0
- package/dist/models/BulkFailedIndividualClientDto.d.ts +10 -0
- package/dist/models/BulkFailedIndividualClientDto.js +3 -0
- package/dist/models/BulkFailedIndividualClientDto.js.map +1 -0
- package/dist/models/BulkFailedTransactionDto.d.ts +10 -0
- package/dist/models/BulkFailedTransactionDto.js +3 -0
- package/dist/models/BulkFailedTransactionDto.js.map +1 -0
- package/dist/models/BulkIndividualClientUpdateFields.d.ts +123 -0
- package/dist/models/BulkIndividualClientUpdateFields.js +30 -0
- package/dist/models/BulkIndividualClientUpdateFields.js.map +1 -0
- package/dist/models/BulkTransactionUpdateFields.d.ts +47 -0
- package/dist/models/BulkTransactionUpdateFields.js +16 -0
- package/dist/models/BulkTransactionUpdateFields.js.map +1 -0
- package/dist/models/BulkUpdateAlertDto.d.ts +11 -0
- package/dist/models/BulkUpdateAlertDto.js +3 -0
- package/dist/models/BulkUpdateAlertDto.js.map +1 -0
- package/dist/models/BulkUpdateAlertResponseDto.d.ts +28 -0
- package/dist/models/BulkUpdateAlertResponseDto.js +3 -0
- package/dist/models/BulkUpdateAlertResponseDto.js.map +1 -0
- package/dist/models/BulkUpdateCaseDto.d.ts +11 -0
- package/dist/models/BulkUpdateCaseDto.js +3 -0
- package/dist/models/BulkUpdateCaseDto.js.map +1 -0
- package/dist/models/BulkUpdateCaseResponseDto.d.ts +28 -0
- package/dist/models/BulkUpdateCaseResponseDto.js +3 -0
- package/dist/models/BulkUpdateCaseResponseDto.js.map +1 -0
- package/dist/models/BulkUpdateCorporateClientsDto.d.ts +11 -0
- package/dist/models/BulkUpdateCorporateClientsDto.js +3 -0
- package/dist/models/BulkUpdateCorporateClientsDto.js.map +1 -0
- package/dist/models/BulkUpdateCorporateClientsResponseDto.d.ts +24 -0
- package/dist/models/BulkUpdateCorporateClientsResponseDto.js +3 -0
- package/dist/models/BulkUpdateCorporateClientsResponseDto.js.map +1 -0
- package/dist/models/BulkUpdateIndividualClientsDto.d.ts +11 -0
- package/dist/models/BulkUpdateIndividualClientsDto.js +3 -0
- package/dist/models/BulkUpdateIndividualClientsDto.js.map +1 -0
- package/dist/models/BulkUpdateIndividualClientsResponseDto.d.ts +24 -0
- package/dist/models/BulkUpdateIndividualClientsResponseDto.js +3 -0
- package/dist/models/BulkUpdateIndividualClientsResponseDto.js.map +1 -0
- package/dist/models/BulkUpdateTransactionsDto.d.ts +11 -0
- package/dist/models/BulkUpdateTransactionsDto.js +3 -0
- package/dist/models/BulkUpdateTransactionsDto.js.map +1 -0
- package/dist/models/BulkUpdateTransactionsResponseDto.d.ts +24 -0
- package/dist/models/BulkUpdateTransactionsResponseDto.js +3 -0
- package/dist/models/BulkUpdateTransactionsResponseDto.js.map +1 -0
- package/dist/models/BulkUpdatedAlertFieldsDto.d.ts +14 -0
- package/dist/models/BulkUpdatedAlertFieldsDto.js +3 -0
- package/dist/models/BulkUpdatedAlertFieldsDto.js.map +1 -0
- package/dist/models/BulkUpdatedCaseFieldsDto.d.ts +14 -0
- package/dist/models/BulkUpdatedCaseFieldsDto.js +3 -0
- package/dist/models/BulkUpdatedCaseFieldsDto.js.map +1 -0
- package/dist/models/BulkUpdatedCorporateClientDto.d.ts +14 -0
- package/dist/models/BulkUpdatedCorporateClientDto.js +3 -0
- package/dist/models/BulkUpdatedCorporateClientDto.js.map +1 -0
- package/dist/models/BulkUpdatedIndividualClientDto.d.ts +14 -0
- package/dist/models/BulkUpdatedIndividualClientDto.js +3 -0
- package/dist/models/BulkUpdatedIndividualClientDto.js.map +1 -0
- package/dist/models/BulkUpdatedTransactionDto.d.ts +14 -0
- package/dist/models/BulkUpdatedTransactionDto.js +3 -0
- package/dist/models/BulkUpdatedTransactionDto.js.map +1 -0
- package/dist/models/ClientSumsubDto.d.ts +4 -0
- package/dist/models/CreateDepositOperationDto.d.ts +1 -1
- package/dist/models/{UpsertVerificationDto.d.ts → CreateVerificationDto.d.ts} +10 -17
- package/dist/models/CreateVerificationDto.js +19 -0
- package/dist/models/CreateVerificationDto.js.map +1 -0
- package/dist/models/CreateWithdrawalOperationDto.d.ts +2 -2
- package/dist/models/UpdateVerificationDto.d.ts +52 -0
- package/dist/models/UpdateVerificationDto.js +19 -0
- package/dist/models/UpdateVerificationDto.js.map +1 -0
- package/dist/models/VerificationCheckDto.d.ts +6 -6
- package/dist/models/VerificationCheckDto.js +1 -1
- package/dist/models/VerificationCheckImageDto.d.ts +7 -7
- package/dist/models/VerificationCheckImageDto.js +1 -1
- package/dist/models/VerificationResponseDto.d.ts +17 -24
- package/dist/models/VerificationResponseDto.js +1 -9
- package/dist/models/VerificationResponseDto.js.map +1 -1
- package/dist/services/AlertsService.d.ts +10 -0
- package/dist/services/AlertsService.js +15 -0
- package/dist/services/AlertsService.js.map +1 -1
- package/dist/services/CasesService.d.ts +20 -0
- package/dist/services/CasesService.js +30 -0
- package/dist/services/CasesService.js.map +1 -1
- package/dist/services/ClientsService.d.ts +20 -0
- package/dist/services/ClientsService.js +30 -0
- package/dist/services/ClientsService.js.map +1 -1
- package/dist/services/TransactionsService.d.ts +10 -0
- package/dist/services/TransactionsService.js +15 -0
- package/dist/services/TransactionsService.js.map +1 -1
- package/dist/services/VerificationsService.d.ts +15 -4
- package/dist/services/VerificationsService.js +29 -5
- package/dist/services/VerificationsService.js.map +1 -1
- package/package.json +1 -1
- package/dist/models/UpsertVerificationDto.js +0 -27
- 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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import type { VerificationCheckDto } from './VerificationCheckDto';
|
|
2
|
-
export type
|
|
2
|
+
export type CreateVerificationDto = {
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Name of the KYC/KYB provider (e.g. SUMSUB, PERSONA)
|
|
5
5
|
*/
|
|
6
|
-
provider:
|
|
6
|
+
provider: string;
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Unique verification identifier in the provider's system
|
|
9
9
|
*/
|
|
10
10
|
providerId: string;
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
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
|
-
*
|
|
20
|
+
* Corsa-normalized verification status
|
|
21
21
|
*/
|
|
22
|
-
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
|
|
48
|
+
export declare namespace CreateVerificationDto {
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
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
|
-
*
|
|
9
|
+
* UUID of the client who initiated the withdrawal
|
|
10
10
|
*/
|
|
11
|
-
initiatedBy
|
|
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
|
-
*
|
|
4
|
+
* Name of the verification check (e.g. Identity, Document, Selfie)
|
|
5
5
|
*/
|
|
6
6
|
title: string;
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Overall status of this verification check
|
|
9
9
|
*/
|
|
10
10
|
status: VerificationCheckDto.status;
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* ISO 3166-1 alpha-2 country code of the issued document
|
|
13
13
|
*/
|
|
14
14
|
country?: string;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Type of document verified (e.g. PASSPORT, ID_CARD, DRIVERS_LICENSE)
|
|
17
17
|
*/
|
|
18
18
|
documentType?: string;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
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
|
-
*
|
|
26
|
+
* Overall status of this verification check
|
|
27
27
|
*/
|
|
28
28
|
enum status {
|
|
29
29
|
APPROVED = "Approved",
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
export type VerificationCheckImageDto = {
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Provider-assigned image identifier
|
|
4
4
|
*/
|
|
5
5
|
id: string;
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Review status of the document image
|
|
8
8
|
*/
|
|
9
9
|
status: VerificationCheckImageDto.status;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Provider-specific rejection labels for the document image
|
|
12
12
|
*/
|
|
13
13
|
rejectLabels?: Array<string>;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Human-readable rejection reason for the document image
|
|
16
16
|
*/
|
|
17
17
|
reason?: string;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
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
|
-
*
|
|
29
|
+
* Review status of the document image
|
|
30
30
|
*/
|
|
31
31
|
enum status {
|
|
32
32
|
APPROVED = "Approved",
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import type { VerificationCheckDto } from './VerificationCheckDto';
|
|
2
2
|
export type VerificationResponseDto = {
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Corsa verification ID
|
|
5
5
|
*/
|
|
6
6
|
id: string;
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Corsa platform (tenant) ID
|
|
9
9
|
*/
|
|
10
10
|
platformId: string;
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Timestamp when the verification was created in Corsa
|
|
13
13
|
*/
|
|
14
14
|
createdAt: string;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Timestamp when the verification was last updated in Corsa
|
|
17
17
|
*/
|
|
18
18
|
updatedAt: string;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Name of the KYC/KYB provider (e.g. SUMSUB, PERSONA)
|
|
21
21
|
*/
|
|
22
|
-
provider:
|
|
22
|
+
provider: string;
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Unique verification identifier in the provider's system
|
|
25
25
|
*/
|
|
26
26
|
providerId: string;
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* Raw verification status as reported by the provider
|
|
29
29
|
*/
|
|
30
30
|
providerStatus: string;
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* Direct link to this verification in the provider's dashboard
|
|
33
33
|
*/
|
|
34
34
|
providerLink?: string;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
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
|
-
*
|
|
44
|
+
* Provider-specific rejection reason labels
|
|
45
45
|
*/
|
|
46
46
|
rejectLabels?: Array<string>;
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* Timestamp when the verification process was initiated by the provider
|
|
49
49
|
*/
|
|
50
50
|
startedAt?: string;
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
52
|
+
* Timestamp when the verification process was completed by the provider
|
|
53
53
|
*/
|
|
54
54
|
completedAt?: string;
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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,
|
|
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"}
|