@trinsic/api 2.0.0-alpha2 → 2.0.0-alpha3
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 +5 -0
- package/dist/apis/NetworkApi.d.ts +4 -4
- package/dist/apis/NetworkApi.js +2 -2
- package/dist/esm/apis/NetworkApi.d.ts +4 -4
- package/dist/esm/apis/NetworkApi.js +2 -2
- package/dist/esm/models/AadhaarInput.d.ts +2 -2
- package/dist/esm/models/AadhaarInput.js +1 -1
- package/dist/esm/models/Address.d.ts +8 -8
- package/dist/esm/models/AttachmentAccessKeys.d.ts +4 -4
- package/dist/esm/models/BangladeshNationalIdInput.d.ts +4 -4
- package/dist/esm/models/BangladeshNationalIdInput.js +1 -1
- package/dist/esm/models/BrazilDigitalCnhInput.d.ts +3 -3
- package/dist/esm/models/CreateAdvancedProviderSessionRequest.d.ts +3 -3
- package/dist/esm/models/CreateHostedProviderSessionRequest.d.ts +1 -1
- package/dist/esm/models/CreateHostedProviderSessionResponse.d.ts +1 -1
- package/dist/esm/models/CreateWidgetSessionRequest.d.ts +3 -3
- package/dist/esm/models/CreateWidgetSessionResponse.d.ts +1 -1
- package/dist/esm/models/DocumentData.d.ts +6 -6
- package/dist/esm/models/DocumentData.js +2 -2
- package/dist/esm/models/DocumentScanAttachments.d.ts +1 -1
- package/dist/esm/models/GetSessionResultResponse.d.ts +1 -1
- package/dist/esm/models/HttpValidationProblemDetails.d.ts +5 -5
- package/dist/esm/models/IdentityData.d.ts +4 -4
- package/dist/esm/models/IndonesiaNikInput.d.ts +43 -0
- package/dist/esm/models/IndonesiaNikInput.js +48 -0
- package/dist/esm/models/IntegrationStep.d.ts +1 -1
- package/dist/esm/models/KenyaNidInput.d.ts +61 -0
- package/dist/esm/models/KenyaNidInput.js +58 -0
- package/dist/esm/models/KnownAddress.d.ts +8 -8
- package/dist/esm/models/KnownIdentityData.d.ts +1 -1
- package/dist/esm/models/KnownPersonData.d.ts +8 -8
- package/dist/esm/models/MexicoCurpInput.d.ts +31 -0
- package/dist/esm/models/MexicoCurpInput.js +40 -0
- package/dist/esm/models/NigeriaNinInput.d.ts +67 -0
- package/dist/esm/models/NigeriaNinInput.js +58 -0
- package/dist/esm/models/PersonData.d.ts +10 -10
- package/dist/esm/models/PersonData.js +1 -1
- package/dist/esm/models/PhilippineMatchInput.d.ts +5 -5
- package/dist/esm/models/PhilippineMatchInput.js +1 -1
- package/dist/esm/models/PhilippineQRInput.d.ts +2 -2
- package/dist/esm/models/ProblemDetails.d.ts +5 -5
- package/dist/esm/models/ProviderAttachments.d.ts +1 -1
- package/dist/esm/models/ProviderInfo.d.ts +1 -1
- package/dist/esm/models/ProviderInput.d.ts +41 -6
- package/dist/esm/models/ProviderInput.js +15 -0
- package/dist/esm/models/RecommendRequest.d.ts +10 -4
- package/dist/esm/models/RecommendRequest.js +2 -0
- package/dist/esm/models/RefreshStepContentRequest.d.ts +1 -1
- package/dist/esm/models/ResultCollection.d.ts +1 -1
- package/dist/esm/models/Session.d.ts +1 -1
- package/dist/esm/models/SouthAfricaNidInput.d.ts +49 -0
- package/dist/esm/models/SouthAfricaNidInput.js +52 -0
- package/dist/esm/models/index.d.ts +5 -0
- package/dist/esm/models/index.js +5 -0
- package/dist/models/AadhaarInput.d.ts +2 -2
- package/dist/models/AadhaarInput.js +1 -1
- package/dist/models/Address.d.ts +8 -8
- package/dist/models/AttachmentAccessKeys.d.ts +4 -4
- package/dist/models/BangladeshNationalIdInput.d.ts +4 -4
- package/dist/models/BangladeshNationalIdInput.js +1 -1
- package/dist/models/BrazilDigitalCnhInput.d.ts +3 -3
- package/dist/models/CreateAdvancedProviderSessionRequest.d.ts +3 -3
- package/dist/models/CreateHostedProviderSessionRequest.d.ts +1 -1
- package/dist/models/CreateHostedProviderSessionResponse.d.ts +1 -1
- package/dist/models/CreateWidgetSessionRequest.d.ts +3 -3
- package/dist/models/CreateWidgetSessionResponse.d.ts +1 -1
- package/dist/models/DocumentData.d.ts +6 -6
- package/dist/models/DocumentData.js +2 -2
- package/dist/models/DocumentScanAttachments.d.ts +1 -1
- package/dist/models/GetSessionResultResponse.d.ts +1 -1
- package/dist/models/HttpValidationProblemDetails.d.ts +5 -5
- package/dist/models/IdentityData.d.ts +4 -4
- package/dist/models/IndonesiaNikInput.d.ts +43 -0
- package/dist/models/IndonesiaNikInput.js +54 -0
- package/dist/models/IntegrationStep.d.ts +1 -1
- package/dist/models/KenyaNidInput.d.ts +61 -0
- package/dist/models/KenyaNidInput.js +64 -0
- package/dist/models/KnownAddress.d.ts +8 -8
- package/dist/models/KnownIdentityData.d.ts +1 -1
- package/dist/models/KnownPersonData.d.ts +8 -8
- package/dist/models/MexicoCurpInput.d.ts +31 -0
- package/dist/models/MexicoCurpInput.js +46 -0
- package/dist/models/NigeriaNinInput.d.ts +67 -0
- package/dist/models/NigeriaNinInput.js +64 -0
- package/dist/models/PersonData.d.ts +10 -10
- package/dist/models/PersonData.js +1 -1
- package/dist/models/PhilippineMatchInput.d.ts +5 -5
- package/dist/models/PhilippineMatchInput.js +1 -1
- package/dist/models/PhilippineQRInput.d.ts +2 -2
- package/dist/models/ProblemDetails.d.ts +5 -5
- package/dist/models/ProviderAttachments.d.ts +1 -1
- package/dist/models/ProviderInfo.d.ts +1 -1
- package/dist/models/ProviderInput.d.ts +41 -6
- package/dist/models/ProviderInput.js +15 -0
- package/dist/models/RecommendRequest.d.ts +10 -4
- package/dist/models/RecommendRequest.js +2 -0
- package/dist/models/RefreshStepContentRequest.d.ts +1 -1
- package/dist/models/ResultCollection.d.ts +1 -1
- package/dist/models/Session.d.ts +1 -1
- package/dist/models/SouthAfricaNidInput.d.ts +49 -0
- package/dist/models/SouthAfricaNidInput.js +58 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/package.json +1 -1
- package/src/apis/NetworkApi.ts +4 -4
- package/src/models/AadhaarInput.ts +3 -3
- package/src/models/Address.ts +8 -8
- package/src/models/AttachmentAccessKeys.ts +4 -4
- package/src/models/BangladeshNationalIdInput.ts +5 -5
- package/src/models/BrazilDigitalCnhInput.ts +3 -3
- package/src/models/CreateAdvancedProviderSessionRequest.ts +3 -3
- package/src/models/CreateHostedProviderSessionRequest.ts +1 -1
- package/src/models/CreateHostedProviderSessionResponse.ts +1 -1
- package/src/models/CreateWidgetSessionRequest.ts +3 -3
- package/src/models/CreateWidgetSessionResponse.ts +1 -1
- package/src/models/DocumentData.ts +8 -8
- package/src/models/DocumentScanAttachments.ts +1 -1
- package/src/models/GetSessionResultResponse.ts +1 -1
- package/src/models/HttpValidationProblemDetails.ts +5 -5
- package/src/models/IdentityData.ts +4 -4
- package/src/models/IndonesiaNikInput.ts +79 -0
- package/src/models/IntegrationStep.ts +1 -1
- package/src/models/KenyaNidInput.ts +105 -0
- package/src/models/KnownAddress.ts +8 -8
- package/src/models/KnownIdentityData.ts +1 -1
- package/src/models/KnownPersonData.ts +8 -8
- package/src/models/MexicoCurpInput.ts +61 -0
- package/src/models/NigeriaNinInput.ts +112 -0
- package/src/models/PersonData.ts +11 -11
- package/src/models/PhilippineMatchInput.ts +6 -6
- package/src/models/PhilippineQRInput.ts +2 -2
- package/src/models/ProblemDetails.ts +5 -5
- package/src/models/ProviderAttachments.ts +1 -1
- package/src/models/ProviderInfo.ts +1 -1
- package/src/models/ProviderInput.ts +76 -6
- package/src/models/RecommendRequest.ts +12 -4
- package/src/models/RefreshStepContentRequest.ts +1 -1
- package/src/models/ResultCollection.ts +1 -1
- package/src/models/Session.ts +1 -1
- package/src/models/SouthAfricaNidInput.ts +88 -0
- package/src/models/index.ts +5 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -31,14 +31,18 @@ src/models/GetSessionResultRequest.ts
|
|
|
31
31
|
src/models/GetSessionResultResponse.ts
|
|
32
32
|
src/models/HttpValidationProblemDetails.ts
|
|
33
33
|
src/models/IdentityData.ts
|
|
34
|
+
src/models/IndonesiaNikInput.ts
|
|
34
35
|
src/models/IntegrationCapability.ts
|
|
35
36
|
src/models/IntegrationLaunchMethod.ts
|
|
36
37
|
src/models/IntegrationStep.ts
|
|
38
|
+
src/models/KenyaNidInput.ts
|
|
37
39
|
src/models/KnownAddress.ts
|
|
38
40
|
src/models/KnownIdentityData.ts
|
|
39
41
|
src/models/KnownPersonData.ts
|
|
40
42
|
src/models/ListProvidersResponse.ts
|
|
41
43
|
src/models/ListSessionsResponse.ts
|
|
44
|
+
src/models/MexicoCurpInput.ts
|
|
45
|
+
src/models/NigeriaNinInput.ts
|
|
42
46
|
src/models/OrderDirection.ts
|
|
43
47
|
src/models/PersonData.ts
|
|
44
48
|
src/models/PhilippineMatchInput.ts
|
|
@@ -58,6 +62,7 @@ src/models/Session.ts
|
|
|
58
62
|
src/models/SessionErrorCode.ts
|
|
59
63
|
src/models/SessionOrdering.ts
|
|
60
64
|
src/models/Sex.ts
|
|
65
|
+
src/models/SouthAfricaNidInput.ts
|
|
61
66
|
src/models/StepRefreshInfo.ts
|
|
62
67
|
src/models/index.ts
|
|
63
68
|
src/runtime.ts
|
|
@@ -35,7 +35,7 @@ export interface NetworkApiInterface {
|
|
|
35
35
|
*/
|
|
36
36
|
listProviders(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListProvidersResponse>;
|
|
37
37
|
/**
|
|
38
|
-
* Generate provider recommendations based on the given signals (phone number, countries, states).
|
|
38
|
+
* Generate provider recommendations based on the given signals (phone number, countries, states).
|
|
39
39
|
* @summary Recommend Providers
|
|
40
40
|
* @param {RecommendRequest} [recommendRequest]
|
|
41
41
|
* @param {*} [options] Override http request option.
|
|
@@ -44,7 +44,7 @@ export interface NetworkApiInterface {
|
|
|
44
44
|
*/
|
|
45
45
|
recommendProvidersRaw(requestParameters: RecommendProvidersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RecommendResponse>>;
|
|
46
46
|
/**
|
|
47
|
-
* Generate provider recommendations based on the given signals (phone number, countries, states).
|
|
47
|
+
* Generate provider recommendations based on the given signals (phone number, countries, states).
|
|
48
48
|
* Recommend Providers
|
|
49
49
|
*/
|
|
50
50
|
recommendProviders(recommendRequest?: RecommendRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RecommendResponse>;
|
|
@@ -64,12 +64,12 @@ export declare class NetworkApi extends runtime.BaseAPI implements NetworkApiInt
|
|
|
64
64
|
*/
|
|
65
65
|
listProviders(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListProvidersResponse>;
|
|
66
66
|
/**
|
|
67
|
-
* Generate provider recommendations based on the given signals (phone number, countries, states).
|
|
67
|
+
* Generate provider recommendations based on the given signals (phone number, countries, states).
|
|
68
68
|
* Recommend Providers
|
|
69
69
|
*/
|
|
70
70
|
recommendProvidersRaw(requestParameters: RecommendProvidersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RecommendResponse>>;
|
|
71
71
|
/**
|
|
72
|
-
* Generate provider recommendations based on the given signals (phone number, countries, states).
|
|
72
|
+
* Generate provider recommendations based on the given signals (phone number, countries, states).
|
|
73
73
|
* Recommend Providers
|
|
74
74
|
*/
|
|
75
75
|
recommendProviders(recommendRequest?: RecommendRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RecommendResponse>;
|
package/dist/apis/NetworkApi.js
CHANGED
|
@@ -64,7 +64,7 @@ class NetworkApi extends runtime.BaseAPI {
|
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
66
|
/**
|
|
67
|
-
* Generate provider recommendations based on the given signals (phone number, countries, states).
|
|
67
|
+
* Generate provider recommendations based on the given signals (phone number, countries, states).
|
|
68
68
|
* Recommend Providers
|
|
69
69
|
*/
|
|
70
70
|
recommendProvidersRaw(requestParameters, initOverrides) {
|
|
@@ -90,7 +90,7 @@ class NetworkApi extends runtime.BaseAPI {
|
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
92
|
/**
|
|
93
|
-
* Generate provider recommendations based on the given signals (phone number, countries, states).
|
|
93
|
+
* Generate provider recommendations based on the given signals (phone number, countries, states).
|
|
94
94
|
* Recommend Providers
|
|
95
95
|
*/
|
|
96
96
|
recommendProviders(recommendRequest, initOverrides) {
|
|
@@ -35,7 +35,7 @@ export interface NetworkApiInterface {
|
|
|
35
35
|
*/
|
|
36
36
|
listProviders(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListProvidersResponse>;
|
|
37
37
|
/**
|
|
38
|
-
* Generate provider recommendations based on the given signals (phone number, countries, states).
|
|
38
|
+
* Generate provider recommendations based on the given signals (phone number, countries, states).
|
|
39
39
|
* @summary Recommend Providers
|
|
40
40
|
* @param {RecommendRequest} [recommendRequest]
|
|
41
41
|
* @param {*} [options] Override http request option.
|
|
@@ -44,7 +44,7 @@ export interface NetworkApiInterface {
|
|
|
44
44
|
*/
|
|
45
45
|
recommendProvidersRaw(requestParameters: RecommendProvidersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RecommendResponse>>;
|
|
46
46
|
/**
|
|
47
|
-
* Generate provider recommendations based on the given signals (phone number, countries, states).
|
|
47
|
+
* Generate provider recommendations based on the given signals (phone number, countries, states).
|
|
48
48
|
* Recommend Providers
|
|
49
49
|
*/
|
|
50
50
|
recommendProviders(recommendRequest?: RecommendRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RecommendResponse>;
|
|
@@ -64,12 +64,12 @@ export declare class NetworkApi extends runtime.BaseAPI implements NetworkApiInt
|
|
|
64
64
|
*/
|
|
65
65
|
listProviders(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListProvidersResponse>;
|
|
66
66
|
/**
|
|
67
|
-
* Generate provider recommendations based on the given signals (phone number, countries, states).
|
|
67
|
+
* Generate provider recommendations based on the given signals (phone number, countries, states).
|
|
68
68
|
* Recommend Providers
|
|
69
69
|
*/
|
|
70
70
|
recommendProvidersRaw(requestParameters: RecommendProvidersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RecommendResponse>>;
|
|
71
71
|
/**
|
|
72
|
-
* Generate provider recommendations based on the given signals (phone number, countries, states).
|
|
72
|
+
* Generate provider recommendations based on the given signals (phone number, countries, states).
|
|
73
73
|
* Recommend Providers
|
|
74
74
|
*/
|
|
75
75
|
recommendProviders(recommendRequest?: RecommendRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RecommendResponse>;
|
|
@@ -61,7 +61,7 @@ export class NetworkApi extends runtime.BaseAPI {
|
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
63
|
/**
|
|
64
|
-
* Generate provider recommendations based on the given signals (phone number, countries, states).
|
|
64
|
+
* Generate provider recommendations based on the given signals (phone number, countries, states).
|
|
65
65
|
* Recommend Providers
|
|
66
66
|
*/
|
|
67
67
|
recommendProvidersRaw(requestParameters, initOverrides) {
|
|
@@ -87,7 +87,7 @@ export class NetworkApi extends runtime.BaseAPI {
|
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
89
|
/**
|
|
90
|
-
* Generate provider recommendations based on the given signals (phone number, countries, states).
|
|
90
|
+
* Generate provider recommendations based on the given signals (phone number, countries, states).
|
|
91
91
|
* Recommend Providers
|
|
92
92
|
*/
|
|
93
93
|
recommendProviders(recommendRequest, initOverrides) {
|
|
@@ -20,13 +20,13 @@ export interface AadhaarInput {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof AadhaarInput
|
|
22
22
|
*/
|
|
23
|
-
fullName?: string;
|
|
23
|
+
fullName?: string | null;
|
|
24
24
|
/**
|
|
25
25
|
* The user's date of birth, in `YYYY-MM-DD` format
|
|
26
26
|
* @type {Date}
|
|
27
27
|
* @memberof AadhaarInput
|
|
28
28
|
*/
|
|
29
|
-
dateOfBirth?: Date;
|
|
29
|
+
dateOfBirth?: Date | null;
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* Check if a given object implements the AadhaarInput interface.
|
|
@@ -35,6 +35,6 @@ export function AadhaarInputToJSON(value) {
|
|
|
35
35
|
}
|
|
36
36
|
return {
|
|
37
37
|
'fullName': value['fullName'],
|
|
38
|
-
'dateOfBirth': value['dateOfBirth'] == null ? undefined : (
|
|
38
|
+
'dateOfBirth': value['dateOfBirth'] == null ? undefined : (value['dateOfBirth'].toISOString().substring(0, 10)),
|
|
39
39
|
};
|
|
40
40
|
}
|
|
@@ -20,49 +20,49 @@ export interface Address {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof Address
|
|
22
22
|
*/
|
|
23
|
-
line1?: string;
|
|
23
|
+
line1?: string | null;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof Address
|
|
28
28
|
*/
|
|
29
|
-
line2?: string;
|
|
29
|
+
line2?: string | null;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof Address
|
|
34
34
|
*/
|
|
35
|
-
line3?: string;
|
|
35
|
+
line3?: string | null;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof Address
|
|
40
40
|
*/
|
|
41
|
-
city?: string;
|
|
41
|
+
city?: string | null;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof Address
|
|
46
46
|
*/
|
|
47
|
-
subdivision?: string;
|
|
47
|
+
subdivision?: string | null;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof Address
|
|
52
52
|
*/
|
|
53
|
-
postalCode?: string;
|
|
53
|
+
postalCode?: string | null;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof Address
|
|
58
58
|
*/
|
|
59
|
-
country?: string;
|
|
59
|
+
country?: string | null;
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
62
62
|
* @type {string}
|
|
63
63
|
* @memberof Address
|
|
64
64
|
*/
|
|
65
|
-
fullAddress?: string;
|
|
65
|
+
fullAddress?: string | null;
|
|
66
66
|
}
|
|
67
67
|
/**
|
|
68
68
|
* Check if a given object implements the Address interface.
|
|
@@ -21,25 +21,25 @@ export interface AttachmentAccessKeys {
|
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof AttachmentAccessKeys
|
|
23
23
|
*/
|
|
24
|
-
selfie?: string;
|
|
24
|
+
selfie?: string | null;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
* @type {string}
|
|
28
28
|
* @memberof AttachmentAccessKeys
|
|
29
29
|
*/
|
|
30
|
-
documentFront?: string;
|
|
30
|
+
documentFront?: string | null;
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
33
|
* @type {string}
|
|
34
34
|
* @memberof AttachmentAccessKeys
|
|
35
35
|
*/
|
|
36
|
-
documentBack?: string;
|
|
36
|
+
documentBack?: string | null;
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @memberof AttachmentAccessKeys
|
|
41
41
|
*/
|
|
42
|
-
documentPortrait?: string;
|
|
42
|
+
documentPortrait?: string | null;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
45
|
* @type {ProviderAttachments}
|
|
@@ -20,25 +20,25 @@ export interface BangladeshNationalIdInput {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof BangladeshNationalIdInput
|
|
22
22
|
*/
|
|
23
|
-
nationalIdNumber?: string;
|
|
23
|
+
nationalIdNumber?: string | null;
|
|
24
24
|
/**
|
|
25
25
|
* The user's date of birth, in `YYYY-MM-DD` format
|
|
26
26
|
* @type {Date}
|
|
27
27
|
* @memberof BangladeshNationalIdInput
|
|
28
28
|
*/
|
|
29
|
-
dateOfBirth?: Date;
|
|
29
|
+
dateOfBirth?: Date | null;
|
|
30
30
|
/**
|
|
31
31
|
* The user's full name
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof BangladeshNationalIdInput
|
|
34
34
|
*/
|
|
35
|
-
name?: string;
|
|
35
|
+
name?: string | null;
|
|
36
36
|
/**
|
|
37
37
|
* The base64-encoded bytes of the photo collected from the user
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof BangladeshNationalIdInput
|
|
40
40
|
*/
|
|
41
|
-
photoBase64?: string;
|
|
41
|
+
photoBase64?: string | null;
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
44
|
* Check if a given object implements the BangladeshNationalIdInput interface.
|
|
@@ -37,7 +37,7 @@ export function BangladeshNationalIdInputToJSON(value) {
|
|
|
37
37
|
}
|
|
38
38
|
return {
|
|
39
39
|
'nationalIdNumber': value['nationalIdNumber'],
|
|
40
|
-
'dateOfBirth': value['dateOfBirth'] == null ? undefined : (
|
|
40
|
+
'dateOfBirth': value['dateOfBirth'] == null ? undefined : (value['dateOfBirth'].toISOString().substring(0, 10)),
|
|
41
41
|
'name': value['name'],
|
|
42
42
|
'photoBase64': value['photoBase64'],
|
|
43
43
|
};
|
|
@@ -32,7 +32,7 @@ export interface BrazilDigitalCnhInput {
|
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof BrazilDigitalCnhInput
|
|
34
34
|
*/
|
|
35
|
-
digitalCnhFile?: string;
|
|
35
|
+
digitalCnhFile?: string | null;
|
|
36
36
|
/**
|
|
37
37
|
* The MIME Type of the file contained in `DigitalCnhFile`.
|
|
38
38
|
*
|
|
@@ -40,13 +40,13 @@ export interface BrazilDigitalCnhInput {
|
|
|
40
40
|
* @type {string}
|
|
41
41
|
* @memberof BrazilDigitalCnhInput
|
|
42
42
|
*/
|
|
43
|
-
digitalCnhFileContentType?: string;
|
|
43
|
+
digitalCnhFileContentType?: string | null;
|
|
44
44
|
/**
|
|
45
45
|
* The raw bytes of the image of the user's face, collected for biometric comparison.
|
|
46
46
|
* @type {string}
|
|
47
47
|
* @memberof BrazilDigitalCnhInput
|
|
48
48
|
*/
|
|
49
|
-
facialBiometryPhoto?: string;
|
|
49
|
+
facialBiometryPhoto?: string | null;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
52
|
* Check if a given object implements the BrazilDigitalCnhInput interface.
|
|
@@ -28,7 +28,7 @@ export interface CreateAdvancedProviderSessionRequest {
|
|
|
28
28
|
* @type {ProviderInput}
|
|
29
29
|
* @memberof CreateAdvancedProviderSessionRequest
|
|
30
30
|
*/
|
|
31
|
-
providerInput?: ProviderInput;
|
|
31
|
+
providerInput?: ProviderInput | null;
|
|
32
32
|
/**
|
|
33
33
|
* The Redirect URL to which the user should be sent after the session is complete.
|
|
34
34
|
*
|
|
@@ -36,7 +36,7 @@ export interface CreateAdvancedProviderSessionRequest {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof CreateAdvancedProviderSessionRequest
|
|
38
38
|
*/
|
|
39
|
-
redirectUrl?: string;
|
|
39
|
+
redirectUrl?: string | null;
|
|
40
40
|
/**
|
|
41
41
|
* The list of capabilities your integration supports. Capabilities are the core of Trinsic's whitelabel-with-optional-fallback offering.
|
|
42
42
|
*
|
|
@@ -72,7 +72,7 @@ export interface CreateAdvancedProviderSessionRequest {
|
|
|
72
72
|
* @type {boolean}
|
|
73
73
|
* @memberof CreateAdvancedProviderSessionRequest
|
|
74
74
|
*/
|
|
75
|
-
fallbackToHostedUI?: boolean;
|
|
75
|
+
fallbackToHostedUI?: boolean | null;
|
|
76
76
|
}
|
|
77
77
|
/**
|
|
78
78
|
* Check if a given object implements the CreateAdvancedProviderSessionRequest interface.
|
|
@@ -33,7 +33,7 @@ export interface CreateHostedProviderSessionRequest {
|
|
|
33
33
|
* @type {ProviderInput}
|
|
34
34
|
* @memberof CreateHostedProviderSessionRequest
|
|
35
35
|
*/
|
|
36
|
-
providerInput?: ProviderInput;
|
|
36
|
+
providerInput?: ProviderInput | null;
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
39
39
|
* Check if a given object implements the CreateHostedProviderSessionRequest interface.
|
|
@@ -32,7 +32,7 @@ export interface CreateHostedProviderSessionResponse {
|
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof CreateHostedProviderSessionResponse
|
|
34
34
|
*/
|
|
35
|
-
launchUrl?: string;
|
|
35
|
+
launchUrl?: string | null;
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
38
|
* Check if a given object implements the CreateHostedProviderSessionResponse interface.
|
|
@@ -24,13 +24,13 @@ export interface CreateWidgetSessionRequest {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof CreateWidgetSessionRequest
|
|
26
26
|
*/
|
|
27
|
-
redirectUrl?: string;
|
|
27
|
+
redirectUrl?: string | null;
|
|
28
28
|
/**
|
|
29
29
|
* The list of allowed identity providers. If not specified, all available providers will be allowed.
|
|
30
30
|
* @type {Array<string>}
|
|
31
31
|
* @memberof CreateWidgetSessionRequest
|
|
32
32
|
*/
|
|
33
|
-
providers?: Array<string
|
|
33
|
+
providers?: Array<string> | null;
|
|
34
34
|
/**
|
|
35
35
|
* Known identity data of an individual being verified.
|
|
36
36
|
*
|
|
@@ -38,7 +38,7 @@ export interface CreateWidgetSessionRequest {
|
|
|
38
38
|
* @type {KnownIdentityData}
|
|
39
39
|
* @memberof CreateWidgetSessionRequest
|
|
40
40
|
*/
|
|
41
|
-
knownIdentityData?: KnownIdentityData;
|
|
41
|
+
knownIdentityData?: KnownIdentityData | null;
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
44
|
* Check if a given object implements the CreateWidgetSessionRequest interface.
|
|
@@ -30,7 +30,7 @@ export interface CreateWidgetSessionResponse {
|
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof CreateWidgetSessionResponse
|
|
32
32
|
*/
|
|
33
|
-
launchUrl?: string;
|
|
33
|
+
launchUrl?: string | null;
|
|
34
34
|
}
|
|
35
35
|
/**
|
|
36
36
|
* Check if a given object implements the CreateWidgetSessionResponse interface.
|
|
@@ -21,37 +21,37 @@ export interface DocumentData {
|
|
|
21
21
|
* @type {DocumentType}
|
|
22
22
|
* @memberof DocumentData
|
|
23
23
|
*/
|
|
24
|
-
type?: DocumentType;
|
|
24
|
+
type?: DocumentType | null;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
* @type {string}
|
|
28
28
|
* @memberof DocumentData
|
|
29
29
|
*/
|
|
30
|
-
number?: string;
|
|
30
|
+
number?: string | null;
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
33
|
* @type {Date}
|
|
34
34
|
* @memberof DocumentData
|
|
35
35
|
*/
|
|
36
|
-
issueDate?: Date;
|
|
36
|
+
issueDate?: Date | null;
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
39
|
* @type {Date}
|
|
40
40
|
* @memberof DocumentData
|
|
41
41
|
*/
|
|
42
|
-
expirationDate?: Date;
|
|
42
|
+
expirationDate?: Date | null;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
45
|
* @type {string}
|
|
46
46
|
* @memberof DocumentData
|
|
47
47
|
*/
|
|
48
|
-
issuingCountry?: string;
|
|
48
|
+
issuingCountry?: string | null;
|
|
49
49
|
/**
|
|
50
50
|
*
|
|
51
51
|
* @type {string}
|
|
52
52
|
* @memberof DocumentData
|
|
53
53
|
*/
|
|
54
|
-
issuingAuthority?: string;
|
|
54
|
+
issuingAuthority?: string | null;
|
|
55
55
|
}
|
|
56
56
|
/**
|
|
57
57
|
* Check if a given object implements the DocumentData interface.
|
|
@@ -41,8 +41,8 @@ export function DocumentDataToJSON(value) {
|
|
|
41
41
|
return {
|
|
42
42
|
'type': DocumentTypeToJSON(value['type']),
|
|
43
43
|
'number': value['number'],
|
|
44
|
-
'issueDate': value['issueDate'] == null ? undefined : (
|
|
45
|
-
'expirationDate': value['expirationDate'] == null ? undefined : (
|
|
44
|
+
'issueDate': value['issueDate'] == null ? undefined : (value['issueDate'].toISOString().substring(0, 10)),
|
|
45
|
+
'expirationDate': value['expirationDate'] == null ? undefined : (value['expirationDate'].toISOString().substring(0, 10)),
|
|
46
46
|
'issuingCountry': value['issuingCountry'],
|
|
47
47
|
'issuingAuthority': value['issuingAuthority'],
|
|
48
48
|
};
|
|
@@ -28,7 +28,7 @@ export interface GetSessionResultResponse {
|
|
|
28
28
|
* @type {IdentityData}
|
|
29
29
|
* @memberof GetSessionResultResponse
|
|
30
30
|
*/
|
|
31
|
-
identityData?: IdentityData;
|
|
31
|
+
identityData?: IdentityData | null;
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
34
|
* Check if a given object implements the GetSessionResultResponse interface.
|
|
@@ -20,31 +20,31 @@ export interface HttpValidationProblemDetails {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof HttpValidationProblemDetails
|
|
22
22
|
*/
|
|
23
|
-
type?: string;
|
|
23
|
+
type?: string | null;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof HttpValidationProblemDetails
|
|
28
28
|
*/
|
|
29
|
-
title?: string;
|
|
29
|
+
title?: string | null;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @type {number}
|
|
33
33
|
* @memberof HttpValidationProblemDetails
|
|
34
34
|
*/
|
|
35
|
-
status?: number;
|
|
35
|
+
status?: number | null;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof HttpValidationProblemDetails
|
|
40
40
|
*/
|
|
41
|
-
detail?: string;
|
|
41
|
+
detail?: string | null;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof HttpValidationProblemDetails
|
|
46
46
|
*/
|
|
47
|
-
instance?: string;
|
|
47
|
+
instance?: string | null;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {{ [key: string]: Array<string>; }}
|
|
@@ -23,25 +23,25 @@ export interface IdentityData {
|
|
|
23
23
|
* @type {string}
|
|
24
24
|
* @memberof IdentityData
|
|
25
25
|
*/
|
|
26
|
-
originatingProviderId?: string;
|
|
26
|
+
originatingProviderId?: string | null;
|
|
27
27
|
/**
|
|
28
28
|
*
|
|
29
29
|
* @type {PersonData}
|
|
30
30
|
* @memberof IdentityData
|
|
31
31
|
*/
|
|
32
|
-
person?: PersonData;
|
|
32
|
+
person?: PersonData | null;
|
|
33
33
|
/**
|
|
34
34
|
*
|
|
35
35
|
* @type {DocumentData}
|
|
36
36
|
* @memberof IdentityData
|
|
37
37
|
*/
|
|
38
|
-
document?: DocumentData;
|
|
38
|
+
document?: DocumentData | null;
|
|
39
39
|
/**
|
|
40
40
|
*
|
|
41
41
|
* @type {AttachmentAccessKeys}
|
|
42
42
|
* @memberof IdentityData
|
|
43
43
|
*/
|
|
44
|
-
attachmentAccessKeys?: AttachmentAccessKeys;
|
|
44
|
+
attachmentAccessKeys?: AttachmentAccessKeys | null;
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
47
47
|
* Check if a given object implements the IdentityData interface.
|
|
@@ -0,0 +1,43 @@
|
|
|
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 IndonesiaNikInput
|
|
16
|
+
*/
|
|
17
|
+
export interface IndonesiaNikInput {
|
|
18
|
+
/**
|
|
19
|
+
* The user's full name
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof IndonesiaNikInput
|
|
22
|
+
*/
|
|
23
|
+
fullName: string;
|
|
24
|
+
/**
|
|
25
|
+
* The user's date of birth, in `YYYY-MM-DD` format
|
|
26
|
+
* @type {Date}
|
|
27
|
+
* @memberof IndonesiaNikInput
|
|
28
|
+
*/
|
|
29
|
+
dateOfBirth: Date;
|
|
30
|
+
/**
|
|
31
|
+
* The user's Indonesia NIK ID number
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof IndonesiaNikInput
|
|
34
|
+
*/
|
|
35
|
+
nikIdNumber: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the IndonesiaNikInput interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfIndonesiaNikInput(value: object): value is IndonesiaNikInput;
|
|
41
|
+
export declare function IndonesiaNikInputFromJSON(json: any): IndonesiaNikInput;
|
|
42
|
+
export declare function IndonesiaNikInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndonesiaNikInput;
|
|
43
|
+
export declare function IndonesiaNikInputToJSON(value?: IndonesiaNikInput | null): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
* Check if a given object implements the IndonesiaNikInput interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfIndonesiaNikInput(value) {
|
|
18
|
+
if (!('fullName' in value) || value['fullName'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('dateOfBirth' in value) || value['dateOfBirth'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('nikIdNumber' in value) || value['nikIdNumber'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function IndonesiaNikInputFromJSON(json) {
|
|
27
|
+
return IndonesiaNikInputFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function IndonesiaNikInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'fullName': json['fullName'],
|
|
35
|
+
'dateOfBirth': (new Date(json['dateOfBirth'])),
|
|
36
|
+
'nikIdNumber': json['nikIdNumber'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function IndonesiaNikInputToJSON(value) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'fullName': value['fullName'],
|
|
45
|
+
'dateOfBirth': ((value['dateOfBirth']).toISOString().substring(0, 10)),
|
|
46
|
+
'nikIdNumber': value['nikIdNumber'],
|
|
47
|
+
};
|
|
48
|
+
}
|