@incodetech/core 2.4.1 → 2.5.0-agentic.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/dist/Actor-DqjOqDfU.d.ts +1 -0
- package/dist/{BaseWasmProvider-Bq3OHo7P.d.ts → BaseWasmProvider-CPdofn7R.d.ts} +3 -5
- package/dist/BrowserNetworkStatusProvider-BrDXBEDd.esm.js +21 -0
- package/dist/{multipartRecordingService-CLwrF5wD.esm.js → CameraCompositor-C7N1N61V.esm.js} +61 -744
- package/dist/DateFormattingProvider-DPq9zco-.esm.js +25 -0
- package/dist/{FaceDetectionProvider-J_-1Cwck.esm.js → FaceDetectionProvider-Cy2EAL0i.esm.js} +38 -66
- package/dist/IBrowserEnvironmentCapability-D7JG7ML3.esm.js +16 -0
- package/dist/IGeolocationCapability-r49Qo7rR.d.ts +10 -0
- package/dist/{IIdCaptureCapability-CGcEt2Cw.d.ts → IIdCaptureCapability-BRAZQtkM.d.ts} +4 -3
- package/dist/{IWasmUtilCapability-GF2n7sfm.d.ts → IWasmUtilCapability-CLWIYHB4.d.ts} +35 -7
- package/dist/Manager-BvXAwDv9.esm.js +125 -0
- package/dist/{Manager-C9T5amUN.d.ts → Manager-DufwKlav.d.ts} +1 -7
- package/dist/{MotionSensorProvider-DYxh8TjR.esm.js → MotionSensorProvider-BAGydZPH.esm.js} +20 -0
- package/dist/MultipartRecordingProvider-BtMQZEbg.esm.js +151 -0
- package/dist/{PhoneValidationProvider-SZiOS0jB.esm.js → PhoneValidationProvider-Co4zk2en.esm.js} +7 -0
- package/dist/{StreamCanvasCapture-7JRf-2ck.d.ts → StreamCanvasCapture-BqaHTJF0.d.ts} +36 -5
- package/dist/{StreamCanvasCapture-C9jtgBdT.esm.js → StreamCanvasCapture-CXd87trH.esm.js} +18 -3
- package/dist/StreamCanvasProcessingSession-CBnbTnOr.esm.js +42 -0
- package/dist/{WasmUtilProvider-DtJuBdt-.esm.js → WasmUtilProvider-C4x5gc1c.esm.js} +135 -25
- package/dist/WorkerEncoderRecordingProvider-BO7urYwT.esm.js +80 -0
- package/dist/addressSearch-DBJeg_g3.esm.js +301 -0
- package/dist/{advanceableErrors-q_pfU3Cn.esm.js → advanceableErrors-CxZyPRyh.esm.js} +4 -2
- package/dist/ae-signature.d.ts +2 -2
- package/dist/ae-signature.esm.js +1 -1
- package/dist/allowedCharacters-Bnir--CN.esm.js +17 -0
- package/dist/antifraud.d.ts +1 -1
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudManager-DbGCvlJs.d.ts → antifraudManager-BxfCsyA7.d.ts} +3 -3
- package/dist/{antifraudManager-CaweCYnY.esm.js → antifraudManager-DRMBLSh7.esm.js} +5 -3
- package/dist/{antifraudStateMachine-DRl0UVyA.esm.js → antifraudStateMachine-Bi0m60oV.esm.js} +4 -6
- package/dist/{api-Cz90EHyu.esm.js → api-B58edv6M.esm.js} +13 -7
- package/dist/{apiError-9Yi8xMeB.esm.js → apiError-B9-B3cMq.esm.js} +1 -1
- package/dist/attemptCarry-CxiYlUAO.esm.js +45 -0
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-BIZC55Bi.d.ts → authenticationManager-CkD0JR7Q.d.ts} +2 -2
- package/dist/{authenticationManager-pKQS4fHT.esm.js → authenticationManager-DNWtc0eq.esm.js} +7 -6
- package/dist/{authenticationStateMachine-D_DygKtQ.esm.js → authenticationStateMachine-CJ9i4Al-.esm.js} +50 -18
- package/dist/avatar.d.ts +1 -1
- package/dist/backCameraLabel-yda5ugE4.esm.js +67 -0
- package/dist/{backCameraStream-CMvXj4X4.esm.js → backCameraStream-6qVHvj76.esm.js} +12 -107
- package/dist/{browser-DlFgHpoC-DnyrCR8r.esm.js → browser-pQZA35G2-B4Dwja1e.esm.js} +161 -150
- package/dist/calendarDate-D2zWfUlA.esm.js +35 -0
- package/dist/{callback-645_omgz.d.ts → callback-BmjJ1G-5.d.ts} +1 -1
- package/dist/camera-9yYDUOsO.d.ts +5 -0
- package/dist/{camera-sIa9ceW2.esm.js → camera-CJKApt0x.esm.js} +19 -20
- package/dist/camera.d.ts +9 -5
- package/dist/camera.esm.js +1 -1
- package/dist/certificate-issuance.d.ts +1 -1
- package/dist/certificate-issuance.esm.js +2 -2
- package/dist/{certificateIssuanceManager-Dr8A4Lgr.d.ts → certificateIssuanceManager-BcYhxO63.d.ts} +4 -3
- package/dist/{certificateIssuanceManager-BfeMv2PU.esm.js → certificateIssuanceManager-Ctj6AJC7.esm.js} +5 -3
- package/dist/{certificateIssuanceStateMachine-Frgjbjw8.esm.js → certificateIssuanceStateMachine-DDqN9kvL.esm.js} +4 -4
- package/dist/cnpj-CVq3vL39.esm.js +71 -0
- package/dist/cnpj-D5cxwIe-.esm.js +9 -0
- package/dist/connectivity-BCuEoQ-n.esm.js +114 -0
- package/dist/consent.d.ts +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-Ca8FHlC4.d.ts → consentManager-B0YKqYtZ.d.ts} +20 -12
- package/dist/{consentManager-CvEu8h_W.esm.js → consentManager-CyoeiABc.esm.js} +7 -4
- package/dist/{consentStateMachine-DJTgN_-1.esm.js → consentStateMachine-BTUrAslr.esm.js} +25 -15
- package/dist/cpf-DDXMTLYr.esm.js +37 -0
- package/dist/{createFaceAvatar-lYX0VTYs.d.ts → createFaceAvatar-Ct9QrQ66.d.ts} +1 -1
- package/dist/cross-document-data-match.d.ts +1 -1
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-Cu141CE8.esm.js → crossDocumentDataMatchManager-cmQmp7Bi.esm.js} +6 -5
- package/dist/{crossDocumentDataMatchManager-yCWCOzcU.d.ts → crossDocumentDataMatchManager-crZcIUSY.d.ts} +3 -3
- package/dist/curp-DZGvefg3.esm.js +14 -0
- package/dist/curp-validation.d.ts +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-B-z9q5V3.esm.js → curpValidationManager-EW44fVpH.esm.js} +6 -3
- package/dist/{curpValidationManager-C9sqoh9n.d.ts → curpValidationManager-HOidAKvT.d.ts} +4 -4
- package/dist/{curpValidationStateMachine-vDEFLMPw.esm.js → curpValidationStateMachine-BFkt90Zs.esm.js} +41 -34
- package/dist/custom-fields.d.ts +1 -1
- package/dist/custom-fields.esm.js +1 -1
- package/dist/custom-watchlist.d.ts +1 -1
- package/dist/custom-watchlist.esm.js +2 -2
- package/dist/{customFieldsManager-CF-cO8ap.d.ts → customFieldsManager-CdWTbsew.d.ts} +3 -3
- package/dist/{customFieldsManager-D1ex2cFM.esm.js → customFieldsManager-DPMBJrcH.esm.js} +15 -17
- package/dist/{customWatchlistManager-CTI-SGk0.esm.js → customWatchlistManager-DiYpPjZx.esm.js} +5 -3
- package/dist/{customWatchlistManager-DolUswyR.d.ts → customWatchlistManager-lJrveDS4.d.ts} +3 -3
- package/dist/{customWatchlistStateMachine-hmRd0f2I.esm.js → customWatchlistStateMachine-D7VxQggF.esm.js} +4 -6
- package/dist/deepsightCaptureConfig-BxD3mSac.esm.js +70 -0
- package/dist/{deepsightService-C3DVBOZd.esm.js → deepsightLoader-KYZP8_x-.esm.js} +41 -74
- package/dist/definitionSource-B9WTvQb9.esm.js +30 -0
- package/dist/{createCameraCycleOwnership-Dj_LHUvN.esm.js → desktopCameraElection-BGQRIA2u.esm.js} +278 -44
- package/dist/device.d.ts +3 -3
- package/dist/device.esm.js +16 -16
- package/dist/document-capture.d.ts +3 -3
- package/dist/document-capture.esm.js +2 -2
- package/dist/document-signature.d.ts +123 -0
- package/dist/document-signature.esm.js +149 -0
- package/dist/{documentCaptureManager-DUJwpKC5.esm.js → documentCaptureManager-SRG6YEMh.esm.js} +30 -20
- package/dist/{documentCaptureManager-DkyDtm3Y.d.ts → documentCaptureManager-sJWgqtUy.d.ts} +42 -8
- package/dist/{documentCaptureStateMachine-B8i7GnLh.esm.js → documentCaptureStateMachine-Bh0uyfGq.esm.js} +110 -63
- package/dist/documentSignatureStateMachine-CLljjltG.esm.js +219 -0
- package/dist/dynamic-forms.d.ts +2 -2
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-C0dHs1ty.d.ts → dynamicFormsManager-C45pTncO.d.ts} +4 -4
- package/dist/{dynamicFormsManager-DK_oc5Oy.esm.js → dynamicFormsManager-CnU2hRvl.esm.js} +5 -3
- package/dist/{dynamicFormsStateMachine-CGlIAWZ6.esm.js → dynamicFormsStateMachine-huYmjamB.esm.js} +12 -13
- package/dist/ekyb.d.ts +5 -5
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-BLgkiWXw.esm.js → ekybManager-CaEErq39.esm.js} +5 -3
- package/dist/{ekybManager-BaZ_7CEu.d.ts → ekybManager-Cjk8pQX0.d.ts} +5 -5
- package/dist/ekybStateMachine-BIU8KIMv.esm.js +2173 -0
- package/dist/ekybUtils-Dl0MU-ib.esm.js +172 -0
- package/dist/ekyc-prefill.d.ts +17 -0
- package/dist/ekyc-prefill.esm.js +3 -0
- package/dist/ekyc.d.ts +4 -3
- package/dist/ekyc.esm.js +3 -3
- package/dist/{ekycManager-BO-Lui3t.esm.js → ekycManager-D2K8AaMV.esm.js} +39 -16
- package/dist/{ekycManager-DW-ynodd.d.ts → ekycManager-DusmB-4j.d.ts} +49 -7
- package/dist/ekycPrefillManager-BwmPXfhY.d.ts +566 -0
- package/dist/ekycPrefillManager-CENQjdNq.esm.js +102 -0
- package/dist/ekycPrefillStateMachine-jT3hIt2X.esm.js +1289 -0
- package/dist/ekycStateMachine-6EKndBd7.esm.js +9024 -0
- package/dist/ekycUtils-C6HZB46m.esm.js +1532 -0
- package/dist/electronic-signature.d.ts +1 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-DTSLOvKR.d.ts → electronicSignatureManager-5tYz-a4o.d.ts} +4 -3
- package/dist/{electronicSignatureManager-CjKvJ6E-.esm.js → electronicSignatureManager-wM8WTgzP.esm.js} +12 -18
- package/dist/email.d.ts +1 -1
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-ButFktRm.esm.js → emailManager-BBdRYLtH.esm.js} +5 -3
- package/dist/{emailManager-Dy6omJVp.d.ts → emailManager-pM7ZPuMa.d.ts} +3 -3
- package/dist/{emailStateMachine-BXtlC0NV.esm.js → emailStateMachine-DO7lWYvn.esm.js} +35 -25
- package/dist/events-PUWyizJn.esm.js +299 -0
- package/dist/events.d.ts +4 -4
- package/dist/events.esm.js +2 -1
- package/dist/extensibility.d.ts +57 -41
- package/dist/extensibility.esm.js +39 -37
- package/dist/{externalFetch-DrR9xshk.esm.js → externalFetch-cUjJYyXj.esm.js} +4 -1
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-1hzeS_rB.d.ts → faceCaptureManagerFactory-D1EJw36F.d.ts} +101 -77
- package/dist/{faceCaptureManagerFactory-BDGhg24q.esm.js → faceCaptureManagerFactory-DbEARG3h.esm.js} +29 -12
- package/dist/{faceCaptureSetup-CvGYG4GZ.esm.js → faceCaptureSetup-VaAjMpWX.esm.js} +189 -513
- package/dist/{faceMatchManager-DIgG-UFS.d.ts → faceMatchManager-C5b5WtcY.d.ts} +23 -7
- package/dist/{faceMatchManager-DWFUQjMQ.esm.js → faceMatchManager-nBvS9z0o.esm.js} +5 -3
- package/dist/{faceMatchStateMachine-CUCvlydD.esm.js → faceMatchStateMachine-48O8j_Lx.esm.js} +70 -42
- package/dist/{feature-management-D4ne_hXW.esm.js → feature-management-D7oLtULO.esm.js} +37 -22
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.d.ts +1 -1
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-v3knTYV_.esm.js → fieldComparisonManager-B1ipvtnp.esm.js} +7 -7
- package/dist/{fieldComparisonManager-CUX4gza2.d.ts → fieldComparisonManager-mFOHRhVd.d.ts} +3 -3
- package/dist/fiscal-qr.d.ts +1 -1
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/{fiscalQrManager-D0Iy7EKR.d.ts → fiscalQrManager-DFnFVpP9.d.ts} +3 -3
- package/dist/{fiscalQrManager-Dt9fHG7h.esm.js → fiscalQrManager-yecjuXV4.esm.js} +9 -8
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +73 -24
- package/dist/flow.esm.js +261 -66
- package/dist/{flowCompletionService-Cemwaa5b.esm.js → flowCompletionService-CIjaIpMH.esm.js} +2 -2
- package/dist/flowServices-Dqt75TXx.esm.js +951 -0
- package/dist/formErrors-lSfh7Y8J.esm.js +512 -0
- package/dist/geolocation.d.ts +1 -1
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-Dn24g1fl.d.ts → geolocationManager-CENrvxpK.d.ts} +19 -20
- package/dist/{geolocationManager-B0dc5rW9.esm.js → geolocationManager-DHfgXhEs.esm.js} +9 -9
- package/dist/{geolocationStateMachine-B3rcoODF.esm.js → geolocationStateMachine-CrEspaN-.esm.js} +16 -14
- package/dist/{getDeviceClass-bsWdEDxP.esm.js → getDeviceClass-Dcy9erbl.esm.js} +1 -1
- package/dist/government-validation.d.ts +1 -1
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationManager-BtXWHICu.esm.js → governmentValidationManager-0-L21hu6.esm.js} +5 -3
- package/dist/{governmentValidationManager-B82zOut8.d.ts → governmentValidationManager-De_vU7bm.d.ts} +4 -4
- package/dist/{governmentValidationStateMachine-COL-Vs48.esm.js → governmentValidationStateMachine-BFIcq3UB.esm.js} +4 -6
- package/dist/home.d.ts +4 -3
- package/dist/home.esm.js +4 -2
- package/dist/http.esm.js +1 -1
- package/dist/id-ocr.d.ts +2 -2
- package/dist/id-ocr.esm.js +3 -3
- package/dist/id-selfie-flow.d.ts +7 -6
- package/dist/id-selfie-flow.esm.js +14 -12
- package/dist/id-verification.d.ts +1 -1
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +6 -19
- package/dist/id.esm.js +4 -4
- package/dist/{idCaptureDefaults-BGsG2OAs.esm.js → idCaptureDefaults-CNopPetU.esm.js} +17 -7
- package/dist/{idCaptureManager-IouAnrFm.esm.js → idCaptureManager-BPDCAV04.esm.js} +95 -34
- package/dist/{idCaptureManager-0M02hSuC.d.ts → idCaptureManager-CNFBeYgV.d.ts} +105 -16
- package/dist/{idCaptureServices-VTKIPSpT.esm.js → idCaptureServices-CWZFmS7l.esm.js} +36 -213
- package/dist/{idCaptureStateMachine-_Pn2Xkpb.esm.js → idCaptureStateMachine-Cyt2BvPB.esm.js} +3081 -2510
- package/dist/{idOcrManager-DT3kPIB3.d.ts → idOcrManager-DflRx-_u.d.ts} +6 -5
- package/dist/{idOcrManager-D3-HNMXP.esm.js → idOcrManager-bjBLjrEE.esm.js} +5 -3
- package/dist/{idOcrStateMachine-DyENX6Ki.esm.js → idOcrStateMachine-D5ifJ1B8.esm.js} +20 -16
- package/dist/{idVerificationManager-BJapZfpy.d.ts → idVerificationManager-B6R8xNZq.d.ts} +4 -3
- package/dist/{idVerificationManager-iWz7Avkr.esm.js → idVerificationManager-C8Ja-vKq.esm.js} +5 -3
- package/dist/{idVerificationStateMachine-CL1kUdBe.esm.js → idVerificationStateMachine-BMnfZZli.esm.js} +4 -6
- package/dist/identity-reuse.d.ts +2 -2
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/identity-search.d.ts +97 -0
- package/dist/identity-search.esm.js +96 -0
- package/dist/{identityReuseManager-CD1ucp1d.esm.js → identityReuseManager-B5BWAleT.esm.js} +9 -4
- package/dist/{identityReuseManager-ooAbp6Kc.d.ts → identityReuseManager-CZ-qJ_Aa.d.ts} +82 -15
- package/dist/{identityReuseStateMachine-DfV81wQC.esm.js → identityReuseStateMachine-Cuggm1UP.esm.js} +24 -31
- package/dist/{index-BKOWUhxG.d.ts → index-BMr3MZEI.d.ts} +93 -22
- package/dist/{index-CKQ9QBZP.d.ts → index-BoGlwLGK.d.ts} +2 -2
- package/dist/index-DHuAkTe0.d.ts +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{invokeOnCaptureCallback-DYrkOXO6.esm.js → invokeOnCaptureCallback-D2FOfi4O.esm.js} +1 -1
- package/dist/kyb-checks.d.ts +3 -0
- package/dist/kyb-checks.esm.js +3 -0
- package/dist/kybChecksManager-BF2vf0Q2.esm.js +90 -0
- package/dist/kybChecksManager-CKDy1mel.d.ts +95 -0
- package/dist/kybChecksStateMachine-oBQfgdka.esm.js +713 -0
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-qYojnZYg.d.ts → mandatoryConsentManager-BcxCesP5.d.ts} +30 -13
- package/dist/{mandatoryConsentManager-Cwqx1nK7.esm.js → mandatoryConsentManager-FfgHdPYw.esm.js} +7 -4
- package/dist/{mandatoryConsentStateMachine-pXWqAHo_.esm.js → mandatoryConsentStateMachine-CXuYC3qR.esm.js} +35 -19
- package/dist/mediaRecorderOptions-Di_V9TnZ.esm.js +87 -0
- package/dist/multipartRecordingService-CFmOUGQt.esm.js +407 -0
- package/dist/numericRange-2e1vw1W0.esm.js +256 -0
- package/dist/{permissionGuards-gcy3U0SL.esm.js → permissionGuards-CZTCRHT-.esm.js} +1 -1
- package/dist/{permissionServices-Ca-tSNhT.esm.js → permissionServices-Vd86JiW9.esm.js} +47 -19
- package/dist/phone-number.d.ts +7 -1
- package/dist/phone-number.esm.js +15 -2
- package/dist/phone.d.ts +1 -1
- package/dist/phone.esm.js +2 -2
- package/dist/{phoneManager-BO-LTih5.d.ts → phoneManager-bA-xw2TP.d.ts} +8 -11
- package/dist/{phoneManager-KKUq-Vgo.esm.js → phoneManager-oIMdbeLG.esm.js} +8 -7
- package/dist/phoneServices-Dk4j3NhI.esm.js +63 -0
- package/dist/{phoneStateMachine-D2QWS2cu.esm.js → phoneStateMachine-Cu3y7ewi.esm.js} +57 -90
- package/dist/{phoneValidation-DnBcNUNh.esm.js → phoneValidation-OggtfjRt.esm.js} +1 -2
- package/dist/{platform-DkcRc9JV.esm.js → platform-GIg4uPWe.esm.js} +15 -4
- package/dist/processFaceMatch-CHeI0DEt.esm.js +21 -0
- package/dist/qe-signature.d.ts +2 -2
- package/dist/qe-signature.esm.js +1 -1
- package/dist/recordingService-DK3kjUby.esm.js +404 -0
- package/dist/redirect-to-mobile.d.ts +2 -2
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-CVsvpVbQ.d.ts → redirectToMobileManager-Db99n9Yu.d.ts} +7 -4
- package/dist/{redirectToMobileManager-uHW3dyuQ.esm.js → redirectToMobileManager-yYJGE47m.esm.js} +10 -6
- package/dist/{redirectToMobileStateMachine-b-H-ipGM.esm.js → redirectToMobileStateMachine-g_NbyHrL.esm.js} +82 -46
- package/dist/resolveForm-DaaQSVWp.esm.js +146 -0
- package/dist/{runChildModule-DSpP41Hl.esm.js → runChildModule-x1rrxjYY.esm.js} +9 -7
- package/dist/{sdkVersion-DKHwWEyH.esm.js → sdkVersion-kRh5h82H.esm.js} +1 -1
- package/dist/selfie.d.ts +6 -6
- package/dist/selfie.esm.js +15 -13
- package/dist/{selfieErrorUtils-DoN1KFSQ.esm.js → selfieErrorUtils-B9GfiS9f.esm.js} +1 -1
- package/dist/{selfieManager-DtQegA6T.esm.js → selfieManager-CivYjnF5.esm.js} +7 -6
- package/dist/{selfieManager-BJdNu_nd.d.ts → selfieManager-CqDlUy6B.d.ts} +2 -2
- package/dist/{selfieStateMachine-CnCwJZuC.esm.js → selfieStateMachine-dLwrXWll.esm.js} +5 -5
- package/dist/{session-CNUfjlRc.esm.js → session-DeJ-rd9u.esm.js} +78 -9
- package/dist/session.d.ts +85 -9
- package/dist/session.esm.js +7 -6
- package/dist/{sessionInitializer-JM_glXR2.esm.js → sessionInitializer-uZgyxsrL.esm.js} +442 -208
- package/dist/{setup-YPKTUCY5.d.ts → setup-Cr2KCwau.d.ts} +7 -6
- package/dist/{setup-C5tfWt6W.esm.js → setup-D0QZHkS8.esm.js} +42 -29
- package/dist/signature.d.ts +1 -1
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-f_dPAGXn.esm.js → signatureManager-DRUflksL.esm.js} +5 -3
- package/dist/{signatureManager-BpVt_Jv7.d.ts → signatureManager-daT_8fj_.d.ts} +3 -3
- package/dist/{signatureStateMachine-C-nUq_oq.esm.js → signatureStateMachine-BQZenxel.esm.js} +5 -7
- package/dist/{spawn-D9jgw9pW.d.ts → spawn-COZKetCS.d.ts} +1 -1
- package/dist/{stats-BEvexnKC.esm.js → stats-DHu3li6G.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/step-up.d.ts +379 -0
- package/dist/step-up.esm.js +640 -0
- package/dist/{tri-xzRLIIMN.esm.js → tri-D_gHPWrq.esm.js} +137 -8
- package/dist/tri.d.ts +2 -2
- package/dist/tri.esm-CftnGf9w.esm.js +3115 -0
- package/dist/tri.esm.js +2 -2
- package/dist/trueSight-CbrZUzLx.esm.js +1 -0
- package/dist/{trueSightService-fLmL_cyg.esm.js → trueSightService-BMp8g65B.esm.js} +25 -16
- package/dist/trust-graph.d.ts +87 -27
- package/dist/trust-graph.esm.js +6 -25
- package/dist/trustGraphStateMachine-0Ehwried.esm.js +58 -0
- package/dist/types-B9C8W01q.d.ts +34 -0
- package/dist/types-BNkzXOXE.d.ts +45 -0
- package/dist/{types-B6HsSzpk.d.ts → types-BZsmNYom.d.ts} +77 -9
- package/dist/types-BinnzVrL.d.ts +6 -0
- package/dist/{types-CJ7Yl9K-.d.ts → types-Bpo97EOh.d.ts} +4 -2
- package/dist/{types-0L-eFDmr.d.ts → types-BwMpWCVG.d.ts} +6 -2
- package/dist/{types-BQA7lRDV.d.ts → types-C3rfDzgE.d.ts} +4 -2
- package/dist/types-CXTDuzUJ.d.ts +16 -0
- package/dist/{types-BEwVKkLJ.d.ts → types-CeEcakO7.d.ts} +7 -1
- package/dist/{types-DUnFZ08M.d.ts → types-Cy6Lx3L6.d.ts} +18 -10
- package/dist/{types-BAxn7MpY.d.ts → types-D-FEM1rT.d.ts} +156 -58
- package/dist/types-D6Q1D1kx.d.ts +33 -0
- package/dist/{events-Du2A4-Qr.esm.js → types-DLsivQsu.esm.js} +6 -303
- package/dist/{types-DPIDuhut.d.ts → types-DNVzoRvi.d.ts} +2 -1
- package/dist/types-DWqO7owj.d.ts +58 -0
- package/dist/{types-yPH8lAH-.d.ts → types-HHgsFhZn.d.ts} +16 -3
- package/dist/{types-Ckir_BEs.d.ts → types-LbccjQYX.d.ts} +3 -2
- package/dist/{types-CK8Jbjkp.d.ts → types-PnJXvTkV.d.ts} +1 -1
- package/dist/types-g3NuVCT9.d.ts +118 -0
- package/dist/types-tOSLpcSa.d.ts +231 -0
- package/dist/urlUtils-B2wagB5v.esm.js +39 -0
- package/dist/usStates-CwOQ2kAx.esm.js +209 -0
- package/dist/video-selfie.d.ts +27 -17
- package/dist/video-selfie.esm.js +105 -26
- package/dist/{videoSelfieCameraWarmer-BBNKiau1.esm.js → videoSelfieCameraWarmer-BpP0_lDr.esm.js} +47 -29
- package/dist/{videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js → videoSelfieFlowModuleMachine-IWdxw1TW.esm.js} +1 -1
- package/dist/{videoSelfieStepDetector-CGsTltqB.d.ts → videoSelfieStepDetector-CxOc3kSI.d.ts} +24 -9
- package/dist/virtualCameraCheck-eFOm2C9q.esm.js +27 -0
- package/dist/{warmup-BElYWRh7.esm.js → warmup-ClZxXOkg.esm.js} +378 -57
- package/dist/{warmup-BO57syF6.d.ts → warmup-SWu5L7cW.d.ts} +19 -2
- package/dist/wasm.d.ts +9 -3
- package/dist/wasm.esm.js +3 -3
- package/dist/wasmDeepsightConfigSync-DukEcrU8.esm.js +77 -0
- package/dist/{wasmDsFlagSync-CYj5LL9z.esm.js → wasmDsFlagSync-Bw-P5OG1.esm.js} +1 -1
- package/dist/{wasmWebClient-BjZw_7OB.esm.js → wasmWebClient-BLtlzQhv.esm.js} +77 -29
- package/dist/watchlist-for-business.d.ts +2 -1
- package/dist/watchlist-for-business.esm.js +2 -2
- package/dist/watchlist.d.ts +1 -1
- package/dist/watchlist.esm.js +2 -2
- package/dist/{watchlistForBusinessManager-CZZOFkGl.esm.js → watchlistForBusinessManager-d8kdf35n.esm.js} +40 -8
- package/dist/{watchlistForBusinessManager-B3GDPZrr.d.ts → watchlistForBusinessManager-l7ZERQcV.d.ts} +57 -21
- package/dist/watchlistForBusinessStateMachine-Y9wFmuMH.esm.js +170 -0
- package/dist/{watchlistManager-DXtX94SN.esm.js → watchlistManager-D1BVrd3H.esm.js} +5 -3
- package/dist/{watchlistManager-DJQOd8Pw.d.ts → watchlistManager-DQq4GxBO.d.ts} +3 -3
- package/dist/{watchlistStateMachine-McALifag.esm.js → watchlistStateMachine-Da4p0sTE.esm.js} +4 -6
- package/dist/workflow.d.ts +10 -6
- package/dist/workflow.esm.js +95 -60
- package/dist/{xstate-actors.esm-8Gzepa_A.esm.js → xstate-actors.esm-BCcwgosu.esm.js} +1 -1
- package/dist/xstate.cjs-D6Ur0X1F.d.ts +7 -0
- package/dist/{xstate.esm-DSajW7CJ.esm.js → xstate.esm-CIqUf_i6.esm.js} +1 -125
- package/package.json +34 -7
- package/dist/Actor-DpTj5PFb.d.ts +0 -1
- package/dist/IBrowserEnvironmentCapability-DEaRRk-R.esm.js +0 -9
- package/dist/addressSearch-DPjIKJrX.esm.js +0 -563
- package/dist/camera-9wWD-pwg.d.ts +0 -4
- package/dist/cpf-uAZTPUBy.esm.js +0 -61
- package/dist/deepsightLoader-sH7920zw.esm.js +0 -55
- package/dist/ekybStateMachine-BfgOUZMK.esm.js +0 -933
- package/dist/ekycStateMachine-CDnI_NRq.esm.js +0 -1443
- package/dist/ekycUtils-zY8CdKJL.esm.js +0 -300
- package/dist/flowServices-X6Rwf_7E.esm.js +0 -688
- package/dist/index-DpTj5PFb.d.ts +0 -1
- package/dist/thumbmark.esm-CRc0cYvz.esm.js +0 -1242
- package/dist/tri.esm-BIjHhBJ2.esm.js +0 -2620
- package/dist/types-BvLo3U4u.d.ts +0 -134
- package/dist/types-zOgZqMni.d.ts +0 -6
- package/dist/urlUtils-6jsE6rKp.esm.js +0 -23
- package/dist/watchlistForBusinessStateMachine-B66E7jud.esm.js +0 -78
- /package/dist/{types-BSBzhHRH2.d.ts → types-BSBzhHRH.d.ts} +0 -0
|
@@ -3,10 +3,21 @@ type WasmSource = string | ArrayBuffer | Uint8Array;
|
|
|
3
3
|
type WasmGlueModule = {
|
|
4
4
|
Module?: unknown;
|
|
5
5
|
};
|
|
6
|
+
/**
|
|
7
|
+
* Lazily imports a JavaScript glue module, for example
|
|
8
|
+
* `() => import('@incodetech/wasm-assets/webLib.js')`.
|
|
9
|
+
*
|
|
10
|
+
* Resolve to the glue module unchanged. Do not wrap its `Module` factory to
|
|
11
|
+
* construct, configure or delete WASM API objects such as `UtilityApi`:
|
|
12
|
+
* deleting one ends the page's fingerprint and behavior signal collection
|
|
13
|
+
* for good, and the SDK cannot restart it (ENG-62947). The SDK already
|
|
14
|
+
* silences WASM output unless `showLogs` is `true`.
|
|
15
|
+
*/
|
|
6
16
|
type WasmGlueLoader = () => Promise<WasmGlueModule>;
|
|
7
17
|
type WasmPipeline = 'selfie' | 'onDeviceSelfie' | 'idCapture' | 'videoSelfie' | 'videoSelfieId';
|
|
8
18
|
declare const WASM_MODEL_FILES: {
|
|
9
19
|
readonly idCapture: "id_capture_2_01_fp16.ortmodelv2";
|
|
20
|
+
readonly idCaptureV3: "id_capture_3_02_fp16.ortmodelv2";
|
|
10
21
|
readonly idFiqa: "id_fiqa_19a81a0b9bf6492eb03b4667f6db4c85_fp16.ortmodelv2";
|
|
11
22
|
readonly idFaceDetector: "id_facedetector_v2_1_fp16.ortmodelv2";
|
|
12
23
|
readonly barcode: "barcode_enhance_896x224_fp16.ortmodelv2";
|
|
@@ -63,9 +74,15 @@ type WasmModuleConfig = {
|
|
|
63
74
|
* `wasmSimdPath`.
|
|
64
75
|
*/
|
|
65
76
|
glueCodeSimdPath?: string;
|
|
66
|
-
/**
|
|
77
|
+
/**
|
|
78
|
+
* Lazy ES-module loader for the standard JavaScript glue. Resolves to the
|
|
79
|
+
* glue module unchanged; see {@link WasmGlueLoader}.
|
|
80
|
+
*/
|
|
67
81
|
loadGlue?: WasmGlueLoader;
|
|
68
|
-
/**
|
|
82
|
+
/**
|
|
83
|
+
* Lazy ES-module loader for the SIMD JavaScript glue. Resolves to the glue
|
|
84
|
+
* module unchanged; see {@link WasmGlueLoader}.
|
|
85
|
+
*/
|
|
69
86
|
loadGlueSimd?: WasmGlueLoader;
|
|
70
87
|
/**
|
|
71
88
|
* Enables the SIMD-first load attempt.
|
package/dist/wasm.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as WASM_MODEL_FILES, c as WasmPipeline, l as WasmSource, o as WasmGlueLoader, r as warmupWasm, s as WasmModelName, t as WarmupConfig } from "./warmup-
|
|
2
|
-
import { c as setWasmConfig, i as initializeWasmUtil, n as WasmConfig, r as ensureWasmPipelines, s as resolveWasmConfigForPipelines, u as upgradeToWasmHttpClient } from "./setup-
|
|
1
|
+
import { a as WASM_MODEL_FILES, c as WasmPipeline, l as WasmSource, o as WasmGlueLoader, r as warmupWasm, s as WasmModelName, t as WarmupConfig } from "./warmup-SWu5L7cW.js";
|
|
2
|
+
import { c as setWasmConfig, i as initializeWasmUtil, n as WasmConfig, r as ensureWasmPipelines, s as resolveWasmConfigForPipelines, u as upgradeToWasmHttpClient } from "./setup-Cr2KCwau.js";
|
|
3
3
|
//#region ../infra/src/wasm/wasmDefaults.d.ts
|
|
4
4
|
/** The WASM version bundled and tested with this SDK release. */
|
|
5
|
-
declare const DEFAULT_WASM_VERSION = "v2.14.
|
|
5
|
+
declare const DEFAULT_WASM_VERSION = "v2.14.55-post1";
|
|
6
6
|
type UrlWasmConfig = WarmupConfig & {
|
|
7
7
|
wasmPath: string;
|
|
8
8
|
wasmSimdPath: string;
|
|
@@ -25,7 +25,13 @@ type DefineWasmOptions = {
|
|
|
25
25
|
pipelines: readonly WasmPipeline[];
|
|
26
26
|
wasm: WasmSource;
|
|
27
27
|
wasmSimd?: WasmSource;
|
|
28
|
+
/**
|
|
29
|
+
* Imports the standard glue, e.g.
|
|
30
|
+
* `() => import('@incodetech/wasm-assets/webLib.js')`. Return the module
|
|
31
|
+
* unchanged; see {@link WasmGlueLoader}.
|
|
32
|
+
*/
|
|
28
33
|
glue: WasmGlueLoader;
|
|
34
|
+
/** Imports the SIMD glue. Return the module unchanged, like `glue`. */
|
|
29
35
|
glueSimd?: WasmGlueLoader;
|
|
30
36
|
models: Partial<Record<WasmModelName, WasmSource>>;
|
|
31
37
|
/**
|
package/dist/wasm.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { s as warmupWasm } from "./warmup-
|
|
3
|
-
import { a as resolveWasmConfigForPipelines, c as upgradeToWasmHttpClient, n as initializeWasmUtil, o as setWasmConfig, t as ensureWasmPipelines } from "./setup-
|
|
1
|
+
import { A as WASM_PIPELINE_MODEL_NAMES, C as buildWasmConfigFromBasePath, D as WASM_MODEL_FILES, E as resolveWasmConfig, O as WASM_PIPELINE_LAZY_MODEL_NAMES, S as buildDefaultWasmConfig, x as DEFAULT_WASM_VERSION } from "./wasmWebClient-BLtlzQhv.esm.js";
|
|
2
|
+
import { s as warmupWasm } from "./warmup-ClZxXOkg.esm.js";
|
|
3
|
+
import { a as resolveWasmConfigForPipelines, c as upgradeToWasmHttpClient, n as initializeWasmUtil, o as setWasmConfig, t as ensureWasmPipelines } from "./setup-D0QZHkS8.esm.js";
|
|
4
4
|
//#region src/defineWasm.ts
|
|
5
5
|
function requiredModels(pipelines) {
|
|
6
6
|
const models = /* @__PURE__ */ new Set();
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
//#region ../infra/src/wasm/wasmMetadataVersionSync.ts
|
|
2
|
+
let metadataV2Enabled = false;
|
|
3
|
+
let applyToRuntime$1;
|
|
4
|
+
/**
|
|
5
|
+
* Selects the capture-metadata document the kit emits (ml-wasm-kit `smv`,
|
|
6
|
+
* ADR 0009): `true` picks the v2 document Deepsight 2.0 scores, `false` (the
|
|
7
|
+
* default) the v1 document. The selection is per module: a module selects v2
|
|
8
|
+
* exactly while it holds a Deepsight 2.0 config, through
|
|
9
|
+
* `wasmDeepsightConfigSync.ts`, the only caller, which also returns to v1
|
|
10
|
+
* when a session resets. Purely in-memory,
|
|
11
|
+
* like `setWasmDsFlagSync`: the value waits here until the WASM runtime loads,
|
|
12
|
+
* and from then on the runtime latches it, applies it at once when WASM is up
|
|
13
|
+
* and replays it after every `initialize()`, because the kit keeps the
|
|
14
|
+
* selector as realm state that a new module instance resets to v1.
|
|
15
|
+
*/
|
|
16
|
+
function setWasmMetadataV2Enabled(enabled) {
|
|
17
|
+
metadataV2Enabled = enabled;
|
|
18
|
+
applyToRuntime$1?.(enabled);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* For the `WasmRuntime` singleton, once, when its module loads: replays the
|
|
22
|
+
* selection made before the runtime existed and forwards every later one.
|
|
23
|
+
*/
|
|
24
|
+
function bindWasmMetadataV2Applier(apply) {
|
|
25
|
+
applyToRuntime$1 = apply;
|
|
26
|
+
apply(metadataV2Enabled);
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
//#region ../infra/src/wasm/wasmDeepsightConfigSync.ts
|
|
30
|
+
let deepsightConfig = "";
|
|
31
|
+
let current;
|
|
32
|
+
let applyToRuntime;
|
|
33
|
+
/**
|
|
34
|
+
* Hands the kit one module's Deepsight 2.0 signal config (ml-wasm-kit
|
|
35
|
+
* `sdsc`): the JSON text of its `deepsightCaptureConfig`, or `""` for none.
|
|
36
|
+
* The same set selects the module's capture-metadata document (`smv`): v2
|
|
37
|
+
* with a config, v1 without one, so the two never disagree. Purely in-memory:
|
|
38
|
+
* both values wait until the WASM runtime loads, and from then on the runtime
|
|
39
|
+
* latches them, sends them at once when WASM is up and replays them after
|
|
40
|
+
* every `initialize()`, so the module's first camera step sees them. Returns
|
|
41
|
+
* the handle that clears both.
|
|
42
|
+
*/
|
|
43
|
+
function setWasmDeepsightConfigSync(config) {
|
|
44
|
+
const handle = { clear: () => {
|
|
45
|
+
if (current !== handle) return;
|
|
46
|
+
current = void 0;
|
|
47
|
+
apply("");
|
|
48
|
+
} };
|
|
49
|
+
current = handle;
|
|
50
|
+
apply(config);
|
|
51
|
+
return handle;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Clears whatever a module still holds, at the end of a session: sends `""`
|
|
55
|
+
* and selects the v1 document, and turns every outstanding handle into a
|
|
56
|
+
* no-op, so a module that never stopped cannot carry its config or v2 into the
|
|
57
|
+
* next session.
|
|
58
|
+
*/
|
|
59
|
+
function resetWasmDeepsightConfigSync() {
|
|
60
|
+
current = void 0;
|
|
61
|
+
apply("");
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* For the `WasmRuntime` singleton, once, when its module loads: replays the
|
|
65
|
+
* config set before the runtime existed and forwards every later one.
|
|
66
|
+
*/
|
|
67
|
+
function bindWasmDeepsightConfigApplier(applier) {
|
|
68
|
+
applyToRuntime = applier;
|
|
69
|
+
applier(deepsightConfig);
|
|
70
|
+
}
|
|
71
|
+
function apply(config) {
|
|
72
|
+
setWasmMetadataV2Enabled(config !== "");
|
|
73
|
+
deepsightConfig = config;
|
|
74
|
+
applyToRuntime?.(config);
|
|
75
|
+
}
|
|
76
|
+
//#endregion
|
|
77
|
+
export { bindWasmMetadataV2Applier as i, resetWasmDeepsightConfigSync as n, setWasmDeepsightConfigSync as r, bindWasmDeepsightConfigApplier as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as utilityWasmApi } from "./WasmUtilProvider-
|
|
1
|
+
import { i as utilityWasmApi } from "./WasmUtilProvider-C4x5gc1c.esm.js";
|
|
2
2
|
//#region ../infra/src/wasm/wasmDsFlagSync.ts
|
|
3
3
|
/**
|
|
4
4
|
* Sets the Deepsight (ds) flag that the WASM utility API receives on every
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as getTimestamp } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
|
|
2
2
|
//#region ../infra/src/wasm/wasmIntegrityManifest.ts
|
|
3
3
|
/** SHA-256 digests of the official WASM release files this SDK loads. */
|
|
4
4
|
const WASM_INTEGRITY_MANIFEST = {
|
|
5
|
-
wasmVersion: "v2.14.
|
|
5
|
+
wasmVersion: "v2.14.55-post1",
|
|
6
6
|
files: {
|
|
7
7
|
"models/current/age_estimation_v2_2_2_fp16.ortmodelv2": "70bd372b5e140ea8e9773a25d371cb65e5a9090651fdfe73ab6fc7ce25d59c83",
|
|
8
8
|
"models/current/barcode_enhance_896x224_fp16.ortmodelv2": "bccecd74abf48181efb95bf020784b7e50d37ae255bf89c14c2c5186976279e0",
|
|
9
9
|
"models/current/face_attributes_v1_3_fp16.ortmodelv2": "96079ec080a92ae1821b456f06281a604b4b013af42313f9668210c9bbe7041f",
|
|
10
10
|
"models/current/face_occlusion_v0_2_fp16.ortmodelv2": "7a846b12b7a9a5afe72e07f19b408095439a214aaa306e88d34d1f17ffce72fb",
|
|
11
11
|
"models/current/id_capture_2_01_fp16.ortmodelv2": "06b337368249131af6bab66bdf4fca680298034e3e83d678656d255cdb480507",
|
|
12
|
+
"models/current/id_capture_3_02_fp16.ortmodelv2": "3347ac3cbd6996a2457214d4f7cabee220c9b13b22bf1818c1936c459d76c5a6",
|
|
12
13
|
"models/current/id_facedetector_v2_1_fp16.ortmodelv2": "ab35d7c2f69d5c156f7e247bde652c4ac7b78cdc4a90ef55f5a928edc54e2bd8",
|
|
13
14
|
"models/current/id_fiqa_19a81a0b9bf6492eb03b4667f6db4c85_fp16.ortmodelv2": "1cc02608aed0078bf9cc66ae4f51b150e7b5aa65c5fb270248bda7c327867d26",
|
|
14
15
|
"models/current/mls_regressor_4773007c657b4f05a460321456740d0f_fp16.ortmodelv2": "74a955dff00183c69544a9b61cc7e1122c7cd3814811dcd7ae8cf862bda35c41",
|
|
@@ -19,19 +20,20 @@ const WASM_INTEGRITY_MANIFEST = {
|
|
|
19
20
|
"models/legacy/face_attributes_v1_3_fp16.ortmodelv2": "7c6754b63b4e205370463df4c6396f29123d7b5a17823a2d78a59b2fb17cc98b",
|
|
20
21
|
"models/legacy/face_occlusion_v0_2_fp16.ortmodelv2": "19fc95f2081e55962045f0e38387399fb11c1b636699e31558383d2ea4156aed",
|
|
21
22
|
"models/legacy/id_capture_2_01_fp16.ortmodelv2": "2f791bbf1f0dc9c6b8ff95587ce61479a764a18070e83658f6366996a7df9615",
|
|
23
|
+
"models/legacy/id_capture_3_02_fp16.ortmodelv2": "8c117db367e2c18b2b95ad6033ce062b5b5cf6bff1ed1ceb94436af404764a47",
|
|
22
24
|
"models/legacy/id_facedetector_v2_1_fp16.ortmodelv2": "f790693395cc1473a824a97b86fd2943586b490582e003b240dff4d51d9f417f",
|
|
23
25
|
"models/legacy/id_fiqa_19a81a0b9bf6492eb03b4667f6db4c85_fp16.ortmodelv2": "d058e82efca7c30a35dd0a03472695656c105952f27af2ea158cb00818caab8c",
|
|
24
26
|
"models/legacy/mls_regressor_4773007c657b4f05a460321456740d0f_fp16.ortmodelv2": "e41887f75b284ba1f973f2a26209bf365da8a587d266492b642e5b7c36716069",
|
|
25
27
|
"models/legacy/ondevice_physical_liveness_v2_1_fp16.ortmodelv2": "405eee9fd961c48fff608246ef579dc8ce9f0b5ce51361e05dac7d9afcf9162d",
|
|
26
28
|
"models/legacy/selfie_bf_angles_192x192_opset9_fp16.ortmodelv2": "1c8dda528d5111fa7b4272ffabca7cf0a59099f57258aaece7262974aebafc4a",
|
|
27
|
-
"webLib.js": "
|
|
28
|
-
"webLib.wasm": "
|
|
29
|
-
"webLibSimd.js": "
|
|
30
|
-
"webLibSimd.wasm": "
|
|
29
|
+
"webLib.js": "b6d1c16c35b19138abe85858f21723bb63429759ed8ca93b3e99de81261d2a5c",
|
|
30
|
+
"webLib.wasm": "ab50891a3edd1f5579a5cf6ed4d0544694f813b2d7d8ec3d126ccfa9473b8297",
|
|
31
|
+
"webLibSimd.js": "e43bacb30a8e55b8b93a63cc07c849fbd230e7b042f724b95c8f2182e3f53392",
|
|
32
|
+
"webLibSimd.wasm": "60d833cf79005e59d3b8bef2d90f0bfbf1f7d2cff1b0c93630fb3b87a2d5dcae"
|
|
31
33
|
},
|
|
32
34
|
dist: {
|
|
33
|
-
"webLib.js": "
|
|
34
|
-
"webLibSimd.js": "
|
|
35
|
+
"webLib.js": "e1a8a870cbab9062e359e31c3d4074a0f51f1ea9f87b154068b205af2bd0bf53",
|
|
36
|
+
"webLibSimd.js": "7f142e84e58437596215112f07ee92fe7340fd38c1d01a918fc4073c95e1582b"
|
|
35
37
|
}
|
|
36
38
|
};
|
|
37
39
|
//#endregion
|
|
@@ -189,6 +191,7 @@ async function verifyWasmAsset(asset, bytes, fetchMs) {
|
|
|
189
191
|
//#region ../infra/src/wasm/wasmAssets.ts
|
|
190
192
|
const WASM_MODEL_FILES = {
|
|
191
193
|
idCapture: "id_capture_2_01_fp16.ortmodelv2",
|
|
194
|
+
idCaptureV3: "id_capture_3_02_fp16.ortmodelv2",
|
|
192
195
|
idFiqa: "id_fiqa_19a81a0b9bf6492eb03b4667f6db4c85_fp16.ortmodelv2",
|
|
193
196
|
idFaceDetector: "id_facedetector_v2_1_fp16.ortmodelv2",
|
|
194
197
|
barcode: "barcode_enhance_896x224_fp16.ortmodelv2",
|
|
@@ -231,17 +234,21 @@ const WASM_PIPELINE_LAZY_MODEL_NAMES = {
|
|
|
231
234
|
videoSelfieId: []
|
|
232
235
|
};
|
|
233
236
|
/**
|
|
234
|
-
* Models a pipeline's
|
|
237
|
+
* Models a pipeline's extra workflow profiles can use but that a pre-existing
|
|
235
238
|
* self-hosted configuration is NOT required to supply. Deliberately not part of
|
|
236
239
|
* `defineWasm`'s required set: adding a model to a released pipeline's required
|
|
237
240
|
* list is a breaking change for every self-hoster following the published
|
|
238
241
|
* WASM-Configuration walkthrough. When an optional model is absent, warmup skips
|
|
239
|
-
* the
|
|
242
|
+
* the profile that needs it instead of failing.
|
|
240
243
|
*/
|
|
241
244
|
const WASM_PIPELINE_OPTIONAL_MODEL_NAMES = {
|
|
242
245
|
selfie: [],
|
|
243
246
|
onDeviceSelfie: [],
|
|
244
|
-
idCapture: [
|
|
247
|
+
idCapture: [
|
|
248
|
+
"mlsRegressor",
|
|
249
|
+
"idFaceDetector",
|
|
250
|
+
"idCaptureV3"
|
|
251
|
+
],
|
|
245
252
|
videoSelfie: [],
|
|
246
253
|
videoSelfieId: []
|
|
247
254
|
};
|
|
@@ -314,7 +321,7 @@ function deriveSiblingJsPath(wasmPath) {
|
|
|
314
321
|
//#region ../infra/src/wasm/wasmDefaults.ts
|
|
315
322
|
const WASM_CDN_BASE_URL = "https://cdn.incodesmile.com/ml-wasm-kit-release";
|
|
316
323
|
/** The WASM version bundled and tested with this SDK release. */
|
|
317
|
-
const DEFAULT_WASM_VERSION = "v2.14.
|
|
324
|
+
const DEFAULT_WASM_VERSION = "v2.14.55-post1";
|
|
318
325
|
const PATH_KEYS = [
|
|
319
326
|
"wasmPath",
|
|
320
327
|
"wasmSimdPath",
|
|
@@ -425,7 +432,7 @@ const BARCODE_ENHANCE_MODEL_FILE = WASM_MODEL_FILES.barcode;
|
|
|
425
432
|
* NOT part of any warmup model bundle.
|
|
426
433
|
*/
|
|
427
434
|
function getBarcodeEnhanceModelUrl(modelsBasePath, variant = "current") {
|
|
428
|
-
const source = buildModelVariantSources(modelsBasePath ?? `${WASM_CDN_BASE_URL}/v2.14.
|
|
435
|
+
const source = buildModelVariantSources(modelsBasePath ?? `${WASM_CDN_BASE_URL}/v2.14.55-post1/models`, BARCODE_ENHANCE_MODEL_FILE);
|
|
429
436
|
return typeof source === "string" ? source : source[variant];
|
|
430
437
|
}
|
|
431
438
|
/**
|
|
@@ -597,6 +604,27 @@ async function importVerifiedGlue(bytes) {
|
|
|
597
604
|
}
|
|
598
605
|
}
|
|
599
606
|
//#endregion
|
|
607
|
+
//#region ../infra/src/wasm/wasmStartGate.ts
|
|
608
|
+
/**
|
|
609
|
+
* SDK 2's own addition, not mirrored from ml-wasm-kit.
|
|
610
|
+
*
|
|
611
|
+
* Holds back the WASM module load while another fingerprint module on the
|
|
612
|
+
* page initializes, such as TRI's fpSignals build. ML-Wasm's integration
|
|
613
|
+
* guide: on the legacy build the two modules must be initialized one after
|
|
614
|
+
* the other, since both use `window.wasmArrayBuffer`.
|
|
615
|
+
*/
|
|
616
|
+
let startGate = null;
|
|
617
|
+
/** Sets what the next module load waits for; `null` removes the wait. */
|
|
618
|
+
function setWasmStartGate(gate) {
|
|
619
|
+
startGate = gate;
|
|
620
|
+
}
|
|
621
|
+
/** Settles with the gate. A gate that rejects or throws never blocks the load. */
|
|
622
|
+
async function waitForWasmStartGate() {
|
|
623
|
+
try {
|
|
624
|
+
await startGate?.();
|
|
625
|
+
} catch {}
|
|
626
|
+
}
|
|
627
|
+
//#endregion
|
|
600
628
|
//#region ../infra/src/wasm/wasmStorageFallback.ts
|
|
601
629
|
/**
|
|
602
630
|
* SDK-local compatibility fallback for ml-wasm-kit releases whose embind
|
|
@@ -825,11 +853,8 @@ async function resolveGlue(loader, glueCodePath, slot) {
|
|
|
825
853
|
if (!glueCodePath) throw new Error("WASM glue code is required");
|
|
826
854
|
return await importGlueAt(glueCodePath, slot);
|
|
827
855
|
}
|
|
828
|
-
async function instantiate(factory,
|
|
829
|
-
window.wasmArrayBuffer =
|
|
830
|
-
kind: "binary",
|
|
831
|
-
slot
|
|
832
|
-
});
|
|
856
|
+
async function instantiate(factory, wasmBinary, showLogs = false) {
|
|
857
|
+
window.wasmArrayBuffer = wasmBinary;
|
|
833
858
|
return await factory({
|
|
834
859
|
wasmBinary: window.wasmArrayBuffer,
|
|
835
860
|
print: (text) => {
|
|
@@ -866,16 +891,20 @@ async function loadWasmModule(config) {
|
|
|
866
891
|
if (loadPromise) return loadPromise;
|
|
867
892
|
const startedAtMs = getTimestamp();
|
|
868
893
|
loadPromise = (async () => {
|
|
894
|
+
await waitForWasmStartGate();
|
|
869
895
|
let storageFallbackLease = null;
|
|
870
896
|
try {
|
|
871
897
|
storageFallbackLease = acquireWasmStorageFallback();
|
|
872
898
|
const wantSimd = config.useSimd !== false;
|
|
873
899
|
const simdBinary = config.wasmSimdPath ?? config.wasmPath;
|
|
874
900
|
if (wantSimd && simdBinary !== config.wasmPath) try {
|
|
875
|
-
const simdFactory = await resolveGlue(config.loadGlueSimd, typeof simdBinary === "string" ? config.glueCodeSimdPath || deriveSiblingJsPath(simdBinary) : config.glueCodeSimdPath, "webLibSimd.js")
|
|
901
|
+
const [simdFactory, simdBytes] = await Promise.all([resolveGlue(config.loadGlueSimd, typeof simdBinary === "string" ? config.glueCodeSimdPath || deriveSiblingJsPath(simdBinary) : config.glueCodeSimdPath, "webLibSimd.js"), resolveWasmSource(simdBinary, {
|
|
902
|
+
kind: "binary",
|
|
903
|
+
slot: "webLibSimd.wasm"
|
|
904
|
+
})]);
|
|
876
905
|
window.Module = simdFactory;
|
|
877
906
|
const result = {
|
|
878
|
-
wasmModule: await instantiate(simdFactory,
|
|
907
|
+
wasmModule: await instantiate(simdFactory, simdBytes, config.showLogs),
|
|
879
908
|
simdUsed: true
|
|
880
909
|
};
|
|
881
910
|
loadedResult = result;
|
|
@@ -896,10 +925,13 @@ async function loadWasmModule(config) {
|
|
|
896
925
|
message: `simd load failed falling back ${describeLoadError(simdError)}`
|
|
897
926
|
});
|
|
898
927
|
}
|
|
899
|
-
const nonSimdFactory = await resolveGlue(config.loadGlue, config.glueCodePath, "webLib.js")
|
|
928
|
+
const [nonSimdFactory, nonSimdBytes] = await Promise.all([resolveGlue(config.loadGlue, config.glueCodePath, "webLib.js"), resolveWasmSource(config.wasmPath, {
|
|
929
|
+
kind: "binary",
|
|
930
|
+
slot: "webLib.wasm"
|
|
931
|
+
})]);
|
|
900
932
|
window.Module = nonSimdFactory;
|
|
901
933
|
const result = {
|
|
902
|
-
wasmModule: await instantiate(nonSimdFactory,
|
|
934
|
+
wasmModule: await instantiate(nonSimdFactory, nonSimdBytes, config.showLogs),
|
|
903
935
|
simdUsed: false
|
|
904
936
|
};
|
|
905
937
|
loadedResult = result;
|
|
@@ -925,6 +957,18 @@ async function loadWasmModule(config) {
|
|
|
925
957
|
})();
|
|
926
958
|
return loadPromise;
|
|
927
959
|
}
|
|
960
|
+
const moduleResetListeners = /* @__PURE__ */ new Set();
|
|
961
|
+
/**
|
|
962
|
+
* Runs `listener` every time {@link resetWasmModule} drops the memoized
|
|
963
|
+
* module. `WasmRuntime` uses it to delete the UtilityApi it keeps for that
|
|
964
|
+
* module. Returns the unsubscribe function.
|
|
965
|
+
*/
|
|
966
|
+
function onWasmModuleReset(listener) {
|
|
967
|
+
moduleResetListeners.add(listener);
|
|
968
|
+
return () => {
|
|
969
|
+
moduleResetListeners.delete(listener);
|
|
970
|
+
};
|
|
971
|
+
}
|
|
928
972
|
function emptyCounters() {
|
|
929
973
|
return {
|
|
930
974
|
analyzeFrameCount: 0,
|
|
@@ -1020,7 +1064,7 @@ function resetWasmCallDiagnostics() {
|
|
|
1020
1064
|
//#endregion
|
|
1021
1065
|
//#region ../infra/src/wasm/wasmCallUtils.ts
|
|
1022
1066
|
/**
|
|
1023
|
-
* Poll bound applied to the ML long-poll call sites (`
|
|
1067
|
+
* Poll bound applied to the ML long-poll call sites (`poc` / `rsp` in
|
|
1024
1068
|
* `utilityWasmApi.ts`).
|
|
1025
1069
|
*
|
|
1026
1070
|
* Count-based, not deadline-based: the poll loop yields with `setTimeout(0)`,
|
|
@@ -1028,11 +1072,15 @@ function resetWasmCallDiagnostics() {
|
|
|
1028
1072
|
* would false-trip whenever the user backgrounds the page. A count bounds the
|
|
1029
1073
|
* number of C++ invocations regardless of how slowly the event loop turns.
|
|
1030
1074
|
*
|
|
1031
|
-
* 3000 is deliberately generous.
|
|
1032
|
-
*
|
|
1033
|
-
*
|
|
1034
|
-
*
|
|
1035
|
-
*
|
|
1075
|
+
* 3000 is deliberately generous. The pre-capture check (`prc`, until
|
|
1076
|
+
* ml-wasm-kit v2.14.52 moved it into the camera step) alone burned ~750 idle
|
|
1077
|
+
* polls waiting on the ~3s of camera frames the C++ side needs before it
|
|
1078
|
+
* reports done, so the bound sits well above the legitimate worst case. It
|
|
1079
|
+
* exists to break a permanently stuck poll that would otherwise hold the ML
|
|
1080
|
+
* semaphore forever and freeze detection — not to enforce a latency budget.
|
|
1081
|
+
* The camera step itself (`cst`) is deliberately unbounded: an open permission
|
|
1082
|
+
* prompt or a hidden tab parks it, and `rcc` is the only cancel — see
|
|
1083
|
+
* `WasmRuntime.startCameraCycle`.
|
|
1036
1084
|
*/
|
|
1037
1085
|
const ML_CALL_MAX_POLLS = 3e3;
|
|
1038
1086
|
/**
|
|
@@ -1271,4 +1319,4 @@ function ensureReady() {
|
|
|
1271
1319
|
return webClientApi;
|
|
1272
1320
|
}
|
|
1273
1321
|
//#endregion
|
|
1274
|
-
export {
|
|
1322
|
+
export { WASM_PIPELINE_MODEL_NAMES as A, buildWasmConfigFromBasePath as C, WASM_MODEL_FILES as D, resolveWasmConfig as E, reportWasmIntegritySummary as F, setWasmIntegrityObserver as I, buildModelVariantSources as M, missingWasmModelError as N, WASM_PIPELINE_LAZY_MODEL_NAMES as O, resolveWasmSource as P, buildDefaultWasmConfig as S, isDefaultCdnWasmConfig as T, setWasmStartGate as _, setWebApiHttpTransport as a, SemaphoreProvider as b, wasmCallWrapper as c, noteUnlockedCallStart as d, rearmWasmCallDiagnostics as f, acquireWasmStorageFallback as g, onWasmModuleReset as h, initializeWasmWebClient as i, WASM_PIPELINE_OPTIONAL_MODEL_NAMES as j, WASM_PIPELINE_MODELS as k, notePipelineStatePulled as l, loadWasmModule as m, createWebApiHostAdapter as n, setupWasmConnection as o, resetWasmCallDiagnostics as p, executeWasmRequest as r, ML_CALL_MAX_POLLS as s, WasmWebClientError as t, noteUnlockedCallEnd as u, emitWasmDiagnostic as v, getBarcodeEnhanceModelUrl as w, DEFAULT_WASM_VERSION as x, setWasmDiagnosticsHandler as y };
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as WatchlistForBusinessValidationErrors, t as WatchlistForBusinessConfig } from "./types-B9C8W01q.js";
|
|
2
|
+
import { a as createWatchlistForBusinessManager, c as watchlistForBusinessMachine, i as WatchlistForBusinessState, n as WatchlistForBusinessFormState, o as createWatchlistForBusinessManagerFromActor, r as WatchlistForBusinessManager, s as WatchlistForBusinessActor, t as WatchlistForBusinessFinishedState } from "./watchlistForBusinessManager-l7ZERQcV.js";
|
|
2
3
|
export { type WatchlistForBusinessActor, type WatchlistForBusinessConfig, type WatchlistForBusinessFinishedState, type WatchlistForBusinessFormState, type WatchlistForBusinessManager, type WatchlistForBusinessState, type WatchlistForBusinessValidationErrors, createWatchlistForBusinessManager, createWatchlistForBusinessManagerFromActor, watchlistForBusinessMachine };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as createWatchlistForBusinessManagerFromActor, t as createWatchlistForBusinessManager } from "./watchlistForBusinessManager-
|
|
1
|
+
import { n as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-Y9wFmuMH.esm.js";
|
|
2
|
+
import { n as createWatchlistForBusinessManagerFromActor, t as createWatchlistForBusinessManager } from "./watchlistForBusinessManager-d8kdf35n.esm.js";
|
|
3
3
|
export { createWatchlistForBusinessManager, createWatchlistForBusinessManagerFromActor, watchlistForBusinessMachine };
|
package/dist/watchlist.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as WatchlistState, o as watchlistMachine, r as createWatchlistManager, t as WatchlistManager } from "./watchlistManager-
|
|
1
|
+
import { n as WatchlistState, o as watchlistMachine, r as createWatchlistManager, t as WatchlistManager } from "./watchlistManager-DQq4GxBO.js";
|
|
2
2
|
//#region src/modules/watchlist/types.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Configuration options for the global watchlist module.
|
package/dist/watchlist.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as watchlistMachine } from "./watchlistStateMachine-
|
|
2
|
-
import { t as createWatchlistManager } from "./watchlistManager-
|
|
1
|
+
import { t as watchlistMachine } from "./watchlistStateMachine-Da4p0sTE.esm.js";
|
|
2
|
+
import { t as createWatchlistManager } from "./watchlistManager-D1BVrd3H.esm.js";
|
|
3
3
|
export { createWatchlistManager, watchlistMachine };
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { n as eventModuleNames
|
|
1
|
+
import { n as eventModuleNames } from "./types-DLsivQsu.esm.js";
|
|
2
|
+
import { t as createManagerInstrumentation } from "./events-PUWyizJn.esm.js";
|
|
2
3
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
4
|
+
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
5
|
+
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
|
+
import { n as watchlistForBusinessMachine, t as getMaxDateOfIncorporation } from "./watchlistForBusinessStateMachine-Y9wFmuMH.esm.js";
|
|
5
7
|
//#region src/modules/watchlist-for-business/watchlistForBusinessActor.ts
|
|
6
|
-
function createWatchlistForBusinessActor() {
|
|
7
|
-
return createActor(watchlistForBusinessMachine).start();
|
|
8
|
+
function createWatchlistForBusinessActor(options = {}) {
|
|
9
|
+
return createActor(watchlistForBusinessMachine, { input: { config: options.config ?? {} } }).start();
|
|
8
10
|
}
|
|
9
11
|
//#endregion
|
|
10
12
|
//#region src/modules/watchlist-for-business/watchlistForBusinessManager.ts
|
|
@@ -38,6 +40,11 @@ function mapState(snapshot) {
|
|
|
38
40
|
status: "form",
|
|
39
41
|
country: context.country,
|
|
40
42
|
businessName: context.businessName,
|
|
43
|
+
taxId: context.taxId,
|
|
44
|
+
dateOfIncorporation: context.dateOfIncorporation,
|
|
45
|
+
showTaxId: context.config?.taxIdEnabled === true,
|
|
46
|
+
showDateOfIncorporation: context.config?.dateOfIncorporationEnabled === true,
|
|
47
|
+
maxDateOfIncorporation: getMaxDateOfIncorporation(),
|
|
41
48
|
isValid: context.isValid,
|
|
42
49
|
validationErrors: context.validationErrors,
|
|
43
50
|
canSubmit: Object.keys(context.validationErrors ?? {}).length === 0
|
|
@@ -67,7 +74,27 @@ function createApi({ actor, trackElementClicked }) {
|
|
|
67
74
|
value
|
|
68
75
|
});
|
|
69
76
|
},
|
|
70
|
-
/**
|
|
77
|
+
/** Updates the optional Tax ID field. A blank value is not sent. */
|
|
78
|
+
setTaxId(value) {
|
|
79
|
+
actor.send({
|
|
80
|
+
type: "SET_TAX_ID",
|
|
81
|
+
value
|
|
82
|
+
});
|
|
83
|
+
},
|
|
84
|
+
/**
|
|
85
|
+
* Updates the optional date of incorporation (`YYYY-MM-DD`). A blank value
|
|
86
|
+
* is not sent; a future date blocks submit.
|
|
87
|
+
*/
|
|
88
|
+
setDateOfIncorporation(value) {
|
|
89
|
+
actor.send({
|
|
90
|
+
type: "SET_DATE_OF_INCORPORATION",
|
|
91
|
+
value
|
|
92
|
+
});
|
|
93
|
+
},
|
|
94
|
+
/**
|
|
95
|
+
* Submits the form. Transitions only when the business name is filled and
|
|
96
|
+
* every filled optional field is valid; otherwise sets `validationErrors`.
|
|
97
|
+
*/
|
|
71
98
|
submit() {
|
|
72
99
|
trackElementClicked?.("submit");
|
|
73
100
|
actor.send({ type: "SUBMIT" });
|
|
@@ -79,6 +106,11 @@ function createApi({ actor, trackElementClicked }) {
|
|
|
79
106
|
*
|
|
80
107
|
* On API error the module completes silently (fire-and-forget).
|
|
81
108
|
*
|
|
109
|
+
* @param options.config - Optional module config. `taxIdEnabled` and
|
|
110
|
+
* `dateOfIncorporationEnabled` turn on the optional Tax ID and date-of-
|
|
111
|
+
* incorporation inputs. Without config only country and business name are
|
|
112
|
+
* collected.
|
|
113
|
+
*
|
|
82
114
|
* @example Headless usage
|
|
83
115
|
* ```typescript
|
|
84
116
|
* import { createWatchlistForBusinessManager } from '@incodetech/core/watchlist-for-business';
|
|
@@ -94,8 +126,8 @@ function createApi({ actor, trackElementClicked }) {
|
|
|
94
126
|
* manager.stop();
|
|
95
127
|
* ```
|
|
96
128
|
*/
|
|
97
|
-
function createWatchlistForBusinessManager() {
|
|
98
|
-
return createWatchlistForBusinessManagerFromActor(createWatchlistForBusinessActor());
|
|
129
|
+
function createWatchlistForBusinessManager(options = {}) {
|
|
130
|
+
return createWatchlistForBusinessManagerFromActor(createWatchlistForBusinessActor(options));
|
|
99
131
|
}
|
|
100
132
|
function createWatchlistForBusinessManagerFromActor(actor) {
|
|
101
133
|
return createManager({
|
package/dist/{watchlistForBusinessManager-B3GDPZrr.d.ts → watchlistForBusinessManager-l7ZERQcV.d.ts}
RENAMED
|
@@ -1,36 +1,47 @@
|
|
|
1
|
-
import { i as ActorRefFrom } from "./spawn-
|
|
2
|
-
import { t as Manager } from "./Manager-
|
|
3
|
-
import "./Actor-
|
|
1
|
+
import { i as ActorRefFrom } from "./spawn-COZKetCS.js";
|
|
2
|
+
import { t as Manager } from "./Manager-DufwKlav.js";
|
|
3
|
+
import "./Actor-DqjOqDfU.js";
|
|
4
|
+
import { n as WatchlistForBusinessValidationErrors, t as WatchlistForBusinessConfig } from "./types-B9C8W01q.js";
|
|
4
5
|
//#region src/modules/watchlist-for-business/watchlistForBusinessStateMachine.d.ts
|
|
5
6
|
declare const watchlistForBusinessMachine: any;
|
|
6
7
|
type WatchlistForBusinessMachine = typeof watchlistForBusinessMachine;
|
|
7
8
|
//#endregion
|
|
8
9
|
//#region src/modules/watchlist-for-business/watchlistForBusinessActor.d.ts
|
|
9
|
-
type
|
|
10
|
-
|
|
11
|
-
//#region src/modules/watchlist-for-business/types.d.ts
|
|
12
|
-
/**
|
|
13
|
-
* Configuration for the watchlist-for-business module.
|
|
14
|
-
*
|
|
15
|
-
* No server-side configuration is required — the module collects
|
|
16
|
-
* country and business name from the user and submits them to the
|
|
17
|
-
* business watchlist endpoint.
|
|
18
|
-
*/
|
|
19
|
-
type WatchlistForBusinessConfig = Record<string, never>;
|
|
20
|
-
type WatchlistForBusinessValidationErrors = {
|
|
21
|
-
businessName?: string;
|
|
10
|
+
type CreateWatchlistForBusinessActorOptions = {
|
|
11
|
+
config?: WatchlistForBusinessConfig;
|
|
22
12
|
};
|
|
13
|
+
type WatchlistForBusinessActor = ActorRefFrom<WatchlistForBusinessMachine>;
|
|
23
14
|
//#endregion
|
|
24
15
|
//#region src/modules/watchlist-for-business/watchlistForBusinessManager.d.ts
|
|
25
16
|
/** Waiting for `load()` to be called. */
|
|
26
17
|
type WatchlistForBusinessIdleState = {
|
|
27
18
|
status: 'idle';
|
|
28
19
|
};
|
|
29
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* Form is ready — use `setCountry()`, `setBusinessName()`, `setTaxId()`,
|
|
22
|
+
* `setDateOfIncorporation()`, and `submit()`.
|
|
23
|
+
*/
|
|
30
24
|
type WatchlistForBusinessFormState = {
|
|
31
25
|
status: 'form';
|
|
32
26
|
country: string;
|
|
33
27
|
businessName: string;
|
|
28
|
+
/** Optional. Sent only when `showTaxId` is true and the value is not blank. */
|
|
29
|
+
taxId: string;
|
|
30
|
+
/**
|
|
31
|
+
* Optional, `YYYY-MM-DD`. Sent only when `showDateOfIncorporation` is true
|
|
32
|
+
* and the value is not blank.
|
|
33
|
+
*/
|
|
34
|
+
dateOfIncorporation: string;
|
|
35
|
+
/** Whether the module config enables the optional Tax ID input. */
|
|
36
|
+
showTaxId: boolean;
|
|
37
|
+
/** Whether the module config enables the optional date-of-incorporation input. */
|
|
38
|
+
showDateOfIncorporation: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Latest allowed date of incorporation (`YYYY-MM-DD`): today in the user's
|
|
41
|
+
* local time. Use it as the date input's `max`; a later date fails submit.
|
|
42
|
+
*/
|
|
43
|
+
maxDateOfIncorporation: string;
|
|
44
|
+
/** Whether the required business name is filled. Optional fields never affect it. */
|
|
34
45
|
isValid: boolean;
|
|
35
46
|
validationErrors?: WatchlistForBusinessValidationErrors;
|
|
36
47
|
canSubmit: boolean;
|
|
@@ -59,6 +70,11 @@ type WatchlistForBusinessState = WatchlistForBusinessIdleState | WatchlistForBus
|
|
|
59
70
|
*
|
|
60
71
|
* On API error the module completes silently (fire-and-forget).
|
|
61
72
|
*
|
|
73
|
+
* @param options.config - Optional module config. `taxIdEnabled` and
|
|
74
|
+
* `dateOfIncorporationEnabled` turn on the optional Tax ID and date-of-
|
|
75
|
+
* incorporation inputs. Without config only country and business name are
|
|
76
|
+
* collected.
|
|
77
|
+
*
|
|
62
78
|
* @example Headless usage
|
|
63
79
|
* ```typescript
|
|
64
80
|
* import { createWatchlistForBusinessManager } from '@incodetech/core/watchlist-for-business';
|
|
@@ -74,14 +90,24 @@ type WatchlistForBusinessState = WatchlistForBusinessIdleState | WatchlistForBus
|
|
|
74
90
|
* manager.stop();
|
|
75
91
|
* ```
|
|
76
92
|
*/
|
|
77
|
-
declare function createWatchlistForBusinessManager(): Manager<WatchlistForBusinessState> & {
|
|
93
|
+
declare function createWatchlistForBusinessManager(options?: CreateWatchlistForBusinessActorOptions): Manager<WatchlistForBusinessState> & {
|
|
78
94
|
/** Transitions from `idle` to the form. Must be called before any other method. */
|
|
79
95
|
load(): void;
|
|
80
96
|
/** Updates the selected country code (ISO 3166-1 alpha-2). */
|
|
81
97
|
setCountry(country: string): void;
|
|
82
98
|
/** Updates the business name field and recomputes validity. */
|
|
83
99
|
setBusinessName(value: string): void;
|
|
84
|
-
/**
|
|
100
|
+
/** Updates the optional Tax ID field. A blank value is not sent. */
|
|
101
|
+
setTaxId(value: string): void;
|
|
102
|
+
/**
|
|
103
|
+
* Updates the optional date of incorporation (`YYYY-MM-DD`). A blank value
|
|
104
|
+
* is not sent; a future date blocks submit.
|
|
105
|
+
*/
|
|
106
|
+
setDateOfIncorporation(value: string): void;
|
|
107
|
+
/**
|
|
108
|
+
* Submits the form. Transitions only when the business name is filled and
|
|
109
|
+
* every filled optional field is valid; otherwise sets `validationErrors`.
|
|
110
|
+
*/
|
|
85
111
|
submit(): void;
|
|
86
112
|
};
|
|
87
113
|
declare function createWatchlistForBusinessManagerFromActor(actor: WatchlistForBusinessActor): Manager<WatchlistForBusinessState> & {
|
|
@@ -91,9 +117,19 @@ declare function createWatchlistForBusinessManagerFromActor(actor: WatchlistForB
|
|
|
91
117
|
setCountry(country: string): void;
|
|
92
118
|
/** Updates the business name field and recomputes validity. */
|
|
93
119
|
setBusinessName(value: string): void;
|
|
94
|
-
/**
|
|
120
|
+
/** Updates the optional Tax ID field. A blank value is not sent. */
|
|
121
|
+
setTaxId(value: string): void;
|
|
122
|
+
/**
|
|
123
|
+
* Updates the optional date of incorporation (`YYYY-MM-DD`). A blank value
|
|
124
|
+
* is not sent; a future date blocks submit.
|
|
125
|
+
*/
|
|
126
|
+
setDateOfIncorporation(value: string): void;
|
|
127
|
+
/**
|
|
128
|
+
* Submits the form. Transitions only when the business name is filled and
|
|
129
|
+
* every filled optional field is valid; otherwise sets `validationErrors`.
|
|
130
|
+
*/
|
|
95
131
|
submit(): void;
|
|
96
132
|
};
|
|
97
133
|
type WatchlistForBusinessManager = ReturnType<typeof createWatchlistForBusinessManager>;
|
|
98
134
|
//#endregion
|
|
99
|
-
export { createWatchlistForBusinessManager as a,
|
|
135
|
+
export { createWatchlistForBusinessManager as a, watchlistForBusinessMachine as c, WatchlistForBusinessState as i, WatchlistForBusinessFormState as n, createWatchlistForBusinessManagerFromActor as o, WatchlistForBusinessManager as r, WatchlistForBusinessActor as s, WatchlistForBusinessFinishedState as t };
|