@incodetech/web 2.0.1-rc.0 → 2.1.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 (253) hide show
  1. package/dist/ae-signature/ae-signature.es.js +15 -13
  2. package/dist/ae-signature/styles.css +3 -17
  3. package/dist/ae-signature/styles2.css +15 -5
  4. package/dist/aligndevicelottie-DY_bX_p8.js +12769 -0
  5. package/dist/antifraud/antifraud.es.js +23 -16
  6. package/dist/authentication/authentication.es.js +42 -27
  7. package/dist/autoFocusTitle-BzkUiELM.js +29 -0
  8. package/dist/{back-horizontal-hint-B8Brxh3U.js → back-horizontal-hint-D_8LptLm.js} +26 -26
  9. package/dist/back-tutorial-vb1MxlrT.js +14597 -0
  10. package/dist/{back-vertical-hint-BBo36dxn.js → back-vertical-hint-C1evxxq2.js} +27 -27
  11. package/dist/backdevicelottie-HypPqBz7.js +16690 -0
  12. package/dist/base.css +1258 -104
  13. package/dist/blurdevicelottie-CBXtBFiJ.js +15951 -0
  14. package/dist/bottomSheet-F1GJfQx_.js +39 -0
  15. package/dist/browser-ponyfill-CLLvZCVg.js +441 -0
  16. package/dist/button-CM_hgyIP.js +35 -0
  17. package/dist/checkbox-BoeLHKgp.js +96 -0
  18. package/dist/consent/consent.es.js +89 -73
  19. package/dist/consent/styles.css +35 -22
  20. package/dist/countrySelector-mSWyHSy4.js +60 -0
  21. package/dist/cpf-ocr/cpf-ocr.es.js +2 -0
  22. package/dist/cpfOcr-MtpRztkG.js +92 -0
  23. package/dist/cpfOcr-jJkYCfsX.js +2 -0
  24. package/dist/cross-document-data-match/cross-document-data-match.es.js +20 -16
  25. package/dist/curp-validation/curp-validation.es.js +247 -203
  26. package/dist/customFields-DXXt9HGM.js +140 -0
  27. package/dist/customWatchlist-DsW04UF6.js +36 -0
  28. package/dist/dateInputComposed-C_mh4XBg.js +69 -0
  29. package/dist/dateInputComposed-Cy6a7ymh.js +1 -0
  30. package/dist/defineProperty-mefzVtTv.js +39 -0
  31. package/dist/document-capture/document-capture.es.js +2 -0
  32. package/dist/document-capture/styles.css +2 -5
  33. package/dist/documentCapture-8ypBJehw.js +2 -0
  34. package/dist/documentCapture-BDV_921m.js +880 -0
  35. package/dist/dropdownComposed-CEWBSdGl.js +1 -0
  36. package/dist/dropdownComposed-_fgAlo_C.js +380 -0
  37. package/dist/dynamic-forms/styles.css +25 -13
  38. package/dist/dynamicForms-DyfnsS7E.js +352 -0
  39. package/dist/ekyb/ekyb.es.js +2 -2
  40. package/dist/ekyb/styles.css +2 -0
  41. package/dist/ekybModule-CIPGmCvD.js +279 -0
  42. package/dist/ekybModule-DFoYpheB.js +2 -0
  43. package/dist/ekyc/ekyc.es.js +2 -2
  44. package/dist/ekyc/styles.css +9 -7
  45. package/dist/ekycModule-BGzwgjl1.js +2 -0
  46. package/dist/ekycModule-BuTaC5ct.js +257 -0
  47. package/dist/electronic-signature/electronic-signature.es.js +2 -2
  48. package/dist/electronic-signature-B-Q7M0wK.js +430 -0
  49. package/dist/email/email.es.js +199 -66
  50. package/dist/emailInput-KZmhjOdZ.js +39 -0
  51. package/dist/errorIcon-DJRZpd8j.js +26 -0
  52. package/dist/expiredId-Q1t6aVpk.js +85 -0
  53. package/dist/extensibility-Cs3KQQdC.js +3070 -0
  54. package/dist/extensibility.es.js +26 -25
  55. package/dist/face-match/face-match.es.js +2 -2
  56. package/dist/face-match/styles.css +0 -4
  57. package/dist/faceMatch--RDHJe4t.js +343 -0
  58. package/dist/faceMatch-yEKPYaym.js +2 -0
  59. package/dist/field-comparison/field-comparison.es.js +2 -0
  60. package/dist/field-comparison/styles.css +16 -0
  61. package/dist/fieldComparison-CAF86bTC.js +88 -0
  62. package/dist/fieldComparison-D0an7T_g.js +2 -0
  63. package/dist/fiscal-qr/fiscal-qr.es.js +224 -0
  64. package/dist/fiscal-qr/styles.css +71 -0
  65. package/dist/{flip-animation-CgwRsEmK.js → flip-animation-BGRvygw9.js} +4221 -4221
  66. package/dist/flow/flow.es.js +619 -484
  67. package/dist/flow/styles.css +378 -418
  68. package/dist/{front-horizontal-hint-DGGGi8e1.js → front-horizontal-hint-Uf5bHCsd.js} +70 -70
  69. package/dist/{front-vertical-hint-CNr5mE6Q.js → front-vertical-hint-DdWNA45v.js} +81 -81
  70. package/dist/frontdevicelottie-CLqitJhG.js +17314 -0
  71. package/dist/geolocation/geolocation.es.js +486 -395
  72. package/dist/glaredevicelottie-BS04U6Fc.js +14478 -0
  73. package/dist/governmentValidation/governmentValidation.es.js +166 -93
  74. package/dist/governmentValidation/styles.css +0 -17
  75. package/dist/homeScreen-BZnIEDrV.js +264 -0
  76. package/dist/hooks-Da_yP_Dr.js +149 -0
  77. package/dist/i18n-CoCO2ZuN.js +2971 -0
  78. package/dist/icons-Dbs9ZfYM.js +360 -0
  79. package/dist/id/id.es.js +583 -414
  80. package/dist/id/styles.css +59 -43
  81. package/dist/id-laser-h-DX8UbVNH.js +467 -0
  82. package/dist/id-laser-v-DhnHdjlB.js +490 -0
  83. package/dist/id-tutorial-lj4iKtYT.js +13165 -0
  84. package/dist/id-verification/id-verification.es.js +21 -17
  85. package/dist/idOcr-CjGbb4dB.js +123 -0
  86. package/dist/identity-reuse/identity-reuse.es.js +311 -182
  87. package/dist/identity-reuse/styles.css +134 -80
  88. package/dist/incode-logo-57XFniXU.js +4 -0
  89. package/dist/incodeComponent-wfnHlnXx.js +63 -0
  90. package/dist/incodeModule-BUDoTwT9.js +13 -0
  91. package/dist/index.es.js +16 -13
  92. package/dist/inputComposed-BEn7_nZd.js +1 -0
  93. package/dist/inputComposed-CQ4AsvZg.js +99 -0
  94. package/dist/loadingIcon-B0ysgiNq.js +148 -0
  95. package/dist/lottie_light-Dp9Bz3mf.js +9031 -0
  96. package/dist/mandatoryConsent-r0PQHmv-.js +107 -0
  97. package/dist/modal-nTSaG7nB.js +139 -0
  98. package/dist/modal.hooks-D2xhIuHA.js +195 -0
  99. package/dist/numberedStep-CEtwZqLp.js +13 -0
  100. package/dist/optionAccessibleLabel-CnA-mNAU.js +202 -0
  101. package/dist/otpInput-_JmtVwa0.js +195 -0
  102. package/dist/page-DxGQj7Gk.js +71 -0
  103. package/dist/{passport-horizontal-hint-Bgquwtac.js → passport-horizontal-hint-Bbm2mvSn.js} +55 -55
  104. package/dist/{passport-tutorial-DwRwtPVX.js → passport-tutorial-zT1ZoA-D.js} +7096 -7084
  105. package/dist/{passport-vertical-hint-BT1D5BrW.js → passport-vertical-hint-DJbCtBiM.js} +49 -49
  106. package/dist/pdf-BZA70WbM.js +22398 -0
  107. package/dist/pdfViewer-BK-yVIve.js +114 -0
  108. package/dist/phone/phone.es.js +214 -70
  109. package/dist/phoneInputComposed-DjNdsmPE.js +12142 -0
  110. package/dist/processing-BM-wT-1W.js +8 -0
  111. package/dist/qe-signature/qe-signature.es.js +15 -13
  112. package/dist/radioGroupComposed-BNuaopVr.js +215 -0
  113. package/dist/redirect-to-mobile/redirect-to-mobile.es.js +2774 -0
  114. package/dist/redirect-to-mobile/styles.css +19 -269
  115. package/dist/registerIncodeElement-77NGCDsy.js +11 -0
  116. package/dist/requiredLabelHint-DEadtiwx.js +17 -0
  117. package/dist/richText-Cf9aMOCk.js +3153 -0
  118. package/dist/rolldown-runtime--E5BIlTp.js +33 -0
  119. package/dist/selfie/selfie.es.js +54 -37
  120. package/dist/selfie/styles.css +0 -4
  121. package/dist/selfieTutorial-CtruLyO2.js +2689 -0
  122. package/dist/signature/signature.es.js +778 -405
  123. package/dist/snackbar-CxepGC3e.js +16 -0
  124. package/dist/spinner-B6RxGFrI.js +1 -0
  125. package/dist/spinner-D8a_2LvW.js +42 -0
  126. package/dist/statusPage-DMYPUwRZ.js +28 -0
  127. package/dist/successIcon-BAyDPT7I.js +30 -0
  128. package/dist/tabs-C8npVBbk.js +103 -0
  129. package/dist/themes/dark.css +5 -0
  130. package/dist/themes/light.css +4 -0
  131. package/dist/transitionSpinner-DRRz-NV8.js +26 -0
  132. package/dist/{tutorial-9vHAHvMK.js → tutorial-D1qaY2Tm.js} +1105 -856
  133. package/dist/types/ae-signature.d.ts +4 -1
  134. package/dist/types/antifraud.d.ts +9 -3
  135. package/dist/types/authentication.d.ts +4 -1
  136. package/dist/types/consent.d.ts +4 -1
  137. package/dist/types/cpf-ocr.d.ts +12 -0
  138. package/dist/types/cross-document-data-match.d.ts +4 -1
  139. package/dist/types/curp-validation.d.ts +9 -3
  140. package/dist/types/document-capture.d.ts +37 -0
  141. package/dist/types/ekyb.d.ts +4 -1
  142. package/dist/types/ekyc.d.ts +4 -1
  143. package/dist/types/electronic-signature.d.ts +4 -1
  144. package/dist/types/email.d.ts +4 -1
  145. package/dist/types/extensibility.d.ts +40 -15
  146. package/dist/types/face-match.d.ts +4 -1
  147. package/dist/types/field-comparison.d.ts +38 -0
  148. package/dist/types/fiscal-qr.d.ts +43 -0
  149. package/dist/types/flow.d.ts +5 -2
  150. package/dist/types/geolocation.d.ts +4 -1
  151. package/dist/types/governmentValidation.d.ts +4 -1
  152. package/dist/types/id-verification.d.ts +4 -1
  153. package/dist/types/id.d.ts +4 -1
  154. package/dist/types/identity-reuse.d.ts +4 -1
  155. package/dist/types/index.d.ts +20 -2
  156. package/dist/types/phone.d.ts +4 -1
  157. package/dist/types/qe-signature.d.ts +4 -1
  158. package/dist/types/redirect-to-mobile.d.ts +17 -0
  159. package/dist/types/selfie.d.ts +4 -1
  160. package/dist/types/signature.d.ts +4 -1
  161. package/dist/types/watchlist.d.ts +4 -1
  162. package/dist/types/workflow.d.ts +55 -11
  163. package/dist/typography-YLgHHuao.js +45 -0
  164. package/dist/uiConfig-D2_wawvr.js +25 -0
  165. package/dist/useModuleLoader-CeJ2jL25.js +672 -0
  166. package/dist/vendor-preact-DThS2ZQ_.js +955 -0
  167. package/dist/verificationResult-Do5SpZ6X.js +64 -0
  168. package/dist/verifiedByIncode-DjXOdCml.js +103 -0
  169. package/dist/watchlist/watchlist.es.js +31 -28
  170. package/dist/watchlistForBusiness-BFFXC9d-.js +80 -0
  171. package/dist/workflow/styles.css +449 -427
  172. package/dist/workflow/workflow.es.js +268 -182
  173. package/package.json +32 -10
  174. package/dist/aligndevicelottie-DoV8xKjh.js +0 -12757
  175. package/dist/autoFocusTitle-QexamZ4i.js +0 -16
  176. package/dist/back-tutorial-1NOQobGO.js +0 -14585
  177. package/dist/backdevicelottie-C_ceuqY7.js +0 -16678
  178. package/dist/blurdevicelottie-UO14Y0WC.js +0 -15939
  179. package/dist/bottomSheet-DE_8TFEC.js +0 -31
  180. package/dist/browser-ponyfill-jOkuz57z.js +0 -299
  181. package/dist/button-DcCUEn2n.js +0 -24
  182. package/dist/checkbox-Cl57ltq_.js +0 -85
  183. package/dist/countrySelector-CE-JgIsv.js +0 -58
  184. package/dist/cpfOcr-D_tbwbvh.js +0 -78
  185. package/dist/customFields-CW38fQUv.js +0 -127
  186. package/dist/customWatchlist-D9_yjEQd.js +0 -33
  187. package/dist/dateInputComposed-BpAGsjN6.js +0 -55
  188. package/dist/dateInputComposed-DU3o6PAV.js +0 -1
  189. package/dist/defineProperty-Dh8nSJpJ.js +0 -39
  190. package/dist/documentCapture-xX-JT7ZY.js +0 -763
  191. package/dist/dropdownComposed-DFRBG22E.js +0 -284
  192. package/dist/dropdownComposed-DwTzc2YU.js +0 -1
  193. package/dist/dynamicForms-CJP1Ia6Q.js +0 -262
  194. package/dist/ekybModule-BSs7mndb.js +0 -280
  195. package/dist/ekybModule-D9M3E2Gm.js +0 -2
  196. package/dist/ekycModule-CU9pt5YN.js +0 -246
  197. package/dist/ekycModule-CZw9cLno.js +0 -2
  198. package/dist/electronic-signature-COYXjGdd.js +0 -410
  199. package/dist/emailInput-DppGf9pv.js +0 -37
  200. package/dist/expiredId-BnmzE8T3.js +0 -70
  201. package/dist/extensibility-CzEJfRwo.js +0 -2586
  202. package/dist/faceMatch-B8j0g0Yo.js +0 -2
  203. package/dist/faceMatch-BV8UD7tj.js +0 -201
  204. package/dist/frontdevicelottie-Bu6f9fDE.js +0 -17302
  205. package/dist/glaredevicelottie-B10axYs_.js +0 -14466
  206. package/dist/homeScreen-DnP1jw9A.js +0 -227
  207. package/dist/hooks-BVnGysT7.js +0 -80
  208. package/dist/i18n-9s4OSqwi.js +0 -2010
  209. package/dist/icons-Cc7zwchP.js +0 -310
  210. package/dist/id-laser-h-mBAzHVOK.js +0 -467
  211. package/dist/id-laser-v-CrFg4bcJ.js +0 -483
  212. package/dist/id-tutorial-BCr42Pnn.js +0 -13153
  213. package/dist/idOcr-CCjfWQvH.js +0 -94
  214. package/dist/incode-logo-DX016usY.js +0 -4
  215. package/dist/incodeComponent-C1o4M0ZK.js +0 -50
  216. package/dist/incodeModule-BqCjVgEI.js +0 -18
  217. package/dist/inputComposed-APSw8C7o.js +0 -89
  218. package/dist/inputComposed-XYrarFxS.js +0 -1
  219. package/dist/loadingIcon-BN5YRQUb.js +0 -104
  220. package/dist/mandatoryConsent-DssKMC3v.js +0 -100
  221. package/dist/modal-NMxsQHAO.js +0 -135
  222. package/dist/modal.hooks-CAjcIFZK.js +0 -126
  223. package/dist/numberedStep-CT-alrK5.js +0 -11
  224. package/dist/optionAccessibleLabel-CzEeX3Q4.js +0 -140
  225. package/dist/otpInput-DqRA_egd.js +0 -145
  226. package/dist/page-C1yT4DLb.js +0 -69
  227. package/dist/pdf-BurGZ08w.js +0 -14967
  228. package/dist/pdfViewer-BGBNL1Ea.js +0 -63
  229. package/dist/phoneInputComposed-bvWhGLFZ.js +0 -11206
  230. package/dist/processing-G_y3o32b.js +0 -6
  231. package/dist/radioGroupComposed-BbmvxmD2.js +0 -177
  232. package/dist/redirectToMobile-C3k1gloW.js +0 -1514
  233. package/dist/requiredLabelHint-BLwgqozE.js +0 -13
  234. package/dist/richText-DbJ5sl2n.js +0 -1973
  235. package/dist/rolldown-runtime-CYMK-g2i.js +0 -20
  236. package/dist/selfieTutorial-BgrlUMXP.js +0 -2677
  237. package/dist/snackbar-BDp8x7Cv.js +0 -14
  238. package/dist/spinner-B4dcie2T.js +0 -1
  239. package/dist/spinner-CKnjVHxw.js +0 -39
  240. package/dist/statusPage-CUI7ApcU.js +0 -28
  241. package/dist/successIcon-DbILeIz_.js +0 -28
  242. package/dist/tabs-DaPyP71c.js +0 -78
  243. package/dist/transitionSpinner-PIEPU2Vx.js +0 -17
  244. package/dist/types/cpf-ocr/styles.d.ts +0 -1
  245. package/dist/types/document-capture/styles.d.ts +0 -1
  246. package/dist/types/redirect-to-mobile/styles.d.ts +0 -1
  247. package/dist/typography-CxjaknHN.js +0 -28
  248. package/dist/uiConfig-CwpQ-IM6.js +0 -20
  249. package/dist/useModuleLoader-BFiVA41N.js +0 -432
  250. package/dist/vendor-preact-D6SntenC.js +0 -958
  251. package/dist/verificationResult-BrVbUJ4U.js +0 -97
  252. package/dist/verifiedByIncode-ChZBpqNy.js +0 -101
  253. package/dist/watchlistForBusiness-BcSNtHCV.js +0 -77
@@ -27,8 +27,11 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
27
27
  * @param errorCode - Optional numeric code (e.g. HTTP status). Populated by
28
28
  * the workflow and flow modules on QR validation failures —
29
29
  * `4026` (`expiredUUID`), `4081` (`invalidQRuuid`) or `4083` (`onboardingUrlAlreadyUsed`).
30
+ * @param moduleErrorCode - Optional machine-readable error code (e.g. a
31
+ * `FaceErrorCode` such as `NONEXISTENT_CUSTOMER`). Lets an orchestrator
32
+ * branch on the specific terminal error without parsing the message string.
30
33
  */
31
- onError?: (error: string | undefined, errorCode?: number) => void;
34
+ onError?: (error: string | undefined, errorCode?: number, moduleErrorCode?: string) => void;
32
35
  };
33
36
 
34
37
  export { }
@@ -1,9 +1,10 @@
1
1
  import { AntifraudConfig } from '@incodetech/core/antifraud';
2
+ import { AntifraudManager } from '@incodetech/core/antifraud';
2
3
  import { FC } from 'preact/compat';
3
4
 
4
5
  export declare const Antifraud: FC<AntifraudProps>;
5
6
 
6
- declare type AntifraudProps = IncodeModuleProps<AntifraudConfig>;
7
+ declare type AntifraudProps = IncodeModuleProps<AntifraudConfig, void, AntifraudManager>;
7
8
 
8
9
  declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
9
10
  /**
@@ -27,14 +28,19 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
27
28
  * @param errorCode - Optional numeric code (e.g. HTTP status). Populated by
28
29
  * the workflow and flow modules on QR validation failures —
29
30
  * `4026` (`expiredUUID`), `4081` (`invalidQRuuid`) or `4083` (`onboardingUrlAlreadyUsed`).
31
+ * @param moduleErrorCode - Optional machine-readable error code (e.g. a
32
+ * `FaceErrorCode` such as `NONEXISTENT_CUSTOMER`). Lets an orchestrator
33
+ * branch on the specific terminal error without parsing the message string.
30
34
  */
31
- onError?: (error: string | undefined, errorCode?: number) => void;
35
+ onError?: (error: string | undefined, errorCode?: number, moduleErrorCode?: string) => void;
32
36
  };
33
37
 
34
38
  export { }
35
39
 
36
40
  declare global {
37
41
  interface HTMLElementTagNameMap {
38
- 'incode-antifraud': HTMLElement & IncodeModuleProps<AntifraudConfig>;
42
+ 'incode-antifraud': HTMLElement & IncodeModuleProps<AntifraudConfig,
43
+ void,
44
+ AntifraudManager>;
39
45
  }
40
46
  }
@@ -30,8 +30,11 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
30
30
  * @param errorCode - Optional numeric code (e.g. HTTP status). Populated by
31
31
  * the workflow and flow modules on QR validation failures —
32
32
  * `4026` (`expiredUUID`), `4081` (`invalidQRuuid`) or `4083` (`onboardingUrlAlreadyUsed`).
33
+ * @param moduleErrorCode - Optional machine-readable error code (e.g. a
34
+ * `FaceErrorCode` such as `NONEXISTENT_CUSTOMER`). Lets an orchestrator
35
+ * branch on the specific terminal error without parsing the message string.
33
36
  */
34
- onError?: (error: string | undefined, errorCode?: number) => void;
37
+ onError?: (error: string | undefined, errorCode?: number, moduleErrorCode?: string) => void;
35
38
  };
36
39
 
37
40
  export { }
@@ -28,8 +28,11 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
28
28
  * @param errorCode - Optional numeric code (e.g. HTTP status). Populated by
29
29
  * the workflow and flow modules on QR validation failures —
30
30
  * `4026` (`expiredUUID`), `4081` (`invalidQRuuid`) or `4083` (`onboardingUrlAlreadyUsed`).
31
+ * @param moduleErrorCode - Optional machine-readable error code (e.g. a
32
+ * `FaceErrorCode` such as `NONEXISTENT_CUSTOMER`). Lets an orchestrator
33
+ * branch on the specific terminal error without parsing the message string.
31
34
  */
32
- onError?: (error: string | undefined, errorCode?: number) => void;
35
+ onError?: (error: string | undefined, errorCode?: number, moduleErrorCode?: string) => void;
33
36
  };
34
37
 
35
38
  export { }
@@ -0,0 +1,12 @@
1
+ import { CpfOcrManager } from '@incodetech/core/cpf-ocr';
2
+ import { FC } from 'preact/compat';
3
+
4
+ export declare const CpfOcr: FC<CpfOcrProps>;
5
+
6
+ declare type CpfOcrProps = {
7
+ manager?: CpfOcrManager;
8
+ onFinish?: () => void;
9
+ onError?: (error: string | undefined) => void;
10
+ };
11
+
12
+ export { }
@@ -27,8 +27,11 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
27
27
  * @param errorCode - Optional numeric code (e.g. HTTP status). Populated by
28
28
  * the workflow and flow modules on QR validation failures —
29
29
  * `4026` (`expiredUUID`), `4081` (`invalidQRuuid`) or `4083` (`onboardingUrlAlreadyUsed`).
30
+ * @param moduleErrorCode - Optional machine-readable error code (e.g. a
31
+ * `FaceErrorCode` such as `NONEXISTENT_CUSTOMER`). Lets an orchestrator
32
+ * branch on the specific terminal error without parsing the message string.
30
33
  */
31
- onError?: (error: string | undefined, errorCode?: number) => void;
34
+ onError?: (error: string | undefined, errorCode?: number, moduleErrorCode?: string) => void;
32
35
  };
33
36
 
34
37
  export { }
@@ -1,9 +1,10 @@
1
1
  import { CurpValidationConfig } from '@incodetech/core/curp-validation';
2
+ import { CurpValidationManager } from '@incodetech/core/curp-validation';
2
3
  import { FC } from 'preact/compat';
3
4
 
4
5
  export declare const CurpValidation: FC<CurpValidationProps>;
5
6
 
6
- declare type CurpValidationProps = IncodeModuleProps<CurpValidationConfig>;
7
+ declare type CurpValidationProps = IncodeModuleProps<CurpValidationConfig, void, CurpValidationManager>;
7
8
 
8
9
  declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
9
10
  /**
@@ -27,14 +28,19 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
27
28
  * @param errorCode - Optional numeric code (e.g. HTTP status). Populated by
28
29
  * the workflow and flow modules on QR validation failures —
29
30
  * `4026` (`expiredUUID`), `4081` (`invalidQRuuid`) or `4083` (`onboardingUrlAlreadyUsed`).
31
+ * @param moduleErrorCode - Optional machine-readable error code (e.g. a
32
+ * `FaceErrorCode` such as `NONEXISTENT_CUSTOMER`). Lets an orchestrator
33
+ * branch on the specific terminal error without parsing the message string.
30
34
  */
31
- onError?: (error: string | undefined, errorCode?: number) => void;
35
+ onError?: (error: string | undefined, errorCode?: number, moduleErrorCode?: string) => void;
32
36
  };
33
37
 
34
38
  export { }
35
39
 
36
40
  declare global {
37
41
  interface HTMLElementTagNameMap {
38
- 'incode-curp-validation': HTMLElement & IncodeModuleProps<CurpValidationConfig>;
42
+ 'incode-curp-validation': HTMLElement & IncodeModuleProps<CurpValidationConfig,
43
+ void,
44
+ CurpValidationManager>;
39
45
  }
40
46
  }
@@ -0,0 +1,37 @@
1
+ import { DocumentCaptureConfig } from '@incodetech/core/document-capture';
2
+ import { FC } from 'preact/compat';
3
+
4
+ export declare const DocumentCapture: FC<DocumentCaptureProps>;
5
+
6
+ declare type DocumentCaptureProps = IncodeModuleProps<DocumentCaptureConfig>;
7
+
8
+ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
9
+ /**
10
+ * Module configuration required to render the flow.
11
+ * For Web Components, this is typically assigned via `element.config = ...`.
12
+ */
13
+ config?: TConfig;
14
+ /**
15
+ * Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
16
+ */
17
+ manager?: TManager;
18
+ /**
19
+ * Callback invoked when the module completes successfully.
20
+ * @param result - Optional result data from the module completion
21
+ */
22
+ onFinish?: (result?: TResult) => void;
23
+ /**
24
+ * Callback invoked when a fatal module error occurs.
25
+ *
26
+ * @param error - Human-readable error message.
27
+ * @param errorCode - Optional numeric code (e.g. HTTP status). Populated by
28
+ * the workflow and flow modules on QR validation failures —
29
+ * `4026` (`expiredUUID`), `4081` (`invalidQRuuid`) or `4083` (`onboardingUrlAlreadyUsed`).
30
+ * @param moduleErrorCode - Optional machine-readable error code (e.g. a
31
+ * `FaceErrorCode` such as `NONEXISTENT_CUSTOMER`). Lets an orchestrator
32
+ * branch on the specific terminal error without parsing the message string.
33
+ */
34
+ onError?: (error: string | undefined, errorCode?: number, moduleErrorCode?: string) => void;
35
+ };
36
+
37
+ export { }
@@ -27,8 +27,11 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
27
27
  * @param errorCode - Optional numeric code (e.g. HTTP status). Populated by
28
28
  * the workflow and flow modules on QR validation failures —
29
29
  * `4026` (`expiredUUID`), `4081` (`invalidQRuuid`) or `4083` (`onboardingUrlAlreadyUsed`).
30
+ * @param moduleErrorCode - Optional machine-readable error code (e.g. a
31
+ * `FaceErrorCode` such as `NONEXISTENT_CUSTOMER`). Lets an orchestrator
32
+ * branch on the specific terminal error without parsing the message string.
30
33
  */
31
- onError?: (error: string | undefined, errorCode?: number) => void;
34
+ onError?: (error: string | undefined, errorCode?: number, moduleErrorCode?: string) => void;
32
35
  };
33
36
 
34
37
  export { }
@@ -27,8 +27,11 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
27
27
  * @param errorCode - Optional numeric code (e.g. HTTP status). Populated by
28
28
  * the workflow and flow modules on QR validation failures —
29
29
  * `4026` (`expiredUUID`), `4081` (`invalidQRuuid`) or `4083` (`onboardingUrlAlreadyUsed`).
30
+ * @param moduleErrorCode - Optional machine-readable error code (e.g. a
31
+ * `FaceErrorCode` such as `NONEXISTENT_CUSTOMER`). Lets an orchestrator
32
+ * branch on the specific terminal error without parsing the message string.
30
33
  */
31
- onError?: (error: string | undefined, errorCode?: number) => void;
34
+ onError?: (error: string | undefined, errorCode?: number, moduleErrorCode?: string) => void;
32
35
  };
33
36
 
34
37
  export { }
@@ -30,8 +30,11 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
30
30
  * @param errorCode - Optional numeric code (e.g. HTTP status). Populated by
31
31
  * the workflow and flow modules on QR validation failures —
32
32
  * `4026` (`expiredUUID`), `4081` (`invalidQRuuid`) or `4083` (`onboardingUrlAlreadyUsed`).
33
+ * @param moduleErrorCode - Optional machine-readable error code (e.g. a
34
+ * `FaceErrorCode` such as `NONEXISTENT_CUSTOMER`). Lets an orchestrator
35
+ * branch on the specific terminal error without parsing the message string.
33
36
  */
34
- onError?: (error: string | undefined, errorCode?: number) => void;
37
+ onError?: (error: string | undefined, errorCode?: number, moduleErrorCode?: string) => void;
35
38
  };
36
39
 
37
40
  export { }
@@ -54,8 +54,11 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
54
54
  * @param errorCode - Optional numeric code (e.g. HTTP status). Populated by
55
55
  * the workflow and flow modules on QR validation failures —
56
56
  * `4026` (`expiredUUID`), `4081` (`invalidQRuuid`) or `4083` (`onboardingUrlAlreadyUsed`).
57
+ * @param moduleErrorCode - Optional machine-readable error code (e.g. a
58
+ * `FaceErrorCode` such as `NONEXISTENT_CUSTOMER`). Lets an orchestrator
59
+ * branch on the specific terminal error without parsing the message string.
57
60
  */
58
- onError?: (error: string | undefined, errorCode?: number) => void;
61
+ onError?: (error: string | undefined, errorCode?: number, moduleErrorCode?: string) => void;
59
62
  };
60
63
 
61
64
  export { }
@@ -273,6 +273,7 @@ ref?: Ref<HTMLInputElement> | undefined;
273
273
  declare type DateInputComposedProps = Omit<InputComposedProps, 'type' | 'closeButton' | 'rightIcon'> & {
274
274
  value: string;
275
275
  onInput: (e: Event) => void;
276
+ onBlur?: (e: FocusEvent) => void;
276
277
  };
277
278
 
278
279
  export declare const DropdownComposed: FC<DropdownComposedProps>;
@@ -450,8 +451,11 @@ export declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknow
450
451
  * @param errorCode - Optional numeric code (e.g. HTTP status). Populated by
451
452
  * the workflow and flow modules on QR validation failures —
452
453
  * `4026` (`expiredUUID`), `4081` (`invalidQRuuid`) or `4083` (`onboardingUrlAlreadyUsed`).
454
+ * @param moduleErrorCode - Optional machine-readable error code (e.g. a
455
+ * `FaceErrorCode` such as `NONEXISTENT_CUSTOMER`). Lets an orchestrator
456
+ * branch on the specific terminal error without parsing the message string.
453
457
  */
454
- onError?: (error: string | undefined, errorCode?: number) => void;
458
+ onError?: (error: string | undefined, errorCode?: number, moduleErrorCode?: string) => void;
455
459
  };
456
460
 
457
461
  declare type InferState<T> = T extends {
@@ -496,7 +500,7 @@ declare type LockIconProps = {
496
500
  className?: string;
497
501
  };
498
502
 
499
- export declare function Lottie({ animationData, loop, autoplay, reverse, style, className, onComplete, onControlsReady, }: LottieProps): JSX.Element;
503
+ export declare function Lottie({ animationData, loop, autoplay, reverse, style, className, onComplete, autoStop, stopFramePosition, }: LottieProps): JSX.Element;
500
504
 
501
505
  declare type LottieAnimationData = {
502
506
  fr: number;
@@ -507,16 +511,6 @@ declare type LottieAnimationData = {
507
511
  h: number;
508
512
  };
509
513
 
510
- declare type LottieControls = {
511
- setSpeed: (speed: number) => void;
512
- play: () => void;
513
- pause: () => void;
514
- stop: () => void;
515
- goToAndPlay: (value: number, isFrame?: boolean) => void;
516
- goToAndStop: (value: number, isFrame?: boolean) => void;
517
- getTotalFrames: () => number | null;
518
- };
519
-
520
514
  declare type LottieProps = {
521
515
  animationData: LottieAnimationData;
522
516
  loop?: boolean;
@@ -525,9 +519,19 @@ declare type LottieProps = {
525
519
  style?: CSSProperties;
526
520
  className?: string;
527
521
  onComplete?: () => void;
528
- onControlsReady?: (controls: LottieControls | null) => void;
522
+ /** Auto-stop the animation after 5s (WCAG 2.2 AA 2.2.2). */
523
+ autoStop?: boolean;
524
+ /**
525
+ * Where to freeze the animation when `autoStop` fires. When omitted the
526
+ * animation is paused at its current frame; otherwise it jumps to and stops
527
+ * at the resolved frame (falling back to a full stop when the frame count is
528
+ * unknown).
529
+ */
530
+ stopFramePosition?: LottieStopFramePosition;
529
531
  };
530
532
 
533
+ declare type LottieStopFramePosition = 'first' | 'middle' | 'last';
534
+
531
535
  export declare const ManualCapture: FC<ManualCaptureProps>;
532
536
 
533
537
  declare type ManualCaptureProps = {
@@ -590,7 +594,7 @@ declare type ModalRootProps = {
590
594
  portalContainer?: HTMLElement | null;
591
595
  class?: string;
592
596
  hasBackdrop?: boolean;
593
- /** When false, Modal won't auto-focus the first interactive element on open. Defaults to true. */
597
+ /** When false, Modal won't move focus to the title (or dialog) on open. Defaults to true. */
594
598
  manageInitialFocus?: boolean;
595
599
  returnFocusRef?: RefObject<HTMLElement | null>;
596
600
  };
@@ -621,10 +625,16 @@ declare type ModalTitleSectionProps = {
621
625
  export declare const OtpInput: FC<OtpInputProps>;
622
626
 
623
627
  declare type OtpInputProps = {
628
+ value: string;
629
+ otpLength: number;
624
630
  resendTimer: number;
625
631
  canResend: boolean;
626
632
  error?: string;
633
+ validationError?: string;
634
+ isValid?: boolean;
627
635
  onSubmit: (code: string) => void;
636
+ onChange: (code: string) => void;
637
+ onValidate?: () => void;
628
638
  onResend: () => void;
629
639
  onBack: () => void;
630
640
  /**
@@ -646,7 +656,7 @@ declare type OverlayProps = {
646
656
  class?: string;
647
657
  };
648
658
 
649
- export declare const Page: ({ title, titleId, subtitle, titleTopSlot, className, logo, children, hideHeader, hideFooterBranding, "data-testid": dataTestId, "data-permission-status": dataPermissionStatus, }: PageProps) => JSX.Element;
659
+ export declare const Page: ({ title, titleId, subtitle, titleTopSlot, className, logo, children, hideHeader, hideFooterBranding, footerBrandingSlot, "data-testid": dataTestId, "data-permission-status": dataPermissionStatus, }: PageProps) => JSX.Element;
650
660
 
651
661
  declare type PageProps = {
652
662
  children?: ComponentChildren;
@@ -663,6 +673,7 @@ declare type PageProps = {
663
673
  hideFooterBranding?: boolean;
664
674
  hideHeader?: boolean;
665
675
  closeButton?: CloseButtonOptions;
676
+ footerBrandingSlot?: ComponentChildren;
666
677
  'data-testid'?: string;
667
678
  'data-permission-status'?: string;
668
679
  };
@@ -695,6 +706,13 @@ declare type PhoneInputOwnProps = {
695
706
  value?: string;
696
707
  placeholder?: string;
697
708
  error?: string;
709
+ /**
710
+ * When `true` and an `error` is present, the country-specific format example
711
+ * is appended to the error (unspaced for sighted users, digit-spaced for
712
+ * screen readers) so the `role="alert"` suggests the expected format
713
+ * (WCAG 2.2 SC 3.3.3). Requires `formatHintBuilder` to be set.
714
+ */
715
+ showFormatHintInError?: boolean;
698
716
  helper?: string;
699
717
  showErrorIcon?: boolean;
700
718
  showHelperIcon?: boolean;
@@ -702,6 +720,11 @@ declare type PhoneInputOwnProps = {
702
720
  disableCountrySelector?: boolean;
703
721
  required?: boolean;
704
722
  onChange?: (fullNumber: string, isValid: boolean) => void;
723
+ formatHintBuilder?: (example: string) => string | undefined;
724
+ countryAriaLabelBuilder?: (args: {
725
+ callingCode: string;
726
+ countryName: string;
727
+ }) => string | undefined;
705
728
  'aria-labelledby'?: string;
706
729
  'data-testid'?: string;
707
730
  };
@@ -714,6 +737,7 @@ declare type ProgressBarProps = {
714
737
  progress: number;
715
738
  label?: string;
716
739
  className?: string;
740
+ labelledById?: string;
717
741
  };
718
742
 
719
743
  export declare const RadioButtonComposed: FunctionalComponent<PropsWithoutRef<RadioButtonComposedProps> & {
@@ -970,6 +994,7 @@ declare type VerificationResultProps = {
970
994
  retryLabel?: string;
971
995
  skipLabel?: string;
972
996
  hideFooterBranding?: boolean;
997
+ footerBrandingSlot?: ComponentChildren;
973
998
  };
974
999
 
975
1000
  export declare const WarningIcon: FC<WarningIconProps>;
@@ -52,8 +52,11 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
52
52
  * @param errorCode - Optional numeric code (e.g. HTTP status). Populated by
53
53
  * the workflow and flow modules on QR validation failures —
54
54
  * `4026` (`expiredUUID`), `4081` (`invalidQRuuid`) or `4083` (`onboardingUrlAlreadyUsed`).
55
+ * @param moduleErrorCode - Optional machine-readable error code (e.g. a
56
+ * `FaceErrorCode` such as `NONEXISTENT_CUSTOMER`). Lets an orchestrator
57
+ * branch on the specific terminal error without parsing the message string.
55
58
  */
56
- onError?: (error: string | undefined, errorCode?: number) => void;
59
+ onError?: (error: string | undefined, errorCode?: number, moduleErrorCode?: string) => void;
57
60
  };
58
61
 
59
62
  export { }
@@ -0,0 +1,38 @@
1
+ import { FC } from 'preact/compat';
2
+ import { FieldComparisonConfig } from '@incodetech/core/field-comparison';
3
+ import { FieldComparisonManager } from '@incodetech/core/field-comparison';
4
+
5
+ export declare const FieldComparison: FC<FieldComparisonProps>;
6
+
7
+ declare type FieldComparisonProps = IncodeModuleProps<FieldComparisonConfig, void, FieldComparisonManager>;
8
+
9
+ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
10
+ /**
11
+ * Module configuration required to render the flow.
12
+ * For Web Components, this is typically assigned via `element.config = ...`.
13
+ */
14
+ config?: TConfig;
15
+ /**
16
+ * Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
17
+ */
18
+ manager?: TManager;
19
+ /**
20
+ * Callback invoked when the module completes successfully.
21
+ * @param result - Optional result data from the module completion
22
+ */
23
+ onFinish?: (result?: TResult) => void;
24
+ /**
25
+ * Callback invoked when a fatal module error occurs.
26
+ *
27
+ * @param error - Human-readable error message.
28
+ * @param errorCode - Optional numeric code (e.g. HTTP status). Populated by
29
+ * the workflow and flow modules on QR validation failures —
30
+ * `4026` (`expiredUUID`), `4081` (`invalidQRuuid`) or `4083` (`onboardingUrlAlreadyUsed`).
31
+ * @param moduleErrorCode - Optional machine-readable error code (e.g. a
32
+ * `FaceErrorCode` such as `NONEXISTENT_CUSTOMER`). Lets an orchestrator
33
+ * branch on the specific terminal error without parsing the message string.
34
+ */
35
+ onError?: (error: string | undefined, errorCode?: number, moduleErrorCode?: string) => void;
36
+ };
37
+
38
+ export { }
@@ -0,0 +1,43 @@
1
+ import { FC } from 'preact/compat';
2
+ import { FiscalQrConfig } from '@incodetech/core/fiscal-qr';
3
+
4
+ export declare const FiscalQr: FC<FiscalQrProps>;
5
+
6
+ declare type FiscalQrProps = IncodeModuleProps<FiscalQrConfig>;
7
+
8
+ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
9
+ /**
10
+ * Module configuration required to render the flow.
11
+ * For Web Components, this is typically assigned via `element.config = ...`.
12
+ */
13
+ config?: TConfig;
14
+ /**
15
+ * Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
16
+ */
17
+ manager?: TManager;
18
+ /**
19
+ * Callback invoked when the module completes successfully.
20
+ * @param result - Optional result data from the module completion
21
+ */
22
+ onFinish?: (result?: TResult) => void;
23
+ /**
24
+ * Callback invoked when a fatal module error occurs.
25
+ *
26
+ * @param error - Human-readable error message.
27
+ * @param errorCode - Optional numeric code (e.g. HTTP status). Populated by
28
+ * the workflow and flow modules on QR validation failures —
29
+ * `4026` (`expiredUUID`), `4081` (`invalidQRuuid`) or `4083` (`onboardingUrlAlreadyUsed`).
30
+ * @param moduleErrorCode - Optional machine-readable error code (e.g. a
31
+ * `FaceErrorCode` such as `NONEXISTENT_CUSTOMER`). Lets an orchestrator
32
+ * branch on the specific terminal error without parsing the message string.
33
+ */
34
+ onError?: (error: string | undefined, errorCode?: number, moduleErrorCode?: string) => void;
35
+ };
36
+
37
+ export { }
38
+
39
+ declare global {
40
+ interface HTMLElementTagNameMap {
41
+ 'incode-fiscal-qr': HTMLElement & IncodeModuleProps<FiscalQrConfig>;
42
+ }
43
+ }
@@ -71,8 +71,11 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
71
71
  * @param errorCode - Optional numeric code (e.g. HTTP status). Populated by
72
72
  * the workflow and flow modules on QR validation failures —
73
73
  * `4026` (`expiredUUID`), `4081` (`invalidQRuuid`) or `4083` (`onboardingUrlAlreadyUsed`).
74
+ * @param moduleErrorCode - Optional machine-readable error code (e.g. a
75
+ * `FaceErrorCode` such as `NONEXISTENT_CUSTOMER`). Lets an orchestrator
76
+ * branch on the specific terminal error without parsing the message string.
74
77
  */
75
- onError?: (error: string | undefined, errorCode?: number) => void;
78
+ onError?: (error: string | undefined, errorCode?: number, moduleErrorCode?: string) => void;
76
79
  };
77
80
 
78
81
  /**
@@ -100,7 +103,7 @@ declare type SelfLoadingFlowRuntimeConfig = FlowBaseConfig & SelfLoadingSessionO
100
103
  token?: never;
101
104
  };
102
105
 
103
- declare type SelfLoadingSessionOptions = Pick<CreateSessionOptions, 'configurationId' | 'externalId' | 'externalCustomerId' | 'customFields' | 'uuid' | 'urlUuid' | 'interviewId'>;
106
+ declare type SelfLoadingSessionOptions = Pick<CreateSessionOptions, 'configurationId' | 'externalId' | 'externalCustomerId' | 'customFields' | 'uuid' | 'urlUuid' | 'interviewId' | 'loginHint'>;
104
107
 
105
108
  declare type SpinnerConfig = {
106
109
  title?: string;
@@ -28,8 +28,11 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
28
28
  * @param errorCode - Optional numeric code (e.g. HTTP status). Populated by
29
29
  * the workflow and flow modules on QR validation failures —
30
30
  * `4026` (`expiredUUID`), `4081` (`invalidQRuuid`) or `4083` (`onboardingUrlAlreadyUsed`).
31
+ * @param moduleErrorCode - Optional machine-readable error code (e.g. a
32
+ * `FaceErrorCode` such as `NONEXISTENT_CUSTOMER`). Lets an orchestrator
33
+ * branch on the specific terminal error without parsing the message string.
31
34
  */
32
- onError?: (error: string | undefined, errorCode?: number) => void;
35
+ onError?: (error: string | undefined, errorCode?: number, moduleErrorCode?: string) => void;
33
36
  };
34
37
 
35
38
  export { }
@@ -27,8 +27,11 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
27
27
  * @param errorCode - Optional numeric code (e.g. HTTP status). Populated by
28
28
  * the workflow and flow modules on QR validation failures —
29
29
  * `4026` (`expiredUUID`), `4081` (`invalidQRuuid`) or `4083` (`onboardingUrlAlreadyUsed`).
30
+ * @param moduleErrorCode - Optional machine-readable error code (e.g. a
31
+ * `FaceErrorCode` such as `NONEXISTENT_CUSTOMER`). Lets an orchestrator
32
+ * branch on the specific terminal error without parsing the message string.
30
33
  */
31
- onError?: (error: string | undefined, errorCode?: number) => void;
34
+ onError?: (error: string | undefined, errorCode?: number, moduleErrorCode?: string) => void;
32
35
  };
33
36
 
34
37
  export { }
@@ -27,8 +27,11 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
27
27
  * @param errorCode - Optional numeric code (e.g. HTTP status). Populated by
28
28
  * the workflow and flow modules on QR validation failures —
29
29
  * `4026` (`expiredUUID`), `4081` (`invalidQRuuid`) or `4083` (`onboardingUrlAlreadyUsed`).
30
+ * @param moduleErrorCode - Optional machine-readable error code (e.g. a
31
+ * `FaceErrorCode` such as `NONEXISTENT_CUSTOMER`). Lets an orchestrator
32
+ * branch on the specific terminal error without parsing the message string.
30
33
  */
31
- onError?: (error: string | undefined, errorCode?: number) => void;
34
+ onError?: (error: string | undefined, errorCode?: number, moduleErrorCode?: string) => void;
32
35
  };
33
36
 
34
37
  export { }
@@ -28,8 +28,11 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
28
28
  * @param errorCode - Optional numeric code (e.g. HTTP status). Populated by
29
29
  * the workflow and flow modules on QR validation failures —
30
30
  * `4026` (`expiredUUID`), `4081` (`invalidQRuuid`) or `4083` (`onboardingUrlAlreadyUsed`).
31
+ * @param moduleErrorCode - Optional machine-readable error code (e.g. a
32
+ * `FaceErrorCode` such as `NONEXISTENT_CUSTOMER`). Lets an orchestrator
33
+ * branch on the specific terminal error without parsing the message string.
31
34
  */
32
- onError?: (error: string | undefined, errorCode?: number) => void;
35
+ onError?: (error: string | undefined, errorCode?: number, moduleErrorCode?: string) => void;
33
36
  };
34
37
 
35
38
  export { }
@@ -28,8 +28,11 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
28
28
  * @param errorCode - Optional numeric code (e.g. HTTP status). Populated by
29
29
  * the workflow and flow modules on QR validation failures —
30
30
  * `4026` (`expiredUUID`), `4081` (`invalidQRuuid`) or `4083` (`onboardingUrlAlreadyUsed`).
31
+ * @param moduleErrorCode - Optional machine-readable error code (e.g. a
32
+ * `FaceErrorCode` such as `NONEXISTENT_CUSTOMER`). Lets an orchestrator
33
+ * branch on the specific terminal error without parsing the message string.
31
34
  */
32
- onError?: (error: string | undefined, errorCode?: number) => void;
35
+ onError?: (error: string | undefined, errorCode?: number, moduleErrorCode?: string) => void;
33
36
  };
34
37
 
35
38
  export { }
@@ -1,15 +1,28 @@
1
1
  import { DEFAULT_WASM_VERSION } from '@incodetech/core/wasm';
2
- import { I18nOptions } from './setup';
2
+ import { i18n } from 'i18next';
3
3
  import { WasmConfig } from '@incodetech/core/wasm';
4
4
 
5
+ export declare function createI18n(options?: I18nOptions): i18n;
6
+
5
7
  export { DEFAULT_WASM_VERSION }
6
8
 
9
+ export declare type I18nOptions = {
10
+ lang?: string;
11
+ loadPath?: string;
12
+ skipRemoteLoad?: boolean;
13
+ translations?: Translations;
14
+ };
15
+
16
+ declare type LanguageTranslations = Record<string, TranslationValue>;
17
+
18
+ export declare function setI18nInstance(instance: i18n): void;
19
+
7
20
  /**
8
21
  * Sets global UI configuration defaults for `@incodetech/ui`.
9
22
  */
10
23
  export declare function setUiConfig(next: UiConfig): void;
11
24
 
12
- export declare function setup({ apiURL, token, customHeaders, timeout, wasm, i18n, uiConfig, }: SetupOptions): Promise<void>;
25
+ export declare function setup({ apiURL, token, customHeaders, timeout, wasm, ipLookup, i18n, uiConfig, }: SetupOptions): Promise<void>;
13
26
 
14
27
  declare type SetupOptions = {
15
28
  apiURL: string;
@@ -17,10 +30,15 @@ declare type SetupOptions = {
17
30
  customHeaders?: Record<string, string>;
18
31
  timeout?: number;
19
32
  wasm?: WasmConfig | false;
33
+ ipLookup?: boolean;
20
34
  i18n?: I18nOptions;
21
35
  uiConfig?: UiConfig;
22
36
  };
23
37
 
38
+ declare type Translations = Partial<Record<string, LanguageTranslations>>;
39
+
40
+ declare type TranslationValue = string | Record<string, unknown>;
41
+
24
42
  export declare type UiConfig = {
25
43
  logoSrc?: string;
26
44
  logoHeight?: string;
@@ -24,8 +24,11 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
24
24
  * @param errorCode - Optional numeric code (e.g. HTTP status). Populated by
25
25
  * the workflow and flow modules on QR validation failures —
26
26
  * `4026` (`expiredUUID`), `4081` (`invalidQRuuid`) or `4083` (`onboardingUrlAlreadyUsed`).
27
+ * @param moduleErrorCode - Optional machine-readable error code (e.g. a
28
+ * `FaceErrorCode` such as `NONEXISTENT_CUSTOMER`). Lets an orchestrator
29
+ * branch on the specific terminal error without parsing the message string.
27
30
  */
28
- onError?: (error: string | undefined, errorCode?: number) => void;
31
+ onError?: (error: string | undefined, errorCode?: number, moduleErrorCode?: string) => void;
29
32
  };
30
33
 
31
34
  /**
@@ -23,8 +23,11 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
23
23
  * @param errorCode - Optional numeric code (e.g. HTTP status). Populated by
24
24
  * the workflow and flow modules on QR validation failures —
25
25
  * `4026` (`expiredUUID`), `4081` (`invalidQRuuid`) or `4083` (`onboardingUrlAlreadyUsed`).
26
+ * @param moduleErrorCode - Optional machine-readable error code (e.g. a
27
+ * `FaceErrorCode` such as `NONEXISTENT_CUSTOMER`). Lets an orchestrator
28
+ * branch on the specific terminal error without parsing the message string.
26
29
  */
27
- onError?: (error: string | undefined, errorCode?: number) => void;
30
+ onError?: (error: string | undefined, errorCode?: number, moduleErrorCode?: string) => void;
28
31
  };
29
32
 
30
33
  export declare const QeSignature: FC<QeSignatureModuleProps>;