@incodetech/core 2.0.1 → 2.1.0-rc.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.
Files changed (218) hide show
  1. package/dist/{BrowserStorageProvider-CuOW1Er2.esm.js → BrowserStorageProvider-BpJM-gIl.esm.js} +8 -1
  2. package/dist/{IpifyProvider-D7jx52AL.esm.js → IpifyProvider-D4LWD15E.esm.js} +28 -0
  3. package/dist/{MotionSensorProvider-4v7xkqAp.esm.js → MotionSensorProvider-Bx7Mpzt0.esm.js} +63 -13
  4. package/dist/{OpenViduRecordingProvider-CMu6XVdc.esm.js → OpenViduRecordingProvider-O4GjBseO.esm.js} +1 -1
  5. package/dist/StateMachine-BC_nGvrc.d.ts +2 -0
  6. package/dist/StreamCanvasCapture-ImiDQdVA.esm.js +118 -0
  7. package/dist/StreamCanvasCapture-yyl20qd9.d.ts +152 -0
  8. package/dist/{BaseWasmProvider-C_DLEI40.esm.js → WasmUtilProvider-BKWm8rSA.esm.js} +202 -11
  9. package/dist/{addressSearch-BpTbTWCa.esm.js → addressSearch-DvmWXKZg.esm.js} +63 -57
  10. package/dist/{ae-signature-DDDZmWXj.esm.js → ae-signature-BFZta3TZ.esm.js} +1 -1
  11. package/dist/ae-signature.d.ts +3 -3
  12. package/dist/ae-signature.esm.js +6 -5
  13. package/dist/antifraud.d.ts +5 -46
  14. package/dist/antifraud.esm.js +6 -43
  15. package/dist/antifraudManager-CkV4u-LE.esm.js +55 -0
  16. package/dist/antifraudManager-CznnhyvD.d.ts +63 -0
  17. package/dist/{antifraudStateMachine-O0TMf6yc.esm.js → antifraudStateMachine-Ccrb-Jxc.esm.js} +2 -2
  18. package/dist/apiError-B-j-gyDx.esm.js +51 -0
  19. package/dist/authentication.d.ts +13 -11
  20. package/dist/authentication.esm.js +26 -22
  21. package/dist/{authenticationManager-5M-fKzXx.esm.js → authenticationManager-BlR6mSaG.esm.js} +6 -6
  22. package/dist/{authenticationManager-C83GNIhl.d.ts → authenticationManager-CaiQbp-q.d.ts} +4 -4
  23. package/dist/{authenticationStateMachine-BMZqatiF.esm.js → authenticationStateMachine-DkcGUMw5.esm.js} +21 -9
  24. package/dist/{backCameraStream-DMdMeGk2.esm.js → backCameraStream-D7Wo4Nbx.esm.js} +95 -7
  25. package/dist/{session-CrkWAs-q.esm.js → browserSimulation-B1dWiXp7.esm.js} +61 -476
  26. package/dist/camera.d.ts +4 -3
  27. package/dist/camera.esm.js +4 -3
  28. package/dist/canvas-SKcRBxsk.esm.js +230 -0
  29. package/dist/consent.d.ts +4 -398
  30. package/dist/consent.esm.js +6 -77
  31. package/dist/consentManager-BYo9Nu1r.esm.js +90 -0
  32. package/dist/consentManager-Cg5Sk2tv.d.ts +419 -0
  33. package/dist/{consentStateMachine-CCT-B60O.esm.js → consentStateMachine-BG3yL8aC.esm.js} +9 -6
  34. package/dist/cpf-ocr.d.ts +4 -199
  35. package/dist/cpf-ocr.esm.js +8 -177
  36. package/dist/cpfOcrManager-Dg1s_TY5.d.ts +216 -0
  37. package/dist/cpfOcrManager-sSKegxox.esm.js +190 -0
  38. package/dist/cross-document-data-match.d.ts +1 -1
  39. package/dist/cross-document-data-match.esm.js +4 -4
  40. package/dist/curp-validation.d.ts +8 -158
  41. package/dist/curp-validation.esm.js +6 -108
  42. package/dist/curpValidationManager-CFem6zP9.esm.js +122 -0
  43. package/dist/curpValidationManager-RttixpIc.d.ts +184 -0
  44. package/dist/{curpValidationStateMachine-CitWLr2c.esm.js → curpValidationStateMachine-B7V_qp66.esm.js} +20 -13
  45. package/dist/custom-fields.d.ts +2 -2
  46. package/dist/custom-fields.esm.js +4 -4
  47. package/dist/custom-watchlist.d.ts +1 -1
  48. package/dist/custom-watchlist.esm.js +4 -41
  49. package/dist/customWatchlistStateMachine-HmFybXLX.esm.js +50 -0
  50. package/dist/{deepsightLoader-Cm4JIT_z.esm.js → deepsightLoader-8tnddNx-.esm.js} +19 -10
  51. package/dist/deepsightService-CrHmvx8X.esm.js +276 -0
  52. package/dist/{deepsightService-CEVxzehb.d.ts → deepsightService-Dh5P-hLf.d.ts} +13 -160
  53. package/dist/device.esm.js +4 -3
  54. package/dist/document-capture.d.ts +989 -80
  55. package/dist/document-capture.esm.js +34 -8
  56. package/dist/document-upload.d.ts +44 -44
  57. package/dist/document-upload.esm.js +7 -7
  58. package/dist/{documentCaptureStateMachine-BqzTDy9k.esm.js → documentCaptureStateMachine-CUTUzUw_.esm.js} +90 -6
  59. package/dist/dynamic-forms.d.ts +20 -5
  60. package/dist/dynamic-forms.esm.js +150 -61
  61. package/dist/ekyb.d.ts +32 -13
  62. package/dist/ekyb.esm.js +25 -15
  63. package/dist/{ekybStateMachine-CyMx_kg-.esm.js → ekybStateMachine-klc-AImJ.esm.js} +319 -207
  64. package/dist/ekyc.d.ts +10 -78
  65. package/dist/ekyc.esm.js +17 -12
  66. package/dist/{ekycStateMachine-oeO0Iekd.esm.js → ekycStateMachine-CXbpaJJn.esm.js} +201 -113
  67. package/dist/electronic-signature.d.ts +3 -3
  68. package/dist/electronic-signature.esm.js +5 -4
  69. package/dist/{electronicSignatureManager-D9OHzTpG.esm.js → electronicSignatureManager-BaECdJ1u.esm.js} +91 -23
  70. package/dist/email.d.ts +4 -3
  71. package/dist/email.esm.js +6 -5
  72. package/dist/{emailManager-wAV0LE-H.esm.js → emailManager--D5G3ChB.esm.js} +30 -7
  73. package/dist/{emailManager-DIfnS5g1.d.ts → emailManager-lAzDoQOs.d.ts} +66 -8
  74. package/dist/{emailStateMachine-DOf4j58N.esm.js → emailStateMachine-CxTOMAjC.esm.js} +46 -11
  75. package/dist/{endpoints-CnN3SyDa.esm.js → endpoints-BeTK0Mlt.esm.js} +6 -3
  76. package/dist/{events-D6-e4vok.esm.js → events-Dvvriq9l.esm.js} +3 -1
  77. package/dist/events.d.ts +2 -0
  78. package/dist/events.esm.js +1 -1
  79. package/dist/extensibility.d.ts +41 -16
  80. package/dist/extensibility.esm.js +55 -33
  81. package/dist/face-match.d.ts +21 -2
  82. package/dist/face-match.esm.js +5 -5
  83. package/dist/{faceCaptureManagerFactory-yqtpxjnN.d.ts → faceCaptureManagerFactory-CjdBUS6s.d.ts} +48 -17
  84. package/dist/{faceCaptureManagerFactory-Dh2PdGlF.esm.js → faceCaptureManagerFactory-ej2j1LMr.esm.js} +21 -5
  85. package/dist/{faceCaptureSetup-B3faSpYA.esm.js → faceCaptureSetup-B9t6bYze.esm.js} +68 -183
  86. package/dist/{faceMatchStateMachine-DNFrxTFS.esm.js → faceMatchStateMachine-DeXXzSuz.esm.js} +62 -6
  87. package/dist/field-comparison.d.ts +4 -0
  88. package/dist/field-comparison.esm.js +7 -0
  89. package/dist/fieldComparisonManager-Bu5TaSr3.d.ts +76 -0
  90. package/dist/fieldComparisonManager-COGI2ARD.esm.js +162 -0
  91. package/dist/fiscal-qr.d.ts +59 -0
  92. package/dist/fiscal-qr.esm.js +323 -0
  93. package/dist/flow-events.d.ts +6 -5
  94. package/dist/flow.d.ts +23 -15
  95. package/dist/flow.esm.js +56 -17
  96. package/dist/flowCompletionService-BdR2cGgB.d.ts +19 -0
  97. package/dist/flowCompletionService-DdGojV9K.esm.js +20 -0
  98. package/dist/{flowServices-PiNsxLfK.esm.js → flowServices-ChgTNggJ.esm.js} +10 -5
  99. package/dist/geolocation.d.ts +4 -4
  100. package/dist/geolocation.esm.js +6 -6
  101. package/dist/{geolocationStateMachine-asasuHY2.esm.js → geolocationStateMachine-Dvh7X0wF.esm.js} +5 -5
  102. package/dist/getBrowser-C8DP7oTB.esm.js +8 -0
  103. package/dist/{getBrowser-BSXUTWXw.esm.js → getDeviceClass-C0olyNFS.esm.js} +1 -8
  104. package/dist/{getDeviceClass-BSntT9_j.esm.js → getDeviceClass-C8Do2qYu.esm.js} +1 -1
  105. package/dist/government-validation.d.ts +28 -8
  106. package/dist/government-validation.esm.js +19 -8
  107. package/dist/{governmentValidationStateMachine-BDDYrJTo.esm.js → governmentValidationStateMachine-DcJ-BfsC.esm.js} +35 -77
  108. package/dist/home.d.ts +15 -14
  109. package/dist/home.esm.js +2 -2
  110. package/dist/http-Cai3IoLS.esm.js +0 -0
  111. package/dist/http.esm.js +1 -0
  112. package/dist/id-ocr.d.ts +54 -54
  113. package/dist/id-ocr.esm.js +5 -5
  114. package/dist/id-verification.d.ts +27 -27
  115. package/dist/id-verification.esm.js +4 -4
  116. package/dist/id.d.ts +12 -10
  117. package/dist/id.esm.js +70 -27
  118. package/dist/{idCaptureManager-Fyd0eam-.d.ts → idCaptureManager-ChCNmgBj.d.ts} +40 -20
  119. package/dist/{idCaptureManager-D0ktk7Hh.esm.js → idCaptureManager-D3pwWutw.esm.js} +22 -7
  120. package/dist/{idCaptureStateMachine-dwlBUjbC.esm.js → idCaptureStateMachine-B3AiDIsT.esm.js} +172 -123
  121. package/dist/{idOcrStateMachine-YbjjC_Gg.esm.js → idOcrStateMachine-CDQ5d_VM.esm.js} +4 -4
  122. package/dist/{idVerificationStateMachine-xbw9HP1Z.esm.js → idVerificationStateMachine-kRxwImzO.esm.js} +2 -2
  123. package/dist/identity-reuse.d.ts +4 -530
  124. package/dist/identity-reuse.esm.js +8 -274
  125. package/dist/identityReuseManager-C6n_97dw.esm.js +95 -0
  126. package/dist/identityReuseManager-Cww-NDtd.d.ts +428 -0
  127. package/dist/identityReuseStateMachine-BfE5YiEr.esm.js +148 -0
  128. package/dist/{index-BcRG8rtJ.d.ts → index-B5hPA0Bg.d.ts} +2 -2
  129. package/dist/{index-ChHWNH48.d.ts → index-B9NysVDB.d.ts} +469 -195
  130. package/dist/index.d.ts +2 -2
  131. package/dist/index.esm.js +10 -8
  132. package/dist/{invokeOnCaptureCallback-rc6kBHo5.esm.js → invokeOnCaptureCallback-ygByVdnn.esm.js} +1 -1
  133. package/dist/{lib-BB0B_qQX.esm.js → lib-BY67lgbq.esm.js} +1 -1
  134. package/dist/mandatory-consent.d.ts +8 -412
  135. package/dist/mandatory-consent.esm.js +6 -76
  136. package/dist/mandatoryConsentManager-Dq6WiOZh.d.ts +429 -0
  137. package/dist/mandatoryConsentManager-H6D18cZB.esm.js +89 -0
  138. package/dist/{mandatoryConsentStateMachine-Cnco1jvn.esm.js → mandatoryConsentStateMachine-DtQNW1ji.esm.js} +6 -6
  139. package/dist/openviduLazy-B8L--0oe.esm.js +3 -0
  140. package/dist/{openviduLazy-Cok70ZSg.esm.js → openviduLazy-Dh14JNJc.esm.js} +2 -2
  141. package/dist/otp-CGMdUzBC.esm.js +33 -0
  142. package/dist/otp-DF5A0sFx.d.ts +8 -0
  143. package/dist/permissionGuards-D0wGddy7.esm.js +23 -0
  144. package/dist/permissionServices-Doec4X5L.esm.js +130 -0
  145. package/dist/phone.d.ts +4 -3
  146. package/dist/phone.esm.js +6 -5
  147. package/dist/{phoneManager-DAJbGhlY.esm.js → phoneManager-BmF-0Ez4.esm.js} +30 -7
  148. package/dist/{phoneManager-B6M30hKE.d.ts → phoneManager-fPmIBYQK.d.ts} +65 -7
  149. package/dist/{phoneStateMachine-CuPARRaT.esm.js → phoneStateMachine-BiV0yoEx.esm.js} +46 -11
  150. package/dist/{qe-signature-DFo_Cc-I.esm.js → qe-signature-CUYPcHVo.esm.js} +1 -1
  151. package/dist/qe-signature.d.ts +3 -3
  152. package/dist/qe-signature.esm.js +6 -5
  153. package/dist/{recordingService-Ig2UgbLv.esm.js → recordingService-yRw7hfzU.esm.js} +197 -179
  154. package/dist/redirect-to-mobile.d.ts +6 -104
  155. package/dist/redirect-to-mobile.esm.js +6 -99
  156. package/dist/redirectToMobileManager-BNe3IzC_.d.ts +178 -0
  157. package/dist/redirectToMobileManager-Dy3t7o0C.esm.js +159 -0
  158. package/dist/{redirectToMobileStateMachine-BOEqe46A.esm.js → redirectToMobileStateMachine-DyAdRxfP.esm.js} +28 -19
  159. package/dist/{runChildModule-CqqwqAkW.esm.js → runChildModule-CuoHZ1cx.esm.js} +35 -3
  160. package/dist/selfie.d.ts +13 -11
  161. package/dist/selfie.esm.js +53 -24
  162. package/dist/{selfieManager-Duisl7qN.esm.js → selfieManager-BNuTIGAz.esm.js} +6 -6
  163. package/dist/{selfieManager-D0lSgd-J.d.ts → selfieManager-C2y_t6DG.d.ts} +4 -4
  164. package/dist/{selfieStateMachine-D76whWEf.esm.js → selfieStateMachine-Bv99bZJE.esm.js} +5 -3
  165. package/dist/session-DoVb-OcB.esm.js +152 -0
  166. package/dist/session.d.ts +37 -5
  167. package/dist/session.esm.js +12 -7
  168. package/dist/sessionInitializer-DRB-hgbV.esm.js +366 -0
  169. package/dist/{setup-C5AITV8m.d.ts → setup-BwCluiw3.d.ts} +86 -6
  170. package/dist/{setup-DPPAxmXf.esm.js → setup-CUO4mErT.esm.js} +175 -25
  171. package/dist/signature.d.ts +2 -2
  172. package/dist/signature.esm.js +4 -4
  173. package/dist/{signatureStateMachine-B5-QVUve.esm.js → signatureStateMachine-C5qqYLRz.esm.js} +3 -3
  174. package/dist/stats-BMNUG1AU.esm.js +41 -0
  175. package/dist/stats.d.ts +13 -2
  176. package/dist/stats.esm.js +3 -2
  177. package/dist/trust-graph.d.ts +33 -4
  178. package/dist/trust-graph.esm.js +21 -15
  179. package/dist/{types-CFV9G_7j.d.ts → types-Bj9hdFjU.d.ts} +1 -1
  180. package/dist/{types-BP1m8VRw.d.ts → types-DOUhndhT.d.ts} +14 -2
  181. package/dist/types-DsnEVMhr.esm.js +34 -0
  182. package/dist/types-DvGZI7BF.d.ts +131 -0
  183. package/dist/{types-B06Ypu2F.d.ts → types-NuT8ftBV.d.ts} +1 -1
  184. package/dist/types-ya0LN_MX.d.ts +5 -0
  185. package/dist/{warmup-CEcppFiS.d.ts → warmup-Dg8Lh-50.d.ts} +8 -0
  186. package/dist/wasm.d.ts +6 -4
  187. package/dist/wasm.esm.js +11 -9
  188. package/dist/watchlist-for-business.d.ts +1 -1
  189. package/dist/watchlist-for-business.esm.js +5 -73
  190. package/dist/watchlist.d.ts +1 -1
  191. package/dist/watchlist.esm.js +4 -41
  192. package/dist/watchlistForBusinessStateMachine-DMl8j2Ov.esm.js +74 -0
  193. package/dist/watchlistStateMachine-DmQlqI6L.esm.js +50 -0
  194. package/dist/workflow.d.ts +146 -100
  195. package/dist/workflow.esm.js +116 -66
  196. package/package.json +19 -1
  197. package/dist/StateMachine-BCQrZJhf.d.ts +0 -2
  198. package/dist/WasmUtilProvider-j98OJf-S.esm.js +0 -114
  199. package/dist/browserSimulation-gxD8cSpM.esm.js +0 -20
  200. package/dist/deepsightService-O74l4Y__.esm.js +0 -489
  201. package/dist/displayErrors-DqJ_IbsG.d.ts +0 -39
  202. package/dist/flowCompletionService-DhkT4SRY.d.ts +0 -10
  203. package/dist/flowCompletionService-P54yzGvA.esm.js +0 -13
  204. package/dist/openviduLazy-Cm0XFh_v.esm.js +0 -3
  205. package/dist/permissionServices-D_i6nzEw.esm.js +0 -50
  206. package/dist/stats-CIfiPzb1.esm.js +0 -16
  207. package/dist/types-CAD4va6a.d.ts +0 -5
  208. package/dist/watchlistServices-DMbUhkBX.esm.js +0 -12
  209. /package/dist/{Actor-CI32dTbG.d.ts → Actor-Y0_Fj-KL.d.ts} +0 -0
  210. /package/dist/{ITimerCapability-C67ZRskg.esm.js → ITimerCapability-CB0I1Uf2.esm.js} +0 -0
  211. /package/dist/{Manager-C8PrhBOx.d.ts → Manager-BHn8wH8K.d.ts} +0 -0
  212. /package/dist/{camera-PA2Ljri3.esm.js → camera-DJWm3V4g.esm.js} +0 -0
  213. /package/dist/{camera-DBSxa6ML.d.ts → camera-SRBpPq2X.d.ts} +0 -0
  214. /package/dist/{chunk-CRF6K_H_.esm.js → chunk-CMUKZ2uL.esm.js} +0 -0
  215. /package/dist/{cpf-PPz2Njto.esm.js → cpf-BRzggV8G.esm.js} +0 -0
  216. /package/dist/{dateUtils-UoN5xswP.esm.js → dateUtils-AksLQmgV.esm.js} +0 -0
  217. /package/dist/{platform-CfrjKhmi.esm.js → platform-SKvEfCBh.esm.js} +0 -0
  218. /package/dist/{xstate.esm-B70JrNqo.esm.js → xstate.esm-C9wncMQa.esm.js} +0 -0
@@ -28,6 +28,7 @@ const endpoints = {
28
28
  processId: "/omni/process/id",
29
29
  processSecondId: "/omni/process/second-id",
30
30
  processFace: "/omni/process/face",
31
+ processFaceSecondId: "/omni/process/face-vs-second-id",
31
32
  governmentValidation: "/omni/process/government-validation",
32
33
  deviceStats: "/omni/device/stats",
33
34
  featureConfig: "/omni/feature-config",
@@ -66,10 +67,11 @@ const endpoints = {
66
67
  qrValidateUuid: "/omni/qr/validate",
67
68
  addSignature: "/omni/add/signature",
68
69
  addSignatureV2: "/omni/add/signature/v2",
69
- identityReuseCandidates: "/omni/identity-reuse/candidates",
70
+ identityReuseDocuments: "/omni/identity-reuse/documents",
70
71
  identityReuseSubmit: "/omni/identity-reuse/submit",
71
72
  processAntifraud: "/omni/process/antifraud",
72
- processWatchlist: "/omni/process/global-watchlist",
73
+ processGlobalWatchlist: "/omni/process/global-watchlist",
74
+ processWatchlist: "/omni/process/watchlist",
73
75
  watchlistForBusinessSubmit: "/omni/businessWatchlist-result",
74
76
  aesUnsignedDocuments: "/omni/es/documents/unsigned",
75
77
  aesSignDocument: "/omni/es/process/sign",
@@ -80,7 +82,8 @@ const endpoints = {
80
82
  workflowInfo: "/omni/workflow/info",
81
83
  customModuleExecution: "/omni/custom-module/execution",
82
84
  processCrossDocumentDataMatch: "/omni/cross-doc-data-check/process",
83
- dynamicFormsSubmitAnswer: "/omni/form-answer/submit"
85
+ dynamicFormsSubmitAnswer: "/omni/form-answer/submit",
86
+ addFiscalQrLink: "/omni/add/fiscal-qr-url"
84
87
  };
85
88
 
86
89
  //#endregion
@@ -456,8 +456,10 @@ const eventModuleNames = {
456
456
  qeSignature: "QE_SIGNATURE",
457
457
  crossDocumentDataMatch: "CROSS_DOCUMENT_DATA_MATCH",
458
458
  customFields: "CUSTOM_FIELDS",
459
+ fieldComparison: "FIELD_COMPARISON",
459
460
  watchlistForBusiness: "WATCHLIST_FOR_BUSINESS",
460
- trustGraph: "TRUST_GRAPH"
461
+ trustGraph: "TRUST_GRAPH",
462
+ fiscalQr: "FISCAL_QR"
461
463
  };
462
464
  const eventScreenNames = {
463
465
  faceMatch: "FACE_MATCH",
package/dist/events.d.ts CHANGED
@@ -54,8 +54,10 @@ declare const eventModuleNames: {
54
54
  readonly qeSignature: "QE_SIGNATURE";
55
55
  readonly crossDocumentDataMatch: "CROSS_DOCUMENT_DATA_MATCH";
56
56
  readonly customFields: "CUSTOM_FIELDS";
57
+ readonly fieldComparison: "FIELD_COMPARISON";
57
58
  readonly watchlistForBusiness: "WATCHLIST_FOR_BUSINESS";
58
59
  readonly trustGraph: "TRUST_GRAPH";
60
+ readonly fiscalQr: "FISCAL_QR";
59
61
  };
60
62
  declare const eventScreenNames: {
61
63
  readonly faceMatch: "FACE_MATCH";
@@ -1,4 +1,4 @@
1
1
  import "./api-CESGtpbH.esm.js";
2
- import { a as videoSelfieEvents, c as elementClicked, d as screenClosed, f as screenEvent, h as addEvent, i as tutorialScreenNamesMapper, l as moduleClosed, n as eventModuleNames, p as screenOpened, r as eventScreenNames, s as captureAttemptFinished, t as cameraScreenNamesMapper, u as moduleOpened, y as subscribeEvent } from "./events-D6-e4vok.esm.js";
2
+ import { a as videoSelfieEvents, c as elementClicked, d as screenClosed, f as screenEvent, h as addEvent, i as tutorialScreenNamesMapper, l as moduleClosed, n as eventModuleNames, p as screenOpened, r as eventScreenNames, s as captureAttemptFinished, t as cameraScreenNamesMapper, u as moduleOpened, y as subscribeEvent } from "./events-Dvvriq9l.esm.js";
3
3
 
4
4
  export { addEvent, cameraScreenNamesMapper, captureAttemptFinished, elementClicked, eventModuleNames, eventScreenNames, moduleClosed, moduleOpened, screenClosed, screenEvent, screenOpened, subscribeEvent, tutorialScreenNamesMapper, videoSelfieEvents };
@@ -1,18 +1,29 @@
1
- import "./warmup-CEcppFiS.js";
2
- import "./Manager-C8PrhBOx.js";
3
- import { n as createActor } from "./Actor-CI32dTbG.js";
4
- import { r as fromPromise } from "./StateMachine-BCQrZJhf.js";
5
- import { _ as SendFaceImageResponse, d as FaceCaptureContext, f as FaceCaptureEvent, m as faceCaptureMachine, n as FaceCaptureManagerState, p as FaceCaptureInput, t as FaceCaptureManager, v as BaseWasmProvider } from "./faceCaptureManagerFactory-yqtpxjnN.js";
6
- import "./camera-DBSxa6ML.js";
7
- import "./types-CFV9G_7j.js";
8
- import "./types-BP1m8VRw.js";
9
- import { a as IWasmUtilCapability, o as VirtualCameraCheckOutput, s as WasmUtilConfig, u as IStorageCapability } from "./deepsightService-CEVxzehb.js";
10
- import "./types-CAD4va6a.js";
11
- import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-D0lSgd-J.js";
12
- import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-C83GNIhl.js";
13
- import { i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-DIfnS5g1.js";
14
- import { A as CaptureIdResponse, i as createIdCaptureManagerFromActor, n as IdCaptureManager, r as IdCaptureState } from "./idCaptureManager-Fyd0eam-.js";
15
- import { i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-B6M30hKE.js";
1
+ import "./warmup-Dg8Lh-50.js";
2
+ import "./Manager-BHn8wH8K.js";
3
+ import { n as createActor } from "./Actor-Y0_Fj-KL.js";
4
+ import { a as AntifraudActor, i as createAntifraudManagerFromActor, n as AntifraudState, t as AntifraudManager } from "./antifraudManager-CznnhyvD.js";
5
+ import { i as fromPromise, r as fromCallback } from "./StateMachine-BC_nGvrc.js";
6
+ import { _ as SendFaceImageResponse, d as FaceCaptureContext, f as FaceCaptureEvent, m as faceCaptureMachine, n as FaceCaptureManagerState, p as FaceCaptureInput, t as FaceCaptureManager, v as BaseWasmProvider } from "./faceCaptureManagerFactory-CjdBUS6s.js";
7
+ import "./camera-SRBpPq2X.js";
8
+ import "./types-Bj9hdFjU.js";
9
+ import "./types-DvGZI7BF.js";
10
+ import "./types-DOUhndhT.js";
11
+ import { i as WasmUtilConfig, n as IWasmUtilCapability, r as VirtualCameraCheckOutput, s as IStorageCapability } from "./deepsightService-Dh5P-hLf.js";
12
+ import "./types-ya0LN_MX.js";
13
+ import "./StreamCanvasCapture-yyl20qd9.js";
14
+ import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-C2y_t6DG.js";
15
+ import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-CaiQbp-q.js";
16
+ import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-Cg5Sk2tv.js";
17
+ import { a as CpfOcrActor, i as createCpfOcrManagerFromActor, n as CpfOcrState, t as CpfOcrManager } from "./cpfOcrManager-Dg1s_TY5.js";
18
+ import { a as CurpValidationActor, i as createCurpValidationManagerFromActor, n as CurpValidationState, t as CurpValidationManager } from "./curpValidationManager-RttixpIc.js";
19
+ import { a as EmailActor, i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-lAzDoQOs.js";
20
+ import "./otp-DF5A0sFx.js";
21
+ import { A as CaptureIdResponse, i as createIdCaptureManagerFromActor, n as IdCaptureManager, r as IdCaptureState } from "./idCaptureManager-ChCNmgBj.js";
22
+ import { a as PhoneActor, i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-fPmIBYQK.js";
23
+ import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-Cww-NDtd.js";
24
+ import { a as FieldComparisonActor, i as createFieldComparisonManagerFromActor, n as FieldComparisonState, t as FieldComparisonManager } from "./fieldComparisonManager-Bu5TaSr3.js";
25
+ import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-Dq6WiOZh.js";
26
+ import { a as RedirectToMobileActor, i as createRedirectToMobileManagerFromActor, n as RedirectToMobileState, t as RedirectToMobileManager } from "./redirectToMobileManager-BNe3IzC_.js";
16
27
 
17
28
  //#region src/modules/authentication/authenticationUploadService.d.ts
18
29
  type AuthenticationUploadResponse = {
@@ -81,6 +92,15 @@ declare class WasmUtilProvider extends BaseWasmProvider implements IWasmUtilCapa
81
92
  setBackgroundMode(backgroundMode: boolean): void;
82
93
  setZc(zc: string): void;
83
94
  setInspectorOpened(opened: boolean): void;
95
+ /**
96
+ * Toggles the WASM module's production mode. When `true`, the native module
97
+ * suppresses its verbose debug logging/console output; when `false`, those
98
+ * logs are emitted. The SDK forces this to `true` by default and only flips
99
+ * it off when the caller opts in via `setup({ wasm: { showLogs: true } })`.
100
+ *
101
+ * @param productionMode - `true` to silence WASM logs, `false` to emit them.
102
+ */
103
+ setProductionMode(productionMode: boolean): Promise<void>;
84
104
  getMetadata(): string;
85
105
  analyzeFrame(image: ImageData): Promise<void>;
86
106
  getCheck(): string;
@@ -89,6 +109,11 @@ declare class WasmUtilProvider extends BaseWasmProvider implements IWasmUtilCapa
89
109
  isVirtualCamera(label: string | null): boolean;
90
110
  prc(): Promise<void>;
91
111
  poc(output: VirtualCameraCheckOutput): Promise<void>;
112
+ rsp(): Promise<void>;
113
+ ssl(): void;
114
+ stl(): void;
115
+ osv(): void;
116
+ oev(): void;
92
117
  ckvcks(data: ArrayBuffer): void;
93
118
  getVersions(): Promise<unknown>;
94
119
  }
@@ -119,4 +144,4 @@ declare function getDeviceFingerprintInfo(): Promise<DeviceFingerprintInfo>;
119
144
  //#region src/internal/fingerprint/fingerprintApi.d.ts
120
145
  declare function getFingerprint(disableIpify?: boolean): Promise<FingerprintResult>;
121
146
  //#endregion
122
- export { type AuthenticationManager, type AuthenticationState, type AuthenticationUploadResponse, BrowserStorageProvider, type CaptureIdResponse, type DeviceFingerprintInfo, type EmailManager, type EmailState, type FaceCaptureContext, type FaceCaptureEvent, type FaceCaptureInput, type FaceCaptureManager, type FaceCaptureManagerState, type FingerprintResult, type IdCaptureManager, type IdCaptureState, type PhoneManager, type PhoneState, type ProcessFaceResponse, type SelfieManager, type SelfieState, type SendFaceImageResponse, WasmUtilProvider, createActor, createAuthenticationManagerFromActor, createEmailManagerFromActor, createIdCaptureManagerFromActor, createPhoneManagerFromActor, createSelfieManagerFromActor, faceCaptureMachine, fromPromise, getDeviceFingerprintInfo, getFingerprint };
147
+ export { type AntifraudActor, type AntifraudManager, type AntifraudState, type AuthenticationManager, type AuthenticationState, type AuthenticationUploadResponse, BrowserStorageProvider, type CaptureIdResponse, type ConsentActor, type ConsentManager, type ConsentState, type CpfOcrActor, type CpfOcrManager, type CpfOcrState, type CurpValidationActor, type CurpValidationManager, type CurpValidationState, type DeviceFingerprintInfo, type EmailActor, type EmailManager, type EmailState, type FaceCaptureContext, type FaceCaptureEvent, type FaceCaptureInput, type FaceCaptureManager, type FaceCaptureManagerState, type FieldComparisonActor, type FieldComparisonManager, type FieldComparisonState, type FingerprintResult, type IdCaptureManager, type IdCaptureState, type IdentityReuseActor, type IdentityReuseManager, type IdentityReuseState, type MandatoryConsentActor, type MandatoryConsentManager, type MandatoryConsentState, type PhoneActor, type PhoneManager, type PhoneState, type ProcessFaceResponse, type RedirectToMobileActor, type RedirectToMobileManager, type RedirectToMobileState, type SelfieManager, type SelfieState, type SendFaceImageResponse, WasmUtilProvider, createActor, createAntifraudManagerFromActor, createAuthenticationManagerFromActor, createConsentManagerFromActor, createCpfOcrManagerFromActor, createCurpValidationManagerFromActor, createEmailManagerFromActor, createFieldComparisonManagerFromActor, createIdCaptureManagerFromActor, createIdentityReuseManagerFromActor, createMandatoryConsentManagerFromActor, createPhoneManagerFromActor, createRedirectToMobileManagerFromActor, createSelfieManagerFromActor, faceCaptureMachine, fromCallback, fromPromise, getDeviceFingerprintInfo, getFingerprint };
@@ -1,37 +1,59 @@
1
- import "./BaseWasmProvider-C_DLEI40.esm.js";
2
- import { t as WasmUtilProvider } from "./WasmUtilProvider-j98OJf-S.esm.js";
1
+ import { t as WasmUtilProvider } from "./WasmUtilProvider-BKWm8rSA.esm.js";
3
2
  import "./BrowserTimerProvider-DhNc_x02.esm.js";
4
3
  import "./api-CESGtpbH.esm.js";
5
- import "./events-D6-e4vok.esm.js";
6
- import "./endpoints-CnN3SyDa.esm.js";
7
- import { a as FingerprintProvider, o as getDeviceFingerprintInfo, t as getDisableIpify } from "./session-CrkWAs-q.esm.js";
8
- import { t as IpifyProvider } from "./IpifyProvider-D7jx52AL.esm.js";
9
- import "./browserSimulation-gxD8cSpM.esm.js";
10
- import { a as fromPromise, s as createActor } from "./xstate.esm-B70JrNqo.esm.js";
11
- import "./faceCaptureManagerFactory-Dh2PdGlF.esm.js";
12
- import { t as BrowserStorageProvider } from "./BrowserStorageProvider-CuOW1Er2.esm.js";
13
- import { t as faceCaptureMachine } from "./faceCaptureSetup-B3faSpYA.esm.js";
14
- import "./ITimerCapability-C67ZRskg.esm.js";
15
- import "./camera-PA2Ljri3.esm.js";
16
- import "./deepsightService-O74l4Y__.esm.js";
17
- import "./recordingService-Ig2UgbLv.esm.js";
18
- import "./platform-CfrjKhmi.esm.js";
19
- import "./backCameraStream-DMdMeGk2.esm.js";
20
- import "./getBrowser-BSXUTWXw.esm.js";
21
- import "./stats-CIfiPzb1.esm.js";
22
- import "./getDeviceClass-BSntT9_j.esm.js";
23
- import "./MotionSensorProvider-4v7xkqAp.esm.js";
24
- import "./permissionServices-D_i6nzEw.esm.js";
25
- import "./authenticationStateMachine-BMZqatiF.esm.js";
26
- import { n as createAuthenticationManagerFromActor } from "./authenticationManager-5M-fKzXx.esm.js";
27
- import "./emailStateMachine-DOf4j58N.esm.js";
28
- import { n as createEmailManagerFromActor } from "./emailManager-wAV0LE-H.esm.js";
29
- import "./selfieStateMachine-D76whWEf.esm.js";
30
- import { n as createSelfieManagerFromActor } from "./selfieManager-Duisl7qN.esm.js";
31
- import "./idCaptureStateMachine-dwlBUjbC.esm.js";
32
- import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-D0ktk7Hh.esm.js";
33
- import "./phoneStateMachine-CuPARRaT.esm.js";
34
- import { n as createPhoneManagerFromActor } from "./phoneManager-DAJbGhlY.esm.js";
4
+ import "./events-Dvvriq9l.esm.js";
5
+ import "./endpoints-BeTK0Mlt.esm.js";
6
+ import "./stats-BMNUG1AU.esm.js";
7
+ import { t as IpifyProvider } from "./IpifyProvider-D4LWD15E.esm.js";
8
+ import "./browserSimulation-B1dWiXp7.esm.js";
9
+ import { o as FingerprintProvider, s as getDeviceFingerprintInfo, t as getDisableIpify } from "./sessionInitializer-DRB-hgbV.esm.js";
10
+ import "./platform-SKvEfCBh.esm.js";
11
+ import "./getBrowser-C8DP7oTB.esm.js";
12
+ import { a as fromPromise, i as fromCallback, s as createActor } from "./xstate.esm-C9wncMQa.esm.js";
13
+ import "./apiError-B-j-gyDx.esm.js";
14
+ import "./antifraudStateMachine-Ccrb-Jxc.esm.js";
15
+ import { n as createAntifraudManagerFromActor } from "./antifraudManager-CkV4u-LE.esm.js";
16
+ import { t as BrowserStorageProvider } from "./BrowserStorageProvider-BpJM-gIl.esm.js";
17
+ import "./MotionSensorProvider-Bx7Mpzt0.esm.js";
18
+ import "./permissionServices-Doec4X5L.esm.js";
19
+ import "./camera-DJWm3V4g.esm.js";
20
+ import "./faceCaptureManagerFactory-ej2j1LMr.esm.js";
21
+ import "./recordingService-yRw7hfzU.esm.js";
22
+ import "./ITimerCapability-CB0I1Uf2.esm.js";
23
+ import "./canvas-SKcRBxsk.esm.js";
24
+ import "./backCameraStream-D7Wo4Nbx.esm.js";
25
+ import "./deepsightService-CrHmvx8X.esm.js";
26
+ import "./getDeviceClass-C0olyNFS.esm.js";
27
+ import "./getDeviceClass-C8Do2qYu.esm.js";
28
+ import "./types-DsnEVMhr.esm.js";
29
+ import "./StreamCanvasCapture-ImiDQdVA.esm.js";
30
+ import "./permissionGuards-D0wGddy7.esm.js";
31
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-B9t6bYze.esm.js";
32
+ import "./authenticationStateMachine-DkcGUMw5.esm.js";
33
+ import { n as createAuthenticationManagerFromActor } from "./authenticationManager-BlR6mSaG.esm.js";
34
+ import "./consentStateMachine-BG3yL8aC.esm.js";
35
+ import { n as createConsentManagerFromActor } from "./consentManager-BYo9Nu1r.esm.js";
36
+ import { n as createCpfOcrManagerFromActor } from "./cpfOcrManager-sSKegxox.esm.js";
37
+ import "./cpf-BRzggV8G.esm.js";
38
+ import "./curpValidationStateMachine-B7V_qp66.esm.js";
39
+ import { n as createCurpValidationManagerFromActor } from "./curpValidationManager-CFem6zP9.esm.js";
40
+ import "./session-DoVb-OcB.esm.js";
41
+ import "./emailStateMachine-CxTOMAjC.esm.js";
42
+ import "./otp-CGMdUzBC.esm.js";
43
+ import { n as createEmailManagerFromActor } from "./emailManager--D5G3ChB.esm.js";
44
+ import "./selfieStateMachine-Bv99bZJE.esm.js";
45
+ import { n as createSelfieManagerFromActor } from "./selfieManager-BNuTIGAz.esm.js";
46
+ import "./idCaptureStateMachine-B3AiDIsT.esm.js";
47
+ import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-D3pwWutw.esm.js";
48
+ import "./phoneStateMachine-BiV0yoEx.esm.js";
49
+ import { n as createPhoneManagerFromActor } from "./phoneManager-BmF-0Ez4.esm.js";
50
+ import "./identityReuseStateMachine-BfE5YiEr.esm.js";
51
+ import { n as createIdentityReuseManagerFromActor } from "./identityReuseManager-C6n_97dw.esm.js";
52
+ import { n as createFieldComparisonManagerFromActor } from "./fieldComparisonManager-COGI2ARD.esm.js";
53
+ import "./mandatoryConsentStateMachine-DtQNW1ji.esm.js";
54
+ import { n as createMandatoryConsentManagerFromActor } from "./mandatoryConsentManager-H6D18cZB.esm.js";
55
+ import "./redirectToMobileStateMachine-DyAdRxfP.esm.js";
56
+ import { n as createRedirectToMobileManagerFromActor } from "./redirectToMobileManager-Dy3t7o0C.esm.js";
35
57
 
36
58
  //#region src/internal/fingerprint/fingerprintApi.ts
37
59
  async function getFingerprint(disableIpify) {
@@ -40,4 +62,4 @@ async function getFingerprint(disableIpify) {
40
62
  }
41
63
 
42
64
  //#endregion
43
- export { BrowserStorageProvider, WasmUtilProvider, createActor, createAuthenticationManagerFromActor, createEmailManagerFromActor, createIdCaptureManagerFromActor, createPhoneManagerFromActor, createSelfieManagerFromActor, faceCaptureMachine, fromPromise, getDeviceFingerprintInfo, getFingerprint };
65
+ export { BrowserStorageProvider, WasmUtilProvider, createActor, createAntifraudManagerFromActor, createAuthenticationManagerFromActor, createConsentManagerFromActor, createCpfOcrManagerFromActor, createCurpValidationManagerFromActor, createEmailManagerFromActor, createFieldComparisonManagerFromActor, createIdCaptureManagerFromActor, createIdentityReuseManagerFromActor, createMandatoryConsentManagerFromActor, createPhoneManagerFromActor, createRedirectToMobileManagerFromActor, createSelfieManagerFromActor, faceCaptureMachine, fromCallback, fromPromise, getDeviceFingerprintInfo, getFingerprint };
@@ -1,4 +1,4 @@
1
- import { t as Manager } from "./Manager-C8PrhBOx.js";
1
+ import { t as Manager } from "./Manager-BHn8wH8K.js";
2
2
 
3
3
  //#region src/modules/face-match/types.d.ts
4
4
 
@@ -225,4 +225,23 @@ type FaceMatchManager = ReturnType<typeof createFaceMatchManager>;
225
225
  //#region src/modules/face-match/faceMatchStateMachine.d.ts
226
226
  declare const faceMatchMachine: any;
227
227
  //#endregion
228
- export { type FaceMatchConfig, type FaceMatchImages, type FaceMatchManager, type FaceMatchResult, type FaceMatchState, type FaceMatchVariant, createFaceMatchManager, faceMatchMachine };
228
+ //#region src/modules/face-match/constants.d.ts
229
+ /**
230
+ * Backend error code returned by face-match endpoints (e.g. `/omni/process/face`,
231
+ * `/omni/get/score`) when the session was captured with `extractIdFace: false`.
232
+ * No biometric ID template exists, so face-match cannot run and should be
233
+ * skipped on the client (continue to the next step instead of erroring).
234
+ */
235
+ declare const ID_FACE_EXTRACTION_SKIPPED_CODE = 4084;
236
+ /**
237
+ * Determines whether a thrown HTTP error represents the "ID face extraction
238
+ * skipped" case (backend status `4084`).
239
+ *
240
+ * The backend exposes the code either as the top-level `status` field of the
241
+ * rejected value or nested inside the response body (`data.status`), depending
242
+ * on the transport. The HTTP client surfaces non-2xx responses as a
243
+ * `FetchHttpError` whose `data` holds the parsed error body.
244
+ */
245
+ declare function isFaceExtractionSkippedError(error: unknown): boolean;
246
+ //#endregion
247
+ export { type FaceMatchConfig, type FaceMatchImages, type FaceMatchManager, type FaceMatchResult, type FaceMatchState, type FaceMatchVariant, ID_FACE_EXTRACTION_SKIPPED_CODE, createFaceMatchManager, faceMatchMachine, isFaceExtractionSkippedError };
@@ -1,8 +1,8 @@
1
1
  import "./api-CESGtpbH.esm.js";
2
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-D6-e4vok.esm.js";
3
- import "./endpoints-CnN3SyDa.esm.js";
4
- import { c as createManager, s as createActor } from "./xstate.esm-B70JrNqo.esm.js";
5
- import { t as faceMatchMachine } from "./faceMatchStateMachine-DNFrxTFS.esm.js";
2
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dvvriq9l.esm.js";
3
+ import "./endpoints-BeTK0Mlt.esm.js";
4
+ import { c as createManager, s as createActor } from "./xstate.esm-C9wncMQa.esm.js";
5
+ import { n as ID_FACE_EXTRACTION_SKIPPED_CODE, r as isFaceExtractionSkippedError, t as faceMatchMachine } from "./faceMatchStateMachine-DeXXzSuz.esm.js";
6
6
 
7
7
  //#region src/modules/face-match/faceMatchActor.ts
8
8
  function createFaceMatchActor(options) {
@@ -170,4 +170,4 @@ function createFaceMatchManager(options) {
170
170
  }
171
171
 
172
172
  //#endregion
173
- export { createFaceMatchManager, faceMatchMachine };
173
+ export { ID_FACE_EXTRACTION_SKIPPED_CODE, createFaceMatchManager, faceMatchMachine, isFaceExtractionSkippedError };
@@ -1,11 +1,12 @@
1
- import { n as WasmPipeline } from "./warmup-CEcppFiS.js";
2
- import { t as Manager } from "./Manager-C8PrhBOx.js";
3
- import { t as ActorRefFrom } from "./Actor-CI32dTbG.js";
4
- import { n as StateMachine, t as AnyStateMachine } from "./StateMachine-BCQrZJhf.js";
5
- import { t as CameraStream } from "./camera-DBSxa6ML.js";
6
- import { i as FlowModuleConfig, n as Flow } from "./types-BP1m8VRw.js";
7
- import { a as IWasmUtilCapability, c as IMLProviderCapability, d as IRecordingCapability, i as IncodeCanvas, l as MLProviderConfig, r as StreamCanvasCapture, t as DeepsightService, u as IStorageCapability } from "./deepsightService-CEVxzehb.js";
8
- import { n as PermissionStatus, t as PermissionResult } from "./types-CAD4va6a.js";
1
+ import { n as WasmPipeline } from "./warmup-Dg8Lh-50.js";
2
+ import { t as Manager } from "./Manager-BHn8wH8K.js";
3
+ import { t as ActorRefFrom } from "./Actor-Y0_Fj-KL.js";
4
+ import { n as StateMachine, t as AnyStateMachine } from "./StateMachine-BC_nGvrc.js";
5
+ import { t as CameraStream } from "./camera-SRBpPq2X.js";
6
+ import { i as FlowModuleConfig, n as Flow } from "./types-DOUhndhT.js";
7
+ import { a as IMLProviderCapability, c as IRecordingCapability, n as IWasmUtilCapability, o as MLProviderConfig, s as IStorageCapability, t as DeepsightService } from "./deepsightService-Dh5P-hLf.js";
8
+ import { n as PermissionStatus, t as PermissionResult } from "./types-ya0LN_MX.js";
9
+ import { n as IncodeCanvas, t as StreamCanvasCapture } from "./StreamCanvasCapture-yyl20qd9.js";
9
10
 
10
11
  //#region src/modules/authentication/authenticationStateMachine.d.ts
11
12
  declare const _authenticationMachine: AnyStateMachine;
@@ -69,6 +70,11 @@ type BaseFaceCaptureConfig = {
69
70
  * (6 models) and only the results JSON is submitted to the backend
70
71
  * (`/omni/add/face-results`). Recording is skipped entirely. Used by both
71
72
  * SELFIE and AUTHENTICATION modules.
73
+ *
74
+ * **Requires E2EE.** The on-device face-results endpoint is only served on
75
+ * the E2EE-provisioned host. Configure `setup()` with the dedicated E2EE
76
+ * `apiURL` and `encryption: true` — see the `encryption` option on
77
+ * `SetupOptions`. Without it, `/omni/add/face-results` will fail.
72
78
  */
73
79
  onDeviceFaceResultsSubmissionEnabled?: boolean;
74
80
  };
@@ -371,7 +377,6 @@ declare abstract class BaseWasmProvider {
371
377
  declare class FaceDetectionProvider extends BaseWasmProvider implements IFaceDetectionCapability {
372
378
  private defaultThresholds;
373
379
  private currentThresholds;
374
- private currentFrame;
375
380
  constructor();
376
381
  processFrame(image: ImageData): Promise<void>;
377
382
  initialize(config: FaceDetectionConfig): Promise<void>;
@@ -385,7 +390,6 @@ declare class FaceDetectionProvider extends BaseWasmProvider implements IFaceDet
385
390
  setAttributesThresholds(thresholds: FaceAttributesThresholds): void;
386
391
  setChecksEnabled(config: FaceChecksConfig): void;
387
392
  setVideoSelfieMode(enabled: boolean): void;
388
- reset(): void;
389
393
  private createDefaultFaceCoordinates;
390
394
  private formatFaceCoordinates;
391
395
  }
@@ -402,13 +406,20 @@ type SelfieConfig = FlowModuleConfig['SELFIE'] & BaseFaceCaptureConfig;
402
406
  /**
403
407
  * Public selfie configuration for the captureOnly flow.
404
408
  *
405
- * Differs from {@link SelfieConfig} by requiring an `onCapture` callback —
406
- * captureOnly bypasses the Incode upload pipeline and delivers the rich
407
- * capture payload locally instead. Compile-time enforcement (vs. a runtime
408
- * check) prevents shipping a captureOnly flow with no destination for the
409
- * payload.
409
+ * captureOnly bypasses the Incode upload/processing pipeline, so this config
410
+ * intentionally exposes ONLY the options that affect the on-device capture
411
+ * experience: the tutorial/preview UX, attempts, timeout, and the on-device
412
+ * face validations. Backend-coupled flags of {@link SelfieConfig} (face
413
+ * recording, assisted onboarding, on-device results submission, …) don't apply
414
+ * here and are omitted.
415
+ *
416
+ * `onCapture` is the one required field — it receives the captured image
417
+ * locally (compile-time enforced so you can't ship a captureOnly flow with no
418
+ * destination for the payload). Everything else is optional and defaulted by
419
+ * the factory (see `DEFAULT_SELFIE_CAPTURE_ONLY_CONFIG`); set only what you care
420
+ * about, e.g. `{ onCapture, captureAttempts: 5, validateBrightness: true }`.
410
421
  */
411
- type SelfieCaptureOnlyConfig = SelfieConfig & {
422
+ type SelfieCaptureOnlyConfig = Partial<Pick<SelfieConfig, 'showTutorial' | 'showPreview' | 'captureAttempts' | 'autoCaptureTimeout' | 'validateLenses' | 'validateFaceMask' | 'validateHeadCover' | 'validateClosedEyes' | 'validateBrightness'>> & {
412
423
  onCapture: (response: FaceCaptureOnlyResponse) => void | Promise<void>;
413
424
  };
414
425
  type SelfieDependencies = FaceCaptureDependencies;
@@ -459,6 +470,13 @@ type FaceCaptureInput = {
459
470
  type FaceErrorObject = {
460
471
  type: string;
461
472
  message: string;
473
+ /**
474
+ * Stable machine-readable error code (a `FaceErrorCode`, e.g.
475
+ * `NONEXISTENT_CUSTOMER`) when known, in addition to the human-readable
476
+ * `message`. Lets hosts react to a specific terminal error without parsing
477
+ * the (server-/locale-dependent) message string.
478
+ */
479
+ moduleErrorCode?: string;
462
480
  };
463
481
  type FaceCaptureContext = {
464
482
  config: FaceCaptureConfig;
@@ -612,6 +630,13 @@ type FaceCaptureCaptureState = {
612
630
  /** Whether assisted onboarding mode is active (back camera, no mirror) */
613
631
  assistedOnboarding: boolean;
614
632
  ageAssurance?: boolean;
633
+ /**
634
+ * Whether on-device face-results submission is enabled
635
+ * (`onDeviceFaceResultsSubmissionEnabled`). When true, WASM autocapture
636
+ * never falls back to manual capture and the UI must not show the manual
637
+ * capture button.
638
+ */
639
+ onDeviceMode: boolean;
615
640
  };
616
641
  /** Processing the captured face */
617
642
  type FaceCaptureProcessingState = {
@@ -632,6 +657,12 @@ type FaceCaptureErrorState = {
632
657
  status: 'error';
633
658
  /** The error message */
634
659
  error: string;
660
+ /**
661
+ * Stable machine-readable error code (a `FaceErrorCode`, e.g.
662
+ * `NONEXISTENT_CUSTOMER`) when known. Use this — not the `error` message —
663
+ * to branch on a specific terminal error.
664
+ */
665
+ moduleErrorCode?: string;
635
666
  };
636
667
  /** Union of all possible face capture states */
637
668
  type FaceCaptureManagerState = FaceCaptureIdleState | FaceCaptureLoadingState | FaceCaptureTutorialState | FaceCapturePermissionsState | FaceCaptureCaptureState | FaceCaptureProcessingState | FaceCaptureFinishedState | FaceCaptureClosedState | FaceCaptureErrorState;
@@ -647,7 +678,7 @@ declare function createFaceCaptureManagerFromActor(actor: FaceCaptureActor, modu
647
678
  * From `tutorial` → permissions or capture (based on permission status).
648
679
  * From `capture` → finished.
649
680
  */
650
- nextStep(): void;
681
+ nextStep(): Promise<void>;
651
682
  /**
652
683
  * Requests camera permission via getUserMedia.
653
684
  * Only effective when in `permissions.idle` or `permissions.learnMore` state.
@@ -1,13 +1,17 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation, r as eventScreenNames } from "./events-D6-e4vok.esm.js";
2
- import { c as createManager } from "./xstate.esm-B70JrNqo.esm.js";
1
+ import { n as eventModuleNames, o as createManagerInstrumentation, r as eventScreenNames } from "./events-Dvvriq9l.esm.js";
2
+ import { c as createManager } from "./xstate.esm-C9wncMQa.esm.js";
3
+ import { n as setWasmDsFlagSync } from "./BrowserStorageProvider-BpJM-gIl.esm.js";
4
+ import { r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-Doec4X5L.esm.js";
3
5
 
4
6
  //#region src/internal/faceCapture/faceCaptureManagerFactory.ts
5
7
  function getPermissionStatus(snapshot) {
6
8
  if (!snapshot.matches("permissions")) return;
7
9
  if (snapshot.matches({ permissions: "idle" })) return "idle";
10
+ if (snapshot.matches({ permissions: "waitingForUser" })) return "idle";
8
11
  if (snapshot.matches({ permissions: "learnMore" })) return "learnMore";
9
12
  if (snapshot.matches({ permissions: "requesting" })) return "requesting";
10
13
  if (snapshot.matches({ permissions: "denied" })) return "denied";
14
+ if (snapshot.matches({ permissions: "motionOnly" })) return "motionOnly";
11
15
  }
12
16
  function getCaptureStatus(snapshot) {
13
17
  if (snapshot.matches({ capture: "initializing" })) return "initializing";
@@ -49,7 +53,8 @@ function mapState(snapshot) {
49
53
  attemptsRemaining: context.attemptsRemaining ?? 0,
50
54
  uploadError: context.uploadError,
51
55
  assistedOnboarding: context.config?.assistedOnboarding ?? false,
52
- ageAssurance: context.config?.ageAssurance === true
56
+ ageAssurance: context.config?.ageAssurance === true,
57
+ onDeviceMode: context.config?.onDeviceFaceResultsSubmissionEnabled === true
53
58
  };
54
59
  if (snapshot.matches("processing")) return { status: "processing" };
55
60
  if (snapshot.matches("finished")) return {
@@ -60,7 +65,8 @@ function mapState(snapshot) {
60
65
  const errorValue = context.error;
61
66
  return {
62
67
  status: "error",
63
- error: typeof errorValue === "string" ? errorValue : errorValue ? errorValue.message : "Unknown error"
68
+ error: typeof errorValue === "string" ? errorValue : errorValue ? errorValue.message : "Unknown error",
69
+ moduleErrorCode: typeof errorValue === "object" && errorValue ? errorValue.moduleErrorCode : void 0
64
70
  };
65
71
  }
66
72
  return { status: "idle" };
@@ -234,10 +240,20 @@ function createApi({ actor, trackElementClicked, trackCaptureAttemptFinished })
234
240
  snapshot.context.dependencies.trackCaptureAttemptFinished = trackCaptureAttemptFinished;
235
241
  return {
236
242
  load() {
243
+ const { config } = actor.getSnapshot().context;
244
+ if (config.ds === true) setWasmDsFlagSync(true);
237
245
  actor.send({ type: "LOAD" });
238
246
  },
239
- nextStep() {
247
+ async nextStep() {
240
248
  trackElementClicked?.("nextStep");
249
+ const snapshot$1 = actor.getSnapshot();
250
+ if (snapshot$1.matches("tutorial")) {
251
+ const { config, permissionResult } = snapshot$1.context;
252
+ await primeMotionFromUserGestureIfNeeded({
253
+ ds: config.ds,
254
+ cameraGranted: permissionResult === "granted"
255
+ });
256
+ }
241
257
  actor.send({ type: "NEXT_STEP" });
242
258
  },
243
259
  requestPermission() {