@trinsic/api 1.1.2 → 2.0.0-alpha2
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 +34 -11
- package/dist/apis/AttachmentsApi.d.ts +1 -1
- package/dist/apis/AttachmentsApi.js +1 -1
- package/dist/apis/NetworkApi.d.ts +27 -27
- package/dist/apis/NetworkApi.js +22 -23
- package/dist/apis/SessionsApi.d.ts +100 -17
- package/dist/apis/SessionsApi.js +123 -12
- package/dist/esm/apis/AttachmentsApi.d.ts +1 -1
- package/dist/esm/apis/AttachmentsApi.js +1 -1
- package/dist/esm/apis/NetworkApi.d.ts +27 -27
- package/dist/esm/apis/NetworkApi.js +23 -24
- package/dist/esm/apis/SessionsApi.d.ts +100 -17
- package/dist/esm/apis/SessionsApi.js +124 -13
- package/dist/esm/models/AadhaarInput.d.ts +37 -0
- package/dist/esm/models/AadhaarInput.js +40 -0
- package/dist/esm/models/Address.d.ts +4 -4
- package/dist/esm/models/Address.js +3 -3
- package/dist/esm/models/AttachmentAccessKeys.d.ts +12 -7
- package/dist/esm/models/AttachmentAccessKeys.js +6 -1
- package/dist/esm/models/BangladeshNationalIdInput.d.ts +49 -0
- package/dist/esm/models/BangladeshNationalIdInput.js +44 -0
- package/dist/esm/models/BrazilCpfCheckInput.d.ts +31 -0
- package/dist/esm/models/{FailureMessage.js → BrazilCpfCheckInput.js} +10 -10
- package/dist/esm/models/BrazilDigitalCnhInput.d.ts +57 -0
- package/dist/esm/models/BrazilDigitalCnhInput.js +46 -0
- package/dist/esm/models/CancelSessionResponse.d.ts +1 -1
- package/dist/esm/models/CancelSessionResponse.js +1 -1
- package/dist/esm/models/CreateAdvancedProviderSessionRequest.d.ts +83 -0
- package/dist/esm/models/CreateAdvancedProviderSessionRequest.js +52 -0
- package/dist/esm/models/CreateAdvancedProviderSessionResponse.d.ts +45 -0
- package/dist/esm/models/CreateAdvancedProviderSessionResponse.js +50 -0
- package/dist/esm/models/CreateHostedProviderSessionRequest.d.ts +44 -0
- package/dist/esm/models/CreateHostedProviderSessionRequest.js +47 -0
- package/dist/esm/models/CreateHostedProviderSessionResponse.d.ts +43 -0
- package/dist/esm/models/CreateHostedProviderSessionResponse.js +42 -0
- package/dist/esm/models/CreateWidgetSessionRequest.d.ts +49 -0
- package/dist/esm/models/CreateWidgetSessionRequest.js +43 -0
- package/dist/esm/models/CreateWidgetSessionResponse.d.ts +41 -0
- package/dist/esm/models/{CreateSessionResponse.js → CreateWidgetSessionResponse.js} +10 -11
- package/dist/esm/models/DocumentData.d.ts +8 -7
- package/dist/esm/models/DocumentData.js +8 -7
- package/dist/esm/models/DocumentScanAttachments.d.ts +31 -0
- package/dist/esm/models/DocumentScanAttachments.js +38 -0
- package/dist/esm/models/DocumentType.d.ts +26 -0
- package/dist/esm/models/DocumentType.js +42 -0
- package/dist/esm/models/GetAttachmentRequest.d.ts +1 -1
- package/dist/esm/models/GetAttachmentRequest.js +1 -1
- package/dist/esm/models/GetAttachmentResponse.d.ts +1 -1
- package/dist/esm/models/GetAttachmentResponse.js +1 -1
- package/dist/esm/models/GetSessionResponse.d.ts +1 -1
- package/dist/esm/models/GetSessionResponse.js +1 -1
- package/dist/esm/models/GetSessionResultRequest.d.ts +1 -1
- package/dist/esm/models/GetSessionResultRequest.js +1 -1
- package/dist/esm/models/GetSessionResultResponse.d.ts +1 -1
- package/dist/esm/models/GetSessionResultResponse.js +1 -1
- package/dist/esm/models/HttpValidationProblemDetails.d.ts +63 -0
- package/dist/esm/models/HttpValidationProblemDetails.js +48 -0
- package/dist/esm/models/IdentityData.d.ts +5 -5
- package/dist/esm/models/IdentityData.js +1 -1
- package/dist/esm/models/IntegrationCapability.d.ts +28 -0
- package/dist/esm/models/IntegrationCapability.js +44 -0
- package/dist/esm/models/IntegrationLaunchMethod.d.ts +26 -0
- package/dist/esm/models/IntegrationLaunchMethod.js +42 -0
- package/dist/esm/models/IntegrationStep.d.ts +45 -0
- package/dist/esm/models/IntegrationStep.js +50 -0
- package/dist/esm/models/KnownAddress.d.ts +74 -0
- package/dist/esm/models/KnownAddress.js +52 -0
- package/dist/esm/models/KnownIdentityData.d.ts +34 -0
- package/dist/esm/models/KnownIdentityData.js +39 -0
- package/dist/esm/models/KnownPersonData.d.ts +74 -0
- package/dist/esm/models/KnownPersonData.js +53 -0
- package/dist/esm/models/ListProvidersResponse.d.ts +1 -1
- package/dist/esm/models/ListProvidersResponse.js +1 -1
- package/dist/esm/models/ListSessionsResponse.d.ts +1 -1
- package/dist/esm/models/ListSessionsResponse.js +1 -1
- package/dist/esm/models/OrderDirection.d.ts +1 -1
- package/dist/esm/models/OrderDirection.js +1 -1
- package/dist/esm/models/PersonData.d.ts +17 -12
- package/dist/esm/models/PersonData.js +8 -5
- package/dist/esm/models/PhilippineMatchInput.d.ts +55 -0
- package/dist/esm/models/PhilippineMatchInput.js +46 -0
- package/dist/esm/models/PhilippineQRInput.d.ts +37 -0
- package/dist/esm/models/PhilippineQRInput.js +40 -0
- package/dist/esm/models/ProblemDetails.d.ts +56 -0
- package/dist/esm/models/ProblemDetails.js +34 -0
- package/dist/esm/models/ProviderAttachments.d.ts +32 -0
- package/dist/esm/models/ProviderAttachments.js +39 -0
- package/dist/esm/models/ProviderInfo.d.ts +7 -1
- package/dist/esm/models/ProviderInfo.js +3 -1
- package/dist/esm/models/ProviderInformation.d.ts +43 -0
- package/dist/esm/models/ProviderInformation.js +48 -0
- package/dist/esm/models/ProviderInput.d.ts +67 -0
- package/dist/esm/models/ProviderInput.js +54 -0
- package/dist/esm/models/RecommendRequest.d.ts +49 -0
- package/dist/esm/models/RecommendRequest.js +44 -0
- package/dist/esm/models/RecommendResponse.d.ts +44 -0
- package/dist/esm/models/RecommendResponse.js +49 -0
- package/dist/esm/models/RefreshStepContentRequest.d.ts +31 -0
- package/dist/esm/models/RefreshStepContentRequest.js +38 -0
- package/dist/esm/models/RefreshStepContentResponse.d.ts +32 -0
- package/dist/esm/models/RefreshStepContentResponse.js +41 -0
- package/dist/esm/models/ResultCollection.d.ts +38 -0
- package/dist/esm/models/ResultCollection.js +43 -0
- package/dist/esm/models/ResultCollectionMethod.d.ts +24 -0
- package/dist/esm/models/ResultCollectionMethod.js +40 -0
- package/dist/esm/models/Session.d.ts +18 -20
- package/dist/esm/models/Session.js +10 -17
- package/dist/esm/models/SessionErrorCode.d.ts +32 -0
- package/dist/esm/models/SessionErrorCode.js +48 -0
- package/dist/esm/models/SessionOrdering.d.ts +1 -1
- package/dist/esm/models/SessionOrdering.js +1 -1
- package/dist/esm/models/Sex.d.ts +26 -0
- package/dist/esm/models/Sex.js +42 -0
- package/dist/esm/models/StepRefreshInfo.d.ts +45 -0
- package/dist/esm/models/StepRefreshInfo.js +48 -0
- package/dist/esm/models/index.d.ts +34 -11
- package/dist/esm/models/index.js +34 -11
- package/dist/esm/runtime.d.ts +1 -1
- package/dist/esm/runtime.js +1 -1
- package/dist/models/AadhaarInput.d.ts +37 -0
- package/dist/models/AadhaarInput.js +46 -0
- package/dist/models/Address.d.ts +4 -4
- package/dist/models/Address.js +3 -3
- package/dist/models/AttachmentAccessKeys.d.ts +12 -7
- package/dist/models/AttachmentAccessKeys.js +6 -1
- package/dist/models/BangladeshNationalIdInput.d.ts +49 -0
- package/dist/models/BangladeshNationalIdInput.js +50 -0
- package/dist/models/BrazilCpfCheckInput.d.ts +31 -0
- package/dist/models/BrazilCpfCheckInput.js +46 -0
- package/dist/models/BrazilDigitalCnhInput.d.ts +57 -0
- package/dist/models/BrazilDigitalCnhInput.js +52 -0
- package/dist/models/CancelSessionResponse.d.ts +1 -1
- package/dist/models/CancelSessionResponse.js +1 -1
- package/dist/models/CreateAdvancedProviderSessionRequest.d.ts +83 -0
- package/dist/models/CreateAdvancedProviderSessionRequest.js +58 -0
- package/dist/models/CreateAdvancedProviderSessionResponse.d.ts +45 -0
- package/dist/models/CreateAdvancedProviderSessionResponse.js +56 -0
- package/dist/models/CreateHostedProviderSessionRequest.d.ts +44 -0
- package/dist/models/CreateHostedProviderSessionRequest.js +53 -0
- package/dist/models/CreateHostedProviderSessionResponse.d.ts +43 -0
- package/dist/models/CreateHostedProviderSessionResponse.js +48 -0
- package/dist/models/CreateWidgetSessionRequest.d.ts +49 -0
- package/dist/models/CreateWidgetSessionRequest.js +49 -0
- package/dist/models/CreateWidgetSessionResponse.d.ts +41 -0
- package/dist/models/CreateWidgetSessionResponse.js +48 -0
- package/dist/models/DocumentData.d.ts +8 -7
- package/dist/models/DocumentData.js +8 -7
- package/dist/models/DocumentScanAttachments.d.ts +31 -0
- package/dist/models/DocumentScanAttachments.js +44 -0
- package/dist/models/DocumentType.d.ts +26 -0
- package/dist/models/DocumentType.js +49 -0
- package/dist/models/GetAttachmentRequest.d.ts +1 -1
- package/dist/models/GetAttachmentRequest.js +1 -1
- package/dist/models/GetAttachmentResponse.d.ts +1 -1
- package/dist/models/GetAttachmentResponse.js +1 -1
- package/dist/models/GetSessionResponse.d.ts +1 -1
- package/dist/models/GetSessionResponse.js +1 -1
- package/dist/models/GetSessionResultRequest.d.ts +1 -1
- package/dist/models/GetSessionResultRequest.js +1 -1
- package/dist/models/GetSessionResultResponse.d.ts +1 -1
- package/dist/models/GetSessionResultResponse.js +1 -1
- package/dist/models/HttpValidationProblemDetails.d.ts +63 -0
- package/dist/models/HttpValidationProblemDetails.js +54 -0
- package/dist/models/IdentityData.d.ts +5 -5
- package/dist/models/IdentityData.js +1 -1
- package/dist/models/IntegrationCapability.d.ts +28 -0
- package/dist/models/IntegrationCapability.js +51 -0
- package/dist/models/IntegrationLaunchMethod.d.ts +26 -0
- package/dist/models/IntegrationLaunchMethod.js +49 -0
- package/dist/models/IntegrationStep.d.ts +45 -0
- package/dist/models/IntegrationStep.js +56 -0
- package/dist/models/KnownAddress.d.ts +74 -0
- package/dist/models/KnownAddress.js +58 -0
- package/dist/models/KnownIdentityData.d.ts +34 -0
- package/dist/models/KnownIdentityData.js +45 -0
- package/dist/models/KnownPersonData.d.ts +74 -0
- package/dist/models/KnownPersonData.js +59 -0
- package/dist/models/ListProvidersResponse.d.ts +1 -1
- package/dist/models/ListProvidersResponse.js +1 -1
- package/dist/models/ListSessionsResponse.d.ts +1 -1
- package/dist/models/ListSessionsResponse.js +1 -1
- package/dist/models/OrderDirection.d.ts +1 -1
- package/dist/models/OrderDirection.js +1 -1
- package/dist/models/PersonData.d.ts +17 -12
- package/dist/models/PersonData.js +8 -5
- package/dist/models/PhilippineMatchInput.d.ts +55 -0
- package/dist/models/PhilippineMatchInput.js +52 -0
- package/dist/models/PhilippineQRInput.d.ts +37 -0
- package/dist/models/PhilippineQRInput.js +46 -0
- package/dist/models/ProblemDetails.d.ts +56 -0
- package/dist/models/ProblemDetails.js +40 -0
- package/dist/models/ProviderAttachments.d.ts +32 -0
- package/dist/models/ProviderAttachments.js +45 -0
- package/dist/models/ProviderInfo.d.ts +7 -1
- package/dist/models/ProviderInfo.js +3 -1
- package/dist/models/ProviderInformation.d.ts +43 -0
- package/dist/models/ProviderInformation.js +54 -0
- package/dist/models/ProviderInput.d.ts +67 -0
- package/dist/models/ProviderInput.js +60 -0
- package/dist/models/RecommendRequest.d.ts +49 -0
- package/dist/models/RecommendRequest.js +50 -0
- package/dist/models/RecommendResponse.d.ts +44 -0
- package/dist/models/RecommendResponse.js +55 -0
- package/dist/models/RefreshStepContentRequest.d.ts +31 -0
- package/dist/models/RefreshStepContentRequest.js +44 -0
- package/dist/models/RefreshStepContentResponse.d.ts +32 -0
- package/dist/models/RefreshStepContentResponse.js +47 -0
- package/dist/models/ResultCollection.d.ts +38 -0
- package/dist/models/ResultCollection.js +49 -0
- package/dist/models/ResultCollectionMethod.d.ts +24 -0
- package/dist/models/ResultCollectionMethod.js +47 -0
- package/dist/models/Session.d.ts +18 -20
- package/dist/models/Session.js +10 -17
- package/dist/models/SessionErrorCode.d.ts +32 -0
- package/dist/models/SessionErrorCode.js +55 -0
- package/dist/models/SessionOrdering.d.ts +1 -1
- package/dist/models/SessionOrdering.js +1 -1
- package/dist/models/Sex.d.ts +26 -0
- package/dist/models/Sex.js +49 -0
- package/dist/models/StepRefreshInfo.d.ts +45 -0
- package/dist/models/StepRefreshInfo.js +54 -0
- package/dist/models/index.d.ts +34 -11
- package/dist/models/index.js +34 -11
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/package.json +1 -1
- package/src/apis/AttachmentsApi.ts +4 -7
- package/src/apis/NetworkApi.ts +47 -51
- package/src/apis/SessionsApi.ts +234 -33
- package/src/models/AadhaarInput.ts +68 -0
- package/src/models/Address.ts +6 -6
- package/src/models/AttachmentAccessKeys.ts +22 -8
- package/src/models/BangladeshNationalIdInput.ts +84 -0
- package/src/models/BrazilCpfCheckInput.ts +61 -0
- package/src/models/BrazilDigitalCnhInput.ts +93 -0
- package/src/models/CancelSessionResponse.ts +1 -1
- package/src/models/CreateAdvancedProviderSessionRequest.ts +133 -0
- package/src/models/CreateAdvancedProviderSessionResponse.ts +92 -0
- package/src/models/CreateHostedProviderSessionRequest.ts +85 -0
- package/src/models/CreateHostedProviderSessionResponse.ts +75 -0
- package/src/models/CreateWidgetSessionRequest.ts +88 -0
- package/src/models/{CreateSessionResponse.ts → CreateWidgetSessionResponse.ts} +17 -25
- package/src/models/DocumentData.ts +22 -13
- package/src/models/DocumentScanAttachments.ts +60 -0
- package/src/models/DocumentType.ts +51 -0
- package/src/models/GetAttachmentRequest.ts +1 -1
- package/src/models/GetAttachmentResponse.ts +1 -1
- package/src/models/GetSessionResponse.ts +1 -1
- package/src/models/GetSessionResultRequest.ts +1 -1
- package/src/models/GetSessionResultResponse.ts +1 -1
- package/src/models/HttpValidationProblemDetails.ts +100 -0
- package/src/models/IdentityData.ts +5 -5
- package/src/models/IntegrationCapability.ts +53 -0
- package/src/models/IntegrationLaunchMethod.ts +51 -0
- package/src/models/IntegrationStep.ts +94 -0
- package/src/models/KnownAddress.ts +117 -0
- package/src/models/KnownIdentityData.ts +69 -0
- package/src/models/KnownPersonData.ts +123 -0
- package/src/models/ListProvidersResponse.ts +1 -1
- package/src/models/ListSessionsResponse.ts +1 -1
- package/src/models/OrderDirection.ts +1 -1
- package/src/models/PersonData.ts +31 -17
- package/src/models/PhilippineMatchInput.ts +92 -0
- package/src/models/PhilippineQRInput.ts +68 -0
- package/src/models/ProblemDetails.ts +95 -0
- package/src/models/ProviderAttachments.ts +67 -0
- package/src/models/ProviderInfo.ts +9 -1
- package/src/models/ProviderInformation.ts +79 -0
- package/src/models/ProviderInput.ts +137 -0
- package/src/models/RecommendRequest.ts +84 -0
- package/src/models/RecommendResponse.ts +86 -0
- package/src/models/RefreshStepContentRequest.ts +60 -0
- package/src/models/RefreshStepContentResponse.ts +68 -0
- package/src/models/ResultCollection.ts +78 -0
- package/src/models/ResultCollectionMethod.ts +49 -0
- package/src/models/Session.ts +30 -50
- package/src/models/SessionErrorCode.ts +57 -0
- package/src/models/SessionOrdering.ts +1 -1
- package/src/models/Sex.ts +51 -0
- package/src/models/StepRefreshInfo.ts +81 -0
- package/src/models/index.ts +34 -11
- package/src/runtime.ts +1 -1
- package/dist/esm/models/CreateSessionRequest.d.ts +0 -73
- package/dist/esm/models/CreateSessionRequest.js +0 -45
- package/dist/esm/models/CreateSessionResponse.d.ts +0 -43
- package/dist/esm/models/DisclosedFields.d.ts +0 -97
- package/dist/esm/models/DisclosedFields.js +0 -84
- package/dist/esm/models/DisclosedFieldsRequest.d.ts +0 -97
- package/dist/esm/models/DisclosedFieldsRequest.js +0 -60
- package/dist/esm/models/FailureMessage.d.ts +0 -31
- package/dist/esm/models/IdentityLookupResponse.d.ts +0 -31
- package/dist/esm/models/IdentityLookupResponse.js +0 -40
- package/dist/esm/models/SessionFailCode.d.ts +0 -29
- package/dist/esm/models/SessionFailCode.js +0 -45
- package/dist/esm/models/SessionState.d.ts +0 -28
- package/dist/esm/models/SessionState.js +0 -44
- package/dist/esm/models/ValidationResult.d.ts +0 -37
- package/dist/esm/models/ValidationResult.js +0 -41
- package/dist/esm/models/Verification.d.ts +0 -38
- package/dist/esm/models/Verification.js +0 -41
- package/dist/esm/models/VerificationFailCode.d.ts +0 -27
- package/dist/esm/models/VerificationFailCode.js +0 -43
- package/dist/models/CreateSessionRequest.d.ts +0 -73
- package/dist/models/CreateSessionRequest.js +0 -51
- package/dist/models/CreateSessionResponse.d.ts +0 -43
- package/dist/models/CreateSessionResponse.js +0 -49
- package/dist/models/DisclosedFields.d.ts +0 -97
- package/dist/models/DisclosedFields.js +0 -90
- package/dist/models/DisclosedFieldsRequest.d.ts +0 -97
- package/dist/models/DisclosedFieldsRequest.js +0 -66
- package/dist/models/FailureMessage.d.ts +0 -31
- package/dist/models/FailureMessage.js +0 -46
- package/dist/models/IdentityLookupResponse.d.ts +0 -31
- package/dist/models/IdentityLookupResponse.js +0 -46
- package/dist/models/SessionFailCode.d.ts +0 -29
- package/dist/models/SessionFailCode.js +0 -52
- package/dist/models/SessionState.d.ts +0 -28
- package/dist/models/SessionState.js +0 -51
- package/dist/models/ValidationResult.d.ts +0 -37
- package/dist/models/ValidationResult.js +0 -47
- package/dist/models/Verification.d.ts +0 -38
- package/dist/models/Verification.js +0 -47
- package/dist/models/VerificationFailCode.d.ts +0 -27
- package/dist/models/VerificationFailCode.js +0 -50
- package/src/models/CreateSessionRequest.ts +0 -114
- package/src/models/DisclosedFields.ts +0 -160
- package/src/models/DisclosedFieldsRequest.ts +0 -148
- package/src/models/FailureMessage.ts +0 -61
- package/src/models/IdentityLookupResponse.ts +0 -61
- package/src/models/SessionFailCode.ts +0 -54
- package/src/models/SessionState.ts +0 -53
- package/src/models/ValidationResult.ts +0 -68
- package/src/models/Verification.ts +0 -77
- package/src/models/VerificationFailCode.ts +0 -52
|
@@ -0,0 +1,46 @@
|
|
|
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.instanceOfAadhaarInput = instanceOfAadhaarInput;
|
|
17
|
+
exports.AadhaarInputFromJSON = AadhaarInputFromJSON;
|
|
18
|
+
exports.AadhaarInputFromJSONTyped = AadhaarInputFromJSONTyped;
|
|
19
|
+
exports.AadhaarInputToJSON = AadhaarInputToJSON;
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the AadhaarInput interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfAadhaarInput(value) {
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
function AadhaarInputFromJSON(json) {
|
|
27
|
+
return AadhaarInputFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
function AadhaarInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'fullName': json['fullName'] == null ? undefined : json['fullName'],
|
|
35
|
+
'dateOfBirth': json['dateOfBirth'] == null ? undefined : (new Date(json['dateOfBirth'])),
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function AadhaarInputToJSON(value) {
|
|
39
|
+
if (value == null) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'fullName': value['fullName'],
|
|
44
|
+
'dateOfBirth': value['dateOfBirth'] == null ? undefined : ((value['dateOfBirth']).toISOString().substring(0, 10)),
|
|
45
|
+
};
|
|
46
|
+
}
|
package/dist/models/Address.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Trinsic API
|
|
3
3
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: v1
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
*
|
|
14
14
|
* @export
|
|
15
15
|
* @interface Address
|
|
16
16
|
*/
|
|
@@ -44,7 +44,7 @@ export interface Address {
|
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof Address
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
subdivision?: string;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {string}
|
|
@@ -58,7 +58,7 @@ export interface Address {
|
|
|
58
58
|
*/
|
|
59
59
|
country?: string;
|
|
60
60
|
/**
|
|
61
|
-
*
|
|
61
|
+
*
|
|
62
62
|
* @type {string}
|
|
63
63
|
* @memberof Address
|
|
64
64
|
*/
|
package/dist/models/Address.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Trinsic API
|
|
6
6
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: v1
|
|
@@ -35,7 +35,7 @@ function AddressFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
35
|
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
36
36
|
'line3': json['line3'] == null ? undefined : json['line3'],
|
|
37
37
|
'city': json['city'] == null ? undefined : json['city'],
|
|
38
|
-
'
|
|
38
|
+
'subdivision': json['subdivision'] == null ? undefined : json['subdivision'],
|
|
39
39
|
'postalCode': json['postalCode'] == null ? undefined : json['postalCode'],
|
|
40
40
|
'country': json['country'] == null ? undefined : json['country'],
|
|
41
41
|
'fullAddress': json['fullAddress'] == null ? undefined : json['fullAddress'],
|
|
@@ -50,7 +50,7 @@ function AddressToJSON(value) {
|
|
|
50
50
|
'line2': value['line2'],
|
|
51
51
|
'line3': value['line3'],
|
|
52
52
|
'city': value['city'],
|
|
53
|
-
'
|
|
53
|
+
'subdivision': value['subdivision'],
|
|
54
54
|
'postalCode': value['postalCode'],
|
|
55
55
|
'country': value['country'],
|
|
56
56
|
'fullAddress': value['fullAddress'],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Trinsic API
|
|
3
3
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: v1
|
|
@@ -9,38 +9,43 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { ProviderAttachments } from './ProviderAttachments';
|
|
12
13
|
/**
|
|
13
|
-
*
|
|
14
|
+
*
|
|
14
15
|
* @export
|
|
15
16
|
* @interface AttachmentAccessKeys
|
|
16
17
|
*/
|
|
17
18
|
export interface AttachmentAccessKeys {
|
|
18
19
|
/**
|
|
19
|
-
*
|
|
20
|
+
*
|
|
20
21
|
* @type {string}
|
|
21
22
|
* @memberof AttachmentAccessKeys
|
|
22
23
|
*/
|
|
23
24
|
selfie?: string;
|
|
24
25
|
/**
|
|
25
|
-
*
|
|
26
|
+
*
|
|
26
27
|
* @type {string}
|
|
27
28
|
* @memberof AttachmentAccessKeys
|
|
28
29
|
*/
|
|
29
30
|
documentFront?: string;
|
|
30
31
|
/**
|
|
31
|
-
*
|
|
32
|
+
*
|
|
32
33
|
* @type {string}
|
|
33
34
|
* @memberof AttachmentAccessKeys
|
|
34
35
|
*/
|
|
35
36
|
documentBack?: string;
|
|
36
37
|
/**
|
|
37
|
-
* Key to access the document portrait image (if relevant and available) for this verification.
|
|
38
38
|
*
|
|
39
|
-
* Specifically, this is a cropped version of the document front image which includes only the portrait on the document.
|
|
40
39
|
* @type {string}
|
|
41
40
|
* @memberof AttachmentAccessKeys
|
|
42
41
|
*/
|
|
43
42
|
documentPortrait?: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {ProviderAttachments}
|
|
46
|
+
* @memberof AttachmentAccessKeys
|
|
47
|
+
*/
|
|
48
|
+
provider: ProviderAttachments;
|
|
44
49
|
}
|
|
45
50
|
/**
|
|
46
51
|
* Check if a given object implements the AttachmentAccessKeys interface.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Trinsic API
|
|
6
6
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: v1
|
|
@@ -17,10 +17,13 @@ exports.instanceOfAttachmentAccessKeys = instanceOfAttachmentAccessKeys;
|
|
|
17
17
|
exports.AttachmentAccessKeysFromJSON = AttachmentAccessKeysFromJSON;
|
|
18
18
|
exports.AttachmentAccessKeysFromJSONTyped = AttachmentAccessKeysFromJSONTyped;
|
|
19
19
|
exports.AttachmentAccessKeysToJSON = AttachmentAccessKeysToJSON;
|
|
20
|
+
const ProviderAttachments_1 = require("./ProviderAttachments");
|
|
20
21
|
/**
|
|
21
22
|
* Check if a given object implements the AttachmentAccessKeys interface.
|
|
22
23
|
*/
|
|
23
24
|
function instanceOfAttachmentAccessKeys(value) {
|
|
25
|
+
if (!('provider' in value) || value['provider'] === undefined)
|
|
26
|
+
return false;
|
|
24
27
|
return true;
|
|
25
28
|
}
|
|
26
29
|
function AttachmentAccessKeysFromJSON(json) {
|
|
@@ -35,6 +38,7 @@ function AttachmentAccessKeysFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
38
|
'documentFront': json['documentFront'] == null ? undefined : json['documentFront'],
|
|
36
39
|
'documentBack': json['documentBack'] == null ? undefined : json['documentBack'],
|
|
37
40
|
'documentPortrait': json['documentPortrait'] == null ? undefined : json['documentPortrait'],
|
|
41
|
+
'provider': (0, ProviderAttachments_1.ProviderAttachmentsFromJSON)(json['provider']),
|
|
38
42
|
};
|
|
39
43
|
}
|
|
40
44
|
function AttachmentAccessKeysToJSON(value) {
|
|
@@ -46,5 +50,6 @@ function AttachmentAccessKeysToJSON(value) {
|
|
|
46
50
|
'documentFront': value['documentFront'],
|
|
47
51
|
'documentBack': value['documentBack'],
|
|
48
52
|
'documentPortrait': value['documentPortrait'],
|
|
53
|
+
'provider': (0, ProviderAttachments_1.ProviderAttachmentsToJSON)(value['provider']),
|
|
49
54
|
};
|
|
50
55
|
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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 BangladeshNationalIdInput
|
|
16
|
+
*/
|
|
17
|
+
export interface BangladeshNationalIdInput {
|
|
18
|
+
/**
|
|
19
|
+
* The user's Bangladesh National ID number.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof BangladeshNationalIdInput
|
|
22
|
+
*/
|
|
23
|
+
nationalIdNumber?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The user's date of birth, in `YYYY-MM-DD` format
|
|
26
|
+
* @type {Date}
|
|
27
|
+
* @memberof BangladeshNationalIdInput
|
|
28
|
+
*/
|
|
29
|
+
dateOfBirth?: Date;
|
|
30
|
+
/**
|
|
31
|
+
* The user's full name
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof BangladeshNationalIdInput
|
|
34
|
+
*/
|
|
35
|
+
name?: string;
|
|
36
|
+
/**
|
|
37
|
+
* The base64-encoded bytes of the photo collected from the user
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof BangladeshNationalIdInput
|
|
40
|
+
*/
|
|
41
|
+
photoBase64?: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the BangladeshNationalIdInput interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfBangladeshNationalIdInput(value: object): value is BangladeshNationalIdInput;
|
|
47
|
+
export declare function BangladeshNationalIdInputFromJSON(json: any): BangladeshNationalIdInput;
|
|
48
|
+
export declare function BangladeshNationalIdInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): BangladeshNationalIdInput;
|
|
49
|
+
export declare function BangladeshNationalIdInputToJSON(value?: BangladeshNationalIdInput | null): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfBangladeshNationalIdInput = instanceOfBangladeshNationalIdInput;
|
|
17
|
+
exports.BangladeshNationalIdInputFromJSON = BangladeshNationalIdInputFromJSON;
|
|
18
|
+
exports.BangladeshNationalIdInputFromJSONTyped = BangladeshNationalIdInputFromJSONTyped;
|
|
19
|
+
exports.BangladeshNationalIdInputToJSON = BangladeshNationalIdInputToJSON;
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the BangladeshNationalIdInput interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfBangladeshNationalIdInput(value) {
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
function BangladeshNationalIdInputFromJSON(json) {
|
|
27
|
+
return BangladeshNationalIdInputFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
function BangladeshNationalIdInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'nationalIdNumber': json['nationalIdNumber'] == null ? undefined : json['nationalIdNumber'],
|
|
35
|
+
'dateOfBirth': json['dateOfBirth'] == null ? undefined : (new Date(json['dateOfBirth'])),
|
|
36
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
37
|
+
'photoBase64': json['photoBase64'] == null ? undefined : json['photoBase64'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function BangladeshNationalIdInputToJSON(value) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'nationalIdNumber': value['nationalIdNumber'],
|
|
46
|
+
'dateOfBirth': value['dateOfBirth'] == null ? undefined : ((value['dateOfBirth']).toISOString().substring(0, 10)),
|
|
47
|
+
'name': value['name'],
|
|
48
|
+
'photoBase64': value['photoBase64'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 BrazilCpfCheckInput
|
|
16
|
+
*/
|
|
17
|
+
export interface BrazilCpfCheckInput {
|
|
18
|
+
/**
|
|
19
|
+
* The user's 11-digit, numeric CPF Number
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof BrazilCpfCheckInput
|
|
22
|
+
*/
|
|
23
|
+
cpfNumber: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the BrazilCpfCheckInput interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfBrazilCpfCheckInput(value: object): value is BrazilCpfCheckInput;
|
|
29
|
+
export declare function BrazilCpfCheckInputFromJSON(json: any): BrazilCpfCheckInput;
|
|
30
|
+
export declare function BrazilCpfCheckInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrazilCpfCheckInput;
|
|
31
|
+
export declare function BrazilCpfCheckInputToJSON(value?: BrazilCpfCheckInput | null): any;
|
|
@@ -0,0 +1,46 @@
|
|
|
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.instanceOfBrazilCpfCheckInput = instanceOfBrazilCpfCheckInput;
|
|
17
|
+
exports.BrazilCpfCheckInputFromJSON = BrazilCpfCheckInputFromJSON;
|
|
18
|
+
exports.BrazilCpfCheckInputFromJSONTyped = BrazilCpfCheckInputFromJSONTyped;
|
|
19
|
+
exports.BrazilCpfCheckInputToJSON = BrazilCpfCheckInputToJSON;
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the BrazilCpfCheckInput interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfBrazilCpfCheckInput(value) {
|
|
24
|
+
if (!('cpfNumber' in value) || value['cpfNumber'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function BrazilCpfCheckInputFromJSON(json) {
|
|
29
|
+
return BrazilCpfCheckInputFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function BrazilCpfCheckInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'cpfNumber': json['cpfNumber'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function BrazilCpfCheckInputToJSON(value) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'cpfNumber': value['cpfNumber'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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 BrazilDigitalCnhInput
|
|
16
|
+
*/
|
|
17
|
+
export interface BrazilDigitalCnhInput {
|
|
18
|
+
/**
|
|
19
|
+
* The user's 11-digit, numeric CPF Number
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof BrazilDigitalCnhInput
|
|
22
|
+
*/
|
|
23
|
+
cpfNumber: string;
|
|
24
|
+
/**
|
|
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
|
+
* @type {string}
|
|
33
|
+
* @memberof BrazilDigitalCnhInput
|
|
34
|
+
*/
|
|
35
|
+
digitalCnhFile?: string;
|
|
36
|
+
/**
|
|
37
|
+
* The MIME Type of the file contained in `DigitalCnhFile`.
|
|
38
|
+
*
|
|
39
|
+
* Must be one of `application/pdf`, `image/jpeg`, or `image/png`.
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof BrazilDigitalCnhInput
|
|
42
|
+
*/
|
|
43
|
+
digitalCnhFileContentType?: string;
|
|
44
|
+
/**
|
|
45
|
+
* The raw bytes of the image of the user's face, collected for biometric comparison.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof BrazilDigitalCnhInput
|
|
48
|
+
*/
|
|
49
|
+
facialBiometryPhoto?: string;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the BrazilDigitalCnhInput interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfBrazilDigitalCnhInput(value: object): value is BrazilDigitalCnhInput;
|
|
55
|
+
export declare function BrazilDigitalCnhInputFromJSON(json: any): BrazilDigitalCnhInput;
|
|
56
|
+
export declare function BrazilDigitalCnhInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrazilDigitalCnhInput;
|
|
57
|
+
export declare function BrazilDigitalCnhInputToJSON(value?: BrazilDigitalCnhInput | null): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
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.instanceOfBrazilDigitalCnhInput = instanceOfBrazilDigitalCnhInput;
|
|
17
|
+
exports.BrazilDigitalCnhInputFromJSON = BrazilDigitalCnhInputFromJSON;
|
|
18
|
+
exports.BrazilDigitalCnhInputFromJSONTyped = BrazilDigitalCnhInputFromJSONTyped;
|
|
19
|
+
exports.BrazilDigitalCnhInputToJSON = BrazilDigitalCnhInputToJSON;
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the BrazilDigitalCnhInput interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfBrazilDigitalCnhInput(value) {
|
|
24
|
+
if (!('cpfNumber' in value) || value['cpfNumber'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function BrazilDigitalCnhInputFromJSON(json) {
|
|
29
|
+
return BrazilDigitalCnhInputFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function BrazilDigitalCnhInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'cpfNumber': json['cpfNumber'],
|
|
37
|
+
'digitalCnhFile': json['digitalCnhFile'] == null ? undefined : json['digitalCnhFile'],
|
|
38
|
+
'digitalCnhFileContentType': json['digitalCnhFileContentType'] == null ? undefined : json['digitalCnhFileContentType'],
|
|
39
|
+
'facialBiometryPhoto': json['facialBiometryPhoto'] == null ? undefined : json['facialBiometryPhoto'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function BrazilDigitalCnhInputToJSON(value) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'cpfNumber': value['cpfNumber'],
|
|
48
|
+
'digitalCnhFile': value['digitalCnhFile'],
|
|
49
|
+
'digitalCnhFileContentType': value['digitalCnhFileContentType'],
|
|
50
|
+
'facialBiometryPhoto': value['facialBiometryPhoto'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
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 { IntegrationCapability } from './IntegrationCapability';
|
|
13
|
+
import type { ProviderInput } from './ProviderInput';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface CreateAdvancedProviderSessionRequest
|
|
18
|
+
*/
|
|
19
|
+
export interface CreateAdvancedProviderSessionRequest {
|
|
20
|
+
/**
|
|
21
|
+
* The ID of the provider to launch
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof CreateAdvancedProviderSessionRequest
|
|
24
|
+
*/
|
|
25
|
+
provider: string;
|
|
26
|
+
/**
|
|
27
|
+
* Provider-specific input for those providers which require it.
|
|
28
|
+
* @type {ProviderInput}
|
|
29
|
+
* @memberof CreateAdvancedProviderSessionRequest
|
|
30
|
+
*/
|
|
31
|
+
providerInput?: ProviderInput;
|
|
32
|
+
/**
|
|
33
|
+
* The Redirect URL to which the user should be sent after the session is complete.
|
|
34
|
+
*
|
|
35
|
+
* This field is required for providers which employ a redirect-based flow.
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof CreateAdvancedProviderSessionRequest
|
|
38
|
+
*/
|
|
39
|
+
redirectUrl?: string;
|
|
40
|
+
/**
|
|
41
|
+
* The list of capabilities your integration supports. Capabilities are the core of Trinsic's whitelabel-with-optional-fallback offering.
|
|
42
|
+
*
|
|
43
|
+
* Most capabilities align with either an `IntegrationLaunchMethod` or an `IntegrationCollectionMethod`.
|
|
44
|
+
* The exception being refresh content to support updating the content of the launch method.
|
|
45
|
+
*
|
|
46
|
+
* For example, to support a basic redirect-based flow, you must include the `LaunchRedirect` and `CaptureRedirect` capabilities.
|
|
47
|
+
* To support a mobile deeplink / polling flow, you must include the `DeeplinkToMobile` and `PollForResults` capabilities.
|
|
48
|
+
*
|
|
49
|
+
* If `FallbackToHostedUi` is `true`, Trinsic will automatically fall back to a Trinsic-hosted UI to cover any gaps in your integration's capabilities.
|
|
50
|
+
* If `FallbackToHostedUi` is `false`, gaps in your integration's capabilities will result in an error during Session creation.
|
|
51
|
+
*
|
|
52
|
+
* Read more on how to integrate at <a href="https://docs.trinsic.id/docs/advanced-provider-sessions">the guide on Advanced Provider Sessions</a>
|
|
53
|
+
* @type {Array<IntegrationCapability>}
|
|
54
|
+
* @memberof CreateAdvancedProviderSessionRequest
|
|
55
|
+
*/
|
|
56
|
+
capabilities: Array<IntegrationCapability>;
|
|
57
|
+
/**
|
|
58
|
+
* Whether the session should fall back to a Trinsic-hosted UI in certain instances.
|
|
59
|
+
*
|
|
60
|
+
* Specifically, fallback will occur if any of the following are true:
|
|
61
|
+
* - You attempted to launch a provider which requires a capability you did not express support for
|
|
62
|
+
* - In this case, Trinsic's hosted UI will perform the necessary capability
|
|
63
|
+
* - You attempted to launch a provider which requires input, and the input was either not provided or incomplete
|
|
64
|
+
* - In this case, Trinsic's hosted UI will collect the necessary input from the user
|
|
65
|
+
*
|
|
66
|
+
* If fallback occurs, the session's NextStep will always be LaunchBrowser,
|
|
67
|
+
* and the CollectionMethod will always be CaptureRedirect.
|
|
68
|
+
*
|
|
69
|
+
* If this field is set to `true`, you must also:
|
|
70
|
+
* 1. Set the `RedirectUrl` field to a non-empty value
|
|
71
|
+
* 2. Include the `LaunchBrowser` and `CaptureRedirect` capabilities in the `Capabilities` field
|
|
72
|
+
* @type {boolean}
|
|
73
|
+
* @memberof CreateAdvancedProviderSessionRequest
|
|
74
|
+
*/
|
|
75
|
+
fallbackToHostedUI?: boolean;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Check if a given object implements the CreateAdvancedProviderSessionRequest interface.
|
|
79
|
+
*/
|
|
80
|
+
export declare function instanceOfCreateAdvancedProviderSessionRequest(value: object): value is CreateAdvancedProviderSessionRequest;
|
|
81
|
+
export declare function CreateAdvancedProviderSessionRequestFromJSON(json: any): CreateAdvancedProviderSessionRequest;
|
|
82
|
+
export declare function CreateAdvancedProviderSessionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAdvancedProviderSessionRequest;
|
|
83
|
+
export declare function CreateAdvancedProviderSessionRequestToJSON(value?: CreateAdvancedProviderSessionRequest | null): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
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.instanceOfCreateAdvancedProviderSessionRequest = instanceOfCreateAdvancedProviderSessionRequest;
|
|
17
|
+
exports.CreateAdvancedProviderSessionRequestFromJSON = CreateAdvancedProviderSessionRequestFromJSON;
|
|
18
|
+
exports.CreateAdvancedProviderSessionRequestFromJSONTyped = CreateAdvancedProviderSessionRequestFromJSONTyped;
|
|
19
|
+
exports.CreateAdvancedProviderSessionRequestToJSON = CreateAdvancedProviderSessionRequestToJSON;
|
|
20
|
+
const IntegrationCapability_1 = require("./IntegrationCapability");
|
|
21
|
+
const ProviderInput_1 = require("./ProviderInput");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the CreateAdvancedProviderSessionRequest interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfCreateAdvancedProviderSessionRequest(value) {
|
|
26
|
+
if (!('provider' in value) || value['provider'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('capabilities' in value) || value['capabilities'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function CreateAdvancedProviderSessionRequestFromJSON(json) {
|
|
33
|
+
return CreateAdvancedProviderSessionRequestFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function CreateAdvancedProviderSessionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'provider': json['provider'],
|
|
41
|
+
'providerInput': json['providerInput'] == null ? undefined : (0, ProviderInput_1.ProviderInputFromJSON)(json['providerInput']),
|
|
42
|
+
'redirectUrl': json['redirectUrl'] == null ? undefined : json['redirectUrl'],
|
|
43
|
+
'capabilities': (json['capabilities'].map(IntegrationCapability_1.IntegrationCapabilityFromJSON)),
|
|
44
|
+
'fallbackToHostedUI': json['fallbackToHostedUI'] == null ? undefined : json['fallbackToHostedUI'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function CreateAdvancedProviderSessionRequestToJSON(value) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'provider': value['provider'],
|
|
53
|
+
'providerInput': (0, ProviderInput_1.ProviderInputToJSON)(value['providerInput']),
|
|
54
|
+
'redirectUrl': value['redirectUrl'],
|
|
55
|
+
'capabilities': (value['capabilities'].map(IntegrationCapability_1.IntegrationCapabilityToJSON)),
|
|
56
|
+
'fallbackToHostedUI': value['fallbackToHostedUI'],
|
|
57
|
+
};
|
|
58
|
+
}
|