@incodetech/core 2.2.0 → 2.3.0-rc.0

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.
Files changed (258) hide show
  1. package/THIRD_PARTY_NOTICES.txt +281 -0
  2. package/dist/BaseWasmProvider-Dyi6dKp1.d.ts +65 -0
  3. package/dist/{BrowserDiagnosticsCryptoProvider-B8vorxN5.esm.js → BrowserDiagnosticsCryptoProvider-C_9o3L2L.esm.js} +1 -1
  4. package/dist/{BrowserVisibilityObserverProvider-BX1BiLDK.esm.js → BrowserVisibilityObserverProvider-BrJN1B8A.esm.js} +2 -0
  5. package/dist/FaceDetectionProvider-DTetAE8H.esm.js +476 -0
  6. package/dist/FaceDetectionProvider-LdZ47bWy.d.ts +36 -0
  7. package/dist/{IIdCaptureCapability-DHTT3FC2.d.ts → IIdCaptureCapability-RNiFhvXR.d.ts} +7 -33
  8. package/dist/IWasmUtilCapability-CXXDA5l1.d.ts +159 -0
  9. package/dist/{MotionSensorProvider-DGiV77J_.esm.js → MotionSensorProvider-BgTYwg9L.esm.js} +1 -1
  10. package/dist/{deepsightService-DLVQS_RH.d.ts → StreamCanvasCapture-B3YT2Bt6.d.ts} +54 -41
  11. package/dist/{StreamCanvasCapture-D2XcXCZ4.esm.js → StreamCanvasCapture-C9jtgBdT.esm.js} +2 -2
  12. package/dist/{addressSearch-D1XpBdUS.esm.js → addressSearch-BRSu_aGA.esm.js} +1 -1
  13. package/dist/advanceableErrors-CpF2cBy6.esm.js +21 -0
  14. package/dist/ae-signature.d.ts +4 -2
  15. package/dist/ae-signature.esm.js +1 -1
  16. package/dist/antifraud.esm.js +2 -2
  17. package/dist/{antifraudManager-CQFNgSPt.esm.js → antifraudManager-Bg9ynGum.esm.js} +2 -2
  18. package/dist/{antifraudStateMachine-Bf_JVNwn.esm.js → antifraudStateMachine-BHxehiJZ.esm.js} +1 -1
  19. package/dist/{apiError-BA1d_au0.esm.js → apiError-D0v5hFyN.esm.js} +14 -2
  20. package/dist/authentication.d.ts +3 -3
  21. package/dist/authentication.esm.js +2 -2
  22. package/dist/{authenticationManager-zh9TC62P.esm.js → authenticationManager-C4B4-29g.esm.js} +5 -5
  23. package/dist/{authenticationManager-BBMGTcwW.d.ts → authenticationManager-DXTIUcma.d.ts} +7 -1
  24. package/dist/{authenticationStateMachine-xzi-vnvE.esm.js → authenticationStateMachine-DJ0zUm-A.esm.js} +6 -62
  25. package/dist/avatar.d.ts +1 -2
  26. package/dist/avatar.esm.js +1 -1
  27. package/dist/{backCameraStream-CUeYm5eu.esm.js → backCameraStream-BOtyQowf.esm.js} +83 -22
  28. package/dist/{camera-_2sXMXiF.esm.js → camera-sIa9ceW2.esm.js} +19 -1
  29. package/dist/camera.esm.js +1 -1
  30. package/dist/{canvas-E1zGkel4.esm.js → canvas-BxFzWTt-.esm.js} +19 -0
  31. package/dist/certificate-issuance.d.ts +2 -302
  32. package/dist/certificate-issuance.esm.js +3 -66
  33. package/dist/certificateIssuanceManager-Bfvkq7Cy.esm.js +69 -0
  34. package/dist/certificateIssuanceManager-DCgEidHz.d.ts +312 -0
  35. package/dist/{certificateIssuanceStateMachine-D_R92TYu.esm.js → certificateIssuanceStateMachine-BBD5h8c4.esm.js} +1 -1
  36. package/dist/consent.d.ts +1 -1
  37. package/dist/consent.esm.js +2 -2
  38. package/dist/{consentManager-BxjpLZAG.esm.js → consentManager-B5Vqdez-.esm.js} +2 -2
  39. package/dist/{consentManager-3Pbtj-RV.d.ts → consentManager-uhDPdU6i.d.ts} +4 -4
  40. package/dist/{consentStateMachine-D9D4ON8Z.esm.js → consentStateMachine-DbUmqWgV.esm.js} +1 -1
  41. package/dist/createCameraCycleOwnership-DQ5-F2oW.esm.js +826 -0
  42. package/dist/{createFaceAvatar-DQKaRise.esm.js → createFaceAvatar-BNHdeFj8.esm.js} +2 -2
  43. package/dist/createFaceAvatar-BlcTYgJv.d.ts +497 -0
  44. package/dist/cross-document-data-match.esm.js +1 -1
  45. package/dist/{crossDocumentDataMatchManager-CGT0V6RV.esm.js → crossDocumentDataMatchManager-QMOGwHXR.esm.js} +2 -2
  46. package/dist/curp-validation.d.ts +1 -1
  47. package/dist/curp-validation.esm.js +2 -2
  48. package/dist/{curpValidationManager-6Nmkn5u1.esm.js → curpValidationManager-D1ppROcF.esm.js} +2 -2
  49. package/dist/{curpValidationManager-DVGr7Fq7.d.ts → curpValidationManager-SSKNrm5Z.d.ts} +1 -1
  50. package/dist/{curpValidationStateMachine-Ds7KMacK.esm.js → curpValidationStateMachine-DvUPC_8S.esm.js} +1 -1
  51. package/dist/custom-fields.d.ts +2 -114
  52. package/dist/custom-fields.esm.js +2 -232
  53. package/dist/custom-watchlist.d.ts +2 -51
  54. package/dist/custom-watchlist.esm.js +3 -70
  55. package/dist/customFieldsManager-2j_PBq4U.esm.js +264 -0
  56. package/dist/customFieldsManager-8-W2KY4n.d.ts +141 -0
  57. package/dist/customWatchlistManager-DUVrEdw9.esm.js +73 -0
  58. package/dist/customWatchlistManager-PBWHr_oM.d.ts +64 -0
  59. package/dist/{customWatchlistStateMachine-YWSgKLbF.esm.js → customWatchlistStateMachine-qZVgkKgP.esm.js} +1 -1
  60. package/dist/{deepsightLoader--wMKWECS.esm.js → deepsightLoader-Dm7ejW4v.esm.js} +27 -71
  61. package/dist/device.d.ts +25 -2
  62. package/dist/device.esm.js +69 -7
  63. package/dist/document-capture.d.ts +2 -2
  64. package/dist/document-capture.esm.js +2 -2
  65. package/dist/{documentCaptureManager-DsQQhWry.esm.js → documentCaptureManager-DR_Wv-3H.esm.js} +2 -2
  66. package/dist/{documentCaptureManager-B3t0ydtg.d.ts → documentCaptureManager-DensIj5F.d.ts} +83 -83
  67. package/dist/{documentCaptureStateMachine-BM4Ex_5x.esm.js → documentCaptureStateMachine-CWOATHfE.esm.js} +5 -5
  68. package/dist/dynamic-forms.d.ts +1 -1
  69. package/dist/dynamic-forms.esm.js +2 -2
  70. package/dist/{dynamicFormsManager-fhK0yINk.d.ts → dynamicFormsManager-D5R_uxLQ.d.ts} +25 -3
  71. package/dist/{dynamicFormsManager-fFVIRBNv.esm.js → dynamicFormsManager-Dt98SDfV.esm.js} +16 -5
  72. package/dist/{dynamicFormsStateMachine-D6D7oEYk.esm.js → dynamicFormsStateMachine-obKr4IIp.esm.js} +35 -3
  73. package/dist/ekyb.d.ts +1 -1
  74. package/dist/ekyb.esm.js +3 -3
  75. package/dist/{ekybManager-Y3MkoXpC.esm.js → ekybManager-DNZKrKF3.esm.js} +2 -2
  76. package/dist/{ekybStateMachine-3nlnqdlr.esm.js → ekybStateMachine-DjhHQXZ8.esm.js} +3 -3
  77. package/dist/ekyc.esm.js +2 -2
  78. package/dist/{ekycManager-DgT48ky6.esm.js → ekycManager-CmQBpeiI.esm.js} +2 -2
  79. package/dist/{ekycStateMachine-CQwqiR-R.esm.js → ekycStateMachine-CmdW2gVm.esm.js} +2 -2
  80. package/dist/electronic-signature.d.ts +3 -3
  81. package/dist/electronic-signature.esm.js +2 -2
  82. package/dist/electronicSignatureManager-Ds-KEVTq.d.ts +2786 -0
  83. package/dist/{electronicSignatureManager-DGbAJ00W.esm.js → electronicSignatureManager-DzulxM4_.esm.js} +357 -51
  84. package/dist/email.esm.js +2 -2
  85. package/dist/{emailManager-BY0jeYwR.esm.js → emailManager-B5ek_UfM.esm.js} +2 -2
  86. package/dist/{emailStateMachine-Crw8QVmc.esm.js → emailStateMachine-CyPFZ7dW.esm.js} +1 -1
  87. package/dist/{endpoints-CCzL3XD_.esm.js → endpoints-D3B9mUHh.esm.js} +24 -7
  88. package/dist/{events-DYiyoSlx.esm.js → events-ijlbX_Wx.esm.js} +2 -2
  89. package/dist/events.d.ts +1 -1
  90. package/dist/events.esm.js +1 -1
  91. package/dist/extensibility.d.ts +24 -64
  92. package/dist/extensibility.esm.js +35 -29
  93. package/dist/face-match.esm.js +2 -2
  94. package/dist/{faceCaptureManagerFactory-BxWPpxyd.d.ts → faceCaptureManagerFactory-CvtqcLxs.d.ts} +87 -54
  95. package/dist/{faceCaptureManagerFactory-CVnZ0fa5.esm.js → faceCaptureManagerFactory-pCmG4MeF.esm.js} +68 -7
  96. package/dist/faceCaptureSetup-BSextack.esm.js +2106 -0
  97. package/dist/{faceMatchManager-Ri4UbNz0.esm.js → faceMatchManager-Caal2zyV.esm.js} +2 -2
  98. package/dist/{faceMatchStateMachine-20DdZ3jg.esm.js → faceMatchStateMachine-BUc5FXYy.esm.js} +1 -1
  99. package/dist/{feature-management-CPQ4qv3F.esm.js → feature-management-B0sGlozZ.esm.js} +32 -7
  100. package/dist/feature-management.d.ts +1 -1
  101. package/dist/feature-management.esm.js +1 -1
  102. package/dist/field-comparison.esm.js +1 -1
  103. package/dist/{fieldComparisonManager-Cg6kPQQx.esm.js → fieldComparisonManager-BIs6HPJG.esm.js} +2 -2
  104. package/dist/fiscal-qr.d.ts +2 -56
  105. package/dist/fiscal-qr.esm.js +2 -308
  106. package/dist/fiscalQrManager-Bp_-3LJr.esm.js +34131 -0
  107. package/dist/fiscalQrManager-CHcBJwUM.d.ts +68 -0
  108. package/dist/flow-events.d.ts +1 -1
  109. package/dist/flow.d.ts +212 -185
  110. package/dist/flow.esm.js +119 -30
  111. package/dist/{flowCompletionService-tfeoGre9.esm.js → flowCompletionService-CLtbWhSK.esm.js} +2 -2
  112. package/dist/{flowServices-f5Ruz7R9.esm.js → flowServices-B5FwukTQ.esm.js} +91 -26
  113. package/dist/geolocation.esm.js +2 -2
  114. package/dist/{geolocationManager-CH6RfqFH.esm.js → geolocationManager-DIw-xq9a.esm.js} +2 -2
  115. package/dist/{geolocationStateMachine-DmbWFely.esm.js → geolocationStateMachine-DpG0TFOU.esm.js} +3 -3
  116. package/dist/getBrowser-CBiibsL-.esm.js +19 -0
  117. package/dist/{getBrowser-DNrQeL4T.esm.js → getBrowser-Cbe1C4Tn.esm.js} +2 -1
  118. package/dist/{getDeviceClass-9y-kbVDw.esm.js → getDeviceClass-5NYZg9s6.esm.js} +2 -2
  119. package/dist/getParsedUserAgent-B2iFDql1.esm.js +1278 -0
  120. package/dist/government-validation.d.ts +2 -85
  121. package/dist/government-validation.esm.js +3 -120
  122. package/dist/governmentValidationManager-D02vT4yY.d.ts +63 -0
  123. package/dist/governmentValidationManager-TjC9iVjH.esm.js +79 -0
  124. package/dist/governmentValidationStateMachine-D1ZnEqdd.esm.js +54 -0
  125. package/dist/home.d.ts +1 -1
  126. package/dist/home.esm.js +1 -1
  127. package/dist/id-ocr.d.ts +2 -2
  128. package/dist/id-ocr.esm.js +2 -2
  129. package/dist/id-selfie-flow.d.ts +3 -2
  130. package/dist/id-selfie-flow.esm.js +11 -10
  131. package/dist/id-verification.esm.js +2 -2
  132. package/dist/id.d.ts +29 -5
  133. package/dist/id.esm.js +48 -46
  134. package/dist/idCaptureDefaults-BcxjQDI3.esm.js +484 -0
  135. package/dist/{idCaptureManager-CqrqSjJV.d.ts → idCaptureManager-CvmHOWWd.d.ts} +227 -39
  136. package/dist/{idCaptureManager-BYwTZ2H8.esm.js → idCaptureManager-Vby8oYqh.esm.js} +259 -46
  137. package/dist/{idCaptureServices-44kwQItl.esm.js → idCaptureServices-CJIxD9ep.esm.js} +342 -31
  138. package/dist/idCaptureStateMachine-CmqihkUy.esm.js +5343 -0
  139. package/dist/{idOcrManager-DXc_xRN7.d.ts → idOcrManager-BF_cXZq8.d.ts} +1 -1
  140. package/dist/{idOcrManager-BIQYQXXj.esm.js → idOcrManager-DHU22hVn.esm.js} +2 -2
  141. package/dist/{idOcrStateMachine-cSxzHpHt.esm.js → idOcrStateMachine-33UvRAHE.esm.js} +1 -1
  142. package/dist/{idVerificationManager-JpV_SAsl.esm.js → idVerificationManager-CyaixD0D.esm.js} +2 -2
  143. package/dist/{idVerificationStateMachine-nPeUNyFq.esm.js → idVerificationStateMachine-BPGrQZEm.esm.js} +1 -1
  144. package/dist/identity-reuse.esm.js +2 -2
  145. package/dist/{identityReuseManager-kNCg9AbD.esm.js → identityReuseManager-CWaNHBO3.esm.js} +2 -2
  146. package/dist/{identityReuseStateMachine-DyulxDjP.esm.js → identityReuseStateMachine-CQgnATo5.esm.js} +1 -1
  147. package/dist/{index-CLMF0QLQ.d.ts → index-DLcJT5YP.d.ts} +1 -1
  148. package/dist/index.d.ts +1 -1
  149. package/dist/index.esm.js +1 -1
  150. package/dist/{invokeOnCaptureCallback-GpvMuz9o.esm.js → invokeOnCaptureCallback-BjzPjJ_p.esm.js} +1 -1
  151. package/dist/mandatory-consent.d.ts +2 -2
  152. package/dist/mandatory-consent.esm.js +2 -2
  153. package/dist/{mandatoryConsentManager-DyPzUmsZ.d.ts → mandatoryConsentManager-CJSyhTpi.d.ts} +5 -5
  154. package/dist/{mandatoryConsentManager-B4Niyg_u.esm.js → mandatoryConsentManager-Du-m-tZ_.esm.js} +2 -2
  155. package/dist/{mandatoryConsentStateMachine-B4-1u-L8.esm.js → mandatoryConsentStateMachine-DSDAk7WZ.esm.js} +1 -1
  156. package/dist/multipartRecordingService-B3C_zlev.esm.js +594 -0
  157. package/dist/{permissionGuards-KINpmKtI.esm.js → permissionGuards-uYZYFu4J.esm.js} +1 -1
  158. package/dist/{permissionServices-UvUcOSRb.esm.js → permissionServices-Bj_fyWtv.esm.js} +5 -5
  159. package/dist/personhood.d.ts +6 -5
  160. package/dist/personhood.esm.js +10 -10
  161. package/dist/phone.esm.js +2 -2
  162. package/dist/{phoneManager-FsJ0W2Ei.esm.js → phoneManager-N1-sbrY4.esm.js} +2 -2
  163. package/dist/{phoneStateMachine-Ba0wKHyX.esm.js → phoneStateMachine-jl8LJKCo.esm.js} +1 -1
  164. package/dist/{platform-BJrm5nzZ.esm.js → platform-DkcRc9JV.esm.js} +29 -1
  165. package/dist/qe-signature.d.ts +5 -3
  166. package/dist/qe-signature.esm.js +2 -2
  167. package/dist/recordingsRepository-CCWy13M-.esm.js +72 -0
  168. package/dist/redirect-to-mobile.esm.js +2 -2
  169. package/dist/{redirectToMobileManager-y4VQB11M.esm.js → redirectToMobileManager-DsFzdTwA.esm.js} +2 -2
  170. package/dist/{redirectToMobileStateMachine-Cyv2x0PP.esm.js → redirectToMobileStateMachine-v3otpT-L.esm.js} +1 -1
  171. package/dist/{rolldown-runtime-FZ4Itg2g.esm.js → rolldown-runtime-FDOR9p9I.esm.js} +1 -19
  172. package/dist/{runChildModule-Dukuw23X.esm.js → runChildModule-TuyGE00X.esm.js} +3 -21
  173. package/dist/safeStorage-B-trhxg6.esm.js +423 -0
  174. package/dist/{sdkVersion-D1Bm59g6.esm.js → sdkVersion-CLxKvdyz.esm.js} +1 -1
  175. package/dist/selfie.d.ts +5 -5
  176. package/dist/selfie.esm.js +14 -76
  177. package/dist/{selfieErrorUtils-C2PYBVsp.esm.js → selfieErrorUtils-C77GXJH6.esm.js} +30 -4
  178. package/dist/{selfieManager-Bj6B2ZVy.esm.js → selfieManager-CihVnODO.esm.js} +5 -5
  179. package/dist/{selfieManager-DwlCppg0.d.ts → selfieManager-D1KRJ39M.d.ts} +8 -11
  180. package/dist/selfieStateMachine-fwMmNtOi.esm.js +69 -0
  181. package/dist/{session-BFdLgN4i.esm.js → session-BHIeAamR.esm.js} +4 -5
  182. package/dist/session.d.ts +21 -11
  183. package/dist/session.esm.js +5 -5
  184. package/dist/{sessionInitializer-dlfDehHk.esm.js → sessionInitializer-BLoK7SP9.esm.js} +187 -68
  185. package/dist/{setup-BgoWtvIS.d.ts → setup-Cv-JM9QC.d.ts} +63 -69
  186. package/dist/{setup-BIAtLa8k.esm.js → setup-msLybMbC.esm.js} +226 -100
  187. package/dist/signature.esm.js +2 -2
  188. package/dist/{signatureManager-Ca43yhwk.esm.js → signatureManager-ChsB-nMD.esm.js} +2 -2
  189. package/dist/{signatureStateMachine-K1LMRrxG.esm.js → signatureStateMachine-BHPwkJZS.esm.js} +1 -1
  190. package/dist/{src-0Jurt29N.esm.js → src-35ekGRzK.esm.js} +1 -1
  191. package/dist/{stats-B0nFKawG.esm.js → stats-DkK-f8JT.esm.js} +1 -1
  192. package/dist/stats.esm.js +1 -1
  193. package/dist/{trueSightService---iW2KKJ.esm.js → trueSightService-CKrrfV0Q.esm.js} +7 -7
  194. package/dist/trust-graph.esm.js +1 -1
  195. package/dist/{types-BX_XkMsQ2.d.ts → types-9_esGTPj.d.ts} +1 -1
  196. package/dist/types-BT_Oalip.d.ts +1 -0
  197. package/dist/{types-DelMqZLe.d.ts → types-BjSly8cp.d.ts} +1 -1
  198. package/dist/{types-Hmd7U0JA.d.ts → types-CM-jtjJ2.d.ts} +6 -81
  199. package/dist/{types-Bdf8_LYB2.d.ts → types-CjKBS37a2.d.ts} +303 -13
  200. package/dist/{types-DVmXIdzW.d.ts → types-D0gekt4U.d.ts} +38 -5
  201. package/dist/types-DgDvvzg0.d.ts +10 -0
  202. package/dist/{types-KPvmag_B.d.ts → types-Do5rEXij.d.ts} +7 -4
  203. package/dist/types-ZT1XFIJ8.d.ts +6 -0
  204. package/dist/video-selfie.d.ts +59 -35
  205. package/dist/video-selfie.esm.js +510 -601
  206. package/dist/{videoSelfieCameraWarmer-NEhFZvWx.esm.js → videoSelfieCameraWarmer-CB1IzZkt.esm.js} +14 -153
  207. package/dist/videoSelfieFlowModuleMachine-BUe2uACW.esm.js +32 -0
  208. package/dist/{videoSelfieStepDetector-D3oo2ofo.d.ts → videoSelfieStepDetector-5YHFe0Mq.d.ts} +21 -5
  209. package/dist/virtualCameraCheck-WOloJ-do.esm.js +48 -0
  210. package/dist/warmup-CUUnwYxe.esm.js +714 -0
  211. package/dist/warmup-Cis2p6O0.d.ts +128 -0
  212. package/dist/wasm.d.ts +30 -6
  213. package/dist/wasm.esm.js +36 -4
  214. package/dist/{wasmDsFlagSync-BqUCwLY8.esm.js → wasmDsFlagSync-B2e8p268.esm.js} +2 -2
  215. package/dist/{wasmWebClient-DM8lkb0z.esm.js → wasmWebClient-B7baE-Wf.esm.js} +358 -28
  216. package/dist/watchlist-for-business.d.ts +2 -78
  217. package/dist/watchlist-for-business.esm.js +3 -102
  218. package/dist/watchlist.esm.js +2 -2
  219. package/dist/watchlistForBusinessManager-CpuuB1J2.esm.js +107 -0
  220. package/dist/watchlistForBusinessManager-CsnJnG-C.d.ts +99 -0
  221. package/dist/{watchlistForBusinessStateMachine-CxFnlshm.esm.js → watchlistForBusinessStateMachine-DEzgjz7C.esm.js} +13 -6
  222. package/dist/{watchlistManager-LoNZH9qm.esm.js → watchlistManager-CI8BHFob.esm.js} +2 -2
  223. package/dist/{watchlistStateMachine-DIKQDoUT.esm.js → watchlistStateMachine-DvOby3a-.esm.js} +1 -1
  224. package/dist/workflow.d.ts +12 -8
  225. package/dist/workflow.esm.js +48 -39
  226. package/package.json +4 -10
  227. package/dist/BrowserStorageProvider-k-FDkC4W.esm.js +0 -67
  228. package/dist/FaceDetectionProvider-Mh6q3EbA.d.ts +0 -349
  229. package/dist/IFaceAvatarCapability-BrL19G0s.d.ts +0 -23
  230. package/dist/IStorageCapability-ORkQfK3F.d.ts +0 -242
  231. package/dist/OpenViduRecordingProvider-Du98qevC.esm.js +0 -85
  232. package/dist/createFaceAvatar-BEj18KXi.d.ts +0 -50
  233. package/dist/document-upload.d.ts +0 -325
  234. package/dist/document-upload.esm.js +0 -197
  235. package/dist/electronicSignatureManager-CcUXQZS7.d.ts +0 -1300
  236. package/dist/faceCaptureSetup-Cd-04W_X.esm.js +0 -863
  237. package/dist/getBrowser-Cb8Zgrgp.esm.js +0 -7
  238. package/dist/getParsedUserAgent-pJjATANs.esm.js +0 -1622
  239. package/dist/governmentValidationStateMachine-CK9DrZXX.esm.js +0 -226
  240. package/dist/idCaptureDefaults-WeHbQM7W.esm.js +0 -225
  241. package/dist/idCaptureStateMachine-kZ5OpdfM.esm.js +0 -3342
  242. package/dist/lib-DAyUtOTj.esm.js +0 -12420
  243. package/dist/manualReviewService-D4IkipnN.esm.js +0 -15
  244. package/dist/mediaRecorderOptions-dALSV8af.esm.js +0 -40
  245. package/dist/onDeviceFaceResults-CUHwyZT4.esm.js +0 -646
  246. package/dist/openviduLazy-CCDpFWg1.esm.js +0 -10
  247. package/dist/recordingService-3NSENVwp.esm.js +0 -329
  248. package/dist/safeStorage-Ep56I-f_.esm.js +0 -982
  249. package/dist/selfieStateMachine-CHV_WNst.esm.js +0 -55
  250. package/dist/trueSight-B_icM8r2.esm.js +0 -1
  251. package/dist/types-EELWyWpd.d.ts +0 -6
  252. package/dist/types-Vb4P9ovf.d.ts +0 -22
  253. package/dist/warmup-Dv2alr2-.d.ts +0 -82
  254. package/dist/wasmDefaults-DTUrftxR.esm.js +0 -125
  255. package/dist/{Face2DProvider-UUQt_vRC.esm.js → Face2DProvider-BF48sz5c.esm.js} +1 -1
  256. package/dist/{PrivacyLensProvider-D8PS7AJa.esm.js → PrivacyLensProvider-EwnC_C5n.esm.js} +1 -1
  257. /package/dist/{types-BfgmV7s72.d.ts → types-BfgmV7s7.d.ts} +0 -0
  258. /package/dist/{types-CJ7Yl9K-2.d.ts → types-CJ7Yl9K-.d.ts} +0 -0
@@ -3,8 +3,8 @@ import { i as markAvatarTimeline } from "./avatarStats-CdUOb3VD.esm.js";
3
3
  async function importProviderModule(variant) {
4
4
  switch (variant) {
5
5
  case "avatar-3d": return import("./3dAvatarProvider-g02DTFqT.esm.js");
6
- case "avatar-2d": return import("./Face2DProvider-UUQt_vRC.esm.js");
7
- case "privacy-lens": return import("./PrivacyLensProvider-D8PS7AJa.esm.js");
6
+ case "avatar-2d": return import("./Face2DProvider-BF48sz5c.esm.js");
7
+ case "privacy-lens": return import("./PrivacyLensProvider-EwnC_C5n.esm.js");
8
8
  default: throw new Error(`Unknown avatar variant: ${String(variant)}`);
9
9
  }
10
10
  }
@@ -0,0 +1,497 @@
1
+ import { i as WasmModuleConfig, n as WasmModelsConfig } from "./warmup-Cis2p6O0.js";
2
+ //#region ../infra/src/media/canvas.d.ts
3
+ /**
4
+ * Class representing a canvas element for image capture and manipulation.
5
+ */
6
+ declare class IncodeCanvas {
7
+ canvas: HTMLCanvasElement;
8
+ private base64Image;
9
+ private blobData;
10
+ /**
11
+ * Creates an {@link IncodeCanvas} from a raw {@link ImageData} frame.
12
+ * @param imageData - Frame pixels in RGBA format
13
+ * @returns An {@link IncodeCanvas} containing the provided pixels
14
+ */
15
+ static fromImageData(imageData: ImageData): IncodeCanvas;
16
+ /**
17
+ * Create a new canvas element.
18
+ * @param canvas_ - The canvas element to clone.
19
+ */
20
+ constructor(canvas_: HTMLCanvasElement);
21
+ /**
22
+ * Check if the current canvas is valid.
23
+ */
24
+ private checkCanvas;
25
+ /**
26
+ * Disposes of resources, including revoking object URLs to prevent memory leaks.
27
+ */
28
+ dispose(): void;
29
+ /**
30
+ * Release the data stored by IncodeCanvas.
31
+ */
32
+ release(): void;
33
+ /**
34
+ * Revokes the object URL if one exists, preventing memory leaks.
35
+ * Use this when you no longer need the preview image URL.
36
+ */
37
+ revokeObjectURL(): void;
38
+ /**
39
+ * Get the width of the canvas.
40
+ */
41
+ width(): number | null;
42
+ /**
43
+ * Get the height of the canvas.
44
+ */
45
+ height(): number | null;
46
+ /**
47
+ * Set the width of the canvas.
48
+ */
49
+ setWidth(width: number): void;
50
+ /**
51
+ * Set the height of the canvas.
52
+ */
53
+ setHeight(height: number): void;
54
+ /**
55
+ * Clone the current canvas.
56
+ */
57
+ clone(): IncodeCanvas | null;
58
+ /**
59
+ * Deep clone the current IncodeCanvas including blob data.
60
+ */
61
+ deepClone(): Promise<IncodeCanvas | null>;
62
+ /**
63
+ * Returns the drawing context on the canvas.
64
+ */
65
+ getContext(contextId: '2d', contextAttributes?: CanvasRenderingContext2DSettings): CanvasRenderingContext2D | null;
66
+ /**
67
+ * Retrieves the image data from the canvas.
68
+ */
69
+ getImageData(): ImageData | null;
70
+ /**
71
+ * Updates the base64 representation of the current canvas image.
72
+ */
73
+ updateBase64Image(jpegQuality?: number): void;
74
+ /**
75
+ * Converts the current canvas element to a base64 string.
76
+ */
77
+ getBase64Image(jpegQuality?: number, includeDataURLPrefix?: boolean): string | null;
78
+ /**
79
+ * Sets the base64 representation of the current canvas image.
80
+ */
81
+ setBase64Image(base64Image: string | null): void;
82
+ /**
83
+ * Updates the Blob representation of the current canvas image.
84
+ */
85
+ updateBlob(jpegQuality?: number, includeDataURLPrefix?: boolean): void;
86
+ /**
87
+ * Creates a JPEG Blob without synchronously encoding the canvas as base64.
88
+ * Returns `null` when the canvas is invalid, encoding is unavailable, or the
89
+ * browser cannot produce a Blob.
90
+ */
91
+ updateBlobAsync(jpegQuality?: number): Promise<{
92
+ blob: Blob;
93
+ url: string;
94
+ } | null>;
95
+ /**
96
+ * Converts a base64 string to a Blob and creates a URL for it.
97
+ */
98
+ static base64ToBlob(base64: string): {
99
+ blob: Blob;
100
+ url: string;
101
+ } | null;
102
+ /**
103
+ * Retrieves the Blob data and its URL from the current canvas.
104
+ */
105
+ getBlobData(jpegQuality?: number, includeDataURLPrefix?: boolean): {
106
+ blob: Blob;
107
+ url: string;
108
+ } | null;
109
+ /**
110
+ * Sets the Blob data of the current canvas image.
111
+ */
112
+ setBlobData(blobData: {
113
+ blob: Blob;
114
+ url: string;
115
+ }): Promise<void>;
116
+ /**
117
+ * Returns a resized canvas according to video element size.
118
+ */
119
+ getResizedCanvas(videoElementWidth: number, videoElementHeight: number): IncodeCanvas | null;
120
+ }
121
+ //#endregion
122
+ //#region ../infra/src/wasm/wasmWebClient.d.ts
123
+ /**
124
+ * Configuration shape that the C++ `WebApi` passes when calling `.post(...)`
125
+ * on its host JS adapter. Mirrors the upstream `ml-wasm-kit/WebClient`
126
+ * `RequestConfig` for the subset of fields actually set by `WebApi`.
127
+ */
128
+ type WebApiHostRequestConfig = {
129
+ ie?: boolean;
130
+ headers?: Record<string, string>;
131
+ params?: Record<string, string | number | boolean | undefined>;
132
+ timeout?: number;
133
+ };
134
+ //#endregion
135
+ //#region ../infra/src/capabilities/IMLProviderCapability.d.ts
136
+ /** WASM module and model configuration shared by ML providers. */
137
+ type MLProviderConfig = Partial<WasmModuleConfig> & WasmModelsConfig;
138
+ /**
139
+ * Base interface for ML provider capabilities.
140
+ * Provides common lifecycle and frame processing methods shared by
141
+ * FaceDetectionCapability and IdCaptureCapability.
142
+ */
143
+ interface IMLProviderCapability<TConfig extends MLProviderConfig> {
144
+ /**
145
+ * Whether the provider has been initialized and is ready to process frames.
146
+ */
147
+ readonly initialized: boolean;
148
+ /**
149
+ * Initializes the provider with the given configuration.
150
+ * If WASM was already warmed up via `setup()` or `warmupWasm()`, this returns almost instantly.
151
+ * @param config - Provider configuration including WASM paths
152
+ */
153
+ initialize(config: TConfig): Promise<void>;
154
+ /**
155
+ * Processes a frame through the ML pipeline.
156
+ * Callbacks set via `setCallbacks()` will be invoked based on the analysis results.
157
+ * @param image - Image data to process
158
+ * @throws Error if provider is not initialized
159
+ */
160
+ processFrame(image: ImageData): Promise<void>;
161
+ /**
162
+ * Resets the pipeline to its initial state.
163
+ * Safe to call even if not initialized (no-op in that case).
164
+ */
165
+ reset(): void;
166
+ /**
167
+ * Disposes of resources and resets initialization state.
168
+ * Safe to call even if not initialized.
169
+ */
170
+ dispose(): Promise<void>;
171
+ }
172
+ //#endregion
173
+ //#region ../infra/src/capabilities/IFaceDetectionCapability.d.ts
174
+ /**
175
+ * Configuration for face detection provider.
176
+ * Extends base ML provider config with face-detection specific options.
177
+ */
178
+ interface FaceDetectionConfig extends MLProviderConfig {
179
+ autocaptureInterval?: number;
180
+ /**
181
+ * Load the on-device selfie workflow (6 models including liveness + age
182
+ * estimation) instead of the default selfie workflow (4 models). Required
183
+ * when SELFIE/AUTHENTICATION has `onDeviceFaceResultsSubmissionEnabled`.
184
+ */
185
+ useOnDeviceWorkflow?: boolean;
186
+ /**
187
+ * Load the video-selfie face workflow (`SelfieWithAggregationMetrics`, the
188
+ * frame-aggregation best-shot pipeline used by the video-selfie flow)
189
+ * instead of the default quality-metrics selfie workflow. Mutually exclusive
190
+ * with `useOnDeviceWorkflow`.
191
+ */
192
+ videoSelfie?: boolean;
193
+ }
194
+ interface FacePositionConstraints {
195
+ minX: number;
196
+ minY: number;
197
+ maxX: number;
198
+ maxY: number;
199
+ }
200
+ interface FaceDetectionThresholds {
201
+ brightnessThreshold: number;
202
+ blurrinessThreshold: number;
203
+ tiltRotationAngleThreshold: number;
204
+ minMagicCropSize: number;
205
+ autocaptureInterval: number;
206
+ minFaceQualityScore: number;
207
+ faceOcclusionThreshold: number;
208
+ /**
209
+ * Milliseconds the C++ workflow waits after `onGetReady` fires before
210
+ * triggering autocapture. Mirrors V1's `getReadyDelay` (2000 ms) — without
211
+ * it, autocapture can fire on the first quality-passing frame, before the
212
+ * front camera has finished locking focus, producing blurry captures that
213
+ * the on-device quality model rejects.
214
+ */
215
+ getReadyDelay: number;
216
+ /**
217
+ * Milliseconds over which face-detection results are aggregated before the
218
+ * autocapture decision. Mirrors V1's `framesAggregationInterval` (2000 ms).
219
+ */
220
+ framesAggregationInterval: number;
221
+ /**
222
+ * Minimum consecutive frames with a detected face required before
223
+ * autocapture can trigger. Mirrors V1's `minFramesWithFace` (3).
224
+ */
225
+ minFramesWithFace: number;
226
+ }
227
+ interface FaceAttributesThresholds {
228
+ headwearThreshold: number;
229
+ lensesThreshold: number;
230
+ closedEyesThreshold: number;
231
+ maskThreshold: number;
232
+ }
233
+ interface FaceChecksConfig {
234
+ lenses: boolean;
235
+ mask: boolean;
236
+ closedEyes: boolean;
237
+ headWear: boolean;
238
+ occlusion: boolean;
239
+ }
240
+ interface FaceData {
241
+ rect: {
242
+ x: number;
243
+ y: number;
244
+ width: number;
245
+ height: number;
246
+ };
247
+ rightEye: {
248
+ x: number;
249
+ y: number;
250
+ };
251
+ leftEye: {
252
+ x: number;
253
+ y: number;
254
+ };
255
+ noseTip: {
256
+ x: number;
257
+ y: number;
258
+ };
259
+ rightMouthCorner: {
260
+ x: number;
261
+ y: number;
262
+ };
263
+ leftMouthCorner: {
264
+ x: number;
265
+ y: number;
266
+ };
267
+ pitch: number;
268
+ yaw: number;
269
+ roll: number;
270
+ }
271
+ type FaceCoordinates = {
272
+ rightEyeX: number;
273
+ rightEyeY: number;
274
+ leftEyeX: number;
275
+ leftEyeY: number;
276
+ noseTipX: number;
277
+ noseTipY: number;
278
+ rightMouthX: number;
279
+ rightMouthY: number;
280
+ mouthX: number;
281
+ mouthY: number;
282
+ x: number;
283
+ y: number;
284
+ width: number;
285
+ height: number;
286
+ };
287
+ interface FaceDetectionCallbacks {
288
+ onFarAway?: () => void;
289
+ onTooClose?: () => void;
290
+ onTooManyFaces?: () => void;
291
+ onNoFace?: () => void;
292
+ onCapture?: (canvas: IncodeCanvas, faceCoordinates: FaceCoordinates) => void;
293
+ onGetReady?: () => void;
294
+ onGetReadyFinished?: () => void;
295
+ onCenterFace?: () => void;
296
+ onDark?: () => void;
297
+ onBlur?: () => void;
298
+ onFaceAngle?: () => void;
299
+ /**
300
+ * Fires on **every** processed frame that contains at least one detected
301
+ * face, with the freshly-computed face data (pitch/yaw/roll/landmarks).
302
+ *
303
+ * Use `onFaceData` when you need a dense per-frame signal for live UI
304
+ * feedback — e.g. the Personhood avatar that mirrors head pose. The
305
+ * default capture pipeline does not subscribe to this, so consumers
306
+ * that don't need per-frame data pay no cost.
307
+ *
308
+ * `frameSize` is the source frame's pixel dimensions. Optional so
309
+ * existing single-arg consumers keep working (TypeScript callback
310
+ * variance handles it). Personhood uses it to compute an
311
+ * orientation-invariant face-size ratio for distance-aware smoothing.
312
+ */
313
+ onFaceData?: (face: FaceData, frameSize?: {
314
+ width: number;
315
+ height: number;
316
+ }) => void;
317
+ onLenses?: () => void;
318
+ onMask?: () => void;
319
+ onEyesClosed?: () => void;
320
+ onHeadWear?: () => void;
321
+ onSwitchToManualCapture?: () => void;
322
+ onFaceOccluded?: () => void;
323
+ }
324
+ /**
325
+ * Capability interface for face detection and selfie capture.
326
+ * Extends the base ML provider capability with face-detection specific methods.
327
+ */
328
+ interface IFaceDetectionCapability extends IMLProviderCapability<FaceDetectionConfig> {
329
+ /**
330
+ * Sets callbacks for face detection events.
331
+ * @param callbacks - Object containing callback functions for various detection events
332
+ */
333
+ setCallbacks(callbacks: FaceDetectionCallbacks): void;
334
+ /**
335
+ * Sets position constraints for face detection.
336
+ * @param constraints - Bounding box constraints for valid face position
337
+ */
338
+ setPositionConstraints(constraints: FacePositionConstraints): void;
339
+ /**
340
+ * Sets detection thresholds for quality checks.
341
+ * @param thresholds - Threshold values for various quality metrics
342
+ */
343
+ setThresholds(thresholds: FaceDetectionThresholds): void;
344
+ /**
345
+ * Sets thresholds for face attribute detection.
346
+ * @param thresholds - Threshold values for attribute detection (headwear, lenses, etc.)
347
+ */
348
+ setAttributesThresholds(thresholds: FaceAttributesThresholds): void;
349
+ /**
350
+ * Enables or disables specific face checks.
351
+ * @param config - Configuration for which checks to enable
352
+ */
353
+ setChecksEnabled(config: FaceChecksConfig): void;
354
+ /**
355
+ * Sets video selfie mode.
356
+ * @param enabled - Whether to enable video selfie mode
357
+ */
358
+ setVideoSelfieMode(enabled: boolean): void;
359
+ /**
360
+ * Manually triggers the `onCapture` callback registered via
361
+ * `setCallbacks`, using the best-quality frame the provider has
362
+ * seen so far (or the most recent processed frame as a fallback).
363
+ * Used by callers that want to complete a capture flow without
364
+ * waiting for WASM's own autocapture criteria — e.g. Personhood's
365
+ * "complete with far-away face" path, where the user may be too
366
+ * small in frame for autocapture to ever fire but a verdict
367
+ * (likely lower-confidence) is still desired.
368
+ *
369
+ * No-op when no frame is available at all (camera hasn't produced
370
+ * a single decoded frame yet) or when no `onCapture` callback was
371
+ * registered.
372
+ */
373
+ forceCapture(): void;
374
+ /**
375
+ * @deprecated Unsupported since ml-wasm-kit v2.14.49-post1; scheduled for
376
+ * removal in 3.0.0. Calls fail deterministically without passing the canvas
377
+ * to native code. Use `ICameraCycleCapability.captureProtectedFrame` (the
378
+ * protected camera cycle's manual capture) instead.
379
+ */
380
+ processPhoto(canvas: HTMLCanvasElement): void;
381
+ /**
382
+ * POSTs the staged on-device face-results JSON to `/omni/add/face-results`.
383
+ * The C++ side encrypts the body via `SessionEncryptor` and routes through
384
+ * the WASM `WebClient`, so the SDK's WebClient must be initialized first
385
+ * (consumers calling this must configure `setup({ apiURL, wasm })`).
386
+ */
387
+ postFaceResults(config?: WebApiHostRequestConfig): Promise<unknown>;
388
+ }
389
+ //#endregion
390
+ //#region ../infra/src/avatar/faceFeed.d.ts
391
+ /**
392
+ * A tiny per-frame pub/sub channel for the Incode WASM pipeline's `FaceData`.
393
+ *
394
+ * The parked `incode-2d` avatar drives the cosmetic avatar from the **existing** Incode face-detection
395
+ * pipeline (no second MediaPipe model). The detection pipeline lives in core's
396
+ * detection actor, while the avatar lives in the avatar actor — so the avatar is
397
+ * *fed* `FaceData` through this channel rather than running its own model.
398
+ *
399
+ * Deliberately NOT routed through XState events/context: the pipeline emits
400
+ * ~10×/s, and assigning that into context would re-run `mapState` and notify all
401
+ * manager subscribers 10×/s — needless churn that could itself regress UI perf.
402
+ * The feed is a plain emitter passed as input to both actors (detection
403
+ * publishes, the avatar source subscribes); nothing else observes it.
404
+ *
405
+ * Strictly read-only w.r.t. the authoritative pipeline — the feed only forwards
406
+ * data the pipeline already computed; it never influences detection/autocapture.
407
+ */
408
+ interface FaceFeedReader {
409
+ /** Subscribe to per-frame faces. Returns an unsubscribe function. */
410
+ subscribe(listener: (face: FaceData) => void): () => void;
411
+ /** The most recently published face, or null if none yet. */
412
+ getLatest(): FaceData | null;
413
+ /**
414
+ * Subscribe to the coarse "eyes closed" pulse — the only real eye signal the
415
+ * Incode pipeline exposes (a threshold event, both eyes, fired only when the
416
+ * closed-eyes check is enabled via `validateClosedEyes`). The avatar uses it
417
+ * to drive a real blink. Returns an unsubscribe function.
418
+ */
419
+ onEyesClosed(listener: () => void): () => void;
420
+ }
421
+ interface FaceFeed extends FaceFeedReader {
422
+ publish(face: FaceData): void;
423
+ /** Fire the eyes-closed pulse (from the detection pipeline's threshold event). */
424
+ signalEyesClosed(): void;
425
+ }
426
+ //#endregion
427
+ //#region ../infra/src/capabilities/IFaceAvatarCapability.d.ts
428
+ /**
429
+ * Caller-supplied overrides. Any omitted field falls back to the default
430
+ * CDN layout (see `avatar/avatarDefaults.ts`). `basePath`/`version` rewrite
431
+ * the whole directory; the individual `*Path` fields win over both.
432
+ */
433
+ interface AvatarAssetsOverrides {
434
+ basePath?: string;
435
+ version?: string;
436
+ mediapipeModulePath?: string;
437
+ mediapipeWasmPath?: string;
438
+ faceLandmarkerModelPath?: string;
439
+ vrmModelPath?: string;
440
+ }
441
+ /**
442
+ * Verdict cue an avatar can reflect: `detecting` (working) / `success` / `error`.
443
+ * Pose-driven 2D avatars colour the face accordingly (green wink / red frown);
444
+ * avatars without a verdict visual (VRM, privacy-lens) treat `setState` as a no-op.
445
+ * Driven by the host module (selfie capture outcome, personhood verdict).
446
+ */
447
+ type AvatarFaceState = 'detecting' | 'success' | 'error';
448
+ //#endregion
449
+ //#region src/internal/avatar/createFaceAvatar.d.ts
450
+ /**
451
+ * Shared face-avatar dispatch — the single code path BOTH the selfie module
452
+ * (`faceCapture` runAvatar actor) and the public `@incodetech/core/avatar` facade
453
+ * use, so every camera module mounts avatars the same way. Lives in `internal/`
454
+ * (not `modules/`) because `internal/` may not import from `modules/`; the public
455
+ * `modules/avatar` entry is a thin re-export of this. See
456
+ * docs/features/FACE_AVATAR.md.
457
+ *
458
+ * Public catalog of shippable face avatars. Each id maps to a lazily-loaded
459
+ * provider, so a module only pays the bundle cost of the avatar it picks:
460
+ * - `avatar-3d` → 3D VRM character, MediaPipe-tracked (premium look).
461
+ * - `avatar-2d` → stylized 2D "satin" face, MediaPipe-tracked. Also the
462
+ * personhood avatar.
463
+ * - `privacy-lens` → WebGL frosted-glass lens over the real video (no tracking).
464
+ *
465
+ * (The Incode-data 2D avatar is parked — kept in infra, not in the public
466
+ * catalog. See docs/features/FACE_AVATAR.md → Parked: the Incode-data avatar.)
467
+ */
468
+ type AvatarId = 'avatar-3d' | 'avatar-2d' | 'privacy-lens';
469
+ interface FaceAvatarOptions {
470
+ /** Which avatar to render. */
471
+ variant: AvatarId;
472
+ /** The already-acquired camera stream (the host module owns it). */
473
+ stream: MediaStream;
474
+ /** Runtime asset overrides (MediaPipe wasm/model, VRM); defaults to the CDN layout. */
475
+ assets?: AvatarAssetsOverrides;
476
+ /** Upper bound on the avatar's internal detect/render loop (default 30). */
477
+ maxFps?: number;
478
+ /** Initial verdict cue; defaults to `detecting`. */
479
+ initialState?: AvatarFaceState;
480
+ }
481
+ interface FaceAvatarHandle {
482
+ /** The canvas to mount in place of the live video. */
483
+ readonly canvas: HTMLCanvasElement;
484
+ /** Push a verdict cue (no-op for avatars without a verdict visual). */
485
+ setState(state: AvatarFaceState): void;
486
+ /** Tear down the loop, model and hidden decode video. */
487
+ stop(): void;
488
+ }
489
+ /**
490
+ * Mounts a cosmetic face avatar: lazy-loads the chosen provider, starts it on the
491
+ * given stream, and returns a handle to mount the canvas + push verdict cues. The
492
+ * avatar is **cosmetic-only** — it never feeds the authoritative
493
+ * detection/quality/liveness/upload pipeline.
494
+ */
495
+ declare function createFaceAvatar(options: FaceAvatarOptions): Promise<FaceAvatarHandle>;
496
+ //#endregion
497
+ export { MLProviderConfig as _, AvatarAssetsOverrides as a, FaceAttributesThresholds as c, FaceDetectionCallbacks as d, FaceDetectionConfig as f, IMLProviderCapability as g, IFaceDetectionCapability as h, createFaceAvatar as i, FaceChecksConfig as l, FacePositionConstraints as m, FaceAvatarHandle as n, AvatarFaceState as o, FaceDetectionThresholds as p, FaceAvatarOptions as r, FaceFeed as s, AvatarId as t, FaceCoordinates as u, WebApiHostRequestConfig as v, IncodeCanvas as y };
@@ -1,2 +1,2 @@
1
- import { n as createCrossDocumentDataMatchManagerFromActor, r as crossDocumentDataMatchMachine, t as createCrossDocumentDataMatchManager } from "./crossDocumentDataMatchManager-CGT0V6RV.esm.js";
1
+ import { n as createCrossDocumentDataMatchManagerFromActor, r as crossDocumentDataMatchMachine, t as createCrossDocumentDataMatchManager } from "./crossDocumentDataMatchManager-QMOGwHXR.esm.js";
2
2
  export { createCrossDocumentDataMatchManager, createCrossDocumentDataMatchManagerFromActor, crossDocumentDataMatchMachine };
@@ -1,6 +1,6 @@
1
1
  import { t as api } from "./api-Bx3gKW_y.esm.js";
2
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-DYiyoSlx.esm.js";
3
- import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
2
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.esm.js";
3
+ import { t as endpoints } from "./endpoints-D3B9mUHh.esm.js";
4
4
  import { s as createActor, t as setup, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
5
5
  import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
6
6
  import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
@@ -1,4 +1,4 @@
1
- import { a as CurpValidationActor, c as CurpValidationErrors, d as GenerateCurpFieldDef, f as GenerateCurpFieldType, i as createCurpValidationManagerFromActor, l as CurpValidationRule, n as CurpValidationState, o as curpValidationMachine, p as GenerateCurpForm, r as createCurpValidationManager, s as CurpValidationConfig, t as CurpValidationManager, u as EnterCurpFieldDef } from "./curpValidationManager-DVGr7Fq7.js";
1
+ import { a as CurpValidationActor, c as CurpValidationErrors, d as GenerateCurpFieldDef, f as GenerateCurpFieldType, i as createCurpValidationManagerFromActor, l as CurpValidationRule, n as CurpValidationState, o as curpValidationMachine, p as GenerateCurpForm, r as createCurpValidationManager, s as CurpValidationConfig, t as CurpValidationManager, u as EnterCurpFieldDef } from "./curpValidationManager-SSKNrm5Z.js";
2
2
  //#region src/modules/curp-validation/curpValidationUtils.d.ts
3
3
  type MexicanState = {
4
4
  value: string;
@@ -1,3 +1,3 @@
1
- import { i as mexicanStates, n as ENTER_CURP_FIELD, r as GENERATE_CURP_FIELDS, t as curpValidationMachine } from "./curpValidationStateMachine-Ds7KMacK.esm.js";
2
- import { n as createCurpValidationManagerFromActor, t as createCurpValidationManager } from "./curpValidationManager-6Nmkn5u1.esm.js";
1
+ import { i as mexicanStates, n as ENTER_CURP_FIELD, r as GENERATE_CURP_FIELDS, t as curpValidationMachine } from "./curpValidationStateMachine-DvUPC_8S.esm.js";
2
+ import { n as createCurpValidationManagerFromActor, t as createCurpValidationManager } from "./curpValidationManager-D1ppROcF.esm.js";
3
3
  export { ENTER_CURP_FIELD, GENERATE_CURP_FIELDS, createCurpValidationManager, createCurpValidationManagerFromActor, curpValidationMachine, mexicanStates };
@@ -1,7 +1,7 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-DYiyoSlx.esm.js";
1
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.esm.js";
2
2
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
3
  import { s as createActor, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
4
- import { t as curpValidationMachine } from "./curpValidationStateMachine-Ds7KMacK.esm.js";
4
+ import { t as curpValidationMachine } from "./curpValidationStateMachine-DvUPC_8S.esm.js";
5
5
  //#region src/modules/curp-validation/curpValidationActor.ts
6
6
  function createCurpValidationActor(options) {
7
7
  return createActor(curpValidationMachine, { input: { config: options.config } }).start();
@@ -1,7 +1,7 @@
1
1
  import { i as ActorRefFrom } from "./spawn-D9jgw9pW.js";
2
2
  import { t as Manager } from "./Manager-CQQ99QOI.js";
3
3
  import "./Actor-iTq7YY48.js";
4
- import { i as FlowModuleConfig } from "./types-KPvmag_B.js";
4
+ import { i as FlowModuleConfig } from "./types-Do5rEXij.js";
5
5
  //#region src/modules/curp-validation/types.d.ts
6
6
  type CurpValidationConfig = FlowModuleConfig['CURP_VALIDATION'] & {
7
7
  /** Maximum validation retries before auto-advancing. @default 1 */
@@ -1,5 +1,5 @@
1
1
  import { t as api } from "./api-Bx3gKW_y.esm.js";
2
- import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
2
+ import { t as endpoints } from "./endpoints-D3B9mUHh.esm.js";
3
3
  import { i as assign, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
4
4
  import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
5
5
  //#region src/modules/curp-validation/curpValidationUtils.ts
@@ -1,114 +1,2 @@
1
- import { t as Manager } from "./Manager-CQQ99QOI.js";
2
- import "./Actor-iTq7YY48.js";
3
- //#region src/modules/custom-fields/types.d.ts
4
- type CustomFieldType = 'INTEGER' | 'DOUBLE' | 'BOOLEAN' | 'STRING' | 'DATE';
5
- type CustomField = {
6
- name: string;
7
- alias: string;
8
- type: CustomFieldType;
9
- };
10
- type CustomFieldsConfig = {
11
- title: string;
12
- customFields: CustomField[];
13
- };
14
- //#endregion
15
- //#region src/modules/custom-fields/customFieldsStateMachine.d.ts
16
- type CustomFieldsResult = 'success' | 'failed';
17
- declare const customFieldsMachine: any;
18
- //#endregion
19
- //#region src/modules/custom-fields/customFieldsActor.d.ts
20
- type CreateCustomFieldsActorOptions = {
21
- config: CustomFieldsConfig;
22
- };
23
- //#endregion
24
- //#region src/modules/custom-fields/customFieldsManager.d.ts
25
- /**
26
- * A `CustomField` enriched with a computed `label` for display.
27
- * Label is derived from `alias` when present, otherwise auto-formatted from `name`.
28
- */
29
- type MappedCustomField = CustomField & {
30
- label: string;
31
- };
32
- /** Custom fields manager is in initial state, waiting for `load()` to be called */
33
- type CustomFieldsIdleState = {
34
- status: 'idle';
35
- };
36
- /**
37
- * Ready for field input — use `setField()` and `submit()`
38
- * @property title - Form title from configuration
39
- * @property customFields - Field definitions with computed display labels
40
- * @property canSubmit - True when all non-boolean fields have a non-empty value
41
- */
42
- type CustomFieldsInputtingState = {
43
- status: 'inputting';
44
- title: string;
45
- customFields: MappedCustomField[];
46
- canSubmit: boolean;
47
- };
48
- /** Fields are being submitted to the backend */
49
- type CustomFieldsSubmittingState = {
50
- status: 'submitting';
51
- title: string;
52
- };
53
- /** API call succeeded — success page is visible for ~3 s before finishing */
54
- type CustomFieldsSuccessState = {
55
- status: 'success';
56
- };
57
- /** Custom fields flow complete. `result` indicates whether the API call succeeded or failed. */
58
- type CustomFieldsFinishedState = {
59
- status: 'finished';
60
- result: CustomFieldsResult | null;
61
- };
62
- /**
63
- * Union of all possible custom fields manager states.
64
- */
65
- type CustomFieldsState = CustomFieldsIdleState | CustomFieldsInputtingState | CustomFieldsSubmittingState | CustomFieldsSuccessState | CustomFieldsFinishedState;
66
- /**
67
- * Creates a custom fields manager for headless or UI-driven usage.
68
- *
69
- * @param options - Configuration options
70
- * @param options.config - Custom fields configuration (title + field definitions)
71
- *
72
- * @returns Custom fields manager with state, API methods, and subscription
73
- *
74
- * @example Headless usage
75
- * ```typescript
76
- * const manager = createCustomFieldsManager({
77
- * config: {
78
- * title: 'Additional Information',
79
- * customFields: [{ name: 'company', alias: 'Company', type: 'STRING' }],
80
- * },
81
- * });
82
- *
83
- * manager.subscribe((state) => console.log(state.status));
84
- * manager.load();
85
- * manager.setField('company', 'Incode');
86
- * manager.submit();
87
- * manager.stop();
88
- * ```
89
- */
90
- declare function createCustomFieldsManager(options: CreateCustomFieldsActorOptions): Manager<CustomFieldsState> & {
91
- /**
92
- * Initializes the custom fields flow.
93
- * Transitions from 'idle' to 'inputting'.
94
- * Must be called before any other method.
95
- */
96
- load(): void;
97
- /**
98
- * Updates the value of a single field.
99
- * Should be called when state is 'inputting'.
100
- *
101
- * @param name - The field name (matches CustomField.name)
102
- * @param value - The field value (string, number, or boolean)
103
- */
104
- setField(name: string, value: string | number | boolean): void;
105
- /**
106
- * Submits all custom field values to the backend.
107
- * Transitions to 'submitting', then 'finished' regardless of outcome.
108
- */
109
- submit(): void;
110
- };
111
- /** Type representing a custom fields manager instance. */
112
- type CustomFieldsManager = ReturnType<typeof createCustomFieldsManager>;
113
- //#endregion
114
- export { type CustomField, type CustomFieldType, type CustomFieldsConfig, type CustomFieldsManager, type CustomFieldsState, type MappedCustomField, createCustomFieldsManager, customFieldsMachine };
1
+ import { a as createCustomFieldsManagerFromActor, c as customFieldsMachine, d as CustomFieldsConfig, i as createCustomFieldsManager, l as CustomField, n as CustomFieldsState, o as CustomFieldsActor, r as MappedCustomField, s as CustomFieldsValidationErrors, t as CustomFieldsManager, u as CustomFieldType } from "./customFieldsManager-8-W2KY4n.js";
2
+ export { type CustomField, type CustomFieldType, type CustomFieldsActor, type CustomFieldsConfig, type CustomFieldsManager, type CustomFieldsState, type CustomFieldsValidationErrors, type MappedCustomField, createCustomFieldsManager, createCustomFieldsManagerFromActor, customFieldsMachine };