@trinsic/api 2.0.3 → 2.1.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 +2 -0
- package/dist/apis/AttachmentsApi.d.ts +4 -4
- package/dist/apis/AttachmentsApi.js +2 -2
- package/dist/apis/NetworkApi.d.ts +12 -8
- package/dist/apis/NetworkApi.js +8 -5
- package/dist/apis/SessionsApi.d.ts +4 -4
- package/dist/apis/SessionsApi.js +2 -2
- package/dist/esm/apis/AttachmentsApi.d.ts +4 -4
- package/dist/esm/apis/AttachmentsApi.js +2 -2
- package/dist/esm/apis/NetworkApi.d.ts +12 -8
- package/dist/esm/apis/NetworkApi.js +8 -5
- package/dist/esm/apis/SessionsApi.d.ts +4 -4
- package/dist/esm/apis/SessionsApi.js +2 -2
- package/dist/esm/models/BangladeshNidInput.d.ts +3 -3
- package/dist/esm/models/BangladeshNidInput.js +10 -4
- package/dist/esm/models/ContractField.d.ts +39 -0
- package/dist/esm/models/ContractField.js +48 -0
- package/dist/esm/models/CreateAdvancedProviderSessionRequest.d.ts +6 -6
- package/dist/esm/models/CreateAdvancedProviderSessionRequest.js +2 -2
- package/dist/esm/models/CreateHostedProviderSessionRequest.d.ts +6 -0
- package/dist/esm/models/DocumentType.d.ts +1 -0
- package/dist/esm/models/DocumentType.js +2 -1
- package/dist/esm/models/FieldAvailability.d.ts +26 -0
- package/dist/esm/models/FieldAvailability.js +44 -0
- package/dist/esm/models/IntegrationCapability.d.ts +1 -0
- package/dist/esm/models/IntegrationCapability.js +2 -1
- package/dist/esm/models/ProviderContract.d.ts +18 -1
- package/dist/esm/models/ProviderContract.js +7 -0
- package/dist/esm/models/ProviderInfo.d.ts +32 -0
- package/dist/esm/models/ProviderInfo.js +15 -0
- package/dist/esm/models/ProviderInformation.d.ts +50 -6
- package/dist/esm/models/ProviderInformation.js +28 -1
- package/dist/esm/models/ProviderInput.d.ts +12 -12
- package/dist/esm/models/RecommendRequest.d.ts +6 -0
- package/dist/esm/models/RecommendRequest.js +2 -0
- package/dist/esm/models/RecommendResponse.d.ts +5 -3
- package/dist/esm/models/Session.d.ts +1 -1
- package/dist/esm/models/SmartIdInput.d.ts +7 -0
- package/dist/esm/models/SmartIdInput.js +2 -0
- package/dist/esm/models/SubProviderMetadata.d.ts +12 -1
- package/dist/esm/models/SubProviderMetadata.js +4 -0
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/models/BangladeshNidInput.d.ts +3 -3
- package/dist/models/BangladeshNidInput.js +10 -4
- package/dist/models/ContractField.d.ts +39 -0
- package/dist/models/ContractField.js +55 -0
- package/dist/models/CreateAdvancedProviderSessionRequest.d.ts +6 -6
- package/dist/models/CreateAdvancedProviderSessionRequest.js +2 -2
- package/dist/models/CreateHostedProviderSessionRequest.d.ts +6 -0
- package/dist/models/DocumentType.d.ts +1 -0
- package/dist/models/DocumentType.js +2 -1
- package/dist/models/FieldAvailability.d.ts +26 -0
- package/dist/models/FieldAvailability.js +52 -0
- package/dist/models/IntegrationCapability.d.ts +1 -0
- package/dist/models/IntegrationCapability.js +2 -1
- package/dist/models/ProviderContract.d.ts +18 -1
- package/dist/models/ProviderContract.js +7 -0
- package/dist/models/ProviderInfo.d.ts +32 -0
- package/dist/models/ProviderInfo.js +15 -0
- package/dist/models/ProviderInformation.d.ts +50 -6
- package/dist/models/ProviderInformation.js +28 -1
- package/dist/models/ProviderInput.d.ts +12 -12
- package/dist/models/RecommendRequest.d.ts +6 -0
- package/dist/models/RecommendRequest.js +2 -0
- package/dist/models/RecommendResponse.d.ts +5 -3
- package/dist/models/Session.d.ts +1 -1
- package/dist/models/SmartIdInput.d.ts +7 -0
- package/dist/models/SmartIdInput.js +2 -0
- package/dist/models/SubProviderMetadata.d.ts +12 -1
- package/dist/models/SubProviderMetadata.js +4 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
- package/src/apis/AttachmentsApi.ts +4 -4
- package/src/apis/NetworkApi.ts +18 -9
- package/src/apis/SessionsApi.ts +4 -4
- package/src/models/BangladeshNidInput.ts +10 -7
- package/src/models/ContractField.ts +85 -0
- package/src/models/CreateAdvancedProviderSessionRequest.ts +8 -8
- package/src/models/CreateHostedProviderSessionRequest.ts +6 -0
- package/src/models/DocumentType.ts +2 -1
- package/src/models/FieldAvailability.ts +54 -0
- package/src/models/IntegrationCapability.ts +2 -1
- package/src/models/ProviderContract.ts +29 -1
- package/src/models/ProviderInfo.ts +50 -0
- package/src/models/ProviderInformation.ts +78 -7
- package/src/models/ProviderInput.ts +12 -12
- package/src/models/RecommendRequest.ts +8 -0
- package/src/models/RecommendResponse.ts +5 -3
- package/src/models/Session.ts +1 -1
- package/src/models/SmartIdInput.ts +9 -0
- package/src/models/SubProviderMetadata.ts +15 -1
- package/src/models/index.ts +2 -0
|
@@ -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 { FieldAvailability } from './FieldAvailability';
|
|
17
|
+
import {
|
|
18
|
+
FieldAvailabilityFromJSON,
|
|
19
|
+
FieldAvailabilityFromJSONTyped,
|
|
20
|
+
FieldAvailabilityToJSON,
|
|
21
|
+
FieldAvailabilityToJSONTyped,
|
|
22
|
+
} from './FieldAvailability';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Information about a field that a Provider will return in verification results.
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ContractField
|
|
28
|
+
*/
|
|
29
|
+
export interface ContractField {
|
|
30
|
+
/**
|
|
31
|
+
* The name of the field as it appears in verification results.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ContractField
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
* Indicates when this field will be present in verification results.
|
|
38
|
+
* @type {FieldAvailability}
|
|
39
|
+
* @memberof ContractField
|
|
40
|
+
*/
|
|
41
|
+
outputted: FieldAvailability;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the ContractField interface.
|
|
48
|
+
*/
|
|
49
|
+
export function instanceOfContractField(value: object): value is ContractField {
|
|
50
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
51
|
+
if (!('outputted' in value) || value['outputted'] === undefined) return false;
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function ContractFieldFromJSON(json: any): ContractField {
|
|
56
|
+
return ContractFieldFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ContractFieldFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContractField {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'name': json['name'],
|
|
66
|
+
'outputted': FieldAvailabilityFromJSON(json['outputted']),
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ContractFieldToJSON(json: any): ContractField {
|
|
71
|
+
return ContractFieldToJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function ContractFieldToJSONTyped(value?: ContractField | null, ignoreDiscriminator: boolean = false): any {
|
|
75
|
+
if (value == null) {
|
|
76
|
+
return value;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
return {
|
|
80
|
+
|
|
81
|
+
'name': value['name'],
|
|
82
|
+
'outputted': FieldAvailabilityToJSON(value['outputted']),
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
@@ -40,12 +40,6 @@ export interface CreateAdvancedProviderSessionRequest {
|
|
|
40
40
|
* @memberof CreateAdvancedProviderSessionRequest
|
|
41
41
|
*/
|
|
42
42
|
provider: string;
|
|
43
|
-
/**
|
|
44
|
-
* Provider-specific input for those providers which require it.
|
|
45
|
-
* @type {ProviderInput}
|
|
46
|
-
* @memberof CreateAdvancedProviderSessionRequest
|
|
47
|
-
*/
|
|
48
|
-
providerInput?: ProviderInput | null;
|
|
49
43
|
/**
|
|
50
44
|
* The Redirect URL to which the user should be sent after the session is complete.
|
|
51
45
|
*
|
|
@@ -90,6 +84,12 @@ export interface CreateAdvancedProviderSessionRequest {
|
|
|
90
84
|
* @memberof CreateAdvancedProviderSessionRequest
|
|
91
85
|
*/
|
|
92
86
|
fallbackToHostedUI?: boolean | null;
|
|
87
|
+
/**
|
|
88
|
+
* Provider-specific input for those providers which require it.
|
|
89
|
+
* @type {ProviderInput}
|
|
90
|
+
* @memberof CreateAdvancedProviderSessionRequest
|
|
91
|
+
*/
|
|
92
|
+
providerInput?: ProviderInput | null;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
/**
|
|
@@ -112,10 +112,10 @@ export function CreateAdvancedProviderSessionRequestFromJSONTyped(json: any, ign
|
|
|
112
112
|
return {
|
|
113
113
|
|
|
114
114
|
'provider': json['provider'],
|
|
115
|
-
'providerInput': json['providerInput'] == null ? undefined : ProviderInputFromJSON(json['providerInput']),
|
|
116
115
|
'redirectUrl': json['redirectUrl'] == null ? undefined : json['redirectUrl'],
|
|
117
116
|
'capabilities': ((json['capabilities'] as Array<any>).map(IntegrationCapabilityFromJSON)),
|
|
118
117
|
'fallbackToHostedUI': json['fallbackToHostedUI'] == null ? undefined : json['fallbackToHostedUI'],
|
|
118
|
+
'providerInput': json['providerInput'] == null ? undefined : ProviderInputFromJSON(json['providerInput']),
|
|
119
119
|
};
|
|
120
120
|
}
|
|
121
121
|
|
|
@@ -131,10 +131,10 @@ export function CreateAdvancedProviderSessionRequestToJSONTyped(value?: CreateAd
|
|
|
131
131
|
return {
|
|
132
132
|
|
|
133
133
|
'provider': value['provider'],
|
|
134
|
-
'providerInput': ProviderInputToJSON(value['providerInput']),
|
|
135
134
|
'redirectUrl': value['redirectUrl'],
|
|
136
135
|
'capabilities': ((value['capabilities'] as Array<any>).map(IntegrationCapabilityToJSON)),
|
|
137
136
|
'fallbackToHostedUI': value['fallbackToHostedUI'],
|
|
137
|
+
'providerInput': ProviderInputToJSON(value['providerInput']),
|
|
138
138
|
};
|
|
139
139
|
}
|
|
140
140
|
|
|
@@ -41,8 +41,14 @@ export interface CreateHostedProviderSessionRequest {
|
|
|
41
41
|
redirectUrl: string;
|
|
42
42
|
/**
|
|
43
43
|
* Provider-specific input for those providers which require it.
|
|
44
|
+
*
|
|
45
|
+
*
|
|
46
|
+
* <b>Deprecated:</b> In the future, Hosted Provider Sessions will not accept input on creation,
|
|
47
|
+
* and will instead always redirect the user to a hosted interface to collect input. If you need
|
|
48
|
+
* to collect input from the user yourself, please use the Create Advanced Session endpoint instead.
|
|
44
49
|
* @type {ProviderInput}
|
|
45
50
|
* @memberof CreateHostedProviderSessionRequest
|
|
51
|
+
* @deprecated
|
|
46
52
|
*/
|
|
47
53
|
providerInput?: ProviderInput | null;
|
|
48
54
|
}
|
|
@@ -21,7 +21,8 @@ export const DocumentType = {
|
|
|
21
21
|
Passport: 'Passport',
|
|
22
22
|
DriversLicense: 'DriversLicense',
|
|
23
23
|
NationalId: 'NationalId',
|
|
24
|
-
IdCard: 'IdCard'
|
|
24
|
+
IdCard: 'IdCard',
|
|
25
|
+
Other: 'Other'
|
|
25
26
|
} as const;
|
|
26
27
|
export type DocumentType = typeof DocumentType[keyof typeof DocumentType];
|
|
27
28
|
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Trinsic API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Indicates when a field will be available in verification results.
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const FieldAvailability = {
|
|
21
|
+
Never: 'Never',
|
|
22
|
+
Sometimes: 'Sometimes',
|
|
23
|
+
Always: 'Always'
|
|
24
|
+
} as const;
|
|
25
|
+
export type FieldAvailability = typeof FieldAvailability[keyof typeof FieldAvailability];
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export function instanceOfFieldAvailability(value: any): boolean {
|
|
29
|
+
for (const key in FieldAvailability) {
|
|
30
|
+
if (Object.prototype.hasOwnProperty.call(FieldAvailability, key)) {
|
|
31
|
+
if (FieldAvailability[key as keyof typeof FieldAvailability] === value) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function FieldAvailabilityFromJSON(json: any): FieldAvailability {
|
|
40
|
+
return FieldAvailabilityFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function FieldAvailabilityFromJSONTyped(json: any, ignoreDiscriminator: boolean): FieldAvailability {
|
|
44
|
+
return json as FieldAvailability;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function FieldAvailabilityToJSON(value?: FieldAvailability | null): any {
|
|
48
|
+
return value as any;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function FieldAvailabilityToJSONTyped(value: any, ignoreDiscriminator: boolean): FieldAvailability {
|
|
52
|
+
return value as FieldAvailability;
|
|
53
|
+
}
|
|
54
|
+
|
|
@@ -23,7 +23,8 @@ export const IntegrationCapability = {
|
|
|
23
23
|
ShowContent: 'ShowContent',
|
|
24
24
|
RefreshStepContent: 'RefreshStepContent',
|
|
25
25
|
CaptureRedirect: 'CaptureRedirect',
|
|
26
|
-
PollResult: 'PollResult'
|
|
26
|
+
PollResult: 'PollResult',
|
|
27
|
+
PollAfterRedirect: 'PollAfterRedirect'
|
|
27
28
|
} as const;
|
|
28
29
|
export type IntegrationCapability = typeof IntegrationCapability[keyof typeof IntegrationCapability];
|
|
29
30
|
|
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ContractField } from './ContractField';
|
|
17
|
+
import {
|
|
18
|
+
ContractFieldFromJSON,
|
|
19
|
+
ContractFieldFromJSONTyped,
|
|
20
|
+
ContractFieldToJSON,
|
|
21
|
+
ContractFieldToJSONTyped,
|
|
22
|
+
} from './ContractField';
|
|
16
23
|
import type { ProviderHealth } from './ProviderHealth';
|
|
17
24
|
import {
|
|
18
25
|
ProviderHealthFromJSON,
|
|
@@ -60,12 +67,21 @@ export interface ProviderContract {
|
|
|
60
67
|
* @memberof ProviderContract
|
|
61
68
|
*/
|
|
62
69
|
name: string;
|
|
70
|
+
/**
|
|
71
|
+
* The Provider's subtext recommended to be shown next to the name.
|
|
72
|
+
*
|
|
73
|
+
* This is flavor text, not a full, human-readable description of the provider.
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof ProviderContract
|
|
76
|
+
*/
|
|
77
|
+
subtext: string;
|
|
63
78
|
/**
|
|
64
79
|
* The Provider's description as it appears in Trinsic's Widget.
|
|
65
80
|
*
|
|
66
81
|
* This is flavor text, not a full, human-readable description of the provider.
|
|
67
82
|
* @type {string}
|
|
68
83
|
* @memberof ProviderContract
|
|
84
|
+
* @deprecated
|
|
69
85
|
*/
|
|
70
86
|
description: string;
|
|
71
87
|
/**
|
|
@@ -116,7 +132,8 @@ export interface ProviderContract {
|
|
|
116
132
|
* If `true`, then the results for this Provider may not be available immediately after the user is redirected back
|
|
117
133
|
* to your application. In this case, the `GetSessionResults` API must be called until results are available.
|
|
118
134
|
*
|
|
119
|
-
* This is an uncommon scenario, and
|
|
135
|
+
* This is an uncommon scenario, and only applies to Providers which cannot guarantee
|
|
136
|
+
* the availability of results immediately after the user is redirected back to your application.
|
|
120
137
|
* @type {boolean}
|
|
121
138
|
* @memberof ProviderContract
|
|
122
139
|
*/
|
|
@@ -158,6 +175,12 @@ export interface ProviderContract {
|
|
|
158
175
|
* @memberof ProviderContract
|
|
159
176
|
*/
|
|
160
177
|
supportsAdvancedProviderSessions: boolean;
|
|
178
|
+
/**
|
|
179
|
+
* Information about the fields that this Provider will return in verification results.
|
|
180
|
+
* @type {Array<ContractField>}
|
|
181
|
+
* @memberof ProviderContract
|
|
182
|
+
*/
|
|
183
|
+
availableFields?: Array<ContractField> | null;
|
|
161
184
|
/**
|
|
162
185
|
* Metadata about the sub-providers which are available for this Provider.
|
|
163
186
|
*
|
|
@@ -182,6 +205,7 @@ export interface ProviderContract {
|
|
|
182
205
|
export function instanceOfProviderContract(value: object): value is ProviderContract {
|
|
183
206
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
184
207
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
208
|
+
if (!('subtext' in value) || value['subtext'] === undefined) return false;
|
|
185
209
|
if (!('description' in value) || value['description'] === undefined) return false;
|
|
186
210
|
if (!('logoUrl' in value) || value['logoUrl'] === undefined) return false;
|
|
187
211
|
if (!('available' in value) || value['available'] === undefined) return false;
|
|
@@ -210,6 +234,7 @@ export function ProviderContractFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
210
234
|
|
|
211
235
|
'id': json['id'],
|
|
212
236
|
'name': json['name'],
|
|
237
|
+
'subtext': json['subtext'],
|
|
213
238
|
'description': json['description'],
|
|
214
239
|
'logoUrl': json['logoUrl'],
|
|
215
240
|
'available': json['available'],
|
|
@@ -222,6 +247,7 @@ export function ProviderContractFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
222
247
|
'requiresInput': json['requiresInput'],
|
|
223
248
|
'hasTrinsicInterface': json['hasTrinsicInterface'],
|
|
224
249
|
'supportsAdvancedProviderSessions': json['supportsAdvancedProviderSessions'],
|
|
250
|
+
'availableFields': json['availableFields'] == null ? undefined : ((json['availableFields'] as Array<any>).map(ContractFieldFromJSON)),
|
|
225
251
|
'subProviders': json['subProviders'] == null ? undefined : ((json['subProviders'] as Array<any>).map(SubProviderMetadataFromJSON)),
|
|
226
252
|
'health': ProviderHealthFromJSON(json['health']),
|
|
227
253
|
};
|
|
@@ -240,6 +266,7 @@ export function ProviderContractToJSONTyped(value?: ProviderContract | null, ign
|
|
|
240
266
|
|
|
241
267
|
'id': value['id'],
|
|
242
268
|
'name': value['name'],
|
|
269
|
+
'subtext': value['subtext'],
|
|
243
270
|
'description': value['description'],
|
|
244
271
|
'logoUrl': value['logoUrl'],
|
|
245
272
|
'available': value['available'],
|
|
@@ -252,6 +279,7 @@ export function ProviderContractToJSONTyped(value?: ProviderContract | null, ign
|
|
|
252
279
|
'requiresInput': value['requiresInput'],
|
|
253
280
|
'hasTrinsicInterface': value['hasTrinsicInterface'],
|
|
254
281
|
'supportsAdvancedProviderSessions': value['supportsAdvancedProviderSessions'],
|
|
282
|
+
'availableFields': value['availableFields'] == null ? undefined : ((value['availableFields'] as Array<any>).map(ContractFieldToJSON)),
|
|
255
283
|
'subProviders': value['subProviders'] == null ? undefined : ((value['subProviders'] as Array<any>).map(SubProviderMetadataToJSON)),
|
|
256
284
|
'health': ProviderHealthToJSON(value['health']),
|
|
257
285
|
};
|
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { SubProviderMetadata } from './SubProviderMetadata';
|
|
17
|
+
import {
|
|
18
|
+
SubProviderMetadataFromJSON,
|
|
19
|
+
SubProviderMetadataFromJSONTyped,
|
|
20
|
+
SubProviderMetadataToJSON,
|
|
21
|
+
SubProviderMetadataToJSONTyped,
|
|
22
|
+
} from './SubProviderMetadata';
|
|
23
|
+
|
|
16
24
|
/**
|
|
17
25
|
* A provider that can be specified when creating a `Session`
|
|
18
26
|
* @export
|
|
@@ -37,6 +45,37 @@ export interface ProviderInfo {
|
|
|
37
45
|
* @memberof ProviderInfo
|
|
38
46
|
*/
|
|
39
47
|
logoUrl: string;
|
|
48
|
+
/**
|
|
49
|
+
* The Provider's subtext recommended to be shown next to the name.
|
|
50
|
+
*
|
|
51
|
+
* This is flavor text, not a full, human-readable description of the provider.
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof ProviderInfo
|
|
54
|
+
*/
|
|
55
|
+
subtext: string;
|
|
56
|
+
/**
|
|
57
|
+
* The Provider's description recommended to be shown next to the name.
|
|
58
|
+
*
|
|
59
|
+
* This is flavor text, not a full, human-readable description of the provider.
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof ProviderInfo
|
|
62
|
+
* @deprecated
|
|
63
|
+
*/
|
|
64
|
+
description: string;
|
|
65
|
+
/**
|
|
66
|
+
* The current health status of the provider
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof ProviderInfo
|
|
69
|
+
*/
|
|
70
|
+
health: string;
|
|
71
|
+
/**
|
|
72
|
+
* Metadata about the sub-providers which are available for this Provider.
|
|
73
|
+
*
|
|
74
|
+
* For example, Italy's SPID is a Provider which aggregates access to multiple sub-providers.
|
|
75
|
+
* @type {Array<SubProviderMetadata>}
|
|
76
|
+
* @memberof ProviderInfo
|
|
77
|
+
*/
|
|
78
|
+
subProviders?: Array<SubProviderMetadata> | null;
|
|
40
79
|
}
|
|
41
80
|
|
|
42
81
|
/**
|
|
@@ -46,6 +85,9 @@ export function instanceOfProviderInfo(value: object): value is ProviderInfo {
|
|
|
46
85
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
47
86
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
48
87
|
if (!('logoUrl' in value) || value['logoUrl'] === undefined) return false;
|
|
88
|
+
if (!('subtext' in value) || value['subtext'] === undefined) return false;
|
|
89
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
90
|
+
if (!('health' in value) || value['health'] === undefined) return false;
|
|
49
91
|
return true;
|
|
50
92
|
}
|
|
51
93
|
|
|
@@ -62,6 +104,10 @@ export function ProviderInfoFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
62
104
|
'id': json['id'],
|
|
63
105
|
'name': json['name'],
|
|
64
106
|
'logoUrl': json['logoUrl'],
|
|
107
|
+
'subtext': json['subtext'],
|
|
108
|
+
'description': json['description'],
|
|
109
|
+
'health': json['health'],
|
|
110
|
+
'subProviders': json['subProviders'] == null ? undefined : ((json['subProviders'] as Array<any>).map(SubProviderMetadataFromJSON)),
|
|
65
111
|
};
|
|
66
112
|
}
|
|
67
113
|
|
|
@@ -79,6 +125,10 @@ export function ProviderInfoToJSONTyped(value?: ProviderInfo | null, ignoreDiscr
|
|
|
79
125
|
'id': value['id'],
|
|
80
126
|
'name': value['name'],
|
|
81
127
|
'logoUrl': value['logoUrl'],
|
|
128
|
+
'subtext': value['subtext'],
|
|
129
|
+
'description': value['description'],
|
|
130
|
+
'health': value['health'],
|
|
131
|
+
'subProviders': value['subProviders'] == null ? undefined : ((value['subProviders'] as Array<any>).map(SubProviderMetadataToJSON)),
|
|
82
132
|
};
|
|
83
133
|
}
|
|
84
134
|
|
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { SubProviderMetadata } from './SubProviderMetadata';
|
|
17
|
+
import {
|
|
18
|
+
SubProviderMetadataFromJSON,
|
|
19
|
+
SubProviderMetadataFromJSONTyped,
|
|
20
|
+
SubProviderMetadataToJSON,
|
|
21
|
+
SubProviderMetadataToJSONTyped,
|
|
22
|
+
} from './SubProviderMetadata';
|
|
23
|
+
|
|
16
24
|
/**
|
|
17
25
|
*
|
|
18
26
|
* @export
|
|
@@ -20,32 +28,80 @@ import { mapValues } from '../runtime';
|
|
|
20
28
|
*/
|
|
21
29
|
export interface ProviderInformation {
|
|
22
30
|
/**
|
|
23
|
-
*
|
|
31
|
+
* The ID of the provider
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ProviderInformation
|
|
34
|
+
*/
|
|
35
|
+
id: string;
|
|
36
|
+
/**
|
|
37
|
+
* The friendly, human-readable name of the provider
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ProviderInformation
|
|
40
|
+
*/
|
|
41
|
+
name: string;
|
|
42
|
+
/**
|
|
43
|
+
* A URL pointing to the provider's logo
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ProviderInformation
|
|
46
|
+
*/
|
|
47
|
+
logoUrl: string;
|
|
48
|
+
/**
|
|
49
|
+
* The Provider's subtext recommended to be shown next to the name.
|
|
50
|
+
*
|
|
51
|
+
* This is flavor text, not a full, human-readable description of the provider.
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof ProviderInformation
|
|
54
|
+
*/
|
|
55
|
+
subtext: string;
|
|
56
|
+
/**
|
|
57
|
+
* The ID of the provider
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof ProviderInformation
|
|
60
|
+
* @deprecated
|
|
61
|
+
*/
|
|
62
|
+
providerId: string;
|
|
63
|
+
/**
|
|
64
|
+
* The friendly, human-readable name of the provider
|
|
24
65
|
* @type {string}
|
|
25
66
|
* @memberof ProviderInformation
|
|
67
|
+
* @deprecated
|
|
26
68
|
*/
|
|
27
|
-
|
|
69
|
+
providerDisplayName: string;
|
|
28
70
|
/**
|
|
29
|
-
*
|
|
71
|
+
* A URL pointing to the provider's logo
|
|
30
72
|
* @type {string}
|
|
31
73
|
* @memberof ProviderInformation
|
|
74
|
+
* @deprecated
|
|
32
75
|
*/
|
|
33
|
-
|
|
76
|
+
providerLogo: string;
|
|
34
77
|
/**
|
|
35
|
-
*
|
|
78
|
+
* The current health status of the provider
|
|
36
79
|
* @type {string}
|
|
37
80
|
* @memberof ProviderInformation
|
|
38
81
|
*/
|
|
39
|
-
|
|
82
|
+
health: string;
|
|
83
|
+
/**
|
|
84
|
+
* Metadata about the sub-providers which are available for this Provider.
|
|
85
|
+
*
|
|
86
|
+
* For example, Italy's SPID is a Provider which aggregates access to multiple sub-providers.
|
|
87
|
+
* @type {Array<SubProviderMetadata>}
|
|
88
|
+
* @memberof ProviderInformation
|
|
89
|
+
*/
|
|
90
|
+
subProviders?: Array<SubProviderMetadata> | null;
|
|
40
91
|
}
|
|
41
92
|
|
|
42
93
|
/**
|
|
43
94
|
* Check if a given object implements the ProviderInformation interface.
|
|
44
95
|
*/
|
|
45
96
|
export function instanceOfProviderInformation(value: object): value is ProviderInformation {
|
|
97
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
98
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
99
|
+
if (!('logoUrl' in value) || value['logoUrl'] === undefined) return false;
|
|
100
|
+
if (!('subtext' in value) || value['subtext'] === undefined) return false;
|
|
46
101
|
if (!('providerId' in value) || value['providerId'] === undefined) return false;
|
|
47
102
|
if (!('providerDisplayName' in value) || value['providerDisplayName'] === undefined) return false;
|
|
48
103
|
if (!('providerLogo' in value) || value['providerLogo'] === undefined) return false;
|
|
104
|
+
if (!('health' in value) || value['health'] === undefined) return false;
|
|
49
105
|
return true;
|
|
50
106
|
}
|
|
51
107
|
|
|
@@ -59,9 +115,15 @@ export function ProviderInformationFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
59
115
|
}
|
|
60
116
|
return {
|
|
61
117
|
|
|
118
|
+
'id': json['id'],
|
|
119
|
+
'name': json['name'],
|
|
120
|
+
'logoUrl': json['logoUrl'],
|
|
121
|
+
'subtext': json['subtext'],
|
|
62
122
|
'providerId': json['providerId'],
|
|
63
123
|
'providerDisplayName': json['providerDisplayName'],
|
|
64
124
|
'providerLogo': json['providerLogo'],
|
|
125
|
+
'health': json['health'],
|
|
126
|
+
'subProviders': json['subProviders'] == null ? undefined : ((json['subProviders'] as Array<any>).map(SubProviderMetadataFromJSON)),
|
|
65
127
|
};
|
|
66
128
|
}
|
|
67
129
|
|
|
@@ -69,13 +131,22 @@ export function ProviderInformationToJSON(json: any): ProviderInformation {
|
|
|
69
131
|
return ProviderInformationToJSONTyped(json, false);
|
|
70
132
|
}
|
|
71
133
|
|
|
72
|
-
export function ProviderInformationToJSONTyped(value?:
|
|
134
|
+
export function ProviderInformationToJSONTyped(value?: ProviderInformation | null, ignoreDiscriminator: boolean = false): any {
|
|
73
135
|
if (value == null) {
|
|
74
136
|
return value;
|
|
75
137
|
}
|
|
76
138
|
|
|
77
139
|
return {
|
|
78
140
|
|
|
141
|
+
'id': value['id'],
|
|
142
|
+
'name': value['name'],
|
|
143
|
+
'logoUrl': value['logoUrl'],
|
|
144
|
+
'subtext': value['subtext'],
|
|
145
|
+
'providerId': value['providerId'],
|
|
146
|
+
'providerDisplayName': value['providerDisplayName'],
|
|
147
|
+
'providerLogo': value['providerLogo'],
|
|
148
|
+
'health': value['health'],
|
|
149
|
+
'subProviders': value['subProviders'] == null ? undefined : ((value['subProviders'] as Array<any>).map(SubProviderMetadataToJSON)),
|
|
79
150
|
};
|
|
80
151
|
}
|
|
81
152
|
|
|
@@ -140,37 +140,37 @@ import {
|
|
|
140
140
|
*/
|
|
141
141
|
export interface ProviderInput {
|
|
142
142
|
/**
|
|
143
|
-
* Input for the `
|
|
143
|
+
* Input for the `indonesia-nik-lookup` provider
|
|
144
144
|
* @type {IndonesiaNikInput}
|
|
145
145
|
* @memberof ProviderInput
|
|
146
146
|
*/
|
|
147
147
|
indonesiaNik?: IndonesiaNikInput | null;
|
|
148
148
|
/**
|
|
149
|
-
* Input for the `
|
|
149
|
+
* Input for the `mexico-curp-lookup` provider
|
|
150
150
|
* @type {MexicoCurpInput}
|
|
151
151
|
* @memberof ProviderInput
|
|
152
152
|
*/
|
|
153
153
|
mexicoCurp?: MexicoCurpInput | null;
|
|
154
154
|
/**
|
|
155
|
-
* Input for the `
|
|
155
|
+
* Input for the `south-africa-nid-lookup` provider
|
|
156
156
|
* @type {SouthAfricaNidInput}
|
|
157
157
|
* @memberof ProviderInput
|
|
158
158
|
*/
|
|
159
159
|
southAfricaNid?: SouthAfricaNidInput | null;
|
|
160
160
|
/**
|
|
161
|
-
* Input for the `
|
|
161
|
+
* Input for the `kenya-nid-lookup` provider
|
|
162
162
|
* @type {KenyaNidInput}
|
|
163
163
|
* @memberof ProviderInput
|
|
164
164
|
*/
|
|
165
165
|
kenyaNid?: KenyaNidInput | null;
|
|
166
166
|
/**
|
|
167
|
-
* Input for the `
|
|
167
|
+
* Input for the `nigeria-nin-lookup` provider
|
|
168
168
|
* @type {NigeriaNinInput}
|
|
169
169
|
* @memberof ProviderInput
|
|
170
170
|
*/
|
|
171
171
|
nigeriaNin?: NigeriaNinInput | null;
|
|
172
172
|
/**
|
|
173
|
-
* Input for the `
|
|
173
|
+
* Input for the `india-digilocker-aadhaar-match` provider
|
|
174
174
|
* @type {AadhaarInput}
|
|
175
175
|
* @memberof ProviderInput
|
|
176
176
|
*/
|
|
@@ -182,25 +182,25 @@ export interface ProviderInput {
|
|
|
182
182
|
*/
|
|
183
183
|
bangladeshNationalId?: BangladeshNidInput | null;
|
|
184
184
|
/**
|
|
185
|
-
* Input for the `
|
|
185
|
+
* Input for the `brazil-cpf-lookup` provider
|
|
186
186
|
* @type {BrazilCpfCheckInput}
|
|
187
187
|
* @memberof ProviderInput
|
|
188
188
|
*/
|
|
189
189
|
brazilCpfCheck?: BrazilCpfCheckInput | null;
|
|
190
190
|
/**
|
|
191
|
-
* Input for the `
|
|
191
|
+
* Input for the `brazil-digital-cnh` provider
|
|
192
192
|
* @type {BrazilDigitalCnhInput}
|
|
193
193
|
* @memberof ProviderInput
|
|
194
194
|
*/
|
|
195
195
|
brazilDigitalCnh?: BrazilDigitalCnhInput | null;
|
|
196
196
|
/**
|
|
197
|
-
* Input for the `
|
|
197
|
+
* Input for the `philippines-philsys-match` provider
|
|
198
198
|
* @type {PhilippineMatchInput}
|
|
199
199
|
* @memberof ProviderInput
|
|
200
200
|
*/
|
|
201
201
|
philippineMatch?: PhilippineMatchInput | null;
|
|
202
202
|
/**
|
|
203
|
-
* Input for the `
|
|
203
|
+
* Input for the `philippines-digital-national-id-qr` and `philippines-physical-national-id-qr` providers
|
|
204
204
|
* @type {PhilippineQRInput}
|
|
205
205
|
* @memberof ProviderInput
|
|
206
206
|
*/
|
|
@@ -218,13 +218,13 @@ export interface ProviderInput {
|
|
|
218
218
|
*/
|
|
219
219
|
mobileId?: MobileIdInput | null;
|
|
220
220
|
/**
|
|
221
|
-
* Input for the `idin` provider
|
|
221
|
+
* Input for the `netherlands-idin` provider
|
|
222
222
|
* @type {IdinInput}
|
|
223
223
|
* @memberof ProviderInput
|
|
224
224
|
*/
|
|
225
225
|
idin?: IdinInput | null;
|
|
226
226
|
/**
|
|
227
|
-
* Input for the `spid` provider
|
|
227
|
+
* Input for the `italy-spid` provider
|
|
228
228
|
* @type {SpidInput}
|
|
229
229
|
* @memberof ProviderInput
|
|
230
230
|
*/
|
|
@@ -33,6 +33,12 @@ export interface RecommendRequest {
|
|
|
33
33
|
* @memberof RecommendRequest
|
|
34
34
|
*/
|
|
35
35
|
recommendationInfo?: RecommendationInfo | null;
|
|
36
|
+
/**
|
|
37
|
+
* Filter providers by health status. Valid values: "online", "offline", "all". Defaults to "online".
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof RecommendRequest
|
|
40
|
+
*/
|
|
41
|
+
health?: string | null;
|
|
36
42
|
}
|
|
37
43
|
|
|
38
44
|
/**
|
|
@@ -53,6 +59,7 @@ export function RecommendRequestFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
53
59
|
return {
|
|
54
60
|
|
|
55
61
|
'recommendationInfo': json['recommendationInfo'] == null ? undefined : RecommendationInfoFromJSON(json['recommendationInfo']),
|
|
62
|
+
'health': json['health'] == null ? undefined : json['health'],
|
|
56
63
|
};
|
|
57
64
|
}
|
|
58
65
|
|
|
@@ -68,6 +75,7 @@ export function RecommendRequestToJSONTyped(value?: RecommendRequest | null, ign
|
|
|
68
75
|
return {
|
|
69
76
|
|
|
70
77
|
'recommendationInfo': RecommendationInfoToJSON(value['recommendationInfo']),
|
|
78
|
+
'health': value['health'],
|
|
71
79
|
};
|
|
72
80
|
}
|
|
73
81
|
|