@trinsic/api 2.1.1-alpha1 → 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 +19 -3
- 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/IdentityData.d.ts +7 -0
- package/dist/esm/models/IdentityData.js +3 -0
- package/dist/esm/models/{IndonesiaDukcapilBiometricMatchInput.d.ts → IndonesiaDukcapilMatchInput.d.ts} +17 -17
- package/dist/esm/models/{IndonesiaDukcapilBiometricMatchInput.js → IndonesiaDukcapilMatchInput.js} +8 -8
- 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/Match.d.ts +38 -0
- package/dist/esm/models/Match.js +43 -0
- package/dist/esm/models/MatchData.d.ts +87 -0
- package/dist/esm/models/MatchData.js +60 -0
- 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 +18 -4
- package/dist/esm/models/ProviderInput.js +9 -3
- 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 +18 -3
- package/dist/esm/models/index.js +18 -3
- 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/IdentityData.d.ts +7 -0
- package/dist/models/IdentityData.js +3 -0
- package/dist/models/{IndonesiaDukcapilBiometricMatchInput.d.ts → IndonesiaDukcapilMatchInput.d.ts} +17 -17
- package/dist/models/{IndonesiaDukcapilBiometricMatchInput.js → IndonesiaDukcapilMatchInput.js} +13 -13
- 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/Match.d.ts +38 -0
- package/dist/models/Match.js +50 -0
- package/dist/models/MatchData.d.ts +87 -0
- package/dist/models/MatchData.js +67 -0
- 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 +18 -4
- package/dist/models/ProviderInput.js +9 -3
- 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 +18 -3
- package/dist/models/index.js +18 -3
- 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/IdentityData.ts +15 -0
- package/src/models/{IndonesiaDukcapilBiometricMatchInput.ts → IndonesiaDukcapilMatchInput.ts} +19 -19
- package/src/models/IntegrationCapability.ts +2 -1
- package/src/models/IntegrationLaunchMethod.ts +2 -1
- package/src/models/IntegrationStep.ts +1 -1
- package/src/models/Match.ts +73 -0
- package/src/models/MatchData.ts +145 -0
- 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 +42 -12
- 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 +18 -3
- package/dist/esm/models/CreateAdvancedProviderSessionResponse.d.ts +0 -46
- package/dist/models/CreateAdvancedProviderSessionResponse.d.ts +0 -46
|
@@ -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,73 @@
|
|
|
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.instanceOfCreateMdlExchangeRequest = instanceOfCreateMdlExchangeRequest;
|
|
17
|
+
exports.CreateMdlExchangeRequestFromJSON = CreateMdlExchangeRequestFromJSON;
|
|
18
|
+
exports.CreateMdlExchangeRequestFromJSONTyped = CreateMdlExchangeRequestFromJSONTyped;
|
|
19
|
+
exports.CreateMdlExchangeRequestToJSON = CreateMdlExchangeRequestToJSON;
|
|
20
|
+
exports.CreateMdlExchangeRequestToJSONTyped = CreateMdlExchangeRequestToJSONTyped;
|
|
21
|
+
const MdlExchangeMechanism_1 = require("./MdlExchangeMechanism");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the CreateMdlExchangeRequest interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfCreateMdlExchangeRequest(value) {
|
|
26
|
+
if (!('verificationProfileId' in value) || value['verificationProfileId'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('provider' in value) || value['provider'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('exchangeMechanism' in value) || value['exchangeMechanism'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('documentType' in value) || value['documentType'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('nameSpaces' in value) || value['nameSpaces'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function CreateMdlExchangeRequestFromJSON(json) {
|
|
39
|
+
return CreateMdlExchangeRequestFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function CreateMdlExchangeRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'verificationProfileId': json['verificationProfileId'],
|
|
47
|
+
'provider': json['provider'],
|
|
48
|
+
'exchangeMechanism': (0, MdlExchangeMechanism_1.MdlExchangeMechanismFromJSON)(json['exchangeMechanism']),
|
|
49
|
+
'documentType': json['documentType'],
|
|
50
|
+
'nameSpaces': json['nameSpaces'],
|
|
51
|
+
'digitalCredentialsApiHost': json['digitalCredentialsApiHost'] == null ? undefined : json['digitalCredentialsApiHost'],
|
|
52
|
+
'androidNativeAppPackageName': json['androidNativeAppPackageName'] == null ? undefined : json['androidNativeAppPackageName'],
|
|
53
|
+
'androidNativeAppSigningCertificateFingerprint': json['androidNativeAppSigningCertificateFingerprint'] == null ? undefined : json['androidNativeAppSigningCertificateFingerprint'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function CreateMdlExchangeRequestToJSON(json) {
|
|
57
|
+
return CreateMdlExchangeRequestToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
function CreateMdlExchangeRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'verificationProfileId': value['verificationProfileId'],
|
|
65
|
+
'provider': value['provider'],
|
|
66
|
+
'exchangeMechanism': (0, MdlExchangeMechanism_1.MdlExchangeMechanismToJSON)(value['exchangeMechanism']),
|
|
67
|
+
'documentType': value['documentType'],
|
|
68
|
+
'nameSpaces': value['nameSpaces'],
|
|
69
|
+
'digitalCredentialsApiHost': value['digitalCredentialsApiHost'],
|
|
70
|
+
'androidNativeAppPackageName': value['androidNativeAppPackageName'],
|
|
71
|
+
'androidNativeAppSigningCertificateFingerprint': value['androidNativeAppSigningCertificateFingerprint'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
@@ -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,58 @@
|
|
|
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.instanceOfCreateMdlExchangeResponse = instanceOfCreateMdlExchangeResponse;
|
|
17
|
+
exports.CreateMdlExchangeResponseFromJSON = CreateMdlExchangeResponseFromJSON;
|
|
18
|
+
exports.CreateMdlExchangeResponseFromJSONTyped = CreateMdlExchangeResponseFromJSONTyped;
|
|
19
|
+
exports.CreateMdlExchangeResponseToJSON = CreateMdlExchangeResponseToJSON;
|
|
20
|
+
exports.CreateMdlExchangeResponseToJSONTyped = CreateMdlExchangeResponseToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CreateMdlExchangeResponse interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfCreateMdlExchangeResponse(value) {
|
|
25
|
+
if (!('exchangeId' in value) || value['exchangeId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('requestObjectBase64Url' in value) || value['requestObjectBase64Url'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('exchangeContext' in value) || value['exchangeContext'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function CreateMdlExchangeResponseFromJSON(json) {
|
|
34
|
+
return CreateMdlExchangeResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function CreateMdlExchangeResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'exchangeId': json['exchangeId'],
|
|
42
|
+
'requestObjectBase64Url': json['requestObjectBase64Url'],
|
|
43
|
+
'exchangeContext': json['exchangeContext'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function CreateMdlExchangeResponseToJSON(json) {
|
|
47
|
+
return CreateMdlExchangeResponseToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function CreateMdlExchangeResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'exchangeId': value['exchangeId'],
|
|
55
|
+
'requestObjectBase64Url': value['requestObjectBase64Url'],
|
|
56
|
+
'exchangeContext': value['exchangeContext'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -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
|
*/
|
|
@@ -23,6 +23,8 @@ const RecommendationInfo_1 = require("./RecommendationInfo");
|
|
|
23
23
|
* Check if a given object implements the CreateWidgetSessionRequest interface.
|
|
24
24
|
*/
|
|
25
25
|
function instanceOfCreateWidgetSessionRequest(value) {
|
|
26
|
+
if (!('verificationProfileId' in value) || value['verificationProfileId'] === undefined)
|
|
27
|
+
return false;
|
|
26
28
|
return true;
|
|
27
29
|
}
|
|
28
30
|
function CreateWidgetSessionRequestFromJSON(json) {
|
|
@@ -33,6 +35,7 @@ function CreateWidgetSessionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
35
|
return json;
|
|
34
36
|
}
|
|
35
37
|
return {
|
|
38
|
+
'verificationProfileId': json['verificationProfileId'],
|
|
36
39
|
'redirectUrl': json['redirectUrl'] == null ? undefined : json['redirectUrl'],
|
|
37
40
|
'providers': json['providers'] == null ? undefined : json['providers'],
|
|
38
41
|
'recommendationInfo': json['recommendationInfo'] == null ? undefined : (0, RecommendationInfo_1.RecommendationInfoFromJSON)(json['recommendationInfo']),
|
|
@@ -46,6 +49,7 @@ function CreateWidgetSessionRequestToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
46
49
|
return value;
|
|
47
50
|
}
|
|
48
51
|
return {
|
|
52
|
+
'verificationProfileId': value['verificationProfileId'],
|
|
49
53
|
'redirectUrl': value['redirectUrl'],
|
|
50
54
|
'providers': value['providers'],
|
|
51
55
|
'recommendationInfo': (0, RecommendationInfo_1.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,55 @@
|
|
|
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.instanceOfExternalMdlFieldData = instanceOfExternalMdlFieldData;
|
|
17
|
+
exports.ExternalMdlFieldDataFromJSON = ExternalMdlFieldDataFromJSON;
|
|
18
|
+
exports.ExternalMdlFieldDataFromJSONTyped = ExternalMdlFieldDataFromJSONTyped;
|
|
19
|
+
exports.ExternalMdlFieldDataToJSON = ExternalMdlFieldDataToJSON;
|
|
20
|
+
exports.ExternalMdlFieldDataToJSONTyped = ExternalMdlFieldDataToJSONTyped;
|
|
21
|
+
const MdlFieldDataType_1 = require("./MdlFieldDataType");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ExternalMdlFieldData interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfExternalMdlFieldData(value) {
|
|
26
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('value' in value) || value['value'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function ExternalMdlFieldDataFromJSON(json) {
|
|
33
|
+
return ExternalMdlFieldDataFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function ExternalMdlFieldDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'type': (0, MdlFieldDataType_1.MdlFieldDataTypeFromJSON)(json['type']),
|
|
41
|
+
'value': json['value'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function ExternalMdlFieldDataToJSON(json) {
|
|
45
|
+
return ExternalMdlFieldDataToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function ExternalMdlFieldDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'type': (0, MdlFieldDataType_1.MdlFieldDataTypeToJSON)(value['type']),
|
|
53
|
+
'value': value['value'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -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,62 @@
|
|
|
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.instanceOfFinalizeMdlExchangeRequest = instanceOfFinalizeMdlExchangeRequest;
|
|
17
|
+
exports.FinalizeMdlExchangeRequestFromJSON = FinalizeMdlExchangeRequestFromJSON;
|
|
18
|
+
exports.FinalizeMdlExchangeRequestFromJSONTyped = FinalizeMdlExchangeRequestFromJSONTyped;
|
|
19
|
+
exports.FinalizeMdlExchangeRequestToJSON = FinalizeMdlExchangeRequestToJSON;
|
|
20
|
+
exports.FinalizeMdlExchangeRequestToJSONTyped = FinalizeMdlExchangeRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the FinalizeMdlExchangeRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfFinalizeMdlExchangeRequest(value) {
|
|
25
|
+
if (!('verificationProfileId' in value) || value['verificationProfileId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('exchangeId' in value) || value['exchangeId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('exchangeContext' in value) || value['exchangeContext'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('responseToken' in value) || value['responseToken'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function FinalizeMdlExchangeRequestFromJSON(json) {
|
|
36
|
+
return FinalizeMdlExchangeRequestFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function FinalizeMdlExchangeRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'verificationProfileId': json['verificationProfileId'],
|
|
44
|
+
'exchangeId': json['exchangeId'],
|
|
45
|
+
'exchangeContext': json['exchangeContext'],
|
|
46
|
+
'responseToken': json['responseToken'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function FinalizeMdlExchangeRequestToJSON(json) {
|
|
50
|
+
return FinalizeMdlExchangeRequestToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function FinalizeMdlExchangeRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'verificationProfileId': value['verificationProfileId'],
|
|
58
|
+
'exchangeId': value['exchangeId'],
|
|
59
|
+
'exchangeContext': value['exchangeContext'],
|
|
60
|
+
'responseToken': value['responseToken'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -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,61 @@
|
|
|
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.instanceOfFinalizeMdlExchangeResponse = instanceOfFinalizeMdlExchangeResponse;
|
|
17
|
+
exports.FinalizeMdlExchangeResponseFromJSON = FinalizeMdlExchangeResponseFromJSON;
|
|
18
|
+
exports.FinalizeMdlExchangeResponseFromJSONTyped = FinalizeMdlExchangeResponseFromJSONTyped;
|
|
19
|
+
exports.FinalizeMdlExchangeResponseToJSON = FinalizeMdlExchangeResponseToJSON;
|
|
20
|
+
exports.FinalizeMdlExchangeResponseToJSONTyped = FinalizeMdlExchangeResponseToJSONTyped;
|
|
21
|
+
const MdlIdentityData_1 = require("./MdlIdentityData");
|
|
22
|
+
const IdentityData_1 = require("./IdentityData");
|
|
23
|
+
const Session_1 = require("./Session");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the FinalizeMdlExchangeResponse interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfFinalizeMdlExchangeResponse(value) {
|
|
28
|
+
if (!('exchangeId' in value) || value['exchangeId'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('createdSession' in value) || value['createdSession'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
function FinalizeMdlExchangeResponseFromJSON(json) {
|
|
35
|
+
return FinalizeMdlExchangeResponseFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function FinalizeMdlExchangeResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'exchangeId': json['exchangeId'],
|
|
43
|
+
'createdSession': (0, Session_1.SessionFromJSON)(json['createdSession']),
|
|
44
|
+
'mdlData': json['mdlData'] == null ? undefined : (0, MdlIdentityData_1.MdlIdentityDataFromJSON)(json['mdlData']),
|
|
45
|
+
'normalizedIdentityData': json['normalizedIdentityData'] == null ? undefined : (0, IdentityData_1.IdentityDataFromJSON)(json['normalizedIdentityData']),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function FinalizeMdlExchangeResponseToJSON(json) {
|
|
49
|
+
return FinalizeMdlExchangeResponseToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function FinalizeMdlExchangeResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'exchangeId': value['exchangeId'],
|
|
57
|
+
'createdSession': (0, Session_1.SessionToJSON)(value['createdSession']),
|
|
58
|
+
'mdlData': (0, MdlIdentityData_1.MdlIdentityDataToJSON)(value['mdlData']),
|
|
59
|
+
'normalizedIdentityData': (0, IdentityData_1.IdentityDataToJSON)(value['normalizedIdentityData']),
|
|
60
|
+
};
|
|
61
|
+
}
|
|
@@ -21,6 +21,12 @@ export interface GetAttachmentRequest {
|
|
|
21
21
|
* @memberof GetAttachmentRequest
|
|
22
22
|
*/
|
|
23
23
|
attachmentAccessKey: string;
|
|
24
|
+
/**
|
|
25
|
+
* The ID of the Acceptance Session for which the Attachment is being requested.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GetAttachmentRequest
|
|
28
|
+
*/
|
|
29
|
+
sessionId: string;
|
|
24
30
|
}
|
|
25
31
|
/**
|
|
26
32
|
* Check if a given object implements the GetAttachmentRequest interface.
|