@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,159 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Trinsic API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { MdlExchangeMechanism } from './MdlExchangeMechanism';
|
|
17
|
+
import {
|
|
18
|
+
MdlExchangeMechanismFromJSON,
|
|
19
|
+
MdlExchangeMechanismFromJSONTyped,
|
|
20
|
+
MdlExchangeMechanismToJSON,
|
|
21
|
+
MdlExchangeMechanismToJSONTyped,
|
|
22
|
+
} from './MdlExchangeMechanism';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Request to create an mDL Exchange.
|
|
26
|
+
* @export
|
|
27
|
+
* @interface CreateMdlExchangeRequest
|
|
28
|
+
*/
|
|
29
|
+
export interface CreateMdlExchangeRequest {
|
|
30
|
+
/**
|
|
31
|
+
* The ID of the VerificationProfile to use for this mDL exchange.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CreateMdlExchangeRequest
|
|
34
|
+
*/
|
|
35
|
+
verificationProfileId: string;
|
|
36
|
+
/**
|
|
37
|
+
* The ID of the provider to use for this mDL exchange.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CreateMdlExchangeRequest
|
|
40
|
+
*/
|
|
41
|
+
provider: string;
|
|
42
|
+
/**
|
|
43
|
+
* The mechanism by which the mDL exchange will occur (web, native SDK, etc.)
|
|
44
|
+
* @type {MdlExchangeMechanism}
|
|
45
|
+
* @memberof CreateMdlExchangeRequest
|
|
46
|
+
*/
|
|
47
|
+
exchangeMechanism: MdlExchangeMechanism;
|
|
48
|
+
/**
|
|
49
|
+
* The document type to request from the wallet.
|
|
50
|
+
*
|
|
51
|
+
* Typically, this is one of the following values:
|
|
52
|
+
*
|
|
53
|
+
* - `org.iso.18013.5.1.mDL` (Mobile Driver's License)
|
|
54
|
+
* - `com.google.wallet.idcard.1` (Google Wallet ID Pass)
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof CreateMdlExchangeRequest
|
|
57
|
+
*/
|
|
58
|
+
documentType: string;
|
|
59
|
+
/**
|
|
60
|
+
* The namespaces and fields to request from the mDL.
|
|
61
|
+
*
|
|
62
|
+
* This is a nested map / dictionary. The outer dictionary's keys are namespaces (e.g. "org.iso.18013.5.1").
|
|
63
|
+
* The inner dictionary's keys are field names within each namespace, with boolean values indicating
|
|
64
|
+
* whether the specified field will be retained post-verification.
|
|
65
|
+
* @type {{ [key: string]: { [key: string]: boolean; }; }}
|
|
66
|
+
* @memberof CreateMdlExchangeRequest
|
|
67
|
+
*/
|
|
68
|
+
nameSpaces: { [key: string]: { [key: string]: boolean; }; };
|
|
69
|
+
/**
|
|
70
|
+
* If using the `DigitalCredentialsApi` exchange mechanism, this is the hostname on which
|
|
71
|
+
* the Digital Credentials API will be called.
|
|
72
|
+
*
|
|
73
|
+
* For example, if the user is on the page `https://foo.example.com/verify-mdl`, the proper value to use
|
|
74
|
+
* is `foo.example.com`.
|
|
75
|
+
*
|
|
76
|
+
* Present for ease of testing only. May be removed as this API is stabilized.
|
|
77
|
+
* @type {string}
|
|
78
|
+
* @memberof CreateMdlExchangeRequest
|
|
79
|
+
*/
|
|
80
|
+
digitalCredentialsApiHost?: string | null;
|
|
81
|
+
/**
|
|
82
|
+
* If using the `NativeApp` exchange mechanism with the `google-wallet` provider, this is the package name
|
|
83
|
+
* of the Android App which will execute the mDL exchange.
|
|
84
|
+
*
|
|
85
|
+
* This should be set to the package name of your app.
|
|
86
|
+
*
|
|
87
|
+
* Present for ease of testing only. May be removed as this API is stabilized.
|
|
88
|
+
* @type {string}
|
|
89
|
+
* @memberof CreateMdlExchangeRequest
|
|
90
|
+
*/
|
|
91
|
+
androidNativeAppPackageName?: string | null;
|
|
92
|
+
/**
|
|
93
|
+
* If using the `NativeApp` exchange mechanism with the `google-wallet` provider, this is the SHA-256
|
|
94
|
+
* fingerprint of the signing certificate used to sign the Android App which will execute the mDL exchange.
|
|
95
|
+
*
|
|
96
|
+
* Present for ease of testing only. May be removed as this API is stabilized.
|
|
97
|
+
* @type {string}
|
|
98
|
+
* @memberof CreateMdlExchangeRequest
|
|
99
|
+
*/
|
|
100
|
+
androidNativeAppSigningCertificateFingerprint?: string | null;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Check if a given object implements the CreateMdlExchangeRequest interface.
|
|
107
|
+
*/
|
|
108
|
+
export function instanceOfCreateMdlExchangeRequest(value: object): value is CreateMdlExchangeRequest {
|
|
109
|
+
if (!('verificationProfileId' in value) || value['verificationProfileId'] === undefined) return false;
|
|
110
|
+
if (!('provider' in value) || value['provider'] === undefined) return false;
|
|
111
|
+
if (!('exchangeMechanism' in value) || value['exchangeMechanism'] === undefined) return false;
|
|
112
|
+
if (!('documentType' in value) || value['documentType'] === undefined) return false;
|
|
113
|
+
if (!('nameSpaces' in value) || value['nameSpaces'] === undefined) return false;
|
|
114
|
+
return true;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export function CreateMdlExchangeRequestFromJSON(json: any): CreateMdlExchangeRequest {
|
|
118
|
+
return CreateMdlExchangeRequestFromJSONTyped(json, false);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export function CreateMdlExchangeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateMdlExchangeRequest {
|
|
122
|
+
if (json == null) {
|
|
123
|
+
return json;
|
|
124
|
+
}
|
|
125
|
+
return {
|
|
126
|
+
|
|
127
|
+
'verificationProfileId': json['verificationProfileId'],
|
|
128
|
+
'provider': json['provider'],
|
|
129
|
+
'exchangeMechanism': MdlExchangeMechanismFromJSON(json['exchangeMechanism']),
|
|
130
|
+
'documentType': json['documentType'],
|
|
131
|
+
'nameSpaces': json['nameSpaces'],
|
|
132
|
+
'digitalCredentialsApiHost': json['digitalCredentialsApiHost'] == null ? undefined : json['digitalCredentialsApiHost'],
|
|
133
|
+
'androidNativeAppPackageName': json['androidNativeAppPackageName'] == null ? undefined : json['androidNativeAppPackageName'],
|
|
134
|
+
'androidNativeAppSigningCertificateFingerprint': json['androidNativeAppSigningCertificateFingerprint'] == null ? undefined : json['androidNativeAppSigningCertificateFingerprint'],
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export function CreateMdlExchangeRequestToJSON(json: any): CreateMdlExchangeRequest {
|
|
139
|
+
return CreateMdlExchangeRequestToJSONTyped(json, false);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export function CreateMdlExchangeRequestToJSONTyped(value?: CreateMdlExchangeRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
143
|
+
if (value == null) {
|
|
144
|
+
return value;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
return {
|
|
148
|
+
|
|
149
|
+
'verificationProfileId': value['verificationProfileId'],
|
|
150
|
+
'provider': value['provider'],
|
|
151
|
+
'exchangeMechanism': MdlExchangeMechanismToJSON(value['exchangeMechanism']),
|
|
152
|
+
'documentType': value['documentType'],
|
|
153
|
+
'nameSpaces': value['nameSpaces'],
|
|
154
|
+
'digitalCredentialsApiHost': value['digitalCredentialsApiHost'],
|
|
155
|
+
'androidNativeAppPackageName': value['androidNativeAppPackageName'],
|
|
156
|
+
'androidNativeAppSigningCertificateFingerprint': value['androidNativeAppSigningCertificateFingerprint'],
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Trinsic API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface CreateMdlExchangeResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateMdlExchangeResponse {
|
|
22
|
+
/**
|
|
23
|
+
* The ID of the mDL exchange which was created.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CreateMdlExchangeResponse
|
|
26
|
+
*/
|
|
27
|
+
exchangeId: string;
|
|
28
|
+
/**
|
|
29
|
+
* The request object for this mDL exchange.
|
|
30
|
+
*
|
|
31
|
+
* Pass this into a Trinsic mDL SDK (Web, iOS, Android) exactly as-is to initiate the mDL exchange.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CreateMdlExchangeResponse
|
|
34
|
+
*/
|
|
35
|
+
requestObjectBase64Url: string;
|
|
36
|
+
/**
|
|
37
|
+
* The encrypted exchange context for this mDL exchange.
|
|
38
|
+
*
|
|
39
|
+
* This must be passed back to the API during finalization, alongside the response token from the wallet.
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof CreateMdlExchangeResponse
|
|
42
|
+
*/
|
|
43
|
+
exchangeContext: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the CreateMdlExchangeResponse interface.
|
|
48
|
+
*/
|
|
49
|
+
export function instanceOfCreateMdlExchangeResponse(value: object): value is CreateMdlExchangeResponse {
|
|
50
|
+
if (!('exchangeId' in value) || value['exchangeId'] === undefined) return false;
|
|
51
|
+
if (!('requestObjectBase64Url' in value) || value['requestObjectBase64Url'] === undefined) return false;
|
|
52
|
+
if (!('exchangeContext' in value) || value['exchangeContext'] === undefined) return false;
|
|
53
|
+
return true;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function CreateMdlExchangeResponseFromJSON(json: any): CreateMdlExchangeResponse {
|
|
57
|
+
return CreateMdlExchangeResponseFromJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function CreateMdlExchangeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateMdlExchangeResponse {
|
|
61
|
+
if (json == null) {
|
|
62
|
+
return json;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
|
|
66
|
+
'exchangeId': json['exchangeId'],
|
|
67
|
+
'requestObjectBase64Url': json['requestObjectBase64Url'],
|
|
68
|
+
'exchangeContext': json['exchangeContext'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function CreateMdlExchangeResponseToJSON(json: any): CreateMdlExchangeResponse {
|
|
73
|
+
return CreateMdlExchangeResponseToJSONTyped(json, false);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function CreateMdlExchangeResponseToJSONTyped(value?: CreateMdlExchangeResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
77
|
+
if (value == null) {
|
|
78
|
+
return value;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'exchangeId': value['exchangeId'],
|
|
84
|
+
'requestObjectBase64Url': value['requestObjectBase64Url'],
|
|
85
|
+
'exchangeContext': value['exchangeContext'],
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
@@ -27,11 +27,17 @@ import {
|
|
|
27
27
|
* @interface CreateWidgetSessionRequest
|
|
28
28
|
*/
|
|
29
29
|
export interface CreateWidgetSessionRequest {
|
|
30
|
+
/**
|
|
31
|
+
* The ID of the Verification Profile to use for this session.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CreateWidgetSessionRequest
|
|
34
|
+
*/
|
|
35
|
+
verificationProfileId: string;
|
|
30
36
|
/**
|
|
31
37
|
* The URL to redirect the user to after the widget session is complete.
|
|
32
38
|
*
|
|
33
39
|
* *Note*: this should NOT be set if you intend to use Trinsic's Web UI SDK to launch the Widget
|
|
34
|
-
* as
|
|
40
|
+
* as a popup; in that case, session resolution is handled by our SDK, not via redirect.
|
|
35
41
|
* @type {string}
|
|
36
42
|
* @memberof CreateWidgetSessionRequest
|
|
37
43
|
*/
|
|
@@ -57,6 +63,7 @@ export interface CreateWidgetSessionRequest {
|
|
|
57
63
|
* Check if a given object implements the CreateWidgetSessionRequest interface.
|
|
58
64
|
*/
|
|
59
65
|
export function instanceOfCreateWidgetSessionRequest(value: object): value is CreateWidgetSessionRequest {
|
|
66
|
+
if (!('verificationProfileId' in value) || value['verificationProfileId'] === undefined) return false;
|
|
60
67
|
return true;
|
|
61
68
|
}
|
|
62
69
|
|
|
@@ -70,6 +77,7 @@ export function CreateWidgetSessionRequestFromJSONTyped(json: any, ignoreDiscrim
|
|
|
70
77
|
}
|
|
71
78
|
return {
|
|
72
79
|
|
|
80
|
+
'verificationProfileId': json['verificationProfileId'],
|
|
73
81
|
'redirectUrl': json['redirectUrl'] == null ? undefined : json['redirectUrl'],
|
|
74
82
|
'providers': json['providers'] == null ? undefined : json['providers'],
|
|
75
83
|
'recommendationInfo': json['recommendationInfo'] == null ? undefined : RecommendationInfoFromJSON(json['recommendationInfo']),
|
|
@@ -87,6 +95,7 @@ export function CreateWidgetSessionRequestToJSONTyped(value?: CreateWidgetSessio
|
|
|
87
95
|
|
|
88
96
|
return {
|
|
89
97
|
|
|
98
|
+
'verificationProfileId': value['verificationProfileId'],
|
|
90
99
|
'redirectUrl': value['redirectUrl'],
|
|
91
100
|
'providers': value['providers'],
|
|
92
101
|
'recommendationInfo': RecommendationInfoToJSON(value['recommendationInfo']),
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Trinsic API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { MdlFieldDataType } from './MdlFieldDataType';
|
|
17
|
+
import {
|
|
18
|
+
MdlFieldDataTypeFromJSON,
|
|
19
|
+
MdlFieldDataTypeFromJSONTyped,
|
|
20
|
+
MdlFieldDataTypeToJSON,
|
|
21
|
+
MdlFieldDataTypeToJSONTyped,
|
|
22
|
+
} from './MdlFieldDataType';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ExternalMdlFieldData
|
|
28
|
+
*/
|
|
29
|
+
export interface ExternalMdlFieldData {
|
|
30
|
+
/**
|
|
31
|
+
* The type of data contained in `value`.
|
|
32
|
+
* @type {MdlFieldDataType}
|
|
33
|
+
* @memberof ExternalMdlFieldData
|
|
34
|
+
*/
|
|
35
|
+
type: MdlFieldDataType;
|
|
36
|
+
/**
|
|
37
|
+
* The string-encoded value of the field.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ExternalMdlFieldData
|
|
40
|
+
*/
|
|
41
|
+
value: string;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the ExternalMdlFieldData interface.
|
|
48
|
+
*/
|
|
49
|
+
export function instanceOfExternalMdlFieldData(value: object): value is ExternalMdlFieldData {
|
|
50
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
51
|
+
if (!('value' in value) || value['value'] === undefined) return false;
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function ExternalMdlFieldDataFromJSON(json: any): ExternalMdlFieldData {
|
|
56
|
+
return ExternalMdlFieldDataFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ExternalMdlFieldDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExternalMdlFieldData {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'type': MdlFieldDataTypeFromJSON(json['type']),
|
|
66
|
+
'value': json['value'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ExternalMdlFieldDataToJSON(json: any): ExternalMdlFieldData {
|
|
71
|
+
return ExternalMdlFieldDataToJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function ExternalMdlFieldDataToJSONTyped(value?: ExternalMdlFieldData | null, ignoreDiscriminator: boolean = false): any {
|
|
75
|
+
if (value == null) {
|
|
76
|
+
return value;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
return {
|
|
80
|
+
|
|
81
|
+
'type': MdlFieldDataTypeToJSON(value['type']),
|
|
82
|
+
'value': value['value'],
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Trinsic API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface FinalizeMdlExchangeRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface FinalizeMdlExchangeRequest {
|
|
22
|
+
/**
|
|
23
|
+
* The ID of the VerificationProfile which was used to create the mDL exchange.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof FinalizeMdlExchangeRequest
|
|
26
|
+
*/
|
|
27
|
+
verificationProfileId: string;
|
|
28
|
+
/**
|
|
29
|
+
* The ID of the mDL exchange to finalize.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof FinalizeMdlExchangeRequest
|
|
32
|
+
*/
|
|
33
|
+
exchangeId: string;
|
|
34
|
+
/**
|
|
35
|
+
* The encrypted exchange context which was returned when the mDL exchange was created.
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof FinalizeMdlExchangeRequest
|
|
38
|
+
*/
|
|
39
|
+
exchangeContext: string;
|
|
40
|
+
/**
|
|
41
|
+
* The response token returned by Trinsic's SDK after a successful mDL exchange.
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof FinalizeMdlExchangeRequest
|
|
44
|
+
*/
|
|
45
|
+
responseToken: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the FinalizeMdlExchangeRequest interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfFinalizeMdlExchangeRequest(value: object): value is FinalizeMdlExchangeRequest {
|
|
52
|
+
if (!('verificationProfileId' in value) || value['verificationProfileId'] === undefined) return false;
|
|
53
|
+
if (!('exchangeId' in value) || value['exchangeId'] === undefined) return false;
|
|
54
|
+
if (!('exchangeContext' in value) || value['exchangeContext'] === undefined) return false;
|
|
55
|
+
if (!('responseToken' in value) || value['responseToken'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function FinalizeMdlExchangeRequestFromJSON(json: any): FinalizeMdlExchangeRequest {
|
|
60
|
+
return FinalizeMdlExchangeRequestFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function FinalizeMdlExchangeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinalizeMdlExchangeRequest {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'verificationProfileId': json['verificationProfileId'],
|
|
70
|
+
'exchangeId': json['exchangeId'],
|
|
71
|
+
'exchangeContext': json['exchangeContext'],
|
|
72
|
+
'responseToken': json['responseToken'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function FinalizeMdlExchangeRequestToJSON(json: any): FinalizeMdlExchangeRequest {
|
|
77
|
+
return FinalizeMdlExchangeRequestToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function FinalizeMdlExchangeRequestToJSONTyped(value?: FinalizeMdlExchangeRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'verificationProfileId': value['verificationProfileId'],
|
|
88
|
+
'exchangeId': value['exchangeId'],
|
|
89
|
+
'exchangeContext': value['exchangeContext'],
|
|
90
|
+
'responseToken': value['responseToken'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Trinsic API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { MdlIdentityData } from './MdlIdentityData';
|
|
17
|
+
import {
|
|
18
|
+
MdlIdentityDataFromJSON,
|
|
19
|
+
MdlIdentityDataFromJSONTyped,
|
|
20
|
+
MdlIdentityDataToJSON,
|
|
21
|
+
MdlIdentityDataToJSONTyped,
|
|
22
|
+
} from './MdlIdentityData';
|
|
23
|
+
import type { IdentityData } from './IdentityData';
|
|
24
|
+
import {
|
|
25
|
+
IdentityDataFromJSON,
|
|
26
|
+
IdentityDataFromJSONTyped,
|
|
27
|
+
IdentityDataToJSON,
|
|
28
|
+
IdentityDataToJSONTyped,
|
|
29
|
+
} from './IdentityData';
|
|
30
|
+
import type { Session } from './Session';
|
|
31
|
+
import {
|
|
32
|
+
SessionFromJSON,
|
|
33
|
+
SessionFromJSONTyped,
|
|
34
|
+
SessionToJSON,
|
|
35
|
+
SessionToJSONTyped,
|
|
36
|
+
} from './Session';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
* @interface FinalizeMdlExchangeResponse
|
|
42
|
+
*/
|
|
43
|
+
export interface FinalizeMdlExchangeResponse {
|
|
44
|
+
/**
|
|
45
|
+
* The Exchange ID of the mDL exchange which was just finalized.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof FinalizeMdlExchangeResponse
|
|
48
|
+
*/
|
|
49
|
+
exchangeId: string;
|
|
50
|
+
/**
|
|
51
|
+
* The AcceptanceSession which was created as a result of finalizing this mDL exchange.
|
|
52
|
+
* @type {Session}
|
|
53
|
+
* @memberof FinalizeMdlExchangeResponse
|
|
54
|
+
*/
|
|
55
|
+
createdSession: Session;
|
|
56
|
+
/**
|
|
57
|
+
* The identity data from the mDL exchange, in a semi-normalized format.
|
|
58
|
+
*
|
|
59
|
+
* Supports all possible fields and namespaces, but does not map them to Trinsic's common data model.
|
|
60
|
+
* @type {MdlIdentityData}
|
|
61
|
+
* @memberof FinalizeMdlExchangeResponse
|
|
62
|
+
*/
|
|
63
|
+
mdlData?: MdlIdentityData | null;
|
|
64
|
+
/**
|
|
65
|
+
* The identity data from the mDL exchange, normalized into Trinsic's common data model.
|
|
66
|
+
* @type {IdentityData}
|
|
67
|
+
* @memberof FinalizeMdlExchangeResponse
|
|
68
|
+
*/
|
|
69
|
+
normalizedIdentityData?: IdentityData | null;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Check if a given object implements the FinalizeMdlExchangeResponse interface.
|
|
74
|
+
*/
|
|
75
|
+
export function instanceOfFinalizeMdlExchangeResponse(value: object): value is FinalizeMdlExchangeResponse {
|
|
76
|
+
if (!('exchangeId' in value) || value['exchangeId'] === undefined) return false;
|
|
77
|
+
if (!('createdSession' in value) || value['createdSession'] === undefined) return false;
|
|
78
|
+
return true;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function FinalizeMdlExchangeResponseFromJSON(json: any): FinalizeMdlExchangeResponse {
|
|
82
|
+
return FinalizeMdlExchangeResponseFromJSONTyped(json, false);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function FinalizeMdlExchangeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinalizeMdlExchangeResponse {
|
|
86
|
+
if (json == null) {
|
|
87
|
+
return json;
|
|
88
|
+
}
|
|
89
|
+
return {
|
|
90
|
+
|
|
91
|
+
'exchangeId': json['exchangeId'],
|
|
92
|
+
'createdSession': SessionFromJSON(json['createdSession']),
|
|
93
|
+
'mdlData': json['mdlData'] == null ? undefined : MdlIdentityDataFromJSON(json['mdlData']),
|
|
94
|
+
'normalizedIdentityData': json['normalizedIdentityData'] == null ? undefined : IdentityDataFromJSON(json['normalizedIdentityData']),
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export function FinalizeMdlExchangeResponseToJSON(json: any): FinalizeMdlExchangeResponse {
|
|
99
|
+
return FinalizeMdlExchangeResponseToJSONTyped(json, false);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function FinalizeMdlExchangeResponseToJSONTyped(value?: FinalizeMdlExchangeResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
103
|
+
if (value == null) {
|
|
104
|
+
return value;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
return {
|
|
108
|
+
|
|
109
|
+
'exchangeId': value['exchangeId'],
|
|
110
|
+
'createdSession': SessionToJSON(value['createdSession']),
|
|
111
|
+
'mdlData': MdlIdentityDataToJSON(value['mdlData']),
|
|
112
|
+
'normalizedIdentityData': IdentityDataToJSON(value['normalizedIdentityData']),
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
|
|
@@ -25,6 +25,12 @@ export interface GetAttachmentRequest {
|
|
|
25
25
|
* @memberof GetAttachmentRequest
|
|
26
26
|
*/
|
|
27
27
|
attachmentAccessKey: string;
|
|
28
|
+
/**
|
|
29
|
+
* The ID of the Acceptance Session for which the Attachment is being requested.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof GetAttachmentRequest
|
|
32
|
+
*/
|
|
33
|
+
sessionId: string;
|
|
28
34
|
}
|
|
29
35
|
|
|
30
36
|
/**
|
|
@@ -32,6 +38,7 @@ export interface GetAttachmentRequest {
|
|
|
32
38
|
*/
|
|
33
39
|
export function instanceOfGetAttachmentRequest(value: object): value is GetAttachmentRequest {
|
|
34
40
|
if (!('attachmentAccessKey' in value) || value['attachmentAccessKey'] === undefined) return false;
|
|
41
|
+
if (!('sessionId' in value) || value['sessionId'] === undefined) return false;
|
|
35
42
|
return true;
|
|
36
43
|
}
|
|
37
44
|
|
|
@@ -46,6 +53,7 @@ export function GetAttachmentRequestFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
46
53
|
return {
|
|
47
54
|
|
|
48
55
|
'attachmentAccessKey': json['attachmentAccessKey'],
|
|
56
|
+
'sessionId': json['sessionId'],
|
|
49
57
|
};
|
|
50
58
|
}
|
|
51
59
|
|
|
@@ -61,6 +69,7 @@ export function GetAttachmentRequestToJSONTyped(value?: GetAttachmentRequest | n
|
|
|
61
69
|
return {
|
|
62
70
|
|
|
63
71
|
'attachmentAccessKey': value['attachmentAccessKey'],
|
|
72
|
+
'sessionId': value['sessionId'],
|
|
64
73
|
};
|
|
65
74
|
}
|
|
66
75
|
|