@velion-la/onboarding-sdk-react-native 1.0.0-beta.2
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/CHANGELOG.md +66 -0
- package/LICENSE +12 -0
- package/README.md +803 -0
- package/lib/commonjs/camera/AddressSearchBar.js +304 -0
- package/lib/commonjs/camera/AddressSearchBar.js.map +1 -0
- package/lib/commonjs/camera/DocumentCapture.js +505 -0
- package/lib/commonjs/camera/DocumentCapture.js.map +1 -0
- package/lib/commonjs/camera/LivenessCamera.js +534 -0
- package/lib/commonjs/camera/LivenessCamera.js.map +1 -0
- package/lib/commonjs/camera/MapAddressPicker.js +341 -0
- package/lib/commonjs/camera/MapAddressPicker.js.map +1 -0
- package/lib/commonjs/core/VelionOnboarding.js +815 -0
- package/lib/commonjs/core/VelionOnboarding.js.map +1 -0
- package/lib/commonjs/core/sessionDeclinedCopy.js +56 -0
- package/lib/commonjs/core/sessionDeclinedCopy.js.map +1 -0
- package/lib/commonjs/core/sessionStateMapper.js +137 -0
- package/lib/commonjs/core/sessionStateMapper.js.map +1 -0
- package/lib/commonjs/core/sseReasonMessages.js +450 -0
- package/lib/commonjs/core/sseReasonMessages.js.map +1 -0
- package/lib/commonjs/data/iso3166Alpha2Codes.json +1 -0
- package/lib/commonjs/data/iso3166CountryNames.json +251 -0
- package/lib/commonjs/i18n/index.js +30 -0
- package/lib/commonjs/i18n/index.js.map +1 -0
- package/lib/commonjs/i18n/strings/en.js +261 -0
- package/lib/commonjs/i18n/strings/en.js.map +1 -0
- package/lib/commonjs/i18n/strings/es.js +266 -0
- package/lib/commonjs/i18n/strings/es.js.map +1 -0
- package/lib/commonjs/index.js +213 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/steps/AddressInfoStep.js +650 -0
- package/lib/commonjs/steps/AddressInfoStep.js.map +1 -0
- package/lib/commonjs/steps/DocumentsOcrStep.js +397 -0
- package/lib/commonjs/steps/DocumentsOcrStep.js.map +1 -0
- package/lib/commonjs/steps/EmailContactStep.js +145 -0
- package/lib/commonjs/steps/EmailContactStep.js.map +1 -0
- package/lib/commonjs/steps/EmailOtpStep.js +220 -0
- package/lib/commonjs/steps/EmailOtpStep.js.map +1 -0
- package/lib/commonjs/steps/FaceMatchStep.js +166 -0
- package/lib/commonjs/steps/FaceMatchStep.js.map +1 -0
- package/lib/commonjs/steps/FingerprintStep.js +92 -0
- package/lib/commonjs/steps/FingerprintStep.js.map +1 -0
- package/lib/commonjs/steps/HumanBasicInfoStep.js +243 -0
- package/lib/commonjs/steps/HumanBasicInfoStep.js.map +1 -0
- package/lib/commonjs/steps/HumanExtendedInfoStep.js +268 -0
- package/lib/commonjs/steps/HumanExtendedInfoStep.js.map +1 -0
- package/lib/commonjs/steps/LegalBasicInfoStep.js +188 -0
- package/lib/commonjs/steps/LegalBasicInfoStep.js.map +1 -0
- package/lib/commonjs/steps/LegalExtendedInfoStep.js +166 -0
- package/lib/commonjs/steps/LegalExtendedInfoStep.js.map +1 -0
- package/lib/commonjs/steps/LivenessMatchStep.js +707 -0
- package/lib/commonjs/steps/LivenessMatchStep.js.map +1 -0
- package/lib/commonjs/steps/PhoneContactStep.js +146 -0
- package/lib/commonjs/steps/PhoneContactStep.js.map +1 -0
- package/lib/commonjs/steps/PhoneOtpStep.js +219 -0
- package/lib/commonjs/steps/PhoneOtpStep.js.map +1 -0
- package/lib/commonjs/steps/SwornDeclarationStep.js +196 -0
- package/lib/commonjs/steps/SwornDeclarationStep.js.map +1 -0
- package/lib/commonjs/steps/TaxInfoStep.js +244 -0
- package/lib/commonjs/steps/TaxInfoStep.js.map +1 -0
- package/lib/commonjs/steps/TermsAndConditionsStep.js +238 -0
- package/lib/commonjs/steps/TermsAndConditionsStep.js.map +1 -0
- package/lib/commonjs/steps/_shared.js +40 -0
- package/lib/commonjs/steps/_shared.js.map +1 -0
- package/lib/commonjs/steps/types.js +6 -0
- package/lib/commonjs/steps/types.js.map +1 -0
- package/lib/commonjs/transport/api.js +176 -0
- package/lib/commonjs/transport/api.js.map +1 -0
- package/lib/commonjs/transport/irisWebSocket.js +121 -0
- package/lib/commonjs/transport/irisWebSocket.js.map +1 -0
- package/lib/commonjs/transport/secureUrl.js +50 -0
- package/lib/commonjs/transport/secureUrl.js.map +1 -0
- package/lib/commonjs/transport/sse.js +248 -0
- package/lib/commonjs/transport/sse.js.map +1 -0
- package/lib/commonjs/types/index.js +391 -0
- package/lib/commonjs/types/index.js.map +1 -0
- package/lib/commonjs/ui/MapFallbackBoundary.js +42 -0
- package/lib/commonjs/ui/MapFallbackBoundary.js.map +1 -0
- package/lib/commonjs/ui/StepShell.js +118 -0
- package/lib/commonjs/ui/StepShell.js.map +1 -0
- package/lib/commonjs/ui/VelionOnboardingScreen.js +217 -0
- package/lib/commonjs/ui/VelionOnboardingScreen.js.map +1 -0
- package/lib/commonjs/ui/forms/index.js +38 -0
- package/lib/commonjs/ui/forms/index.js.map +1 -0
- package/lib/commonjs/ui/forms/useInlineValidation.js +88 -0
- package/lib/commonjs/ui/forms/useInlineValidation.js.map +1 -0
- package/lib/commonjs/ui/forms/validators.js +34 -0
- package/lib/commonjs/ui/forms/validators.js.map +1 -0
- package/lib/commonjs/ui/icons/HomeHeartIcon.js +38 -0
- package/lib/commonjs/ui/icons/HomeHeartIcon.js.map +1 -0
- package/lib/commonjs/ui/icons/StepIcon.js +59 -0
- package/lib/commonjs/ui/icons/StepIcon.js.map +1 -0
- package/lib/commonjs/ui/overlays/AnalyzingOverlay.js +284 -0
- package/lib/commonjs/ui/overlays/AnalyzingOverlay.js.map +1 -0
- package/lib/commonjs/ui/overlays/LoadingOverlay.js +108 -0
- package/lib/commonjs/ui/overlays/LoadingOverlay.js.map +1 -0
- package/lib/commonjs/ui/overlays/ProgressBar.js +95 -0
- package/lib/commonjs/ui/overlays/ProgressBar.js.map +1 -0
- package/lib/commonjs/ui/overlays/RetryDialog.js +125 -0
- package/lib/commonjs/ui/overlays/RetryDialog.js.map +1 -0
- package/lib/commonjs/ui/overlays/index.js +33 -0
- package/lib/commonjs/ui/overlays/index.js.map +1 -0
- package/lib/commonjs/ui/primitives/Banner.js +81 -0
- package/lib/commonjs/ui/primitives/Banner.js.map +1 -0
- package/lib/commonjs/ui/primitives/Button.js +142 -0
- package/lib/commonjs/ui/primitives/Button.js.map +1 -0
- package/lib/commonjs/ui/primitives/Card.js +50 -0
- package/lib/commonjs/ui/primitives/Card.js.map +1 -0
- package/lib/commonjs/ui/primitives/Checkbox.js +139 -0
- package/lib/commonjs/ui/primitives/Checkbox.js.map +1 -0
- package/lib/commonjs/ui/primitives/CountrySelect.js +288 -0
- package/lib/commonjs/ui/primitives/CountrySelect.js.map +1 -0
- package/lib/commonjs/ui/primitives/DatePicker.js +245 -0
- package/lib/commonjs/ui/primitives/DatePicker.js.map +1 -0
- package/lib/commonjs/ui/primitives/Input.js +101 -0
- package/lib/commonjs/ui/primitives/Input.js.map +1 -0
- package/lib/commonjs/ui/primitives/Select.js +209 -0
- package/lib/commonjs/ui/primitives/Select.js.map +1 -0
- package/lib/commonjs/ui/primitives/Spinner.js +25 -0
- package/lib/commonjs/ui/primitives/Spinner.js.map +1 -0
- package/lib/commonjs/ui/primitives/index.js +69 -0
- package/lib/commonjs/ui/primitives/index.js.map +1 -0
- package/lib/commonjs/ui/theme/ThemeProvider.js +74 -0
- package/lib/commonjs/ui/theme/ThemeProvider.js.map +1 -0
- package/lib/commonjs/ui/theme/index.js +68 -0
- package/lib/commonjs/ui/theme/index.js.map +1 -0
- package/lib/commonjs/ui/theme/tokens.js +154 -0
- package/lib/commonjs/ui/theme/tokens.js.map +1 -0
- package/lib/commonjs/utils/EventEmitter.js +144 -0
- package/lib/commonjs/utils/EventEmitter.js.map +1 -0
- package/lib/commonjs/utils/base64.js +53 -0
- package/lib/commonjs/utils/base64.js.map +1 -0
- package/lib/commonjs/utils/deviceFingerprint.js +132 -0
- package/lib/commonjs/utils/deviceFingerprint.js.map +1 -0
- package/lib/commonjs/utils/documentTypeOptions.js +35 -0
- package/lib/commonjs/utils/documentTypeOptions.js.map +1 -0
- package/lib/commonjs/utils/googleMapsPreflight.js +77 -0
- package/lib/commonjs/utils/googleMapsPreflight.js.map +1 -0
- package/lib/commonjs/utils/hmac.js +58 -0
- package/lib/commonjs/utils/hmac.js.map +1 -0
- package/lib/commonjs/utils/iso3166Countries.js +98 -0
- package/lib/commonjs/utils/iso3166Countries.js.map +1 -0
- package/lib/commonjs/utils/jpegFromUri.js +44 -0
- package/lib/commonjs/utils/jpegFromUri.js.map +1 -0
- package/lib/commonjs/utils/keepAwake.js +58 -0
- package/lib/commonjs/utils/keepAwake.js.map +1 -0
- package/lib/commonjs/utils/log.js +42 -0
- package/lib/commonjs/utils/log.js.map +1 -0
- package/lib/commonjs/utils/osGeocoder.js +70 -0
- package/lib/commonjs/utils/osGeocoder.js.map +1 -0
- package/lib/commonjs/utils/parseGoogleAddressComponents.js +74 -0
- package/lib/commonjs/utils/parseGoogleAddressComponents.js.map +1 -0
- package/lib/commonjs/utils/personNameNormalize.js +24 -0
- package/lib/commonjs/utils/personNameNormalize.js.map +1 -0
- package/lib/commonjs/utils/sdkError.js +34 -0
- package/lib/commonjs/utils/sdkError.js.map +1 -0
- package/lib/commonjs/utils/sdkVersion.js +13 -0
- package/lib/commonjs/utils/sdkVersion.js.map +1 -0
- package/lib/commonjs/utils/stepConfig.js +65 -0
- package/lib/commonjs/utils/stepConfig.js.map +1 -0
- package/lib/commonjs/utils/taxInfoConfig.js +19 -0
- package/lib/commonjs/utils/taxInfoConfig.js.map +1 -0
- package/lib/module/camera/AddressSearchBar.js +299 -0
- package/lib/module/camera/AddressSearchBar.js.map +1 -0
- package/lib/module/camera/DocumentCapture.js +500 -0
- package/lib/module/camera/DocumentCapture.js.map +1 -0
- package/lib/module/camera/LivenessCamera.js +529 -0
- package/lib/module/camera/LivenessCamera.js.map +1 -0
- package/lib/module/camera/MapAddressPicker.js +337 -0
- package/lib/module/camera/MapAddressPicker.js.map +1 -0
- package/lib/module/core/VelionOnboarding.js +811 -0
- package/lib/module/core/VelionOnboarding.js.map +1 -0
- package/lib/module/core/sessionDeclinedCopy.js +52 -0
- package/lib/module/core/sessionDeclinedCopy.js.map +1 -0
- package/lib/module/core/sessionStateMapper.js +128 -0
- package/lib/module/core/sessionStateMapper.js.map +1 -0
- package/lib/module/core/sseReasonMessages.js +446 -0
- package/lib/module/core/sseReasonMessages.js.map +1 -0
- package/lib/module/data/iso3166Alpha2Codes.json +1 -0
- package/lib/module/data/iso3166CountryNames.json +251 -0
- package/lib/module/i18n/index.js +25 -0
- package/lib/module/i18n/index.js.map +1 -0
- package/lib/module/i18n/strings/en.js +257 -0
- package/lib/module/i18n/strings/en.js.map +1 -0
- package/lib/module/i18n/strings/es.js +262 -0
- package/lib/module/i18n/strings/es.js.map +1 -0
- package/lib/module/index.js +36 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/steps/AddressInfoStep.js +646 -0
- package/lib/module/steps/AddressInfoStep.js.map +1 -0
- package/lib/module/steps/DocumentsOcrStep.js +391 -0
- package/lib/module/steps/DocumentsOcrStep.js.map +1 -0
- package/lib/module/steps/EmailContactStep.js +140 -0
- package/lib/module/steps/EmailContactStep.js.map +1 -0
- package/lib/module/steps/EmailOtpStep.js +215 -0
- package/lib/module/steps/EmailOtpStep.js.map +1 -0
- package/lib/module/steps/FaceMatchStep.js +161 -0
- package/lib/module/steps/FaceMatchStep.js.map +1 -0
- package/lib/module/steps/FingerprintStep.js +87 -0
- package/lib/module/steps/FingerprintStep.js.map +1 -0
- package/lib/module/steps/HumanBasicInfoStep.js +238 -0
- package/lib/module/steps/HumanBasicInfoStep.js.map +1 -0
- package/lib/module/steps/HumanExtendedInfoStep.js +263 -0
- package/lib/module/steps/HumanExtendedInfoStep.js.map +1 -0
- package/lib/module/steps/LegalBasicInfoStep.js +183 -0
- package/lib/module/steps/LegalBasicInfoStep.js.map +1 -0
- package/lib/module/steps/LegalExtendedInfoStep.js +161 -0
- package/lib/module/steps/LegalExtendedInfoStep.js.map +1 -0
- package/lib/module/steps/LivenessMatchStep.js +701 -0
- package/lib/module/steps/LivenessMatchStep.js.map +1 -0
- package/lib/module/steps/PhoneContactStep.js +141 -0
- package/lib/module/steps/PhoneContactStep.js.map +1 -0
- package/lib/module/steps/PhoneOtpStep.js +214 -0
- package/lib/module/steps/PhoneOtpStep.js.map +1 -0
- package/lib/module/steps/SwornDeclarationStep.js +191 -0
- package/lib/module/steps/SwornDeclarationStep.js.map +1 -0
- package/lib/module/steps/TaxInfoStep.js +239 -0
- package/lib/module/steps/TaxInfoStep.js.map +1 -0
- package/lib/module/steps/TermsAndConditionsStep.js +233 -0
- package/lib/module/steps/TermsAndConditionsStep.js.map +1 -0
- package/lib/module/steps/_shared.js +33 -0
- package/lib/module/steps/_shared.js.map +1 -0
- package/lib/module/steps/types.js +4 -0
- package/lib/module/steps/types.js.map +1 -0
- package/lib/module/transport/api.js +173 -0
- package/lib/module/transport/api.js.map +1 -0
- package/lib/module/transport/irisWebSocket.js +115 -0
- package/lib/module/transport/irisWebSocket.js.map +1 -0
- package/lib/module/transport/secureUrl.js +45 -0
- package/lib/module/transport/secureUrl.js.map +1 -0
- package/lib/module/transport/sse.js +242 -0
- package/lib/module/transport/sse.js.map +1 -0
- package/lib/module/types/index.js +457 -0
- package/lib/module/types/index.js.map +1 -0
- package/lib/module/ui/MapFallbackBoundary.js +37 -0
- package/lib/module/ui/MapFallbackBoundary.js.map +1 -0
- package/lib/module/ui/StepShell.js +114 -0
- package/lib/module/ui/StepShell.js.map +1 -0
- package/lib/module/ui/VelionOnboardingScreen.js +212 -0
- package/lib/module/ui/VelionOnboardingScreen.js.map +1 -0
- package/lib/module/ui/forms/index.js +5 -0
- package/lib/module/ui/forms/index.js.map +1 -0
- package/lib/module/ui/forms/useInlineValidation.js +84 -0
- package/lib/module/ui/forms/useInlineValidation.js.map +1 -0
- package/lib/module/ui/forms/validators.js +27 -0
- package/lib/module/ui/forms/validators.js.map +1 -0
- package/lib/module/ui/icons/HomeHeartIcon.js +33 -0
- package/lib/module/ui/icons/HomeHeartIcon.js.map +1 -0
- package/lib/module/ui/icons/StepIcon.js +55 -0
- package/lib/module/ui/icons/StepIcon.js.map +1 -0
- package/lib/module/ui/overlays/AnalyzingOverlay.js +279 -0
- package/lib/module/ui/overlays/AnalyzingOverlay.js.map +1 -0
- package/lib/module/ui/overlays/LoadingOverlay.js +104 -0
- package/lib/module/ui/overlays/LoadingOverlay.js.map +1 -0
- package/lib/module/ui/overlays/ProgressBar.js +90 -0
- package/lib/module/ui/overlays/ProgressBar.js.map +1 -0
- package/lib/module/ui/overlays/RetryDialog.js +121 -0
- package/lib/module/ui/overlays/RetryDialog.js.map +1 -0
- package/lib/module/ui/overlays/index.js +6 -0
- package/lib/module/ui/overlays/index.js.map +1 -0
- package/lib/module/ui/primitives/Banner.js +77 -0
- package/lib/module/ui/primitives/Banner.js.map +1 -0
- package/lib/module/ui/primitives/Button.js +138 -0
- package/lib/module/ui/primitives/Button.js.map +1 -0
- package/lib/module/ui/primitives/Card.js +46 -0
- package/lib/module/ui/primitives/Card.js.map +1 -0
- package/lib/module/ui/primitives/Checkbox.js +136 -0
- package/lib/module/ui/primitives/Checkbox.js.map +1 -0
- package/lib/module/ui/primitives/CountrySelect.js +284 -0
- package/lib/module/ui/primitives/CountrySelect.js.map +1 -0
- package/lib/module/ui/primitives/DatePicker.js +241 -0
- package/lib/module/ui/primitives/DatePicker.js.map +1 -0
- package/lib/module/ui/primitives/Input.js +97 -0
- package/lib/module/ui/primitives/Input.js.map +1 -0
- package/lib/module/ui/primitives/Select.js +205 -0
- package/lib/module/ui/primitives/Select.js.map +1 -0
- package/lib/module/ui/primitives/Spinner.js +21 -0
- package/lib/module/ui/primitives/Spinner.js.map +1 -0
- package/lib/module/ui/primitives/index.js +12 -0
- package/lib/module/ui/primitives/index.js.map +1 -0
- package/lib/module/ui/theme/ThemeProvider.js +67 -0
- package/lib/module/ui/theme/ThemeProvider.js.map +1 -0
- package/lib/module/ui/theme/index.js +5 -0
- package/lib/module/ui/theme/index.js.map +1 -0
- package/lib/module/ui/theme/tokens.js +145 -0
- package/lib/module/ui/theme/tokens.js.map +1 -0
- package/lib/module/utils/EventEmitter.js +139 -0
- package/lib/module/utils/EventEmitter.js.map +1 -0
- package/lib/module/utils/base64.js +47 -0
- package/lib/module/utils/base64.js.map +1 -0
- package/lib/module/utils/deviceFingerprint.js +129 -0
- package/lib/module/utils/deviceFingerprint.js.map +1 -0
- package/lib/module/utils/documentTypeOptions.js +31 -0
- package/lib/module/utils/documentTypeOptions.js.map +1 -0
- package/lib/module/utils/googleMapsPreflight.js +73 -0
- package/lib/module/utils/googleMapsPreflight.js.map +1 -0
- package/lib/module/utils/hmac.js +53 -0
- package/lib/module/utils/hmac.js.map +1 -0
- package/lib/module/utils/iso3166Countries.js +92 -0
- package/lib/module/utils/iso3166Countries.js.map +1 -0
- package/lib/module/utils/jpegFromUri.js +40 -0
- package/lib/module/utils/jpegFromUri.js.map +1 -0
- package/lib/module/utils/keepAwake.js +53 -0
- package/lib/module/utils/keepAwake.js.map +1 -0
- package/lib/module/utils/log.js +37 -0
- package/lib/module/utils/log.js.map +1 -0
- package/lib/module/utils/osGeocoder.js +65 -0
- package/lib/module/utils/osGeocoder.js.map +1 -0
- package/lib/module/utils/parseGoogleAddressComponents.js +69 -0
- package/lib/module/utils/parseGoogleAddressComponents.js.map +1 -0
- package/lib/module/utils/personNameNormalize.js +20 -0
- package/lib/module/utils/personNameNormalize.js.map +1 -0
- package/lib/module/utils/sdkError.js +29 -0
- package/lib/module/utils/sdkError.js.map +1 -0
- package/lib/module/utils/sdkVersion.js +9 -0
- package/lib/module/utils/sdkVersion.js.map +1 -0
- package/lib/module/utils/stepConfig.js +59 -0
- package/lib/module/utils/stepConfig.js.map +1 -0
- package/lib/module/utils/taxInfoConfig.js +15 -0
- package/lib/module/utils/taxInfoConfig.js.map +1 -0
- package/lib/typescript/camera/AddressSearchBar.d.ts +37 -0
- package/lib/typescript/camera/AddressSearchBar.d.ts.map +1 -0
- package/lib/typescript/camera/DocumentCapture.d.ts +34 -0
- package/lib/typescript/camera/DocumentCapture.d.ts.map +1 -0
- package/lib/typescript/camera/LivenessCamera.d.ts +50 -0
- package/lib/typescript/camera/LivenessCamera.d.ts.map +1 -0
- package/lib/typescript/camera/MapAddressPicker.d.ts +57 -0
- package/lib/typescript/camera/MapAddressPicker.d.ts.map +1 -0
- package/lib/typescript/core/VelionOnboarding.d.ts +115 -0
- package/lib/typescript/core/VelionOnboarding.d.ts.map +1 -0
- package/lib/typescript/core/sessionDeclinedCopy.d.ts +16 -0
- package/lib/typescript/core/sessionDeclinedCopy.d.ts.map +1 -0
- package/lib/typescript/core/sessionStateMapper.d.ts +33 -0
- package/lib/typescript/core/sessionStateMapper.d.ts.map +1 -0
- package/lib/typescript/core/sseReasonMessages.d.ts +20 -0
- package/lib/typescript/core/sseReasonMessages.d.ts.map +1 -0
- package/lib/typescript/i18n/index.d.ts +13 -0
- package/lib/typescript/i18n/index.d.ts.map +1 -0
- package/lib/typescript/i18n/strings/en.d.ts +3 -0
- package/lib/typescript/i18n/strings/en.d.ts.map +1 -0
- package/lib/typescript/i18n/strings/es.d.ts +260 -0
- package/lib/typescript/i18n/strings/es.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +26 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/steps/AddressInfoStep.d.ts +26 -0
- package/lib/typescript/steps/AddressInfoStep.d.ts.map +1 -0
- package/lib/typescript/steps/DocumentsOcrStep.d.ts +26 -0
- package/lib/typescript/steps/DocumentsOcrStep.d.ts.map +1 -0
- package/lib/typescript/steps/EmailContactStep.d.ts +15 -0
- package/lib/typescript/steps/EmailContactStep.d.ts.map +1 -0
- package/lib/typescript/steps/EmailOtpStep.d.ts +21 -0
- package/lib/typescript/steps/EmailOtpStep.d.ts.map +1 -0
- package/lib/typescript/steps/FaceMatchStep.d.ts +27 -0
- package/lib/typescript/steps/FaceMatchStep.d.ts.map +1 -0
- package/lib/typescript/steps/FingerprintStep.d.ts +25 -0
- package/lib/typescript/steps/FingerprintStep.d.ts.map +1 -0
- package/lib/typescript/steps/HumanBasicInfoStep.d.ts +25 -0
- package/lib/typescript/steps/HumanBasicInfoStep.d.ts.map +1 -0
- package/lib/typescript/steps/HumanExtendedInfoStep.d.ts +23 -0
- package/lib/typescript/steps/HumanExtendedInfoStep.d.ts.map +1 -0
- package/lib/typescript/steps/LegalBasicInfoStep.d.ts +17 -0
- package/lib/typescript/steps/LegalBasicInfoStep.d.ts.map +1 -0
- package/lib/typescript/steps/LegalExtendedInfoStep.d.ts +17 -0
- package/lib/typescript/steps/LegalExtendedInfoStep.d.ts.map +1 -0
- package/lib/typescript/steps/LivenessMatchStep.d.ts +26 -0
- package/lib/typescript/steps/LivenessMatchStep.d.ts.map +1 -0
- package/lib/typescript/steps/PhoneContactStep.d.ts +15 -0
- package/lib/typescript/steps/PhoneContactStep.d.ts.map +1 -0
- package/lib/typescript/steps/PhoneOtpStep.d.ts +19 -0
- package/lib/typescript/steps/PhoneOtpStep.d.ts.map +1 -0
- package/lib/typescript/steps/SwornDeclarationStep.d.ts +20 -0
- package/lib/typescript/steps/SwornDeclarationStep.d.ts.map +1 -0
- package/lib/typescript/steps/TaxInfoStep.d.ts +19 -0
- package/lib/typescript/steps/TaxInfoStep.d.ts.map +1 -0
- package/lib/typescript/steps/TermsAndConditionsStep.d.ts +21 -0
- package/lib/typescript/steps/TermsAndConditionsStep.d.ts.map +1 -0
- package/lib/typescript/steps/_shared.d.ts +11 -0
- package/lib/typescript/steps/_shared.d.ts.map +1 -0
- package/lib/typescript/steps/types.d.ts +68 -0
- package/lib/typescript/steps/types.d.ts.map +1 -0
- package/lib/typescript/transport/api.d.ts +35 -0
- package/lib/typescript/transport/api.d.ts.map +1 -0
- package/lib/typescript/transport/irisWebSocket.d.ts +72 -0
- package/lib/typescript/transport/irisWebSocket.d.ts.map +1 -0
- package/lib/typescript/transport/secureUrl.d.ts +14 -0
- package/lib/typescript/transport/secureUrl.d.ts.map +1 -0
- package/lib/typescript/transport/sse.d.ts +54 -0
- package/lib/typescript/transport/sse.d.ts.map +1 -0
- package/lib/typescript/types/index.d.ts +1010 -0
- package/lib/typescript/types/index.d.ts.map +1 -0
- package/lib/typescript/ui/MapFallbackBoundary.d.ts +28 -0
- package/lib/typescript/ui/MapFallbackBoundary.d.ts.map +1 -0
- package/lib/typescript/ui/StepShell.d.ts +19 -0
- package/lib/typescript/ui/StepShell.d.ts.map +1 -0
- package/lib/typescript/ui/VelionOnboardingScreen.d.ts +19 -0
- package/lib/typescript/ui/VelionOnboardingScreen.d.ts.map +1 -0
- package/lib/typescript/ui/forms/index.d.ts +3 -0
- package/lib/typescript/ui/forms/index.d.ts.map +1 -0
- package/lib/typescript/ui/forms/useInlineValidation.d.ts +30 -0
- package/lib/typescript/ui/forms/useInlineValidation.d.ts.map +1 -0
- package/lib/typescript/ui/forms/validators.d.ts +11 -0
- package/lib/typescript/ui/forms/validators.d.ts.map +1 -0
- package/lib/typescript/ui/icons/HomeHeartIcon.d.ts +14 -0
- package/lib/typescript/ui/icons/HomeHeartIcon.d.ts.map +1 -0
- package/lib/typescript/ui/icons/StepIcon.d.ts +26 -0
- package/lib/typescript/ui/icons/StepIcon.d.ts.map +1 -0
- package/lib/typescript/ui/overlays/AnalyzingOverlay.d.ts +24 -0
- package/lib/typescript/ui/overlays/AnalyzingOverlay.d.ts.map +1 -0
- package/lib/typescript/ui/overlays/LoadingOverlay.d.ts +19 -0
- package/lib/typescript/ui/overlays/LoadingOverlay.d.ts.map +1 -0
- package/lib/typescript/ui/overlays/ProgressBar.d.ts +26 -0
- package/lib/typescript/ui/overlays/ProgressBar.d.ts.map +1 -0
- package/lib/typescript/ui/overlays/RetryDialog.d.ts +17 -0
- package/lib/typescript/ui/overlays/RetryDialog.d.ts.map +1 -0
- package/lib/typescript/ui/overlays/index.d.ts +4 -0
- package/lib/typescript/ui/overlays/index.d.ts.map +1 -0
- package/lib/typescript/ui/primitives/Banner.d.ts +11 -0
- package/lib/typescript/ui/primitives/Banner.d.ts.map +1 -0
- package/lib/typescript/ui/primitives/Button.d.ts +27 -0
- package/lib/typescript/ui/primitives/Button.d.ts.map +1 -0
- package/lib/typescript/ui/primitives/Card.d.ts +10 -0
- package/lib/typescript/ui/primitives/Card.d.ts.map +1 -0
- package/lib/typescript/ui/primitives/Checkbox.d.ts +25 -0
- package/lib/typescript/ui/primitives/Checkbox.d.ts.map +1 -0
- package/lib/typescript/ui/primitives/CountrySelect.d.ts +31 -0
- package/lib/typescript/ui/primitives/CountrySelect.d.ts.map +1 -0
- package/lib/typescript/ui/primitives/DatePicker.d.ts +42 -0
- package/lib/typescript/ui/primitives/DatePicker.d.ts.map +1 -0
- package/lib/typescript/ui/primitives/Input.d.ts +17 -0
- package/lib/typescript/ui/primitives/Input.d.ts.map +1 -0
- package/lib/typescript/ui/primitives/Select.d.ts +26 -0
- package/lib/typescript/ui/primitives/Select.d.ts.map +1 -0
- package/lib/typescript/ui/primitives/Spinner.d.ts +10 -0
- package/lib/typescript/ui/primitives/Spinner.d.ts.map +1 -0
- package/lib/typescript/ui/primitives/index.d.ts +10 -0
- package/lib/typescript/ui/primitives/index.d.ts.map +1 -0
- package/lib/typescript/ui/theme/ThemeProvider.d.ts +23 -0
- package/lib/typescript/ui/theme/ThemeProvider.d.ts.map +1 -0
- package/lib/typescript/ui/theme/index.d.ts +3 -0
- package/lib/typescript/ui/theme/index.d.ts.map +1 -0
- package/lib/typescript/ui/theme/tokens.d.ts +42 -0
- package/lib/typescript/ui/theme/tokens.d.ts.map +1 -0
- package/lib/typescript/utils/EventEmitter.d.ts +98 -0
- package/lib/typescript/utils/EventEmitter.d.ts.map +1 -0
- package/lib/typescript/utils/base64.d.ts +19 -0
- package/lib/typescript/utils/base64.d.ts.map +1 -0
- package/lib/typescript/utils/deviceFingerprint.d.ts +42 -0
- package/lib/typescript/utils/deviceFingerprint.d.ts.map +1 -0
- package/lib/typescript/utils/documentTypeOptions.d.ts +13 -0
- package/lib/typescript/utils/documentTypeOptions.d.ts.map +1 -0
- package/lib/typescript/utils/googleMapsPreflight.d.ts +44 -0
- package/lib/typescript/utils/googleMapsPreflight.d.ts.map +1 -0
- package/lib/typescript/utils/hmac.d.ts +39 -0
- package/lib/typescript/utils/hmac.d.ts.map +1 -0
- package/lib/typescript/utils/iso3166Countries.d.ts +27 -0
- package/lib/typescript/utils/iso3166Countries.d.ts.map +1 -0
- package/lib/typescript/utils/jpegFromUri.d.ts +29 -0
- package/lib/typescript/utils/jpegFromUri.d.ts.map +1 -0
- package/lib/typescript/utils/keepAwake.d.ts +16 -0
- package/lib/typescript/utils/keepAwake.d.ts.map +1 -0
- package/lib/typescript/utils/log.d.ts +18 -0
- package/lib/typescript/utils/log.d.ts.map +1 -0
- package/lib/typescript/utils/osGeocoder.d.ts +38 -0
- package/lib/typescript/utils/osGeocoder.d.ts.map +1 -0
- package/lib/typescript/utils/parseGoogleAddressComponents.d.ts +43 -0
- package/lib/typescript/utils/parseGoogleAddressComponents.d.ts.map +1 -0
- package/lib/typescript/utils/personNameNormalize.d.ts +10 -0
- package/lib/typescript/utils/personNameNormalize.d.ts.map +1 -0
- package/lib/typescript/utils/sdkError.d.ts +14 -0
- package/lib/typescript/utils/sdkError.d.ts.map +1 -0
- package/lib/typescript/utils/sdkVersion.d.ts +7 -0
- package/lib/typescript/utils/sdkVersion.d.ts.map +1 -0
- package/lib/typescript/utils/stepConfig.d.ts +8 -0
- package/lib/typescript/utils/stepConfig.d.ts.map +1 -0
- package/lib/typescript/utils/taxInfoConfig.d.ts +7 -0
- package/lib/typescript/utils/taxInfoConfig.d.ts.map +1 -0
- package/package.json +99 -0
- package/src/camera/AddressSearchBar.tsx +363 -0
- package/src/camera/DocumentCapture.tsx +505 -0
- package/src/camera/LivenessCamera.tsx +602 -0
- package/src/camera/MapAddressPicker.tsx +397 -0
- package/src/core/VelionOnboarding.ts +974 -0
- package/src/core/sessionDeclinedCopy.ts +76 -0
- package/src/core/sessionStateMapper.ts +167 -0
- package/src/core/sseReasonMessages.ts +531 -0
- package/src/data/iso3166Alpha2Codes.json +1 -0
- package/src/data/iso3166CountryNames.json +251 -0
- package/src/i18n/index.ts +26 -0
- package/src/i18n/strings/en.ts +289 -0
- package/src/i18n/strings/es.ts +291 -0
- package/src/index.ts +137 -0
- package/src/steps/AddressInfoStep.tsx +726 -0
- package/src/steps/DocumentsOcrStep.tsx +472 -0
- package/src/steps/EmailContactStep.tsx +159 -0
- package/src/steps/EmailOtpStep.tsx +250 -0
- package/src/steps/FaceMatchStep.tsx +177 -0
- package/src/steps/FingerprintStep.tsx +99 -0
- package/src/steps/HumanBasicInfoStep.tsx +274 -0
- package/src/steps/HumanExtendedInfoStep.tsx +353 -0
- package/src/steps/LegalBasicInfoStep.tsx +205 -0
- package/src/steps/LegalExtendedInfoStep.tsx +171 -0
- package/src/steps/LivenessMatchStep.tsx +846 -0
- package/src/steps/PhoneContactStep.tsx +160 -0
- package/src/steps/PhoneOtpStep.tsx +249 -0
- package/src/steps/SwornDeclarationStep.tsx +220 -0
- package/src/steps/TaxInfoStep.tsx +277 -0
- package/src/steps/TermsAndConditionsStep.tsx +261 -0
- package/src/steps/_shared.ts +44 -0
- package/src/steps/types.ts +72 -0
- package/src/transport/api.ts +257 -0
- package/src/transport/irisWebSocket.ts +186 -0
- package/src/transport/secureUrl.ts +47 -0
- package/src/transport/sse.ts +310 -0
- package/src/types/index.ts +1198 -0
- package/src/ui/MapFallbackBoundary.tsx +46 -0
- package/src/ui/StepShell.tsx +137 -0
- package/src/ui/VelionOnboardingScreen.tsx +223 -0
- package/src/ui/forms/index.ts +12 -0
- package/src/ui/forms/useInlineValidation.ts +115 -0
- package/src/ui/forms/validators.ts +29 -0
- package/src/ui/icons/HomeHeartIcon.tsx +34 -0
- package/src/ui/icons/StepIcon.tsx +77 -0
- package/src/ui/overlays/AnalyzingOverlay.tsx +323 -0
- package/src/ui/overlays/LoadingOverlay.tsx +115 -0
- package/src/ui/overlays/ProgressBar.tsx +99 -0
- package/src/ui/overlays/RetryDialog.tsx +128 -0
- package/src/ui/overlays/index.ts +3 -0
- package/src/ui/primitives/Banner.tsx +81 -0
- package/src/ui/primitives/Button.tsx +164 -0
- package/src/ui/primitives/Card.tsx +55 -0
- package/src/ui/primitives/Checkbox.tsx +153 -0
- package/src/ui/primitives/CountrySelect.tsx +356 -0
- package/src/ui/primitives/DatePicker.tsx +266 -0
- package/src/ui/primitives/Input.tsx +110 -0
- package/src/ui/primitives/Select.tsx +259 -0
- package/src/ui/primitives/Spinner.tsx +17 -0
- package/src/ui/primitives/index.ts +9 -0
- package/src/ui/theme/ThemeProvider.tsx +102 -0
- package/src/ui/theme/index.ts +17 -0
- package/src/ui/theme/tokens.ts +159 -0
- package/src/utils/EventEmitter.ts +155 -0
- package/src/utils/base64.ts +44 -0
- package/src/utils/deviceFingerprint.ts +184 -0
- package/src/utils/documentTypeOptions.ts +31 -0
- package/src/utils/googleMapsPreflight.ts +72 -0
- package/src/utils/hmac.ts +61 -0
- package/src/utils/iso3166Countries.ts +111 -0
- package/src/utils/jpegFromUri.ts +42 -0
- package/src/utils/keepAwake.ts +62 -0
- package/src/utils/log.ts +37 -0
- package/src/utils/osGeocoder.ts +75 -0
- package/src/utils/parseGoogleAddressComponents.ts +123 -0
- package/src/utils/personNameNormalize.ts +17 -0
- package/src/utils/sdkError.ts +40 -0
- package/src/utils/sdkVersion.ts +6 -0
- package/src/utils/stepConfig.ts +75 -0
- package/src/utils/taxInfoConfig.ts +14 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Default and merged copy for the SESSION_DECLINED SSE error screen.
|
|
3
|
+
*/
|
|
4
|
+
import type { VelionSessionDeclinedReasonTexts } from '../types';
|
|
5
|
+
export interface ResolvedSessionDeclinedCopy {
|
|
6
|
+
title: string;
|
|
7
|
+
message: string;
|
|
8
|
+
dismissLabel: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Resolves title, body, and dismiss label for a SESSION_DECLINED screen.
|
|
12
|
+
*/
|
|
13
|
+
export declare function resolveSessionDeclinedCopy(locale: string | undefined, texts: VelionSessionDeclinedReasonTexts | undefined, reason: string | undefined,
|
|
14
|
+
/** Same dismiss as `VelionFinalResultScreenTexts.dismissLabel` when set. */
|
|
15
|
+
finalResultDismissLabel?: string): ResolvedSessionDeclinedCopy;
|
|
16
|
+
//# sourceMappingURL=sessionDeclinedCopy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sessionDeclinedCopy.d.ts","sourceRoot":"","sources":["../../../src/core/sessionDeclinedCopy.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,UAAU,CAAC;AAGjE,MAAM,WAAW,2BAA2B;IAC1C,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;CACtB;AAoCD;;GAEG;AACH,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,KAAK,EAAE,gCAAgC,GAAG,SAAS,EACnD,MAAM,EAAE,MAAM,GAAG,SAAS;AAC1B,4EAA4E;AAC5E,uBAAuB,CAAC,EAAE,MAAM,GAC/B,2BAA2B,CAmB7B"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Maps backend OnboardingDto (GET /sessions/:id) to SDK SessionState.
|
|
3
|
+
*/
|
|
4
|
+
import type { OnboardingDtoResponse, OnboardingResult, SessionState } from '../types';
|
|
5
|
+
/**
|
|
6
|
+
* Maps the onboarding DTO returned by GET /sessions/:sessionId to the
|
|
7
|
+
* SessionState shape used by the step machine.
|
|
8
|
+
*/
|
|
9
|
+
export declare function mapOnboardingDtoToSessionState(dto: OnboardingDtoResponse): SessionState;
|
|
10
|
+
/**
|
|
11
|
+
* Maps GET /sessions `status` to {@link OnboardingResult.status}.
|
|
12
|
+
* Unknown values fall back to `MANUAL_REVIEW`.
|
|
13
|
+
*/
|
|
14
|
+
export declare function mapSessionDtoStatusToResultStatus(raw: string | undefined): OnboardingResult['status'];
|
|
15
|
+
/**
|
|
16
|
+
* True when GET session has no runnable step but onboarding is already finished
|
|
17
|
+
* (no `current_step` expected).
|
|
18
|
+
*/
|
|
19
|
+
export declare function isTerminalSessionStatusFromDto(raw: string | undefined): boolean;
|
|
20
|
+
/**
|
|
21
|
+
* True when the SDK must run workflow steps; backend should send `current_step`.
|
|
22
|
+
*/
|
|
23
|
+
export declare function requiresCurrentStepForSessionStatus(raw: string | undefined): boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Builds OnboardingResult from the same onboarding DTO when status is terminal.
|
|
26
|
+
*/
|
|
27
|
+
export declare function mapOnboardingDtoToResult(dto: OnboardingDtoResponse, sessionId: string): OnboardingResult;
|
|
28
|
+
/**
|
|
29
|
+
* Builds OnboardingResult using completed_at and referenceId from the DTO
|
|
30
|
+
* but with an explicit terminal status (e.g. from a terminal SSE event).
|
|
31
|
+
*/
|
|
32
|
+
export declare function mapOnboardingDtoToResultWithStatus(dto: OnboardingDtoResponse, sessionId: string, terminalStatus: OnboardingResult['status'], terminalReason?: string): OnboardingResult;
|
|
33
|
+
//# sourceMappingURL=sessionStateMapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sessionStateMapper.d.ts","sourceRoot":"","sources":["../../../src/core/sessionStateMapper.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EACV,qBAAqB,EACrB,gBAAgB,EAEhB,YAAY,EAGb,MAAM,UAAU,CAAC;AAIlB;;;GAGG;AACH,wBAAgB,8BAA8B,CAC5C,GAAG,EAAE,qBAAqB,GACzB,YAAY,CAsDd;AAeD;;;GAGG;AACH,wBAAgB,iCAAiC,CAC/C,GAAG,EAAE,MAAM,GAAG,SAAS,GACtB,gBAAgB,CAAC,QAAQ,CAAC,CAO5B;AAED;;;GAGG;AACH,wBAAgB,8BAA8B,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAS/E;AAED;;GAEG;AACH,wBAAgB,mCAAmC,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAGpF;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CACtC,GAAG,EAAE,qBAAqB,EAC1B,SAAS,EAAE,MAAM,GAChB,gBAAgB,CAGlB;AAED;;;GAGG;AACH,wBAAgB,kCAAkC,CAChD,GAAG,EAAE,qBAAqB,EAC1B,SAAS,EAAE,MAAM,EACjB,cAAc,EAAE,gBAAgB,CAAC,QAAQ,CAAC,EAC1C,cAAc,CAAC,EAAE,MAAM,GACtB,gBAAgB,CAElB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Default user-facing copy for terminal SSE `reason` codes from the
|
|
3
|
+
* onboarding orchestrator (SESSION_DECLINED and SESSION_MANUAL_REVIEW).
|
|
4
|
+
* Keys match backend reason strings exactly (UPPER_SNAKE_CASE).
|
|
5
|
+
*/
|
|
6
|
+
export type LocalizedPair = {
|
|
7
|
+
en: {
|
|
8
|
+
title: string;
|
|
9
|
+
message: string;
|
|
10
|
+
};
|
|
11
|
+
es: {
|
|
12
|
+
title: string;
|
|
13
|
+
message: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
/** SESSION_DECLINED and related terminal decline / retry-decline reasons. */
|
|
17
|
+
export declare const SESSION_DECLINED_REASON_MESSAGES: Record<string, LocalizedPair>;
|
|
18
|
+
/** Reasons on SESSION_MANUAL_REVIEW (shown on final MANUAL_REVIEW screen). */
|
|
19
|
+
export declare const SESSION_MANUAL_REVIEW_REASON_MESSAGES: Record<string, LocalizedPair>;
|
|
20
|
+
//# sourceMappingURL=sseReasonMessages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sseReasonMessages.d.ts","sourceRoot":"","sources":["../../../src/core/sseReasonMessages.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IACvC,EAAE,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;CACxC,CAAC;AAEF,6EAA6E;AAC7E,eAAO,MAAM,gCAAgC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CA8X1E,CAAC;AAEF,8EAA8E;AAC9E,eAAO,MAAM,qCAAqC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAqI/E,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Locale resolution + `useStrings` hook.
|
|
3
|
+
*
|
|
4
|
+
* Currently supports `'es'` (default) and `'en'`. Anything else falls back to
|
|
5
|
+
* `'es'`. Step modules read copy via `useStrings(locale)` so adding a new
|
|
6
|
+
* locale only touches `strings/`.
|
|
7
|
+
*/
|
|
8
|
+
import { type StringsTable } from './strings/es';
|
|
9
|
+
export type SupportedLocale = 'es' | 'en';
|
|
10
|
+
export declare function resolveLocale(raw: string | undefined): SupportedLocale;
|
|
11
|
+
export declare function getStrings(locale: string | undefined): StringsTable;
|
|
12
|
+
export type { StringsTable };
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/i18n/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,cAAc,CAAC;AAGrD,MAAM,MAAM,eAAe,GAAG,IAAI,GAAG,IAAI,CAAC;AAI1C,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,eAAe,CAItE;AAED,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,YAAY,CAEnE;AAED,YAAY,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../../src/i18n/strings/en.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAEzC,eAAO,MAAM,EAAE,EAAE,YA8RhB,CAAC"}
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Spanish copy. Default locale. Centralized translation table consumed by
|
|
3
|
+
* every step module via `getStrings('es')`.
|
|
4
|
+
*/
|
|
5
|
+
export declare const ES: {
|
|
6
|
+
common: {
|
|
7
|
+
loading: string;
|
|
8
|
+
submitting: string;
|
|
9
|
+
processingVerification: string;
|
|
10
|
+
finalizing: string;
|
|
11
|
+
continue: string;
|
|
12
|
+
cancel: string;
|
|
13
|
+
retry: string;
|
|
14
|
+
confirm: string;
|
|
15
|
+
required: string;
|
|
16
|
+
submissionTitle: string;
|
|
17
|
+
submissionFallback: string;
|
|
18
|
+
};
|
|
19
|
+
fingerprint: {
|
|
20
|
+
evaluating: string;
|
|
21
|
+
};
|
|
22
|
+
human_basic_info: {
|
|
23
|
+
title: string;
|
|
24
|
+
subtitle: string;
|
|
25
|
+
givenNames: string;
|
|
26
|
+
familyNames: string;
|
|
27
|
+
idType: string;
|
|
28
|
+
idNumber: string;
|
|
29
|
+
nameRequired: string;
|
|
30
|
+
idTypeRequired: string;
|
|
31
|
+
idNumberRequired: string;
|
|
32
|
+
};
|
|
33
|
+
email_contact: {
|
|
34
|
+
title: string;
|
|
35
|
+
label: string;
|
|
36
|
+
hint: string;
|
|
37
|
+
invalid: string;
|
|
38
|
+
required: string;
|
|
39
|
+
};
|
|
40
|
+
phone_contact: {
|
|
41
|
+
title: string;
|
|
42
|
+
label: string;
|
|
43
|
+
hint: string;
|
|
44
|
+
invalid: string;
|
|
45
|
+
required: string;
|
|
46
|
+
};
|
|
47
|
+
email_otp: {
|
|
48
|
+
title: string;
|
|
49
|
+
emailLabel: string;
|
|
50
|
+
emailHint: string;
|
|
51
|
+
sendCode: string;
|
|
52
|
+
sendingCode: string;
|
|
53
|
+
otpLabel: string;
|
|
54
|
+
otpHint: string;
|
|
55
|
+
verify: string;
|
|
56
|
+
verifying: string;
|
|
57
|
+
resend: string;
|
|
58
|
+
emailRequired: string;
|
|
59
|
+
otpRequired: string;
|
|
60
|
+
otpFormat: string;
|
|
61
|
+
};
|
|
62
|
+
phone_otp: {
|
|
63
|
+
title: string;
|
|
64
|
+
phoneLabel: string;
|
|
65
|
+
phoneHint: string;
|
|
66
|
+
sendCode: string;
|
|
67
|
+
sendingCode: string;
|
|
68
|
+
otpLabel: string;
|
|
69
|
+
otpHint: string;
|
|
70
|
+
verify: string;
|
|
71
|
+
verifying: string;
|
|
72
|
+
resend: string;
|
|
73
|
+
phoneRequired: string;
|
|
74
|
+
otpRequired: string;
|
|
75
|
+
otpFormat: string;
|
|
76
|
+
};
|
|
77
|
+
tax_info: {
|
|
78
|
+
title: string;
|
|
79
|
+
subtitle: string;
|
|
80
|
+
taxpayerType: string;
|
|
81
|
+
taxpayerIdType: string;
|
|
82
|
+
taxpayerId: string;
|
|
83
|
+
requiredCategory: string;
|
|
84
|
+
requiredIdType: string;
|
|
85
|
+
requiredId: string;
|
|
86
|
+
};
|
|
87
|
+
sworn_declaration: {
|
|
88
|
+
title: string;
|
|
89
|
+
subtitle: string;
|
|
90
|
+
pep: string;
|
|
91
|
+
pepDescription: string;
|
|
92
|
+
ssoo: string;
|
|
93
|
+
ssooDescription: string;
|
|
94
|
+
fatca: string;
|
|
95
|
+
fatcaDescription: string;
|
|
96
|
+
ocde: string;
|
|
97
|
+
ocdeDescription: string;
|
|
98
|
+
none: string;
|
|
99
|
+
noneDescription: string;
|
|
100
|
+
};
|
|
101
|
+
terms_and_conditions: {
|
|
102
|
+
title: string;
|
|
103
|
+
subtitle: string;
|
|
104
|
+
accept: string;
|
|
105
|
+
openLink: string;
|
|
106
|
+
needAll: string;
|
|
107
|
+
noItems: string;
|
|
108
|
+
};
|
|
109
|
+
legal_basic_info: {
|
|
110
|
+
title: string;
|
|
111
|
+
subtitle: string;
|
|
112
|
+
legalName: string;
|
|
113
|
+
legalForm: string;
|
|
114
|
+
idType: string;
|
|
115
|
+
idTypePlaceholder: string;
|
|
116
|
+
idNumber: string;
|
|
117
|
+
requiredLegalName: string;
|
|
118
|
+
requiredLegalForm: string;
|
|
119
|
+
requiredIdType: string;
|
|
120
|
+
requiredIdNumber: string;
|
|
121
|
+
};
|
|
122
|
+
human_extended_info: {
|
|
123
|
+
title: string;
|
|
124
|
+
subtitle: string;
|
|
125
|
+
gender: string;
|
|
126
|
+
civilStatus: string;
|
|
127
|
+
birthDate: string;
|
|
128
|
+
birthCountry: string;
|
|
129
|
+
citizenship: string;
|
|
130
|
+
residenceCountry: string;
|
|
131
|
+
countrySearch: string;
|
|
132
|
+
requiredGender: string;
|
|
133
|
+
requiredCivil: string;
|
|
134
|
+
requiredBirthDate: string;
|
|
135
|
+
requiredCountry: string;
|
|
136
|
+
};
|
|
137
|
+
legal_extended_info: {
|
|
138
|
+
title: string;
|
|
139
|
+
subtitle: string;
|
|
140
|
+
incorporationDate: string;
|
|
141
|
+
incorporationCountry: string;
|
|
142
|
+
requiredDate: string;
|
|
143
|
+
requiredCountry: string;
|
|
144
|
+
};
|
|
145
|
+
address_info: {
|
|
146
|
+
title: string;
|
|
147
|
+
subtitle: string;
|
|
148
|
+
introTitle: string;
|
|
149
|
+
introLine1: string;
|
|
150
|
+
introLine2: string;
|
|
151
|
+
introNext: string;
|
|
152
|
+
mapSearchPlaceholder: string;
|
|
153
|
+
mapSearching: string;
|
|
154
|
+
mapNoResults: string;
|
|
155
|
+
mapNext: string;
|
|
156
|
+
mapBack: string;
|
|
157
|
+
detailsTitle: string;
|
|
158
|
+
geocodeError: string;
|
|
159
|
+
locationDenied: string;
|
|
160
|
+
country: string;
|
|
161
|
+
countryPlaceholder: string;
|
|
162
|
+
state: string;
|
|
163
|
+
city: string;
|
|
164
|
+
district: string;
|
|
165
|
+
neighborhood: string;
|
|
166
|
+
street: string;
|
|
167
|
+
number: string;
|
|
168
|
+
floor: string;
|
|
169
|
+
apartment: string;
|
|
170
|
+
zipCode: string;
|
|
171
|
+
references: string;
|
|
172
|
+
requiredCountry: string;
|
|
173
|
+
requiredState: string;
|
|
174
|
+
requiredCity: string;
|
|
175
|
+
requiredDistrict: string;
|
|
176
|
+
requiredNeighborhood: string;
|
|
177
|
+
requiredStreet: string;
|
|
178
|
+
requiredNumber: string;
|
|
179
|
+
requiredZip: string;
|
|
180
|
+
fillAllRequired: string;
|
|
181
|
+
};
|
|
182
|
+
documents_ocr: {
|
|
183
|
+
introTitle: string;
|
|
184
|
+
introSubtitle: string;
|
|
185
|
+
introTips: string[];
|
|
186
|
+
introStart: string;
|
|
187
|
+
frontTitle: string;
|
|
188
|
+
backTitle: string;
|
|
189
|
+
frontInstruction: string;
|
|
190
|
+
backInstruction: string;
|
|
191
|
+
captureBtn: string;
|
|
192
|
+
retakeBtn: string;
|
|
193
|
+
confirmBtn: string;
|
|
194
|
+
confirmFront: string;
|
|
195
|
+
confirmBack: string;
|
|
196
|
+
initializing: string;
|
|
197
|
+
uploadingFront: string;
|
|
198
|
+
uploadingBack: string;
|
|
199
|
+
verifying: string;
|
|
200
|
+
cameraPermissionDenied: string;
|
|
201
|
+
cameraTryAgain: string;
|
|
202
|
+
fileTooLarge: string;
|
|
203
|
+
};
|
|
204
|
+
liveness: {
|
|
205
|
+
introTitle: string;
|
|
206
|
+
introSubtitle: string;
|
|
207
|
+
introTips: string[];
|
|
208
|
+
introStart: string;
|
|
209
|
+
introBack: string;
|
|
210
|
+
connecting: string;
|
|
211
|
+
preparingCamera: string;
|
|
212
|
+
centerFace: string;
|
|
213
|
+
positioningReady: string;
|
|
214
|
+
getReady: string;
|
|
215
|
+
finalizing: string;
|
|
216
|
+
analyzingHeadline: string;
|
|
217
|
+
analyzingCaption: string;
|
|
218
|
+
timeoutTurnLeft: string;
|
|
219
|
+
timeoutTurnRight: string;
|
|
220
|
+
timeoutBlink: string;
|
|
221
|
+
timeoutSmile: string;
|
|
222
|
+
timeoutMoveCloser: string;
|
|
223
|
+
timeoutMoveFarther: string;
|
|
224
|
+
timeoutGeneric: string;
|
|
225
|
+
challenge: {
|
|
226
|
+
FACE_FORWARD: string;
|
|
227
|
+
TURN_LEFT: string;
|
|
228
|
+
TURN_RIGHT: string;
|
|
229
|
+
SMILE: string;
|
|
230
|
+
BLINK: string;
|
|
231
|
+
MOVE_CLOSER: string;
|
|
232
|
+
MOVE_FARTHER: string;
|
|
233
|
+
};
|
|
234
|
+
warningGeneric: string;
|
|
235
|
+
warningConsecutiveMisses: string;
|
|
236
|
+
warningTooFar: string;
|
|
237
|
+
warningTooClose: string;
|
|
238
|
+
warningMoveCloserHint: string;
|
|
239
|
+
warningMoveFartherHint: string;
|
|
240
|
+
terminalRetryTitle: string;
|
|
241
|
+
terminalRetryFallback: string;
|
|
242
|
+
noProgressMessage: string;
|
|
243
|
+
terminalRetryButton: string;
|
|
244
|
+
terminalCancelButton: string;
|
|
245
|
+
cameraPermissionDenied: string;
|
|
246
|
+
cameraTryAgain: string;
|
|
247
|
+
};
|
|
248
|
+
months: string[];
|
|
249
|
+
result: {
|
|
250
|
+
approvedTitle: string;
|
|
251
|
+
approvedBody: string;
|
|
252
|
+
manualReviewTitle: string;
|
|
253
|
+
manualReviewBody: string;
|
|
254
|
+
rejectedTitle: string;
|
|
255
|
+
rejectedBody: string;
|
|
256
|
+
declineHeadline: string;
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
export type StringsTable = typeof ES;
|
|
260
|
+
//# sourceMappingURL=es.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"es.d.ts","sourceRoot":"","sources":["../../../../src/i18n/strings/es.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2Rd,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Public API of `@velion-la/onboarding-sdk-react-native`.
|
|
3
|
+
*
|
|
4
|
+
* Two integration shapes:
|
|
5
|
+
*
|
|
6
|
+
* 1. Component (recommended):
|
|
7
|
+
* `<VelionOnboardingScreen config={…} onComplete={…} onFail={…} />`
|
|
8
|
+
*
|
|
9
|
+
* 2. Imperative (rare, for hosts that need lifecycle control outside React):
|
|
10
|
+
* `const sdk = new VelionOnboarding(config); await sdk.start();`
|
|
11
|
+
* Hosts taking this path are responsible for rendering the orchestrator's
|
|
12
|
+
* `OrchestratorView` themselves.
|
|
13
|
+
*/
|
|
14
|
+
export { VelionOnboarding } from './core/VelionOnboarding';
|
|
15
|
+
export type { VelionConfig, OrchestratorView, } from './core/VelionOnboarding';
|
|
16
|
+
export { VelionOnboardingScreen, } from './ui/VelionOnboardingScreen';
|
|
17
|
+
export type { VelionOnboardingScreenProps, } from './ui/VelionOnboardingScreen';
|
|
18
|
+
export { ThemeProvider, useTheme, useReducedMotion, LIGHT_TOKENS, DARK_TOKENS, resolveTheme, mixHex, withAlpha, type ResolvedTheme, type ThemeTokenSet, } from './ui/theme';
|
|
19
|
+
export { Button, Input, Select, Card, Banner, Spinner, Checkbox, DatePicker, CountrySelect, type ButtonProps, type ButtonVariant, type InputProps, type SelectOption, type SelectProps, type CardProps, type BannerProps, type SpinnerProps, type CheckboxProps, type DatePickerProps, type CountrySelectProps, } from './ui/primitives';
|
|
20
|
+
export { LoadingOverlay, RetryDialog, ProgressBar, PROGRESS_BAR, } from './ui/overlays';
|
|
21
|
+
export { useInlineValidation, required, minLength, pattern, compose, type FieldRule, type InlineValidationHandle, type FieldValidator, } from './ui/forms';
|
|
22
|
+
export { getStrings, resolveLocale, type SupportedLocale } from './i18n';
|
|
23
|
+
export { SdkErrorCode, CameraErrorCode, } from './types';
|
|
24
|
+
export type { OnboardingStep, OnboardingStepStatus, OnboardingType, OnboardingResult, OnboardingSessionEvent, OnboardingDtoResponse, SessionState, SdkError, SdkStatus, VelionTheme, VelionFinalResultScreenTexts, VelionFinalResultStatusCopy, VelionSessionDeclinedReasonTexts, VelionSessionDeclinedReasonMessages, VelionCallbacks, HumanBasicInfoStepConfig, HumanExtendedInfoStepConfig, TaxInfoStepConfig, AddressInfoStepConfig, SwornDeclarationStepConfig, DocumentsOcrStepConfig, TermsAndConditionsStepConfig, HumanBasicInfoPayload, LegalBasicInfoPayload, HumanExtendedInfoPayload, LegalExtendedInfoPayload, AddressInfoPayload, SwornDeclarationPayload, EmailContactPayload, PhoneContactPayload, TaxInfoPayload, TaxInfoConfig, TaxInfoOption, TermsAndConditionsItem, TermsAndConditionsAcceptancePayload, TermsAndConditionsSubmitPayload, SessionCreationResponse, LivenessSessionResponse, } from './types';
|
|
25
|
+
export { SDK_VERSION } from './utils/sdkVersion';
|
|
26
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAGH,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,YAAY,EACV,YAAY,EACZ,gBAAgB,GACjB,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EACL,sBAAsB,GACvB,MAAM,6BAA6B,CAAC;AACrC,YAAY,EACV,2BAA2B,GAC5B,MAAM,6BAA6B,CAAC;AAIrC,OAAO,EACL,aAAa,EACb,QAAQ,EACR,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,MAAM,EACN,SAAS,EACT,KAAK,aAAa,EAClB,KAAK,aAAa,GACnB,MAAM,YAAY,CAAC;AAIpB,OAAO,EACL,MAAM,EACN,KAAK,EACL,MAAM,EACN,IAAI,EACJ,MAAM,EACN,OAAO,EACP,QAAQ,EACR,UAAU,EACV,aAAa,EACb,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,kBAAkB,GACxB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,cAAc,EACd,WAAW,EACX,WAAW,EACX,YAAY,GACb,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,mBAAmB,EACnB,QAAQ,EACR,SAAS,EACT,OAAO,EACP,OAAO,EACP,KAAK,SAAS,EACd,KAAK,sBAAsB,EAC3B,KAAK,cAAc,GACpB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,KAAK,eAAe,EAAE,MAAM,QAAQ,CAAC;AAIzE,OAAO,EACL,YAAY,EACZ,eAAe,GAChB,MAAM,SAAS,CAAC;AACjB,YAAY,EACV,cAAc,EACd,oBAAoB,EACpB,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACtB,qBAAqB,EACrB,YAAY,EACZ,QAAQ,EACR,SAAS,EACT,WAAW,EACX,4BAA4B,EAC5B,2BAA2B,EAC3B,gCAAgC,EAChC,mCAAmC,EACnC,eAAe,EAEf,wBAAwB,EACxB,2BAA2B,EAC3B,iBAAiB,EACjB,qBAAqB,EACrB,0BAA0B,EAC1B,sBAAsB,EACtB,4BAA4B,EAE5B,qBAAqB,EACrB,qBAAqB,EACrB,wBAAwB,EACxB,wBAAwB,EACxB,kBAAkB,EAClB,uBAAuB,EACvB,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,aAAa,EACb,aAAa,EACb,sBAAsB,EACtB,mCAAmC,EACnC,+BAA+B,EAE/B,uBAAuB,EACvB,uBAAuB,GACxB,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ADDRESS_INFO — POST /sessions/:id/address-info.
|
|
3
|
+
*
|
|
4
|
+
* Two flows:
|
|
5
|
+
*
|
|
6
|
+
* 1. **Assisted** (when `VelionConfig.googleMapsApiKey` is set, or on iOS
|
|
7
|
+
* where Apple Maps needs no key): intro → map picker → details (floor /
|
|
8
|
+
* apartment / references) → submit. Lat/Lng are included in the payload.
|
|
9
|
+
* 2. **Manual** (default fallback): the structured form — country, state,
|
|
10
|
+
* city, district, neighborhood, street, number, zip, plus the same
|
|
11
|
+
* details fields. No lat/lng.
|
|
12
|
+
*
|
|
13
|
+
* The orchestrator picks the flow by passing `googleMapsApiKey` through
|
|
14
|
+
* `StepDeps`; the step itself decides which view to mount.
|
|
15
|
+
*/
|
|
16
|
+
import type { StepDeps, StepModule } from './types';
|
|
17
|
+
export declare class AddressInfoStep implements StepModule {
|
|
18
|
+
private readonly deps;
|
|
19
|
+
private resolveStep;
|
|
20
|
+
private rejectStep;
|
|
21
|
+
private destroyed;
|
|
22
|
+
constructor(deps: StepDeps);
|
|
23
|
+
run(): Promise<void>;
|
|
24
|
+
destroy(): void;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=AddressInfoStep.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AddressInfoStep.d.ts","sourceRoot":"","sources":["../../../src/steps/AddressInfoStep.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA6BH,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAKpD,qBAAa,eAAgB,YAAW,UAAU;IAKpC,OAAO,CAAC,QAAQ,CAAC,IAAI;IAJjC,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,UAAU,CAA2B;IAC7C,OAAO,CAAC,SAAS,CAAS;gBAEG,IAAI,EAAE,QAAQ;IAE3C,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;IA0BpB,OAAO,IAAI,IAAI;CAIhB"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DOCUMENTS_OCR — capture front + back, upload to signed URLs, trigger OCR.
|
|
3
|
+
*
|
|
4
|
+
* Mirrors `DocumentsModule.ts` flow:
|
|
5
|
+
* intro → captureFront → reviewFront → captureBack → reviewBack →
|
|
6
|
+
* POST /documents-init → PUT image/jpeg × 2 → POST /documents-verify → done.
|
|
7
|
+
*
|
|
8
|
+
* No edge detection / OpenCV port (intentional MVP scope per the brief). The
|
|
9
|
+
* camera shows the ID-1 frame guide and the user fills it; the backend OCR
|
|
10
|
+
* pipeline handles cropping.
|
|
11
|
+
*
|
|
12
|
+
* Compression: vision-camera writes a high-quality JPEG. We re-compress with
|
|
13
|
+
* `expo-image-manipulator` before upload so we keep the payload under the
|
|
14
|
+
* 5 MB ceiling Velion's storage layer expects.
|
|
15
|
+
*/
|
|
16
|
+
import type { StepDeps, StepModule } from './types';
|
|
17
|
+
export declare class DocumentsOcrStep implements StepModule {
|
|
18
|
+
private readonly deps;
|
|
19
|
+
private resolveStep;
|
|
20
|
+
private rejectStep;
|
|
21
|
+
private destroyed;
|
|
22
|
+
constructor(deps: StepDeps);
|
|
23
|
+
run(): Promise<void>;
|
|
24
|
+
destroy(): void;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=DocumentsOcrStep.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DocumentsOcrStep.d.ts","sourceRoot":"","sources":["../../../src/steps/DocumentsOcrStep.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAiCH,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAsBpD,qBAAa,gBAAiB,YAAW,UAAU;IAKrC,OAAO,CAAC,QAAQ,CAAC,IAAI;IAJjC,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,UAAU,CAA2B;IAC7C,OAAO,CAAC,SAAS,CAAS;gBAEG,IAAI,EAAE,QAAQ;IAE3C,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;IAyBpB,OAAO,IAAI,IAAI;CAIhB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMAIL_CONTACT — collect email without OTP. Mirrors `EmailContactModule.ts`.
|
|
3
|
+
* POST /sessions/:id/contact/email { email }
|
|
4
|
+
*/
|
|
5
|
+
import type { StepDeps, StepModule } from './types';
|
|
6
|
+
export declare class EmailContactStep implements StepModule {
|
|
7
|
+
private readonly deps;
|
|
8
|
+
private resolveStep;
|
|
9
|
+
private rejectStep;
|
|
10
|
+
private destroyed;
|
|
11
|
+
constructor(deps: StepDeps);
|
|
12
|
+
run(): Promise<void>;
|
|
13
|
+
destroy(): void;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=EmailContactStep.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmailContactStep.d.ts","sourceRoot":"","sources":["../../../src/steps/EmailContactStep.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAmBH,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGpD,qBAAa,gBAAiB,YAAW,UAAU;IAKrC,OAAO,CAAC,QAAQ,CAAC,IAAI;IAJjC,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,UAAU,CAA2B;IAC7C,OAAO,CAAC,SAAS,CAAS;gBAEG,IAAI,EAAE,QAAQ;IAE3C,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;IAwBpB,OAAO,IAAI,IAAI;CAIhB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMAIL_OTP — send + verify 6-digit OTP via email.
|
|
3
|
+
* POST /sessions/:id/email/send-otp { email }
|
|
4
|
+
* POST /sessions/:id/email/verify-otp { otp }
|
|
5
|
+
*
|
|
6
|
+
* Mirrors `EmailOtpModule.ts`. Single-screen flow: `Send code` first, then a
|
|
7
|
+
* second pane appears with the 6-digit input + `Verify`. iOS gets
|
|
8
|
+
* `textContentType="oneTimeCode"` so the system keyboard surfaces the SMS-/
|
|
9
|
+
* email-delivered code automatically.
|
|
10
|
+
*/
|
|
11
|
+
import type { StepDeps, StepModule } from './types';
|
|
12
|
+
export declare class EmailOtpStep implements StepModule {
|
|
13
|
+
private readonly deps;
|
|
14
|
+
private resolveStep;
|
|
15
|
+
private rejectStep;
|
|
16
|
+
private destroyed;
|
|
17
|
+
constructor(deps: StepDeps);
|
|
18
|
+
run(): Promise<void>;
|
|
19
|
+
destroy(): void;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=EmailOtpStep.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmailOtpStep.d.ts","sourceRoot":"","sources":["../../../src/steps/EmailOtpStep.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAgBH,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGpD,qBAAa,YAAa,YAAW,UAAU;IAKjC,OAAO,CAAC,QAAQ,CAAC,IAAI;IAJjC,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,UAAU,CAA2B;IAC7C,OAAO,CAAC,SAAS,CAAS;gBAEG,IAAI,EAAE,QAAQ;IAE3C,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;IAwBpB,OAAO,IAAI,IAAI;CAIhB"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FACE_MATCH — backend-only step.
|
|
3
|
+
*
|
|
4
|
+
* The web `FaceMatchModule` polls `GET /sessions/:id` every 2s and resolves
|
|
5
|
+
* once the step is COMPLETED / SKIPPED (or session terminal). In the RN port
|
|
6
|
+
* the orchestrator already drains pending terminal events through SSE and
|
|
7
|
+
* routes via `ROUTING_COMMAND`, so we can keep this step minimal: just show
|
|
8
|
+
* a "Procesando…" panel and await the SSE-driven step transition.
|
|
9
|
+
*
|
|
10
|
+
* As a safety net we still poll GET every 2s up to 6 min — same upper bound
|
|
11
|
+
* as the web (`MAX_POLLS=180`). When the orchestrator emits `ROUTING_COMMAND`
|
|
12
|
+
* for the next step, `VelionOnboarding` calls `destroy()` which aborts the
|
|
13
|
+
* poll loop.
|
|
14
|
+
*/
|
|
15
|
+
import type { StepDeps, StepModule } from './types';
|
|
16
|
+
export declare class FaceMatchStep implements StepModule {
|
|
17
|
+
private readonly deps;
|
|
18
|
+
private resolveStep;
|
|
19
|
+
private rejectStep;
|
|
20
|
+
private destroyed;
|
|
21
|
+
private abortController;
|
|
22
|
+
constructor(deps: StepDeps);
|
|
23
|
+
run(): Promise<void>;
|
|
24
|
+
destroy(): void;
|
|
25
|
+
private poll;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=FaceMatchStep.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FaceMatchStep.d.ts","sourceRoot":"","sources":["../../../src/steps/FaceMatchStep.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAYH,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAKpD,qBAAa,aAAc,YAAW,UAAU;IAMlC,OAAO,CAAC,QAAQ,CAAC,IAAI;IALjC,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,UAAU,CAA2B;IAC7C,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,eAAe,CAAyB;gBAEnB,IAAI,EAAE,QAAQ;IAE3C,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;IASpB,OAAO,IAAI,IAAI;YAOD,IAAI;CAkEnB"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview DEVICE_FINGERPRINT step.
|
|
3
|
+
*
|
|
4
|
+
* Runs Fingerprint Pro RN to obtain `requestId` (+ optional `sealedResult`)
|
|
5
|
+
* and POSTs them to `/sessions/:id/fingerprint`. The backend uses these to
|
|
6
|
+
* enrich the session with AML / fraud signals via Fingerprint server-side
|
|
7
|
+
* decryption.
|
|
8
|
+
*
|
|
9
|
+
* Mounts a centred LoadingOverlay with a "Evaluating your device" message so
|
|
10
|
+
* the user understands why the screen is blocked for a couple of seconds.
|
|
11
|
+
* Without it, slow networks / VPNs make the SDK feel frozen.
|
|
12
|
+
*
|
|
13
|
+
* Defaults: Velion's public Fingerprint Pro key + `https://fp.velion.la` as
|
|
14
|
+
* endpoint. Override knobs: `fingerprintApiKey`, `fingerprintEndpoint` and
|
|
15
|
+
* `fingerprintTimeoutMs` in `VelionConfig`.
|
|
16
|
+
*/
|
|
17
|
+
import type { StepDeps, StepModule } from './types';
|
|
18
|
+
export declare class FingerprintStep implements StepModule {
|
|
19
|
+
private readonly deps;
|
|
20
|
+
private destroyed;
|
|
21
|
+
constructor(deps: StepDeps);
|
|
22
|
+
run(): Promise<void>;
|
|
23
|
+
destroy(): void;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=FingerprintStep.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FingerprintStep.d.ts","sourceRoot":"","sources":["../../../src/steps/FingerprintStep.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAUH,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAUpD,qBAAa,eAAgB,YAAW,UAAU;IAGpC,OAAO,CAAC,QAAQ,CAAC,IAAI;IAFjC,OAAO,CAAC,SAAS,CAAS;gBAEG,IAAI,EAAE,QAAQ;IAErC,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;IAuD1B,OAAO,IAAI,IAAI;CAGhB"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HUMAN_BASIC_INFO step — natural-person identification data.
|
|
3
|
+
*
|
|
4
|
+
* - Form: first_name, last_name, identification_type (select from
|
|
5
|
+
* stepConfig.accepted_country_documents), identification_id.
|
|
6
|
+
* - Names are NFC-normalized (`normalizePersonNameSegment`) before submit.
|
|
7
|
+
* - On submit failure: surface a `<RetryDialog>` so the user can retry
|
|
8
|
+
* without losing their inputs.
|
|
9
|
+
*
|
|
10
|
+
* The orchestrator's view bridge (`StepUiHandle.setNode`) is how this module
|
|
11
|
+
* mounts its UI into `<VelionOnboardingScreen>`. Loading and retry overlays
|
|
12
|
+
* live alongside the form via the orchestrator's `setLoading` and the
|
|
13
|
+
* step-local retry dialog node.
|
|
14
|
+
*/
|
|
15
|
+
import type { StepDeps, StepModule } from './types';
|
|
16
|
+
export declare class HumanBasicInfoStep implements StepModule {
|
|
17
|
+
private readonly deps;
|
|
18
|
+
private resolveStep;
|
|
19
|
+
private rejectStep;
|
|
20
|
+
private destroyed;
|
|
21
|
+
constructor(deps: StepDeps);
|
|
22
|
+
run(): Promise<void>;
|
|
23
|
+
destroy(): void;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=HumanBasicInfoStep.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HumanBasicInfoStep.d.ts","sourceRoot":"","sources":["../../../src/steps/HumanBasicInfoStep.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAwBH,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AASpD,qBAAa,kBAAmB,YAAW,UAAU;IAKvC,OAAO,CAAC,QAAQ,CAAC,IAAI;IAJjC,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,UAAU,CAA2B;IAC7C,OAAO,CAAC,SAAS,CAAS;gBAEG,IAAI,EAAE,QAAQ;IAE3C,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;IAyBpB,OAAO,IAAI,IAAI;CAIhB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HUMAN_EXTENDED_INFO — POST /sessions/:id/extended-info/human.
|
|
3
|
+
*
|
|
4
|
+
* Mirrors `HumanExtendedInfoModule.ts`. Each field's visibility and required
|
|
5
|
+
* state is read from `stepConfig.fields.<field>.{visible,required}`. Values
|
|
6
|
+
* default to `visible: true, required: true` when undefined (web parity).
|
|
7
|
+
*
|
|
8
|
+
* `gender` and `civil_status` options come from
|
|
9
|
+
* `stepConfig.fields.<field>.options` first, then `stepConfig.gender_options`
|
|
10
|
+
* / `civil_status_options` as a fallback. `birth_country` / `citizenship` /
|
|
11
|
+
* `residence_country` are 2-letter ISO codes resolved through `<CountrySelect>`.
|
|
12
|
+
*/
|
|
13
|
+
import type { StepDeps, StepModule } from './types';
|
|
14
|
+
export declare class HumanExtendedInfoStep implements StepModule {
|
|
15
|
+
private readonly deps;
|
|
16
|
+
private resolveStep;
|
|
17
|
+
private rejectStep;
|
|
18
|
+
private destroyed;
|
|
19
|
+
constructor(deps: StepDeps);
|
|
20
|
+
run(): Promise<void>;
|
|
21
|
+
destroy(): void;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=HumanExtendedInfoStep.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HumanExtendedInfoStep.d.ts","sourceRoot":"","sources":["../../../src/steps/HumanExtendedInfoStep.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAsBH,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGpD,qBAAa,qBAAsB,YAAW,UAAU;IAK1C,OAAO,CAAC,QAAQ,CAAC,IAAI;IAJjC,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,UAAU,CAA2B;IAC7C,OAAO,CAAC,SAAS,CAAS;gBAEG,IAAI,EAAE,QAAQ;IAE3C,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;IA2BpB,OAAO,IAAI,IAAI;CAIhB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LEGAL_BASIC_INFO — POST /sessions/:id/basic-info/legal { legal_name, legal_form, identification_type, identification_id }.
|
|
3
|
+
*
|
|
4
|
+
* No country combobox here — `identification_type` is a free-text field
|
|
5
|
+
* (CUIT / NIT / RFC are entered manually).
|
|
6
|
+
*/
|
|
7
|
+
import type { StepDeps, StepModule } from './types';
|
|
8
|
+
export declare class LegalBasicInfoStep implements StepModule {
|
|
9
|
+
private readonly deps;
|
|
10
|
+
private resolveStep;
|
|
11
|
+
private rejectStep;
|
|
12
|
+
private destroyed;
|
|
13
|
+
constructor(deps: StepDeps);
|
|
14
|
+
run(): Promise<void>;
|
|
15
|
+
destroy(): void;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=LegalBasicInfoStep.d.ts.map
|