@trinsic/api 2.0.0-alpha2 → 2.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.
- package/.openapi-generator/FILES +16 -3
- package/dist/apis/AttachmentsApi.d.ts +4 -4
- package/dist/apis/AttachmentsApi.js +2 -2
- package/dist/apis/NetworkApi.d.ts +32 -9
- package/dist/apis/NetworkApi.js +38 -4
- package/dist/apis/SessionsApi.d.ts +8 -8
- package/dist/apis/SessionsApi.js +4 -4
- package/dist/esm/apis/AttachmentsApi.d.ts +4 -4
- package/dist/esm/apis/AttachmentsApi.js +2 -2
- package/dist/esm/apis/NetworkApi.d.ts +32 -9
- package/dist/esm/apis/NetworkApi.js +39 -5
- package/dist/esm/apis/SessionsApi.d.ts +8 -8
- package/dist/esm/apis/SessionsApi.js +4 -4
- package/dist/esm/models/AadhaarInput.d.ts +2 -2
- package/dist/esm/models/AadhaarInput.js +1 -1
- package/dist/esm/models/Address.d.ts +8 -8
- package/dist/esm/models/AttachmentAccessKeys.d.ts +4 -4
- package/dist/esm/models/BangladeshNationalIdInput.d.ts +4 -4
- package/dist/esm/models/BangladeshNationalIdInput.js +1 -1
- package/dist/esm/models/BrazilDigitalCnhInput.d.ts +3 -3
- package/dist/esm/models/CreateAdvancedProviderSessionRequest.d.ts +3 -3
- package/dist/esm/models/CreateHostedProviderSessionRequest.d.ts +1 -1
- package/dist/esm/models/CreateHostedProviderSessionResponse.d.ts +13 -1
- package/dist/esm/models/CreateHostedProviderSessionResponse.js +7 -1
- package/dist/esm/models/CreateWidgetSessionRequest.d.ts +8 -7
- package/dist/esm/models/CreateWidgetSessionRequest.js +3 -3
- package/dist/esm/models/CreateWidgetSessionResponse.d.ts +13 -1
- package/dist/esm/models/CreateWidgetSessionResponse.js +7 -1
- package/dist/esm/models/DocumentData.d.ts +6 -6
- package/dist/esm/models/DocumentData.js +2 -2
- package/dist/esm/models/DocumentScanAttachments.d.ts +1 -1
- package/dist/esm/models/GetSessionResultResponse.d.ts +1 -1
- package/dist/esm/models/HttpValidationProblemDetails.d.ts +5 -5
- package/dist/esm/models/IdentityData.d.ts +10 -4
- package/dist/esm/models/IdentityData.js +2 -0
- package/dist/esm/models/IdinInput.d.ts +33 -0
- package/dist/esm/models/IdinInput.js +38 -0
- package/dist/esm/models/IndonesiaNikInput.d.ts +43 -0
- package/dist/esm/models/IndonesiaNikInput.js +48 -0
- package/dist/esm/models/IntegrationLaunchMethod.d.ts +1 -1
- package/dist/esm/models/IntegrationLaunchMethod.js +1 -1
- package/dist/esm/models/IntegrationStep.d.ts +1 -1
- package/dist/esm/models/KenyaNidInput.d.ts +61 -0
- package/dist/esm/models/KenyaNidInput.js +58 -0
- package/dist/esm/models/Language.d.ts +26 -0
- package/dist/esm/models/Language.js +42 -0
- package/dist/esm/models/ListProviderContractsResponse.d.ts +32 -0
- package/dist/esm/models/ListProviderContractsResponse.js +41 -0
- package/dist/esm/models/MexicoCurpInput.d.ts +31 -0
- package/dist/esm/models/MexicoCurpInput.js +40 -0
- package/dist/esm/models/MobileIdInput.d.ts +44 -0
- package/dist/esm/models/MobileIdInput.js +43 -0
- package/dist/esm/models/NigeriaNinInput.d.ts +67 -0
- package/dist/esm/models/NigeriaNinInput.js +58 -0
- package/dist/esm/models/PersonData.d.ts +10 -10
- package/dist/esm/models/PersonData.js +1 -1
- package/dist/esm/models/PhilippineMatchInput.d.ts +5 -5
- package/dist/esm/models/PhilippineMatchInput.js +1 -1
- package/dist/esm/models/PhilippineQRInput.d.ts +2 -2
- package/dist/esm/models/ProblemDetails.d.ts +5 -5
- package/dist/esm/models/ProviderAttachments.d.ts +1 -1
- package/dist/esm/models/ProviderContract.d.ts +146 -0
- package/dist/esm/models/ProviderContract.js +97 -0
- package/dist/esm/models/ProviderInfo.d.ts +0 -6
- package/dist/esm/models/ProviderInfo.js +0 -2
- package/dist/esm/models/ProviderInformation.d.ts +4 -4
- package/dist/esm/models/ProviderInformation.js +1 -5
- package/dist/esm/models/ProviderInput.d.ts +95 -14
- package/dist/esm/models/ProviderInput.js +35 -2
- package/dist/esm/models/RecommendRequest.d.ts +4 -21
- package/dist/esm/models/RecommendRequest.js +3 -8
- package/dist/esm/models/RecommendationInfo.d.ts +55 -0
- package/dist/esm/models/RecommendationInfo.js +44 -0
- package/dist/esm/models/RefreshStepContentRequest.d.ts +1 -1
- package/dist/esm/models/ResultCollection.d.ts +8 -2
- package/dist/esm/models/ResultCollection.js +3 -1
- package/dist/esm/models/Session.d.ts +1 -1
- package/dist/esm/models/SmartIdInput.d.ts +31 -0
- package/dist/esm/models/SmartIdInput.js +38 -0
- package/dist/esm/models/SouthAfricaNidInput.d.ts +49 -0
- package/dist/esm/models/SouthAfricaNidInput.js +52 -0
- package/dist/esm/models/SpidInput.d.ts +33 -0
- package/dist/esm/models/SpidInput.js +38 -0
- package/dist/esm/models/SubProviderMetadata.d.ts +54 -0
- package/dist/esm/models/SubProviderMetadata.js +52 -0
- package/dist/esm/models/TrinsicTestDatabaseLookupInput.d.ts +66 -0
- package/dist/esm/models/TrinsicTestDatabaseLookupInput.js +44 -0
- package/dist/esm/models/TrinsicTestSubProvidersInput.d.ts +35 -0
- package/dist/esm/models/TrinsicTestSubProvidersInput.js +38 -0
- package/dist/esm/models/index.d.ts +16 -3
- package/dist/esm/models/index.js +16 -3
- package/dist/models/AadhaarInput.d.ts +2 -2
- package/dist/models/AadhaarInput.js +1 -1
- package/dist/models/Address.d.ts +8 -8
- package/dist/models/AttachmentAccessKeys.d.ts +4 -4
- package/dist/models/BangladeshNationalIdInput.d.ts +4 -4
- package/dist/models/BangladeshNationalIdInput.js +1 -1
- package/dist/models/BrazilDigitalCnhInput.d.ts +3 -3
- package/dist/models/CreateAdvancedProviderSessionRequest.d.ts +3 -3
- package/dist/models/CreateHostedProviderSessionRequest.d.ts +1 -1
- package/dist/models/CreateHostedProviderSessionResponse.d.ts +13 -1
- package/dist/models/CreateHostedProviderSessionResponse.js +7 -1
- package/dist/models/CreateWidgetSessionRequest.d.ts +8 -7
- package/dist/models/CreateWidgetSessionRequest.js +3 -3
- package/dist/models/CreateWidgetSessionResponse.d.ts +13 -1
- package/dist/models/CreateWidgetSessionResponse.js +7 -1
- package/dist/models/DocumentData.d.ts +6 -6
- package/dist/models/DocumentData.js +2 -2
- package/dist/models/DocumentScanAttachments.d.ts +1 -1
- package/dist/models/GetSessionResultResponse.d.ts +1 -1
- package/dist/models/HttpValidationProblemDetails.d.ts +5 -5
- package/dist/models/IdentityData.d.ts +10 -4
- package/dist/models/IdentityData.js +2 -0
- package/dist/models/IdinInput.d.ts +33 -0
- package/dist/models/IdinInput.js +44 -0
- package/dist/models/IndonesiaNikInput.d.ts +43 -0
- package/dist/models/IndonesiaNikInput.js +54 -0
- package/dist/models/IntegrationLaunchMethod.d.ts +1 -1
- package/dist/models/IntegrationLaunchMethod.js +1 -1
- package/dist/models/IntegrationStep.d.ts +1 -1
- package/dist/models/KenyaNidInput.d.ts +61 -0
- package/dist/models/KenyaNidInput.js +64 -0
- package/dist/models/Language.d.ts +26 -0
- package/dist/models/Language.js +49 -0
- package/dist/models/ListProviderContractsResponse.d.ts +32 -0
- package/dist/models/ListProviderContractsResponse.js +47 -0
- package/dist/models/MexicoCurpInput.d.ts +31 -0
- package/dist/models/MexicoCurpInput.js +46 -0
- package/dist/models/MobileIdInput.d.ts +44 -0
- package/dist/models/MobileIdInput.js +49 -0
- package/dist/models/NigeriaNinInput.d.ts +67 -0
- package/dist/models/NigeriaNinInput.js +64 -0
- package/dist/models/PersonData.d.ts +10 -10
- package/dist/models/PersonData.js +1 -1
- package/dist/models/PhilippineMatchInput.d.ts +5 -5
- package/dist/models/PhilippineMatchInput.js +1 -1
- package/dist/models/PhilippineQRInput.d.ts +2 -2
- package/dist/models/ProblemDetails.d.ts +5 -5
- package/dist/models/ProviderAttachments.d.ts +1 -1
- package/dist/models/ProviderContract.d.ts +146 -0
- package/dist/models/ProviderContract.js +103 -0
- package/dist/models/ProviderInfo.d.ts +0 -6
- package/dist/models/ProviderInfo.js +0 -2
- package/dist/models/ProviderInformation.d.ts +4 -4
- package/dist/models/ProviderInformation.js +1 -5
- package/dist/models/ProviderInput.d.ts +95 -14
- package/dist/models/ProviderInput.js +35 -2
- package/dist/models/RecommendRequest.d.ts +4 -21
- package/dist/models/RecommendRequest.js +3 -8
- package/dist/models/RecommendationInfo.d.ts +55 -0
- package/dist/models/RecommendationInfo.js +50 -0
- package/dist/models/RefreshStepContentRequest.d.ts +1 -1
- package/dist/models/ResultCollection.d.ts +8 -2
- package/dist/models/ResultCollection.js +3 -1
- package/dist/models/Session.d.ts +1 -1
- package/dist/models/SmartIdInput.d.ts +31 -0
- package/dist/models/SmartIdInput.js +44 -0
- package/dist/models/SouthAfricaNidInput.d.ts +49 -0
- package/dist/models/SouthAfricaNidInput.js +58 -0
- package/dist/models/SpidInput.d.ts +33 -0
- package/dist/models/SpidInput.js +44 -0
- package/dist/models/SubProviderMetadata.d.ts +54 -0
- package/dist/models/SubProviderMetadata.js +58 -0
- package/dist/models/TrinsicTestDatabaseLookupInput.d.ts +66 -0
- package/dist/models/TrinsicTestDatabaseLookupInput.js +50 -0
- package/dist/models/TrinsicTestSubProvidersInput.d.ts +35 -0
- package/dist/models/TrinsicTestSubProvidersInput.js +44 -0
- package/dist/models/index.d.ts +16 -3
- package/dist/models/index.js +16 -3
- package/package.json +1 -1
- package/src/apis/AttachmentsApi.ts +4 -4
- package/src/apis/NetworkApi.ts +62 -8
- package/src/apis/SessionsApi.ts +8 -8
- package/src/models/AadhaarInput.ts +3 -3
- package/src/models/Address.ts +8 -8
- package/src/models/AttachmentAccessKeys.ts +4 -4
- package/src/models/BangladeshNationalIdInput.ts +5 -5
- package/src/models/BrazilDigitalCnhInput.ts +11 -11
- package/src/models/CreateAdvancedProviderSessionRequest.ts +29 -29
- package/src/models/CreateHostedProviderSessionRequest.ts +1 -1
- package/src/models/CreateHostedProviderSessionResponse.ts +24 -8
- package/src/models/CreateWidgetSessionRequest.ts +18 -17
- package/src/models/CreateWidgetSessionResponse.ts +22 -6
- package/src/models/DocumentData.ts +8 -8
- package/src/models/DocumentScanAttachments.ts +1 -1
- package/src/models/GetSessionResultResponse.ts +1 -1
- package/src/models/HttpValidationProblemDetails.ts +5 -5
- package/src/models/IdentityData.ts +12 -4
- package/src/models/IdinInput.ts +62 -0
- package/src/models/IndonesiaNikInput.ts +79 -0
- package/src/models/IntegrationLaunchMethod.ts +1 -1
- package/src/models/IntegrationStep.ts +1 -1
- package/src/models/KenyaNidInput.ts +105 -0
- package/src/models/Language.ts +51 -0
- package/src/models/ListProviderContractsResponse.ts +68 -0
- package/src/models/MexicoCurpInput.ts +61 -0
- package/src/models/MobileIdInput.ts +85 -0
- package/src/models/NigeriaNinInput.ts +112 -0
- package/src/models/PersonData.ts +11 -11
- package/src/models/PhilippineMatchInput.ts +6 -6
- package/src/models/PhilippineQRInput.ts +2 -2
- package/src/models/ProblemDetails.ts +5 -5
- package/src/models/ProviderAttachments.ts +1 -1
- package/src/models/ProviderContract.ts +235 -0
- package/src/models/ProviderInfo.ts +0 -8
- package/src/models/ProviderInformation.ts +4 -7
- package/src/models/ProviderInput.ts +182 -24
- package/src/models/RecommendRequest.ts +12 -29
- package/src/models/RecommendationInfo.ts +90 -0
- package/src/models/RefreshStepContentRequest.ts +1 -1
- package/src/models/ResultCollection.ts +10 -3
- package/src/models/Session.ts +8 -8
- package/src/models/SmartIdInput.ts +60 -0
- package/src/models/SouthAfricaNidInput.ts +88 -0
- package/src/models/SpidInput.ts +62 -0
- package/src/models/StepRefreshInfo.ts +2 -2
- package/src/models/SubProviderMetadata.ts +93 -0
- package/src/models/TrinsicTestDatabaseLookupInput.ts +101 -0
- package/src/models/TrinsicTestSubProvidersInput.ts +64 -0
- package/src/models/index.ts +16 -3
- package/dist/esm/models/KnownAddress.d.ts +0 -74
- package/dist/esm/models/KnownAddress.js +0 -52
- package/dist/esm/models/KnownIdentityData.d.ts +0 -34
- package/dist/esm/models/KnownIdentityData.js +0 -39
- package/dist/esm/models/KnownPersonData.d.ts +0 -74
- package/dist/esm/models/KnownPersonData.js +0 -53
- package/dist/models/KnownAddress.d.ts +0 -74
- package/dist/models/KnownAddress.js +0 -58
- package/dist/models/KnownIdentityData.d.ts +0 -34
- package/dist/models/KnownIdentityData.js +0 -45
- package/dist/models/KnownPersonData.d.ts +0 -74
- package/dist/models/KnownPersonData.js +0 -59
- package/src/models/KnownAddress.ts +0 -117
- package/src/models/KnownIdentityData.ts +0 -69
- package/src/models/KnownPersonData.ts +0 -123
|
@@ -0,0 +1,67 @@
|
|
|
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 NigeriaNinInput
|
|
16
|
+
*/
|
|
17
|
+
export interface NigeriaNinInput {
|
|
18
|
+
/**
|
|
19
|
+
* The user's first name as it appears in their National ID
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof NigeriaNinInput
|
|
22
|
+
*/
|
|
23
|
+
firstName: string;
|
|
24
|
+
/**
|
|
25
|
+
* The user's middle name as it appears in their National ID (optional)
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof NigeriaNinInput
|
|
28
|
+
*/
|
|
29
|
+
middleName?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
* The user's last name as it appears in their National ID (optional)
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof NigeriaNinInput
|
|
34
|
+
*/
|
|
35
|
+
lastName: string;
|
|
36
|
+
/**
|
|
37
|
+
* The user's phone number (optional)
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof NigeriaNinInput
|
|
40
|
+
*/
|
|
41
|
+
phoneNumber?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* The user's date of birth, in `YYYY-MM-DD` format
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof NigeriaNinInput
|
|
46
|
+
*/
|
|
47
|
+
dateOfBirth: Date;
|
|
48
|
+
/**
|
|
49
|
+
* The user's gender as it appears in their National ID (e.g., male, female)
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof NigeriaNinInput
|
|
52
|
+
*/
|
|
53
|
+
gender?: string | null;
|
|
54
|
+
/**
|
|
55
|
+
* The user's South African National ID number
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof NigeriaNinInput
|
|
58
|
+
*/
|
|
59
|
+
nationalIdNumber: string;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the NigeriaNinInput interface.
|
|
63
|
+
*/
|
|
64
|
+
export declare function instanceOfNigeriaNinInput(value: object): value is NigeriaNinInput;
|
|
65
|
+
export declare function NigeriaNinInputFromJSON(json: any): NigeriaNinInput;
|
|
66
|
+
export declare function NigeriaNinInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): NigeriaNinInput;
|
|
67
|
+
export declare function NigeriaNinInputToJSON(value?: NigeriaNinInput | null): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
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 NigeriaNinInput interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfNigeriaNinInput(value) {
|
|
18
|
+
if (!('firstName' in value) || value['firstName'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('lastName' in value) || value['lastName'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('dateOfBirth' in value) || value['dateOfBirth'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('nationalIdNumber' in value) || value['nationalIdNumber'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function NigeriaNinInputFromJSON(json) {
|
|
29
|
+
return NigeriaNinInputFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function NigeriaNinInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'firstName': json['firstName'],
|
|
37
|
+
'middleName': json['middleName'] == null ? undefined : json['middleName'],
|
|
38
|
+
'lastName': json['lastName'],
|
|
39
|
+
'phoneNumber': json['phoneNumber'] == null ? undefined : json['phoneNumber'],
|
|
40
|
+
'dateOfBirth': (new Date(json['dateOfBirth'])),
|
|
41
|
+
'gender': json['gender'] == null ? undefined : json['gender'],
|
|
42
|
+
'nationalIdNumber': json['nationalIdNumber'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export function NigeriaNinInputToJSON(value) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'firstName': value['firstName'],
|
|
51
|
+
'middleName': value['middleName'],
|
|
52
|
+
'lastName': value['lastName'],
|
|
53
|
+
'phoneNumber': value['phoneNumber'],
|
|
54
|
+
'dateOfBirth': ((value['dateOfBirth']).toISOString().substring(0, 10)),
|
|
55
|
+
'gender': value['gender'],
|
|
56
|
+
'nationalIdNumber': value['nationalIdNumber'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -22,61 +22,61 @@ export interface PersonData {
|
|
|
22
22
|
* @type {string}
|
|
23
23
|
* @memberof PersonData
|
|
24
24
|
*/
|
|
25
|
-
givenName?: string;
|
|
25
|
+
givenName?: string | null;
|
|
26
26
|
/**
|
|
27
27
|
*
|
|
28
28
|
* @type {string}
|
|
29
29
|
* @memberof PersonData
|
|
30
30
|
*/
|
|
31
|
-
familyName?: string;
|
|
31
|
+
familyName?: string | null;
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
34
|
* @type {string}
|
|
35
35
|
* @memberof PersonData
|
|
36
36
|
*/
|
|
37
|
-
middleName?: string;
|
|
37
|
+
middleName?: string | null;
|
|
38
38
|
/**
|
|
39
39
|
*
|
|
40
40
|
* @type {string}
|
|
41
41
|
* @memberof PersonData
|
|
42
42
|
*/
|
|
43
|
-
fullName?: string;
|
|
43
|
+
fullName?: string | null;
|
|
44
44
|
/**
|
|
45
45
|
*
|
|
46
46
|
* @type {string}
|
|
47
47
|
* @memberof PersonData
|
|
48
48
|
*/
|
|
49
|
-
suffix?: string;
|
|
49
|
+
suffix?: string | null;
|
|
50
50
|
/**
|
|
51
51
|
*
|
|
52
52
|
* @type {string}
|
|
53
53
|
* @memberof PersonData
|
|
54
54
|
*/
|
|
55
|
-
nationality?: string;
|
|
55
|
+
nationality?: string | null;
|
|
56
56
|
/**
|
|
57
57
|
*
|
|
58
58
|
* @type {Sex}
|
|
59
59
|
* @memberof PersonData
|
|
60
60
|
*/
|
|
61
|
-
sex?: Sex;
|
|
61
|
+
sex?: Sex | null;
|
|
62
62
|
/**
|
|
63
63
|
*
|
|
64
64
|
* @type {string}
|
|
65
65
|
* @memberof PersonData
|
|
66
66
|
*/
|
|
67
|
-
phoneNumber?: string;
|
|
67
|
+
phoneNumber?: string | null;
|
|
68
68
|
/**
|
|
69
69
|
*
|
|
70
70
|
* @type {Address}
|
|
71
71
|
* @memberof PersonData
|
|
72
72
|
*/
|
|
73
|
-
address?: Address;
|
|
73
|
+
address?: Address | null;
|
|
74
74
|
/**
|
|
75
75
|
*
|
|
76
76
|
* @type {Date}
|
|
77
77
|
* @memberof PersonData
|
|
78
78
|
*/
|
|
79
|
-
dateOfBirth?: Date;
|
|
79
|
+
dateOfBirth?: Date | null;
|
|
80
80
|
}
|
|
81
81
|
/**
|
|
82
82
|
* Check if a given object implements the PersonData interface.
|
|
@@ -53,6 +53,6 @@ export function PersonDataToJSON(value) {
|
|
|
53
53
|
'sex': SexToJSON(value['sex']),
|
|
54
54
|
'phoneNumber': value['phoneNumber'],
|
|
55
55
|
'address': AddressToJSON(value['address']),
|
|
56
|
-
'dateOfBirth': value['dateOfBirth'] == null ? undefined : (
|
|
56
|
+
'dateOfBirth': value['dateOfBirth'] == null ? undefined : (value['dateOfBirth'].toISOString().substring(0, 10)),
|
|
57
57
|
};
|
|
58
58
|
}
|
|
@@ -20,31 +20,31 @@ export interface PhilippineMatchInput {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof PhilippineMatchInput
|
|
22
22
|
*/
|
|
23
|
-
givenName?: string;
|
|
23
|
+
givenName?: string | null;
|
|
24
24
|
/**
|
|
25
25
|
* The user's middle name
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof PhilippineMatchInput
|
|
28
28
|
*/
|
|
29
|
-
middleName?: string;
|
|
29
|
+
middleName?: string | null;
|
|
30
30
|
/**
|
|
31
31
|
* The user's family / last name
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof PhilippineMatchInput
|
|
34
34
|
*/
|
|
35
|
-
familyName?: string;
|
|
35
|
+
familyName?: string | null;
|
|
36
36
|
/**
|
|
37
37
|
* The user's name suffix
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof PhilippineMatchInput
|
|
40
40
|
*/
|
|
41
|
-
suffix?: string;
|
|
41
|
+
suffix?: string | null;
|
|
42
42
|
/**
|
|
43
43
|
* The user's date of birth, in `YYYY-MM-DD` format
|
|
44
44
|
* @type {Date}
|
|
45
45
|
* @memberof PhilippineMatchInput
|
|
46
46
|
*/
|
|
47
|
-
dateOfBirth?: Date;
|
|
47
|
+
dateOfBirth?: Date | null;
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
50
50
|
* Check if a given object implements the PhilippineMatchInput interface.
|
|
@@ -41,6 +41,6 @@ export function PhilippineMatchInputToJSON(value) {
|
|
|
41
41
|
'middleName': value['middleName'],
|
|
42
42
|
'familyName': value['familyName'],
|
|
43
43
|
'suffix': value['suffix'],
|
|
44
|
-
'dateOfBirth': value['dateOfBirth'] == null ? undefined : (
|
|
44
|
+
'dateOfBirth': value['dateOfBirth'] == null ? undefined : (value['dateOfBirth'].toISOString().substring(0, 10)),
|
|
45
45
|
};
|
|
46
46
|
}
|
|
@@ -20,13 +20,13 @@ export interface PhilippineQRInput {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof PhilippineQRInput
|
|
22
22
|
*/
|
|
23
|
-
qrCodeText?: string;
|
|
23
|
+
qrCodeText?: string | null;
|
|
24
24
|
/**
|
|
25
25
|
* The raw bytes of the image containing the user's QR code.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof PhilippineQRInput
|
|
28
28
|
*/
|
|
29
|
-
qrCodeImage?: string;
|
|
29
|
+
qrCodeImage?: string | null;
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* Check if a given object implements the PhilippineQRInput interface.
|
|
@@ -21,31 +21,31 @@ export interface ProblemDetails {
|
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof ProblemDetails
|
|
23
23
|
*/
|
|
24
|
-
type?: string;
|
|
24
|
+
type?: string | null;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
* @type {string}
|
|
28
28
|
* @memberof ProblemDetails
|
|
29
29
|
*/
|
|
30
|
-
title?: string;
|
|
30
|
+
title?: string | null;
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
33
|
* @type {number}
|
|
34
34
|
* @memberof ProblemDetails
|
|
35
35
|
*/
|
|
36
|
-
status?: number;
|
|
36
|
+
status?: number | null;
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @memberof ProblemDetails
|
|
41
41
|
*/
|
|
42
|
-
detail?: string;
|
|
42
|
+
detail?: string | null;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
45
|
* @type {string}
|
|
46
46
|
* @memberof ProblemDetails
|
|
47
47
|
*/
|
|
48
|
-
instance?: string;
|
|
48
|
+
instance?: string | null;
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
51
51
|
* Check if a given object implements the ProblemDetails interface.
|
|
@@ -21,7 +21,7 @@ export interface ProviderAttachments {
|
|
|
21
21
|
* @type {DocumentScanAttachments}
|
|
22
22
|
* @memberof ProviderAttachments
|
|
23
23
|
*/
|
|
24
|
-
documentScan?: DocumentScanAttachments;
|
|
24
|
+
documentScan?: DocumentScanAttachments | null;
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* Check if a given object implements the ProviderAttachments interface.
|
|
@@ -0,0 +1,146 @@
|
|
|
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 { SubProviderMetadata } from './SubProviderMetadata';
|
|
13
|
+
import type { ResultCollectionMethod } from './ResultCollectionMethod';
|
|
14
|
+
import type { IntegrationLaunchMethod } from './IntegrationLaunchMethod';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface ProviderContract
|
|
19
|
+
*/
|
|
20
|
+
export interface ProviderContract {
|
|
21
|
+
/**
|
|
22
|
+
* The ID of the Provider for this contract.
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof ProviderContract
|
|
25
|
+
*/
|
|
26
|
+
id: string;
|
|
27
|
+
/**
|
|
28
|
+
* The Provider's Name as it appears in Trinsic's Dashboard and Widget
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof ProviderContract
|
|
31
|
+
*/
|
|
32
|
+
name: string;
|
|
33
|
+
/**
|
|
34
|
+
* The Provider's description as it appears in Trinsic's Widget.
|
|
35
|
+
*
|
|
36
|
+
* This is flavor text, not a full, human-readable description of the provider.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof ProviderContract
|
|
39
|
+
*/
|
|
40
|
+
description: string;
|
|
41
|
+
/**
|
|
42
|
+
* A URL pointing to the Provider's logo on Trinsic's CDN.
|
|
43
|
+
*
|
|
44
|
+
* May be a PNG, JPG, or SVG image.
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof ProviderContract
|
|
47
|
+
*/
|
|
48
|
+
logoUrl: string;
|
|
49
|
+
/**
|
|
50
|
+
* Whether the Provider is available for use in your App.
|
|
51
|
+
*
|
|
52
|
+
* If `false`, you will need to contact Trinsic to enable this Provider for your App.
|
|
53
|
+
* @type {boolean}
|
|
54
|
+
* @memberof ProviderContract
|
|
55
|
+
*/
|
|
56
|
+
available: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* The geographies within the Regions the Provider is available.
|
|
59
|
+
* @type {Array<string>}
|
|
60
|
+
* @memberof ProviderContract
|
|
61
|
+
*/
|
|
62
|
+
geography: Array<string>;
|
|
63
|
+
/**
|
|
64
|
+
* The regions within which the Provider is available.
|
|
65
|
+
* @type {Array<string>}
|
|
66
|
+
* @memberof ProviderContract
|
|
67
|
+
*/
|
|
68
|
+
regions: Array<string>;
|
|
69
|
+
/**
|
|
70
|
+
* Relevant only to Advanced Provider Sessions.
|
|
71
|
+
*
|
|
72
|
+
* The `LaunchMethod` which must be supported to launch the Provider Session in Advanced Provider Sessions.
|
|
73
|
+
* @type {IntegrationLaunchMethod}
|
|
74
|
+
* @memberof ProviderContract
|
|
75
|
+
*/
|
|
76
|
+
launchMethod: IntegrationLaunchMethod;
|
|
77
|
+
/**
|
|
78
|
+
* Relevant only to Advanced Provider Sessions.
|
|
79
|
+
*
|
|
80
|
+
* The `CollectionMethod` which must be supported to launch the Provider Session in Advanced Provider Sessions.
|
|
81
|
+
* @type {ResultCollectionMethod}
|
|
82
|
+
* @memberof ProviderContract
|
|
83
|
+
*/
|
|
84
|
+
collectionMethod: ResultCollectionMethod;
|
|
85
|
+
/**
|
|
86
|
+
* If `true`, then the results for this Provider may not be available immediately after the user is redirected back
|
|
87
|
+
* to your application. In this case, the `GetSessionResults` API must be called until results are available.
|
|
88
|
+
*
|
|
89
|
+
* This is an uncommon scenario, and typically only applies to Providers which use a biometric check or traditional document scan.
|
|
90
|
+
* @type {boolean}
|
|
91
|
+
* @memberof ProviderContract
|
|
92
|
+
*/
|
|
93
|
+
resultsMayBeDelayedAfterRedirect: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* Relevant only to Advanced Provider Sessions.
|
|
96
|
+
*
|
|
97
|
+
* Whether the Provider requires the `RefreshStepContent` capability.
|
|
98
|
+
*
|
|
99
|
+
* For example, Samsung Wallet's deep links expire every 30 seconds, and must be refreshed periodically for a
|
|
100
|
+
* resilient user flow.
|
|
101
|
+
* @type {boolean}
|
|
102
|
+
* @memberof ProviderContract
|
|
103
|
+
*/
|
|
104
|
+
hasRefreshableContent: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* Relevant to Hosted Provider Sessions and Advanced Provider Sessions.
|
|
107
|
+
*
|
|
108
|
+
* If `true`, this Provider requires provider-specific input on Session creation.
|
|
109
|
+
* If this input is not provided, Trinsic's Hosted UI will be invoked to collect the input from the user.
|
|
110
|
+
* @type {boolean}
|
|
111
|
+
* @memberof ProviderContract
|
|
112
|
+
*/
|
|
113
|
+
requiresInput: boolean;
|
|
114
|
+
/**
|
|
115
|
+
* Whether there exists a Trinsic-hosted UI for this Provider.
|
|
116
|
+
*
|
|
117
|
+
* This is `true` for any Provider which is not a simple, OIDC-like redirect flow.
|
|
118
|
+
* @type {boolean}
|
|
119
|
+
* @memberof ProviderContract
|
|
120
|
+
*/
|
|
121
|
+
hasTrinsicInterface: boolean;
|
|
122
|
+
/**
|
|
123
|
+
* Whether this Provider can be fully whitelabeled/OEMed through the Advanced Provider Sessions API.
|
|
124
|
+
*
|
|
125
|
+
* If `false`, the Provider may still be launched through Advanced Provider Sessions;
|
|
126
|
+
* however, it will necessarily require a Trinsic-hosted UI to function.
|
|
127
|
+
* @type {boolean}
|
|
128
|
+
* @memberof ProviderContract
|
|
129
|
+
*/
|
|
130
|
+
supportsAdvancedProviderSessions: boolean;
|
|
131
|
+
/**
|
|
132
|
+
* Metadata about the sub-providers which are available for this Provider.
|
|
133
|
+
*
|
|
134
|
+
* For example, Italy's SPID is a Provider which aggregates access to multiple sub-providers.
|
|
135
|
+
* @type {Array<SubProviderMetadata>}
|
|
136
|
+
* @memberof ProviderContract
|
|
137
|
+
*/
|
|
138
|
+
subProviders?: Array<SubProviderMetadata> | null;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Check if a given object implements the ProviderContract interface.
|
|
142
|
+
*/
|
|
143
|
+
export declare function instanceOfProviderContract(value: object): value is ProviderContract;
|
|
144
|
+
export declare function ProviderContractFromJSON(json: any): ProviderContract;
|
|
145
|
+
export declare function ProviderContractFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProviderContract;
|
|
146
|
+
export declare function ProviderContractToJSON(value?: ProviderContract | null): any;
|
|
@@ -0,0 +1,97 @@
|
|
|
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 { SubProviderMetadataFromJSON, SubProviderMetadataToJSON, } from './SubProviderMetadata';
|
|
15
|
+
import { ResultCollectionMethodFromJSON, ResultCollectionMethodToJSON, } from './ResultCollectionMethod';
|
|
16
|
+
import { IntegrationLaunchMethodFromJSON, IntegrationLaunchMethodToJSON, } from './IntegrationLaunchMethod';
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the ProviderContract interface.
|
|
19
|
+
*/
|
|
20
|
+
export function instanceOfProviderContract(value) {
|
|
21
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('logoUrl' in value) || value['logoUrl'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('available' in value) || value['available'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('geography' in value) || value['geography'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('regions' in value) || value['regions'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('launchMethod' in value) || value['launchMethod'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('collectionMethod' in value) || value['collectionMethod'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('resultsMayBeDelayedAfterRedirect' in value) || value['resultsMayBeDelayedAfterRedirect'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('hasRefreshableContent' in value) || value['hasRefreshableContent'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('requiresInput' in value) || value['requiresInput'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('hasTrinsicInterface' in value) || value['hasTrinsicInterface'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('supportsAdvancedProviderSessions' in value) || value['supportsAdvancedProviderSessions'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
export function ProviderContractFromJSON(json) {
|
|
52
|
+
return ProviderContractFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
export function ProviderContractFromJSONTyped(json, ignoreDiscriminator) {
|
|
55
|
+
if (json == null) {
|
|
56
|
+
return json;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'id': json['id'],
|
|
60
|
+
'name': json['name'],
|
|
61
|
+
'description': json['description'],
|
|
62
|
+
'logoUrl': json['logoUrl'],
|
|
63
|
+
'available': json['available'],
|
|
64
|
+
'geography': json['geography'],
|
|
65
|
+
'regions': json['regions'],
|
|
66
|
+
'launchMethod': IntegrationLaunchMethodFromJSON(json['launchMethod']),
|
|
67
|
+
'collectionMethod': ResultCollectionMethodFromJSON(json['collectionMethod']),
|
|
68
|
+
'resultsMayBeDelayedAfterRedirect': json['resultsMayBeDelayedAfterRedirect'],
|
|
69
|
+
'hasRefreshableContent': json['hasRefreshableContent'],
|
|
70
|
+
'requiresInput': json['requiresInput'],
|
|
71
|
+
'hasTrinsicInterface': json['hasTrinsicInterface'],
|
|
72
|
+
'supportsAdvancedProviderSessions': json['supportsAdvancedProviderSessions'],
|
|
73
|
+
'subProviders': json['subProviders'] == null ? undefined : (json['subProviders'].map(SubProviderMetadataFromJSON)),
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
export function ProviderContractToJSON(value) {
|
|
77
|
+
if (value == null) {
|
|
78
|
+
return value;
|
|
79
|
+
}
|
|
80
|
+
return {
|
|
81
|
+
'id': value['id'],
|
|
82
|
+
'name': value['name'],
|
|
83
|
+
'description': value['description'],
|
|
84
|
+
'logoUrl': value['logoUrl'],
|
|
85
|
+
'available': value['available'],
|
|
86
|
+
'geography': value['geography'],
|
|
87
|
+
'regions': value['regions'],
|
|
88
|
+
'launchMethod': IntegrationLaunchMethodToJSON(value['launchMethod']),
|
|
89
|
+
'collectionMethod': ResultCollectionMethodToJSON(value['collectionMethod']),
|
|
90
|
+
'resultsMayBeDelayedAfterRedirect': value['resultsMayBeDelayedAfterRedirect'],
|
|
91
|
+
'hasRefreshableContent': value['hasRefreshableContent'],
|
|
92
|
+
'requiresInput': value['requiresInput'],
|
|
93
|
+
'hasTrinsicInterface': value['hasTrinsicInterface'],
|
|
94
|
+
'supportsAdvancedProviderSessions': value['supportsAdvancedProviderSessions'],
|
|
95
|
+
'subProviders': value['subProviders'] == null ? undefined : (value['subProviders'].map(SubProviderMetadataToJSON)),
|
|
96
|
+
};
|
|
97
|
+
}
|
|
@@ -33,12 +33,6 @@ export interface ProviderInfo {
|
|
|
33
33
|
* @memberof ProviderInfo
|
|
34
34
|
*/
|
|
35
35
|
logoUrl: string;
|
|
36
|
-
/**
|
|
37
|
-
* List of child provider id's where the provider allows deep-launching of a specific provider.
|
|
38
|
-
* @type {Array<string>}
|
|
39
|
-
* @memberof ProviderInfo
|
|
40
|
-
*/
|
|
41
|
-
childProviderIds?: Array<string>;
|
|
42
36
|
}
|
|
43
37
|
/**
|
|
44
38
|
* Check if a given object implements the ProviderInfo interface.
|
|
@@ -34,7 +34,6 @@ export function ProviderInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
'id': json['id'],
|
|
35
35
|
'name': json['name'],
|
|
36
36
|
'logoUrl': json['logoUrl'],
|
|
37
|
-
'childProviderIds': json['childProviderIds'] == null ? undefined : json['childProviderIds'],
|
|
38
37
|
};
|
|
39
38
|
}
|
|
40
39
|
export function ProviderInfoToJSON(value) {
|
|
@@ -45,6 +44,5 @@ export function ProviderInfoToJSON(value) {
|
|
|
45
44
|
'id': value['id'],
|
|
46
45
|
'name': value['name'],
|
|
47
46
|
'logoUrl': value['logoUrl'],
|
|
48
|
-
'childProviderIds': value['childProviderIds'],
|
|
49
47
|
};
|
|
50
48
|
}
|
|
@@ -20,19 +20,19 @@ export interface ProviderInformation {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof ProviderInformation
|
|
22
22
|
*/
|
|
23
|
-
providerId: string;
|
|
23
|
+
readonly providerId: string;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof ProviderInformation
|
|
28
28
|
*/
|
|
29
|
-
providerDisplayName: string;
|
|
29
|
+
readonly providerDisplayName: string;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof ProviderInformation
|
|
34
34
|
*/
|
|
35
|
-
providerLogo: string;
|
|
35
|
+
readonly providerLogo: string;
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
38
|
* Check if a given object implements the ProviderInformation interface.
|
|
@@ -40,4 +40,4 @@ export interface ProviderInformation {
|
|
|
40
40
|
export declare function instanceOfProviderInformation(value: object): value is ProviderInformation;
|
|
41
41
|
export declare function ProviderInformationFromJSON(json: any): ProviderInformation;
|
|
42
42
|
export declare function ProviderInformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProviderInformation;
|
|
43
|
-
export declare function ProviderInformationToJSON(value?: ProviderInformation | null): any;
|
|
43
|
+
export declare function ProviderInformationToJSON(value?: Omit<ProviderInformation, 'providerId' | 'providerDisplayName' | 'providerLogo'> | null): any;
|
|
@@ -40,9 +40,5 @@ export function ProviderInformationToJSON(value) {
|
|
|
40
40
|
if (value == null) {
|
|
41
41
|
return value;
|
|
42
42
|
}
|
|
43
|
-
return {
|
|
44
|
-
'providerId': value['providerId'],
|
|
45
|
-
'providerDisplayName': value['providerDisplayName'],
|
|
46
|
-
'providerLogo': value['providerLogo'],
|
|
47
|
-
};
|
|
43
|
+
return {};
|
|
48
44
|
}
|