@trinsic/api 2.0.0-alpha3 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +11 -3
- package/dist/apis/AttachmentsApi.d.ts +4 -4
- package/dist/apis/AttachmentsApi.js +2 -2
- package/dist/apis/NetworkApi.d.ts +28 -5
- package/dist/apis/NetworkApi.js +36 -2
- package/dist/apis/SessionsApi.d.ts +8 -8
- package/dist/apis/SessionsApi.js +4 -4
- package/dist/esm/apis/AttachmentsApi.d.ts +4 -4
- package/dist/esm/apis/AttachmentsApi.js +2 -2
- package/dist/esm/apis/NetworkApi.d.ts +28 -5
- package/dist/esm/apis/NetworkApi.js +37 -3
- package/dist/esm/apis/SessionsApi.d.ts +8 -8
- package/dist/esm/apis/SessionsApi.js +4 -4
- package/dist/esm/models/CreateHostedProviderSessionResponse.d.ts +13 -1
- package/dist/esm/models/CreateHostedProviderSessionResponse.js +7 -1
- package/dist/esm/models/CreateWidgetSessionRequest.d.ts +6 -5
- package/dist/esm/models/CreateWidgetSessionRequest.js +3 -3
- package/dist/esm/models/CreateWidgetSessionResponse.d.ts +13 -1
- package/dist/esm/models/CreateWidgetSessionResponse.js +7 -1
- package/dist/esm/models/IdentityData.d.ts +6 -0
- package/dist/esm/models/IdentityData.js +2 -0
- package/dist/esm/models/IdinInput.d.ts +33 -0
- package/dist/esm/models/IdinInput.js +38 -0
- package/dist/esm/models/IntegrationLaunchMethod.d.ts +1 -1
- package/dist/esm/models/IntegrationLaunchMethod.js +1 -1
- package/dist/esm/models/Language.d.ts +26 -0
- package/dist/esm/models/Language.js +42 -0
- package/dist/esm/models/ListProviderContractsResponse.d.ts +32 -0
- package/dist/esm/models/ListProviderContractsResponse.js +41 -0
- package/dist/esm/models/MobileIdInput.d.ts +44 -0
- package/dist/esm/models/MobileIdInput.js +43 -0
- package/dist/esm/models/ProviderContract.d.ts +146 -0
- package/dist/esm/models/ProviderContract.js +97 -0
- package/dist/esm/models/ProviderInfo.d.ts +0 -6
- package/dist/esm/models/ProviderInfo.js +0 -2
- package/dist/esm/models/ProviderInformation.d.ts +4 -4
- package/dist/esm/models/ProviderInformation.js +1 -5
- package/dist/esm/models/ProviderInput.d.ts +62 -16
- package/dist/esm/models/ProviderInput.js +23 -5
- package/dist/esm/models/RecommendRequest.d.ts +4 -27
- package/dist/esm/models/RecommendRequest.js +3 -10
- package/dist/esm/models/RecommendationInfo.d.ts +55 -0
- package/dist/esm/models/RecommendationInfo.js +44 -0
- package/dist/esm/models/ResultCollection.d.ts +8 -2
- package/dist/esm/models/ResultCollection.js +3 -1
- package/dist/esm/models/SmartIdInput.d.ts +31 -0
- package/dist/esm/models/SmartIdInput.js +38 -0
- package/dist/esm/models/SpidInput.d.ts +33 -0
- package/dist/esm/models/SpidInput.js +38 -0
- package/dist/esm/models/SubProviderMetadata.d.ts +54 -0
- package/dist/esm/models/SubProviderMetadata.js +52 -0
- package/dist/esm/models/TrinsicTestDatabaseLookupInput.d.ts +66 -0
- package/dist/esm/models/TrinsicTestDatabaseLookupInput.js +44 -0
- package/dist/esm/models/TrinsicTestSubProvidersInput.d.ts +35 -0
- package/dist/esm/models/TrinsicTestSubProvidersInput.js +38 -0
- package/dist/esm/models/index.d.ts +11 -3
- package/dist/esm/models/index.js +11 -3
- package/dist/models/CreateHostedProviderSessionResponse.d.ts +13 -1
- package/dist/models/CreateHostedProviderSessionResponse.js +7 -1
- package/dist/models/CreateWidgetSessionRequest.d.ts +6 -5
- package/dist/models/CreateWidgetSessionRequest.js +3 -3
- package/dist/models/CreateWidgetSessionResponse.d.ts +13 -1
- package/dist/models/CreateWidgetSessionResponse.js +7 -1
- package/dist/models/IdentityData.d.ts +6 -0
- package/dist/models/IdentityData.js +2 -0
- package/dist/models/IdinInput.d.ts +33 -0
- package/dist/models/IdinInput.js +44 -0
- package/dist/models/IntegrationLaunchMethod.d.ts +1 -1
- package/dist/models/IntegrationLaunchMethod.js +1 -1
- package/dist/models/Language.d.ts +26 -0
- package/dist/models/Language.js +49 -0
- package/dist/models/ListProviderContractsResponse.d.ts +32 -0
- package/dist/models/ListProviderContractsResponse.js +47 -0
- package/dist/models/MobileIdInput.d.ts +44 -0
- package/dist/models/MobileIdInput.js +49 -0
- package/dist/models/ProviderContract.d.ts +146 -0
- package/dist/models/ProviderContract.js +103 -0
- package/dist/models/ProviderInfo.d.ts +0 -6
- package/dist/models/ProviderInfo.js +0 -2
- package/dist/models/ProviderInformation.d.ts +4 -4
- package/dist/models/ProviderInformation.js +1 -5
- package/dist/models/ProviderInput.d.ts +62 -16
- package/dist/models/ProviderInput.js +23 -5
- package/dist/models/RecommendRequest.d.ts +4 -27
- package/dist/models/RecommendRequest.js +3 -10
- package/dist/models/RecommendationInfo.d.ts +55 -0
- package/dist/models/RecommendationInfo.js +50 -0
- package/dist/models/ResultCollection.d.ts +8 -2
- package/dist/models/ResultCollection.js +3 -1
- package/dist/models/SmartIdInput.d.ts +31 -0
- package/dist/models/SmartIdInput.js +44 -0
- package/dist/models/SpidInput.d.ts +33 -0
- package/dist/models/SpidInput.js +44 -0
- package/dist/models/SubProviderMetadata.d.ts +54 -0
- package/dist/models/SubProviderMetadata.js +58 -0
- package/dist/models/TrinsicTestDatabaseLookupInput.d.ts +66 -0
- package/dist/models/TrinsicTestDatabaseLookupInput.js +50 -0
- package/dist/models/TrinsicTestSubProvidersInput.d.ts +35 -0
- package/dist/models/TrinsicTestSubProvidersInput.js +44 -0
- package/dist/models/index.d.ts +11 -3
- package/dist/models/index.js +11 -3
- package/package.json +1 -1
- package/src/apis/AttachmentsApi.ts +4 -4
- package/src/apis/NetworkApi.ts +58 -4
- package/src/apis/SessionsApi.ts +8 -8
- package/src/models/BrazilDigitalCnhInput.ts +8 -8
- package/src/models/CreateAdvancedProviderSessionRequest.ts +26 -26
- package/src/models/CreateHostedProviderSessionResponse.ts +24 -8
- package/src/models/CreateWidgetSessionRequest.ts +16 -15
- package/src/models/CreateWidgetSessionResponse.ts +22 -6
- package/src/models/IdentityData.ts +8 -0
- package/src/models/IdinInput.ts +62 -0
- package/src/models/IntegrationLaunchMethod.ts +1 -1
- package/src/models/Language.ts +51 -0
- package/src/models/ListProviderContractsResponse.ts +68 -0
- package/src/models/MobileIdInput.ts +85 -0
- package/src/models/ProviderContract.ts +235 -0
- package/src/models/ProviderInfo.ts +0 -8
- package/src/models/ProviderInformation.ts +4 -7
- package/src/models/ProviderInput.ts +128 -40
- package/src/models/RecommendRequest.ts +12 -37
- package/src/models/RecommendationInfo.ts +90 -0
- package/src/models/ResultCollection.ts +10 -3
- package/src/models/Session.ts +7 -7
- package/src/models/SmartIdInput.ts +60 -0
- package/src/models/SpidInput.ts +62 -0
- package/src/models/StepRefreshInfo.ts +2 -2
- package/src/models/SubProviderMetadata.ts +93 -0
- package/src/models/TrinsicTestDatabaseLookupInput.ts +101 -0
- package/src/models/TrinsicTestSubProvidersInput.ts +64 -0
- package/src/models/index.ts +11 -3
- package/dist/esm/models/KnownAddress.d.ts +0 -74
- package/dist/esm/models/KnownAddress.js +0 -52
- package/dist/esm/models/KnownIdentityData.d.ts +0 -34
- package/dist/esm/models/KnownIdentityData.js +0 -39
- package/dist/esm/models/KnownPersonData.d.ts +0 -74
- package/dist/esm/models/KnownPersonData.js +0 -53
- package/dist/models/KnownAddress.d.ts +0 -74
- package/dist/models/KnownAddress.js +0 -58
- package/dist/models/KnownIdentityData.d.ts +0 -34
- package/dist/models/KnownIdentityData.js +0 -45
- package/dist/models/KnownPersonData.d.ts +0 -74
- package/dist/models/KnownPersonData.js +0 -59
- package/src/models/KnownAddress.ts +0 -117
- package/src/models/KnownIdentityData.ts +0 -69
- package/src/models/KnownPersonData.ts +0 -123
|
@@ -13,36 +13,12 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type { PhilippineQRInput } from './PhilippineQRInput';
|
|
17
|
-
import {
|
|
18
|
-
PhilippineQRInputFromJSON,
|
|
19
|
-
PhilippineQRInputFromJSONTyped,
|
|
20
|
-
PhilippineQRInputToJSON,
|
|
21
|
-
} from './PhilippineQRInput';
|
|
22
16
|
import type { BangladeshNationalIdInput } from './BangladeshNationalIdInput';
|
|
23
17
|
import {
|
|
24
18
|
BangladeshNationalIdInputFromJSON,
|
|
25
19
|
BangladeshNationalIdInputFromJSONTyped,
|
|
26
20
|
BangladeshNationalIdInputToJSON,
|
|
27
21
|
} from './BangladeshNationalIdInput';
|
|
28
|
-
import type { AadhaarInput } from './AadhaarInput';
|
|
29
|
-
import {
|
|
30
|
-
AadhaarInputFromJSON,
|
|
31
|
-
AadhaarInputFromJSONTyped,
|
|
32
|
-
AadhaarInputToJSON,
|
|
33
|
-
} from './AadhaarInput';
|
|
34
|
-
import type { KenyaNidInput } from './KenyaNidInput';
|
|
35
|
-
import {
|
|
36
|
-
KenyaNidInputFromJSON,
|
|
37
|
-
KenyaNidInputFromJSONTyped,
|
|
38
|
-
KenyaNidInputToJSON,
|
|
39
|
-
} from './KenyaNidInput';
|
|
40
|
-
import type { NigeriaNinInput } from './NigeriaNinInput';
|
|
41
|
-
import {
|
|
42
|
-
NigeriaNinInputFromJSON,
|
|
43
|
-
NigeriaNinInputFromJSONTyped,
|
|
44
|
-
NigeriaNinInputToJSON,
|
|
45
|
-
} from './NigeriaNinInput';
|
|
46
22
|
import type { BrazilCpfCheckInput } from './BrazilCpfCheckInput';
|
|
47
23
|
import {
|
|
48
24
|
BrazilCpfCheckInputFromJSON,
|
|
@@ -61,12 +37,18 @@ import {
|
|
|
61
37
|
BrazilDigitalCnhInputFromJSONTyped,
|
|
62
38
|
BrazilDigitalCnhInputToJSON,
|
|
63
39
|
} from './BrazilDigitalCnhInput';
|
|
64
|
-
import type {
|
|
40
|
+
import type { TrinsicTestSubProvidersInput } from './TrinsicTestSubProvidersInput';
|
|
65
41
|
import {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
} from './
|
|
42
|
+
TrinsicTestSubProvidersInputFromJSON,
|
|
43
|
+
TrinsicTestSubProvidersInputFromJSONTyped,
|
|
44
|
+
TrinsicTestSubProvidersInputToJSON,
|
|
45
|
+
} from './TrinsicTestSubProvidersInput';
|
|
46
|
+
import type { SpidInput } from './SpidInput';
|
|
47
|
+
import {
|
|
48
|
+
SpidInputFromJSON,
|
|
49
|
+
SpidInputFromJSONTyped,
|
|
50
|
+
SpidInputToJSON,
|
|
51
|
+
} from './SpidInput';
|
|
70
52
|
import type { SouthAfricaNidInput } from './SouthAfricaNidInput';
|
|
71
53
|
import {
|
|
72
54
|
SouthAfricaNidInputFromJSON,
|
|
@@ -79,6 +61,60 @@ import {
|
|
|
79
61
|
PhilippineMatchInputFromJSONTyped,
|
|
80
62
|
PhilippineMatchInputToJSON,
|
|
81
63
|
} from './PhilippineMatchInput';
|
|
64
|
+
import type { PhilippineQRInput } from './PhilippineQRInput';
|
|
65
|
+
import {
|
|
66
|
+
PhilippineQRInputFromJSON,
|
|
67
|
+
PhilippineQRInputFromJSONTyped,
|
|
68
|
+
PhilippineQRInputToJSON,
|
|
69
|
+
} from './PhilippineQRInput';
|
|
70
|
+
import type { AadhaarInput } from './AadhaarInput';
|
|
71
|
+
import {
|
|
72
|
+
AadhaarInputFromJSON,
|
|
73
|
+
AadhaarInputFromJSONTyped,
|
|
74
|
+
AadhaarInputToJSON,
|
|
75
|
+
} from './AadhaarInput';
|
|
76
|
+
import type { KenyaNidInput } from './KenyaNidInput';
|
|
77
|
+
import {
|
|
78
|
+
KenyaNidInputFromJSON,
|
|
79
|
+
KenyaNidInputFromJSONTyped,
|
|
80
|
+
KenyaNidInputToJSON,
|
|
81
|
+
} from './KenyaNidInput';
|
|
82
|
+
import type { NigeriaNinInput } from './NigeriaNinInput';
|
|
83
|
+
import {
|
|
84
|
+
NigeriaNinInputFromJSON,
|
|
85
|
+
NigeriaNinInputFromJSONTyped,
|
|
86
|
+
NigeriaNinInputToJSON,
|
|
87
|
+
} from './NigeriaNinInput';
|
|
88
|
+
import type { SmartIdInput } from './SmartIdInput';
|
|
89
|
+
import {
|
|
90
|
+
SmartIdInputFromJSON,
|
|
91
|
+
SmartIdInputFromJSONTyped,
|
|
92
|
+
SmartIdInputToJSON,
|
|
93
|
+
} from './SmartIdInput';
|
|
94
|
+
import type { MobileIdInput } from './MobileIdInput';
|
|
95
|
+
import {
|
|
96
|
+
MobileIdInputFromJSON,
|
|
97
|
+
MobileIdInputFromJSONTyped,
|
|
98
|
+
MobileIdInputToJSON,
|
|
99
|
+
} from './MobileIdInput';
|
|
100
|
+
import type { TrinsicTestDatabaseLookupInput } from './TrinsicTestDatabaseLookupInput';
|
|
101
|
+
import {
|
|
102
|
+
TrinsicTestDatabaseLookupInputFromJSON,
|
|
103
|
+
TrinsicTestDatabaseLookupInputFromJSONTyped,
|
|
104
|
+
TrinsicTestDatabaseLookupInputToJSON,
|
|
105
|
+
} from './TrinsicTestDatabaseLookupInput';
|
|
106
|
+
import type { IndonesiaNikInput } from './IndonesiaNikInput';
|
|
107
|
+
import {
|
|
108
|
+
IndonesiaNikInputFromJSON,
|
|
109
|
+
IndonesiaNikInputFromJSONTyped,
|
|
110
|
+
IndonesiaNikInputToJSON,
|
|
111
|
+
} from './IndonesiaNikInput';
|
|
112
|
+
import type { IdinInput } from './IdinInput';
|
|
113
|
+
import {
|
|
114
|
+
IdinInputFromJSON,
|
|
115
|
+
IdinInputFromJSONTyped,
|
|
116
|
+
IdinInputToJSON,
|
|
117
|
+
} from './IdinInput';
|
|
82
118
|
|
|
83
119
|
/**
|
|
84
120
|
*
|
|
@@ -87,71 +123,111 @@ import {
|
|
|
87
123
|
*/
|
|
88
124
|
export interface ProviderInput {
|
|
89
125
|
/**
|
|
90
|
-
* Input for the `f-indonesia-nik`
|
|
126
|
+
* Input for the `f-indonesia-nik` provider
|
|
91
127
|
* @type {IndonesiaNikInput}
|
|
92
128
|
* @memberof ProviderInput
|
|
93
129
|
*/
|
|
94
130
|
indonesiaNik?: IndonesiaNikInput | null;
|
|
95
131
|
/**
|
|
96
|
-
* Input for the `f-mexico-curp`
|
|
132
|
+
* Input for the `f-mexico-curp` provider
|
|
97
133
|
* @type {MexicoCurpInput}
|
|
98
134
|
* @memberof ProviderInput
|
|
99
135
|
*/
|
|
100
136
|
mexicoCurp?: MexicoCurpInput | null;
|
|
101
137
|
/**
|
|
102
|
-
* Input for the `f-south-africa-nid`
|
|
138
|
+
* Input for the `f-south-africa-nid` provider
|
|
103
139
|
* @type {SouthAfricaNidInput}
|
|
104
140
|
* @memberof ProviderInput
|
|
105
141
|
*/
|
|
106
142
|
southAfricaNid?: SouthAfricaNidInput | null;
|
|
107
143
|
/**
|
|
108
|
-
* Input for the `f-kenya-nid`
|
|
144
|
+
* Input for the `f-kenya-nid` provider
|
|
109
145
|
* @type {KenyaNidInput}
|
|
110
146
|
* @memberof ProviderInput
|
|
111
147
|
*/
|
|
112
148
|
kenyaNid?: KenyaNidInput | null;
|
|
113
149
|
/**
|
|
114
|
-
* Input for the `f-nigeria-nin`
|
|
150
|
+
* Input for the `f-nigeria-nin` provider
|
|
115
151
|
* @type {NigeriaNinInput}
|
|
116
152
|
* @memberof ProviderInput
|
|
117
153
|
*/
|
|
118
154
|
nigeriaNin?: NigeriaNinInput | null;
|
|
119
155
|
/**
|
|
120
|
-
* Input for the `f-india-aadhaar-match`
|
|
156
|
+
* Input for the `f-india-aadhaar-match` provider
|
|
121
157
|
* @type {AadhaarInput}
|
|
122
158
|
* @memberof ProviderInput
|
|
123
159
|
*/
|
|
124
160
|
aadhaar?: AadhaarInput | null;
|
|
125
161
|
/**
|
|
126
|
-
* Input for the `bangladesh-nid`
|
|
162
|
+
* Input for the `bangladesh-nid` provider
|
|
127
163
|
* @type {BangladeshNationalIdInput}
|
|
128
164
|
* @memberof ProviderInput
|
|
129
165
|
*/
|
|
130
166
|
bangladeshNationalId?: BangladeshNationalIdInput | null;
|
|
131
167
|
/**
|
|
132
|
-
* Input for the `g-brazil-cpf`
|
|
168
|
+
* Input for the `g-brazil-cpf` provider
|
|
133
169
|
* @type {BrazilCpfCheckInput}
|
|
134
170
|
* @memberof ProviderInput
|
|
135
171
|
*/
|
|
136
172
|
brazilCpfCheck?: BrazilCpfCheckInput | null;
|
|
137
173
|
/**
|
|
138
|
-
* Input for the `g-brazil-digital-cnh`
|
|
174
|
+
* Input for the `g-brazil-digital-cnh` provider
|
|
139
175
|
* @type {BrazilDigitalCnhInput}
|
|
140
176
|
* @memberof ProviderInput
|
|
141
177
|
*/
|
|
142
178
|
brazilDigitalCnh?: BrazilDigitalCnhInput | null;
|
|
143
179
|
/**
|
|
144
|
-
* Input for the `b-philsys-biometric`
|
|
180
|
+
* Input for the `b-philsys-biometric` provider
|
|
145
181
|
* @type {PhilippineMatchInput}
|
|
146
182
|
* @memberof ProviderInput
|
|
147
183
|
*/
|
|
148
184
|
philippineMatch?: PhilippineMatchInput | null;
|
|
149
185
|
/**
|
|
150
|
-
* Input for the `b-philippine-qr-digital-national-id` and `b-philippine-qr-ephill-id`
|
|
186
|
+
* Input for the `b-philippine-qr-digital-national-id` and `b-philippine-qr-ephill-id` providers
|
|
151
187
|
* @type {PhilippineQRInput}
|
|
152
188
|
* @memberof ProviderInput
|
|
153
189
|
*/
|
|
154
190
|
philippineQR?: PhilippineQRInput | null;
|
|
191
|
+
/**
|
|
192
|
+
* Input for the `smart-id` provider
|
|
193
|
+
* @type {SmartIdInput}
|
|
194
|
+
* @memberof ProviderInput
|
|
195
|
+
*/
|
|
196
|
+
smartId?: SmartIdInput | null;
|
|
197
|
+
/**
|
|
198
|
+
* Input for the `mobile-id` provider
|
|
199
|
+
* @type {MobileIdInput}
|
|
200
|
+
* @memberof ProviderInput
|
|
201
|
+
*/
|
|
202
|
+
mobileId?: MobileIdInput | null;
|
|
203
|
+
/**
|
|
204
|
+
* Input for the `idin` provider
|
|
205
|
+
* @type {IdinInput}
|
|
206
|
+
* @memberof ProviderInput
|
|
207
|
+
*/
|
|
208
|
+
idin?: IdinInput | null;
|
|
209
|
+
/**
|
|
210
|
+
* Input for the `spid` provider
|
|
211
|
+
* @type {SpidInput}
|
|
212
|
+
* @memberof ProviderInput
|
|
213
|
+
*/
|
|
214
|
+
spid?: SpidInput | null;
|
|
215
|
+
/**
|
|
216
|
+
* *TEST MODE ONLY.*
|
|
217
|
+
*
|
|
218
|
+
* Input for the `trinsic-test-database-lookup` provider
|
|
219
|
+
* @type {TrinsicTestDatabaseLookupInput}
|
|
220
|
+
* @memberof ProviderInput
|
|
221
|
+
*/
|
|
222
|
+
trinsicTestDatabaseLookup?: TrinsicTestDatabaseLookupInput | null;
|
|
223
|
+
/**
|
|
224
|
+
* *TEST MODE ONLY.*
|
|
225
|
+
*
|
|
226
|
+
* Input for the `trinsic-test-sub-providers` provider
|
|
227
|
+
* @type {TrinsicTestSubProvidersInput}
|
|
228
|
+
* @memberof ProviderInput
|
|
229
|
+
*/
|
|
230
|
+
trinsicTestSubProviders?: TrinsicTestSubProvidersInput | null;
|
|
155
231
|
}
|
|
156
232
|
|
|
157
233
|
/**
|
|
@@ -182,6 +258,12 @@ export function ProviderInputFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
182
258
|
'brazilDigitalCnh': json['brazilDigitalCnh'] == null ? undefined : BrazilDigitalCnhInputFromJSON(json['brazilDigitalCnh']),
|
|
183
259
|
'philippineMatch': json['philippineMatch'] == null ? undefined : PhilippineMatchInputFromJSON(json['philippineMatch']),
|
|
184
260
|
'philippineQR': json['philippineQR'] == null ? undefined : PhilippineQRInputFromJSON(json['philippineQR']),
|
|
261
|
+
'smartId': json['smartId'] == null ? undefined : SmartIdInputFromJSON(json['smartId']),
|
|
262
|
+
'mobileId': json['mobileId'] == null ? undefined : MobileIdInputFromJSON(json['mobileId']),
|
|
263
|
+
'idin': json['idin'] == null ? undefined : IdinInputFromJSON(json['idin']),
|
|
264
|
+
'spid': json['spid'] == null ? undefined : SpidInputFromJSON(json['spid']),
|
|
265
|
+
'trinsicTestDatabaseLookup': json['trinsicTestDatabaseLookup'] == null ? undefined : TrinsicTestDatabaseLookupInputFromJSON(json['trinsicTestDatabaseLookup']),
|
|
266
|
+
'trinsicTestSubProviders': json['trinsicTestSubProviders'] == null ? undefined : TrinsicTestSubProvidersInputFromJSON(json['trinsicTestSubProviders']),
|
|
185
267
|
};
|
|
186
268
|
}
|
|
187
269
|
|
|
@@ -202,6 +284,12 @@ export function ProviderInputToJSON(value?: ProviderInput | null): any {
|
|
|
202
284
|
'brazilDigitalCnh': BrazilDigitalCnhInputToJSON(value['brazilDigitalCnh']),
|
|
203
285
|
'philippineMatch': PhilippineMatchInputToJSON(value['philippineMatch']),
|
|
204
286
|
'philippineQR': PhilippineQRInputToJSON(value['philippineQR']),
|
|
287
|
+
'smartId': SmartIdInputToJSON(value['smartId']),
|
|
288
|
+
'mobileId': MobileIdInputToJSON(value['mobileId']),
|
|
289
|
+
'idin': IdinInputToJSON(value['idin']),
|
|
290
|
+
'spid': SpidInputToJSON(value['spid']),
|
|
291
|
+
'trinsicTestDatabaseLookup': TrinsicTestDatabaseLookupInputToJSON(value['trinsicTestDatabaseLookup']),
|
|
292
|
+
'trinsicTestSubProviders': TrinsicTestSubProvidersInputToJSON(value['trinsicTestSubProviders']),
|
|
205
293
|
};
|
|
206
294
|
}
|
|
207
295
|
|
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { RecommendationInfo } from './RecommendationInfo';
|
|
17
|
+
import {
|
|
18
|
+
RecommendationInfoFromJSON,
|
|
19
|
+
RecommendationInfoFromJSONTyped,
|
|
20
|
+
RecommendationInfoToJSON,
|
|
21
|
+
} from './RecommendationInfo';
|
|
22
|
+
|
|
16
23
|
/**
|
|
17
24
|
*
|
|
18
25
|
* @export
|
|
@@ -20,35 +27,11 @@ import { mapValues } from '../runtime';
|
|
|
20
27
|
*/
|
|
21
28
|
export interface RecommendRequest {
|
|
22
29
|
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {
|
|
25
|
-
* @memberof RecommendRequest
|
|
26
|
-
*/
|
|
27
|
-
phoneNumber?: string | null;
|
|
28
|
-
/**
|
|
29
|
-
* A list of countries, in alpha-2 ISO 3166 format, you wish to specify for the recommendation, this can include the user's country of residence, nationality, etc.
|
|
30
|
-
* @type {Array<string>}
|
|
31
|
-
* @memberof RecommendRequest
|
|
32
|
-
*/
|
|
33
|
-
countries?: Array<string> | null;
|
|
34
|
-
/**
|
|
35
|
-
* If one of the countries has subdivisions, for example the US states, you can specify a list of these to further refine the recommendation (e.g., CA, UT, NY)
|
|
36
|
-
* @type {Array<string>}
|
|
37
|
-
* @memberof RecommendRequest
|
|
38
|
-
*/
|
|
39
|
-
subdivisions?: Array<string> | null;
|
|
40
|
-
/**
|
|
41
|
-
* Provide the IP addresses of the user you wish to generate a recommendation for. Will be used to look up the user's geographic location.
|
|
42
|
-
* @type {Array<string>}
|
|
43
|
-
* @memberof RecommendRequest
|
|
44
|
-
*/
|
|
45
|
-
ipAddresses?: Array<string> | null;
|
|
46
|
-
/**
|
|
47
|
-
* If true, the recommendation will include providers that are disabled for the app
|
|
48
|
-
* @type {boolean}
|
|
30
|
+
* Information about the user you wish to generate a recommendation for.
|
|
31
|
+
* @type {RecommendationInfo}
|
|
49
32
|
* @memberof RecommendRequest
|
|
50
33
|
*/
|
|
51
|
-
|
|
34
|
+
recommendationInfo?: RecommendationInfo | null;
|
|
52
35
|
}
|
|
53
36
|
|
|
54
37
|
/**
|
|
@@ -68,11 +51,7 @@ export function RecommendRequestFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
68
51
|
}
|
|
69
52
|
return {
|
|
70
53
|
|
|
71
|
-
'
|
|
72
|
-
'countries': json['countries'] == null ? undefined : json['countries'],
|
|
73
|
-
'subdivisions': json['subdivisions'] == null ? undefined : json['subdivisions'],
|
|
74
|
-
'ipAddresses': json['ipAddresses'] == null ? undefined : json['ipAddresses'],
|
|
75
|
-
'includeDisabledProviders': json['includeDisabledProviders'] == null ? undefined : json['includeDisabledProviders'],
|
|
54
|
+
'recommendationInfo': json['recommendationInfo'] == null ? undefined : RecommendationInfoFromJSON(json['recommendationInfo']),
|
|
76
55
|
};
|
|
77
56
|
}
|
|
78
57
|
|
|
@@ -82,11 +61,7 @@ export function RecommendRequestToJSON(value?: RecommendRequest | null): any {
|
|
|
82
61
|
}
|
|
83
62
|
return {
|
|
84
63
|
|
|
85
|
-
'
|
|
86
|
-
'countries': value['countries'],
|
|
87
|
-
'subdivisions': value['subdivisions'],
|
|
88
|
-
'ipAddresses': value['ipAddresses'],
|
|
89
|
-
'includeDisabledProviders': value['includeDisabledProviders'],
|
|
64
|
+
'recommendationInfo': RecommendationInfoToJSON(value['recommendationInfo']),
|
|
90
65
|
};
|
|
91
66
|
}
|
|
92
67
|
|
|
@@ -0,0 +1,90 @@
|
|
|
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
|
+
* Information relating to a user; used to generated Identity Provider recommendations.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface RecommendationInfo
|
|
20
|
+
*/
|
|
21
|
+
export interface RecommendationInfo {
|
|
22
|
+
/**
|
|
23
|
+
* The phone number of the user you wish to generate a recommendation for.
|
|
24
|
+
*
|
|
25
|
+
* Will be used to look up the user's identity in the network, as well as to determine the user's geographic location.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof RecommendationInfo
|
|
28
|
+
*/
|
|
29
|
+
phoneNumber?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
* A list of countries, in alpha-2 ISO 3166 format, which the user is related to.
|
|
32
|
+
*
|
|
33
|
+
* This can include the user's country of residence, nationality, etc.
|
|
34
|
+
* @type {Array<string>}
|
|
35
|
+
* @memberof RecommendationInfo
|
|
36
|
+
*/
|
|
37
|
+
countries?: Array<string> | null;
|
|
38
|
+
/**
|
|
39
|
+
* If one of the countries has subdivisions (for example: US states), specify those related to the user here (e.g., CA, UT, NY)
|
|
40
|
+
* @type {Array<string>}
|
|
41
|
+
* @memberof RecommendationInfo
|
|
42
|
+
*/
|
|
43
|
+
subdivisions?: Array<string> | null;
|
|
44
|
+
/**
|
|
45
|
+
* Any IP addresses related to the user.
|
|
46
|
+
*
|
|
47
|
+
* Will be used to determine the user's geographic location.
|
|
48
|
+
* @type {Array<string>}
|
|
49
|
+
* @memberof RecommendationInfo
|
|
50
|
+
*/
|
|
51
|
+
ipAddresses?: Array<string> | null;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the RecommendationInfo interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfRecommendationInfo(value: object): value is RecommendationInfo {
|
|
58
|
+
return true;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function RecommendationInfoFromJSON(json: any): RecommendationInfo {
|
|
62
|
+
return RecommendationInfoFromJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function RecommendationInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecommendationInfo {
|
|
66
|
+
if (json == null) {
|
|
67
|
+
return json;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'phoneNumber': json['phoneNumber'] == null ? undefined : json['phoneNumber'],
|
|
72
|
+
'countries': json['countries'] == null ? undefined : json['countries'],
|
|
73
|
+
'subdivisions': json['subdivisions'] == null ? undefined : json['subdivisions'],
|
|
74
|
+
'ipAddresses': json['ipAddresses'] == null ? undefined : json['ipAddresses'],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function RecommendationInfoToJSON(value?: RecommendationInfo | null): any {
|
|
79
|
+
if (value == null) {
|
|
80
|
+
return value;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'phoneNumber': value['phoneNumber'],
|
|
85
|
+
'countries': value['countries'],
|
|
86
|
+
'subdivisions': value['subdivisions'],
|
|
87
|
+
'ipAddresses': value['ipAddresses'],
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -33,11 +33,17 @@ export interface ResultCollection {
|
|
|
33
33
|
*/
|
|
34
34
|
method: ResultCollectionMethod;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* The `resultsAccessKey` for the Acceptance Session.
|
|
37
|
+
*
|
|
38
|
+
* This is an encrypted payload which contains the decryption key necessary to access the Session's Data Vault.
|
|
39
|
+
*
|
|
40
|
+
* Save this securely in your systems; it must be passed back with any API call which requires access to the Session's Data Vault.
|
|
41
|
+
*
|
|
42
|
+
* Trinsic cannot access a Session's Data Vault without this key.
|
|
37
43
|
* @type {string}
|
|
38
44
|
* @memberof ResultCollection
|
|
39
45
|
*/
|
|
40
|
-
resultsAccessKey
|
|
46
|
+
resultsAccessKey: string;
|
|
41
47
|
}
|
|
42
48
|
|
|
43
49
|
|
|
@@ -47,6 +53,7 @@ export interface ResultCollection {
|
|
|
47
53
|
*/
|
|
48
54
|
export function instanceOfResultCollection(value: object): value is ResultCollection {
|
|
49
55
|
if (!('method' in value) || value['method'] === undefined) return false;
|
|
56
|
+
if (!('resultsAccessKey' in value) || value['resultsAccessKey'] === undefined) return false;
|
|
50
57
|
return true;
|
|
51
58
|
}
|
|
52
59
|
|
|
@@ -61,7 +68,7 @@ export function ResultCollectionFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
61
68
|
return {
|
|
62
69
|
|
|
63
70
|
'method': ResultCollectionMethodFromJSON(json['method']),
|
|
64
|
-
'resultsAccessKey': json['resultsAccessKey']
|
|
71
|
+
'resultsAccessKey': json['resultsAccessKey'],
|
|
65
72
|
};
|
|
66
73
|
}
|
|
67
74
|
|
package/src/models/Session.ts
CHANGED
|
@@ -33,25 +33,25 @@ export interface Session {
|
|
|
33
33
|
*/
|
|
34
34
|
id: string;
|
|
35
35
|
/**
|
|
36
|
-
* Whether the Session is in a terminal / final state.
|
|
37
|
-
*
|
|
36
|
+
* Whether the Session is in a terminal / final state.
|
|
37
|
+
*
|
|
38
38
|
* If this is `true`, inspect the value of `Success` to determine whether the Session was successful.
|
|
39
39
|
* @type {boolean}
|
|
40
40
|
* @memberof Session
|
|
41
41
|
*/
|
|
42
42
|
done: boolean;
|
|
43
43
|
/**
|
|
44
|
-
* Whether the Session has completed successfully.
|
|
45
|
-
*
|
|
46
|
-
* If this is `false`, the Session is either not yet done, or has failed. Inspect `Done` and `ErrorCode` for more information.
|
|
44
|
+
* Whether the Session has completed successfully.
|
|
45
|
+
*
|
|
46
|
+
* If this is `false`, the Session is either not yet done, or has failed. Inspect `Done` and `ErrorCode` for more information.
|
|
47
47
|
* If this is `true`, the Session has completed successfully.
|
|
48
48
|
* @type {boolean}
|
|
49
49
|
* @memberof Session
|
|
50
50
|
*/
|
|
51
51
|
success: boolean;
|
|
52
52
|
/**
|
|
53
|
-
* The reason for the Session's failure.
|
|
54
|
-
*
|
|
53
|
+
* The reason for the Session's failure.
|
|
54
|
+
*
|
|
55
55
|
* Only present if `Success` is `false`.
|
|
56
56
|
* @type {SessionErrorCode}
|
|
57
57
|
* @memberof Session
|
|
@@ -0,0 +1,60 @@
|
|
|
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 SmartIdInput
|
|
20
|
+
*/
|
|
21
|
+
export interface SmartIdInput {
|
|
22
|
+
/**
|
|
23
|
+
* The user's Smart ID Document Number
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof SmartIdInput
|
|
26
|
+
*/
|
|
27
|
+
smartIdDocumentNumber?: string | null;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the SmartIdInput interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfSmartIdInput(value: object): value is SmartIdInput {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function SmartIdInputFromJSON(json: any): SmartIdInput {
|
|
38
|
+
return SmartIdInputFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function SmartIdInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): SmartIdInput {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'smartIdDocumentNumber': json['smartIdDocumentNumber'] == null ? undefined : json['smartIdDocumentNumber'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function SmartIdInputToJSON(value?: SmartIdInput | null): any {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'smartIdDocumentNumber': value['smartIdDocumentNumber'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
@@ -0,0 +1,62 @@
|
|
|
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 SpidInput
|
|
20
|
+
*/
|
|
21
|
+
export interface SpidInput {
|
|
22
|
+
/**
|
|
23
|
+
* The ID of the specific IDP to invoke within SPID.
|
|
24
|
+
*
|
|
25
|
+
* If not specified, the user will be prompted to select an IDP.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SpidInput
|
|
28
|
+
*/
|
|
29
|
+
subProviderId?: string | null;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the SpidInput interface.
|
|
34
|
+
*/
|
|
35
|
+
export function instanceOfSpidInput(value: object): value is SpidInput {
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function SpidInputFromJSON(json: any): SpidInput {
|
|
40
|
+
return SpidInputFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function SpidInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): SpidInput {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
|
|
49
|
+
'subProviderId': json['subProviderId'] == null ? undefined : json['subProviderId'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function SpidInputToJSON(value?: SpidInput | null): any {
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
|
|
59
|
+
'subProviderId': value['subProviderId'],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
|
|
@@ -20,8 +20,8 @@ import { mapValues } from '../runtime';
|
|
|
20
20
|
*/
|
|
21
21
|
export interface StepRefreshInfo {
|
|
22
22
|
/**
|
|
23
|
-
* The UTC date/time at which the step `content` will expire and should no longer be used.
|
|
24
|
-
*
|
|
23
|
+
* The UTC date/time at which the step `content` will expire and should no longer be used.
|
|
24
|
+
*
|
|
25
25
|
* Use the `Refresh Step Content` API to obtain a new value for `content`.
|
|
26
26
|
* @type {Date}
|
|
27
27
|
* @memberof StepRefreshInfo
|