@trinsic/api 2.0.2 → 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 +3 -2
- 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/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -1
- 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/apis/index.d.ts +0 -1
- package/dist/esm/apis/index.js +0 -1
- package/dist/esm/models/BangladeshNidInput.d.ts +58 -0
- package/dist/esm/models/BangladeshNidInput.js +55 -0
- package/dist/esm/models/BrazilDigitalCnhInput.d.ts +0 -6
- 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/HttpValidationProblemDetails.d.ts +5 -5
- package/dist/esm/models/IntegrationCapability.d.ts +1 -0
- package/dist/esm/models/IntegrationCapability.js +2 -1
- package/dist/esm/models/ProblemDetails.d.ts +5 -5
- 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 +15 -15
- package/dist/esm/models/ProviderInput.js +3 -3
- 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/RefreshStepContentRequest.d.ts +1 -1
- package/dist/esm/models/RefreshStepContentRequest.js +3 -1
- 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 +3 -1
- package/dist/esm/models/index.js +3 -1
- package/dist/models/BangladeshNidInput.d.ts +58 -0
- package/dist/models/BangladeshNidInput.js +62 -0
- package/dist/models/BrazilDigitalCnhInput.d.ts +0 -6
- 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/HttpValidationProblemDetails.d.ts +5 -5
- package/dist/models/IntegrationCapability.d.ts +1 -0
- package/dist/models/IntegrationCapability.js +2 -1
- package/dist/models/ProblemDetails.d.ts +5 -5
- 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 +15 -15
- package/dist/models/ProviderInput.js +3 -3
- 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/RefreshStepContentRequest.d.ts +1 -1
- package/dist/models/RefreshStepContentRequest.js +3 -1
- 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 +3 -1
- package/dist/models/index.js +3 -1
- 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/apis/index.ts +0 -1
- package/src/models/BangladeshNidInput.ts +102 -0
- package/src/models/BrazilDigitalCnhInput.ts +0 -6
- 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/HttpValidationProblemDetails.ts +5 -5
- package/src/models/IntegrationCapability.ts +2 -1
- package/src/models/ProblemDetails.ts +5 -5
- 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 +23 -23
- package/src/models/RecommendRequest.ts +8 -0
- package/src/models/RecommendResponse.ts +5 -3
- package/src/models/RefreshStepContentRequest.ts +3 -2
- 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 +3 -1
- package/dist/apis/WellKnownApi.d.ts +0 -41
- package/dist/apis/WellKnownApi.js +0 -61
- package/dist/esm/apis/WellKnownApi.d.ts +0 -41
- package/dist/esm/apis/WellKnownApi.js +0 -57
- package/dist/esm/models/BangladeshNationalIdInput.d.ts +0 -50
- package/dist/esm/models/BangladeshNationalIdInput.js +0 -47
- package/dist/models/BangladeshNationalIdInput.d.ts +0 -50
- package/dist/models/BangladeshNationalIdInput.js +0 -54
- package/src/apis/WellKnownApi.ts +0 -82
- package/src/models/BangladeshNationalIdInput.ts +0 -89
|
@@ -11,16 +11,27 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { SubProviderMetadataFromJSON, SubProviderMetadataToJSON, } from './SubProviderMetadata';
|
|
14
15
|
/**
|
|
15
16
|
* Check if a given object implements the ProviderInformation interface.
|
|
16
17
|
*/
|
|
17
18
|
export function instanceOfProviderInformation(value) {
|
|
19
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('logoUrl' in value) || value['logoUrl'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('subtext' in value) || value['subtext'] === undefined)
|
|
26
|
+
return false;
|
|
18
27
|
if (!('providerId' in value) || value['providerId'] === undefined)
|
|
19
28
|
return false;
|
|
20
29
|
if (!('providerDisplayName' in value) || value['providerDisplayName'] === undefined)
|
|
21
30
|
return false;
|
|
22
31
|
if (!('providerLogo' in value) || value['providerLogo'] === undefined)
|
|
23
32
|
return false;
|
|
33
|
+
if (!('health' in value) || value['health'] === undefined)
|
|
34
|
+
return false;
|
|
24
35
|
return true;
|
|
25
36
|
}
|
|
26
37
|
export function ProviderInformationFromJSON(json) {
|
|
@@ -31,9 +42,15 @@ export function ProviderInformationFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
42
|
return json;
|
|
32
43
|
}
|
|
33
44
|
return {
|
|
45
|
+
'id': json['id'],
|
|
46
|
+
'name': json['name'],
|
|
47
|
+
'logoUrl': json['logoUrl'],
|
|
48
|
+
'subtext': json['subtext'],
|
|
34
49
|
'providerId': json['providerId'],
|
|
35
50
|
'providerDisplayName': json['providerDisplayName'],
|
|
36
51
|
'providerLogo': json['providerLogo'],
|
|
52
|
+
'health': json['health'],
|
|
53
|
+
'subProviders': json['subProviders'] == null ? undefined : (json['subProviders'].map(SubProviderMetadataFromJSON)),
|
|
37
54
|
};
|
|
38
55
|
}
|
|
39
56
|
export function ProviderInformationToJSON(json) {
|
|
@@ -43,5 +60,15 @@ export function ProviderInformationToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
43
60
|
if (value == null) {
|
|
44
61
|
return value;
|
|
45
62
|
}
|
|
46
|
-
return {
|
|
63
|
+
return {
|
|
64
|
+
'id': value['id'],
|
|
65
|
+
'name': value['name'],
|
|
66
|
+
'logoUrl': value['logoUrl'],
|
|
67
|
+
'subtext': value['subtext'],
|
|
68
|
+
'providerId': value['providerId'],
|
|
69
|
+
'providerDisplayName': value['providerDisplayName'],
|
|
70
|
+
'providerLogo': value['providerLogo'],
|
|
71
|
+
'health': value['health'],
|
|
72
|
+
'subProviders': value['subProviders'] == null ? undefined : (value['subProviders'].map(SubProviderMetadataToJSON)),
|
|
73
|
+
};
|
|
47
74
|
}
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { BangladeshNationalIdInput } from './BangladeshNationalIdInput';
|
|
13
12
|
import type { BrazilCpfCheckInput } from './BrazilCpfCheckInput';
|
|
14
13
|
import type { MexicoCurpInput } from './MexicoCurpInput';
|
|
15
14
|
import type { BrazilDigitalCnhInput } from './BrazilDigitalCnhInput';
|
|
@@ -18,6 +17,7 @@ import type { SpidInput } from './SpidInput';
|
|
|
18
17
|
import type { SouthAfricaNidInput } from './SouthAfricaNidInput';
|
|
19
18
|
import type { PhilippineMatchInput } from './PhilippineMatchInput';
|
|
20
19
|
import type { PhilippineQRInput } from './PhilippineQRInput';
|
|
20
|
+
import type { BangladeshNidInput } from './BangladeshNidInput';
|
|
21
21
|
import type { AadhaarInput } from './AadhaarInput';
|
|
22
22
|
import type { KenyaNidInput } from './KenyaNidInput';
|
|
23
23
|
import type { NigeriaNinInput } from './NigeriaNinInput';
|
|
@@ -33,67 +33,67 @@ 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
|
*/
|
|
70
70
|
aadhaar?: AadhaarInput | null;
|
|
71
71
|
/**
|
|
72
72
|
* Input for the `bangladesh-nid` provider
|
|
73
|
-
* @type {
|
|
73
|
+
* @type {BangladeshNidInput}
|
|
74
74
|
* @memberof ProviderInput
|
|
75
75
|
*/
|
|
76
|
-
bangladeshNationalId?:
|
|
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
|
*/
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
import { BangladeshNationalIdInputFromJSON, BangladeshNationalIdInputToJSON, } from './BangladeshNationalIdInput';
|
|
15
14
|
import { BrazilCpfCheckInputFromJSON, BrazilCpfCheckInputToJSON, } from './BrazilCpfCheckInput';
|
|
16
15
|
import { MexicoCurpInputFromJSON, MexicoCurpInputToJSON, } from './MexicoCurpInput';
|
|
17
16
|
import { BrazilDigitalCnhInputFromJSON, BrazilDigitalCnhInputToJSON, } from './BrazilDigitalCnhInput';
|
|
@@ -20,6 +19,7 @@ import { SpidInputFromJSON, SpidInputToJSON, } from './SpidInput';
|
|
|
20
19
|
import { SouthAfricaNidInputFromJSON, SouthAfricaNidInputToJSON, } from './SouthAfricaNidInput';
|
|
21
20
|
import { PhilippineMatchInputFromJSON, PhilippineMatchInputToJSON, } from './PhilippineMatchInput';
|
|
22
21
|
import { PhilippineQRInputFromJSON, PhilippineQRInputToJSON, } from './PhilippineQRInput';
|
|
22
|
+
import { BangladeshNidInputFromJSON, BangladeshNidInputToJSON, } from './BangladeshNidInput';
|
|
23
23
|
import { AadhaarInputFromJSON, AadhaarInputToJSON, } from './AadhaarInput';
|
|
24
24
|
import { KenyaNidInputFromJSON, KenyaNidInputToJSON, } from './KenyaNidInput';
|
|
25
25
|
import { NigeriaNinInputFromJSON, NigeriaNinInputToJSON, } from './NigeriaNinInput';
|
|
@@ -48,7 +48,7 @@ export function ProviderInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
48
|
'kenyaNid': json['kenyaNid'] == null ? undefined : KenyaNidInputFromJSON(json['kenyaNid']),
|
|
49
49
|
'nigeriaNin': json['nigeriaNin'] == null ? undefined : NigeriaNinInputFromJSON(json['nigeriaNin']),
|
|
50
50
|
'aadhaar': json['aadhaar'] == null ? undefined : AadhaarInputFromJSON(json['aadhaar']),
|
|
51
|
-
'bangladeshNationalId': json['bangladeshNationalId'] == null ? undefined :
|
|
51
|
+
'bangladeshNationalId': json['bangladeshNationalId'] == null ? undefined : BangladeshNidInputFromJSON(json['bangladeshNationalId']),
|
|
52
52
|
'brazilCpfCheck': json['brazilCpfCheck'] == null ? undefined : BrazilCpfCheckInputFromJSON(json['brazilCpfCheck']),
|
|
53
53
|
'brazilDigitalCnh': json['brazilDigitalCnh'] == null ? undefined : BrazilDigitalCnhInputFromJSON(json['brazilDigitalCnh']),
|
|
54
54
|
'philippineMatch': json['philippineMatch'] == null ? undefined : PhilippineMatchInputFromJSON(json['philippineMatch']),
|
|
@@ -75,7 +75,7 @@ export function ProviderInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
75
75
|
'kenyaNid': KenyaNidInputToJSON(value['kenyaNid']),
|
|
76
76
|
'nigeriaNin': NigeriaNinInputToJSON(value['nigeriaNin']),
|
|
77
77
|
'aadhaar': AadhaarInputToJSON(value['aadhaar']),
|
|
78
|
-
'bangladeshNationalId':
|
|
78
|
+
'bangladeshNationalId': BangladeshNidInputToJSON(value['bangladeshNationalId']),
|
|
79
79
|
'brazilCpfCheck': BrazilCpfCheckInputToJSON(value['brazilCpfCheck']),
|
|
80
80
|
'brazilDigitalCnh': BrazilDigitalCnhInputToJSON(value['brazilDigitalCnh']),
|
|
81
81
|
'philippineMatch': PhilippineMatchInputToJSON(value['philippineMatch']),
|
|
@@ -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.
|
|
@@ -27,6 +27,7 @@ export function RecommendRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
27
27
|
}
|
|
28
28
|
return {
|
|
29
29
|
'recommendationInfo': json['recommendationInfo'] == null ? undefined : RecommendationInfoFromJSON(json['recommendationInfo']),
|
|
30
|
+
'health': json['health'] == null ? undefined : json['health'],
|
|
30
31
|
};
|
|
31
32
|
}
|
|
32
33
|
export function RecommendRequestToJSON(json) {
|
|
@@ -38,5 +39,6 @@ export function RecommendRequestToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
38
39
|
}
|
|
39
40
|
return {
|
|
40
41
|
'recommendationInfo': RecommendationInfoToJSON(value['recommendationInfo']),
|
|
42
|
+
'health': value['health'],
|
|
41
43
|
};
|
|
42
44
|
}
|
|
@@ -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
|
*/
|
|
@@ -20,7 +20,7 @@ export interface RefreshStepContentRequest {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof RefreshStepContentRequest
|
|
22
22
|
*/
|
|
23
|
-
resultsAccessKey
|
|
23
|
+
resultsAccessKey: string;
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
26
|
* Check if a given object implements the RefreshStepContentRequest interface.
|
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
* Check if a given object implements the RefreshStepContentRequest interface.
|
|
16
16
|
*/
|
|
17
17
|
export function instanceOfRefreshStepContentRequest(value) {
|
|
18
|
+
if (!('resultsAccessKey' in value) || value['resultsAccessKey'] === undefined)
|
|
19
|
+
return false;
|
|
18
20
|
return true;
|
|
19
21
|
}
|
|
20
22
|
export function RefreshStepContentRequestFromJSON(json) {
|
|
@@ -25,7 +27,7 @@ export function RefreshStepContentRequestFromJSONTyped(json, ignoreDiscriminator
|
|
|
25
27
|
return json;
|
|
26
28
|
}
|
|
27
29
|
return {
|
|
28
|
-
'resultsAccessKey': json['resultsAccessKey']
|
|
30
|
+
'resultsAccessKey': json['resultsAccessKey'],
|
|
29
31
|
};
|
|
30
32
|
}
|
|
31
33
|
export function RefreshStepContentRequestToJSON(json) {
|
|
@@ -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.
|
|
@@ -26,6 +26,7 @@ export function SmartIdInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
26
26
|
}
|
|
27
27
|
return {
|
|
28
28
|
'smartIdDocumentNumber': json['smartIdDocumentNumber'] == null ? undefined : json['smartIdDocumentNumber'],
|
|
29
|
+
'smartIdNumber': json['smartIdNumber'] == null ? undefined : json['smartIdNumber'],
|
|
29
30
|
};
|
|
30
31
|
}
|
|
31
32
|
export function SmartIdInputToJSON(json) {
|
|
@@ -37,5 +38,6 @@ export function SmartIdInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
37
38
|
}
|
|
38
39
|
return {
|
|
39
40
|
'smartIdDocumentNumber': value['smartIdDocumentNumber'],
|
|
41
|
+
'smartIdNumber': value['smartIdNumber'],
|
|
40
42
|
};
|
|
41
43
|
}
|
|
@@ -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
|
/**
|
|
@@ -19,6 +19,8 @@ export function instanceOfSubProviderMetadata(value) {
|
|
|
19
19
|
return false;
|
|
20
20
|
if (!('name' in value) || value['name'] === undefined)
|
|
21
21
|
return false;
|
|
22
|
+
if (!('subtext' in value) || value['subtext'] === undefined)
|
|
23
|
+
return false;
|
|
22
24
|
if (!('description' in value) || value['description'] === undefined)
|
|
23
25
|
return false;
|
|
24
26
|
if (!('logoUrl' in value) || value['logoUrl'] === undefined)
|
|
@@ -35,6 +37,7 @@ export function SubProviderMetadataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
37
|
return {
|
|
36
38
|
'id': json['id'],
|
|
37
39
|
'name': json['name'],
|
|
40
|
+
'subtext': json['subtext'],
|
|
38
41
|
'description': json['description'],
|
|
39
42
|
'logoUrl': json['logoUrl'],
|
|
40
43
|
};
|
|
@@ -49,6 +52,7 @@ export function SubProviderMetadataToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
49
52
|
return {
|
|
50
53
|
'id': value['id'],
|
|
51
54
|
'name': value['name'],
|
|
55
|
+
'subtext': value['subtext'],
|
|
52
56
|
'description': value['description'],
|
|
53
57
|
'logoUrl': value['logoUrl'],
|
|
54
58
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
export * from './AadhaarInput';
|
|
2
2
|
export * from './Address';
|
|
3
3
|
export * from './AttachmentAccessKeys';
|
|
4
|
-
export * from './
|
|
4
|
+
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/esm/models/index.js
CHANGED
|
@@ -3,10 +3,11 @@
|
|
|
3
3
|
export * from './AadhaarInput';
|
|
4
4
|
export * from './Address';
|
|
5
5
|
export * from './AttachmentAccessKeys';
|
|
6
|
-
export * from './
|
|
6
|
+
export * from './BangladeshNidInput';
|
|
7
7
|
export * from './BrazilCpfCheckInput';
|
|
8
8
|
export * from './BrazilDigitalCnhInput';
|
|
9
9
|
export * from './CancelSessionResponse';
|
|
10
|
+
export * from './ContractField';
|
|
10
11
|
export * from './CreateAdvancedProviderSessionRequest';
|
|
11
12
|
export * from './CreateAdvancedProviderSessionResponse';
|
|
12
13
|
export * from './CreateHostedProviderSessionRequest';
|
|
@@ -16,6 +17,7 @@ export * from './CreateWidgetSessionResponse';
|
|
|
16
17
|
export * from './DocumentData';
|
|
17
18
|
export * from './DocumentScanAttachments';
|
|
18
19
|
export * from './DocumentType';
|
|
20
|
+
export * from './FieldAvailability';
|
|
19
21
|
export * from './GetAttachmentRequest';
|
|
20
22
|
export * from './GetAttachmentResponse';
|
|
21
23
|
export * from './GetSessionResponse';
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Trinsic API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface BangladeshNidInput
|
|
16
|
+
*/
|
|
17
|
+
export interface BangladeshNidInput {
|
|
18
|
+
/**
|
|
19
|
+
* The user's Bangladesh National ID number.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof BangladeshNidInput
|
|
22
|
+
*/
|
|
23
|
+
nationalIdNumber: string;
|
|
24
|
+
/**
|
|
25
|
+
* The user's date of birth, in `YYYY-MM-DD` format
|
|
26
|
+
* @type {Date}
|
|
27
|
+
* @memberof BangladeshNidInput
|
|
28
|
+
*/
|
|
29
|
+
dateOfBirth: Date;
|
|
30
|
+
/**
|
|
31
|
+
* The user's full name
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof BangladeshNidInput
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
* The raw bytes of the photo file collected from the user.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof BangladeshNidInput
|
|
40
|
+
*/
|
|
41
|
+
photoByes?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* The MIME Type of the file contained in `PhotoByes`.
|
|
44
|
+
*
|
|
45
|
+
* Must be one of `image/jpeg`, or `image/png`.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof BangladeshNidInput
|
|
48
|
+
*/
|
|
49
|
+
photoImageMimeType?: string | null;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the BangladeshNidInput interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfBangladeshNidInput(value: object): value is BangladeshNidInput;
|
|
55
|
+
export declare function BangladeshNidInputFromJSON(json: any): BangladeshNidInput;
|
|
56
|
+
export declare function BangladeshNidInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): BangladeshNidInput;
|
|
57
|
+
export declare function BangladeshNidInputToJSON(json: any): BangladeshNidInput;
|
|
58
|
+
export declare function BangladeshNidInputToJSONTyped(value?: BangladeshNidInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Trinsic API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfBangladeshNidInput = instanceOfBangladeshNidInput;
|
|
17
|
+
exports.BangladeshNidInputFromJSON = BangladeshNidInputFromJSON;
|
|
18
|
+
exports.BangladeshNidInputFromJSONTyped = BangladeshNidInputFromJSONTyped;
|
|
19
|
+
exports.BangladeshNidInputToJSON = BangladeshNidInputToJSON;
|
|
20
|
+
exports.BangladeshNidInputToJSONTyped = BangladeshNidInputToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the BangladeshNidInput interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfBangladeshNidInput(value) {
|
|
25
|
+
if (!('nationalIdNumber' in value) || value['nationalIdNumber'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('dateOfBirth' in value) || value['dateOfBirth'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function BangladeshNidInputFromJSON(json) {
|
|
34
|
+
return BangladeshNidInputFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function BangladeshNidInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'nationalIdNumber': json['nationalIdNumber'],
|
|
42
|
+
'dateOfBirth': (new Date(json['dateOfBirth'])),
|
|
43
|
+
'name': json['name'],
|
|
44
|
+
'photoByes': json['photoByes'] == null ? undefined : json['photoByes'],
|
|
45
|
+
'photoImageMimeType': json['photoImageMimeType'] == null ? undefined : json['photoImageMimeType'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function BangladeshNidInputToJSON(json) {
|
|
49
|
+
return BangladeshNidInputToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function BangladeshNidInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'nationalIdNumber': value['nationalIdNumber'],
|
|
57
|
+
'dateOfBirth': ((value['dateOfBirth']).toISOString().substring(0, 10)),
|
|
58
|
+
'name': value['name'],
|
|
59
|
+
'photoByes': value['photoByes'],
|
|
60
|
+
'photoImageMimeType': value['photoImageMimeType'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -23,12 +23,6 @@ export interface BrazilDigitalCnhInput {
|
|
|
23
23
|
cpfNumber: string;
|
|
24
24
|
/**
|
|
25
25
|
* The raw bytes of the digital CNH file collected from the user.
|
|
26
|
-
*
|
|
27
|
-
* TODO: Lucas or JP help me describe these below vvvvvvvv
|
|
28
|
-
* This can be:
|
|
29
|
-
* - An image containing a physical or digital QR code
|
|
30
|
-
* - A PDF file exported from the CNH app
|
|
31
|
-
* - Some scary third thing?
|
|
32
26
|
* @type {string}
|
|
33
27
|
* @memberof BrazilDigitalCnhInput
|
|
34
28
|
*/
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Trinsic API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { FieldAvailability } from './FieldAvailability';
|
|
13
|
+
/**
|
|
14
|
+
* Information about a field that a Provider will return in verification results.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ContractField
|
|
17
|
+
*/
|
|
18
|
+
export interface ContractField {
|
|
19
|
+
/**
|
|
20
|
+
* The name of the field as it appears in verification results.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ContractField
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
* Indicates when this field will be present in verification results.
|
|
27
|
+
* @type {FieldAvailability}
|
|
28
|
+
* @memberof ContractField
|
|
29
|
+
*/
|
|
30
|
+
outputted: FieldAvailability;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the ContractField interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfContractField(value: object): value is ContractField;
|
|
36
|
+
export declare function ContractFieldFromJSON(json: any): ContractField;
|
|
37
|
+
export declare function ContractFieldFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContractField;
|
|
38
|
+
export declare function ContractFieldToJSON(json: any): ContractField;
|
|
39
|
+
export declare function ContractFieldToJSONTyped(value?: ContractField | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Trinsic API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfContractField = instanceOfContractField;
|
|
17
|
+
exports.ContractFieldFromJSON = ContractFieldFromJSON;
|
|
18
|
+
exports.ContractFieldFromJSONTyped = ContractFieldFromJSONTyped;
|
|
19
|
+
exports.ContractFieldToJSON = ContractFieldToJSON;
|
|
20
|
+
exports.ContractFieldToJSONTyped = ContractFieldToJSONTyped;
|
|
21
|
+
const FieldAvailability_1 = require("./FieldAvailability");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ContractField interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfContractField(value) {
|
|
26
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('outputted' in value) || value['outputted'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function ContractFieldFromJSON(json) {
|
|
33
|
+
return ContractFieldFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function ContractFieldFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'name': json['name'],
|
|
41
|
+
'outputted': (0, FieldAvailability_1.FieldAvailabilityFromJSON)(json['outputted']),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function ContractFieldToJSON(json) {
|
|
45
|
+
return ContractFieldToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function ContractFieldToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'name': value['name'],
|
|
53
|
+
'outputted': (0, FieldAvailability_1.FieldAvailabilityToJSON)(value['outputted']),
|
|
54
|
+
};
|
|
55
|
+
}
|