@trinsic/api 1.2.0 → 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 +33 -11
- package/dist/apis/AttachmentsApi.d.ts +1 -1
- package/dist/apis/AttachmentsApi.js +1 -1
- package/dist/apis/NetworkApi.d.ts +6 -33
- package/dist/apis/NetworkApi.js +3 -40
- 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 +6 -33
- package/dist/esm/apis/NetworkApi.js +4 -41
- 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 +11 -11
- package/dist/esm/models/Address.js +3 -3
- package/dist/esm/models/AttachmentAccessKeys.d.ts +16 -11
- 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/BrazilCpfCheckInput.js +40 -0
- 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 +11 -10
- 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 +2 -2
- 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 +9 -9
- package/dist/esm/models/IdentityData.js +1 -1
- package/dist/esm/models/IndonesiaNikInput.d.ts +43 -0
- package/dist/esm/models/IndonesiaNikInput.js +48 -0
- 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/KenyaNidInput.d.ts +61 -0
- package/dist/esm/models/KenyaNidInput.js +58 -0
- package/dist/esm/models/KnownAddress.d.ts +15 -8
- package/dist/esm/models/KnownAddress.js +3 -1
- package/dist/esm/models/KnownIdentityData.d.ts +2 -2
- package/dist/esm/models/KnownIdentityData.js +1 -1
- package/dist/esm/models/KnownPersonData.d.ts +19 -7
- package/dist/esm/models/KnownPersonData.js +5 -1
- 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/MexicoCurpInput.d.ts +31 -0
- package/dist/esm/models/{FailureMessage.js → MexicoCurpInput.js} +10 -10
- package/dist/esm/models/NigeriaNinInput.d.ts +67 -0
- package/dist/esm/models/NigeriaNinInput.js +58 -0
- package/dist/esm/models/OrderDirection.d.ts +1 -1
- package/dist/esm/models/OrderDirection.js +1 -1
- package/dist/esm/models/PersonData.d.ts +23 -18
- 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 +1 -1
- package/dist/esm/models/ProviderInformation.js +1 -1
- package/dist/esm/models/ProviderInput.d.ts +102 -0
- package/dist/esm/models/ProviderInput.js +69 -0
- package/dist/esm/models/RecommendRequest.d.ts +18 -6
- package/dist/esm/models/RecommendRequest.js +8 -6
- package/dist/esm/models/RecommendResponse.d.ts +1 -1
- package/dist/esm/models/RecommendResponse.js +1 -1
- 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/SouthAfricaNidInput.d.ts +49 -0
- package/dist/esm/models/SouthAfricaNidInput.js +52 -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 +33 -11
- package/dist/esm/models/index.js +33 -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 +11 -11
- package/dist/models/Address.js +3 -3
- package/dist/models/AttachmentAccessKeys.d.ts +16 -11
- 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 +11 -10
- 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 +2 -2
- 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 +9 -9
- package/dist/models/IdentityData.js +1 -1
- package/dist/models/IndonesiaNikInput.d.ts +43 -0
- package/dist/models/IndonesiaNikInput.js +54 -0
- 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/KenyaNidInput.d.ts +61 -0
- package/dist/models/KenyaNidInput.js +64 -0
- package/dist/models/KnownAddress.d.ts +15 -8
- package/dist/models/KnownAddress.js +3 -1
- package/dist/models/KnownIdentityData.d.ts +2 -2
- package/dist/models/KnownIdentityData.js +1 -1
- package/dist/models/KnownPersonData.d.ts +19 -7
- package/dist/models/KnownPersonData.js +5 -1
- 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/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/OrderDirection.d.ts +1 -1
- package/dist/models/OrderDirection.js +1 -1
- package/dist/models/PersonData.d.ts +23 -18
- 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 +1 -1
- package/dist/models/ProviderInformation.js +1 -1
- package/dist/models/ProviderInput.d.ts +102 -0
- package/dist/models/ProviderInput.js +75 -0
- package/dist/models/RecommendRequest.d.ts +18 -6
- package/dist/models/RecommendRequest.js +8 -6
- package/dist/models/RecommendResponse.d.ts +1 -1
- package/dist/models/RecommendResponse.js +1 -1
- 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/SouthAfricaNidInput.d.ts +49 -0
- package/dist/models/SouthAfricaNidInput.js +58 -0
- package/dist/models/StepRefreshInfo.d.ts +45 -0
- package/dist/models/StepRefreshInfo.js +54 -0
- package/dist/models/index.d.ts +33 -11
- package/dist/models/index.js +33 -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 +8 -77
- package/src/apis/SessionsApi.ts +234 -33
- package/src/models/AadhaarInput.ts +68 -0
- package/src/models/Address.ts +13 -13
- package/src/models/AttachmentAccessKeys.ts +26 -12
- 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} +18 -26
- package/src/models/DocumentData.ts +25 -16
- 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 +2 -2
- package/src/models/HttpValidationProblemDetails.ts +100 -0
- package/src/models/IdentityData.ts +9 -9
- package/src/models/IndonesiaNikInput.ts +79 -0
- package/src/models/IntegrationCapability.ts +53 -0
- package/src/models/IntegrationLaunchMethod.ts +51 -0
- package/src/models/IntegrationStep.ts +94 -0
- package/src/models/KenyaNidInput.ts +105 -0
- package/src/models/KnownAddress.ts +17 -8
- package/src/models/KnownIdentityData.ts +2 -2
- package/src/models/KnownPersonData.ts +23 -7
- package/src/models/ListProvidersResponse.ts +1 -1
- package/src/models/ListSessionsResponse.ts +1 -1
- package/src/models/MexicoCurpInput.ts +61 -0
- package/src/models/NigeriaNinInput.ts +112 -0
- package/src/models/OrderDirection.ts +1 -1
- package/src/models/PersonData.ts +37 -23
- 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 +1 -1
- package/src/models/ProviderInput.ts +207 -0
- package/src/models/RecommendRequest.ts +25 -10
- package/src/models/RecommendResponse.ts +1 -1
- 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/SouthAfricaNidInput.ts +88 -0
- package/src/models/StepRefreshInfo.ts +81 -0
- package/src/models/index.ts +33 -11
- package/src/runtime.ts +1 -1
- package/dist/esm/models/CreateSessionRequest.d.ts +0 -82
- package/dist/esm/models/CreateSessionRequest.js +0 -48
- 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 -28
- package/dist/esm/models/VerificationFailCode.js +0 -44
- package/dist/models/CreateSessionRequest.d.ts +0 -82
- package/dist/models/CreateSessionRequest.js +0 -54
- 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 -28
- package/dist/models/VerificationFailCode.js +0 -51
- package/src/models/CreateSessionRequest.ts +0 -130
- 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 -53
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Trinsic API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { PhilippineQRInput } from './PhilippineQRInput';
|
|
17
|
+
import {
|
|
18
|
+
PhilippineQRInputFromJSON,
|
|
19
|
+
PhilippineQRInputFromJSONTyped,
|
|
20
|
+
PhilippineQRInputToJSON,
|
|
21
|
+
} from './PhilippineQRInput';
|
|
22
|
+
import type { BangladeshNationalIdInput } from './BangladeshNationalIdInput';
|
|
23
|
+
import {
|
|
24
|
+
BangladeshNationalIdInputFromJSON,
|
|
25
|
+
BangladeshNationalIdInputFromJSONTyped,
|
|
26
|
+
BangladeshNationalIdInputToJSON,
|
|
27
|
+
} from './BangladeshNationalIdInput';
|
|
28
|
+
import type { AadhaarInput } from './AadhaarInput';
|
|
29
|
+
import {
|
|
30
|
+
AadhaarInputFromJSON,
|
|
31
|
+
AadhaarInputFromJSONTyped,
|
|
32
|
+
AadhaarInputToJSON,
|
|
33
|
+
} from './AadhaarInput';
|
|
34
|
+
import type { KenyaNidInput } from './KenyaNidInput';
|
|
35
|
+
import {
|
|
36
|
+
KenyaNidInputFromJSON,
|
|
37
|
+
KenyaNidInputFromJSONTyped,
|
|
38
|
+
KenyaNidInputToJSON,
|
|
39
|
+
} from './KenyaNidInput';
|
|
40
|
+
import type { NigeriaNinInput } from './NigeriaNinInput';
|
|
41
|
+
import {
|
|
42
|
+
NigeriaNinInputFromJSON,
|
|
43
|
+
NigeriaNinInputFromJSONTyped,
|
|
44
|
+
NigeriaNinInputToJSON,
|
|
45
|
+
} from './NigeriaNinInput';
|
|
46
|
+
import type { BrazilCpfCheckInput } from './BrazilCpfCheckInput';
|
|
47
|
+
import {
|
|
48
|
+
BrazilCpfCheckInputFromJSON,
|
|
49
|
+
BrazilCpfCheckInputFromJSONTyped,
|
|
50
|
+
BrazilCpfCheckInputToJSON,
|
|
51
|
+
} from './BrazilCpfCheckInput';
|
|
52
|
+
import type { MexicoCurpInput } from './MexicoCurpInput';
|
|
53
|
+
import {
|
|
54
|
+
MexicoCurpInputFromJSON,
|
|
55
|
+
MexicoCurpInputFromJSONTyped,
|
|
56
|
+
MexicoCurpInputToJSON,
|
|
57
|
+
} from './MexicoCurpInput';
|
|
58
|
+
import type { BrazilDigitalCnhInput } from './BrazilDigitalCnhInput';
|
|
59
|
+
import {
|
|
60
|
+
BrazilDigitalCnhInputFromJSON,
|
|
61
|
+
BrazilDigitalCnhInputFromJSONTyped,
|
|
62
|
+
BrazilDigitalCnhInputToJSON,
|
|
63
|
+
} from './BrazilDigitalCnhInput';
|
|
64
|
+
import type { IndonesiaNikInput } from './IndonesiaNikInput';
|
|
65
|
+
import {
|
|
66
|
+
IndonesiaNikInputFromJSON,
|
|
67
|
+
IndonesiaNikInputFromJSONTyped,
|
|
68
|
+
IndonesiaNikInputToJSON,
|
|
69
|
+
} from './IndonesiaNikInput';
|
|
70
|
+
import type { SouthAfricaNidInput } from './SouthAfricaNidInput';
|
|
71
|
+
import {
|
|
72
|
+
SouthAfricaNidInputFromJSON,
|
|
73
|
+
SouthAfricaNidInputFromJSONTyped,
|
|
74
|
+
SouthAfricaNidInputToJSON,
|
|
75
|
+
} from './SouthAfricaNidInput';
|
|
76
|
+
import type { PhilippineMatchInput } from './PhilippineMatchInput';
|
|
77
|
+
import {
|
|
78
|
+
PhilippineMatchInputFromJSON,
|
|
79
|
+
PhilippineMatchInputFromJSONTyped,
|
|
80
|
+
PhilippineMatchInputToJSON,
|
|
81
|
+
} from './PhilippineMatchInput';
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @export
|
|
86
|
+
* @interface ProviderInput
|
|
87
|
+
*/
|
|
88
|
+
export interface ProviderInput {
|
|
89
|
+
/**
|
|
90
|
+
* Input for the `f-indonesia-nik` integration
|
|
91
|
+
* @type {IndonesiaNikInput}
|
|
92
|
+
* @memberof ProviderInput
|
|
93
|
+
*/
|
|
94
|
+
indonesiaNik?: IndonesiaNikInput | null;
|
|
95
|
+
/**
|
|
96
|
+
* Input for the `f-mexico-curp` integration
|
|
97
|
+
* @type {MexicoCurpInput}
|
|
98
|
+
* @memberof ProviderInput
|
|
99
|
+
*/
|
|
100
|
+
mexicoCurp?: MexicoCurpInput | null;
|
|
101
|
+
/**
|
|
102
|
+
* Input for the `f-south-africa-nid` integration
|
|
103
|
+
* @type {SouthAfricaNidInput}
|
|
104
|
+
* @memberof ProviderInput
|
|
105
|
+
*/
|
|
106
|
+
southAfricaNid?: SouthAfricaNidInput | null;
|
|
107
|
+
/**
|
|
108
|
+
* Input for the `f-kenya-nid` integration
|
|
109
|
+
* @type {KenyaNidInput}
|
|
110
|
+
* @memberof ProviderInput
|
|
111
|
+
*/
|
|
112
|
+
kenyaNid?: KenyaNidInput | null;
|
|
113
|
+
/**
|
|
114
|
+
* Input for the `f-nigeria-nin` integration
|
|
115
|
+
* @type {NigeriaNinInput}
|
|
116
|
+
* @memberof ProviderInput
|
|
117
|
+
*/
|
|
118
|
+
nigeriaNin?: NigeriaNinInput | null;
|
|
119
|
+
/**
|
|
120
|
+
* Input for the `f-india-aadhaar-match` integration
|
|
121
|
+
* @type {AadhaarInput}
|
|
122
|
+
* @memberof ProviderInput
|
|
123
|
+
*/
|
|
124
|
+
aadhaar?: AadhaarInput | null;
|
|
125
|
+
/**
|
|
126
|
+
* Input for the `bangladesh-nid` integration
|
|
127
|
+
* @type {BangladeshNationalIdInput}
|
|
128
|
+
* @memberof ProviderInput
|
|
129
|
+
*/
|
|
130
|
+
bangladeshNationalId?: BangladeshNationalIdInput | null;
|
|
131
|
+
/**
|
|
132
|
+
* Input for the `g-brazil-cpf` integration
|
|
133
|
+
* @type {BrazilCpfCheckInput}
|
|
134
|
+
* @memberof ProviderInput
|
|
135
|
+
*/
|
|
136
|
+
brazilCpfCheck?: BrazilCpfCheckInput | null;
|
|
137
|
+
/**
|
|
138
|
+
* Input for the `g-brazil-digital-cnh` integration
|
|
139
|
+
* @type {BrazilDigitalCnhInput}
|
|
140
|
+
* @memberof ProviderInput
|
|
141
|
+
*/
|
|
142
|
+
brazilDigitalCnh?: BrazilDigitalCnhInput | null;
|
|
143
|
+
/**
|
|
144
|
+
* Input for the `b-philsys-biometric` integration
|
|
145
|
+
* @type {PhilippineMatchInput}
|
|
146
|
+
* @memberof ProviderInput
|
|
147
|
+
*/
|
|
148
|
+
philippineMatch?: PhilippineMatchInput | null;
|
|
149
|
+
/**
|
|
150
|
+
* Input for the `b-philippine-qr-digital-national-id` and `b-philippine-qr-ephill-id` integrations
|
|
151
|
+
* @type {PhilippineQRInput}
|
|
152
|
+
* @memberof ProviderInput
|
|
153
|
+
*/
|
|
154
|
+
philippineQR?: PhilippineQRInput | null;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Check if a given object implements the ProviderInput interface.
|
|
159
|
+
*/
|
|
160
|
+
export function instanceOfProviderInput(value: object): value is ProviderInput {
|
|
161
|
+
return true;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export function ProviderInputFromJSON(json: any): ProviderInput {
|
|
165
|
+
return ProviderInputFromJSONTyped(json, false);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export function ProviderInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProviderInput {
|
|
169
|
+
if (json == null) {
|
|
170
|
+
return json;
|
|
171
|
+
}
|
|
172
|
+
return {
|
|
173
|
+
|
|
174
|
+
'indonesiaNik': json['indonesiaNik'] == null ? undefined : IndonesiaNikInputFromJSON(json['indonesiaNik']),
|
|
175
|
+
'mexicoCurp': json['mexicoCurp'] == null ? undefined : MexicoCurpInputFromJSON(json['mexicoCurp']),
|
|
176
|
+
'southAfricaNid': json['southAfricaNid'] == null ? undefined : SouthAfricaNidInputFromJSON(json['southAfricaNid']),
|
|
177
|
+
'kenyaNid': json['kenyaNid'] == null ? undefined : KenyaNidInputFromJSON(json['kenyaNid']),
|
|
178
|
+
'nigeriaNin': json['nigeriaNin'] == null ? undefined : NigeriaNinInputFromJSON(json['nigeriaNin']),
|
|
179
|
+
'aadhaar': json['aadhaar'] == null ? undefined : AadhaarInputFromJSON(json['aadhaar']),
|
|
180
|
+
'bangladeshNationalId': json['bangladeshNationalId'] == null ? undefined : BangladeshNationalIdInputFromJSON(json['bangladeshNationalId']),
|
|
181
|
+
'brazilCpfCheck': json['brazilCpfCheck'] == null ? undefined : BrazilCpfCheckInputFromJSON(json['brazilCpfCheck']),
|
|
182
|
+
'brazilDigitalCnh': json['brazilDigitalCnh'] == null ? undefined : BrazilDigitalCnhInputFromJSON(json['brazilDigitalCnh']),
|
|
183
|
+
'philippineMatch': json['philippineMatch'] == null ? undefined : PhilippineMatchInputFromJSON(json['philippineMatch']),
|
|
184
|
+
'philippineQR': json['philippineQR'] == null ? undefined : PhilippineQRInputFromJSON(json['philippineQR']),
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export function ProviderInputToJSON(value?: ProviderInput | null): any {
|
|
189
|
+
if (value == null) {
|
|
190
|
+
return value;
|
|
191
|
+
}
|
|
192
|
+
return {
|
|
193
|
+
|
|
194
|
+
'indonesiaNik': IndonesiaNikInputToJSON(value['indonesiaNik']),
|
|
195
|
+
'mexicoCurp': MexicoCurpInputToJSON(value['mexicoCurp']),
|
|
196
|
+
'southAfricaNid': SouthAfricaNidInputToJSON(value['southAfricaNid']),
|
|
197
|
+
'kenyaNid': KenyaNidInputToJSON(value['kenyaNid']),
|
|
198
|
+
'nigeriaNin': NigeriaNinInputToJSON(value['nigeriaNin']),
|
|
199
|
+
'aadhaar': AadhaarInputToJSON(value['aadhaar']),
|
|
200
|
+
'bangladeshNationalId': BangladeshNationalIdInputToJSON(value['bangladeshNationalId']),
|
|
201
|
+
'brazilCpfCheck': BrazilCpfCheckInputToJSON(value['brazilCpfCheck']),
|
|
202
|
+
'brazilDigitalCnh': BrazilDigitalCnhInputToJSON(value['brazilDigitalCnh']),
|
|
203
|
+
'philippineMatch': PhilippineMatchInputToJSON(value['philippineMatch']),
|
|
204
|
+
'philippineQR': PhilippineQRInputToJSON(value['philippineQR']),
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Trinsic API
|
|
5
5
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: v1
|
|
@@ -20,30 +20,41 @@ import { mapValues } from '../runtime';
|
|
|
20
20
|
*/
|
|
21
21
|
export interface RecommendRequest {
|
|
22
22
|
/**
|
|
23
|
-
* The phone number of the user you
|
|
23
|
+
* The phone number of the user you wish to generate a recommendation for. Will be used to look up the user's identity in the network
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof RecommendRequest
|
|
26
26
|
*/
|
|
27
|
-
phoneNumber
|
|
27
|
+
phoneNumber?: string | null;
|
|
28
28
|
/**
|
|
29
29
|
* A list of countries, in alpha-2 ISO 3166 format, you wish to specify for the recommendation, this can include the user's country of residence, nationality, etc.
|
|
30
30
|
* @type {Array<string>}
|
|
31
31
|
* @memberof RecommendRequest
|
|
32
32
|
*/
|
|
33
|
-
countries?: Array<string
|
|
33
|
+
countries?: Array<string> | null;
|
|
34
34
|
/**
|
|
35
|
-
* If one of the countries
|
|
35
|
+
* If one of the countries has subdivisions, for example the US states, you can specify a list of these to further refine the recommendation (e.g., CA, UT, NY)
|
|
36
36
|
* @type {Array<string>}
|
|
37
37
|
* @memberof RecommendRequest
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
subdivisions?: Array<string> | null;
|
|
40
|
+
/**
|
|
41
|
+
* Provide the IP addresses of the user you wish to generate a recommendation for. Will be used to look up the user's geographic location.
|
|
42
|
+
* @type {Array<string>}
|
|
43
|
+
* @memberof RecommendRequest
|
|
44
|
+
*/
|
|
45
|
+
ipAddresses?: Array<string> | null;
|
|
46
|
+
/**
|
|
47
|
+
* If true, the recommendation will include providers that are disabled for the app
|
|
48
|
+
* @type {boolean}
|
|
49
|
+
* @memberof RecommendRequest
|
|
50
|
+
*/
|
|
51
|
+
includeDisabledProviders?: boolean | null;
|
|
40
52
|
}
|
|
41
53
|
|
|
42
54
|
/**
|
|
43
55
|
* Check if a given object implements the RecommendRequest interface.
|
|
44
56
|
*/
|
|
45
57
|
export function instanceOfRecommendRequest(value: object): value is RecommendRequest {
|
|
46
|
-
if (!('phoneNumber' in value) || value['phoneNumber'] === undefined) return false;
|
|
47
58
|
return true;
|
|
48
59
|
}
|
|
49
60
|
|
|
@@ -57,9 +68,11 @@ export function RecommendRequestFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
57
68
|
}
|
|
58
69
|
return {
|
|
59
70
|
|
|
60
|
-
'phoneNumber': json['phoneNumber'],
|
|
71
|
+
'phoneNumber': json['phoneNumber'] == null ? undefined : json['phoneNumber'],
|
|
61
72
|
'countries': json['countries'] == null ? undefined : json['countries'],
|
|
62
|
-
'
|
|
73
|
+
'subdivisions': json['subdivisions'] == null ? undefined : json['subdivisions'],
|
|
74
|
+
'ipAddresses': json['ipAddresses'] == null ? undefined : json['ipAddresses'],
|
|
75
|
+
'includeDisabledProviders': json['includeDisabledProviders'] == null ? undefined : json['includeDisabledProviders'],
|
|
63
76
|
};
|
|
64
77
|
}
|
|
65
78
|
|
|
@@ -71,7 +84,9 @@ export function RecommendRequestToJSON(value?: RecommendRequest | null): any {
|
|
|
71
84
|
|
|
72
85
|
'phoneNumber': value['phoneNumber'],
|
|
73
86
|
'countries': value['countries'],
|
|
74
|
-
'
|
|
87
|
+
'subdivisions': value['subdivisions'],
|
|
88
|
+
'ipAddresses': value['ipAddresses'],
|
|
89
|
+
'includeDisabledProviders': value['includeDisabledProviders'],
|
|
75
90
|
};
|
|
76
91
|
}
|
|
77
92
|
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Trinsic API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface RefreshStepContentRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface RefreshStepContentRequest {
|
|
22
|
+
/**
|
|
23
|
+
* The `ResultsAccessKey` returned when the Session was created
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof RefreshStepContentRequest
|
|
26
|
+
*/
|
|
27
|
+
resultsAccessKey?: string | null;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the RefreshStepContentRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfRefreshStepContentRequest(value: object): value is RefreshStepContentRequest {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function RefreshStepContentRequestFromJSON(json: any): RefreshStepContentRequest {
|
|
38
|
+
return RefreshStepContentRequestFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function RefreshStepContentRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RefreshStepContentRequest {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'resultsAccessKey': json['resultsAccessKey'] == null ? undefined : json['resultsAccessKey'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function RefreshStepContentRequestToJSON(value?: RefreshStepContentRequest | null): any {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'resultsAccessKey': value['resultsAccessKey'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Trinsic API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { IntegrationStep } from './IntegrationStep';
|
|
17
|
+
import {
|
|
18
|
+
IntegrationStepFromJSON,
|
|
19
|
+
IntegrationStepFromJSONTyped,
|
|
20
|
+
IntegrationStepToJSON,
|
|
21
|
+
} from './IntegrationStep';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface RefreshStepContentResponse
|
|
27
|
+
*/
|
|
28
|
+
export interface RefreshStepContentResponse {
|
|
29
|
+
/**
|
|
30
|
+
* The integration's next step with refreshed content
|
|
31
|
+
* @type {IntegrationStep}
|
|
32
|
+
* @memberof RefreshStepContentResponse
|
|
33
|
+
*/
|
|
34
|
+
nextStep: IntegrationStep;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the RefreshStepContentResponse interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfRefreshStepContentResponse(value: object): value is RefreshStepContentResponse {
|
|
41
|
+
if (!('nextStep' in value) || value['nextStep'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function RefreshStepContentResponseFromJSON(json: any): RefreshStepContentResponse {
|
|
46
|
+
return RefreshStepContentResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function RefreshStepContentResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RefreshStepContentResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'nextStep': IntegrationStepFromJSON(json['nextStep']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function RefreshStepContentResponseToJSON(value?: RefreshStepContentResponse | null): any {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'nextStep': IntegrationStepToJSON(value['nextStep']),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Trinsic API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ResultCollectionMethod } from './ResultCollectionMethod';
|
|
17
|
+
import {
|
|
18
|
+
ResultCollectionMethodFromJSON,
|
|
19
|
+
ResultCollectionMethodFromJSONTyped,
|
|
20
|
+
ResultCollectionMethodToJSON,
|
|
21
|
+
} from './ResultCollectionMethod';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface ResultCollection
|
|
27
|
+
*/
|
|
28
|
+
export interface ResultCollection {
|
|
29
|
+
/**
|
|
30
|
+
* The method by which the results of the Acceptance Session should be collected.
|
|
31
|
+
* @type {ResultCollectionMethod}
|
|
32
|
+
* @memberof ResultCollection
|
|
33
|
+
*/
|
|
34
|
+
method: ResultCollectionMethod;
|
|
35
|
+
/**
|
|
36
|
+
* If the method is `PollResult`, this is the key that should be used to poll for the results.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof ResultCollection
|
|
39
|
+
*/
|
|
40
|
+
resultsAccessKey?: string | null;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the ResultCollection interface.
|
|
47
|
+
*/
|
|
48
|
+
export function instanceOfResultCollection(value: object): value is ResultCollection {
|
|
49
|
+
if (!('method' in value) || value['method'] === undefined) return false;
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function ResultCollectionFromJSON(json: any): ResultCollection {
|
|
54
|
+
return ResultCollectionFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function ResultCollectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResultCollection {
|
|
58
|
+
if (json == null) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'method': ResultCollectionMethodFromJSON(json['method']),
|
|
64
|
+
'resultsAccessKey': json['resultsAccessKey'] == null ? undefined : json['resultsAccessKey'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function ResultCollectionToJSON(value?: ResultCollection | null): any {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
|
|
74
|
+
'method': ResultCollectionMethodToJSON(value['method']),
|
|
75
|
+
'resultsAccessKey': value['resultsAccessKey'],
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Trinsic API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const ResultCollectionMethod = {
|
|
21
|
+
PollResult: 'PollResult',
|
|
22
|
+
CaptureRedirect: 'CaptureRedirect'
|
|
23
|
+
} as const;
|
|
24
|
+
export type ResultCollectionMethod = typeof ResultCollectionMethod[keyof typeof ResultCollectionMethod];
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export function instanceOfResultCollectionMethod(value: any): boolean {
|
|
28
|
+
for (const key in ResultCollectionMethod) {
|
|
29
|
+
if (Object.prototype.hasOwnProperty.call(ResultCollectionMethod, key)) {
|
|
30
|
+
if (ResultCollectionMethod[key as keyof typeof ResultCollectionMethod] === value) {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function ResultCollectionMethodFromJSON(json: any): ResultCollectionMethod {
|
|
39
|
+
return ResultCollectionMethodFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function ResultCollectionMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResultCollectionMethod {
|
|
43
|
+
return json as ResultCollectionMethod;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function ResultCollectionMethodToJSON(value?: ResultCollectionMethod | null): any {
|
|
47
|
+
return value as any;
|
|
48
|
+
}
|
|
49
|
+
|
package/src/models/Session.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Trinsic API
|
|
5
5
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: v1
|
|
@@ -13,30 +13,12 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { SessionErrorCode } from './SessionErrorCode';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from './
|
|
22
|
-
import type { DisclosedFields } from './DisclosedFields';
|
|
23
|
-
import {
|
|
24
|
-
DisclosedFieldsFromJSON,
|
|
25
|
-
DisclosedFieldsFromJSONTyped,
|
|
26
|
-
DisclosedFieldsToJSON,
|
|
27
|
-
} from './DisclosedFields';
|
|
28
|
-
import type { SessionFailCode } from './SessionFailCode';
|
|
29
|
-
import {
|
|
30
|
-
SessionFailCodeFromJSON,
|
|
31
|
-
SessionFailCodeFromJSONTyped,
|
|
32
|
-
SessionFailCodeToJSON,
|
|
33
|
-
} from './SessionFailCode';
|
|
34
|
-
import type { Verification } from './Verification';
|
|
35
|
-
import {
|
|
36
|
-
VerificationFromJSON,
|
|
37
|
-
VerificationFromJSONTyped,
|
|
38
|
-
VerificationToJSON,
|
|
39
|
-
} from './Verification';
|
|
18
|
+
SessionErrorCodeFromJSON,
|
|
19
|
+
SessionErrorCodeFromJSONTyped,
|
|
20
|
+
SessionErrorCodeToJSON,
|
|
21
|
+
} from './SessionErrorCode';
|
|
40
22
|
|
|
41
23
|
/**
|
|
42
24
|
*
|
|
@@ -51,29 +33,30 @@ export interface Session {
|
|
|
51
33
|
*/
|
|
52
34
|
id: string;
|
|
53
35
|
/**
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
|
|
58
|
-
state: SessionState;
|
|
59
|
-
/**
|
|
60
|
-
* If the session is in state `IdvFailed`, this field contains the reason for failure.
|
|
61
|
-
* @type {SessionFailCode}
|
|
36
|
+
* Whether the Session is in a terminal / final state.
|
|
37
|
+
*
|
|
38
|
+
* If this is `true`, inspect the value of `Success` to determine whether the Session was successful.
|
|
39
|
+
* @type {boolean}
|
|
62
40
|
* @memberof Session
|
|
63
41
|
*/
|
|
64
|
-
|
|
42
|
+
done: boolean;
|
|
65
43
|
/**
|
|
66
|
-
*
|
|
67
|
-
*
|
|
44
|
+
* Whether the Session has completed successfully.
|
|
45
|
+
*
|
|
46
|
+
* If this is `false`, the Session is either not yet done, or has failed. Inspect `Done` and `ErrorCode` for more information.
|
|
47
|
+
* If this is `true`, the Session has completed successfully.
|
|
48
|
+
* @type {boolean}
|
|
68
49
|
* @memberof Session
|
|
69
50
|
*/
|
|
70
|
-
|
|
51
|
+
success: boolean;
|
|
71
52
|
/**
|
|
72
|
-
* The
|
|
73
|
-
*
|
|
53
|
+
* The reason for the Session's failure.
|
|
54
|
+
*
|
|
55
|
+
* Only present if `Success` is `false`.
|
|
56
|
+
* @type {SessionErrorCode}
|
|
74
57
|
* @memberof Session
|
|
75
58
|
*/
|
|
76
|
-
|
|
59
|
+
errorCode?: SessionErrorCode | null;
|
|
77
60
|
/**
|
|
78
61
|
* The unix timestamp, in seconds, when this session was created
|
|
79
62
|
* @type {number}
|
|
@@ -95,9 +78,8 @@ export interface Session {
|
|
|
95
78
|
*/
|
|
96
79
|
export function instanceOfSession(value: object): value is Session {
|
|
97
80
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
98
|
-
if (!('
|
|
99
|
-
if (!('
|
|
100
|
-
if (!('disclosedFields' in value) || value['disclosedFields'] === undefined) return false;
|
|
81
|
+
if (!('done' in value) || value['done'] === undefined) return false;
|
|
82
|
+
if (!('success' in value) || value['success'] === undefined) return false;
|
|
101
83
|
if (!('created' in value) || value['created'] === undefined) return false;
|
|
102
84
|
if (!('updated' in value) || value['updated'] === undefined) return false;
|
|
103
85
|
return true;
|
|
@@ -114,10 +96,9 @@ export function SessionFromJSONTyped(json: any, ignoreDiscriminator: boolean): S
|
|
|
114
96
|
return {
|
|
115
97
|
|
|
116
98
|
'id': json['id'],
|
|
117
|
-
'
|
|
118
|
-
'
|
|
119
|
-
'
|
|
120
|
-
'disclosedFields': DisclosedFieldsFromJSON(json['disclosedFields']),
|
|
99
|
+
'done': json['done'],
|
|
100
|
+
'success': json['success'],
|
|
101
|
+
'errorCode': json['errorCode'] == null ? undefined : SessionErrorCodeFromJSON(json['errorCode']),
|
|
121
102
|
'created': json['created'],
|
|
122
103
|
'updated': json['updated'],
|
|
123
104
|
};
|
|
@@ -130,10 +111,9 @@ export function SessionToJSON(value?: Session | null): any {
|
|
|
130
111
|
return {
|
|
131
112
|
|
|
132
113
|
'id': value['id'],
|
|
133
|
-
'
|
|
134
|
-
'
|
|
135
|
-
'
|
|
136
|
-
'disclosedFields': DisclosedFieldsToJSON(value['disclosedFields']),
|
|
114
|
+
'done': value['done'],
|
|
115
|
+
'success': value['success'],
|
|
116
|
+
'errorCode': SessionErrorCodeToJSON(value['errorCode']),
|
|
137
117
|
'created': value['created'],
|
|
138
118
|
'updated': value['updated'],
|
|
139
119
|
};
|