@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,90 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Information relating to a user; used to generated Identity Provider recommendations.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface RecommendationInfo
|
|
20
|
+
*/
|
|
21
|
+
export interface RecommendationInfo {
|
|
22
|
+
/**
|
|
23
|
+
* The phone number of the user you wish to generate a recommendation for.
|
|
24
|
+
*
|
|
25
|
+
* Will be used to look up the user's identity in the network, as well as to determine the user's geographic location.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof RecommendationInfo
|
|
28
|
+
*/
|
|
29
|
+
phoneNumber?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
* A list of countries, in alpha-2 ISO 3166 format, which the user is related to.
|
|
32
|
+
*
|
|
33
|
+
* This can include the user's country of residence, nationality, etc.
|
|
34
|
+
* @type {Array<string>}
|
|
35
|
+
* @memberof RecommendationInfo
|
|
36
|
+
*/
|
|
37
|
+
countries?: Array<string> | null;
|
|
38
|
+
/**
|
|
39
|
+
* If one of the countries has subdivisions (for example: US states), specify those related to the user here (e.g., CA, UT, NY)
|
|
40
|
+
* @type {Array<string>}
|
|
41
|
+
* @memberof RecommendationInfo
|
|
42
|
+
*/
|
|
43
|
+
subdivisions?: Array<string> | null;
|
|
44
|
+
/**
|
|
45
|
+
* Any IP addresses related to the user.
|
|
46
|
+
*
|
|
47
|
+
* Will be used to determine the user's geographic location.
|
|
48
|
+
* @type {Array<string>}
|
|
49
|
+
* @memberof RecommendationInfo
|
|
50
|
+
*/
|
|
51
|
+
ipAddresses?: Array<string> | null;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the RecommendationInfo interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfRecommendationInfo(value: object): value is RecommendationInfo {
|
|
58
|
+
return true;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function RecommendationInfoFromJSON(json: any): RecommendationInfo {
|
|
62
|
+
return RecommendationInfoFromJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function RecommendationInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecommendationInfo {
|
|
66
|
+
if (json == null) {
|
|
67
|
+
return json;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'phoneNumber': json['phoneNumber'] == null ? undefined : json['phoneNumber'],
|
|
72
|
+
'countries': json['countries'] == null ? undefined : json['countries'],
|
|
73
|
+
'subdivisions': json['subdivisions'] == null ? undefined : json['subdivisions'],
|
|
74
|
+
'ipAddresses': json['ipAddresses'] == null ? undefined : json['ipAddresses'],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function RecommendationInfoToJSON(value?: RecommendationInfo | null): any {
|
|
79
|
+
if (value == null) {
|
|
80
|
+
return value;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'phoneNumber': value['phoneNumber'],
|
|
85
|
+
'countries': value['countries'],
|
|
86
|
+
'subdivisions': value['subdivisions'],
|
|
87
|
+
'ipAddresses': value['ipAddresses'],
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -33,11 +33,17 @@ export interface ResultCollection {
|
|
|
33
33
|
*/
|
|
34
34
|
method: ResultCollectionMethod;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* The `resultsAccessKey` for the Acceptance Session.
|
|
37
|
+
*
|
|
38
|
+
* This is an encrypted payload which contains the decryption key necessary to access the Session's Data Vault.
|
|
39
|
+
*
|
|
40
|
+
* Save this securely in your systems; it must be passed back with any API call which requires access to the Session's Data Vault.
|
|
41
|
+
*
|
|
42
|
+
* Trinsic cannot access a Session's Data Vault without this key.
|
|
37
43
|
* @type {string}
|
|
38
44
|
* @memberof ResultCollection
|
|
39
45
|
*/
|
|
40
|
-
resultsAccessKey
|
|
46
|
+
resultsAccessKey: string;
|
|
41
47
|
}
|
|
42
48
|
|
|
43
49
|
|
|
@@ -47,6 +53,7 @@ export interface ResultCollection {
|
|
|
47
53
|
*/
|
|
48
54
|
export function instanceOfResultCollection(value: object): value is ResultCollection {
|
|
49
55
|
if (!('method' in value) || value['method'] === undefined) return false;
|
|
56
|
+
if (!('resultsAccessKey' in value) || value['resultsAccessKey'] === undefined) return false;
|
|
50
57
|
return true;
|
|
51
58
|
}
|
|
52
59
|
|
|
@@ -61,7 +68,7 @@ export function ResultCollectionFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
61
68
|
return {
|
|
62
69
|
|
|
63
70
|
'method': ResultCollectionMethodFromJSON(json['method']),
|
|
64
|
-
'resultsAccessKey': json['resultsAccessKey']
|
|
71
|
+
'resultsAccessKey': json['resultsAccessKey'],
|
|
65
72
|
};
|
|
66
73
|
}
|
|
67
74
|
|
package/src/models/Session.ts
CHANGED
|
@@ -33,30 +33,30 @@ export interface Session {
|
|
|
33
33
|
*/
|
|
34
34
|
id: string;
|
|
35
35
|
/**
|
|
36
|
-
* Whether the Session is in a terminal / final state.
|
|
37
|
-
*
|
|
36
|
+
* Whether the Session is in a terminal / final state.
|
|
37
|
+
*
|
|
38
38
|
* If this is `true`, inspect the value of `Success` to determine whether the Session was successful.
|
|
39
39
|
* @type {boolean}
|
|
40
40
|
* @memberof Session
|
|
41
41
|
*/
|
|
42
42
|
done: boolean;
|
|
43
43
|
/**
|
|
44
|
-
* Whether the Session has completed successfully.
|
|
45
|
-
*
|
|
46
|
-
* If this is `false`, the Session is either not yet done, or has failed. Inspect `Done` and `ErrorCode` for more information.
|
|
44
|
+
* Whether the Session has completed successfully.
|
|
45
|
+
*
|
|
46
|
+
* If this is `false`, the Session is either not yet done, or has failed. Inspect `Done` and `ErrorCode` for more information.
|
|
47
47
|
* If this is `true`, the Session has completed successfully.
|
|
48
48
|
* @type {boolean}
|
|
49
49
|
* @memberof Session
|
|
50
50
|
*/
|
|
51
51
|
success: boolean;
|
|
52
52
|
/**
|
|
53
|
-
* The reason for the Session's failure.
|
|
54
|
-
*
|
|
53
|
+
* The reason for the Session's failure.
|
|
54
|
+
*
|
|
55
55
|
* Only present if `Success` is `false`.
|
|
56
56
|
* @type {SessionErrorCode}
|
|
57
57
|
* @memberof Session
|
|
58
58
|
*/
|
|
59
|
-
errorCode?: SessionErrorCode;
|
|
59
|
+
errorCode?: SessionErrorCode | null;
|
|
60
60
|
/**
|
|
61
61
|
* The unix timestamp, in seconds, when this session was created
|
|
62
62
|
* @type {number}
|
|
@@ -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
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface SmartIdInput
|
|
20
|
+
*/
|
|
21
|
+
export interface SmartIdInput {
|
|
22
|
+
/**
|
|
23
|
+
* The user's Smart ID Document Number
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof SmartIdInput
|
|
26
|
+
*/
|
|
27
|
+
smartIdDocumentNumber?: string | null;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the SmartIdInput interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfSmartIdInput(value: object): value is SmartIdInput {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function SmartIdInputFromJSON(json: any): SmartIdInput {
|
|
38
|
+
return SmartIdInputFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function SmartIdInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): SmartIdInput {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'smartIdDocumentNumber': json['smartIdDocumentNumber'] == null ? undefined : json['smartIdDocumentNumber'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function SmartIdInputToJSON(value?: SmartIdInput | null): any {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'smartIdDocumentNumber': value['smartIdDocumentNumber'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
@@ -0,0 +1,88 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface SouthAfricaNidInput
|
|
20
|
+
*/
|
|
21
|
+
export interface SouthAfricaNidInput {
|
|
22
|
+
/**
|
|
23
|
+
* The user's full name as it appears in their National ID
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof SouthAfricaNidInput
|
|
26
|
+
*/
|
|
27
|
+
fullName: string;
|
|
28
|
+
/**
|
|
29
|
+
* The user's date of birth, in `YYYY-MM-DD` format
|
|
30
|
+
* @type {Date}
|
|
31
|
+
* @memberof SouthAfricaNidInput
|
|
32
|
+
*/
|
|
33
|
+
dateOfBirth: Date;
|
|
34
|
+
/**
|
|
35
|
+
* The user's gender as it appears in their National ID (e.g., male, female)
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof SouthAfricaNidInput
|
|
38
|
+
*/
|
|
39
|
+
gender: string;
|
|
40
|
+
/**
|
|
41
|
+
* The user's South African National ID number
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof SouthAfricaNidInput
|
|
44
|
+
*/
|
|
45
|
+
nationalIdNumber: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the SouthAfricaNidInput interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfSouthAfricaNidInput(value: object): value is SouthAfricaNidInput {
|
|
52
|
+
if (!('fullName' in value) || value['fullName'] === undefined) return false;
|
|
53
|
+
if (!('dateOfBirth' in value) || value['dateOfBirth'] === undefined) return false;
|
|
54
|
+
if (!('gender' in value) || value['gender'] === undefined) return false;
|
|
55
|
+
if (!('nationalIdNumber' in value) || value['nationalIdNumber'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function SouthAfricaNidInputFromJSON(json: any): SouthAfricaNidInput {
|
|
60
|
+
return SouthAfricaNidInputFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function SouthAfricaNidInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): SouthAfricaNidInput {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'fullName': json['fullName'],
|
|
70
|
+
'dateOfBirth': (new Date(json['dateOfBirth'])),
|
|
71
|
+
'gender': json['gender'],
|
|
72
|
+
'nationalIdNumber': json['nationalIdNumber'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function SouthAfricaNidInputToJSON(value?: SouthAfricaNidInput | null): any {
|
|
77
|
+
if (value == null) {
|
|
78
|
+
return value;
|
|
79
|
+
}
|
|
80
|
+
return {
|
|
81
|
+
|
|
82
|
+
'fullName': value['fullName'],
|
|
83
|
+
'dateOfBirth': ((value['dateOfBirth']).toISOString().substring(0,10)),
|
|
84
|
+
'gender': value['gender'],
|
|
85
|
+
'nationalIdNumber': value['nationalIdNumber'],
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
@@ -0,0 +1,62 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface SpidInput
|
|
20
|
+
*/
|
|
21
|
+
export interface SpidInput {
|
|
22
|
+
/**
|
|
23
|
+
* The ID of the specific IDP to invoke within SPID.
|
|
24
|
+
*
|
|
25
|
+
* If not specified, the user will be prompted to select an IDP.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SpidInput
|
|
28
|
+
*/
|
|
29
|
+
subProviderId?: string | null;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the SpidInput interface.
|
|
34
|
+
*/
|
|
35
|
+
export function instanceOfSpidInput(value: object): value is SpidInput {
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function SpidInputFromJSON(json: any): SpidInput {
|
|
40
|
+
return SpidInputFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function SpidInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): SpidInput {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
|
|
49
|
+
'subProviderId': json['subProviderId'] == null ? undefined : json['subProviderId'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function SpidInputToJSON(value?: SpidInput | null): any {
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
|
|
59
|
+
'subProviderId': value['subProviderId'],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
|
|
@@ -20,8 +20,8 @@ import { mapValues } from '../runtime';
|
|
|
20
20
|
*/
|
|
21
21
|
export interface StepRefreshInfo {
|
|
22
22
|
/**
|
|
23
|
-
* The UTC date/time at which the step `content` will expire and should no longer be used.
|
|
24
|
-
*
|
|
23
|
+
* The UTC date/time at which the step `content` will expire and should no longer be used.
|
|
24
|
+
*
|
|
25
25
|
* Use the `Refresh Step Content` API to obtain a new value for `content`.
|
|
26
26
|
* @type {Date}
|
|
27
27
|
* @memberof StepRefreshInfo
|
|
@@ -0,0 +1,93 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Information about a sub-provider.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface SubProviderMetadata
|
|
20
|
+
*/
|
|
21
|
+
export interface SubProviderMetadata {
|
|
22
|
+
/**
|
|
23
|
+
* The ID of the sub-provider.
|
|
24
|
+
*
|
|
25
|
+
* This cannot be used as a standalone Provider ID when creating a Session. It must
|
|
26
|
+
* be passed in via the Provider-specific input.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof SubProviderMetadata
|
|
29
|
+
*/
|
|
30
|
+
id: string;
|
|
31
|
+
/**
|
|
32
|
+
* The name of the sub-provider
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof SubProviderMetadata
|
|
35
|
+
*/
|
|
36
|
+
name: string;
|
|
37
|
+
/**
|
|
38
|
+
* Flavor text for the sub-provider
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof SubProviderMetadata
|
|
41
|
+
*/
|
|
42
|
+
description: string;
|
|
43
|
+
/**
|
|
44
|
+
* A URL pointing to the logo on Trinsic's CDN.
|
|
45
|
+
*
|
|
46
|
+
* May be a PNG, JPG, or SVG image.
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof SubProviderMetadata
|
|
49
|
+
*/
|
|
50
|
+
logoUrl: string;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Check if a given object implements the SubProviderMetadata interface.
|
|
55
|
+
*/
|
|
56
|
+
export function instanceOfSubProviderMetadata(value: object): value is SubProviderMetadata {
|
|
57
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
58
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
59
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
60
|
+
if (!('logoUrl' in value) || value['logoUrl'] === undefined) return false;
|
|
61
|
+
return true;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function SubProviderMetadataFromJSON(json: any): SubProviderMetadata {
|
|
65
|
+
return SubProviderMetadataFromJSONTyped(json, false);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function SubProviderMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubProviderMetadata {
|
|
69
|
+
if (json == null) {
|
|
70
|
+
return json;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
|
|
74
|
+
'id': json['id'],
|
|
75
|
+
'name': json['name'],
|
|
76
|
+
'description': json['description'],
|
|
77
|
+
'logoUrl': json['logoUrl'],
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function SubProviderMetadataToJSON(value?: SubProviderMetadata | null): any {
|
|
82
|
+
if (value == null) {
|
|
83
|
+
return value;
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'id': value['id'],
|
|
88
|
+
'name': value['name'],
|
|
89
|
+
'description': value['description'],
|
|
90
|
+
'logoUrl': value['logoUrl'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
@@ -0,0 +1,101 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface TrinsicTestDatabaseLookupInput
|
|
20
|
+
*/
|
|
21
|
+
export interface TrinsicTestDatabaseLookupInput {
|
|
22
|
+
/**
|
|
23
|
+
* The given name to use for the output of the test Session.
|
|
24
|
+
*
|
|
25
|
+
* This is required; if not provided, Trinsic's Fallback UI will be invoked to collect it
|
|
26
|
+
* from the user.
|
|
27
|
+
*
|
|
28
|
+
* Can be any non-empty value.
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof TrinsicTestDatabaseLookupInput
|
|
31
|
+
*/
|
|
32
|
+
givenName?: string | null;
|
|
33
|
+
/**
|
|
34
|
+
* The family name to use for the output of the test Session.
|
|
35
|
+
*
|
|
36
|
+
* This is required; if not provided, Trinsic's Fallback UI will be invoked to collect it
|
|
37
|
+
* from the user.
|
|
38
|
+
*
|
|
39
|
+
* Can be any non-empty value.
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof TrinsicTestDatabaseLookupInput
|
|
42
|
+
*/
|
|
43
|
+
familyName?: string | null;
|
|
44
|
+
/**
|
|
45
|
+
* A 6-digit code; must be "123456" for the Session to succeed.
|
|
46
|
+
*
|
|
47
|
+
* This is required; if not provided, Trinsic's Fallback UI will be invoked to collect it
|
|
48
|
+
* from the user.
|
|
49
|
+
*
|
|
50
|
+
* Any other value will cause the Session to fail.
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof TrinsicTestDatabaseLookupInput
|
|
53
|
+
*/
|
|
54
|
+
identityCode?: string | null;
|
|
55
|
+
/**
|
|
56
|
+
* An optional selfie image, base64-encoded.
|
|
57
|
+
*
|
|
58
|
+
* Will replace the existing test selfie attachment output if provided.
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof TrinsicTestDatabaseLookupInput
|
|
61
|
+
*/
|
|
62
|
+
selfieBase64?: string | null;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Check if a given object implements the TrinsicTestDatabaseLookupInput interface.
|
|
67
|
+
*/
|
|
68
|
+
export function instanceOfTrinsicTestDatabaseLookupInput(value: object): value is TrinsicTestDatabaseLookupInput {
|
|
69
|
+
return true;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function TrinsicTestDatabaseLookupInputFromJSON(json: any): TrinsicTestDatabaseLookupInput {
|
|
73
|
+
return TrinsicTestDatabaseLookupInputFromJSONTyped(json, false);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function TrinsicTestDatabaseLookupInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrinsicTestDatabaseLookupInput {
|
|
77
|
+
if (json == null) {
|
|
78
|
+
return json;
|
|
79
|
+
}
|
|
80
|
+
return {
|
|
81
|
+
|
|
82
|
+
'givenName': json['givenName'] == null ? undefined : json['givenName'],
|
|
83
|
+
'familyName': json['familyName'] == null ? undefined : json['familyName'],
|
|
84
|
+
'identityCode': json['identityCode'] == null ? undefined : json['identityCode'],
|
|
85
|
+
'selfieBase64': json['selfieBase64'] == null ? undefined : json['selfieBase64'],
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function TrinsicTestDatabaseLookupInputToJSON(value?: TrinsicTestDatabaseLookupInput | null): any {
|
|
90
|
+
if (value == null) {
|
|
91
|
+
return value;
|
|
92
|
+
}
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'givenName': value['givenName'],
|
|
96
|
+
'familyName': value['familyName'],
|
|
97
|
+
'identityCode': value['identityCode'],
|
|
98
|
+
'selfieBase64': value['selfieBase64'],
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
@@ -0,0 +1,64 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface TrinsicTestSubProvidersInput
|
|
20
|
+
*/
|
|
21
|
+
export interface TrinsicTestSubProvidersInput {
|
|
22
|
+
/**
|
|
23
|
+
* The ID of the specific IDP to invoke within the test federated provider.
|
|
24
|
+
*
|
|
25
|
+
* Valid options are `sub-provider-a` and `sub-provider-b`.
|
|
26
|
+
*
|
|
27
|
+
* If not specified, the user will be prompted to select one.
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof TrinsicTestSubProvidersInput
|
|
30
|
+
*/
|
|
31
|
+
subProviderId?: string | null;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Check if a given object implements the TrinsicTestSubProvidersInput interface.
|
|
36
|
+
*/
|
|
37
|
+
export function instanceOfTrinsicTestSubProvidersInput(value: object): value is TrinsicTestSubProvidersInput {
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function TrinsicTestSubProvidersInputFromJSON(json: any): TrinsicTestSubProvidersInput {
|
|
42
|
+
return TrinsicTestSubProvidersInputFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function TrinsicTestSubProvidersInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrinsicTestSubProvidersInput {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
|
|
51
|
+
'subProviderId': json['subProviderId'] == null ? undefined : json['subProviderId'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function TrinsicTestSubProvidersInputToJSON(value?: TrinsicTestSubProvidersInput | null): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
|
|
61
|
+
'subProviderId': value['subProviderId'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|