@trinsic/api 2.1.1-alpha2 → 2.2.0-alpha1
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 -2
- package/dist/apis/MdlApi.d.ts +80 -0
- package/dist/apis/MdlApi.js +105 -0
- package/dist/apis/NetworkApi.d.ts +14 -15
- package/dist/apis/NetworkApi.js +13 -11
- package/dist/apis/SessionsApi.d.ts +53 -22
- package/dist/apis/SessionsApi.js +57 -15
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/MdlApi.d.ts +80 -0
- package/dist/esm/apis/MdlApi.js +101 -0
- package/dist/esm/apis/NetworkApi.d.ts +14 -15
- package/dist/esm/apis/NetworkApi.js +13 -11
- package/dist/esm/apis/SessionsApi.d.ts +53 -22
- package/dist/esm/apis/SessionsApi.js +58 -16
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/AppleWalletInput.d.ts +35 -0
- package/dist/esm/models/AppleWalletInput.js +42 -0
- package/dist/esm/models/{CreateAdvancedProviderSessionRequest.d.ts → CreateDirectProviderSessionRequest.d.ts} +20 -14
- package/dist/esm/models/{CreateAdvancedProviderSessionRequest.js → CreateDirectProviderSessionRequest.js} +12 -8
- package/dist/esm/models/CreateDirectProviderSessionResponse.d.ts +46 -0
- package/dist/esm/models/{CreateAdvancedProviderSessionResponse.js → CreateDirectProviderSessionResponse.js} +8 -8
- package/dist/esm/models/CreateHostedProviderSessionRequest.d.ts +7 -1
- package/dist/esm/models/CreateHostedProviderSessionRequest.js +4 -0
- package/dist/esm/models/CreateMdlExchangeRequest.d.ts +102 -0
- package/dist/esm/models/CreateMdlExchangeRequest.js +66 -0
- package/dist/esm/models/CreateMdlExchangeResponse.d.ts +48 -0
- package/dist/esm/models/CreateMdlExchangeResponse.js +51 -0
- package/dist/esm/models/CreateWidgetSessionRequest.d.ts +7 -1
- package/dist/esm/models/CreateWidgetSessionRequest.js +4 -0
- package/dist/esm/models/ExternalMdlFieldData.d.ts +39 -0
- package/dist/esm/models/ExternalMdlFieldData.js +48 -0
- package/dist/esm/models/FinalizeMdlExchangeRequest.d.ts +50 -0
- package/dist/esm/models/FinalizeMdlExchangeRequest.js +55 -0
- package/dist/esm/models/FinalizeMdlExchangeResponse.d.ts +55 -0
- package/dist/esm/models/FinalizeMdlExchangeResponse.js +54 -0
- package/dist/esm/models/GetAttachmentRequest.d.ts +6 -0
- package/dist/esm/models/GetAttachmentRequest.js +4 -0
- package/dist/esm/models/GoogleWalletInput.d.ts +35 -0
- package/dist/esm/models/GoogleWalletInput.js +42 -0
- package/dist/esm/models/IntegrationCapability.d.ts +1 -0
- package/dist/esm/models/IntegrationCapability.js +2 -1
- package/dist/esm/models/IntegrationLaunchMethod.d.ts +1 -0
- package/dist/esm/models/IntegrationLaunchMethod.js +2 -1
- package/dist/esm/models/IntegrationStep.d.ts +1 -1
- package/dist/esm/models/MdlCertificateData.d.ts +58 -0
- package/dist/esm/models/MdlCertificateData.js +59 -0
- package/dist/esm/models/MdlExchangeMechanism.d.ts +25 -0
- package/dist/esm/models/MdlExchangeMechanism.js +43 -0
- package/dist/esm/models/MdlFieldDataType.d.ts +28 -0
- package/dist/esm/models/MdlFieldDataType.js +46 -0
- package/dist/esm/models/MdlIdentityData.d.ts +50 -0
- package/dist/esm/models/MdlIdentityData.js +52 -0
- package/dist/esm/models/ProviderContract.d.ts +18 -8
- package/dist/esm/models/ProviderContract.js +4 -0
- package/dist/esm/models/ProviderInput.d.ts +14 -0
- package/dist/esm/models/ProviderInput.js +6 -0
- package/dist/esm/models/RecommendRequest.d.ts +6 -0
- package/dist/esm/models/RecommendRequest.js +4 -0
- package/dist/esm/models/ResultCollectionMethod.d.ts +1 -0
- package/dist/esm/models/ResultCollectionMethod.js +2 -1
- package/dist/esm/models/SessionErrorCode.d.ts +2 -0
- package/dist/esm/models/SessionErrorCode.js +3 -1
- package/dist/esm/models/SubmitNativeChallengeResponseRequest.d.ts +38 -0
- package/dist/esm/models/SubmitNativeChallengeResponseRequest.js +47 -0
- package/dist/esm/models/SubmitNativeChallengeResponseResponse.d.ts +33 -0
- package/dist/esm/models/SubmitNativeChallengeResponseResponse.js +44 -0
- package/dist/esm/models/index.d.ts +15 -2
- package/dist/esm/models/index.js +15 -2
- package/dist/models/AppleWalletInput.d.ts +35 -0
- package/dist/models/AppleWalletInput.js +49 -0
- package/dist/models/{CreateAdvancedProviderSessionRequest.d.ts → CreateDirectProviderSessionRequest.d.ts} +20 -14
- package/dist/models/{CreateAdvancedProviderSessionRequest.js → CreateDirectProviderSessionRequest.js} +17 -13
- package/dist/models/CreateDirectProviderSessionResponse.d.ts +46 -0
- package/dist/models/{CreateAdvancedProviderSessionResponse.js → CreateDirectProviderSessionResponse.js} +13 -13
- package/dist/models/CreateHostedProviderSessionRequest.d.ts +7 -1
- package/dist/models/CreateHostedProviderSessionRequest.js +4 -0
- package/dist/models/CreateMdlExchangeRequest.d.ts +102 -0
- package/dist/models/CreateMdlExchangeRequest.js +73 -0
- package/dist/models/CreateMdlExchangeResponse.d.ts +48 -0
- package/dist/models/CreateMdlExchangeResponse.js +58 -0
- package/dist/models/CreateWidgetSessionRequest.d.ts +7 -1
- package/dist/models/CreateWidgetSessionRequest.js +4 -0
- package/dist/models/ExternalMdlFieldData.d.ts +39 -0
- package/dist/models/ExternalMdlFieldData.js +55 -0
- package/dist/models/FinalizeMdlExchangeRequest.d.ts +50 -0
- package/dist/models/FinalizeMdlExchangeRequest.js +62 -0
- package/dist/models/FinalizeMdlExchangeResponse.d.ts +55 -0
- package/dist/models/FinalizeMdlExchangeResponse.js +61 -0
- package/dist/models/GetAttachmentRequest.d.ts +6 -0
- package/dist/models/GetAttachmentRequest.js +4 -0
- package/dist/models/GoogleWalletInput.d.ts +35 -0
- package/dist/models/GoogleWalletInput.js +49 -0
- package/dist/models/IntegrationCapability.d.ts +1 -0
- package/dist/models/IntegrationCapability.js +2 -1
- package/dist/models/IntegrationLaunchMethod.d.ts +1 -0
- package/dist/models/IntegrationLaunchMethod.js +2 -1
- package/dist/models/IntegrationStep.d.ts +1 -1
- package/dist/models/MdlCertificateData.d.ts +58 -0
- package/dist/models/MdlCertificateData.js +66 -0
- package/dist/models/MdlExchangeMechanism.d.ts +25 -0
- package/dist/models/MdlExchangeMechanism.js +51 -0
- package/dist/models/MdlFieldDataType.d.ts +28 -0
- package/dist/models/MdlFieldDataType.js +54 -0
- package/dist/models/MdlIdentityData.d.ts +50 -0
- package/dist/models/MdlIdentityData.js +59 -0
- package/dist/models/ProviderContract.d.ts +18 -8
- package/dist/models/ProviderContract.js +4 -0
- package/dist/models/ProviderInput.d.ts +14 -0
- package/dist/models/ProviderInput.js +6 -0
- package/dist/models/RecommendRequest.d.ts +6 -0
- package/dist/models/RecommendRequest.js +4 -0
- package/dist/models/ResultCollectionMethod.d.ts +1 -0
- package/dist/models/ResultCollectionMethod.js +2 -1
- package/dist/models/SessionErrorCode.d.ts +2 -0
- package/dist/models/SessionErrorCode.js +3 -1
- package/dist/models/SubmitNativeChallengeResponseRequest.d.ts +38 -0
- package/dist/models/SubmitNativeChallengeResponseRequest.js +54 -0
- package/dist/models/SubmitNativeChallengeResponseResponse.d.ts +33 -0
- package/dist/models/SubmitNativeChallengeResponseResponse.js +51 -0
- package/dist/models/index.d.ts +15 -2
- package/dist/models/index.js +15 -2
- package/package.json +1 -1
- package/src/apis/MdlApi.ts +169 -0
- package/src/apis/NetworkApi.ts +33 -19
- package/src/apis/SessionsApi.ts +116 -33
- package/src/apis/index.ts +1 -0
- package/src/models/AppleWalletInput.ts +77 -0
- package/src/models/{CreateAdvancedProviderSessionRequest.ts → CreateDirectProviderSessionRequest.ts} +25 -16
- package/src/models/{CreateAdvancedProviderSessionResponse.ts → CreateDirectProviderSessionResponse.ts} +13 -13
- package/src/models/CreateHostedProviderSessionRequest.ts +10 -1
- package/src/models/CreateMdlExchangeRequest.ts +159 -0
- package/src/models/CreateMdlExchangeResponse.ts +88 -0
- package/src/models/CreateWidgetSessionRequest.ts +10 -1
- package/src/models/ExternalMdlFieldData.ts +85 -0
- package/src/models/FinalizeMdlExchangeRequest.ts +93 -0
- package/src/models/FinalizeMdlExchangeResponse.ts +115 -0
- package/src/models/GetAttachmentRequest.ts +9 -0
- package/src/models/GoogleWalletInput.ts +77 -0
- package/src/models/IntegrationCapability.ts +2 -1
- package/src/models/IntegrationLaunchMethod.ts +2 -1
- package/src/models/IntegrationStep.ts +1 -1
- package/src/models/MdlCertificateData.ts +104 -0
- package/src/models/MdlExchangeMechanism.ts +53 -0
- package/src/models/MdlFieldDataType.ts +56 -0
- package/src/models/MdlIdentityData.ts +99 -0
- package/src/models/ProviderContract.ts +21 -8
- package/src/models/ProviderInput.ts +30 -0
- package/src/models/RecommendRequest.ts +9 -0
- package/src/models/ResultCollectionMethod.ts +2 -1
- package/src/models/SessionErrorCode.ts +3 -1
- package/src/models/SubmitNativeChallengeResponseRequest.ts +75 -0
- package/src/models/SubmitNativeChallengeResponseResponse.ts +74 -0
- package/src/models/index.ts +15 -2
- package/dist/esm/models/CreateAdvancedProviderSessionResponse.d.ts +0 -46
- package/dist/models/CreateAdvancedProviderSessionResponse.d.ts +0 -46
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { AppleWalletInputFromJSON, AppleWalletInputToJSON, } from './AppleWalletInput';
|
|
14
15
|
import { BrazilCpfCheckInputFromJSON, BrazilCpfCheckInputToJSON, } from './BrazilCpfCheckInput';
|
|
15
16
|
import { MexicoCurpInputFromJSON, MexicoCurpInputToJSON, } from './MexicoCurpInput';
|
|
16
17
|
import { BrazilDigitalCnhInputFromJSON, BrazilDigitalCnhInputToJSON, } from './BrazilDigitalCnhInput';
|
|
@@ -26,6 +27,7 @@ import { NigeriaNinInputFromJSON, NigeriaNinInputToJSON, } from './NigeriaNinInp
|
|
|
26
27
|
import { SmartIdInputFromJSON, SmartIdInputToJSON, } from './SmartIdInput';
|
|
27
28
|
import { IndonesiaDukcapilMatchInputFromJSON, IndonesiaDukcapilMatchInputToJSON, } from './IndonesiaDukcapilMatchInput';
|
|
28
29
|
import { MobileIdInputFromJSON, MobileIdInputToJSON, } from './MobileIdInput';
|
|
30
|
+
import { GoogleWalletInputFromJSON, GoogleWalletInputToJSON, } from './GoogleWalletInput';
|
|
29
31
|
import { TrinsicTestDatabaseLookupInputFromJSON, TrinsicTestDatabaseLookupInputToJSON, } from './TrinsicTestDatabaseLookupInput';
|
|
30
32
|
import { IndonesiaNikInputFromJSON, IndonesiaNikInputToJSON, } from './IndonesiaNikInput';
|
|
31
33
|
import { IdinInputFromJSON, IdinInputToJSON, } from './IdinInput';
|
|
@@ -59,6 +61,8 @@ export function ProviderInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
59
61
|
'mobileId': json['mobileId'] == null ? undefined : MobileIdInputFromJSON(json['mobileId']),
|
|
60
62
|
'idin': json['idin'] == null ? undefined : IdinInputFromJSON(json['idin']),
|
|
61
63
|
'spid': json['spid'] == null ? undefined : SpidInputFromJSON(json['spid']),
|
|
64
|
+
'googleWallet': json['googleWallet'] == null ? undefined : GoogleWalletInputFromJSON(json['googleWallet']),
|
|
65
|
+
'appleWallet': json['appleWallet'] == null ? undefined : AppleWalletInputFromJSON(json['appleWallet']),
|
|
62
66
|
'trinsicTestDatabaseLookup': json['trinsicTestDatabaseLookup'] == null ? undefined : TrinsicTestDatabaseLookupInputFromJSON(json['trinsicTestDatabaseLookup']),
|
|
63
67
|
'trinsicTestSubProviders': json['trinsicTestSubProviders'] == null ? undefined : TrinsicTestSubProvidersInputFromJSON(json['trinsicTestSubProviders']),
|
|
64
68
|
};
|
|
@@ -87,6 +91,8 @@ export function ProviderInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
87
91
|
'mobileId': MobileIdInputToJSON(value['mobileId']),
|
|
88
92
|
'idin': IdinInputToJSON(value['idin']),
|
|
89
93
|
'spid': SpidInputToJSON(value['spid']),
|
|
94
|
+
'googleWallet': GoogleWalletInputToJSON(value['googleWallet']),
|
|
95
|
+
'appleWallet': AppleWalletInputToJSON(value['appleWallet']),
|
|
90
96
|
'trinsicTestDatabaseLookup': TrinsicTestDatabaseLookupInputToJSON(value['trinsicTestDatabaseLookup']),
|
|
91
97
|
'trinsicTestSubProviders': TrinsicTestSubProvidersInputToJSON(value['trinsicTestSubProviders']),
|
|
92
98
|
};
|
|
@@ -16,6 +16,12 @@ import type { RecommendationInfo } from './RecommendationInfo';
|
|
|
16
16
|
* @interface RecommendRequest
|
|
17
17
|
*/
|
|
18
18
|
export interface RecommendRequest {
|
|
19
|
+
/**
|
|
20
|
+
* The ID of the VerificationProfile to use for this recommendation.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof RecommendRequest
|
|
23
|
+
*/
|
|
24
|
+
verificationProfileId: string;
|
|
19
25
|
/**
|
|
20
26
|
* Information about the user you wish to generate a recommendation for.
|
|
21
27
|
* @type {RecommendationInfo}
|
|
@@ -16,6 +16,8 @@ import { RecommendationInfoFromJSON, RecommendationInfoToJSON, } from './Recomme
|
|
|
16
16
|
* Check if a given object implements the RecommendRequest interface.
|
|
17
17
|
*/
|
|
18
18
|
export function instanceOfRecommendRequest(value) {
|
|
19
|
+
if (!('verificationProfileId' in value) || value['verificationProfileId'] === undefined)
|
|
20
|
+
return false;
|
|
19
21
|
return true;
|
|
20
22
|
}
|
|
21
23
|
export function RecommendRequestFromJSON(json) {
|
|
@@ -26,6 +28,7 @@ export function RecommendRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
26
28
|
return json;
|
|
27
29
|
}
|
|
28
30
|
return {
|
|
31
|
+
'verificationProfileId': json['verificationProfileId'],
|
|
29
32
|
'recommendationInfo': json['recommendationInfo'] == null ? undefined : RecommendationInfoFromJSON(json['recommendationInfo']),
|
|
30
33
|
'health': json['health'] == null ? undefined : json['health'],
|
|
31
34
|
};
|
|
@@ -38,6 +41,7 @@ export function RecommendRequestToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
38
41
|
return value;
|
|
39
42
|
}
|
|
40
43
|
return {
|
|
44
|
+
'verificationProfileId': value['verificationProfileId'],
|
|
41
45
|
'recommendationInfo': RecommendationInfoToJSON(value['recommendationInfo']),
|
|
42
46
|
'health': value['health'],
|
|
43
47
|
};
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
export declare const ResultCollectionMethod: {
|
|
17
17
|
readonly PollResult: "PollResult";
|
|
18
18
|
readonly CaptureRedirect: "CaptureRedirect";
|
|
19
|
+
readonly SubmitNativeChallengeResponse: "SubmitNativeChallengeResponse";
|
|
19
20
|
};
|
|
20
21
|
export type ResultCollectionMethod = typeof ResultCollectionMethod[keyof typeof ResultCollectionMethod];
|
|
21
22
|
export declare function instanceOfResultCollectionMethod(value: any): boolean;
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
*/
|
|
18
18
|
export const ResultCollectionMethod = {
|
|
19
19
|
PollResult: 'PollResult',
|
|
20
|
-
CaptureRedirect: 'CaptureRedirect'
|
|
20
|
+
CaptureRedirect: 'CaptureRedirect',
|
|
21
|
+
SubmitNativeChallengeResponse: 'SubmitNativeChallengeResponse'
|
|
21
22
|
};
|
|
22
23
|
export function instanceOfResultCollectionMethod(value) {
|
|
23
24
|
for (const key in ResultCollectionMethod) {
|
|
@@ -24,6 +24,8 @@ export declare const SessionErrorCode: {
|
|
|
24
24
|
readonly Inauthentic: "Inauthentic";
|
|
25
25
|
readonly UnsupportedDocument: "UnsupportedDocument";
|
|
26
26
|
readonly AssuranceLevelNotMet: "AssuranceLevelNotMet";
|
|
27
|
+
readonly SecurityValidationFailed: "SecurityValidationFailed";
|
|
28
|
+
readonly InvalidResponse: "InvalidResponse";
|
|
27
29
|
};
|
|
28
30
|
export type SessionErrorCode = typeof SessionErrorCode[keyof typeof SessionErrorCode];
|
|
29
31
|
export declare function instanceOfSessionErrorCode(value: any): boolean;
|
|
@@ -25,7 +25,9 @@ export const SessionErrorCode = {
|
|
|
25
25
|
InvalidImage: 'InvalidImage',
|
|
26
26
|
Inauthentic: 'Inauthentic',
|
|
27
27
|
UnsupportedDocument: 'UnsupportedDocument',
|
|
28
|
-
AssuranceLevelNotMet: 'AssuranceLevelNotMet'
|
|
28
|
+
AssuranceLevelNotMet: 'AssuranceLevelNotMet',
|
|
29
|
+
SecurityValidationFailed: 'SecurityValidationFailed',
|
|
30
|
+
InvalidResponse: 'InvalidResponse'
|
|
29
31
|
};
|
|
30
32
|
export function instanceOfSessionErrorCode(value) {
|
|
31
33
|
for (const key in SessionErrorCode) {
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Trinsic API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SubmitNativeChallengeResponseRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface SubmitNativeChallengeResponseRequest {
|
|
18
|
+
/**
|
|
19
|
+
* The Results Access Key for the Session in question
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SubmitNativeChallengeResponseRequest
|
|
22
|
+
*/
|
|
23
|
+
resultsAccessKey: string;
|
|
24
|
+
/**
|
|
25
|
+
* The response token retrieved from a Trinsic UI SDK's performMdlExchange() call.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SubmitNativeChallengeResponseRequest
|
|
28
|
+
*/
|
|
29
|
+
responseToken: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the SubmitNativeChallengeResponseRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfSubmitNativeChallengeResponseRequest(value: object): value is SubmitNativeChallengeResponseRequest;
|
|
35
|
+
export declare function SubmitNativeChallengeResponseRequestFromJSON(json: any): SubmitNativeChallengeResponseRequest;
|
|
36
|
+
export declare function SubmitNativeChallengeResponseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubmitNativeChallengeResponseRequest;
|
|
37
|
+
export declare function SubmitNativeChallengeResponseRequestToJSON(json: any): SubmitNativeChallengeResponseRequest;
|
|
38
|
+
export declare function SubmitNativeChallengeResponseRequestToJSONTyped(value?: SubmitNativeChallengeResponseRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
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 SubmitNativeChallengeResponseRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfSubmitNativeChallengeResponseRequest(value) {
|
|
18
|
+
if (!('resultsAccessKey' in value) || value['resultsAccessKey'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('responseToken' in value) || value['responseToken'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function SubmitNativeChallengeResponseRequestFromJSON(json) {
|
|
25
|
+
return SubmitNativeChallengeResponseRequestFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function SubmitNativeChallengeResponseRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'resultsAccessKey': json['resultsAccessKey'],
|
|
33
|
+
'responseToken': json['responseToken'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function SubmitNativeChallengeResponseRequestToJSON(json) {
|
|
37
|
+
return SubmitNativeChallengeResponseRequestToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function SubmitNativeChallengeResponseRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'resultsAccessKey': value['resultsAccessKey'],
|
|
45
|
+
'responseToken': value['responseToken'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -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
|
+
import type { Session } from './Session';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SubmitNativeChallengeResponseResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface SubmitNativeChallengeResponseResponse {
|
|
19
|
+
/**
|
|
20
|
+
* The Session for which the challenge token was submitted
|
|
21
|
+
* @type {Session}
|
|
22
|
+
* @memberof SubmitNativeChallengeResponseResponse
|
|
23
|
+
*/
|
|
24
|
+
session: Session;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the SubmitNativeChallengeResponseResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfSubmitNativeChallengeResponseResponse(value: object): value is SubmitNativeChallengeResponseResponse;
|
|
30
|
+
export declare function SubmitNativeChallengeResponseResponseFromJSON(json: any): SubmitNativeChallengeResponseResponse;
|
|
31
|
+
export declare function SubmitNativeChallengeResponseResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubmitNativeChallengeResponseResponse;
|
|
32
|
+
export declare function SubmitNativeChallengeResponseResponseToJSON(json: any): SubmitNativeChallengeResponseResponse;
|
|
33
|
+
export declare function SubmitNativeChallengeResponseResponseToJSONTyped(value?: SubmitNativeChallengeResponseResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,44 @@
|
|
|
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 { SessionFromJSON, SessionToJSON, } from './Session';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the SubmitNativeChallengeResponseResponse interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfSubmitNativeChallengeResponseResponse(value) {
|
|
19
|
+
if (!('session' in value) || value['session'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function SubmitNativeChallengeResponseResponseFromJSON(json) {
|
|
24
|
+
return SubmitNativeChallengeResponseResponseFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function SubmitNativeChallengeResponseResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'session': SessionFromJSON(json['session']),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function SubmitNativeChallengeResponseResponseToJSON(json) {
|
|
35
|
+
return SubmitNativeChallengeResponseResponseToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function SubmitNativeChallengeResponseResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'session': SessionToJSON(value['session']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -1,26 +1,33 @@
|
|
|
1
1
|
export * from './AadhaarInput';
|
|
2
2
|
export * from './Address';
|
|
3
|
+
export * from './AppleWalletInput';
|
|
3
4
|
export * from './AttachmentAccessKeys';
|
|
4
5
|
export * from './BangladeshNidInput';
|
|
5
6
|
export * from './BrazilCpfCheckInput';
|
|
6
7
|
export * from './BrazilDigitalCnhInput';
|
|
7
8
|
export * from './CancelSessionResponse';
|
|
8
9
|
export * from './ContractField';
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './
|
|
10
|
+
export * from './CreateDirectProviderSessionRequest';
|
|
11
|
+
export * from './CreateDirectProviderSessionResponse';
|
|
11
12
|
export * from './CreateHostedProviderSessionRequest';
|
|
12
13
|
export * from './CreateHostedProviderSessionResponse';
|
|
14
|
+
export * from './CreateMdlExchangeRequest';
|
|
15
|
+
export * from './CreateMdlExchangeResponse';
|
|
13
16
|
export * from './CreateWidgetSessionRequest';
|
|
14
17
|
export * from './CreateWidgetSessionResponse';
|
|
15
18
|
export * from './DocumentData';
|
|
16
19
|
export * from './DocumentScanAttachments';
|
|
17
20
|
export * from './DocumentType';
|
|
21
|
+
export * from './ExternalMdlFieldData';
|
|
18
22
|
export * from './FieldAvailability';
|
|
23
|
+
export * from './FinalizeMdlExchangeRequest';
|
|
24
|
+
export * from './FinalizeMdlExchangeResponse';
|
|
19
25
|
export * from './GetAttachmentRequest';
|
|
20
26
|
export * from './GetAttachmentResponse';
|
|
21
27
|
export * from './GetSessionResponse';
|
|
22
28
|
export * from './GetSessionResultRequest';
|
|
23
29
|
export * from './GetSessionResultResponse';
|
|
30
|
+
export * from './GoogleWalletInput';
|
|
24
31
|
export * from './HttpValidationProblemDetails';
|
|
25
32
|
export * from './IdentityData';
|
|
26
33
|
export * from './IdinInput';
|
|
@@ -36,6 +43,10 @@ export * from './ListProvidersResponse';
|
|
|
36
43
|
export * from './ListSessionsResponse';
|
|
37
44
|
export * from './Match';
|
|
38
45
|
export * from './MatchData';
|
|
46
|
+
export * from './MdlCertificateData';
|
|
47
|
+
export * from './MdlExchangeMechanism';
|
|
48
|
+
export * from './MdlFieldDataType';
|
|
49
|
+
export * from './MdlIdentityData';
|
|
39
50
|
export * from './MexicoCurpInput';
|
|
40
51
|
export * from './MobileIdInput';
|
|
41
52
|
export * from './NigeriaNinInput';
|
|
@@ -66,5 +77,7 @@ export * from './SouthAfricaNidInput';
|
|
|
66
77
|
export * from './SpidInput';
|
|
67
78
|
export * from './StepRefreshInfo';
|
|
68
79
|
export * from './SubProviderMetadata';
|
|
80
|
+
export * from './SubmitNativeChallengeResponseRequest';
|
|
81
|
+
export * from './SubmitNativeChallengeResponseResponse';
|
|
69
82
|
export * from './TrinsicTestDatabaseLookupInput';
|
|
70
83
|
export * from './TrinsicTestSubProvidersInput';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -2,27 +2,34 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export * from './AadhaarInput';
|
|
4
4
|
export * from './Address';
|
|
5
|
+
export * from './AppleWalletInput';
|
|
5
6
|
export * from './AttachmentAccessKeys';
|
|
6
7
|
export * from './BangladeshNidInput';
|
|
7
8
|
export * from './BrazilCpfCheckInput';
|
|
8
9
|
export * from './BrazilDigitalCnhInput';
|
|
9
10
|
export * from './CancelSessionResponse';
|
|
10
11
|
export * from './ContractField';
|
|
11
|
-
export * from './
|
|
12
|
-
export * from './
|
|
12
|
+
export * from './CreateDirectProviderSessionRequest';
|
|
13
|
+
export * from './CreateDirectProviderSessionResponse';
|
|
13
14
|
export * from './CreateHostedProviderSessionRequest';
|
|
14
15
|
export * from './CreateHostedProviderSessionResponse';
|
|
16
|
+
export * from './CreateMdlExchangeRequest';
|
|
17
|
+
export * from './CreateMdlExchangeResponse';
|
|
15
18
|
export * from './CreateWidgetSessionRequest';
|
|
16
19
|
export * from './CreateWidgetSessionResponse';
|
|
17
20
|
export * from './DocumentData';
|
|
18
21
|
export * from './DocumentScanAttachments';
|
|
19
22
|
export * from './DocumentType';
|
|
23
|
+
export * from './ExternalMdlFieldData';
|
|
20
24
|
export * from './FieldAvailability';
|
|
25
|
+
export * from './FinalizeMdlExchangeRequest';
|
|
26
|
+
export * from './FinalizeMdlExchangeResponse';
|
|
21
27
|
export * from './GetAttachmentRequest';
|
|
22
28
|
export * from './GetAttachmentResponse';
|
|
23
29
|
export * from './GetSessionResponse';
|
|
24
30
|
export * from './GetSessionResultRequest';
|
|
25
31
|
export * from './GetSessionResultResponse';
|
|
32
|
+
export * from './GoogleWalletInput';
|
|
26
33
|
export * from './HttpValidationProblemDetails';
|
|
27
34
|
export * from './IdentityData';
|
|
28
35
|
export * from './IdinInput';
|
|
@@ -38,6 +45,10 @@ export * from './ListProvidersResponse';
|
|
|
38
45
|
export * from './ListSessionsResponse';
|
|
39
46
|
export * from './Match';
|
|
40
47
|
export * from './MatchData';
|
|
48
|
+
export * from './MdlCertificateData';
|
|
49
|
+
export * from './MdlExchangeMechanism';
|
|
50
|
+
export * from './MdlFieldDataType';
|
|
51
|
+
export * from './MdlIdentityData';
|
|
41
52
|
export * from './MexicoCurpInput';
|
|
42
53
|
export * from './MobileIdInput';
|
|
43
54
|
export * from './NigeriaNinInput';
|
|
@@ -68,5 +79,7 @@ export * from './SouthAfricaNidInput';
|
|
|
68
79
|
export * from './SpidInput';
|
|
69
80
|
export * from './StepRefreshInfo';
|
|
70
81
|
export * from './SubProviderMetadata';
|
|
82
|
+
export * from './SubmitNativeChallengeResponseRequest';
|
|
83
|
+
export * from './SubmitNativeChallengeResponseResponse';
|
|
71
84
|
export * from './TrinsicTestDatabaseLookupInput';
|
|
72
85
|
export * from './TrinsicTestSubProvidersInput';
|
|
@@ -0,0 +1,35 @@
|
|
|
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 { MdlExchangeMechanism } from './MdlExchangeMechanism';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AppleWalletInput
|
|
17
|
+
*/
|
|
18
|
+
export interface AppleWalletInput {
|
|
19
|
+
/**
|
|
20
|
+
* The exchange mechanism to use for this Apple Wallet verification.
|
|
21
|
+
*
|
|
22
|
+
* Use `DigitalCredentialsApi` for Digital Credentials API on web, or `NativeApp` for a native iOS app.
|
|
23
|
+
* @type {MdlExchangeMechanism}
|
|
24
|
+
* @memberof AppleWalletInput
|
|
25
|
+
*/
|
|
26
|
+
exchangeMechanism?: MdlExchangeMechanism | null;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the AppleWalletInput interface.
|
|
30
|
+
*/
|
|
31
|
+
export declare function instanceOfAppleWalletInput(value: object): value is AppleWalletInput;
|
|
32
|
+
export declare function AppleWalletInputFromJSON(json: any): AppleWalletInput;
|
|
33
|
+
export declare function AppleWalletInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppleWalletInput;
|
|
34
|
+
export declare function AppleWalletInputToJSON(json: any): AppleWalletInput;
|
|
35
|
+
export declare function AppleWalletInputToJSONTyped(value?: AppleWalletInput | null, ignoreDiscriminator?: boolean): 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.instanceOfAppleWalletInput = instanceOfAppleWalletInput;
|
|
17
|
+
exports.AppleWalletInputFromJSON = AppleWalletInputFromJSON;
|
|
18
|
+
exports.AppleWalletInputFromJSONTyped = AppleWalletInputFromJSONTyped;
|
|
19
|
+
exports.AppleWalletInputToJSON = AppleWalletInputToJSON;
|
|
20
|
+
exports.AppleWalletInputToJSONTyped = AppleWalletInputToJSONTyped;
|
|
21
|
+
const MdlExchangeMechanism_1 = require("./MdlExchangeMechanism");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AppleWalletInput interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAppleWalletInput(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function AppleWalletInputFromJSON(json) {
|
|
29
|
+
return AppleWalletInputFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function AppleWalletInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'exchangeMechanism': json['exchangeMechanism'] == null ? undefined : (0, MdlExchangeMechanism_1.MdlExchangeMechanismFromJSON)(json['exchangeMechanism']),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function AppleWalletInputToJSON(json) {
|
|
40
|
+
return AppleWalletInputToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function AppleWalletInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'exchangeMechanism': (0, MdlExchangeMechanism_1.MdlExchangeMechanismToJSON)(value['exchangeMechanism']),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -14,21 +14,27 @@ import type { ProviderInput } from './ProviderInput';
|
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
16
16
|
* @export
|
|
17
|
-
* @interface
|
|
17
|
+
* @interface CreateDirectProviderSessionRequest
|
|
18
18
|
*/
|
|
19
|
-
export interface
|
|
19
|
+
export interface CreateDirectProviderSessionRequest {
|
|
20
20
|
/**
|
|
21
21
|
* The ID of the provider to launch
|
|
22
22
|
* @type {string}
|
|
23
|
-
* @memberof
|
|
23
|
+
* @memberof CreateDirectProviderSessionRequest
|
|
24
24
|
*/
|
|
25
25
|
provider: string;
|
|
26
|
+
/**
|
|
27
|
+
* The ID of the Verification Profile to use for this session.
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof CreateDirectProviderSessionRequest
|
|
30
|
+
*/
|
|
31
|
+
verificationProfileId: string;
|
|
26
32
|
/**
|
|
27
33
|
* The Redirect URL to which the user should be sent after the session is complete.
|
|
28
34
|
*
|
|
29
35
|
* This field is required for providers which employ a redirect-based flow.
|
|
30
36
|
* @type {string}
|
|
31
|
-
* @memberof
|
|
37
|
+
* @memberof CreateDirectProviderSessionRequest
|
|
32
38
|
*/
|
|
33
39
|
redirectUrl?: string | null;
|
|
34
40
|
/**
|
|
@@ -43,9 +49,9 @@ export interface CreateAdvancedProviderSessionRequest {
|
|
|
43
49
|
* If `FallbackToHostedUi` is `true`, Trinsic will automatically fall back to a Trinsic-hosted UI to cover any gaps in your integration's capabilities.
|
|
44
50
|
* If `FallbackToHostedUi` is `false`, gaps in your integration's capabilities will result in an error during Session creation.
|
|
45
51
|
*
|
|
46
|
-
* Read more on how to integrate at <a href="https://docs.trinsic.id/docs/
|
|
52
|
+
* Read more on how to integrate at <a href="https://docs.trinsic.id/docs/direct-provider-sessions">the guide on Direct Provider Sessions</a>
|
|
47
53
|
* @type {Array<IntegrationCapability>}
|
|
48
|
-
* @memberof
|
|
54
|
+
* @memberof CreateDirectProviderSessionRequest
|
|
49
55
|
*/
|
|
50
56
|
capabilities: Array<IntegrationCapability>;
|
|
51
57
|
/**
|
|
@@ -64,21 +70,21 @@ export interface CreateAdvancedProviderSessionRequest {
|
|
|
64
70
|
* 1. Set the `RedirectUrl` field to a non-empty value
|
|
65
71
|
* 2. Include the `LaunchBrowser` and `CaptureRedirect` capabilities in the `Capabilities` field
|
|
66
72
|
* @type {boolean}
|
|
67
|
-
* @memberof
|
|
73
|
+
* @memberof CreateDirectProviderSessionRequest
|
|
68
74
|
*/
|
|
69
75
|
fallbackToHostedUI?: boolean | null;
|
|
70
76
|
/**
|
|
71
77
|
* Provider-specific input for those providers which require it.
|
|
72
78
|
* @type {ProviderInput}
|
|
73
|
-
* @memberof
|
|
79
|
+
* @memberof CreateDirectProviderSessionRequest
|
|
74
80
|
*/
|
|
75
81
|
providerInput?: ProviderInput | null;
|
|
76
82
|
}
|
|
77
83
|
/**
|
|
78
|
-
* Check if a given object implements the
|
|
84
|
+
* Check if a given object implements the CreateDirectProviderSessionRequest interface.
|
|
79
85
|
*/
|
|
80
|
-
export declare function
|
|
81
|
-
export declare function
|
|
82
|
-
export declare function
|
|
83
|
-
export declare function
|
|
84
|
-
export declare function
|
|
86
|
+
export declare function instanceOfCreateDirectProviderSessionRequest(value: object): value is CreateDirectProviderSessionRequest;
|
|
87
|
+
export declare function CreateDirectProviderSessionRequestFromJSON(json: any): CreateDirectProviderSessionRequest;
|
|
88
|
+
export declare function CreateDirectProviderSessionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateDirectProviderSessionRequest;
|
|
89
|
+
export declare function CreateDirectProviderSessionRequestToJSON(json: any): CreateDirectProviderSessionRequest;
|
|
90
|
+
export declare function CreateDirectProviderSessionRequestToJSONTyped(value?: CreateDirectProviderSessionRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -13,47 +13,51 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
16
|
+
exports.instanceOfCreateDirectProviderSessionRequest = instanceOfCreateDirectProviderSessionRequest;
|
|
17
|
+
exports.CreateDirectProviderSessionRequestFromJSON = CreateDirectProviderSessionRequestFromJSON;
|
|
18
|
+
exports.CreateDirectProviderSessionRequestFromJSONTyped = CreateDirectProviderSessionRequestFromJSONTyped;
|
|
19
|
+
exports.CreateDirectProviderSessionRequestToJSON = CreateDirectProviderSessionRequestToJSON;
|
|
20
|
+
exports.CreateDirectProviderSessionRequestToJSONTyped = CreateDirectProviderSessionRequestToJSONTyped;
|
|
21
21
|
const IntegrationCapability_1 = require("./IntegrationCapability");
|
|
22
22
|
const ProviderInput_1 = require("./ProviderInput");
|
|
23
23
|
/**
|
|
24
|
-
* Check if a given object implements the
|
|
24
|
+
* Check if a given object implements the CreateDirectProviderSessionRequest interface.
|
|
25
25
|
*/
|
|
26
|
-
function
|
|
26
|
+
function instanceOfCreateDirectProviderSessionRequest(value) {
|
|
27
27
|
if (!('provider' in value) || value['provider'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
+
if (!('verificationProfileId' in value) || value['verificationProfileId'] === undefined)
|
|
30
|
+
return false;
|
|
29
31
|
if (!('capabilities' in value) || value['capabilities'] === undefined)
|
|
30
32
|
return false;
|
|
31
33
|
return true;
|
|
32
34
|
}
|
|
33
|
-
function
|
|
34
|
-
return
|
|
35
|
+
function CreateDirectProviderSessionRequestFromJSON(json) {
|
|
36
|
+
return CreateDirectProviderSessionRequestFromJSONTyped(json, false);
|
|
35
37
|
}
|
|
36
|
-
function
|
|
38
|
+
function CreateDirectProviderSessionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
39
|
if (json == null) {
|
|
38
40
|
return json;
|
|
39
41
|
}
|
|
40
42
|
return {
|
|
41
43
|
'provider': json['provider'],
|
|
44
|
+
'verificationProfileId': json['verificationProfileId'],
|
|
42
45
|
'redirectUrl': json['redirectUrl'] == null ? undefined : json['redirectUrl'],
|
|
43
46
|
'capabilities': (json['capabilities'].map(IntegrationCapability_1.IntegrationCapabilityFromJSON)),
|
|
44
47
|
'fallbackToHostedUI': json['fallbackToHostedUI'] == null ? undefined : json['fallbackToHostedUI'],
|
|
45
48
|
'providerInput': json['providerInput'] == null ? undefined : (0, ProviderInput_1.ProviderInputFromJSON)(json['providerInput']),
|
|
46
49
|
};
|
|
47
50
|
}
|
|
48
|
-
function
|
|
49
|
-
return
|
|
51
|
+
function CreateDirectProviderSessionRequestToJSON(json) {
|
|
52
|
+
return CreateDirectProviderSessionRequestToJSONTyped(json, false);
|
|
50
53
|
}
|
|
51
|
-
function
|
|
54
|
+
function CreateDirectProviderSessionRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
55
|
if (value == null) {
|
|
53
56
|
return value;
|
|
54
57
|
}
|
|
55
58
|
return {
|
|
56
59
|
'provider': value['provider'],
|
|
60
|
+
'verificationProfileId': value['verificationProfileId'],
|
|
57
61
|
'redirectUrl': value['redirectUrl'],
|
|
58
62
|
'capabilities': (value['capabilities'].map(IntegrationCapability_1.IntegrationCapabilityToJSON)),
|
|
59
63
|
'fallbackToHostedUI': value['fallbackToHostedUI'],
|