@incodetech/web 2.1.0-rc.2 → 2.1.0-rc.4

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 (154) hide show
  1. package/dist/ae-signature/ae-signature.es.js +2 -2
  2. package/dist/ae-signature/styles.css +59 -45
  3. package/dist/antifraud/antifraud.es.js +4 -4
  4. package/dist/authentication/authentication.es.js +5 -4
  5. package/dist/base.css +87 -59
  6. package/dist/{button-Ch5-QgHB.js → button-Dz6AsbmF.js} +2 -1
  7. package/dist/cameraView-DIEzM5ru.js +47 -0
  8. package/dist/{tutorial-Cap8qKvM.js → capture-CkGvdDNH.js} +18 -568
  9. package/dist/certificate-issuance/certificate-issuance.es.js +7 -7
  10. package/dist/consent/consent.es.js +8 -8
  11. package/dist/{countrySelector-B4WuNUya.js → countrySelector-SvUOyPo0.js} +1 -1
  12. package/dist/cpf-ocr/cpf-ocr.es.js +1 -1
  13. package/dist/cpfOcr-B79245-3.js +2 -0
  14. package/dist/{cpfOcr-liTE9e70.js → cpfOcr-BhxT-lRN.js} +5 -5
  15. package/dist/cross-document-data-match/cross-document-data-match.es.js +4 -4
  16. package/dist/curp-validation/curp-validation.es.js +7 -7
  17. package/dist/{customFields-BQ4scZfL.js → customFields-BDsXR7A-.js} +6 -6
  18. package/dist/{customWatchlist-7s0_wGtE.js → customWatchlist-CYoRNCim.js} +5 -5
  19. package/dist/document-capture/document-capture.es.js +1 -1
  20. package/dist/documentCapture-DXYYyxZl.js +2 -0
  21. package/dist/{documentCapture-CwoSD_Iq.js → documentCapture-DhbO-A-V.js} +11 -9
  22. package/dist/{dynamicForms-DvTU65bW.js → dynamicForms-BifGbC9F.js} +19 -8
  23. package/dist/ekyb/ekyb.es.js +1 -1
  24. package/dist/ekybModule-C6Nttked.js +2 -0
  25. package/dist/{ekybModule-CwZvxios.js → ekybModule-DGnTw5UV.js} +12 -12
  26. package/dist/ekyc/ekyc.es.js +1 -1
  27. package/dist/ekycModule-CDIEjI6V.js +2 -0
  28. package/dist/{ekycModule-jkXByPXe.js → ekycModule-Dxpdd0ns.js} +10 -10
  29. package/dist/electronic-signature/electronic-signature.es.js +1 -1
  30. package/dist/{electronic-signature-h1sAGg7l.js → electronic-signature-Ueoffasr.js} +37 -26
  31. package/dist/email/email.es.js +7 -7
  32. package/dist/{emailInput-BRMJMJV6.js → emailInput-DsLkDtER.js} +5 -5
  33. package/dist/{expiredId-D17oN5K2.js → expiredId-BZXLrLk-.js} +4 -4
  34. package/dist/{extensibility-CTmAsaji.js → extensibility-7sRIN0JC.js} +41 -76
  35. package/dist/extensibility.es.js +13 -11
  36. package/dist/face-match/face-match.es.js +1 -1
  37. package/dist/face-match/styles.css +4 -0
  38. package/dist/faceMatch-B_HvxLm_.js +2 -0
  39. package/dist/{faceMatch-Dez_bq3n.js → faceMatch-DyTBoMDm.js} +8 -8
  40. package/dist/field-comparison/field-comparison.es.js +1 -1
  41. package/dist/fieldComparison-DfNEuEE5.js +2 -0
  42. package/dist/{fieldComparison-BelzSC48.js → fieldComparison-L_knHqgw.js} +7 -7
  43. package/dist/fiscal-qr/fiscal-qr.es.js +8 -7
  44. package/dist/flow/flow.es.js +22 -9
  45. package/dist/flow/styles.css +4151 -3042
  46. package/dist/geolocation/geolocation.es.js +14 -9
  47. package/dist/{governmentValidation/governmentValidation.es.js → government-validation/government-validation.es.js} +10 -14
  48. package/dist/{homeScreen-BIdVm9KA.js → homeScreen-B6T0JVh8.js} +2 -2
  49. package/dist/{hooks-Da_yP_Dr.js → hooks-CNu7o-v8.js} +39 -2
  50. package/dist/{i18n-DoP1NB7u.js → i18n-CU4xq8qC.js} +1 -1
  51. package/dist/id/id.es.js +76 -46
  52. package/dist/id/styles.css +1 -9
  53. package/dist/id-ocr/styles.css +12 -2
  54. package/dist/id-verification/id-verification.es.js +5 -5
  55. package/dist/{idOcr-C4K2XVJr.js → idOcr-WFBvqy3b.js} +31 -13
  56. package/dist/identity-reuse/identity-reuse.es.js +6 -6
  57. package/dist/{incodeComponent-Cmi1rlWs.js → incodeComponent-CfzJGETt.js} +2 -2
  58. package/dist/{incodeModule-M8DszCee.js → incodeModule-B-4_3JrK.js} +1 -1
  59. package/dist/index.es.js +3 -2
  60. package/dist/{mandatoryConsent-DOQ0DKgM.js → mandatoryConsent-D0GTKu-H.js} +7 -7
  61. package/dist/{optionAccessibleLabel-_nvVCTSL.js → optionAccessibleLabel-gfF-58Mv.js} +3 -3
  62. package/dist/{otpInput-Q_kzSZeD.js → otpInput-CnDc6pQm.js} +12 -11
  63. package/dist/{pdf-BMUXKJuC.js → pdf-BqtJTlor.js} +1 -1
  64. package/dist/{pdfViewer-BewML6eg.js → pdfViewer-B97DmT9m.js} +57 -20
  65. package/dist/phone/phone.es.js +6 -6
  66. package/dist/{processing-Boki1Z8j.js → processing-BeUMfdJJ.js} +1 -1
  67. package/dist/qe-signature/qe-signature.es.js +2 -2
  68. package/dist/{radioGroupComposed-TuAWUAFK.js → radioGroupComposed-DuQxslB2.js} +1 -1
  69. package/dist/redirect-to-mobile/redirect-to-mobile.es.js +17 -18
  70. package/dist/redirect-to-mobile/styles.css +2 -2
  71. package/dist/{richText-DsTP4H3j.js → richText-CB1fmegc.js} +1 -1
  72. package/dist/selfie/selfie.es.js +8 -7
  73. package/dist/selfie/styles.css +133 -63
  74. package/dist/signature/signature.es.js +8 -8
  75. package/dist/spinner-BCDCoi9C.js +1 -0
  76. package/dist/{spinner-BRNNKqPN.js → spinner-BMeIEK1d.js} +12 -6
  77. package/dist/themes/dark.css +16 -0
  78. package/dist/themes/light.css +16 -0
  79. package/dist/{transitionSpinner-4rPkt-KM.js → transitionSpinner-CuNCqHNi.js} +9 -8
  80. package/dist/tutorial-CCfPuVKX.js +706 -0
  81. package/dist/types/ae-signature.d.ts +23 -1
  82. package/dist/types/antifraud.d.ts +23 -1
  83. package/dist/types/authentication.d.ts +23 -1
  84. package/dist/types/certificate-issuance.d.ts +23 -1
  85. package/dist/types/consent.d.ts +23 -1
  86. package/dist/types/cross-document-data-match.d.ts +23 -1
  87. package/dist/types/curp-validation.d.ts +23 -1
  88. package/dist/types/document-capture.d.ts +23 -1
  89. package/dist/types/ekyb.d.ts +23 -1
  90. package/dist/types/ekyc.d.ts +23 -1
  91. package/dist/types/electronic-signature.d.ts +23 -1
  92. package/dist/types/email.d.ts +23 -1
  93. package/dist/types/extensibility.d.ts +39 -2
  94. package/dist/types/face-match.d.ts +23 -1
  95. package/dist/types/field-comparison.d.ts +23 -1
  96. package/dist/types/fiscal-qr.d.ts +23 -1
  97. package/dist/types/flow.d.ts +23 -1
  98. package/dist/types/geolocation.d.ts +27 -2
  99. package/dist/types/{governmentValidation.d.ts → government-validation.d.ts} +23 -1
  100. package/dist/types/id-verification.d.ts +23 -1
  101. package/dist/types/id.d.ts +23 -1
  102. package/dist/types/identity-reuse.d.ts +23 -1
  103. package/dist/types/index.d.ts +8 -1
  104. package/dist/types/phone.d.ts +23 -1
  105. package/dist/types/qe-signature.d.ts +23 -1
  106. package/dist/types/selfie.d.ts +23 -1
  107. package/dist/types/signature.d.ts +23 -1
  108. package/dist/types/video-selfie.d.ts +72 -0
  109. package/dist/types/watchlist.d.ts +23 -1
  110. package/dist/types/workflow.d.ts +23 -1
  111. package/dist/{useModuleLoader-Kt78XfNR.js → useModuleLoader-Gvo9qscB.js} +38 -23
  112. package/dist/{verificationResult-B6PBXbp9.js → verificationResult-BWWkmeiA.js} +3 -3
  113. package/dist/video-selfie/styles.css +1644 -0
  114. package/dist/video-selfie/video-selfie.es.js +854 -0
  115. package/dist/watchlist/watchlist.es.js +5 -5
  116. package/dist/{watchlistForBusiness-DCKlKG81.js → watchlistForBusiness-D2Uo_TwF.js} +7 -7
  117. package/dist/workflow/styles.css +148 -76
  118. package/dist/workflow/workflow.es.js +23 -27
  119. package/package.json +29 -2
  120. package/dist/cpfOcr-BJOYoITy.js +0 -2
  121. package/dist/documentCapture-3RHCHepT.js +0 -2
  122. package/dist/ekybModule-BkVQBQvW.js +0 -2
  123. package/dist/ekycModule-BIbj7hr1.js +0 -2
  124. package/dist/faceMatch-C0-RPzrc.js +0 -2
  125. package/dist/fieldComparison-7FUznk_9.js +0 -2
  126. package/dist/spinner-zRaUjXtH.js +0 -1
  127. /package/dist/{aligndevicelottie-DMXPhIDs.js → aligndevicelottie-DFscByAI.js} +0 -0
  128. /package/dist/{back-horizontal-hint-DNIIDrEW.js → back-horizontal-hint-xTnSQbzn.js} +0 -0
  129. /package/dist/{back-tutorial-B8JJSJBB.js → back-tutorial-cI_4VHmE.js} +0 -0
  130. /package/dist/{back-vertical-hint-CW6ZS7bP.js → back-vertical-hint-BWWlHfX2.js} +0 -0
  131. /package/dist/{backdevicelottie-By75Bznp.js → backdevicelottie-COyhTrxM.js} +0 -0
  132. /package/dist/{blurdevicelottie-C_9VAHkM.js → blurdevicelottie-BLVeJHEG.js} +0 -0
  133. /package/dist/{browser-ponyfill-C_DpU0lQ.js → browser-ponyfill-Df13Th-G.js} +0 -0
  134. /package/dist/{defineProperty-CTu-cLWm.js → defineProperty-Qjefk7Uf.js} +0 -0
  135. /package/dist/{flip-animation-st9bra1p.js → flip-animation-CZYSUtMm.js} +0 -0
  136. /package/dist/{front-horizontal-hint-DvME-aVk.js → front-horizontal-hint-B84GgTO1.js} +0 -0
  137. /package/dist/{front-vertical-hint-BUG1VMsP.js → front-vertical-hint-Bs_avngq.js} +0 -0
  138. /package/dist/{frontdevicelottie-uObOEs8p.js → frontdevicelottie-B4tE2PYQ.js} +0 -0
  139. /package/dist/{glaredevicelottie-CsfIgqIc.js → glaredevicelottie-D1pR73sx.js} +0 -0
  140. /package/dist/{governmentValidation → government-validation}/styles.css +0 -0
  141. /package/dist/{id-laser-h-BvVSaLyU.js → id-laser-h-CzPegPMn.js} +0 -0
  142. /package/dist/{id-laser-v-Dj_RN_s9.js → id-laser-v-BiUXkM4x.js} +0 -0
  143. /package/dist/{id-tutorial-BOOsXlAJ.js → id-tutorial-DwO90SAm.js} +0 -0
  144. /package/dist/{lottie_light-BG-RL2Iu.js → lottie_light-C6B2ec41.js} +0 -0
  145. /package/dist/{numberedStep-Dc0BUU-j.js → numberedStep-CEb-lFJm.js} +0 -0
  146. /package/dist/{passport-horizontal-hint-BhpVt73n.js → passport-horizontal-hint-Bj0ZJY0g.js} +0 -0
  147. /package/dist/{passport-tutorial-CeSup6m9.js → passport-tutorial-D9JNsMsM.js} +0 -0
  148. /package/dist/{passport-vertical-hint-CVRBnZXS.js → passport-vertical-hint-Dfk77xUJ.js} +0 -0
  149. /package/dist/{registerIncodeElement-CdlNRRv5.js → registerIncodeElement-DaNjbAwZ.js} +0 -0
  150. /package/dist/{requiredLabelHint-DX3oVNtu.js → requiredLabelHint-D0RhuMed.js} +0 -0
  151. /package/dist/{selfieTutorial-CYa8bq6B.js → selfieTutorial-pB-N-fj5.js} +0 -0
  152. /package/dist/{snackbar-CGL6gp9u.js → snackbar-DS7Mv62v.js} +0 -0
  153. /package/dist/{statusPage-BUm5gtQY.js → statusPage-Bk8nJwXV.js} +0 -0
  154. /package/dist/{tabs-DUkWjBGk.js → tabs-C__chW-u.js} +0 -0
@@ -5,6 +5,26 @@ export declare const FiscalQr: FC<FiscalQrProps>;
5
5
 
6
6
  declare type FiscalQrProps = IncodeModuleProps<FiscalQrConfig>;
7
7
 
8
+ /**
9
+ * Extra context passed to `onFinish` alongside the result. Lets a host decide
10
+ * how to react to the terminal state without inspecting the DOM. Only the
11
+ * workflow module sets these fields today.
12
+ */
13
+ declare type IncodeFinishMeta = {
14
+ /**
15
+ * True when the SDK owns the terminal screen — it has already rendered its
16
+ * own finish UI (today, the workflow's `showFinishScreenBySessionStatus`
17
+ * screen), so the host should not render its own completion screen on top.
18
+ * `onFinish` still fires so the host can run side effects (e.g. notify an
19
+ * OAuth parent).
20
+ *
21
+ * Advisory only: the SDK cannot stop a host from rendering. This works solely
22
+ * because the host reads this flag — a host that ignores it will still
23
+ * replace the SDK screen. Not a guarantee.
24
+ */
25
+ sdkOwnsTerminalScreen?: boolean;
26
+ };
27
+
8
28
  declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
9
29
  /**
10
30
  * Module configuration required to render the flow.
@@ -18,8 +38,10 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
18
38
  /**
19
39
  * Callback invoked when the module completes successfully.
20
40
  * @param result - Optional result data from the module completion
41
+ * @param meta - Optional context about how the module resolved (e.g. whether
42
+ * the SDK rendered its own terminal finish screen). See {@link IncodeFinishMeta}.
21
43
  */
22
- onFinish?: (result?: TResult) => void;
44
+ onFinish?: (result?: TResult, meta?: IncodeFinishMeta) => void;
23
45
  /**
24
46
  * Callback invoked when a fatal module error occurs.
25
47
  *
@@ -45,6 +45,26 @@ declare type FlowUiConfig = {
45
45
  spinnerConfig?: SpinnerConfig;
46
46
  };
47
47
 
48
+ /**
49
+ * Extra context passed to `onFinish` alongside the result. Lets a host decide
50
+ * how to react to the terminal state without inspecting the DOM. Only the
51
+ * workflow module sets these fields today.
52
+ */
53
+ declare type IncodeFinishMeta = {
54
+ /**
55
+ * True when the SDK owns the terminal screen — it has already rendered its
56
+ * own finish UI (today, the workflow's `showFinishScreenBySessionStatus`
57
+ * screen), so the host should not render its own completion screen on top.
58
+ * `onFinish` still fires so the host can run side effects (e.g. notify an
59
+ * OAuth parent).
60
+ *
61
+ * Advisory only: the SDK cannot stop a host from rendering. This works solely
62
+ * because the host reads this flag — a host that ignores it will still
63
+ * replace the SDK screen. Not a guarantee.
64
+ */
65
+ sdkOwnsTerminalScreen?: boolean;
66
+ };
67
+
48
68
  export declare const IncodeFlow: FC<IncodeFlowProps>;
49
69
 
50
70
  declare type IncodeFlowProps = IncodeModuleProps<FlowConfig, FinishStatus>;
@@ -62,8 +82,10 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
62
82
  /**
63
83
  * Callback invoked when the module completes successfully.
64
84
  * @param result - Optional result data from the module completion
85
+ * @param meta - Optional context about how the module resolved (e.g. whether
86
+ * the SDK rendered its own terminal finish screen). See {@link IncodeFinishMeta}.
65
87
  */
66
- onFinish?: (result?: TResult) => void;
88
+ onFinish?: (result?: TResult, meta?: IncodeFinishMeta) => void;
67
89
  /**
68
90
  * Callback invoked when a fatal module error occurs.
69
91
  *
@@ -1,10 +1,33 @@
1
1
  import { FC } from 'preact/compat';
2
2
  import { GeolocationConfig } from '@incodetech/core/geolocation';
3
+ import { GeolocationManager } from '@incodetech/core/geolocation';
3
4
 
4
5
  declare const Geolocation_2: FC<GeolocationProps>;
5
6
  export { Geolocation_2 as Geolocation }
6
7
 
7
- declare type GeolocationProps = IncodeModuleProps<GeolocationConfig>;
8
+ declare type GeolocationProps = IncodeModuleProps<GeolocationConfig> & {
9
+ manager?: GeolocationManager;
10
+ };
11
+
12
+ /**
13
+ * Extra context passed to `onFinish` alongside the result. Lets a host decide
14
+ * how to react to the terminal state without inspecting the DOM. Only the
15
+ * workflow module sets these fields today.
16
+ */
17
+ declare type IncodeFinishMeta = {
18
+ /**
19
+ * True when the SDK owns the terminal screen — it has already rendered its
20
+ * own finish UI (today, the workflow's `showFinishScreenBySessionStatus`
21
+ * screen), so the host should not render its own completion screen on top.
22
+ * `onFinish` still fires so the host can run side effects (e.g. notify an
23
+ * OAuth parent).
24
+ *
25
+ * Advisory only: the SDK cannot stop a host from rendering. This works solely
26
+ * because the host reads this flag — a host that ignores it will still
27
+ * replace the SDK screen. Not a guarantee.
28
+ */
29
+ sdkOwnsTerminalScreen?: boolean;
30
+ };
8
31
 
9
32
  declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
10
33
  /**
@@ -19,8 +42,10 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
19
42
  /**
20
43
  * Callback invoked when the module completes successfully.
21
44
  * @param result - Optional result data from the module completion
45
+ * @param meta - Optional context about how the module resolved (e.g. whether
46
+ * the SDK rendered its own terminal finish screen). See {@link IncodeFinishMeta}.
22
47
  */
23
- onFinish?: (result?: TResult) => void;
48
+ onFinish?: (result?: TResult, meta?: IncodeFinishMeta) => void;
24
49
  /**
25
50
  * Callback invoked when a fatal module error occurs.
26
51
  *
@@ -5,6 +5,26 @@ export declare const GovernmentValidation: FC<GovernmentValidationProps>;
5
5
 
6
6
  declare type GovernmentValidationProps = IncodeModuleProps<GovernmentValidationConfig>;
7
7
 
8
+ /**
9
+ * Extra context passed to `onFinish` alongside the result. Lets a host decide
10
+ * how to react to the terminal state without inspecting the DOM. Only the
11
+ * workflow module sets these fields today.
12
+ */
13
+ declare type IncodeFinishMeta = {
14
+ /**
15
+ * True when the SDK owns the terminal screen — it has already rendered its
16
+ * own finish UI (today, the workflow's `showFinishScreenBySessionStatus`
17
+ * screen), so the host should not render its own completion screen on top.
18
+ * `onFinish` still fires so the host can run side effects (e.g. notify an
19
+ * OAuth parent).
20
+ *
21
+ * Advisory only: the SDK cannot stop a host from rendering. This works solely
22
+ * because the host reads this flag — a host that ignores it will still
23
+ * replace the SDK screen. Not a guarantee.
24
+ */
25
+ sdkOwnsTerminalScreen?: boolean;
26
+ };
27
+
8
28
  declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
9
29
  /**
10
30
  * Module configuration required to render the flow.
@@ -18,8 +38,10 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
18
38
  /**
19
39
  * Callback invoked when the module completes successfully.
20
40
  * @param result - Optional result data from the module completion
41
+ * @param meta - Optional context about how the module resolved (e.g. whether
42
+ * the SDK rendered its own terminal finish screen). See {@link IncodeFinishMeta}.
21
43
  */
22
- onFinish?: (result?: TResult) => void;
44
+ onFinish?: (result?: TResult, meta?: IncodeFinishMeta) => void;
23
45
  /**
24
46
  * Callback invoked when a fatal module error occurs.
25
47
  *
@@ -5,6 +5,26 @@ export declare const IdVerification: FC<IdVerificationProps>;
5
5
 
6
6
  declare type IdVerificationProps = IncodeModuleProps<IdVerificationConfig>;
7
7
 
8
+ /**
9
+ * Extra context passed to `onFinish` alongside the result. Lets a host decide
10
+ * how to react to the terminal state without inspecting the DOM. Only the
11
+ * workflow module sets these fields today.
12
+ */
13
+ declare type IncodeFinishMeta = {
14
+ /**
15
+ * True when the SDK owns the terminal screen — it has already rendered its
16
+ * own finish UI (today, the workflow's `showFinishScreenBySessionStatus`
17
+ * screen), so the host should not render its own completion screen on top.
18
+ * `onFinish` still fires so the host can run side effects (e.g. notify an
19
+ * OAuth parent).
20
+ *
21
+ * Advisory only: the SDK cannot stop a host from rendering. This works solely
22
+ * because the host reads this flag — a host that ignores it will still
23
+ * replace the SDK screen. Not a guarantee.
24
+ */
25
+ sdkOwnsTerminalScreen?: boolean;
26
+ };
27
+
8
28
  declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
9
29
  /**
10
30
  * Module configuration required to render the flow.
@@ -18,8 +38,10 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
18
38
  /**
19
39
  * Callback invoked when the module completes successfully.
20
40
  * @param result - Optional result data from the module completion
41
+ * @param meta - Optional context about how the module resolved (e.g. whether
42
+ * the SDK rendered its own terminal finish screen). See {@link IncodeFinishMeta}.
21
43
  */
22
- onFinish?: (result?: TResult) => void;
44
+ onFinish?: (result?: TResult, meta?: IncodeFinishMeta) => void;
23
45
  /**
24
46
  * Callback invoked when a fatal module error occurs.
25
47
  *
@@ -6,6 +6,26 @@ export declare const Id: FC<IdProps>;
6
6
 
7
7
  declare type IdProps = IncodeModuleProps<IdCaptureConfig, void, IdCaptureManager>;
8
8
 
9
+ /**
10
+ * Extra context passed to `onFinish` alongside the result. Lets a host decide
11
+ * how to react to the terminal state without inspecting the DOM. Only the
12
+ * workflow module sets these fields today.
13
+ */
14
+ declare type IncodeFinishMeta = {
15
+ /**
16
+ * True when the SDK owns the terminal screen — it has already rendered its
17
+ * own finish UI (today, the workflow's `showFinishScreenBySessionStatus`
18
+ * screen), so the host should not render its own completion screen on top.
19
+ * `onFinish` still fires so the host can run side effects (e.g. notify an
20
+ * OAuth parent).
21
+ *
22
+ * Advisory only: the SDK cannot stop a host from rendering. This works solely
23
+ * because the host reads this flag — a host that ignores it will still
24
+ * replace the SDK screen. Not a guarantee.
25
+ */
26
+ sdkOwnsTerminalScreen?: boolean;
27
+ };
28
+
9
29
  declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
10
30
  /**
11
31
  * Module configuration required to render the flow.
@@ -19,8 +39,10 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
19
39
  /**
20
40
  * Callback invoked when the module completes successfully.
21
41
  * @param result - Optional result data from the module completion
42
+ * @param meta - Optional context about how the module resolved (e.g. whether
43
+ * the SDK rendered its own terminal finish screen). See {@link IncodeFinishMeta}.
22
44
  */
23
- onFinish?: (result?: TResult) => void;
45
+ onFinish?: (result?: TResult, meta?: IncodeFinishMeta) => void;
24
46
  /**
25
47
  * Callback invoked when a fatal module error occurs.
26
48
  *
@@ -6,6 +6,26 @@ export declare const IdentityReuse: FC<IdentityReuseProps>;
6
6
 
7
7
  declare type IdentityReuseProps = IncodeModuleProps<IdentityReuseConfig, void, IdentityReuseManager>;
8
8
 
9
+ /**
10
+ * Extra context passed to `onFinish` alongside the result. Lets a host decide
11
+ * how to react to the terminal state without inspecting the DOM. Only the
12
+ * workflow module sets these fields today.
13
+ */
14
+ declare type IncodeFinishMeta = {
15
+ /**
16
+ * True when the SDK owns the terminal screen — it has already rendered its
17
+ * own finish UI (today, the workflow's `showFinishScreenBySessionStatus`
18
+ * screen), so the host should not render its own completion screen on top.
19
+ * `onFinish` still fires so the host can run side effects (e.g. notify an
20
+ * OAuth parent).
21
+ *
22
+ * Advisory only: the SDK cannot stop a host from rendering. This works solely
23
+ * because the host reads this flag — a host that ignores it will still
24
+ * replace the SDK screen. Not a guarantee.
25
+ */
26
+ sdkOwnsTerminalScreen?: boolean;
27
+ };
28
+
9
29
  declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
10
30
  /**
11
31
  * Module configuration required to render the flow.
@@ -19,8 +39,10 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
19
39
  /**
20
40
  * Callback invoked when the module completes successfully.
21
41
  * @param result - Optional result data from the module completion
42
+ * @param meta - Optional context about how the module resolved (e.g. whether
43
+ * the SDK rendered its own terminal finish screen). See {@link IncodeFinishMeta}.
22
44
  */
23
- onFinish?: (result?: TResult) => void;
45
+ onFinish?: (result?: TResult, meta?: IncodeFinishMeta) => void;
24
46
  /**
25
47
  * Callback invoked when a fatal module error occurs.
26
48
  *
@@ -22,7 +22,7 @@ export declare function setI18nInstance(instance: i18n): void;
22
22
  */
23
23
  export declare function setUiConfig(next: UiConfig): void;
24
24
 
25
- export declare function setup({ apiURL, token, customHeaders, timeout, wasm, ipLookup, devMode, i18n, uiConfig, }: SetupOptions): Promise<void>;
25
+ export declare function setup({ apiURL, token, customHeaders, timeout, wasm, ipLookup, fingerprint, devMode, i18n, uiConfig, }: SetupOptions): Promise<void>;
26
26
 
27
27
  declare type SetupOptions = {
28
28
  apiURL: string;
@@ -31,6 +31,13 @@ declare type SetupOptions = {
31
31
  timeout?: number;
32
32
  wasm?: WasmConfig | false;
33
33
  ipLookup?: boolean;
34
+ /**
35
+ * Disables client-side device-fingerprint submission. Forwarded to core
36
+ * `setup()` — see the core `SetupOptions.fingerprint` docs for the full
37
+ * behavior (transition flag; also affects the Deepsight metadata bundle
38
+ * and mandatory-consent auto-injection).
39
+ */
40
+ fingerprint?: boolean;
34
41
  /**
35
42
  * Disables the browser devtools detector for local development. Forwarded to
36
43
  * core `setup()`. Leave `false` (default) in production — see the core
@@ -2,6 +2,26 @@ import { FC } from 'preact/compat';
2
2
  import { PhoneConfig } from '@incodetech/core/phone';
3
3
  import { PhoneManager } from '@incodetech/core/phone';
4
4
 
5
+ /**
6
+ * Extra context passed to `onFinish` alongside the result. Lets a host decide
7
+ * how to react to the terminal state without inspecting the DOM. Only the
8
+ * workflow module sets these fields today.
9
+ */
10
+ declare type IncodeFinishMeta = {
11
+ /**
12
+ * True when the SDK owns the terminal screen — it has already rendered its
13
+ * own finish UI (today, the workflow's `showFinishScreenBySessionStatus`
14
+ * screen), so the host should not render its own completion screen on top.
15
+ * `onFinish` still fires so the host can run side effects (e.g. notify an
16
+ * OAuth parent).
17
+ *
18
+ * Advisory only: the SDK cannot stop a host from rendering. This works solely
19
+ * because the host reads this flag — a host that ignores it will still
20
+ * replace the SDK screen. Not a guarantee.
21
+ */
22
+ sdkOwnsTerminalScreen?: boolean;
23
+ };
24
+
5
25
  declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
6
26
  /**
7
27
  * Module configuration required to render the flow.
@@ -15,8 +35,10 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
15
35
  /**
16
36
  * Callback invoked when the module completes successfully.
17
37
  * @param result - Optional result data from the module completion
38
+ * @param meta - Optional context about how the module resolved (e.g. whether
39
+ * the SDK rendered its own terminal finish screen). See {@link IncodeFinishMeta}.
18
40
  */
19
- onFinish?: (result?: TResult) => void;
41
+ onFinish?: (result?: TResult, meta?: IncodeFinishMeta) => void;
20
42
  /**
21
43
  * Callback invoked when a fatal module error occurs.
22
44
  *
@@ -1,6 +1,26 @@
1
1
  import { FC } from 'preact/compat';
2
2
  import { QeSignatureConfig } from '@incodetech/core/qe-signature';
3
3
 
4
+ /**
5
+ * Extra context passed to `onFinish` alongside the result. Lets a host decide
6
+ * how to react to the terminal state without inspecting the DOM. Only the
7
+ * workflow module sets these fields today.
8
+ */
9
+ declare type IncodeFinishMeta = {
10
+ /**
11
+ * True when the SDK owns the terminal screen — it has already rendered its
12
+ * own finish UI (today, the workflow's `showFinishScreenBySessionStatus`
13
+ * screen), so the host should not render its own completion screen on top.
14
+ * `onFinish` still fires so the host can run side effects (e.g. notify an
15
+ * OAuth parent).
16
+ *
17
+ * Advisory only: the SDK cannot stop a host from rendering. This works solely
18
+ * because the host reads this flag — a host that ignores it will still
19
+ * replace the SDK screen. Not a guarantee.
20
+ */
21
+ sdkOwnsTerminalScreen?: boolean;
22
+ };
23
+
4
24
  declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
5
25
  /**
6
26
  * Module configuration required to render the flow.
@@ -14,8 +34,10 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
14
34
  /**
15
35
  * Callback invoked when the module completes successfully.
16
36
  * @param result - Optional result data from the module completion
37
+ * @param meta - Optional context about how the module resolved (e.g. whether
38
+ * the SDK rendered its own terminal finish screen). See {@link IncodeFinishMeta}.
17
39
  */
18
- onFinish?: (result?: TResult) => void;
40
+ onFinish?: (result?: TResult, meta?: IncodeFinishMeta) => void;
19
41
  /**
20
42
  * Callback invoked when a fatal module error occurs.
21
43
  *
@@ -2,6 +2,26 @@ import { FC } from 'preact/compat';
2
2
  import { SelfieConfig } from '@incodetech/core/selfie';
3
3
  import { SelfieManager } from '@incodetech/core/selfie';
4
4
 
5
+ /**
6
+ * Extra context passed to `onFinish` alongside the result. Lets a host decide
7
+ * how to react to the terminal state without inspecting the DOM. Only the
8
+ * workflow module sets these fields today.
9
+ */
10
+ declare type IncodeFinishMeta = {
11
+ /**
12
+ * True when the SDK owns the terminal screen — it has already rendered its
13
+ * own finish UI (today, the workflow's `showFinishScreenBySessionStatus`
14
+ * screen), so the host should not render its own completion screen on top.
15
+ * `onFinish` still fires so the host can run side effects (e.g. notify an
16
+ * OAuth parent).
17
+ *
18
+ * Advisory only: the SDK cannot stop a host from rendering. This works solely
19
+ * because the host reads this flag — a host that ignores it will still
20
+ * replace the SDK screen. Not a guarantee.
21
+ */
22
+ sdkOwnsTerminalScreen?: boolean;
23
+ };
24
+
5
25
  declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
6
26
  /**
7
27
  * Module configuration required to render the flow.
@@ -15,8 +35,10 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
15
35
  /**
16
36
  * Callback invoked when the module completes successfully.
17
37
  * @param result - Optional result data from the module completion
38
+ * @param meta - Optional context about how the module resolved (e.g. whether
39
+ * the SDK rendered its own terminal finish screen). See {@link IncodeFinishMeta}.
18
40
  */
19
- onFinish?: (result?: TResult) => void;
41
+ onFinish?: (result?: TResult, meta?: IncodeFinishMeta) => void;
20
42
  /**
21
43
  * Callback invoked when a fatal module error occurs.
22
44
  *
@@ -1,6 +1,26 @@
1
1
  import { FC } from 'preact/compat';
2
2
  import { SignatureConfig } from '@incodetech/core/signature';
3
3
 
4
+ /**
5
+ * Extra context passed to `onFinish` alongside the result. Lets a host decide
6
+ * how to react to the terminal state without inspecting the DOM. Only the
7
+ * workflow module sets these fields today.
8
+ */
9
+ declare type IncodeFinishMeta = {
10
+ /**
11
+ * True when the SDK owns the terminal screen — it has already rendered its
12
+ * own finish UI (today, the workflow's `showFinishScreenBySessionStatus`
13
+ * screen), so the host should not render its own completion screen on top.
14
+ * `onFinish` still fires so the host can run side effects (e.g. notify an
15
+ * OAuth parent).
16
+ *
17
+ * Advisory only: the SDK cannot stop a host from rendering. This works solely
18
+ * because the host reads this flag — a host that ignores it will still
19
+ * replace the SDK screen. Not a guarantee.
20
+ */
21
+ sdkOwnsTerminalScreen?: boolean;
22
+ };
23
+
4
24
  declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
5
25
  /**
6
26
  * Module configuration required to render the flow.
@@ -14,8 +34,10 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
14
34
  /**
15
35
  * Callback invoked when the module completes successfully.
16
36
  * @param result - Optional result data from the module completion
37
+ * @param meta - Optional context about how the module resolved (e.g. whether
38
+ * the SDK rendered its own terminal finish screen). See {@link IncodeFinishMeta}.
17
39
  */
18
- onFinish?: (result?: TResult) => void;
40
+ onFinish?: (result?: TResult, meta?: IncodeFinishMeta) => void;
19
41
  /**
20
42
  * Callback invoked when a fatal module error occurs.
21
43
  *
@@ -0,0 +1,72 @@
1
+ import { FC } from 'preact/compat';
2
+ import { VideoSelfieConfig } from '@incodetech/core/video-selfie';
3
+
4
+ /**
5
+ * Extra context passed to `onFinish` alongside the result. Lets a host decide
6
+ * how to react to the terminal state without inspecting the DOM. Only the
7
+ * workflow module sets these fields today.
8
+ */
9
+ declare type IncodeFinishMeta = {
10
+ /**
11
+ * True when the SDK owns the terminal screen — it has already rendered its
12
+ * own finish UI (today, the workflow's `showFinishScreenBySessionStatus`
13
+ * screen), so the host should not render its own completion screen on top.
14
+ * `onFinish` still fires so the host can run side effects (e.g. notify an
15
+ * OAuth parent).
16
+ *
17
+ * Advisory only: the SDK cannot stop a host from rendering. This works solely
18
+ * because the host reads this flag — a host that ignores it will still
19
+ * replace the SDK screen. Not a guarantee.
20
+ */
21
+ sdkOwnsTerminalScreen?: boolean;
22
+ };
23
+
24
+ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
25
+ /**
26
+ * Module configuration required to render the flow.
27
+ * For Web Components, this is typically assigned via `element.config = ...`.
28
+ */
29
+ config?: TConfig;
30
+ /**
31
+ * Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
32
+ */
33
+ manager?: TManager;
34
+ /**
35
+ * Callback invoked when the module completes successfully.
36
+ * @param result - Optional result data from the module completion
37
+ * @param meta - Optional context about how the module resolved (e.g. whether
38
+ * the SDK rendered its own terminal finish screen). See {@link IncodeFinishMeta}.
39
+ */
40
+ onFinish?: (result?: TResult, meta?: IncodeFinishMeta) => void;
41
+ /**
42
+ * Callback invoked when a fatal module error occurs.
43
+ *
44
+ * @param error - Human-readable error message.
45
+ * @param errorCode - Optional numeric code (e.g. HTTP status). Populated by
46
+ * the workflow and flow modules on QR validation failures —
47
+ * `4026` (`expiredUUID`), `4081` (`invalidQRuuid`) or `4083` (`onboardingUrlAlreadyUsed`).
48
+ * @param moduleErrorCode - Optional machine-readable error code (e.g. a
49
+ * `FaceErrorCode` such as `NONEXISTENT_CUSTOMER`). Lets an orchestrator
50
+ * branch on the specific terminal error without parsing the message string.
51
+ */
52
+ onError?: (error: string | undefined, errorCode?: number, moduleErrorCode?: string) => void;
53
+ };
54
+
55
+ /**
56
+ * Video Selfie UI component. Records + streams a multi-step, camera-switching
57
+ * session and renders a live preview with per-step auto-capture guidance.
58
+ *
59
+ * @see {@link createVideoSelfieRecordingManager} for headless usage.
60
+ */
61
+ export declare const VideoSelfie: FC<VideoSelfieProps>;
62
+
63
+ /** Props for the {@link VideoSelfie} component. */
64
+ declare type VideoSelfieProps = IncodeModuleProps<VideoSelfieConfig>;
65
+
66
+ export { }
67
+
68
+ declare global {
69
+ interface HTMLElementTagNameMap {
70
+ 'incode-video-selfie': HTMLElement & IncodeModuleProps<VideoSelfieConfig>;
71
+ }
72
+ }
@@ -1,6 +1,26 @@
1
1
  import { FC } from 'preact/compat';
2
2
  import { WatchlistConfig } from '@incodetech/core/watchlist';
3
3
 
4
+ /**
5
+ * Extra context passed to `onFinish` alongside the result. Lets a host decide
6
+ * how to react to the terminal state without inspecting the DOM. Only the
7
+ * workflow module sets these fields today.
8
+ */
9
+ declare type IncodeFinishMeta = {
10
+ /**
11
+ * True when the SDK owns the terminal screen — it has already rendered its
12
+ * own finish UI (today, the workflow's `showFinishScreenBySessionStatus`
13
+ * screen), so the host should not render its own completion screen on top.
14
+ * `onFinish` still fires so the host can run side effects (e.g. notify an
15
+ * OAuth parent).
16
+ *
17
+ * Advisory only: the SDK cannot stop a host from rendering. This works solely
18
+ * because the host reads this flag — a host that ignores it will still
19
+ * replace the SDK screen. Not a guarantee.
20
+ */
21
+ sdkOwnsTerminalScreen?: boolean;
22
+ };
23
+
4
24
  declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
5
25
  /**
6
26
  * Module configuration required to render the flow.
@@ -14,8 +34,10 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
14
34
  /**
15
35
  * Callback invoked when the module completes successfully.
16
36
  * @param result - Optional result data from the module completion
37
+ * @param meta - Optional context about how the module resolved (e.g. whether
38
+ * the SDK rendered its own terminal finish screen). See {@link IncodeFinishMeta}.
17
39
  */
18
- onFinish?: (result?: TResult) => void;
40
+ onFinish?: (result?: TResult, meta?: IncodeFinishMeta) => void;
19
41
  /**
20
42
  * Callback invoked when a fatal module error occurs.
21
43
  *
@@ -14,6 +14,26 @@ declare type ClientIdSessionBootstrap = {
14
14
  clientId: string;
15
15
  };
16
16
 
17
+ /**
18
+ * Extra context passed to `onFinish` alongside the result. Lets a host decide
19
+ * how to react to the terminal state without inspecting the DOM. Only the
20
+ * workflow module sets these fields today.
21
+ */
22
+ export declare type IncodeFinishMeta = {
23
+ /**
24
+ * True when the SDK owns the terminal screen — it has already rendered its
25
+ * own finish UI (today, the workflow's `showFinishScreenBySessionStatus`
26
+ * screen), so the host should not render its own completion screen on top.
27
+ * `onFinish` still fires so the host can run side effects (e.g. notify an
28
+ * OAuth parent).
29
+ *
30
+ * Advisory only: the SDK cannot stop a host from rendering. This works solely
31
+ * because the host reads this flag — a host that ignores it will still
32
+ * replace the SDK screen. Not a guarantee.
33
+ */
34
+ sdkOwnsTerminalScreen?: boolean;
35
+ };
36
+
17
37
  declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
18
38
  /**
19
39
  * Module configuration required to render the flow.
@@ -27,8 +47,10 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
27
47
  /**
28
48
  * Callback invoked when the module completes successfully.
29
49
  * @param result - Optional result data from the module completion
50
+ * @param meta - Optional context about how the module resolved (e.g. whether
51
+ * the SDK rendered its own terminal finish screen). See {@link IncodeFinishMeta}.
30
52
  */
31
- onFinish?: (result?: TResult) => void;
53
+ onFinish?: (result?: TResult, meta?: IncodeFinishMeta) => void;
32
54
  /**
33
55
  * Callback invoked when a fatal module error occurs.
34
56
  *