@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
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { SubProviderMetadata } from './SubProviderMetadata';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -16,23 +17,66 @@
|
|
|
16
17
|
*/
|
|
17
18
|
export interface ProviderInformation {
|
|
18
19
|
/**
|
|
19
|
-
*
|
|
20
|
+
* The ID of the provider
|
|
20
21
|
* @type {string}
|
|
21
22
|
* @memberof ProviderInformation
|
|
22
23
|
*/
|
|
23
|
-
|
|
24
|
+
id: string;
|
|
24
25
|
/**
|
|
25
|
-
*
|
|
26
|
+
* The friendly, human-readable name of the provider
|
|
26
27
|
* @type {string}
|
|
27
28
|
* @memberof ProviderInformation
|
|
28
29
|
*/
|
|
29
|
-
|
|
30
|
+
name: string;
|
|
30
31
|
/**
|
|
32
|
+
* A URL pointing to the provider's logo
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof ProviderInformation
|
|
35
|
+
*/
|
|
36
|
+
logoUrl: string;
|
|
37
|
+
/**
|
|
38
|
+
* The Provider's subtext recommended to be shown next to the name.
|
|
31
39
|
*
|
|
40
|
+
* This is flavor text, not a full, human-readable description of the provider.
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof ProviderInformation
|
|
43
|
+
*/
|
|
44
|
+
subtext: string;
|
|
45
|
+
/**
|
|
46
|
+
* The ID of the provider
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof ProviderInformation
|
|
49
|
+
* @deprecated
|
|
50
|
+
*/
|
|
51
|
+
providerId: string;
|
|
52
|
+
/**
|
|
53
|
+
* The friendly, human-readable name of the provider
|
|
32
54
|
* @type {string}
|
|
33
55
|
* @memberof ProviderInformation
|
|
56
|
+
* @deprecated
|
|
57
|
+
*/
|
|
58
|
+
providerDisplayName: string;
|
|
59
|
+
/**
|
|
60
|
+
* A URL pointing to the provider's logo
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof ProviderInformation
|
|
63
|
+
* @deprecated
|
|
64
|
+
*/
|
|
65
|
+
providerLogo: string;
|
|
66
|
+
/**
|
|
67
|
+
* The current health status of the provider
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof ProviderInformation
|
|
70
|
+
*/
|
|
71
|
+
health: string;
|
|
72
|
+
/**
|
|
73
|
+
* Metadata about the sub-providers which are available for this Provider.
|
|
74
|
+
*
|
|
75
|
+
* For example, Italy's SPID is a Provider which aggregates access to multiple sub-providers.
|
|
76
|
+
* @type {Array<SubProviderMetadata>}
|
|
77
|
+
* @memberof ProviderInformation
|
|
34
78
|
*/
|
|
35
|
-
|
|
79
|
+
subProviders?: Array<SubProviderMetadata> | null;
|
|
36
80
|
}
|
|
37
81
|
/**
|
|
38
82
|
* Check if a given object implements the ProviderInformation interface.
|
|
@@ -41,4 +85,4 @@ export declare function instanceOfProviderInformation(value: object): value is P
|
|
|
41
85
|
export declare function ProviderInformationFromJSON(json: any): ProviderInformation;
|
|
42
86
|
export declare function ProviderInformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProviderInformation;
|
|
43
87
|
export declare function ProviderInformationToJSON(json: any): ProviderInformation;
|
|
44
|
-
export declare function ProviderInformationToJSONTyped(value?:
|
|
88
|
+
export declare function ProviderInformationToJSONTyped(value?: ProviderInformation | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -18,16 +18,27 @@ exports.ProviderInformationFromJSON = ProviderInformationFromJSON;
|
|
|
18
18
|
exports.ProviderInformationFromJSONTyped = ProviderInformationFromJSONTyped;
|
|
19
19
|
exports.ProviderInformationToJSON = ProviderInformationToJSON;
|
|
20
20
|
exports.ProviderInformationToJSONTyped = ProviderInformationToJSONTyped;
|
|
21
|
+
const SubProviderMetadata_1 = require("./SubProviderMetadata");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the ProviderInformation interface.
|
|
23
24
|
*/
|
|
24
25
|
function instanceOfProviderInformation(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('logoUrl' in value) || value['logoUrl'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('subtext' in value) || value['subtext'] === undefined)
|
|
33
|
+
return false;
|
|
25
34
|
if (!('providerId' in value) || value['providerId'] === undefined)
|
|
26
35
|
return false;
|
|
27
36
|
if (!('providerDisplayName' in value) || value['providerDisplayName'] === undefined)
|
|
28
37
|
return false;
|
|
29
38
|
if (!('providerLogo' in value) || value['providerLogo'] === undefined)
|
|
30
39
|
return false;
|
|
40
|
+
if (!('health' in value) || value['health'] === undefined)
|
|
41
|
+
return false;
|
|
31
42
|
return true;
|
|
32
43
|
}
|
|
33
44
|
function ProviderInformationFromJSON(json) {
|
|
@@ -38,9 +49,15 @@ function ProviderInformationFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
49
|
return json;
|
|
39
50
|
}
|
|
40
51
|
return {
|
|
52
|
+
'id': json['id'],
|
|
53
|
+
'name': json['name'],
|
|
54
|
+
'logoUrl': json['logoUrl'],
|
|
55
|
+
'subtext': json['subtext'],
|
|
41
56
|
'providerId': json['providerId'],
|
|
42
57
|
'providerDisplayName': json['providerDisplayName'],
|
|
43
58
|
'providerLogo': json['providerLogo'],
|
|
59
|
+
'health': json['health'],
|
|
60
|
+
'subProviders': json['subProviders'] == null ? undefined : (json['subProviders'].map(SubProviderMetadata_1.SubProviderMetadataFromJSON)),
|
|
44
61
|
};
|
|
45
62
|
}
|
|
46
63
|
function ProviderInformationToJSON(json) {
|
|
@@ -50,5 +67,15 @@ function ProviderInformationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
50
67
|
if (value == null) {
|
|
51
68
|
return value;
|
|
52
69
|
}
|
|
53
|
-
return {
|
|
70
|
+
return {
|
|
71
|
+
'id': value['id'],
|
|
72
|
+
'name': value['name'],
|
|
73
|
+
'logoUrl': value['logoUrl'],
|
|
74
|
+
'subtext': value['subtext'],
|
|
75
|
+
'providerId': value['providerId'],
|
|
76
|
+
'providerDisplayName': value['providerDisplayName'],
|
|
77
|
+
'providerLogo': value['providerLogo'],
|
|
78
|
+
'health': value['health'],
|
|
79
|
+
'subProviders': value['subProviders'] == null ? undefined : (value['subProviders'].map(SubProviderMetadata_1.SubProviderMetadataToJSON)),
|
|
80
|
+
};
|
|
54
81
|
}
|
|
@@ -33,37 +33,37 @@ import type { IdinInput } from './IdinInput';
|
|
|
33
33
|
*/
|
|
34
34
|
export interface ProviderInput {
|
|
35
35
|
/**
|
|
36
|
-
* Input for the `
|
|
36
|
+
* Input for the `indonesia-nik-lookup` provider
|
|
37
37
|
* @type {IndonesiaNikInput}
|
|
38
38
|
* @memberof ProviderInput
|
|
39
39
|
*/
|
|
40
40
|
indonesiaNik?: IndonesiaNikInput | null;
|
|
41
41
|
/**
|
|
42
|
-
* Input for the `
|
|
42
|
+
* Input for the `mexico-curp-lookup` provider
|
|
43
43
|
* @type {MexicoCurpInput}
|
|
44
44
|
* @memberof ProviderInput
|
|
45
45
|
*/
|
|
46
46
|
mexicoCurp?: MexicoCurpInput | null;
|
|
47
47
|
/**
|
|
48
|
-
* Input for the `
|
|
48
|
+
* Input for the `south-africa-nid-lookup` provider
|
|
49
49
|
* @type {SouthAfricaNidInput}
|
|
50
50
|
* @memberof ProviderInput
|
|
51
51
|
*/
|
|
52
52
|
southAfricaNid?: SouthAfricaNidInput | null;
|
|
53
53
|
/**
|
|
54
|
-
* Input for the `
|
|
54
|
+
* Input for the `kenya-nid-lookup` provider
|
|
55
55
|
* @type {KenyaNidInput}
|
|
56
56
|
* @memberof ProviderInput
|
|
57
57
|
*/
|
|
58
58
|
kenyaNid?: KenyaNidInput | null;
|
|
59
59
|
/**
|
|
60
|
-
* Input for the `
|
|
60
|
+
* Input for the `nigeria-nin-lookup` provider
|
|
61
61
|
* @type {NigeriaNinInput}
|
|
62
62
|
* @memberof ProviderInput
|
|
63
63
|
*/
|
|
64
64
|
nigeriaNin?: NigeriaNinInput | null;
|
|
65
65
|
/**
|
|
66
|
-
* Input for the `
|
|
66
|
+
* Input for the `india-digilocker-aadhaar-match` provider
|
|
67
67
|
* @type {AadhaarInput}
|
|
68
68
|
* @memberof ProviderInput
|
|
69
69
|
*/
|
|
@@ -75,25 +75,25 @@ export interface ProviderInput {
|
|
|
75
75
|
*/
|
|
76
76
|
bangladeshNationalId?: BangladeshNidInput | null;
|
|
77
77
|
/**
|
|
78
|
-
* Input for the `
|
|
78
|
+
* Input for the `brazil-cpf-lookup` provider
|
|
79
79
|
* @type {BrazilCpfCheckInput}
|
|
80
80
|
* @memberof ProviderInput
|
|
81
81
|
*/
|
|
82
82
|
brazilCpfCheck?: BrazilCpfCheckInput | null;
|
|
83
83
|
/**
|
|
84
|
-
* Input for the `
|
|
84
|
+
* Input for the `brazil-digital-cnh` provider
|
|
85
85
|
* @type {BrazilDigitalCnhInput}
|
|
86
86
|
* @memberof ProviderInput
|
|
87
87
|
*/
|
|
88
88
|
brazilDigitalCnh?: BrazilDigitalCnhInput | null;
|
|
89
89
|
/**
|
|
90
|
-
* Input for the `
|
|
90
|
+
* Input for the `philippines-philsys-match` provider
|
|
91
91
|
* @type {PhilippineMatchInput}
|
|
92
92
|
* @memberof ProviderInput
|
|
93
93
|
*/
|
|
94
94
|
philippineMatch?: PhilippineMatchInput | null;
|
|
95
95
|
/**
|
|
96
|
-
* Input for the `
|
|
96
|
+
* Input for the `philippines-digital-national-id-qr` and `philippines-physical-national-id-qr` providers
|
|
97
97
|
* @type {PhilippineQRInput}
|
|
98
98
|
* @memberof ProviderInput
|
|
99
99
|
*/
|
|
@@ -111,13 +111,13 @@ export interface ProviderInput {
|
|
|
111
111
|
*/
|
|
112
112
|
mobileId?: MobileIdInput | null;
|
|
113
113
|
/**
|
|
114
|
-
* Input for the `idin` provider
|
|
114
|
+
* Input for the `netherlands-idin` provider
|
|
115
115
|
* @type {IdinInput}
|
|
116
116
|
* @memberof ProviderInput
|
|
117
117
|
*/
|
|
118
118
|
idin?: IdinInput | null;
|
|
119
119
|
/**
|
|
120
|
-
* Input for the `spid` provider
|
|
120
|
+
* Input for the `italy-spid` provider
|
|
121
121
|
* @type {SpidInput}
|
|
122
122
|
* @memberof ProviderInput
|
|
123
123
|
*/
|
|
@@ -22,6 +22,12 @@ export interface RecommendRequest {
|
|
|
22
22
|
* @memberof RecommendRequest
|
|
23
23
|
*/
|
|
24
24
|
recommendationInfo?: RecommendationInfo | null;
|
|
25
|
+
/**
|
|
26
|
+
* Filter providers by health status. Valid values: "online", "offline", "all". Defaults to "online".
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof RecommendRequest
|
|
29
|
+
*/
|
|
30
|
+
health?: string | null;
|
|
25
31
|
}
|
|
26
32
|
/**
|
|
27
33
|
* Check if a given object implements the RecommendRequest interface.
|
|
@@ -34,6 +34,7 @@ function RecommendRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
}
|
|
35
35
|
return {
|
|
36
36
|
'recommendationInfo': json['recommendationInfo'] == null ? undefined : (0, RecommendationInfo_1.RecommendationInfoFromJSON)(json['recommendationInfo']),
|
|
37
|
+
'health': json['health'] == null ? undefined : json['health'],
|
|
37
38
|
};
|
|
38
39
|
}
|
|
39
40
|
function RecommendRequestToJSON(json) {
|
|
@@ -45,5 +46,6 @@ function RecommendRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
45
46
|
}
|
|
46
47
|
return {
|
|
47
48
|
'recommendationInfo': (0, RecommendationInfo_1.RecommendationInfoToJSON)(value['recommendationInfo']),
|
|
49
|
+
'health': value['health'],
|
|
48
50
|
};
|
|
49
51
|
}
|
|
@@ -17,19 +17,21 @@ import type { ProviderInformation } from './ProviderInformation';
|
|
|
17
17
|
*/
|
|
18
18
|
export interface RecommendResponse {
|
|
19
19
|
/**
|
|
20
|
-
* The
|
|
20
|
+
* The providers which the user is known to have a credential with.
|
|
21
21
|
* @type {Array<ProviderInformation>}
|
|
22
22
|
* @memberof RecommendResponse
|
|
23
23
|
*/
|
|
24
24
|
recognized: Array<ProviderInformation>;
|
|
25
25
|
/**
|
|
26
|
-
* The
|
|
26
|
+
* The providers which the user is deemed sufficiently likely to have a credential with.
|
|
27
27
|
* @type {Array<ProviderInformation>}
|
|
28
28
|
* @memberof RecommendResponse
|
|
29
29
|
*/
|
|
30
30
|
relevant: Array<ProviderInformation>;
|
|
31
31
|
/**
|
|
32
|
-
* The
|
|
32
|
+
* The providers which the user is unlikely to have a credential with.
|
|
33
|
+
*
|
|
34
|
+
* This includes all providers available to your app which were not included in the Recognized or Relevant lists.
|
|
33
35
|
* @type {Array<ProviderInformation>}
|
|
34
36
|
* @memberof RecommendResponse
|
|
35
37
|
*/
|
package/dist/models/Session.d.ts
CHANGED
|
@@ -54,7 +54,7 @@ export interface Session {
|
|
|
54
54
|
*/
|
|
55
55
|
created: number;
|
|
56
56
|
/**
|
|
57
|
-
* The unix timestamp, in seconds, when this session's
|
|
57
|
+
* The unix timestamp, in seconds, when this session's data was last updated
|
|
58
58
|
* @type {number}
|
|
59
59
|
* @memberof Session
|
|
60
60
|
*/
|
|
@@ -19,8 +19,15 @@ export interface SmartIdInput {
|
|
|
19
19
|
* The user's Smart ID Document Number
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof SmartIdInput
|
|
22
|
+
* @deprecated
|
|
22
23
|
*/
|
|
23
24
|
smartIdDocumentNumber?: string | null;
|
|
25
|
+
/**
|
|
26
|
+
* The user's Smart ID ETSI number or document number.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof SmartIdInput
|
|
29
|
+
*/
|
|
30
|
+
smartIdNumber?: string | null;
|
|
24
31
|
}
|
|
25
32
|
/**
|
|
26
33
|
* Check if a given object implements the SmartIdInput interface.
|
|
@@ -33,6 +33,7 @@ function SmartIdInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
33
|
}
|
|
34
34
|
return {
|
|
35
35
|
'smartIdDocumentNumber': json['smartIdDocumentNumber'] == null ? undefined : json['smartIdDocumentNumber'],
|
|
36
|
+
'smartIdNumber': json['smartIdNumber'] == null ? undefined : json['smartIdNumber'],
|
|
36
37
|
};
|
|
37
38
|
}
|
|
38
39
|
function SmartIdInputToJSON(json) {
|
|
@@ -44,5 +45,6 @@ function SmartIdInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
44
45
|
}
|
|
45
46
|
return {
|
|
46
47
|
'smartIdDocumentNumber': value['smartIdDocumentNumber'],
|
|
48
|
+
'smartIdNumber': value['smartIdNumber'],
|
|
47
49
|
};
|
|
48
50
|
}
|
|
@@ -31,9 +31,20 @@ export interface SubProviderMetadata {
|
|
|
31
31
|
*/
|
|
32
32
|
name: string;
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* The Provider's subtext recommended to be shown next to the name.
|
|
35
|
+
*
|
|
36
|
+
* This is flavor text, not a full, human-readable description of the provider.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof SubProviderMetadata
|
|
39
|
+
*/
|
|
40
|
+
subtext: string;
|
|
41
|
+
/**
|
|
42
|
+
* The Provider's subtext recommended to be shown next to the name.
|
|
43
|
+
*
|
|
44
|
+
* This is flavor text, not a full, human-readable description of the provider.
|
|
35
45
|
* @type {string}
|
|
36
46
|
* @memberof SubProviderMetadata
|
|
47
|
+
* @deprecated
|
|
37
48
|
*/
|
|
38
49
|
description: string;
|
|
39
50
|
/**
|
|
@@ -26,6 +26,8 @@ function instanceOfSubProviderMetadata(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('name' in value) || value['name'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
+
if (!('subtext' in value) || value['subtext'] === undefined)
|
|
30
|
+
return false;
|
|
29
31
|
if (!('description' in value) || value['description'] === undefined)
|
|
30
32
|
return false;
|
|
31
33
|
if (!('logoUrl' in value) || value['logoUrl'] === undefined)
|
|
@@ -42,6 +44,7 @@ function SubProviderMetadataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
44
|
return {
|
|
43
45
|
'id': json['id'],
|
|
44
46
|
'name': json['name'],
|
|
47
|
+
'subtext': json['subtext'],
|
|
45
48
|
'description': json['description'],
|
|
46
49
|
'logoUrl': json['logoUrl'],
|
|
47
50
|
};
|
|
@@ -56,6 +59,7 @@ function SubProviderMetadataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
56
59
|
return {
|
|
57
60
|
'id': value['id'],
|
|
58
61
|
'name': value['name'],
|
|
62
|
+
'subtext': value['subtext'],
|
|
59
63
|
'description': value['description'],
|
|
60
64
|
'logoUrl': value['logoUrl'],
|
|
61
65
|
};
|
package/dist/models/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export * from './BangladeshNidInput';
|
|
|
5
5
|
export * from './BrazilCpfCheckInput';
|
|
6
6
|
export * from './BrazilDigitalCnhInput';
|
|
7
7
|
export * from './CancelSessionResponse';
|
|
8
|
+
export * from './ContractField';
|
|
8
9
|
export * from './CreateAdvancedProviderSessionRequest';
|
|
9
10
|
export * from './CreateAdvancedProviderSessionResponse';
|
|
10
11
|
export * from './CreateHostedProviderSessionRequest';
|
|
@@ -14,6 +15,7 @@ export * from './CreateWidgetSessionResponse';
|
|
|
14
15
|
export * from './DocumentData';
|
|
15
16
|
export * from './DocumentScanAttachments';
|
|
16
17
|
export * from './DocumentType';
|
|
18
|
+
export * from './FieldAvailability';
|
|
17
19
|
export * from './GetAttachmentRequest';
|
|
18
20
|
export * from './GetAttachmentResponse';
|
|
19
21
|
export * from './GetSessionResponse';
|
package/dist/models/index.js
CHANGED
|
@@ -23,6 +23,7 @@ __exportStar(require("./BangladeshNidInput"), exports);
|
|
|
23
23
|
__exportStar(require("./BrazilCpfCheckInput"), exports);
|
|
24
24
|
__exportStar(require("./BrazilDigitalCnhInput"), exports);
|
|
25
25
|
__exportStar(require("./CancelSessionResponse"), exports);
|
|
26
|
+
__exportStar(require("./ContractField"), exports);
|
|
26
27
|
__exportStar(require("./CreateAdvancedProviderSessionRequest"), exports);
|
|
27
28
|
__exportStar(require("./CreateAdvancedProviderSessionResponse"), exports);
|
|
28
29
|
__exportStar(require("./CreateHostedProviderSessionRequest"), exports);
|
|
@@ -32,6 +33,7 @@ __exportStar(require("./CreateWidgetSessionResponse"), exports);
|
|
|
32
33
|
__exportStar(require("./DocumentData"), exports);
|
|
33
34
|
__exportStar(require("./DocumentScanAttachments"), exports);
|
|
34
35
|
__exportStar(require("./DocumentType"), exports);
|
|
36
|
+
__exportStar(require("./FieldAvailability"), exports);
|
|
35
37
|
__exportStar(require("./GetAttachmentRequest"), exports);
|
|
36
38
|
__exportStar(require("./GetAttachmentResponse"), exports);
|
|
37
39
|
__exportStar(require("./GetSessionResponse"), exports);
|
package/package.json
CHANGED
|
@@ -40,7 +40,7 @@ export interface GetAttachmentOperationRequest {
|
|
|
40
40
|
*/
|
|
41
41
|
export interface AttachmentsApiInterface {
|
|
42
42
|
/**
|
|
43
|
-
* Exchange an Attachment Access Key (from `IdentityData.
|
|
43
|
+
* Exchange an Attachment Access Key (from `IdentityData.AttachmentAccessKeys`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
|
|
44
44
|
* @summary Get Attachment
|
|
45
45
|
* @param {GetAttachmentRequest} [getAttachmentRequest]
|
|
46
46
|
* @param {*} [options] Override http request option.
|
|
@@ -50,7 +50,7 @@ export interface AttachmentsApiInterface {
|
|
|
50
50
|
getAttachmentRaw(requestParameters: GetAttachmentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAttachmentResponse>>;
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
|
-
* Exchange an Attachment Access Key (from `IdentityData.
|
|
53
|
+
* Exchange an Attachment Access Key (from `IdentityData.AttachmentAccessKeys`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
|
|
54
54
|
* Get Attachment
|
|
55
55
|
*/
|
|
56
56
|
getAttachment(getAttachmentRequest?: GetAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAttachmentResponse>;
|
|
@@ -63,7 +63,7 @@ export interface AttachmentsApiInterface {
|
|
|
63
63
|
export class AttachmentsApi extends runtime.BaseAPI implements AttachmentsApiInterface {
|
|
64
64
|
|
|
65
65
|
/**
|
|
66
|
-
* Exchange an Attachment Access Key (from `IdentityData.
|
|
66
|
+
* Exchange an Attachment Access Key (from `IdentityData.AttachmentAccessKeys`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
|
|
67
67
|
* Get Attachment
|
|
68
68
|
*/
|
|
69
69
|
async getAttachmentRaw(requestParameters: GetAttachmentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAttachmentResponse>> {
|
|
@@ -93,7 +93,7 @@ export class AttachmentsApi extends runtime.BaseAPI implements AttachmentsApiInt
|
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
/**
|
|
96
|
-
* Exchange an Attachment Access Key (from `IdentityData.
|
|
96
|
+
* Exchange an Attachment Access Key (from `IdentityData.AttachmentAccessKeys`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
|
|
97
97
|
* Get Attachment
|
|
98
98
|
*/
|
|
99
99
|
async getAttachment(getAttachmentRequest?: GetAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAttachmentResponse> {
|
package/src/apis/NetworkApi.ts
CHANGED
|
@@ -34,6 +34,10 @@ import {
|
|
|
34
34
|
RecommendResponseToJSON,
|
|
35
35
|
} from '../models/index';
|
|
36
36
|
|
|
37
|
+
export interface ListProvidersRequest {
|
|
38
|
+
health?: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
37
41
|
export interface RecommendProvidersRequest {
|
|
38
42
|
recommendRequest?: RecommendRequest;
|
|
39
43
|
}
|
|
@@ -63,20 +67,21 @@ export interface NetworkApiInterface {
|
|
|
63
67
|
/**
|
|
64
68
|
* List all identity providers available for use
|
|
65
69
|
* @summary List Providers
|
|
70
|
+
* @param {string} [health] Filter providers by health status. Valid values: \"online\", \"offline\", \"all\". Defaults to \"all\".
|
|
66
71
|
* @param {*} [options] Override http request option.
|
|
67
72
|
* @throws {RequiredError}
|
|
68
73
|
* @memberof NetworkApiInterface
|
|
69
74
|
*/
|
|
70
|
-
listProvidersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListProvidersResponse>>;
|
|
75
|
+
listProvidersRaw(requestParameters: ListProvidersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListProvidersResponse>>;
|
|
71
76
|
|
|
72
77
|
/**
|
|
73
78
|
* List all identity providers available for use
|
|
74
79
|
* List Providers
|
|
75
80
|
*/
|
|
76
|
-
listProviders(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListProvidersResponse>;
|
|
81
|
+
listProviders(health?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListProvidersResponse>;
|
|
77
82
|
|
|
78
83
|
/**
|
|
79
|
-
* Generate provider recommendations based on the
|
|
84
|
+
* Generate provider recommendations based on signals about the user\'s location (phone number, countries, states).
|
|
80
85
|
* @summary Recommend Providers
|
|
81
86
|
* @param {RecommendRequest} [recommendRequest]
|
|
82
87
|
* @param {*} [options] Override http request option.
|
|
@@ -86,7 +91,7 @@ export interface NetworkApiInterface {
|
|
|
86
91
|
recommendProvidersRaw(requestParameters: RecommendProvidersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RecommendResponse>>;
|
|
87
92
|
|
|
88
93
|
/**
|
|
89
|
-
* Generate provider recommendations based on the
|
|
94
|
+
* Generate provider recommendations based on signals about the user\'s location (phone number, countries, states).
|
|
90
95
|
* Recommend Providers
|
|
91
96
|
*/
|
|
92
97
|
recommendProviders(recommendRequest?: RecommendRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RecommendResponse>;
|
|
@@ -138,9 +143,13 @@ export class NetworkApi extends runtime.BaseAPI implements NetworkApiInterface {
|
|
|
138
143
|
* List all identity providers available for use
|
|
139
144
|
* List Providers
|
|
140
145
|
*/
|
|
141
|
-
async listProvidersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListProvidersResponse>> {
|
|
146
|
+
async listProvidersRaw(requestParameters: ListProvidersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListProvidersResponse>> {
|
|
142
147
|
const queryParameters: any = {};
|
|
143
148
|
|
|
149
|
+
if (requestParameters['health'] != null) {
|
|
150
|
+
queryParameters['health'] = requestParameters['health'];
|
|
151
|
+
}
|
|
152
|
+
|
|
144
153
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
145
154
|
|
|
146
155
|
if (this.configuration && this.configuration.accessToken) {
|
|
@@ -165,13 +174,13 @@ export class NetworkApi extends runtime.BaseAPI implements NetworkApiInterface {
|
|
|
165
174
|
* List all identity providers available for use
|
|
166
175
|
* List Providers
|
|
167
176
|
*/
|
|
168
|
-
async listProviders(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListProvidersResponse> {
|
|
169
|
-
const response = await this.listProvidersRaw(initOverrides);
|
|
177
|
+
async listProviders(health?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListProvidersResponse> {
|
|
178
|
+
const response = await this.listProvidersRaw({ health: health }, initOverrides);
|
|
170
179
|
return await response.value();
|
|
171
180
|
}
|
|
172
181
|
|
|
173
182
|
/**
|
|
174
|
-
* Generate provider recommendations based on the
|
|
183
|
+
* Generate provider recommendations based on signals about the user\'s location (phone number, countries, states).
|
|
175
184
|
* Recommend Providers
|
|
176
185
|
*/
|
|
177
186
|
async recommendProvidersRaw(requestParameters: RecommendProvidersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RecommendResponse>> {
|
|
@@ -201,7 +210,7 @@ export class NetworkApi extends runtime.BaseAPI implements NetworkApiInterface {
|
|
|
201
210
|
}
|
|
202
211
|
|
|
203
212
|
/**
|
|
204
|
-
* Generate provider recommendations based on the
|
|
213
|
+
* Generate provider recommendations based on signals about the user\'s location (phone number, countries, states).
|
|
205
214
|
* Recommend Providers
|
|
206
215
|
*/
|
|
207
216
|
async recommendProviders(recommendRequest?: RecommendRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RecommendResponse> {
|
package/src/apis/SessionsApi.ts
CHANGED
|
@@ -231,7 +231,7 @@ export interface SessionsApiInterface {
|
|
|
231
231
|
listSessions(orderBy?: SessionOrdering, orderDirection?: OrderDirection, pageSize?: number, page?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListSessionsResponse>;
|
|
232
232
|
|
|
233
233
|
/**
|
|
234
|
-
* Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately.
|
|
234
|
+
* Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately.
|
|
235
235
|
* @summary Redact Session
|
|
236
236
|
* @param {string} sessionId
|
|
237
237
|
* @param {*} [options] Override http request option.
|
|
@@ -241,7 +241,7 @@ export interface SessionsApiInterface {
|
|
|
241
241
|
redactSessionRaw(requestParameters: RedactSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
242
242
|
|
|
243
243
|
/**
|
|
244
|
-
* Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately.
|
|
244
|
+
* Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately.
|
|
245
245
|
* Redact Session
|
|
246
246
|
*/
|
|
247
247
|
redactSession(sessionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
@@ -570,7 +570,7 @@ export class SessionsApi extends runtime.BaseAPI implements SessionsApiInterface
|
|
|
570
570
|
}
|
|
571
571
|
|
|
572
572
|
/**
|
|
573
|
-
* Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately.
|
|
573
|
+
* Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately.
|
|
574
574
|
* Redact Session
|
|
575
575
|
*/
|
|
576
576
|
async redactSessionRaw(requestParameters: RedactSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
@@ -604,7 +604,7 @@ export class SessionsApi extends runtime.BaseAPI implements SessionsApiInterface
|
|
|
604
604
|
}
|
|
605
605
|
|
|
606
606
|
/**
|
|
607
|
-
* Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately.
|
|
607
|
+
* Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately.
|
|
608
608
|
* Redact Session
|
|
609
609
|
*/
|
|
610
610
|
async redactSession(sessionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
@@ -24,19 +24,19 @@ export interface BangladeshNidInput {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof BangladeshNidInput
|
|
26
26
|
*/
|
|
27
|
-
nationalIdNumber
|
|
27
|
+
nationalIdNumber: string;
|
|
28
28
|
/**
|
|
29
29
|
* The user's date of birth, in `YYYY-MM-DD` format
|
|
30
30
|
* @type {Date}
|
|
31
31
|
* @memberof BangladeshNidInput
|
|
32
32
|
*/
|
|
33
|
-
dateOfBirth
|
|
33
|
+
dateOfBirth: Date;
|
|
34
34
|
/**
|
|
35
35
|
* The user's full name
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof BangladeshNidInput
|
|
38
38
|
*/
|
|
39
|
-
name
|
|
39
|
+
name: string;
|
|
40
40
|
/**
|
|
41
41
|
* The raw bytes of the photo file collected from the user.
|
|
42
42
|
* @type {string}
|
|
@@ -57,6 +57,9 @@ export interface BangladeshNidInput {
|
|
|
57
57
|
* Check if a given object implements the BangladeshNidInput interface.
|
|
58
58
|
*/
|
|
59
59
|
export function instanceOfBangladeshNidInput(value: object): value is BangladeshNidInput {
|
|
60
|
+
if (!('nationalIdNumber' in value) || value['nationalIdNumber'] === undefined) return false;
|
|
61
|
+
if (!('dateOfBirth' in value) || value['dateOfBirth'] === undefined) return false;
|
|
62
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
60
63
|
return true;
|
|
61
64
|
}
|
|
62
65
|
|
|
@@ -70,9 +73,9 @@ export function BangladeshNidInputFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
70
73
|
}
|
|
71
74
|
return {
|
|
72
75
|
|
|
73
|
-
'nationalIdNumber': json['nationalIdNumber']
|
|
74
|
-
'dateOfBirth':
|
|
75
|
-
'name': json['name']
|
|
76
|
+
'nationalIdNumber': json['nationalIdNumber'],
|
|
77
|
+
'dateOfBirth': (new Date(json['dateOfBirth'])),
|
|
78
|
+
'name': json['name'],
|
|
76
79
|
'photoByes': json['photoByes'] == null ? undefined : json['photoByes'],
|
|
77
80
|
'photoImageMimeType': json['photoImageMimeType'] == null ? undefined : json['photoImageMimeType'],
|
|
78
81
|
};
|
|
@@ -90,7 +93,7 @@ export function BangladeshNidInputToJSONTyped(value?: BangladeshNidInput | null,
|
|
|
90
93
|
return {
|
|
91
94
|
|
|
92
95
|
'nationalIdNumber': value['nationalIdNumber'],
|
|
93
|
-
'dateOfBirth':
|
|
96
|
+
'dateOfBirth': ((value['dateOfBirth']).toISOString().substring(0,10)),
|
|
94
97
|
'name': value['name'],
|
|
95
98
|
'photoByes': value['photoByes'],
|
|
96
99
|
'photoImageMimeType': value['photoImageMimeType'],
|