@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,88 @@
|
|
|
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 { KnownIdentityData } from './KnownIdentityData';
|
|
17
|
+
import {
|
|
18
|
+
KnownIdentityDataFromJSON,
|
|
19
|
+
KnownIdentityDataFromJSONTyped,
|
|
20
|
+
KnownIdentityDataToJSON,
|
|
21
|
+
} from './KnownIdentityData';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface CreateWidgetSessionRequest
|
|
27
|
+
*/
|
|
28
|
+
export interface CreateWidgetSessionRequest {
|
|
29
|
+
/**
|
|
30
|
+
* The URL to redirect the user to after the widget session is complete.
|
|
31
|
+
*
|
|
32
|
+
* *Note*: this should NOT be set if you intend to use Trinsic's Web UI SDK to launch the Widget
|
|
33
|
+
* as an embedded iFrame or popup; in that case, session resolution is handled by our SDK, not via redirect.
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof CreateWidgetSessionRequest
|
|
36
|
+
*/
|
|
37
|
+
redirectUrl?: string | null;
|
|
38
|
+
/**
|
|
39
|
+
* The list of allowed identity providers. If not specified, all available providers will be allowed.
|
|
40
|
+
* @type {Array<string>}
|
|
41
|
+
* @memberof CreateWidgetSessionRequest
|
|
42
|
+
*/
|
|
43
|
+
providers?: Array<string> | null;
|
|
44
|
+
/**
|
|
45
|
+
* Known identity data of an individual being verified.
|
|
46
|
+
*
|
|
47
|
+
* Provide this to Trinsic during Session creation to enable improved identity provider selection recommendations.
|
|
48
|
+
* @type {KnownIdentityData}
|
|
49
|
+
* @memberof CreateWidgetSessionRequest
|
|
50
|
+
*/
|
|
51
|
+
knownIdentityData?: KnownIdentityData | null;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the CreateWidgetSessionRequest interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfCreateWidgetSessionRequest(value: object): value is CreateWidgetSessionRequest {
|
|
58
|
+
return true;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function CreateWidgetSessionRequestFromJSON(json: any): CreateWidgetSessionRequest {
|
|
62
|
+
return CreateWidgetSessionRequestFromJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function CreateWidgetSessionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateWidgetSessionRequest {
|
|
66
|
+
if (json == null) {
|
|
67
|
+
return json;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'redirectUrl': json['redirectUrl'] == null ? undefined : json['redirectUrl'],
|
|
72
|
+
'providers': json['providers'] == null ? undefined : json['providers'],
|
|
73
|
+
'knownIdentityData': json['knownIdentityData'] == null ? undefined : KnownIdentityDataFromJSON(json['knownIdentityData']),
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function CreateWidgetSessionRequestToJSON(value?: CreateWidgetSessionRequest | null): any {
|
|
78
|
+
if (value == null) {
|
|
79
|
+
return value;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'redirectUrl': value['redirectUrl'],
|
|
84
|
+
'providers': value['providers'],
|
|
85
|
+
'knownIdentityData': KnownIdentityDataToJSON(value['knownIdentityData']),
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
@@ -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,68 +13,60 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type { Session } from './Session';
|
|
17
|
-
import {
|
|
18
|
-
SessionFromJSON,
|
|
19
|
-
SessionFromJSONTyped,
|
|
20
|
-
SessionToJSON,
|
|
21
|
-
} from './Session';
|
|
22
|
-
|
|
23
16
|
/**
|
|
24
17
|
*
|
|
25
18
|
* @export
|
|
26
|
-
* @interface
|
|
19
|
+
* @interface CreateWidgetSessionResponse
|
|
27
20
|
*/
|
|
28
|
-
export interface
|
|
21
|
+
export interface CreateWidgetSessionResponse {
|
|
29
22
|
/**
|
|
30
|
-
* The created Acceptance Session
|
|
31
|
-
* @type {
|
|
32
|
-
* @memberof
|
|
23
|
+
* The ID of the newly-created Acceptance Session
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CreateWidgetSessionResponse
|
|
33
26
|
*/
|
|
34
|
-
|
|
27
|
+
sessionId: string;
|
|
35
28
|
/**
|
|
36
29
|
* The URL that should be used to invoke the Acceptance Session on your user's device.
|
|
37
30
|
*
|
|
38
31
|
* You can use our frontend SDKs to launch the user into the Acceptance Session, or you can redirect the user's browser to this URL.
|
|
39
|
-
* If the Session was created with `LaunchProviderDirectly` set to `true`, you can't use the iFrame mode.
|
|
40
32
|
*
|
|
41
33
|
* This URL is sensitive and as such can only be obtained once. If you need to obtain it again, you will need to create a new Acceptance Session.
|
|
42
34
|
* @type {string}
|
|
43
|
-
* @memberof
|
|
35
|
+
* @memberof CreateWidgetSessionResponse
|
|
44
36
|
*/
|
|
45
|
-
launchUrl?: string;
|
|
37
|
+
launchUrl?: string | null;
|
|
46
38
|
}
|
|
47
39
|
|
|
48
40
|
/**
|
|
49
|
-
* Check if a given object implements the
|
|
41
|
+
* Check if a given object implements the CreateWidgetSessionResponse interface.
|
|
50
42
|
*/
|
|
51
|
-
export function
|
|
52
|
-
if (!('
|
|
43
|
+
export function instanceOfCreateWidgetSessionResponse(value: object): value is CreateWidgetSessionResponse {
|
|
44
|
+
if (!('sessionId' in value) || value['sessionId'] === undefined) return false;
|
|
53
45
|
return true;
|
|
54
46
|
}
|
|
55
47
|
|
|
56
|
-
export function
|
|
57
|
-
return
|
|
48
|
+
export function CreateWidgetSessionResponseFromJSON(json: any): CreateWidgetSessionResponse {
|
|
49
|
+
return CreateWidgetSessionResponseFromJSONTyped(json, false);
|
|
58
50
|
}
|
|
59
51
|
|
|
60
|
-
export function
|
|
52
|
+
export function CreateWidgetSessionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateWidgetSessionResponse {
|
|
61
53
|
if (json == null) {
|
|
62
54
|
return json;
|
|
63
55
|
}
|
|
64
56
|
return {
|
|
65
57
|
|
|
66
|
-
'
|
|
58
|
+
'sessionId': json['sessionId'],
|
|
67
59
|
'launchUrl': json['launchUrl'] == null ? undefined : json['launchUrl'],
|
|
68
60
|
};
|
|
69
61
|
}
|
|
70
62
|
|
|
71
|
-
export function
|
|
63
|
+
export function CreateWidgetSessionResponseToJSON(value?: CreateWidgetSessionResponse | null): any {
|
|
72
64
|
if (value == null) {
|
|
73
65
|
return value;
|
|
74
66
|
}
|
|
75
67
|
return {
|
|
76
68
|
|
|
77
|
-
'
|
|
69
|
+
'sessionId': value['sessionId'],
|
|
78
70
|
'launchUrl': value['launchUrl'],
|
|
79
71
|
};
|
|
80
72
|
}
|
|
@@ -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,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { DocumentType } from './DocumentType';
|
|
17
|
+
import {
|
|
18
|
+
DocumentTypeFromJSON,
|
|
19
|
+
DocumentTypeFromJSONTyped,
|
|
20
|
+
DocumentTypeToJSON,
|
|
21
|
+
} from './DocumentType';
|
|
22
|
+
|
|
16
23
|
/**
|
|
17
24
|
*
|
|
18
25
|
* @export
|
|
@@ -21,42 +28,44 @@ import { mapValues } from '../runtime';
|
|
|
21
28
|
export interface DocumentData {
|
|
22
29
|
/**
|
|
23
30
|
*
|
|
24
|
-
* @type {
|
|
31
|
+
* @type {DocumentType}
|
|
25
32
|
* @memberof DocumentData
|
|
26
33
|
*/
|
|
27
|
-
type?:
|
|
34
|
+
type?: DocumentType | null;
|
|
28
35
|
/**
|
|
29
36
|
*
|
|
30
37
|
* @type {string}
|
|
31
38
|
* @memberof DocumentData
|
|
32
39
|
*/
|
|
33
|
-
number?: string;
|
|
40
|
+
number?: string | null;
|
|
34
41
|
/**
|
|
35
42
|
*
|
|
36
|
-
* @type {
|
|
43
|
+
* @type {Date}
|
|
37
44
|
* @memberof DocumentData
|
|
38
45
|
*/
|
|
39
|
-
issueDate?:
|
|
46
|
+
issueDate?: Date | null;
|
|
40
47
|
/**
|
|
41
48
|
*
|
|
42
|
-
* @type {
|
|
49
|
+
* @type {Date}
|
|
43
50
|
* @memberof DocumentData
|
|
44
51
|
*/
|
|
45
|
-
expirationDate?:
|
|
52
|
+
expirationDate?: Date | null;
|
|
46
53
|
/**
|
|
47
54
|
*
|
|
48
55
|
* @type {string}
|
|
49
56
|
* @memberof DocumentData
|
|
50
57
|
*/
|
|
51
|
-
issuingCountry?: string;
|
|
58
|
+
issuingCountry?: string | null;
|
|
52
59
|
/**
|
|
53
60
|
*
|
|
54
61
|
* @type {string}
|
|
55
62
|
* @memberof DocumentData
|
|
56
63
|
*/
|
|
57
|
-
issuingAuthority?: string;
|
|
64
|
+
issuingAuthority?: string | null;
|
|
58
65
|
}
|
|
59
66
|
|
|
67
|
+
|
|
68
|
+
|
|
60
69
|
/**
|
|
61
70
|
* Check if a given object implements the DocumentData interface.
|
|
62
71
|
*/
|
|
@@ -74,10 +83,10 @@ export function DocumentDataFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
74
83
|
}
|
|
75
84
|
return {
|
|
76
85
|
|
|
77
|
-
'type': json['type'] == null ? undefined : json['type'],
|
|
86
|
+
'type': json['type'] == null ? undefined : DocumentTypeFromJSON(json['type']),
|
|
78
87
|
'number': json['number'] == null ? undefined : json['number'],
|
|
79
|
-
'issueDate': json['issueDate'] == null ? undefined : json['issueDate'],
|
|
80
|
-
'expirationDate': json['expirationDate'] == null ? undefined : json['expirationDate'],
|
|
88
|
+
'issueDate': json['issueDate'] == null ? undefined : (new Date(json['issueDate'])),
|
|
89
|
+
'expirationDate': json['expirationDate'] == null ? undefined : (new Date(json['expirationDate'])),
|
|
81
90
|
'issuingCountry': json['issuingCountry'] == null ? undefined : json['issuingCountry'],
|
|
82
91
|
'issuingAuthority': json['issuingAuthority'] == null ? undefined : json['issuingAuthority'],
|
|
83
92
|
};
|
|
@@ -89,10 +98,10 @@ export function DocumentDataToJSON(value?: DocumentData | null): any {
|
|
|
89
98
|
}
|
|
90
99
|
return {
|
|
91
100
|
|
|
92
|
-
'type': value['type'],
|
|
101
|
+
'type': DocumentTypeToJSON(value['type']),
|
|
93
102
|
'number': value['number'],
|
|
94
|
-
'issueDate': value['issueDate'],
|
|
95
|
-
'expirationDate': value['expirationDate'],
|
|
103
|
+
'issueDate': value['issueDate'] == null ? undefined : ((value['issueDate'] as any).toISOString().substring(0,10)),
|
|
104
|
+
'expirationDate': value['expirationDate'] == null ? undefined : ((value['expirationDate'] as any).toISOString().substring(0,10)),
|
|
96
105
|
'issuingCountry': value['issuingCountry'],
|
|
97
106
|
'issuingAuthority': value['issuingAuthority'],
|
|
98
107
|
};
|
|
@@ -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 DocumentScanAttachments
|
|
20
|
+
*/
|
|
21
|
+
export interface DocumentScanAttachments {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof DocumentScanAttachments
|
|
26
|
+
*/
|
|
27
|
+
report?: string | null;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the DocumentScanAttachments interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfDocumentScanAttachments(value: object): value is DocumentScanAttachments {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function DocumentScanAttachmentsFromJSON(json: any): DocumentScanAttachments {
|
|
38
|
+
return DocumentScanAttachmentsFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function DocumentScanAttachmentsFromJSONTyped(json: any, ignoreDiscriminator: boolean): DocumentScanAttachments {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'report': json['report'] == null ? undefined : json['report'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function DocumentScanAttachmentsToJSON(value?: DocumentScanAttachments | null): any {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'report': value['report'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
@@ -0,0 +1,51 @@
|
|
|
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 DocumentType = {
|
|
21
|
+
Passport: 'Passport',
|
|
22
|
+
DriversLicense: 'DriversLicense',
|
|
23
|
+
NationalId: 'NationalId',
|
|
24
|
+
IdCard: 'IdCard'
|
|
25
|
+
} as const;
|
|
26
|
+
export type DocumentType = typeof DocumentType[keyof typeof DocumentType];
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
export function instanceOfDocumentType(value: any): boolean {
|
|
30
|
+
for (const key in DocumentType) {
|
|
31
|
+
if (Object.prototype.hasOwnProperty.call(DocumentType, key)) {
|
|
32
|
+
if (DocumentType[key as keyof typeof DocumentType] === value) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function DocumentTypeFromJSON(json: any): DocumentType {
|
|
41
|
+
return DocumentTypeFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function DocumentTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): DocumentType {
|
|
45
|
+
return json as DocumentType;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function DocumentTypeToJSON(value?: DocumentType | null): any {
|
|
49
|
+
return value as any;
|
|
50
|
+
}
|
|
51
|
+
|
|
@@ -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
|
|
@@ -43,7 +43,7 @@ export interface GetSessionResultResponse {
|
|
|
43
43
|
* @type {IdentityData}
|
|
44
44
|
* @memberof GetSessionResultResponse
|
|
45
45
|
*/
|
|
46
|
-
identityData?: IdentityData;
|
|
46
|
+
identityData?: IdentityData | null;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
/**
|
|
@@ -0,0 +1,100 @@
|
|
|
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 HttpValidationProblemDetails
|
|
20
|
+
*/
|
|
21
|
+
export interface HttpValidationProblemDetails {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof HttpValidationProblemDetails
|
|
26
|
+
*/
|
|
27
|
+
type?: string | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof HttpValidationProblemDetails
|
|
32
|
+
*/
|
|
33
|
+
title?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof HttpValidationProblemDetails
|
|
38
|
+
*/
|
|
39
|
+
status?: number | null;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof HttpValidationProblemDetails
|
|
44
|
+
*/
|
|
45
|
+
detail?: string | null;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof HttpValidationProblemDetails
|
|
50
|
+
*/
|
|
51
|
+
instance?: string | null;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {{ [key: string]: Array<string>; }}
|
|
55
|
+
* @memberof HttpValidationProblemDetails
|
|
56
|
+
*/
|
|
57
|
+
errors?: { [key: string]: Array<string>; };
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the HttpValidationProblemDetails interface.
|
|
62
|
+
*/
|
|
63
|
+
export function instanceOfHttpValidationProblemDetails(value: object): value is HttpValidationProblemDetails {
|
|
64
|
+
return true;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function HttpValidationProblemDetailsFromJSON(json: any): HttpValidationProblemDetails {
|
|
68
|
+
return HttpValidationProblemDetailsFromJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function HttpValidationProblemDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): HttpValidationProblemDetails {
|
|
72
|
+
if (json == null) {
|
|
73
|
+
return json;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
78
|
+
'title': json['title'] == null ? undefined : json['title'],
|
|
79
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
80
|
+
'detail': json['detail'] == null ? undefined : json['detail'],
|
|
81
|
+
'instance': json['instance'] == null ? undefined : json['instance'],
|
|
82
|
+
'errors': json['errors'] == null ? undefined : json['errors'],
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function HttpValidationProblemDetailsToJSON(value?: HttpValidationProblemDetails | null): any {
|
|
87
|
+
if (value == null) {
|
|
88
|
+
return value;
|
|
89
|
+
}
|
|
90
|
+
return {
|
|
91
|
+
|
|
92
|
+
'type': value['type'],
|
|
93
|
+
'title': value['title'],
|
|
94
|
+
'status': value['status'],
|
|
95
|
+
'detail': value['detail'],
|
|
96
|
+
'instance': value['instance'],
|
|
97
|
+
'errors': value['errors'],
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
@@ -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
|
|
@@ -39,29 +39,29 @@ import {
|
|
|
39
39
|
*/
|
|
40
40
|
export interface IdentityData {
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
42
|
+
*
|
|
43
43
|
* @type {string}
|
|
44
44
|
* @memberof IdentityData
|
|
45
45
|
*/
|
|
46
|
-
originatingProviderId?: string;
|
|
46
|
+
originatingProviderId?: string | null;
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
*
|
|
49
49
|
* @type {PersonData}
|
|
50
50
|
* @memberof IdentityData
|
|
51
51
|
*/
|
|
52
|
-
person?: PersonData;
|
|
52
|
+
person?: PersonData | null;
|
|
53
53
|
/**
|
|
54
|
-
*
|
|
54
|
+
*
|
|
55
55
|
* @type {DocumentData}
|
|
56
56
|
* @memberof IdentityData
|
|
57
57
|
*/
|
|
58
|
-
document?: DocumentData;
|
|
58
|
+
document?: DocumentData | null;
|
|
59
59
|
/**
|
|
60
|
-
*
|
|
60
|
+
*
|
|
61
61
|
* @type {AttachmentAccessKeys}
|
|
62
62
|
* @memberof IdentityData
|
|
63
63
|
*/
|
|
64
|
-
attachmentAccessKeys?: AttachmentAccessKeys;
|
|
64
|
+
attachmentAccessKeys?: AttachmentAccessKeys | null;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
/**
|
|
@@ -0,0 +1,79 @@
|
|
|
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 IndonesiaNikInput
|
|
20
|
+
*/
|
|
21
|
+
export interface IndonesiaNikInput {
|
|
22
|
+
/**
|
|
23
|
+
* The user's full name
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof IndonesiaNikInput
|
|
26
|
+
*/
|
|
27
|
+
fullName: string;
|
|
28
|
+
/**
|
|
29
|
+
* The user's date of birth, in `YYYY-MM-DD` format
|
|
30
|
+
* @type {Date}
|
|
31
|
+
* @memberof IndonesiaNikInput
|
|
32
|
+
*/
|
|
33
|
+
dateOfBirth: Date;
|
|
34
|
+
/**
|
|
35
|
+
* The user's Indonesia NIK ID number
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof IndonesiaNikInput
|
|
38
|
+
*/
|
|
39
|
+
nikIdNumber: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the IndonesiaNikInput interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfIndonesiaNikInput(value: object): value is IndonesiaNikInput {
|
|
46
|
+
if (!('fullName' in value) || value['fullName'] === undefined) return false;
|
|
47
|
+
if (!('dateOfBirth' in value) || value['dateOfBirth'] === undefined) return false;
|
|
48
|
+
if (!('nikIdNumber' in value) || value['nikIdNumber'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function IndonesiaNikInputFromJSON(json: any): IndonesiaNikInput {
|
|
53
|
+
return IndonesiaNikInputFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function IndonesiaNikInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndonesiaNikInput {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'fullName': json['fullName'],
|
|
63
|
+
'dateOfBirth': (new Date(json['dateOfBirth'])),
|
|
64
|
+
'nikIdNumber': json['nikIdNumber'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function IndonesiaNikInputToJSON(value?: IndonesiaNikInput | null): any {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
|
|
74
|
+
'fullName': value['fullName'],
|
|
75
|
+
'dateOfBirth': ((value['dateOfBirth']).toISOString().substring(0,10)),
|
|
76
|
+
'nikIdNumber': value['nikIdNumber'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|