@trinsic/api 2.0.0-alpha3 → 2.0.1
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 +13 -3
- package/.openapi-generator/VERSION +1 -1
- package/README.md +1 -1
- package/dist/apis/AttachmentsApi.d.ts +4 -4
- package/dist/apis/AttachmentsApi.js +2 -2
- package/dist/apis/NetworkApi.d.ts +28 -5
- package/dist/apis/NetworkApi.js +36 -2
- package/dist/apis/SessionsApi.d.ts +8 -8
- package/dist/apis/SessionsApi.js +4 -4
- package/dist/apis/WellKnownApi.d.ts +41 -0
- package/dist/apis/WellKnownApi.js +61 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/AttachmentsApi.d.ts +4 -4
- package/dist/esm/apis/AttachmentsApi.js +2 -2
- package/dist/esm/apis/NetworkApi.d.ts +28 -5
- package/dist/esm/apis/NetworkApi.js +37 -3
- package/dist/esm/apis/SessionsApi.d.ts +8 -8
- package/dist/esm/apis/SessionsApi.js +4 -4
- package/dist/esm/apis/WellKnownApi.d.ts +41 -0
- package/dist/esm/apis/WellKnownApi.js +57 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/AadhaarInput.d.ts +2 -1
- package/dist/esm/models/AadhaarInput.js +4 -1
- package/dist/esm/models/Address.d.ts +2 -1
- package/dist/esm/models/Address.js +4 -1
- package/dist/esm/models/AttachmentAccessKeys.d.ts +2 -1
- package/dist/esm/models/AttachmentAccessKeys.js +4 -1
- package/dist/esm/models/BangladeshNationalIdInput.d.ts +2 -1
- package/dist/esm/models/BangladeshNationalIdInput.js +4 -1
- package/dist/esm/models/BrazilCpfCheckInput.d.ts +2 -1
- package/dist/esm/models/BrazilCpfCheckInput.js +4 -1
- package/dist/esm/models/BrazilDigitalCnhInput.d.ts +2 -1
- package/dist/esm/models/BrazilDigitalCnhInput.js +4 -1
- package/dist/esm/models/CancelSessionResponse.d.ts +2 -1
- package/dist/esm/models/CancelSessionResponse.js +4 -1
- package/dist/esm/models/CreateAdvancedProviderSessionRequest.d.ts +2 -1
- package/dist/esm/models/CreateAdvancedProviderSessionRequest.js +4 -1
- package/dist/esm/models/CreateAdvancedProviderSessionResponse.d.ts +2 -1
- package/dist/esm/models/CreateAdvancedProviderSessionResponse.js +4 -1
- package/dist/esm/models/CreateHostedProviderSessionRequest.d.ts +2 -1
- package/dist/esm/models/CreateHostedProviderSessionRequest.js +4 -1
- package/dist/esm/models/CreateHostedProviderSessionResponse.d.ts +15 -2
- package/dist/esm/models/CreateHostedProviderSessionResponse.js +11 -2
- package/dist/esm/models/CreateWidgetSessionRequest.d.ts +8 -6
- package/dist/esm/models/CreateWidgetSessionRequest.js +7 -4
- package/dist/esm/models/CreateWidgetSessionResponse.d.ts +15 -2
- package/dist/esm/models/CreateWidgetSessionResponse.js +11 -2
- package/dist/esm/models/DocumentData.d.ts +2 -1
- package/dist/esm/models/DocumentData.js +4 -1
- package/dist/esm/models/DocumentScanAttachments.d.ts +2 -1
- package/dist/esm/models/DocumentScanAttachments.js +4 -1
- package/dist/esm/models/DocumentType.d.ts +1 -0
- package/dist/esm/models/DocumentType.js +3 -0
- package/dist/esm/models/GetAttachmentRequest.d.ts +2 -1
- package/dist/esm/models/GetAttachmentRequest.js +4 -1
- package/dist/esm/models/GetAttachmentResponse.d.ts +2 -1
- package/dist/esm/models/GetAttachmentResponse.js +4 -1
- package/dist/esm/models/GetSessionResponse.d.ts +2 -1
- package/dist/esm/models/GetSessionResponse.js +4 -1
- package/dist/esm/models/GetSessionResultRequest.d.ts +2 -1
- package/dist/esm/models/GetSessionResultRequest.js +4 -1
- package/dist/esm/models/GetSessionResultResponse.d.ts +2 -1
- package/dist/esm/models/GetSessionResultResponse.js +4 -1
- package/dist/esm/models/HttpValidationProblemDetails.d.ts +2 -1
- package/dist/esm/models/HttpValidationProblemDetails.js +4 -1
- package/dist/esm/models/IdentityData.d.ts +8 -1
- package/dist/esm/models/IdentityData.js +6 -1
- package/dist/esm/models/IdinInput.d.ts +34 -0
- package/dist/esm/models/IdinInput.js +41 -0
- package/dist/esm/models/IndonesiaNikInput.d.ts +2 -1
- package/dist/esm/models/IndonesiaNikInput.js +4 -1
- package/dist/esm/models/IntegrationCapability.d.ts +1 -0
- package/dist/esm/models/IntegrationCapability.js +3 -0
- package/dist/esm/models/IntegrationLaunchMethod.d.ts +2 -1
- package/dist/esm/models/IntegrationLaunchMethod.js +4 -1
- package/dist/esm/models/IntegrationStep.d.ts +3 -2
- package/dist/esm/models/IntegrationStep.js +5 -4
- package/dist/esm/models/KenyaNidInput.d.ts +2 -1
- package/dist/esm/models/KenyaNidInput.js +4 -1
- package/dist/esm/models/Language.d.ts +27 -0
- package/dist/esm/models/Language.js +45 -0
- package/dist/esm/models/ListProviderContractsResponse.d.ts +33 -0
- package/dist/esm/models/ListProviderContractsResponse.js +44 -0
- package/dist/esm/models/ListProvidersResponse.d.ts +2 -1
- package/dist/esm/models/ListProvidersResponse.js +4 -1
- package/dist/esm/models/ListSessionsResponse.d.ts +2 -1
- package/dist/esm/models/ListSessionsResponse.js +4 -1
- package/dist/esm/models/MexicoCurpInput.d.ts +2 -1
- package/dist/esm/models/MexicoCurpInput.js +4 -1
- package/dist/esm/models/MobileIdInput.d.ts +45 -0
- package/dist/esm/models/MobileIdInput.js +46 -0
- package/dist/esm/models/NigeriaNinInput.d.ts +2 -1
- package/dist/esm/models/NigeriaNinInput.js +4 -1
- package/dist/esm/models/OrderDirection.d.ts +1 -0
- package/dist/esm/models/OrderDirection.js +3 -0
- package/dist/esm/models/PersonData.d.ts +2 -1
- package/dist/esm/models/PersonData.js +4 -1
- package/dist/esm/models/PhilippineMatchInput.d.ts +2 -1
- package/dist/esm/models/PhilippineMatchInput.js +4 -1
- package/dist/esm/models/PhilippineQRInput.d.ts +2 -1
- package/dist/esm/models/PhilippineQRInput.js +4 -1
- package/dist/esm/models/ProblemDetails.d.ts +2 -1
- package/dist/esm/models/ProblemDetails.js +4 -1
- package/dist/esm/models/ProviderAttachments.d.ts +2 -1
- package/dist/esm/models/ProviderAttachments.js +4 -1
- package/dist/esm/models/ProviderContract.d.ts +155 -0
- package/dist/esm/models/ProviderContract.js +105 -0
- package/dist/esm/models/ProviderHealth.d.ts +25 -0
- package/dist/esm/models/ProviderHealth.js +43 -0
- package/dist/esm/models/ProviderInfo.d.ts +2 -7
- package/dist/esm/models/ProviderInfo.js +4 -3
- package/dist/esm/models/ProviderInformation.d.ts +5 -4
- package/dist/esm/models/ProviderInformation.js +5 -6
- package/dist/esm/models/ProviderInput.d.ts +64 -17
- package/dist/esm/models/ProviderInput.js +27 -6
- package/dist/esm/models/RecommendRequest.d.ts +6 -28
- package/dist/esm/models/RecommendRequest.js +7 -11
- package/dist/esm/models/RecommendResponse.d.ts +2 -1
- package/dist/esm/models/RecommendResponse.js +4 -1
- package/dist/esm/models/RecommendationInfo.d.ts +56 -0
- package/dist/esm/models/RecommendationInfo.js +47 -0
- package/dist/esm/models/RefreshStepContentRequest.d.ts +2 -1
- package/dist/esm/models/RefreshStepContentRequest.js +4 -1
- package/dist/esm/models/RefreshStepContentResponse.d.ts +2 -1
- package/dist/esm/models/RefreshStepContentResponse.js +4 -1
- package/dist/esm/models/ResultCollection.d.ts +10 -3
- package/dist/esm/models/ResultCollection.js +7 -2
- package/dist/esm/models/ResultCollectionMethod.d.ts +1 -0
- package/dist/esm/models/ResultCollectionMethod.js +3 -0
- package/dist/esm/models/Session.d.ts +2 -1
- package/dist/esm/models/Session.js +4 -1
- package/dist/esm/models/SessionErrorCode.d.ts +1 -0
- package/dist/esm/models/SessionErrorCode.js +3 -0
- package/dist/esm/models/SessionOrdering.d.ts +1 -0
- package/dist/esm/models/SessionOrdering.js +3 -0
- package/dist/esm/models/Sex.d.ts +1 -0
- package/dist/esm/models/Sex.js +3 -0
- package/dist/esm/models/SmartIdInput.d.ts +32 -0
- package/dist/esm/models/SmartIdInput.js +41 -0
- package/dist/esm/models/SouthAfricaNidInput.d.ts +2 -1
- package/dist/esm/models/SouthAfricaNidInput.js +4 -1
- package/dist/esm/models/SpidInput.d.ts +34 -0
- package/dist/esm/models/SpidInput.js +41 -0
- package/dist/esm/models/StepRefreshInfo.d.ts +2 -1
- package/dist/esm/models/StepRefreshInfo.js +4 -1
- package/dist/esm/models/SubProviderMetadata.d.ts +55 -0
- package/dist/esm/models/SubProviderMetadata.js +55 -0
- package/dist/esm/models/TrinsicTestDatabaseLookupInput.d.ts +67 -0
- package/dist/esm/models/TrinsicTestDatabaseLookupInput.js +47 -0
- package/dist/esm/models/TrinsicTestSubProvidersInput.d.ts +36 -0
- package/dist/esm/models/TrinsicTestSubProvidersInput.js +41 -0
- package/dist/esm/models/index.d.ts +12 -3
- package/dist/esm/models/index.js +12 -3
- package/dist/esm/runtime.d.ts +4 -1
- package/dist/esm/runtime.js +9 -1
- package/dist/models/AadhaarInput.d.ts +2 -1
- package/dist/models/AadhaarInput.js +5 -1
- package/dist/models/Address.d.ts +2 -1
- package/dist/models/Address.js +5 -1
- package/dist/models/AttachmentAccessKeys.d.ts +2 -1
- package/dist/models/AttachmentAccessKeys.js +5 -1
- package/dist/models/BangladeshNationalIdInput.d.ts +2 -1
- package/dist/models/BangladeshNationalIdInput.js +5 -1
- package/dist/models/BrazilCpfCheckInput.d.ts +2 -1
- package/dist/models/BrazilCpfCheckInput.js +5 -1
- package/dist/models/BrazilDigitalCnhInput.d.ts +2 -1
- package/dist/models/BrazilDigitalCnhInput.js +5 -1
- package/dist/models/CancelSessionResponse.d.ts +2 -1
- package/dist/models/CancelSessionResponse.js +5 -1
- package/dist/models/CreateAdvancedProviderSessionRequest.d.ts +2 -1
- package/dist/models/CreateAdvancedProviderSessionRequest.js +5 -1
- package/dist/models/CreateAdvancedProviderSessionResponse.d.ts +2 -1
- package/dist/models/CreateAdvancedProviderSessionResponse.js +5 -1
- package/dist/models/CreateHostedProviderSessionRequest.d.ts +2 -1
- package/dist/models/CreateHostedProviderSessionRequest.js +5 -1
- package/dist/models/CreateHostedProviderSessionResponse.d.ts +15 -2
- package/dist/models/CreateHostedProviderSessionResponse.js +12 -2
- package/dist/models/CreateWidgetSessionRequest.d.ts +8 -6
- package/dist/models/CreateWidgetSessionRequest.js +8 -4
- package/dist/models/CreateWidgetSessionResponse.d.ts +15 -2
- package/dist/models/CreateWidgetSessionResponse.js +12 -2
- package/dist/models/DocumentData.d.ts +2 -1
- package/dist/models/DocumentData.js +5 -1
- package/dist/models/DocumentScanAttachments.d.ts +2 -1
- package/dist/models/DocumentScanAttachments.js +5 -1
- package/dist/models/DocumentType.d.ts +1 -0
- package/dist/models/DocumentType.js +4 -0
- package/dist/models/GetAttachmentRequest.d.ts +2 -1
- package/dist/models/GetAttachmentRequest.js +5 -1
- package/dist/models/GetAttachmentResponse.d.ts +2 -1
- package/dist/models/GetAttachmentResponse.js +5 -1
- package/dist/models/GetSessionResponse.d.ts +2 -1
- package/dist/models/GetSessionResponse.js +5 -1
- package/dist/models/GetSessionResultRequest.d.ts +2 -1
- package/dist/models/GetSessionResultRequest.js +5 -1
- package/dist/models/GetSessionResultResponse.d.ts +2 -1
- package/dist/models/GetSessionResultResponse.js +5 -1
- package/dist/models/HttpValidationProblemDetails.d.ts +2 -1
- package/dist/models/HttpValidationProblemDetails.js +5 -1
- package/dist/models/IdentityData.d.ts +8 -1
- package/dist/models/IdentityData.js +7 -1
- package/dist/models/IdinInput.d.ts +34 -0
- package/dist/models/IdinInput.js +48 -0
- package/dist/models/IndonesiaNikInput.d.ts +2 -1
- package/dist/models/IndonesiaNikInput.js +5 -1
- package/dist/models/IntegrationCapability.d.ts +1 -0
- package/dist/models/IntegrationCapability.js +4 -0
- package/dist/models/IntegrationLaunchMethod.d.ts +2 -1
- package/dist/models/IntegrationLaunchMethod.js +5 -1
- package/dist/models/IntegrationStep.d.ts +3 -2
- package/dist/models/IntegrationStep.js +6 -4
- package/dist/models/KenyaNidInput.d.ts +2 -1
- package/dist/models/KenyaNidInput.js +5 -1
- package/dist/models/Language.d.ts +27 -0
- package/dist/models/Language.js +53 -0
- package/dist/models/ListProviderContractsResponse.d.ts +33 -0
- package/dist/models/ListProviderContractsResponse.js +51 -0
- package/dist/models/ListProvidersResponse.d.ts +2 -1
- package/dist/models/ListProvidersResponse.js +5 -1
- package/dist/models/ListSessionsResponse.d.ts +2 -1
- package/dist/models/ListSessionsResponse.js +5 -1
- package/dist/models/MexicoCurpInput.d.ts +2 -1
- package/dist/models/MexicoCurpInput.js +5 -1
- package/dist/models/MobileIdInput.d.ts +45 -0
- package/dist/models/MobileIdInput.js +53 -0
- package/dist/models/NigeriaNinInput.d.ts +2 -1
- package/dist/models/NigeriaNinInput.js +5 -1
- package/dist/models/OrderDirection.d.ts +1 -0
- package/dist/models/OrderDirection.js +4 -0
- package/dist/models/PersonData.d.ts +2 -1
- package/dist/models/PersonData.js +5 -1
- package/dist/models/PhilippineMatchInput.d.ts +2 -1
- package/dist/models/PhilippineMatchInput.js +5 -1
- package/dist/models/PhilippineQRInput.d.ts +2 -1
- package/dist/models/PhilippineQRInput.js +5 -1
- package/dist/models/ProblemDetails.d.ts +2 -1
- package/dist/models/ProblemDetails.js +5 -1
- package/dist/models/ProviderAttachments.d.ts +2 -1
- package/dist/models/ProviderAttachments.js +5 -1
- package/dist/models/ProviderContract.d.ts +155 -0
- package/dist/models/ProviderContract.js +112 -0
- package/dist/models/ProviderHealth.d.ts +25 -0
- package/dist/models/ProviderHealth.js +51 -0
- package/dist/models/ProviderInfo.d.ts +2 -7
- package/dist/models/ProviderInfo.js +5 -3
- package/dist/models/ProviderInformation.d.ts +5 -4
- package/dist/models/ProviderInformation.js +6 -6
- package/dist/models/ProviderInput.d.ts +64 -17
- package/dist/models/ProviderInput.js +28 -6
- package/dist/models/RecommendRequest.d.ts +6 -28
- package/dist/models/RecommendRequest.js +8 -11
- package/dist/models/RecommendResponse.d.ts +2 -1
- package/dist/models/RecommendResponse.js +5 -1
- package/dist/models/RecommendationInfo.d.ts +56 -0
- package/dist/models/RecommendationInfo.js +54 -0
- package/dist/models/RefreshStepContentRequest.d.ts +2 -1
- package/dist/models/RefreshStepContentRequest.js +5 -1
- package/dist/models/RefreshStepContentResponse.d.ts +2 -1
- package/dist/models/RefreshStepContentResponse.js +5 -1
- package/dist/models/ResultCollection.d.ts +10 -3
- package/dist/models/ResultCollection.js +8 -2
- package/dist/models/ResultCollectionMethod.d.ts +1 -0
- package/dist/models/ResultCollectionMethod.js +4 -0
- package/dist/models/Session.d.ts +2 -1
- package/dist/models/Session.js +5 -1
- package/dist/models/SessionErrorCode.d.ts +1 -0
- package/dist/models/SessionErrorCode.js +4 -0
- package/dist/models/SessionOrdering.d.ts +1 -0
- package/dist/models/SessionOrdering.js +4 -0
- package/dist/models/Sex.d.ts +1 -0
- package/dist/models/Sex.js +4 -0
- package/dist/models/SmartIdInput.d.ts +32 -0
- package/dist/models/SmartIdInput.js +48 -0
- package/dist/models/SouthAfricaNidInput.d.ts +2 -1
- package/dist/models/SouthAfricaNidInput.js +5 -1
- package/dist/models/SpidInput.d.ts +34 -0
- package/dist/models/SpidInput.js +48 -0
- package/dist/models/StepRefreshInfo.d.ts +2 -1
- package/dist/models/StepRefreshInfo.js +5 -1
- package/dist/models/SubProviderMetadata.d.ts +55 -0
- package/dist/models/SubProviderMetadata.js +62 -0
- package/dist/models/TrinsicTestDatabaseLookupInput.d.ts +67 -0
- package/dist/models/TrinsicTestDatabaseLookupInput.js +54 -0
- package/dist/models/TrinsicTestSubProvidersInput.d.ts +36 -0
- package/dist/models/TrinsicTestSubProvidersInput.js +48 -0
- package/dist/models/index.d.ts +12 -3
- package/dist/models/index.js +12 -3
- package/dist/runtime.d.ts +4 -1
- package/dist/runtime.js +10 -1
- package/package.json +1 -1
- package/src/apis/AttachmentsApi.ts +4 -4
- package/src/apis/NetworkApi.ts +58 -4
- package/src/apis/SessionsApi.ts +8 -8
- package/src/apis/WellKnownApi.ts +82 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AadhaarInput.ts +6 -1
- package/src/models/Address.ts +6 -1
- package/src/models/AttachmentAccessKeys.ts +7 -1
- package/src/models/BangladeshNationalIdInput.ts +6 -1
- package/src/models/BrazilCpfCheckInput.ts +6 -1
- package/src/models/BrazilDigitalCnhInput.ts +14 -9
- package/src/models/CancelSessionResponse.ts +7 -1
- package/src/models/CreateAdvancedProviderSessionRequest.ts +34 -27
- package/src/models/CreateAdvancedProviderSessionResponse.ts +8 -1
- package/src/models/CreateHostedProviderSessionRequest.ts +7 -1
- package/src/models/CreateHostedProviderSessionResponse.ts +30 -9
- package/src/models/CreateWidgetSessionRequest.ts +23 -16
- package/src/models/CreateWidgetSessionResponse.ts +28 -7
- package/src/models/DocumentData.ts +7 -1
- package/src/models/DocumentScanAttachments.ts +6 -1
- package/src/models/DocumentType.ts +4 -0
- package/src/models/GetAttachmentRequest.ts +6 -1
- package/src/models/GetAttachmentResponse.ts +6 -1
- package/src/models/GetSessionResponse.ts +7 -1
- package/src/models/GetSessionResultRequest.ts +6 -1
- package/src/models/GetSessionResultResponse.ts +8 -1
- package/src/models/HttpValidationProblemDetails.ts +6 -1
- package/src/models/IdentityData.ts +17 -1
- package/src/models/IdinInput.ts +67 -0
- package/src/models/IndonesiaNikInput.ts +6 -1
- package/src/models/IntegrationCapability.ts +4 -0
- package/src/models/IntegrationLaunchMethod.ts +5 -1
- package/src/models/IntegrationStep.ts +10 -4
- package/src/models/KenyaNidInput.ts +6 -1
- package/src/models/Language.ts +55 -0
- package/src/models/ListProviderContractsResponse.ts +74 -0
- package/src/models/ListProvidersResponse.ts +7 -1
- package/src/models/ListSessionsResponse.ts +7 -1
- package/src/models/MexicoCurpInput.ts +6 -1
- package/src/models/MobileIdInput.ts +91 -0
- package/src/models/NigeriaNinInput.ts +6 -1
- package/src/models/OrderDirection.ts +4 -0
- package/src/models/PersonData.ts +8 -1
- package/src/models/PhilippineMatchInput.ts +6 -1
- package/src/models/PhilippineQRInput.ts +6 -1
- package/src/models/ProblemDetails.ts +6 -1
- package/src/models/ProviderAttachments.ts +7 -1
- package/src/models/ProviderContract.ts +260 -0
- package/src/models/ProviderHealth.ts +53 -0
- package/src/models/ProviderInfo.ts +6 -9
- package/src/models/ProviderInformation.ts +9 -7
- package/src/models/ProviderInput.ts +151 -41
- package/src/models/RecommendRequest.ts +19 -38
- package/src/models/RecommendResponse.ts +7 -1
- package/src/models/RecommendationInfo.ts +95 -0
- package/src/models/RefreshStepContentRequest.ts +6 -1
- package/src/models/RefreshStepContentResponse.ts +7 -1
- package/src/models/ResultCollection.ts +17 -4
- package/src/models/ResultCollectionMethod.ts +4 -0
- package/src/models/Session.ts +14 -8
- package/src/models/SessionErrorCode.ts +4 -0
- package/src/models/SessionOrdering.ts +4 -0
- package/src/models/Sex.ts +4 -0
- package/src/models/SmartIdInput.ts +65 -0
- package/src/models/SouthAfricaNidInput.ts +6 -1
- package/src/models/SpidInput.ts +67 -0
- package/src/models/StepRefreshInfo.ts +8 -3
- package/src/models/SubProviderMetadata.ts +98 -0
- package/src/models/TrinsicTestDatabaseLookupInput.ts +106 -0
- package/src/models/TrinsicTestSubProvidersInput.ts +69 -0
- package/src/models/index.ts +12 -3
- package/src/runtime.ts +10 -4
- package/dist/esm/models/KnownAddress.d.ts +0 -74
- package/dist/esm/models/KnownAddress.js +0 -52
- package/dist/esm/models/KnownIdentityData.d.ts +0 -34
- package/dist/esm/models/KnownIdentityData.js +0 -39
- package/dist/esm/models/KnownPersonData.d.ts +0 -74
- package/dist/esm/models/KnownPersonData.js +0 -53
- package/dist/models/KnownAddress.d.ts +0 -74
- package/dist/models/KnownAddress.js +0 -58
- package/dist/models/KnownIdentityData.d.ts +0 -34
- package/dist/models/KnownIdentityData.js +0 -45
- package/dist/models/KnownPersonData.d.ts +0 -74
- package/dist/models/KnownPersonData.js +0 -59
- package/src/models/KnownAddress.ts +0 -117
- package/src/models/KnownIdentityData.ts +0 -69
- package/src/models/KnownPersonData.ts +0 -123
|
@@ -0,0 +1,82 @@
|
|
|
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
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
ProblemDetails,
|
|
19
|
+
} from '../models/index';
|
|
20
|
+
import {
|
|
21
|
+
ProblemDetailsFromJSON,
|
|
22
|
+
ProblemDetailsToJSON,
|
|
23
|
+
} from '../models/index';
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* WellKnownApi - interface
|
|
27
|
+
*
|
|
28
|
+
* @export
|
|
29
|
+
* @interface WellKnownApiInterface
|
|
30
|
+
*/
|
|
31
|
+
export interface WellKnownApiInterface {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @param {*} [options] Override http request option.
|
|
35
|
+
* @throws {RequiredError}
|
|
36
|
+
* @memberof WellKnownApiInterface
|
|
37
|
+
*/
|
|
38
|
+
interacJwkRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
*/
|
|
42
|
+
interacJwk(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
43
|
+
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
*/
|
|
49
|
+
export class WellKnownApi extends runtime.BaseAPI implements WellKnownApiInterface {
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
*/
|
|
53
|
+
async interacJwkRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
54
|
+
const queryParameters: any = {};
|
|
55
|
+
|
|
56
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
57
|
+
|
|
58
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
59
|
+
const token = this.configuration.accessToken;
|
|
60
|
+
const tokenString = await token("Bearer", []);
|
|
61
|
+
|
|
62
|
+
if (tokenString) {
|
|
63
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
const response = await this.request({
|
|
67
|
+
path: `/api/integrations/v1/interac/.well-known/jwks.json`,
|
|
68
|
+
method: 'GET',
|
|
69
|
+
headers: headerParameters,
|
|
70
|
+
query: queryParameters,
|
|
71
|
+
}, initOverrides);
|
|
72
|
+
|
|
73
|
+
return new runtime.VoidApiResponse(response);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
*/
|
|
78
|
+
async interacJwk(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
79
|
+
await this.interacJwkRaw(initOverrides);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
}
|
package/src/apis/index.ts
CHANGED
|
@@ -55,10 +55,15 @@ export function AadhaarInputFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
export function AadhaarInputToJSON(
|
|
58
|
+
export function AadhaarInputToJSON(json: any): AadhaarInput {
|
|
59
|
+
return AadhaarInputToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function AadhaarInputToJSONTyped(value?: AadhaarInput | null, ignoreDiscriminator: boolean = false): any {
|
|
59
63
|
if (value == null) {
|
|
60
64
|
return value;
|
|
61
65
|
}
|
|
66
|
+
|
|
62
67
|
return {
|
|
63
68
|
|
|
64
69
|
'fullName': value['fullName'],
|
package/src/models/Address.ts
CHANGED
|
@@ -97,10 +97,15 @@ export function AddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): A
|
|
|
97
97
|
};
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
export function AddressToJSON(
|
|
100
|
+
export function AddressToJSON(json: any): Address {
|
|
101
|
+
return AddressToJSONTyped(json, false);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function AddressToJSONTyped(value?: Address | null, ignoreDiscriminator: boolean = false): any {
|
|
101
105
|
if (value == null) {
|
|
102
106
|
return value;
|
|
103
107
|
}
|
|
108
|
+
|
|
104
109
|
return {
|
|
105
110
|
|
|
106
111
|
'line1': value['line1'],
|
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
ProviderAttachmentsFromJSON,
|
|
19
19
|
ProviderAttachmentsFromJSONTyped,
|
|
20
20
|
ProviderAttachmentsToJSON,
|
|
21
|
+
ProviderAttachmentsToJSONTyped,
|
|
21
22
|
} from './ProviderAttachments';
|
|
22
23
|
|
|
23
24
|
/**
|
|
@@ -84,10 +85,15 @@ export function AttachmentAccessKeysFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
84
85
|
};
|
|
85
86
|
}
|
|
86
87
|
|
|
87
|
-
export function AttachmentAccessKeysToJSON(
|
|
88
|
+
export function AttachmentAccessKeysToJSON(json: any): AttachmentAccessKeys {
|
|
89
|
+
return AttachmentAccessKeysToJSONTyped(json, false);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function AttachmentAccessKeysToJSONTyped(value?: AttachmentAccessKeys | null, ignoreDiscriminator: boolean = false): any {
|
|
88
93
|
if (value == null) {
|
|
89
94
|
return value;
|
|
90
95
|
}
|
|
96
|
+
|
|
91
97
|
return {
|
|
92
98
|
|
|
93
99
|
'selfie': value['selfie'],
|
|
@@ -69,10 +69,15 @@ export function BangladeshNationalIdInputFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
export function BangladeshNationalIdInputToJSON(
|
|
72
|
+
export function BangladeshNationalIdInputToJSON(json: any): BangladeshNationalIdInput {
|
|
73
|
+
return BangladeshNationalIdInputToJSONTyped(json, false);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function BangladeshNationalIdInputToJSONTyped(value?: BangladeshNationalIdInput | null, ignoreDiscriminator: boolean = false): any {
|
|
73
77
|
if (value == null) {
|
|
74
78
|
return value;
|
|
75
79
|
}
|
|
80
|
+
|
|
76
81
|
return {
|
|
77
82
|
|
|
78
83
|
'nationalIdNumber': value['nationalIdNumber'],
|
|
@@ -49,10 +49,15 @@ export function BrazilCpfCheckInputFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
export function BrazilCpfCheckInputToJSON(
|
|
52
|
+
export function BrazilCpfCheckInputToJSON(json: any): BrazilCpfCheckInput {
|
|
53
|
+
return BrazilCpfCheckInputToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function BrazilCpfCheckInputToJSONTyped(value?: BrazilCpfCheckInput | null, ignoreDiscriminator: boolean = false): any {
|
|
53
57
|
if (value == null) {
|
|
54
58
|
return value;
|
|
55
59
|
}
|
|
60
|
+
|
|
56
61
|
return {
|
|
57
62
|
|
|
58
63
|
'cpfNumber': value['cpfNumber'],
|
|
@@ -26,20 +26,20 @@ export interface BrazilDigitalCnhInput {
|
|
|
26
26
|
*/
|
|
27
27
|
cpfNumber: string;
|
|
28
28
|
/**
|
|
29
|
-
* The raw bytes of the digital CNH file collected from the user.
|
|
30
|
-
*
|
|
31
|
-
* TODO: Lucas or JP help me describe these below vvvvvvvv
|
|
32
|
-
* This can be:
|
|
33
|
-
* - An image containing a physical or digital QR code
|
|
34
|
-
* - A PDF file exported from the CNH app
|
|
29
|
+
* The raw bytes of the digital CNH file collected from the user.
|
|
30
|
+
*
|
|
31
|
+
* TODO: Lucas or JP help me describe these below vvvvvvvv
|
|
32
|
+
* This can be:
|
|
33
|
+
* - An image containing a physical or digital QR code
|
|
34
|
+
* - A PDF file exported from the CNH app
|
|
35
35
|
* - Some scary third thing?
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof BrazilDigitalCnhInput
|
|
38
38
|
*/
|
|
39
39
|
digitalCnhFile?: string | null;
|
|
40
40
|
/**
|
|
41
|
-
* The MIME Type of the file contained in `DigitalCnhFile`.
|
|
42
|
-
*
|
|
41
|
+
* The MIME Type of the file contained in `DigitalCnhFile`.
|
|
42
|
+
*
|
|
43
43
|
* Must be one of `application/pdf`, `image/jpeg`, or `image/png`.
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof BrazilDigitalCnhInput
|
|
@@ -78,10 +78,15 @@ export function BrazilDigitalCnhInputFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
export function BrazilDigitalCnhInputToJSON(
|
|
81
|
+
export function BrazilDigitalCnhInputToJSON(json: any): BrazilDigitalCnhInput {
|
|
82
|
+
return BrazilDigitalCnhInputToJSONTyped(json, false);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function BrazilDigitalCnhInputToJSONTyped(value?: BrazilDigitalCnhInput | null, ignoreDiscriminator: boolean = false): any {
|
|
82
86
|
if (value == null) {
|
|
83
87
|
return value;
|
|
84
88
|
}
|
|
89
|
+
|
|
85
90
|
return {
|
|
86
91
|
|
|
87
92
|
'cpfNumber': value['cpfNumber'],
|
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
SessionFromJSON,
|
|
19
19
|
SessionFromJSONTyped,
|
|
20
20
|
SessionToJSON,
|
|
21
|
+
SessionToJSONTyped,
|
|
21
22
|
} from './Session';
|
|
22
23
|
|
|
23
24
|
/**
|
|
@@ -56,10 +57,15 @@ export function CancelSessionResponseFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
56
57
|
};
|
|
57
58
|
}
|
|
58
59
|
|
|
59
|
-
export function CancelSessionResponseToJSON(
|
|
60
|
+
export function CancelSessionResponseToJSON(json: any): CancelSessionResponse {
|
|
61
|
+
return CancelSessionResponseToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function CancelSessionResponseToJSONTyped(value?: CancelSessionResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
60
65
|
if (value == null) {
|
|
61
66
|
return value;
|
|
62
67
|
}
|
|
68
|
+
|
|
63
69
|
return {
|
|
64
70
|
|
|
65
71
|
'session': SessionToJSON(value['session']),
|
|
@@ -18,12 +18,14 @@ import {
|
|
|
18
18
|
IntegrationCapabilityFromJSON,
|
|
19
19
|
IntegrationCapabilityFromJSONTyped,
|
|
20
20
|
IntegrationCapabilityToJSON,
|
|
21
|
+
IntegrationCapabilityToJSONTyped,
|
|
21
22
|
} from './IntegrationCapability';
|
|
22
23
|
import type { ProviderInput } from './ProviderInput';
|
|
23
24
|
import {
|
|
24
25
|
ProviderInputFromJSON,
|
|
25
26
|
ProviderInputFromJSONTyped,
|
|
26
27
|
ProviderInputToJSON,
|
|
28
|
+
ProviderInputToJSONTyped,
|
|
27
29
|
} from './ProviderInput';
|
|
28
30
|
|
|
29
31
|
/**
|
|
@@ -45,44 +47,44 @@ export interface CreateAdvancedProviderSessionRequest {
|
|
|
45
47
|
*/
|
|
46
48
|
providerInput?: ProviderInput | null;
|
|
47
49
|
/**
|
|
48
|
-
* The Redirect URL to which the user should be sent after the session is complete.
|
|
49
|
-
*
|
|
50
|
+
* The Redirect URL to which the user should be sent after the session is complete.
|
|
51
|
+
*
|
|
50
52
|
* This field is required for providers which employ a redirect-based flow.
|
|
51
53
|
* @type {string}
|
|
52
54
|
* @memberof CreateAdvancedProviderSessionRequest
|
|
53
55
|
*/
|
|
54
56
|
redirectUrl?: string | null;
|
|
55
57
|
/**
|
|
56
|
-
* The list of capabilities your integration supports. Capabilities are the core of Trinsic's whitelabel-with-optional-fallback offering.
|
|
57
|
-
*
|
|
58
|
-
* Most capabilities align with either an `IntegrationLaunchMethod` or an `IntegrationCollectionMethod`.
|
|
59
|
-
* The exception being refresh content to support updating the content of the launch method.
|
|
60
|
-
*
|
|
61
|
-
* For example, to support a basic redirect-based flow, you must include the `LaunchRedirect` and `CaptureRedirect` capabilities.
|
|
62
|
-
* To support a mobile deeplink / polling flow, you must include the `DeeplinkToMobile` and `PollForResults` capabilities.
|
|
63
|
-
*
|
|
64
|
-
* If `FallbackToHostedUi` is `true`, Trinsic will automatically fall back to a Trinsic-hosted UI to cover any gaps in your integration's capabilities.
|
|
65
|
-
* If `FallbackToHostedUi` is `false`, gaps in your integration's capabilities will result in an error during Session creation.
|
|
66
|
-
*
|
|
58
|
+
* The list of capabilities your integration supports. Capabilities are the core of Trinsic's whitelabel-with-optional-fallback offering.
|
|
59
|
+
*
|
|
60
|
+
* Most capabilities align with either an `IntegrationLaunchMethod` or an `IntegrationCollectionMethod`.
|
|
61
|
+
* The exception being refresh content to support updating the content of the launch method.
|
|
62
|
+
*
|
|
63
|
+
* For example, to support a basic redirect-based flow, you must include the `LaunchRedirect` and `CaptureRedirect` capabilities.
|
|
64
|
+
* To support a mobile deeplink / polling flow, you must include the `DeeplinkToMobile` and `PollForResults` capabilities.
|
|
65
|
+
*
|
|
66
|
+
* If `FallbackToHostedUi` is `true`, Trinsic will automatically fall back to a Trinsic-hosted UI to cover any gaps in your integration's capabilities.
|
|
67
|
+
* If `FallbackToHostedUi` is `false`, gaps in your integration's capabilities will result in an error during Session creation.
|
|
68
|
+
*
|
|
67
69
|
* Read more on how to integrate at <a href="https://docs.trinsic.id/docs/advanced-provider-sessions">the guide on Advanced Provider Sessions</a>
|
|
68
70
|
* @type {Array<IntegrationCapability>}
|
|
69
71
|
* @memberof CreateAdvancedProviderSessionRequest
|
|
70
72
|
*/
|
|
71
73
|
capabilities: Array<IntegrationCapability>;
|
|
72
74
|
/**
|
|
73
|
-
* Whether the session should fall back to a Trinsic-hosted UI in certain instances.
|
|
74
|
-
*
|
|
75
|
-
* Specifically, fallback will occur if any of the following are true:
|
|
76
|
-
* - You attempted to launch a provider which requires a capability you did not express support for
|
|
77
|
-
* - In this case, Trinsic's hosted UI will perform the necessary capability
|
|
78
|
-
* - You attempted to launch a provider which requires input, and the input was either not provided or incomplete
|
|
79
|
-
* - In this case, Trinsic's hosted UI will collect the necessary input from the user
|
|
80
|
-
*
|
|
81
|
-
* If fallback occurs, the session's NextStep will always be LaunchBrowser,
|
|
82
|
-
* and the CollectionMethod will always be CaptureRedirect.
|
|
83
|
-
*
|
|
84
|
-
* If this field is set to `true`, you must also:
|
|
85
|
-
* 1. Set the `RedirectUrl` field to a non-empty value
|
|
75
|
+
* Whether the session should fall back to a Trinsic-hosted UI in certain instances.
|
|
76
|
+
*
|
|
77
|
+
* Specifically, fallback will occur if any of the following are true:
|
|
78
|
+
* - You attempted to launch a provider which requires a capability you did not express support for
|
|
79
|
+
* - In this case, Trinsic's hosted UI will perform the necessary capability
|
|
80
|
+
* - You attempted to launch a provider which requires input, and the input was either not provided or incomplete
|
|
81
|
+
* - In this case, Trinsic's hosted UI will collect the necessary input from the user
|
|
82
|
+
*
|
|
83
|
+
* If fallback occurs, the session's NextStep will always be LaunchBrowser,
|
|
84
|
+
* and the CollectionMethod will always be CaptureRedirect.
|
|
85
|
+
*
|
|
86
|
+
* If this field is set to `true`, you must also:
|
|
87
|
+
* 1. Set the `RedirectUrl` field to a non-empty value
|
|
86
88
|
* 2. Include the `LaunchBrowser` and `CaptureRedirect` capabilities in the `Capabilities` field
|
|
87
89
|
* @type {boolean}
|
|
88
90
|
* @memberof CreateAdvancedProviderSessionRequest
|
|
@@ -117,10 +119,15 @@ export function CreateAdvancedProviderSessionRequestFromJSONTyped(json: any, ign
|
|
|
117
119
|
};
|
|
118
120
|
}
|
|
119
121
|
|
|
120
|
-
export function CreateAdvancedProviderSessionRequestToJSON(
|
|
122
|
+
export function CreateAdvancedProviderSessionRequestToJSON(json: any): CreateAdvancedProviderSessionRequest {
|
|
123
|
+
return CreateAdvancedProviderSessionRequestToJSONTyped(json, false);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export function CreateAdvancedProviderSessionRequestToJSONTyped(value?: CreateAdvancedProviderSessionRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
121
127
|
if (value == null) {
|
|
122
128
|
return value;
|
|
123
129
|
}
|
|
130
|
+
|
|
124
131
|
return {
|
|
125
132
|
|
|
126
133
|
'provider': value['provider'],
|
|
@@ -18,12 +18,14 @@ import {
|
|
|
18
18
|
ResultCollectionFromJSON,
|
|
19
19
|
ResultCollectionFromJSONTyped,
|
|
20
20
|
ResultCollectionToJSON,
|
|
21
|
+
ResultCollectionToJSONTyped,
|
|
21
22
|
} from './ResultCollection';
|
|
22
23
|
import type { IntegrationStep } from './IntegrationStep';
|
|
23
24
|
import {
|
|
24
25
|
IntegrationStepFromJSON,
|
|
25
26
|
IntegrationStepFromJSONTyped,
|
|
26
27
|
IntegrationStepToJSON,
|
|
28
|
+
IntegrationStepToJSONTyped,
|
|
27
29
|
} from './IntegrationStep';
|
|
28
30
|
|
|
29
31
|
/**
|
|
@@ -78,10 +80,15 @@ export function CreateAdvancedProviderSessionResponseFromJSONTyped(json: any, ig
|
|
|
78
80
|
};
|
|
79
81
|
}
|
|
80
82
|
|
|
81
|
-
export function CreateAdvancedProviderSessionResponseToJSON(
|
|
83
|
+
export function CreateAdvancedProviderSessionResponseToJSON(json: any): CreateAdvancedProviderSessionResponse {
|
|
84
|
+
return CreateAdvancedProviderSessionResponseToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function CreateAdvancedProviderSessionResponseToJSONTyped(value?: CreateAdvancedProviderSessionResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
82
88
|
if (value == null) {
|
|
83
89
|
return value;
|
|
84
90
|
}
|
|
91
|
+
|
|
85
92
|
return {
|
|
86
93
|
|
|
87
94
|
'sessionId': value['sessionId'],
|
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
ProviderInputFromJSON,
|
|
19
19
|
ProviderInputFromJSONTyped,
|
|
20
20
|
ProviderInputToJSON,
|
|
21
|
+
ProviderInputToJSONTyped,
|
|
21
22
|
} from './ProviderInput';
|
|
22
23
|
|
|
23
24
|
/**
|
|
@@ -71,10 +72,15 @@ export function CreateHostedProviderSessionRequestFromJSONTyped(json: any, ignor
|
|
|
71
72
|
};
|
|
72
73
|
}
|
|
73
74
|
|
|
74
|
-
export function CreateHostedProviderSessionRequestToJSON(
|
|
75
|
+
export function CreateHostedProviderSessionRequestToJSON(json: any): CreateHostedProviderSessionRequest {
|
|
76
|
+
return CreateHostedProviderSessionRequestToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function CreateHostedProviderSessionRequestToJSONTyped(value?: CreateHostedProviderSessionRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
75
80
|
if (value == null) {
|
|
76
81
|
return value;
|
|
77
82
|
}
|
|
83
|
+
|
|
78
84
|
return {
|
|
79
85
|
|
|
80
86
|
'provider': value['provider'],
|
|
@@ -26,17 +26,29 @@ export interface CreateHostedProviderSessionResponse {
|
|
|
26
26
|
*/
|
|
27
27
|
sessionId: string;
|
|
28
28
|
/**
|
|
29
|
-
* The URL that should be used to launch the Hosted Provider Session on your user's device.
|
|
30
|
-
*
|
|
31
|
-
* There are two recommended ways to do so:
|
|
32
|
-
* - Redirect their browser to the `LaunchUrl` as a top-level navigation
|
|
33
|
-
* - Open a popup window and navigate it to the `LaunchUrl`
|
|
34
|
-
*
|
|
29
|
+
* The URL that should be used to launch the Hosted Provider Session on your user's device.
|
|
30
|
+
*
|
|
31
|
+
* There are two recommended ways to do so:
|
|
32
|
+
* - Redirect their browser to the `LaunchUrl` as a top-level navigation
|
|
33
|
+
* - Open a popup window and navigate it to the `LaunchUrl`
|
|
34
|
+
*
|
|
35
35
|
* 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.
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof CreateHostedProviderSessionResponse
|
|
38
38
|
*/
|
|
39
|
-
launchUrl
|
|
39
|
+
launchUrl: string;
|
|
40
|
+
/**
|
|
41
|
+
* The `resultsAccessKey` for the Acceptance Session.
|
|
42
|
+
*
|
|
43
|
+
* This is an encrypted payload which contains the decryption key necessary to access the Session's Data Vault.
|
|
44
|
+
*
|
|
45
|
+
* Save this securely in your systems; it must be passed back with any API call which requires access to the Session's Data Vault.
|
|
46
|
+
*
|
|
47
|
+
* Trinsic cannot access a Session's Data Vault without this key.
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof CreateHostedProviderSessionResponse
|
|
50
|
+
*/
|
|
51
|
+
resultsAccessKey: string;
|
|
40
52
|
}
|
|
41
53
|
|
|
42
54
|
/**
|
|
@@ -44,6 +56,8 @@ export interface CreateHostedProviderSessionResponse {
|
|
|
44
56
|
*/
|
|
45
57
|
export function instanceOfCreateHostedProviderSessionResponse(value: object): value is CreateHostedProviderSessionResponse {
|
|
46
58
|
if (!('sessionId' in value) || value['sessionId'] === undefined) return false;
|
|
59
|
+
if (!('launchUrl' in value) || value['launchUrl'] === undefined) return false;
|
|
60
|
+
if (!('resultsAccessKey' in value) || value['resultsAccessKey'] === undefined) return false;
|
|
47
61
|
return true;
|
|
48
62
|
}
|
|
49
63
|
|
|
@@ -58,18 +72,25 @@ export function CreateHostedProviderSessionResponseFromJSONTyped(json: any, igno
|
|
|
58
72
|
return {
|
|
59
73
|
|
|
60
74
|
'sessionId': json['sessionId'],
|
|
61
|
-
'launchUrl': json['launchUrl']
|
|
75
|
+
'launchUrl': json['launchUrl'],
|
|
76
|
+
'resultsAccessKey': json['resultsAccessKey'],
|
|
62
77
|
};
|
|
63
78
|
}
|
|
64
79
|
|
|
65
|
-
export function CreateHostedProviderSessionResponseToJSON(
|
|
80
|
+
export function CreateHostedProviderSessionResponseToJSON(json: any): CreateHostedProviderSessionResponse {
|
|
81
|
+
return CreateHostedProviderSessionResponseToJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function CreateHostedProviderSessionResponseToJSONTyped(value?: CreateHostedProviderSessionResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
66
85
|
if (value == null) {
|
|
67
86
|
return value;
|
|
68
87
|
}
|
|
88
|
+
|
|
69
89
|
return {
|
|
70
90
|
|
|
71
91
|
'sessionId': value['sessionId'],
|
|
72
92
|
'launchUrl': value['launchUrl'],
|
|
93
|
+
'resultsAccessKey': value['resultsAccessKey'],
|
|
73
94
|
};
|
|
74
95
|
}
|
|
75
96
|
|
|
@@ -13,12 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { RecommendationInfo } from './RecommendationInfo';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
RecommendationInfoFromJSON,
|
|
19
|
+
RecommendationInfoFromJSONTyped,
|
|
20
|
+
RecommendationInfoToJSON,
|
|
21
|
+
RecommendationInfoToJSONTyped,
|
|
22
|
+
} from './RecommendationInfo';
|
|
22
23
|
|
|
23
24
|
/**
|
|
24
25
|
*
|
|
@@ -27,9 +28,9 @@ import {
|
|
|
27
28
|
*/
|
|
28
29
|
export interface CreateWidgetSessionRequest {
|
|
29
30
|
/**
|
|
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
|
|
31
|
+
* The URL to redirect the user to after the widget session is complete.
|
|
32
|
+
*
|
|
33
|
+
* *Note*: this should NOT be set if you intend to use Trinsic's Web UI SDK to launch the Widget
|
|
33
34
|
* as an embedded iFrame or popup; in that case, session resolution is handled by our SDK, not via redirect.
|
|
34
35
|
* @type {string}
|
|
35
36
|
* @memberof CreateWidgetSessionRequest
|
|
@@ -42,13 +43,14 @@ export interface CreateWidgetSessionRequest {
|
|
|
42
43
|
*/
|
|
43
44
|
providers?: Array<string> | null;
|
|
44
45
|
/**
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
46
|
+
* Data that you already know about the user being verified.
|
|
47
|
+
*
|
|
48
|
+
*
|
|
49
|
+
* This data is used to improve the user experience during provider selection, by surfacing the most relevant providers first.
|
|
50
|
+
* @type {RecommendationInfo}
|
|
49
51
|
* @memberof CreateWidgetSessionRequest
|
|
50
52
|
*/
|
|
51
|
-
|
|
53
|
+
recommendationInfo?: RecommendationInfo | null;
|
|
52
54
|
}
|
|
53
55
|
|
|
54
56
|
/**
|
|
@@ -70,19 +72,24 @@ export function CreateWidgetSessionRequestFromJSONTyped(json: any, ignoreDiscrim
|
|
|
70
72
|
|
|
71
73
|
'redirectUrl': json['redirectUrl'] == null ? undefined : json['redirectUrl'],
|
|
72
74
|
'providers': json['providers'] == null ? undefined : json['providers'],
|
|
73
|
-
'
|
|
75
|
+
'recommendationInfo': json['recommendationInfo'] == null ? undefined : RecommendationInfoFromJSON(json['recommendationInfo']),
|
|
74
76
|
};
|
|
75
77
|
}
|
|
76
78
|
|
|
77
|
-
export function CreateWidgetSessionRequestToJSON(
|
|
79
|
+
export function CreateWidgetSessionRequestToJSON(json: any): CreateWidgetSessionRequest {
|
|
80
|
+
return CreateWidgetSessionRequestToJSONTyped(json, false);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function CreateWidgetSessionRequestToJSONTyped(value?: CreateWidgetSessionRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
78
84
|
if (value == null) {
|
|
79
85
|
return value;
|
|
80
86
|
}
|
|
87
|
+
|
|
81
88
|
return {
|
|
82
89
|
|
|
83
90
|
'redirectUrl': value['redirectUrl'],
|
|
84
91
|
'providers': value['providers'],
|
|
85
|
-
'
|
|
92
|
+
'recommendationInfo': RecommendationInfoToJSON(value['recommendationInfo']),
|
|
86
93
|
};
|
|
87
94
|
}
|
|
88
95
|
|
|
@@ -26,15 +26,27 @@ export interface CreateWidgetSessionResponse {
|
|
|
26
26
|
*/
|
|
27
27
|
sessionId: string;
|
|
28
28
|
/**
|
|
29
|
-
* The URL that should be used to invoke the Acceptance Session on your user's device.
|
|
30
|
-
*
|
|
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.
|
|
32
|
-
*
|
|
29
|
+
* The URL that should be used to invoke the Acceptance Session on your user's device.
|
|
30
|
+
*
|
|
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.
|
|
32
|
+
*
|
|
33
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.
|
|
34
34
|
* @type {string}
|
|
35
35
|
* @memberof CreateWidgetSessionResponse
|
|
36
36
|
*/
|
|
37
|
-
launchUrl
|
|
37
|
+
launchUrl: string;
|
|
38
|
+
/**
|
|
39
|
+
* The `resultsAccessKey` for the Acceptance Session.
|
|
40
|
+
*
|
|
41
|
+
* This is an encrypted payload which contains the decryption key necessary to access the Session's Data Vault.
|
|
42
|
+
*
|
|
43
|
+
* Save this securely in your systems; it must be passed back with any API call which requires access to the Session's Data Vault.
|
|
44
|
+
*
|
|
45
|
+
* Trinsic cannot access a Session's Data Vault without this key.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof CreateWidgetSessionResponse
|
|
48
|
+
*/
|
|
49
|
+
resultsAccessKey: string;
|
|
38
50
|
}
|
|
39
51
|
|
|
40
52
|
/**
|
|
@@ -42,6 +54,8 @@ export interface CreateWidgetSessionResponse {
|
|
|
42
54
|
*/
|
|
43
55
|
export function instanceOfCreateWidgetSessionResponse(value: object): value is CreateWidgetSessionResponse {
|
|
44
56
|
if (!('sessionId' in value) || value['sessionId'] === undefined) return false;
|
|
57
|
+
if (!('launchUrl' in value) || value['launchUrl'] === undefined) return false;
|
|
58
|
+
if (!('resultsAccessKey' in value) || value['resultsAccessKey'] === undefined) return false;
|
|
45
59
|
return true;
|
|
46
60
|
}
|
|
47
61
|
|
|
@@ -56,18 +70,25 @@ export function CreateWidgetSessionResponseFromJSONTyped(json: any, ignoreDiscri
|
|
|
56
70
|
return {
|
|
57
71
|
|
|
58
72
|
'sessionId': json['sessionId'],
|
|
59
|
-
'launchUrl': json['launchUrl']
|
|
73
|
+
'launchUrl': json['launchUrl'],
|
|
74
|
+
'resultsAccessKey': json['resultsAccessKey'],
|
|
60
75
|
};
|
|
61
76
|
}
|
|
62
77
|
|
|
63
|
-
export function CreateWidgetSessionResponseToJSON(
|
|
78
|
+
export function CreateWidgetSessionResponseToJSON(json: any): CreateWidgetSessionResponse {
|
|
79
|
+
return CreateWidgetSessionResponseToJSONTyped(json, false);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function CreateWidgetSessionResponseToJSONTyped(value?: CreateWidgetSessionResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
83
|
if (value == null) {
|
|
65
84
|
return value;
|
|
66
85
|
}
|
|
86
|
+
|
|
67
87
|
return {
|
|
68
88
|
|
|
69
89
|
'sessionId': value['sessionId'],
|
|
70
90
|
'launchUrl': value['launchUrl'],
|
|
91
|
+
'resultsAccessKey': value['resultsAccessKey'],
|
|
71
92
|
};
|
|
72
93
|
}
|
|
73
94
|
|
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
DocumentTypeFromJSON,
|
|
19
19
|
DocumentTypeFromJSONTyped,
|
|
20
20
|
DocumentTypeToJSON,
|
|
21
|
+
DocumentTypeToJSONTyped,
|
|
21
22
|
} from './DocumentType';
|
|
22
23
|
|
|
23
24
|
/**
|
|
@@ -92,10 +93,15 @@ export function DocumentDataFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
92
93
|
};
|
|
93
94
|
}
|
|
94
95
|
|
|
95
|
-
export function DocumentDataToJSON(
|
|
96
|
+
export function DocumentDataToJSON(json: any): DocumentData {
|
|
97
|
+
return DocumentDataToJSONTyped(json, false);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function DocumentDataToJSONTyped(value?: DocumentData | null, ignoreDiscriminator: boolean = false): any {
|
|
96
101
|
if (value == null) {
|
|
97
102
|
return value;
|
|
98
103
|
}
|
|
104
|
+
|
|
99
105
|
return {
|
|
100
106
|
|
|
101
107
|
'type': DocumentTypeToJSON(value['type']),
|