@trinsic/api 2.1.0 → 2.1.1-alpha2
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/.openapi-generator/FILES +3 -0
- package/dist/esm/models/IdentityData.d.ts +7 -0
- package/dist/esm/models/IdentityData.js +3 -0
- package/dist/esm/models/IndonesiaDukcapilMatchInput.d.ts +84 -0
- package/dist/esm/models/IndonesiaDukcapilMatchInput.js +55 -0
- package/dist/esm/models/Match.d.ts +38 -0
- package/dist/esm/models/Match.js +43 -0
- package/dist/esm/models/MatchData.d.ts +87 -0
- package/dist/esm/models/MatchData.js +60 -0
- package/dist/esm/models/ProviderInput.d.ts +7 -0
- package/dist/esm/models/ProviderInput.js +3 -0
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.js +3 -0
- package/dist/models/IdentityData.d.ts +7 -0
- package/dist/models/IdentityData.js +3 -0
- package/dist/models/IndonesiaDukcapilMatchInput.d.ts +84 -0
- package/dist/models/IndonesiaDukcapilMatchInput.js +62 -0
- package/dist/models/Match.d.ts +38 -0
- package/dist/models/Match.js +50 -0
- package/dist/models/MatchData.d.ts +87 -0
- package/dist/models/MatchData.js +67 -0
- package/dist/models/ProviderInput.d.ts +7 -0
- package/dist/models/ProviderInput.js +3 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/package.json +1 -1
- package/src/models/IdentityData.ts +15 -0
- package/src/models/IndonesiaDukcapilMatchInput.ts +131 -0
- package/src/models/Match.ts +73 -0
- package/src/models/MatchData.ts +145 -0
- package/src/models/ProviderInput.ts +15 -0
- package/src/models/index.ts +3 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -34,6 +34,7 @@ src/models/GetSessionResultResponse.ts
|
|
|
34
34
|
src/models/HttpValidationProblemDetails.ts
|
|
35
35
|
src/models/IdentityData.ts
|
|
36
36
|
src/models/IdinInput.ts
|
|
37
|
+
src/models/IndonesiaDukcapilMatchInput.ts
|
|
37
38
|
src/models/IndonesiaNikInput.ts
|
|
38
39
|
src/models/IntegrationCapability.ts
|
|
39
40
|
src/models/IntegrationLaunchMethod.ts
|
|
@@ -43,6 +44,8 @@ src/models/Language.ts
|
|
|
43
44
|
src/models/ListProviderContractsResponse.ts
|
|
44
45
|
src/models/ListProvidersResponse.ts
|
|
45
46
|
src/models/ListSessionsResponse.ts
|
|
47
|
+
src/models/Match.ts
|
|
48
|
+
src/models/MatchData.ts
|
|
46
49
|
src/models/MexicoCurpInput.ts
|
|
47
50
|
src/models/MobileIdInput.ts
|
|
48
51
|
src/models/NigeriaNinInput.ts
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import type { DocumentData } from './DocumentData';
|
|
13
13
|
import type { PersonData } from './PersonData';
|
|
14
14
|
import type { AttachmentAccessKeys } from './AttachmentAccessKeys';
|
|
15
|
+
import type { MatchData } from './MatchData';
|
|
15
16
|
/**
|
|
16
17
|
*
|
|
17
18
|
* @export
|
|
@@ -42,6 +43,12 @@ export interface IdentityData {
|
|
|
42
43
|
* @memberof IdentityData
|
|
43
44
|
*/
|
|
44
45
|
document?: DocumentData | null;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {MatchData}
|
|
49
|
+
* @memberof IdentityData
|
|
50
|
+
*/
|
|
51
|
+
match?: MatchData | null;
|
|
45
52
|
/**
|
|
46
53
|
*
|
|
47
54
|
* @type {AttachmentAccessKeys}
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
import { DocumentDataFromJSON, DocumentDataToJSON, } from './DocumentData';
|
|
15
15
|
import { PersonDataFromJSON, PersonDataToJSON, } from './PersonData';
|
|
16
16
|
import { AttachmentAccessKeysFromJSON, AttachmentAccessKeysToJSON, } from './AttachmentAccessKeys';
|
|
17
|
+
import { MatchDataFromJSON, MatchDataToJSON, } from './MatchData';
|
|
17
18
|
/**
|
|
18
19
|
* Check if a given object implements the IdentityData interface.
|
|
19
20
|
*/
|
|
@@ -32,6 +33,7 @@ export function IdentityDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
33
|
'originatingSubProviderId': json['originatingSubProviderId'] == null ? undefined : json['originatingSubProviderId'],
|
|
33
34
|
'person': json['person'] == null ? undefined : PersonDataFromJSON(json['person']),
|
|
34
35
|
'document': json['document'] == null ? undefined : DocumentDataFromJSON(json['document']),
|
|
36
|
+
'match': json['match'] == null ? undefined : MatchDataFromJSON(json['match']),
|
|
35
37
|
'attachmentAccessKeys': json['attachmentAccessKeys'] == null ? undefined : AttachmentAccessKeysFromJSON(json['attachmentAccessKeys']),
|
|
36
38
|
};
|
|
37
39
|
}
|
|
@@ -47,6 +49,7 @@ export function IdentityDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
47
49
|
'originatingSubProviderId': value['originatingSubProviderId'],
|
|
48
50
|
'person': PersonDataToJSON(value['person']),
|
|
49
51
|
'document': DocumentDataToJSON(value['document']),
|
|
52
|
+
'match': MatchDataToJSON(value['match']),
|
|
50
53
|
'attachmentAccessKeys': AttachmentAccessKeysToJSON(value['attachmentAccessKeys']),
|
|
51
54
|
};
|
|
52
55
|
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Trinsic API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface IndonesiaDukcapilMatchInput
|
|
16
|
+
*/
|
|
17
|
+
export interface IndonesiaDukcapilMatchInput {
|
|
18
|
+
/**
|
|
19
|
+
* The user's full name
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof IndonesiaDukcapilMatchInput
|
|
22
|
+
*/
|
|
23
|
+
fullName?: string | null;
|
|
24
|
+
/**
|
|
25
|
+
* The user's date of birth, in `YYYY-MM-DD` format
|
|
26
|
+
* @type {Date}
|
|
27
|
+
* @memberof IndonesiaDukcapilMatchInput
|
|
28
|
+
*/
|
|
29
|
+
dateOfBirth?: Date | null;
|
|
30
|
+
/**
|
|
31
|
+
* The user's Indonesia NIK ID number
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof IndonesiaDukcapilMatchInput
|
|
34
|
+
*/
|
|
35
|
+
nikIdNumber?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* The email address of the individual.
|
|
38
|
+
*
|
|
39
|
+
* Either email or phone number must be provided.
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof IndonesiaDukcapilMatchInput
|
|
42
|
+
*/
|
|
43
|
+
email?: string | null;
|
|
44
|
+
/**
|
|
45
|
+
* The phone number of the individual.
|
|
46
|
+
*
|
|
47
|
+
* Either email or phone number must be provided.
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof IndonesiaDukcapilMatchInput
|
|
50
|
+
*/
|
|
51
|
+
phoneNumber?: string | null;
|
|
52
|
+
/**
|
|
53
|
+
* The raw bytes of the selfie image of the individual.
|
|
54
|
+
*
|
|
55
|
+
* Must be JPEG or PNG format; 10MB maximum.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof IndonesiaDukcapilMatchInput
|
|
58
|
+
*/
|
|
59
|
+
selfieImage?: string | null;
|
|
60
|
+
/**
|
|
61
|
+
* The raw bytes of the image of the individual's KTP government ID.
|
|
62
|
+
*
|
|
63
|
+
* Must be JPEG format; 1MB maximum.
|
|
64
|
+
*
|
|
65
|
+
* Optional.
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof IndonesiaDukcapilMatchInput
|
|
68
|
+
*/
|
|
69
|
+
documentImage?: string | null;
|
|
70
|
+
/**
|
|
71
|
+
* The timestamp when consent was given by the user for the verification.
|
|
72
|
+
* @type {Date}
|
|
73
|
+
* @memberof IndonesiaDukcapilMatchInput
|
|
74
|
+
*/
|
|
75
|
+
consentGivenAt?: Date | null;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Check if a given object implements the IndonesiaDukcapilMatchInput interface.
|
|
79
|
+
*/
|
|
80
|
+
export declare function instanceOfIndonesiaDukcapilMatchInput(value: object): value is IndonesiaDukcapilMatchInput;
|
|
81
|
+
export declare function IndonesiaDukcapilMatchInputFromJSON(json: any): IndonesiaDukcapilMatchInput;
|
|
82
|
+
export declare function IndonesiaDukcapilMatchInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndonesiaDukcapilMatchInput;
|
|
83
|
+
export declare function IndonesiaDukcapilMatchInputToJSON(json: any): IndonesiaDukcapilMatchInput;
|
|
84
|
+
export declare function IndonesiaDukcapilMatchInputToJSONTyped(value?: IndonesiaDukcapilMatchInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Trinsic API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the IndonesiaDukcapilMatchInput interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfIndonesiaDukcapilMatchInput(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function IndonesiaDukcapilMatchInputFromJSON(json) {
|
|
21
|
+
return IndonesiaDukcapilMatchInputFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function IndonesiaDukcapilMatchInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'fullName': json['fullName'] == null ? undefined : json['fullName'],
|
|
29
|
+
'dateOfBirth': json['dateOfBirth'] == null ? undefined : (new Date(json['dateOfBirth'])),
|
|
30
|
+
'nikIdNumber': json['nikIdNumber'] == null ? undefined : json['nikIdNumber'],
|
|
31
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
32
|
+
'phoneNumber': json['phoneNumber'] == null ? undefined : json['phoneNumber'],
|
|
33
|
+
'selfieImage': json['selfieImage'] == null ? undefined : json['selfieImage'],
|
|
34
|
+
'documentImage': json['documentImage'] == null ? undefined : json['documentImage'],
|
|
35
|
+
'consentGivenAt': json['consentGivenAt'] == null ? undefined : (new Date(json['consentGivenAt'])),
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function IndonesiaDukcapilMatchInputToJSON(json) {
|
|
39
|
+
return IndonesiaDukcapilMatchInputToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function IndonesiaDukcapilMatchInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'fullName': value['fullName'],
|
|
47
|
+
'dateOfBirth': value['dateOfBirth'] == null ? undefined : (value['dateOfBirth'].toISOString().substring(0, 10)),
|
|
48
|
+
'nikIdNumber': value['nikIdNumber'],
|
|
49
|
+
'email': value['email'],
|
|
50
|
+
'phoneNumber': value['phoneNumber'],
|
|
51
|
+
'selfieImage': value['selfieImage'],
|
|
52
|
+
'documentImage': value['documentImage'],
|
|
53
|
+
'consentGivenAt': value['consentGivenAt'] == null ? undefined : (value['consentGivenAt'].toISOString()),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Trinsic API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface Match
|
|
16
|
+
*/
|
|
17
|
+
export interface Match {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof Match
|
|
22
|
+
*/
|
|
23
|
+
probabilityValue?: number | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof Match
|
|
28
|
+
*/
|
|
29
|
+
booleanValue?: boolean | null;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the Match interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfMatch(value: object): value is Match;
|
|
35
|
+
export declare function MatchFromJSON(json: any): Match;
|
|
36
|
+
export declare function MatchFromJSONTyped(json: any, ignoreDiscriminator: boolean): Match;
|
|
37
|
+
export declare function MatchToJSON(json: any): Match;
|
|
38
|
+
export declare function MatchToJSONTyped(value?: Match | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Trinsic API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the Match interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfMatch(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function MatchFromJSON(json) {
|
|
21
|
+
return MatchFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function MatchFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'probabilityValue': json['probabilityValue'] == null ? undefined : json['probabilityValue'],
|
|
29
|
+
'booleanValue': json['booleanValue'] == null ? undefined : json['booleanValue'],
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export function MatchToJSON(json) {
|
|
33
|
+
return MatchToJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function MatchToJSONTyped(value, ignoreDiscriminator = false) {
|
|
36
|
+
if (value == null) {
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'probabilityValue': value['probabilityValue'],
|
|
41
|
+
'booleanValue': value['booleanValue'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Trinsic API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Match } from './Match';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface MatchData
|
|
17
|
+
*/
|
|
18
|
+
export interface MatchData {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Match}
|
|
22
|
+
* @memberof MatchData
|
|
23
|
+
*/
|
|
24
|
+
nationalIdNumber?: Match | null;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Match}
|
|
28
|
+
* @memberof MatchData
|
|
29
|
+
*/
|
|
30
|
+
fullName?: Match | null;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {Match}
|
|
34
|
+
* @memberof MatchData
|
|
35
|
+
*/
|
|
36
|
+
givenName?: Match | null;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Match}
|
|
40
|
+
* @memberof MatchData
|
|
41
|
+
*/
|
|
42
|
+
middleName?: Match | null;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Match}
|
|
46
|
+
* @memberof MatchData
|
|
47
|
+
*/
|
|
48
|
+
familyName?: Match | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {Match}
|
|
52
|
+
* @memberof MatchData
|
|
53
|
+
*/
|
|
54
|
+
sex?: Match | null;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {Match}
|
|
58
|
+
* @memberof MatchData
|
|
59
|
+
*/
|
|
60
|
+
dateOfBirth?: Match | null;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {Match}
|
|
64
|
+
* @memberof MatchData
|
|
65
|
+
*/
|
|
66
|
+
faceMatch?: Match | null;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {Match}
|
|
70
|
+
* @memberof MatchData
|
|
71
|
+
*/
|
|
72
|
+
liveness?: Match | null;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {Match}
|
|
76
|
+
* @memberof MatchData
|
|
77
|
+
*/
|
|
78
|
+
imageAuthenticity?: Match | null;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Check if a given object implements the MatchData interface.
|
|
82
|
+
*/
|
|
83
|
+
export declare function instanceOfMatchData(value: object): value is MatchData;
|
|
84
|
+
export declare function MatchDataFromJSON(json: any): MatchData;
|
|
85
|
+
export declare function MatchDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): MatchData;
|
|
86
|
+
export declare function MatchDataToJSON(json: any): MatchData;
|
|
87
|
+
export declare function MatchDataToJSONTyped(value?: MatchData | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Trinsic API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { MatchFromJSON, MatchToJSON, } from './Match';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the MatchData interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfMatchData(value) {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
export function MatchDataFromJSON(json) {
|
|
22
|
+
return MatchDataFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
export function MatchDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if (json == null) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'nationalIdNumber': json['nationalIdNumber'] == null ? undefined : MatchFromJSON(json['nationalIdNumber']),
|
|
30
|
+
'fullName': json['fullName'] == null ? undefined : MatchFromJSON(json['fullName']),
|
|
31
|
+
'givenName': json['givenName'] == null ? undefined : MatchFromJSON(json['givenName']),
|
|
32
|
+
'middleName': json['middleName'] == null ? undefined : MatchFromJSON(json['middleName']),
|
|
33
|
+
'familyName': json['familyName'] == null ? undefined : MatchFromJSON(json['familyName']),
|
|
34
|
+
'sex': json['sex'] == null ? undefined : MatchFromJSON(json['sex']),
|
|
35
|
+
'dateOfBirth': json['dateOfBirth'] == null ? undefined : MatchFromJSON(json['dateOfBirth']),
|
|
36
|
+
'faceMatch': json['faceMatch'] == null ? undefined : MatchFromJSON(json['faceMatch']),
|
|
37
|
+
'liveness': json['liveness'] == null ? undefined : MatchFromJSON(json['liveness']),
|
|
38
|
+
'imageAuthenticity': json['imageAuthenticity'] == null ? undefined : MatchFromJSON(json['imageAuthenticity']),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export function MatchDataToJSON(json) {
|
|
42
|
+
return MatchDataToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function MatchDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'nationalIdNumber': MatchToJSON(value['nationalIdNumber']),
|
|
50
|
+
'fullName': MatchToJSON(value['fullName']),
|
|
51
|
+
'givenName': MatchToJSON(value['givenName']),
|
|
52
|
+
'middleName': MatchToJSON(value['middleName']),
|
|
53
|
+
'familyName': MatchToJSON(value['familyName']),
|
|
54
|
+
'sex': MatchToJSON(value['sex']),
|
|
55
|
+
'dateOfBirth': MatchToJSON(value['dateOfBirth']),
|
|
56
|
+
'faceMatch': MatchToJSON(value['faceMatch']),
|
|
57
|
+
'liveness': MatchToJSON(value['liveness']),
|
|
58
|
+
'imageAuthenticity': MatchToJSON(value['imageAuthenticity']),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -22,6 +22,7 @@ import type { AadhaarInput } from './AadhaarInput';
|
|
|
22
22
|
import type { KenyaNidInput } from './KenyaNidInput';
|
|
23
23
|
import type { NigeriaNinInput } from './NigeriaNinInput';
|
|
24
24
|
import type { SmartIdInput } from './SmartIdInput';
|
|
25
|
+
import type { IndonesiaDukcapilMatchInput } from './IndonesiaDukcapilMatchInput';
|
|
25
26
|
import type { MobileIdInput } from './MobileIdInput';
|
|
26
27
|
import type { TrinsicTestDatabaseLookupInput } from './TrinsicTestDatabaseLookupInput';
|
|
27
28
|
import type { IndonesiaNikInput } from './IndonesiaNikInput';
|
|
@@ -38,6 +39,12 @@ export interface ProviderInput {
|
|
|
38
39
|
* @memberof ProviderInput
|
|
39
40
|
*/
|
|
40
41
|
indonesiaNik?: IndonesiaNikInput | null;
|
|
42
|
+
/**
|
|
43
|
+
* Input for the `indonesia-dukcapil-match` provider
|
|
44
|
+
* @type {IndonesiaDukcapilMatchInput}
|
|
45
|
+
* @memberof ProviderInput
|
|
46
|
+
*/
|
|
47
|
+
indonesiaDukcapilMatch?: IndonesiaDukcapilMatchInput | null;
|
|
41
48
|
/**
|
|
42
49
|
* Input for the `mexico-curp-lookup` provider
|
|
43
50
|
* @type {MexicoCurpInput}
|
|
@@ -24,6 +24,7 @@ import { AadhaarInputFromJSON, AadhaarInputToJSON, } from './AadhaarInput';
|
|
|
24
24
|
import { KenyaNidInputFromJSON, KenyaNidInputToJSON, } from './KenyaNidInput';
|
|
25
25
|
import { NigeriaNinInputFromJSON, NigeriaNinInputToJSON, } from './NigeriaNinInput';
|
|
26
26
|
import { SmartIdInputFromJSON, SmartIdInputToJSON, } from './SmartIdInput';
|
|
27
|
+
import { IndonesiaDukcapilMatchInputFromJSON, IndonesiaDukcapilMatchInputToJSON, } from './IndonesiaDukcapilMatchInput';
|
|
27
28
|
import { MobileIdInputFromJSON, MobileIdInputToJSON, } from './MobileIdInput';
|
|
28
29
|
import { TrinsicTestDatabaseLookupInputFromJSON, TrinsicTestDatabaseLookupInputToJSON, } from './TrinsicTestDatabaseLookupInput';
|
|
29
30
|
import { IndonesiaNikInputFromJSON, IndonesiaNikInputToJSON, } from './IndonesiaNikInput';
|
|
@@ -43,6 +44,7 @@ export function ProviderInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
44
|
}
|
|
44
45
|
return {
|
|
45
46
|
'indonesiaNik': json['indonesiaNik'] == null ? undefined : IndonesiaNikInputFromJSON(json['indonesiaNik']),
|
|
47
|
+
'indonesiaDukcapilMatch': json['indonesiaDukcapilMatch'] == null ? undefined : IndonesiaDukcapilMatchInputFromJSON(json['indonesiaDukcapilMatch']),
|
|
46
48
|
'mexicoCurp': json['mexicoCurp'] == null ? undefined : MexicoCurpInputFromJSON(json['mexicoCurp']),
|
|
47
49
|
'southAfricaNid': json['southAfricaNid'] == null ? undefined : SouthAfricaNidInputFromJSON(json['southAfricaNid']),
|
|
48
50
|
'kenyaNid': json['kenyaNid'] == null ? undefined : KenyaNidInputFromJSON(json['kenyaNid']),
|
|
@@ -70,6 +72,7 @@ export function ProviderInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
70
72
|
}
|
|
71
73
|
return {
|
|
72
74
|
'indonesiaNik': IndonesiaNikInputToJSON(value['indonesiaNik']),
|
|
75
|
+
'indonesiaDukcapilMatch': IndonesiaDukcapilMatchInputToJSON(value['indonesiaDukcapilMatch']),
|
|
73
76
|
'mexicoCurp': MexicoCurpInputToJSON(value['mexicoCurp']),
|
|
74
77
|
'southAfricaNid': SouthAfricaNidInputToJSON(value['southAfricaNid']),
|
|
75
78
|
'kenyaNid': KenyaNidInputToJSON(value['kenyaNid']),
|
|
@@ -24,6 +24,7 @@ export * from './GetSessionResultResponse';
|
|
|
24
24
|
export * from './HttpValidationProblemDetails';
|
|
25
25
|
export * from './IdentityData';
|
|
26
26
|
export * from './IdinInput';
|
|
27
|
+
export * from './IndonesiaDukcapilMatchInput';
|
|
27
28
|
export * from './IndonesiaNikInput';
|
|
28
29
|
export * from './IntegrationCapability';
|
|
29
30
|
export * from './IntegrationLaunchMethod';
|
|
@@ -33,6 +34,8 @@ export * from './Language';
|
|
|
33
34
|
export * from './ListProviderContractsResponse';
|
|
34
35
|
export * from './ListProvidersResponse';
|
|
35
36
|
export * from './ListSessionsResponse';
|
|
37
|
+
export * from './Match';
|
|
38
|
+
export * from './MatchData';
|
|
36
39
|
export * from './MexicoCurpInput';
|
|
37
40
|
export * from './MobileIdInput';
|
|
38
41
|
export * from './NigeriaNinInput';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -26,6 +26,7 @@ export * from './GetSessionResultResponse';
|
|
|
26
26
|
export * from './HttpValidationProblemDetails';
|
|
27
27
|
export * from './IdentityData';
|
|
28
28
|
export * from './IdinInput';
|
|
29
|
+
export * from './IndonesiaDukcapilMatchInput';
|
|
29
30
|
export * from './IndonesiaNikInput';
|
|
30
31
|
export * from './IntegrationCapability';
|
|
31
32
|
export * from './IntegrationLaunchMethod';
|
|
@@ -35,6 +36,8 @@ export * from './Language';
|
|
|
35
36
|
export * from './ListProviderContractsResponse';
|
|
36
37
|
export * from './ListProvidersResponse';
|
|
37
38
|
export * from './ListSessionsResponse';
|
|
39
|
+
export * from './Match';
|
|
40
|
+
export * from './MatchData';
|
|
38
41
|
export * from './MexicoCurpInput';
|
|
39
42
|
export * from './MobileIdInput';
|
|
40
43
|
export * from './NigeriaNinInput';
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import type { DocumentData } from './DocumentData';
|
|
13
13
|
import type { PersonData } from './PersonData';
|
|
14
14
|
import type { AttachmentAccessKeys } from './AttachmentAccessKeys';
|
|
15
|
+
import type { MatchData } from './MatchData';
|
|
15
16
|
/**
|
|
16
17
|
*
|
|
17
18
|
* @export
|
|
@@ -42,6 +43,12 @@ export interface IdentityData {
|
|
|
42
43
|
* @memberof IdentityData
|
|
43
44
|
*/
|
|
44
45
|
document?: DocumentData | null;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {MatchData}
|
|
49
|
+
* @memberof IdentityData
|
|
50
|
+
*/
|
|
51
|
+
match?: MatchData | null;
|
|
45
52
|
/**
|
|
46
53
|
*
|
|
47
54
|
* @type {AttachmentAccessKeys}
|
|
@@ -21,6 +21,7 @@ exports.IdentityDataToJSONTyped = IdentityDataToJSONTyped;
|
|
|
21
21
|
const DocumentData_1 = require("./DocumentData");
|
|
22
22
|
const PersonData_1 = require("./PersonData");
|
|
23
23
|
const AttachmentAccessKeys_1 = require("./AttachmentAccessKeys");
|
|
24
|
+
const MatchData_1 = require("./MatchData");
|
|
24
25
|
/**
|
|
25
26
|
* Check if a given object implements the IdentityData interface.
|
|
26
27
|
*/
|
|
@@ -39,6 +40,7 @@ function IdentityDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
40
|
'originatingSubProviderId': json['originatingSubProviderId'] == null ? undefined : json['originatingSubProviderId'],
|
|
40
41
|
'person': json['person'] == null ? undefined : (0, PersonData_1.PersonDataFromJSON)(json['person']),
|
|
41
42
|
'document': json['document'] == null ? undefined : (0, DocumentData_1.DocumentDataFromJSON)(json['document']),
|
|
43
|
+
'match': json['match'] == null ? undefined : (0, MatchData_1.MatchDataFromJSON)(json['match']),
|
|
42
44
|
'attachmentAccessKeys': json['attachmentAccessKeys'] == null ? undefined : (0, AttachmentAccessKeys_1.AttachmentAccessKeysFromJSON)(json['attachmentAccessKeys']),
|
|
43
45
|
};
|
|
44
46
|
}
|
|
@@ -54,6 +56,7 @@ function IdentityDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
54
56
|
'originatingSubProviderId': value['originatingSubProviderId'],
|
|
55
57
|
'person': (0, PersonData_1.PersonDataToJSON)(value['person']),
|
|
56
58
|
'document': (0, DocumentData_1.DocumentDataToJSON)(value['document']),
|
|
59
|
+
'match': (0, MatchData_1.MatchDataToJSON)(value['match']),
|
|
57
60
|
'attachmentAccessKeys': (0, AttachmentAccessKeys_1.AttachmentAccessKeysToJSON)(value['attachmentAccessKeys']),
|
|
58
61
|
};
|
|
59
62
|
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Trinsic API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface IndonesiaDukcapilMatchInput
|
|
16
|
+
*/
|
|
17
|
+
export interface IndonesiaDukcapilMatchInput {
|
|
18
|
+
/**
|
|
19
|
+
* The user's full name
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof IndonesiaDukcapilMatchInput
|
|
22
|
+
*/
|
|
23
|
+
fullName?: string | null;
|
|
24
|
+
/**
|
|
25
|
+
* The user's date of birth, in `YYYY-MM-DD` format
|
|
26
|
+
* @type {Date}
|
|
27
|
+
* @memberof IndonesiaDukcapilMatchInput
|
|
28
|
+
*/
|
|
29
|
+
dateOfBirth?: Date | null;
|
|
30
|
+
/**
|
|
31
|
+
* The user's Indonesia NIK ID number
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof IndonesiaDukcapilMatchInput
|
|
34
|
+
*/
|
|
35
|
+
nikIdNumber?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* The email address of the individual.
|
|
38
|
+
*
|
|
39
|
+
* Either email or phone number must be provided.
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof IndonesiaDukcapilMatchInput
|
|
42
|
+
*/
|
|
43
|
+
email?: string | null;
|
|
44
|
+
/**
|
|
45
|
+
* The phone number of the individual.
|
|
46
|
+
*
|
|
47
|
+
* Either email or phone number must be provided.
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof IndonesiaDukcapilMatchInput
|
|
50
|
+
*/
|
|
51
|
+
phoneNumber?: string | null;
|
|
52
|
+
/**
|
|
53
|
+
* The raw bytes of the selfie image of the individual.
|
|
54
|
+
*
|
|
55
|
+
* Must be JPEG or PNG format; 10MB maximum.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof IndonesiaDukcapilMatchInput
|
|
58
|
+
*/
|
|
59
|
+
selfieImage?: string | null;
|
|
60
|
+
/**
|
|
61
|
+
* The raw bytes of the image of the individual's KTP government ID.
|
|
62
|
+
*
|
|
63
|
+
* Must be JPEG format; 1MB maximum.
|
|
64
|
+
*
|
|
65
|
+
* Optional.
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof IndonesiaDukcapilMatchInput
|
|
68
|
+
*/
|
|
69
|
+
documentImage?: string | null;
|
|
70
|
+
/**
|
|
71
|
+
* The timestamp when consent was given by the user for the verification.
|
|
72
|
+
* @type {Date}
|
|
73
|
+
* @memberof IndonesiaDukcapilMatchInput
|
|
74
|
+
*/
|
|
75
|
+
consentGivenAt?: Date | null;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Check if a given object implements the IndonesiaDukcapilMatchInput interface.
|
|
79
|
+
*/
|
|
80
|
+
export declare function instanceOfIndonesiaDukcapilMatchInput(value: object): value is IndonesiaDukcapilMatchInput;
|
|
81
|
+
export declare function IndonesiaDukcapilMatchInputFromJSON(json: any): IndonesiaDukcapilMatchInput;
|
|
82
|
+
export declare function IndonesiaDukcapilMatchInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndonesiaDukcapilMatchInput;
|
|
83
|
+
export declare function IndonesiaDukcapilMatchInputToJSON(json: any): IndonesiaDukcapilMatchInput;
|
|
84
|
+
export declare function IndonesiaDukcapilMatchInputToJSONTyped(value?: IndonesiaDukcapilMatchInput | null, ignoreDiscriminator?: boolean): any;
|