@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
|
@@ -22,6 +22,12 @@ export interface CreateHostedProviderSessionRequest {
|
|
|
22
22
|
* @memberof CreateHostedProviderSessionRequest
|
|
23
23
|
*/
|
|
24
24
|
provider: string;
|
|
25
|
+
/**
|
|
26
|
+
* The ID of the Verification Profile to use for this session.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof CreateHostedProviderSessionRequest
|
|
29
|
+
*/
|
|
30
|
+
verificationProfileId: string;
|
|
25
31
|
/**
|
|
26
32
|
* The Redirect URL to which the user should be sent after the session is complete.
|
|
27
33
|
* @type {string}
|
|
@@ -34,7 +40,7 @@ export interface CreateHostedProviderSessionRequest {
|
|
|
34
40
|
*
|
|
35
41
|
* <b>Deprecated:</b> In the future, Hosted Provider Sessions will not accept input on creation,
|
|
36
42
|
* and will instead always redirect the user to a hosted interface to collect input. If you need
|
|
37
|
-
* to collect input from the user yourself, please use the Create
|
|
43
|
+
* to collect input from the user yourself, please use the Create Direct Session endpoint instead.
|
|
38
44
|
* @type {ProviderInput}
|
|
39
45
|
* @memberof CreateHostedProviderSessionRequest
|
|
40
46
|
* @deprecated
|
|
@@ -18,6 +18,8 @@ import { ProviderInputFromJSON, ProviderInputToJSON, } from './ProviderInput';
|
|
|
18
18
|
export function instanceOfCreateHostedProviderSessionRequest(value) {
|
|
19
19
|
if (!('provider' in value) || value['provider'] === undefined)
|
|
20
20
|
return false;
|
|
21
|
+
if (!('verificationProfileId' in value) || value['verificationProfileId'] === undefined)
|
|
22
|
+
return false;
|
|
21
23
|
if (!('redirectUrl' in value) || value['redirectUrl'] === undefined)
|
|
22
24
|
return false;
|
|
23
25
|
return true;
|
|
@@ -31,6 +33,7 @@ export function CreateHostedProviderSessionRequestFromJSONTyped(json, ignoreDisc
|
|
|
31
33
|
}
|
|
32
34
|
return {
|
|
33
35
|
'provider': json['provider'],
|
|
36
|
+
'verificationProfileId': json['verificationProfileId'],
|
|
34
37
|
'redirectUrl': json['redirectUrl'],
|
|
35
38
|
'providerInput': json['providerInput'] == null ? undefined : ProviderInputFromJSON(json['providerInput']),
|
|
36
39
|
};
|
|
@@ -44,6 +47,7 @@ export function CreateHostedProviderSessionRequestToJSONTyped(value, ignoreDiscr
|
|
|
44
47
|
}
|
|
45
48
|
return {
|
|
46
49
|
'provider': value['provider'],
|
|
50
|
+
'verificationProfileId': value['verificationProfileId'],
|
|
47
51
|
'redirectUrl': value['redirectUrl'],
|
|
48
52
|
'providerInput': ProviderInputToJSON(value['providerInput']),
|
|
49
53
|
};
|
|
@@ -0,0 +1,102 @@
|
|
|
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
|
+
* Request to create an mDL Exchange.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CreateMdlExchangeRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface CreateMdlExchangeRequest {
|
|
19
|
+
/**
|
|
20
|
+
* The ID of the VerificationProfile to use for this mDL exchange.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof CreateMdlExchangeRequest
|
|
23
|
+
*/
|
|
24
|
+
verificationProfileId: string;
|
|
25
|
+
/**
|
|
26
|
+
* The ID of the provider to use for this mDL exchange.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof CreateMdlExchangeRequest
|
|
29
|
+
*/
|
|
30
|
+
provider: string;
|
|
31
|
+
/**
|
|
32
|
+
* The mechanism by which the mDL exchange will occur (web, native SDK, etc.)
|
|
33
|
+
* @type {MdlExchangeMechanism}
|
|
34
|
+
* @memberof CreateMdlExchangeRequest
|
|
35
|
+
*/
|
|
36
|
+
exchangeMechanism: MdlExchangeMechanism;
|
|
37
|
+
/**
|
|
38
|
+
* The document type to request from the wallet.
|
|
39
|
+
*
|
|
40
|
+
* Typically, this is one of the following values:
|
|
41
|
+
*
|
|
42
|
+
* - `org.iso.18013.5.1.mDL` (Mobile Driver's License)
|
|
43
|
+
* - `com.google.wallet.idcard.1` (Google Wallet ID Pass)
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof CreateMdlExchangeRequest
|
|
46
|
+
*/
|
|
47
|
+
documentType: string;
|
|
48
|
+
/**
|
|
49
|
+
* The namespaces and fields to request from the mDL.
|
|
50
|
+
*
|
|
51
|
+
* This is a nested map / dictionary. The outer dictionary's keys are namespaces (e.g. "org.iso.18013.5.1").
|
|
52
|
+
* The inner dictionary's keys are field names within each namespace, with boolean values indicating
|
|
53
|
+
* whether the specified field will be retained post-verification.
|
|
54
|
+
* @type {{ [key: string]: { [key: string]: boolean; }; }}
|
|
55
|
+
* @memberof CreateMdlExchangeRequest
|
|
56
|
+
*/
|
|
57
|
+
nameSpaces: {
|
|
58
|
+
[key: string]: {
|
|
59
|
+
[key: string]: boolean;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* If using the `DigitalCredentialsApi` exchange mechanism, this is the hostname on which
|
|
64
|
+
* the Digital Credentials API will be called.
|
|
65
|
+
*
|
|
66
|
+
* For example, if the user is on the page `https://foo.example.com/verify-mdl`, the proper value to use
|
|
67
|
+
* is `foo.example.com`.
|
|
68
|
+
*
|
|
69
|
+
* Present for ease of testing only. May be removed as this API is stabilized.
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof CreateMdlExchangeRequest
|
|
72
|
+
*/
|
|
73
|
+
digitalCredentialsApiHost?: string | null;
|
|
74
|
+
/**
|
|
75
|
+
* If using the `NativeApp` exchange mechanism with the `google-wallet` provider, this is the package name
|
|
76
|
+
* of the Android App which will execute the mDL exchange.
|
|
77
|
+
*
|
|
78
|
+
* This should be set to the package name of your app.
|
|
79
|
+
*
|
|
80
|
+
* Present for ease of testing only. May be removed as this API is stabilized.
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof CreateMdlExchangeRequest
|
|
83
|
+
*/
|
|
84
|
+
androidNativeAppPackageName?: string | null;
|
|
85
|
+
/**
|
|
86
|
+
* If using the `NativeApp` exchange mechanism with the `google-wallet` provider, this is the SHA-256
|
|
87
|
+
* fingerprint of the signing certificate used to sign the Android App which will execute the mDL exchange.
|
|
88
|
+
*
|
|
89
|
+
* Present for ease of testing only. May be removed as this API is stabilized.
|
|
90
|
+
* @type {string}
|
|
91
|
+
* @memberof CreateMdlExchangeRequest
|
|
92
|
+
*/
|
|
93
|
+
androidNativeAppSigningCertificateFingerprint?: string | null;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Check if a given object implements the CreateMdlExchangeRequest interface.
|
|
97
|
+
*/
|
|
98
|
+
export declare function instanceOfCreateMdlExchangeRequest(value: object): value is CreateMdlExchangeRequest;
|
|
99
|
+
export declare function CreateMdlExchangeRequestFromJSON(json: any): CreateMdlExchangeRequest;
|
|
100
|
+
export declare function CreateMdlExchangeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateMdlExchangeRequest;
|
|
101
|
+
export declare function CreateMdlExchangeRequestToJSON(json: any): CreateMdlExchangeRequest;
|
|
102
|
+
export declare function CreateMdlExchangeRequestToJSONTyped(value?: CreateMdlExchangeRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,66 @@
|
|
|
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 { MdlExchangeMechanismFromJSON, MdlExchangeMechanismToJSON, } from './MdlExchangeMechanism';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the CreateMdlExchangeRequest interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfCreateMdlExchangeRequest(value) {
|
|
19
|
+
if (!('verificationProfileId' in value) || value['verificationProfileId'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('provider' in value) || value['provider'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('exchangeMechanism' in value) || value['exchangeMechanism'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('documentType' in value) || value['documentType'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('nameSpaces' in value) || value['nameSpaces'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
export function CreateMdlExchangeRequestFromJSON(json) {
|
|
32
|
+
return CreateMdlExchangeRequestFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function CreateMdlExchangeRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'verificationProfileId': json['verificationProfileId'],
|
|
40
|
+
'provider': json['provider'],
|
|
41
|
+
'exchangeMechanism': MdlExchangeMechanismFromJSON(json['exchangeMechanism']),
|
|
42
|
+
'documentType': json['documentType'],
|
|
43
|
+
'nameSpaces': json['nameSpaces'],
|
|
44
|
+
'digitalCredentialsApiHost': json['digitalCredentialsApiHost'] == null ? undefined : json['digitalCredentialsApiHost'],
|
|
45
|
+
'androidNativeAppPackageName': json['androidNativeAppPackageName'] == null ? undefined : json['androidNativeAppPackageName'],
|
|
46
|
+
'androidNativeAppSigningCertificateFingerprint': json['androidNativeAppSigningCertificateFingerprint'] == null ? undefined : json['androidNativeAppSigningCertificateFingerprint'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export function CreateMdlExchangeRequestToJSON(json) {
|
|
50
|
+
return CreateMdlExchangeRequestToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
export function CreateMdlExchangeRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'verificationProfileId': value['verificationProfileId'],
|
|
58
|
+
'provider': value['provider'],
|
|
59
|
+
'exchangeMechanism': MdlExchangeMechanismToJSON(value['exchangeMechanism']),
|
|
60
|
+
'documentType': value['documentType'],
|
|
61
|
+
'nameSpaces': value['nameSpaces'],
|
|
62
|
+
'digitalCredentialsApiHost': value['digitalCredentialsApiHost'],
|
|
63
|
+
'androidNativeAppPackageName': value['androidNativeAppPackageName'],
|
|
64
|
+
'androidNativeAppSigningCertificateFingerprint': value['androidNativeAppSigningCertificateFingerprint'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
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 CreateMdlExchangeResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateMdlExchangeResponse {
|
|
18
|
+
/**
|
|
19
|
+
* The ID of the mDL exchange which was created.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateMdlExchangeResponse
|
|
22
|
+
*/
|
|
23
|
+
exchangeId: string;
|
|
24
|
+
/**
|
|
25
|
+
* The request object for this mDL exchange.
|
|
26
|
+
*
|
|
27
|
+
* Pass this into a Trinsic mDL SDK (Web, iOS, Android) exactly as-is to initiate the mDL exchange.
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof CreateMdlExchangeResponse
|
|
30
|
+
*/
|
|
31
|
+
requestObjectBase64Url: string;
|
|
32
|
+
/**
|
|
33
|
+
* The encrypted exchange context for this mDL exchange.
|
|
34
|
+
*
|
|
35
|
+
* This must be passed back to the API during finalization, alongside the response token from the wallet.
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof CreateMdlExchangeResponse
|
|
38
|
+
*/
|
|
39
|
+
exchangeContext: string;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Check if a given object implements the CreateMdlExchangeResponse interface.
|
|
43
|
+
*/
|
|
44
|
+
export declare function instanceOfCreateMdlExchangeResponse(value: object): value is CreateMdlExchangeResponse;
|
|
45
|
+
export declare function CreateMdlExchangeResponseFromJSON(json: any): CreateMdlExchangeResponse;
|
|
46
|
+
export declare function CreateMdlExchangeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateMdlExchangeResponse;
|
|
47
|
+
export declare function CreateMdlExchangeResponseToJSON(json: any): CreateMdlExchangeResponse;
|
|
48
|
+
export declare function CreateMdlExchangeResponseToJSONTyped(value?: CreateMdlExchangeResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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 CreateMdlExchangeResponse interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfCreateMdlExchangeResponse(value) {
|
|
18
|
+
if (!('exchangeId' in value) || value['exchangeId'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('requestObjectBase64Url' in value) || value['requestObjectBase64Url'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('exchangeContext' in value) || value['exchangeContext'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function CreateMdlExchangeResponseFromJSON(json) {
|
|
27
|
+
return CreateMdlExchangeResponseFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function CreateMdlExchangeResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'exchangeId': json['exchangeId'],
|
|
35
|
+
'requestObjectBase64Url': json['requestObjectBase64Url'],
|
|
36
|
+
'exchangeContext': json['exchangeContext'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function CreateMdlExchangeResponseToJSON(json) {
|
|
40
|
+
return CreateMdlExchangeResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function CreateMdlExchangeResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'exchangeId': value['exchangeId'],
|
|
48
|
+
'requestObjectBase64Url': value['requestObjectBase64Url'],
|
|
49
|
+
'exchangeContext': value['exchangeContext'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -16,11 +16,17 @@ import type { RecommendationInfo } from './RecommendationInfo';
|
|
|
16
16
|
* @interface CreateWidgetSessionRequest
|
|
17
17
|
*/
|
|
18
18
|
export interface CreateWidgetSessionRequest {
|
|
19
|
+
/**
|
|
20
|
+
* The ID of the Verification Profile to use for this session.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof CreateWidgetSessionRequest
|
|
23
|
+
*/
|
|
24
|
+
verificationProfileId: string;
|
|
19
25
|
/**
|
|
20
26
|
* The URL to redirect the user to after the widget session is complete.
|
|
21
27
|
*
|
|
22
28
|
* *Note*: this should NOT be set if you intend to use Trinsic's Web UI SDK to launch the Widget
|
|
23
|
-
* as
|
|
29
|
+
* as a popup; in that case, session resolution is handled by our SDK, not via redirect.
|
|
24
30
|
* @type {string}
|
|
25
31
|
* @memberof CreateWidgetSessionRequest
|
|
26
32
|
*/
|
|
@@ -16,6 +16,8 @@ import { RecommendationInfoFromJSON, RecommendationInfoToJSON, } from './Recomme
|
|
|
16
16
|
* Check if a given object implements the CreateWidgetSessionRequest interface.
|
|
17
17
|
*/
|
|
18
18
|
export function instanceOfCreateWidgetSessionRequest(value) {
|
|
19
|
+
if (!('verificationProfileId' in value) || value['verificationProfileId'] === undefined)
|
|
20
|
+
return false;
|
|
19
21
|
return true;
|
|
20
22
|
}
|
|
21
23
|
export function CreateWidgetSessionRequestFromJSON(json) {
|
|
@@ -26,6 +28,7 @@ export function CreateWidgetSessionRequestFromJSONTyped(json, ignoreDiscriminato
|
|
|
26
28
|
return json;
|
|
27
29
|
}
|
|
28
30
|
return {
|
|
31
|
+
'verificationProfileId': json['verificationProfileId'],
|
|
29
32
|
'redirectUrl': json['redirectUrl'] == null ? undefined : json['redirectUrl'],
|
|
30
33
|
'providers': json['providers'] == null ? undefined : json['providers'],
|
|
31
34
|
'recommendationInfo': json['recommendationInfo'] == null ? undefined : RecommendationInfoFromJSON(json['recommendationInfo']),
|
|
@@ -39,6 +42,7 @@ export function CreateWidgetSessionRequestToJSONTyped(value, ignoreDiscriminator
|
|
|
39
42
|
return value;
|
|
40
43
|
}
|
|
41
44
|
return {
|
|
45
|
+
'verificationProfileId': value['verificationProfileId'],
|
|
42
46
|
'redirectUrl': value['redirectUrl'],
|
|
43
47
|
'providers': value['providers'],
|
|
44
48
|
'recommendationInfo': RecommendationInfoToJSON(value['recommendationInfo']),
|
|
@@ -0,0 +1,39 @@
|
|
|
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 { MdlFieldDataType } from './MdlFieldDataType';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ExternalMdlFieldData
|
|
17
|
+
*/
|
|
18
|
+
export interface ExternalMdlFieldData {
|
|
19
|
+
/**
|
|
20
|
+
* The type of data contained in `value`.
|
|
21
|
+
* @type {MdlFieldDataType}
|
|
22
|
+
* @memberof ExternalMdlFieldData
|
|
23
|
+
*/
|
|
24
|
+
type: MdlFieldDataType;
|
|
25
|
+
/**
|
|
26
|
+
* The string-encoded value of the field.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ExternalMdlFieldData
|
|
29
|
+
*/
|
|
30
|
+
value: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the ExternalMdlFieldData interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfExternalMdlFieldData(value: object): value is ExternalMdlFieldData;
|
|
36
|
+
export declare function ExternalMdlFieldDataFromJSON(json: any): ExternalMdlFieldData;
|
|
37
|
+
export declare function ExternalMdlFieldDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExternalMdlFieldData;
|
|
38
|
+
export declare function ExternalMdlFieldDataToJSON(json: any): ExternalMdlFieldData;
|
|
39
|
+
export declare function ExternalMdlFieldDataToJSONTyped(value?: ExternalMdlFieldData | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
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 { MdlFieldDataTypeFromJSON, MdlFieldDataTypeToJSON, } from './MdlFieldDataType';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ExternalMdlFieldData interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfExternalMdlFieldData(value) {
|
|
19
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('value' in value) || value['value'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function ExternalMdlFieldDataFromJSON(json) {
|
|
26
|
+
return ExternalMdlFieldDataFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function ExternalMdlFieldDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'type': MdlFieldDataTypeFromJSON(json['type']),
|
|
34
|
+
'value': json['value'],
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function ExternalMdlFieldDataToJSON(json) {
|
|
38
|
+
return ExternalMdlFieldDataToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function ExternalMdlFieldDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'type': MdlFieldDataTypeToJSON(value['type']),
|
|
46
|
+
'value': value['value'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 FinalizeMdlExchangeRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface FinalizeMdlExchangeRequest {
|
|
18
|
+
/**
|
|
19
|
+
* The ID of the VerificationProfile which was used to create the mDL exchange.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof FinalizeMdlExchangeRequest
|
|
22
|
+
*/
|
|
23
|
+
verificationProfileId: string;
|
|
24
|
+
/**
|
|
25
|
+
* The ID of the mDL exchange to finalize.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof FinalizeMdlExchangeRequest
|
|
28
|
+
*/
|
|
29
|
+
exchangeId: string;
|
|
30
|
+
/**
|
|
31
|
+
* The encrypted exchange context which was returned when the mDL exchange was created.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof FinalizeMdlExchangeRequest
|
|
34
|
+
*/
|
|
35
|
+
exchangeContext: string;
|
|
36
|
+
/**
|
|
37
|
+
* The response token returned by Trinsic's SDK after a successful mDL exchange.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof FinalizeMdlExchangeRequest
|
|
40
|
+
*/
|
|
41
|
+
responseToken: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the FinalizeMdlExchangeRequest interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfFinalizeMdlExchangeRequest(value: object): value is FinalizeMdlExchangeRequest;
|
|
47
|
+
export declare function FinalizeMdlExchangeRequestFromJSON(json: any): FinalizeMdlExchangeRequest;
|
|
48
|
+
export declare function FinalizeMdlExchangeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinalizeMdlExchangeRequest;
|
|
49
|
+
export declare function FinalizeMdlExchangeRequestToJSON(json: any): FinalizeMdlExchangeRequest;
|
|
50
|
+
export declare function FinalizeMdlExchangeRequestToJSONTyped(value?: FinalizeMdlExchangeRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Trinsic API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the FinalizeMdlExchangeRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfFinalizeMdlExchangeRequest(value) {
|
|
18
|
+
if (!('verificationProfileId' in value) || value['verificationProfileId'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('exchangeId' in value) || value['exchangeId'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('exchangeContext' in value) || value['exchangeContext'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('responseToken' in value) || value['responseToken'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function FinalizeMdlExchangeRequestFromJSON(json) {
|
|
29
|
+
return FinalizeMdlExchangeRequestFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function FinalizeMdlExchangeRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'verificationProfileId': json['verificationProfileId'],
|
|
37
|
+
'exchangeId': json['exchangeId'],
|
|
38
|
+
'exchangeContext': json['exchangeContext'],
|
|
39
|
+
'responseToken': json['responseToken'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function FinalizeMdlExchangeRequestToJSON(json) {
|
|
43
|
+
return FinalizeMdlExchangeRequestToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function FinalizeMdlExchangeRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'verificationProfileId': value['verificationProfileId'],
|
|
51
|
+
'exchangeId': value['exchangeId'],
|
|
52
|
+
'exchangeContext': value['exchangeContext'],
|
|
53
|
+
'responseToken': value['responseToken'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
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 { MdlIdentityData } from './MdlIdentityData';
|
|
13
|
+
import type { IdentityData } from './IdentityData';
|
|
14
|
+
import type { Session } from './Session';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface FinalizeMdlExchangeResponse
|
|
19
|
+
*/
|
|
20
|
+
export interface FinalizeMdlExchangeResponse {
|
|
21
|
+
/**
|
|
22
|
+
* The Exchange ID of the mDL exchange which was just finalized.
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof FinalizeMdlExchangeResponse
|
|
25
|
+
*/
|
|
26
|
+
exchangeId: string;
|
|
27
|
+
/**
|
|
28
|
+
* The AcceptanceSession which was created as a result of finalizing this mDL exchange.
|
|
29
|
+
* @type {Session}
|
|
30
|
+
* @memberof FinalizeMdlExchangeResponse
|
|
31
|
+
*/
|
|
32
|
+
createdSession: Session;
|
|
33
|
+
/**
|
|
34
|
+
* The identity data from the mDL exchange, in a semi-normalized format.
|
|
35
|
+
*
|
|
36
|
+
* Supports all possible fields and namespaces, but does not map them to Trinsic's common data model.
|
|
37
|
+
* @type {MdlIdentityData}
|
|
38
|
+
* @memberof FinalizeMdlExchangeResponse
|
|
39
|
+
*/
|
|
40
|
+
mdlData?: MdlIdentityData | null;
|
|
41
|
+
/**
|
|
42
|
+
* The identity data from the mDL exchange, normalized into Trinsic's common data model.
|
|
43
|
+
* @type {IdentityData}
|
|
44
|
+
* @memberof FinalizeMdlExchangeResponse
|
|
45
|
+
*/
|
|
46
|
+
normalizedIdentityData?: IdentityData | null;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the FinalizeMdlExchangeResponse interface.
|
|
50
|
+
*/
|
|
51
|
+
export declare function instanceOfFinalizeMdlExchangeResponse(value: object): value is FinalizeMdlExchangeResponse;
|
|
52
|
+
export declare function FinalizeMdlExchangeResponseFromJSON(json: any): FinalizeMdlExchangeResponse;
|
|
53
|
+
export declare function FinalizeMdlExchangeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinalizeMdlExchangeResponse;
|
|
54
|
+
export declare function FinalizeMdlExchangeResponseToJSON(json: any): FinalizeMdlExchangeResponse;
|
|
55
|
+
export declare function FinalizeMdlExchangeResponseToJSONTyped(value?: FinalizeMdlExchangeResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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 { MdlIdentityDataFromJSON, MdlIdentityDataToJSON, } from './MdlIdentityData';
|
|
15
|
+
import { IdentityDataFromJSON, IdentityDataToJSON, } from './IdentityData';
|
|
16
|
+
import { SessionFromJSON, SessionToJSON, } from './Session';
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the FinalizeMdlExchangeResponse interface.
|
|
19
|
+
*/
|
|
20
|
+
export function instanceOfFinalizeMdlExchangeResponse(value) {
|
|
21
|
+
if (!('exchangeId' in value) || value['exchangeId'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('createdSession' in value) || value['createdSession'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
export function FinalizeMdlExchangeResponseFromJSON(json) {
|
|
28
|
+
return FinalizeMdlExchangeResponseFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function FinalizeMdlExchangeResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'exchangeId': json['exchangeId'],
|
|
36
|
+
'createdSession': SessionFromJSON(json['createdSession']),
|
|
37
|
+
'mdlData': json['mdlData'] == null ? undefined : MdlIdentityDataFromJSON(json['mdlData']),
|
|
38
|
+
'normalizedIdentityData': json['normalizedIdentityData'] == null ? undefined : IdentityDataFromJSON(json['normalizedIdentityData']),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export function FinalizeMdlExchangeResponseToJSON(json) {
|
|
42
|
+
return FinalizeMdlExchangeResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function FinalizeMdlExchangeResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'exchangeId': value['exchangeId'],
|
|
50
|
+
'createdSession': SessionToJSON(value['createdSession']),
|
|
51
|
+
'mdlData': MdlIdentityDataToJSON(value['mdlData']),
|
|
52
|
+
'normalizedIdentityData': IdentityDataToJSON(value['normalizedIdentityData']),
|
|
53
|
+
};
|
|
54
|
+
}
|