@trinsic/api 2.0.0-alpha3 → 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 +11 -3
- package/dist/apis/AttachmentsApi.d.ts +4 -4
- package/dist/apis/AttachmentsApi.js +2 -2
- package/dist/apis/NetworkApi.d.ts +28 -5
- package/dist/apis/NetworkApi.js +36 -2
- 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 +28 -5
- package/dist/esm/apis/NetworkApi.js +37 -3
- package/dist/esm/apis/SessionsApi.d.ts +8 -8
- package/dist/esm/apis/SessionsApi.js +4 -4
- package/dist/esm/models/CreateHostedProviderSessionResponse.d.ts +13 -1
- package/dist/esm/models/CreateHostedProviderSessionResponse.js +7 -1
- package/dist/esm/models/CreateWidgetSessionRequest.d.ts +6 -5
- 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/IdentityData.d.ts +6 -0
- 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/IntegrationLaunchMethod.d.ts +1 -1
- package/dist/esm/models/IntegrationLaunchMethod.js +1 -1
- 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/MobileIdInput.d.ts +44 -0
- package/dist/esm/models/MobileIdInput.js +43 -0
- 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 +62 -16
- package/dist/esm/models/ProviderInput.js +23 -5
- package/dist/esm/models/RecommendRequest.d.ts +4 -27
- package/dist/esm/models/RecommendRequest.js +3 -10
- package/dist/esm/models/RecommendationInfo.d.ts +55 -0
- package/dist/esm/models/RecommendationInfo.js +44 -0
- package/dist/esm/models/ResultCollection.d.ts +8 -2
- package/dist/esm/models/ResultCollection.js +3 -1
- package/dist/esm/models/SmartIdInput.d.ts +31 -0
- package/dist/esm/models/SmartIdInput.js +38 -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 +11 -3
- package/dist/esm/models/index.js +11 -3
- package/dist/models/CreateHostedProviderSessionResponse.d.ts +13 -1
- package/dist/models/CreateHostedProviderSessionResponse.js +7 -1
- package/dist/models/CreateWidgetSessionRequest.d.ts +6 -5
- 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/IdentityData.d.ts +6 -0
- 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/IntegrationLaunchMethod.d.ts +1 -1
- package/dist/models/IntegrationLaunchMethod.js +1 -1
- 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/MobileIdInput.d.ts +44 -0
- package/dist/models/MobileIdInput.js +49 -0
- 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 +62 -16
- package/dist/models/ProviderInput.js +23 -5
- package/dist/models/RecommendRequest.d.ts +4 -27
- package/dist/models/RecommendRequest.js +3 -10
- package/dist/models/RecommendationInfo.d.ts +55 -0
- package/dist/models/RecommendationInfo.js +50 -0
- package/dist/models/ResultCollection.d.ts +8 -2
- package/dist/models/ResultCollection.js +3 -1
- package/dist/models/SmartIdInput.d.ts +31 -0
- package/dist/models/SmartIdInput.js +44 -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 +11 -3
- package/dist/models/index.js +11 -3
- package/package.json +1 -1
- package/src/apis/AttachmentsApi.ts +4 -4
- package/src/apis/NetworkApi.ts +58 -4
- package/src/apis/SessionsApi.ts +8 -8
- package/src/models/BrazilDigitalCnhInput.ts +8 -8
- package/src/models/CreateAdvancedProviderSessionRequest.ts +26 -26
- package/src/models/CreateHostedProviderSessionResponse.ts +24 -8
- package/src/models/CreateWidgetSessionRequest.ts +16 -15
- package/src/models/CreateWidgetSessionResponse.ts +22 -6
- package/src/models/IdentityData.ts +8 -0
- package/src/models/IdinInput.ts +62 -0
- package/src/models/IntegrationLaunchMethod.ts +1 -1
- package/src/models/Language.ts +51 -0
- package/src/models/ListProviderContractsResponse.ts +68 -0
- package/src/models/MobileIdInput.ts +85 -0
- 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 +128 -40
- package/src/models/RecommendRequest.ts +12 -37
- package/src/models/RecommendationInfo.ts +90 -0
- package/src/models/ResultCollection.ts +10 -3
- package/src/models/Session.ts +7 -7
- package/src/models/SmartIdInput.ts +60 -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 +11 -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
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { RecommendationInfo } from './RecommendationInfo';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -32,13 +32,14 @@ export interface CreateWidgetSessionRequest {
|
|
|
32
32
|
*/
|
|
33
33
|
providers?: Array<string> | null;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Data that you already know about the user being verified.
|
|
36
36
|
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
37
|
+
*
|
|
38
|
+
* This data is used to improve the user experience during provider selection, by surfacing the most relevant providers first.
|
|
39
|
+
* @type {RecommendationInfo}
|
|
39
40
|
* @memberof CreateWidgetSessionRequest
|
|
40
41
|
*/
|
|
41
|
-
|
|
42
|
+
recommendationInfo?: RecommendationInfo | null;
|
|
42
43
|
}
|
|
43
44
|
/**
|
|
44
45
|
* Check if a given object implements the CreateWidgetSessionRequest interface.
|
|
@@ -17,7 +17,7 @@ exports.instanceOfCreateWidgetSessionRequest = instanceOfCreateWidgetSessionRequ
|
|
|
17
17
|
exports.CreateWidgetSessionRequestFromJSON = CreateWidgetSessionRequestFromJSON;
|
|
18
18
|
exports.CreateWidgetSessionRequestFromJSONTyped = CreateWidgetSessionRequestFromJSONTyped;
|
|
19
19
|
exports.CreateWidgetSessionRequestToJSON = CreateWidgetSessionRequestToJSON;
|
|
20
|
-
const
|
|
20
|
+
const RecommendationInfo_1 = require("./RecommendationInfo");
|
|
21
21
|
/**
|
|
22
22
|
* Check if a given object implements the CreateWidgetSessionRequest interface.
|
|
23
23
|
*/
|
|
@@ -34,7 +34,7 @@ function CreateWidgetSessionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
return {
|
|
35
35
|
'redirectUrl': json['redirectUrl'] == null ? undefined : json['redirectUrl'],
|
|
36
36
|
'providers': json['providers'] == null ? undefined : json['providers'],
|
|
37
|
-
'
|
|
37
|
+
'recommendationInfo': json['recommendationInfo'] == null ? undefined : (0, RecommendationInfo_1.RecommendationInfoFromJSON)(json['recommendationInfo']),
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
function CreateWidgetSessionRequestToJSON(value) {
|
|
@@ -44,6 +44,6 @@ function CreateWidgetSessionRequestToJSON(value) {
|
|
|
44
44
|
return {
|
|
45
45
|
'redirectUrl': value['redirectUrl'],
|
|
46
46
|
'providers': value['providers'],
|
|
47
|
-
'
|
|
47
|
+
'recommendationInfo': (0, RecommendationInfo_1.RecommendationInfoToJSON)(value['recommendationInfo']),
|
|
48
48
|
};
|
|
49
49
|
}
|
|
@@ -30,7 +30,19 @@ export interface CreateWidgetSessionResponse {
|
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof CreateWidgetSessionResponse
|
|
32
32
|
*/
|
|
33
|
-
launchUrl
|
|
33
|
+
launchUrl: string;
|
|
34
|
+
/**
|
|
35
|
+
* The `resultsAccessKey` for the Acceptance Session.
|
|
36
|
+
*
|
|
37
|
+
* This is an encrypted payload which contains the decryption key necessary to access the Session's Data Vault.
|
|
38
|
+
*
|
|
39
|
+
* Save this securely in your systems; it must be passed back with any API call which requires access to the Session's Data Vault.
|
|
40
|
+
*
|
|
41
|
+
* Trinsic cannot access a Session's Data Vault without this key.
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof CreateWidgetSessionResponse
|
|
44
|
+
*/
|
|
45
|
+
resultsAccessKey: string;
|
|
34
46
|
}
|
|
35
47
|
/**
|
|
36
48
|
* Check if a given object implements the CreateWidgetSessionResponse interface.
|
|
@@ -23,6 +23,10 @@ exports.CreateWidgetSessionResponseToJSON = CreateWidgetSessionResponseToJSON;
|
|
|
23
23
|
function instanceOfCreateWidgetSessionResponse(value) {
|
|
24
24
|
if (!('sessionId' in value) || value['sessionId'] === undefined)
|
|
25
25
|
return false;
|
|
26
|
+
if (!('launchUrl' in value) || value['launchUrl'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('resultsAccessKey' in value) || value['resultsAccessKey'] === undefined)
|
|
29
|
+
return false;
|
|
26
30
|
return true;
|
|
27
31
|
}
|
|
28
32
|
function CreateWidgetSessionResponseFromJSON(json) {
|
|
@@ -34,7 +38,8 @@ function CreateWidgetSessionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
38
|
}
|
|
35
39
|
return {
|
|
36
40
|
'sessionId': json['sessionId'],
|
|
37
|
-
'launchUrl': json['launchUrl']
|
|
41
|
+
'launchUrl': json['launchUrl'],
|
|
42
|
+
'resultsAccessKey': json['resultsAccessKey'],
|
|
38
43
|
};
|
|
39
44
|
}
|
|
40
45
|
function CreateWidgetSessionResponseToJSON(value) {
|
|
@@ -44,5 +49,6 @@ function CreateWidgetSessionResponseToJSON(value) {
|
|
|
44
49
|
return {
|
|
45
50
|
'sessionId': value['sessionId'],
|
|
46
51
|
'launchUrl': value['launchUrl'],
|
|
52
|
+
'resultsAccessKey': value['resultsAccessKey'],
|
|
47
53
|
};
|
|
48
54
|
}
|
|
@@ -24,6 +24,12 @@ export interface IdentityData {
|
|
|
24
24
|
* @memberof IdentityData
|
|
25
25
|
*/
|
|
26
26
|
originatingProviderId?: string | null;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof IdentityData
|
|
31
|
+
*/
|
|
32
|
+
originatingSubProviderId?: string | null;
|
|
27
33
|
/**
|
|
28
34
|
*
|
|
29
35
|
* @type {PersonData}
|
|
@@ -35,6 +35,7 @@ function IdentityDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
35
|
}
|
|
36
36
|
return {
|
|
37
37
|
'originatingProviderId': json['originatingProviderId'] == null ? undefined : json['originatingProviderId'],
|
|
38
|
+
'originatingSubProviderId': json['originatingSubProviderId'] == null ? undefined : json['originatingSubProviderId'],
|
|
38
39
|
'person': json['person'] == null ? undefined : (0, PersonData_1.PersonDataFromJSON)(json['person']),
|
|
39
40
|
'document': json['document'] == null ? undefined : (0, DocumentData_1.DocumentDataFromJSON)(json['document']),
|
|
40
41
|
'attachmentAccessKeys': json['attachmentAccessKeys'] == null ? undefined : (0, AttachmentAccessKeys_1.AttachmentAccessKeysFromJSON)(json['attachmentAccessKeys']),
|
|
@@ -46,6 +47,7 @@ function IdentityDataToJSON(value) {
|
|
|
46
47
|
}
|
|
47
48
|
return {
|
|
48
49
|
'originatingProviderId': value['originatingProviderId'],
|
|
50
|
+
'originatingSubProviderId': value['originatingSubProviderId'],
|
|
49
51
|
'person': (0, PersonData_1.PersonDataToJSON)(value['person']),
|
|
50
52
|
'document': (0, DocumentData_1.DocumentDataToJSON)(value['document']),
|
|
51
53
|
'attachmentAccessKeys': (0, AttachmentAccessKeys_1.AttachmentAccessKeysToJSON)(value['attachmentAccessKeys']),
|
|
@@ -0,0 +1,33 @@
|
|
|
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 IdinInput
|
|
16
|
+
*/
|
|
17
|
+
export interface IdinInput {
|
|
18
|
+
/**
|
|
19
|
+
* The ID of the specific bank to invoke with IDIN.
|
|
20
|
+
*
|
|
21
|
+
* If not specified, the user will be prompted to select a bank.
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof IdinInput
|
|
24
|
+
*/
|
|
25
|
+
subProviderId?: string | null;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Check if a given object implements the IdinInput interface.
|
|
29
|
+
*/
|
|
30
|
+
export declare function instanceOfIdinInput(value: object): value is IdinInput;
|
|
31
|
+
export declare function IdinInputFromJSON(json: any): IdinInput;
|
|
32
|
+
export declare function IdinInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): IdinInput;
|
|
33
|
+
export declare function IdinInputToJSON(value?: IdinInput | null): any;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Trinsic API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfIdinInput = instanceOfIdinInput;
|
|
17
|
+
exports.IdinInputFromJSON = IdinInputFromJSON;
|
|
18
|
+
exports.IdinInputFromJSONTyped = IdinInputFromJSONTyped;
|
|
19
|
+
exports.IdinInputToJSON = IdinInputToJSON;
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the IdinInput interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfIdinInput(value) {
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
function IdinInputFromJSON(json) {
|
|
27
|
+
return IdinInputFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
function IdinInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'subProviderId': json['subProviderId'] == null ? undefined : json['subProviderId'],
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
function IdinInputToJSON(value) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'subProviderId': value['subProviderId'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
export declare const IntegrationLaunchMethod: {
|
|
17
17
|
readonly LaunchBrowser: "LaunchBrowser";
|
|
18
|
-
readonly
|
|
18
|
+
readonly None: "None";
|
|
19
19
|
readonly DeeplinkToMobile: "DeeplinkToMobile";
|
|
20
20
|
readonly ShowContent: "ShowContent";
|
|
21
21
|
};
|
|
@@ -24,7 +24,7 @@ exports.IntegrationLaunchMethodToJSON = IntegrationLaunchMethodToJSON;
|
|
|
24
24
|
*/
|
|
25
25
|
exports.IntegrationLaunchMethod = {
|
|
26
26
|
LaunchBrowser: 'LaunchBrowser',
|
|
27
|
-
|
|
27
|
+
None: 'None',
|
|
28
28
|
DeeplinkToMobile: 'DeeplinkToMobile',
|
|
29
29
|
ShowContent: 'ShowContent'
|
|
30
30
|
};
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
*/
|
|
16
|
+
export declare const Language: {
|
|
17
|
+
readonly Lit: "LIT";
|
|
18
|
+
readonly Est: "EST";
|
|
19
|
+
readonly Eng: "ENG";
|
|
20
|
+
readonly Rus: "RUS";
|
|
21
|
+
};
|
|
22
|
+
export type Language = typeof Language[keyof typeof Language];
|
|
23
|
+
export declare function instanceOfLanguage(value: any): boolean;
|
|
24
|
+
export declare function LanguageFromJSON(json: any): Language;
|
|
25
|
+
export declare function LanguageFromJSONTyped(json: any, ignoreDiscriminator: boolean): Language;
|
|
26
|
+
export declare function LanguageToJSON(value?: Language | null): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Trinsic API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.Language = void 0;
|
|
17
|
+
exports.instanceOfLanguage = instanceOfLanguage;
|
|
18
|
+
exports.LanguageFromJSON = LanguageFromJSON;
|
|
19
|
+
exports.LanguageFromJSONTyped = LanguageFromJSONTyped;
|
|
20
|
+
exports.LanguageToJSON = LanguageToJSON;
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.Language = {
|
|
26
|
+
Lit: 'LIT',
|
|
27
|
+
Est: 'EST',
|
|
28
|
+
Eng: 'ENG',
|
|
29
|
+
Rus: 'RUS'
|
|
30
|
+
};
|
|
31
|
+
function instanceOfLanguage(value) {
|
|
32
|
+
for (const key in exports.Language) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(exports.Language, key)) {
|
|
34
|
+
if (exports.Language[key] === value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
function LanguageFromJSON(json) {
|
|
42
|
+
return LanguageFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function LanguageFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
function LanguageToJSON(value) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 { ProviderContract } from './ProviderContract';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ListProviderContractsResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface ListProviderContractsResponse {
|
|
19
|
+
/**
|
|
20
|
+
* Contracts for all Providers available to your App, filtered by your App's current test mode setting.
|
|
21
|
+
* @type {Array<ProviderContract>}
|
|
22
|
+
* @memberof ListProviderContractsResponse
|
|
23
|
+
*/
|
|
24
|
+
providerContracts: Array<ProviderContract>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ListProviderContractsResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfListProviderContractsResponse(value: object): value is ListProviderContractsResponse;
|
|
30
|
+
export declare function ListProviderContractsResponseFromJSON(json: any): ListProviderContractsResponse;
|
|
31
|
+
export declare function ListProviderContractsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListProviderContractsResponse;
|
|
32
|
+
export declare function ListProviderContractsResponseToJSON(value?: ListProviderContractsResponse | null): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Trinsic API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfListProviderContractsResponse = instanceOfListProviderContractsResponse;
|
|
17
|
+
exports.ListProviderContractsResponseFromJSON = ListProviderContractsResponseFromJSON;
|
|
18
|
+
exports.ListProviderContractsResponseFromJSONTyped = ListProviderContractsResponseFromJSONTyped;
|
|
19
|
+
exports.ListProviderContractsResponseToJSON = ListProviderContractsResponseToJSON;
|
|
20
|
+
const ProviderContract_1 = require("./ProviderContract");
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ListProviderContractsResponse interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfListProviderContractsResponse(value) {
|
|
25
|
+
if (!('providerContracts' in value) || value['providerContracts'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function ListProviderContractsResponseFromJSON(json) {
|
|
30
|
+
return ListProviderContractsResponseFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function ListProviderContractsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'providerContracts': (json['providerContracts'].map(ProviderContract_1.ProviderContractFromJSON)),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function ListProviderContractsResponseToJSON(value) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'providerContracts': (value['providerContracts'].map(ProviderContract_1.ProviderContractToJSON)),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 { Language } from './Language';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface MobileIdInput
|
|
17
|
+
*/
|
|
18
|
+
export interface MobileIdInput {
|
|
19
|
+
/**
|
|
20
|
+
* The user's phone number in E.164 format
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof MobileIdInput
|
|
23
|
+
*/
|
|
24
|
+
mobileIdPhoneNumber?: string | null;
|
|
25
|
+
/**
|
|
26
|
+
* The user's National ID number
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof MobileIdInput
|
|
29
|
+
*/
|
|
30
|
+
mobileIdNationalIdentityNumber?: string | null;
|
|
31
|
+
/**
|
|
32
|
+
* The user's language -- LIT, EST, ENG, or RUS
|
|
33
|
+
* @type {Language}
|
|
34
|
+
* @memberof MobileIdInput
|
|
35
|
+
*/
|
|
36
|
+
mobileIdLanguage?: Language | null;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the MobileIdInput interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfMobileIdInput(value: object): value is MobileIdInput;
|
|
42
|
+
export declare function MobileIdInputFromJSON(json: any): MobileIdInput;
|
|
43
|
+
export declare function MobileIdInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): MobileIdInput;
|
|
44
|
+
export declare function MobileIdInputToJSON(value?: MobileIdInput | null): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Trinsic API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfMobileIdInput = instanceOfMobileIdInput;
|
|
17
|
+
exports.MobileIdInputFromJSON = MobileIdInputFromJSON;
|
|
18
|
+
exports.MobileIdInputFromJSONTyped = MobileIdInputFromJSONTyped;
|
|
19
|
+
exports.MobileIdInputToJSON = MobileIdInputToJSON;
|
|
20
|
+
const Language_1 = require("./Language");
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the MobileIdInput interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfMobileIdInput(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function MobileIdInputFromJSON(json) {
|
|
28
|
+
return MobileIdInputFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function MobileIdInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'mobileIdPhoneNumber': json['mobileIdPhoneNumber'] == null ? undefined : json['mobileIdPhoneNumber'],
|
|
36
|
+
'mobileIdNationalIdentityNumber': json['mobileIdNationalIdentityNumber'] == null ? undefined : json['mobileIdNationalIdentityNumber'],
|
|
37
|
+
'mobileIdLanguage': json['mobileIdLanguage'] == null ? undefined : (0, Language_1.LanguageFromJSON)(json['mobileIdLanguage']),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function MobileIdInputToJSON(value) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'mobileIdPhoneNumber': value['mobileIdPhoneNumber'],
|
|
46
|
+
'mobileIdNationalIdentityNumber': value['mobileIdNationalIdentityNumber'],
|
|
47
|
+
'mobileIdLanguage': (0, Language_1.LanguageToJSON)(value['mobileIdLanguage']),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -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;
|