@incodetech/core 0.0.0-dev-20260728-13fa1fcf → 0.0.0-dev-20260729-9461bce1

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 (147) hide show
  1. package/dist/{addressSearch-DEYnZoez.esm.js → addressSearch-oyJf4OZO.esm.js} +1 -1
  2. package/dist/ae-signature.esm.js +1 -1
  3. package/dist/antifraud.esm.js +2 -2
  4. package/dist/{antifraudManager-CFsD4BgV.esm.js → antifraudManager-CQ0zC0jZ.esm.js} +1 -1
  5. package/dist/{antifraudStateMachine-VB-aXHct.esm.js → antifraudStateMachine-MfVOsgZf.esm.js} +1 -1
  6. package/dist/authentication.d.ts +3 -3
  7. package/dist/authentication.esm.js +2 -2
  8. package/dist/{authenticationManager-B2KZQ9zw.d.ts → authenticationManager-BGM8bpD0.d.ts} +1 -1
  9. package/dist/{authenticationManager-_ORG1UHc.esm.js → authenticationManager-G4OrneRc.esm.js} +2 -2
  10. package/dist/{authenticationStateMachine-B6D1-OHs.esm.js → authenticationStateMachine-CRaoYKLp.esm.js} +4 -4
  11. package/dist/certificate-issuance.esm.js +1 -1
  12. package/dist/{certificateIssuanceStateMachine-Di_bLlkP.esm.js → certificateIssuanceStateMachine-BrbhvQ3k.esm.js} +1 -1
  13. package/dist/consent.d.ts +1 -1
  14. package/dist/consent.esm.js +2 -2
  15. package/dist/{consentManager-3Pbtj-RV.d.ts → consentManager-DLOyIZzt.d.ts} +5 -5
  16. package/dist/{consentManager-0EiBXYtL.esm.js → consentManager-fOURtjzF.esm.js} +1 -1
  17. package/dist/{consentStateMachine-STURxpEc.esm.js → consentStateMachine-BCVxc6mI.esm.js} +1 -1
  18. package/dist/cross-document-data-match.esm.js +1 -1
  19. package/dist/{crossDocumentDataMatchManager-Dw7euiiZ.esm.js → crossDocumentDataMatchManager-DaJvZ8m1.esm.js} +1 -1
  20. package/dist/curp-validation.d.ts +1 -1
  21. package/dist/curp-validation.esm.js +2 -2
  22. package/dist/{curpValidationManager-BGj9U3E0.esm.js → curpValidationManager-CKRo8Mch.esm.js} +1 -1
  23. package/dist/{curpValidationManager-BEWD-Lvo.d.ts → curpValidationManager-DVGr7Fq7.d.ts} +1 -1
  24. package/dist/{curpValidationStateMachine-Dq6l4oeZ.esm.js → curpValidationStateMachine-DMdmcv5-.esm.js} +1 -1
  25. package/dist/custom-fields.esm.js +1 -1
  26. package/dist/custom-watchlist.esm.js +1 -1
  27. package/dist/{customWatchlistStateMachine-BuQML-pk.esm.js → customWatchlistStateMachine-DB2I9_OR.esm.js} +1 -1
  28. package/dist/{deepsightLoader-BTaHIFJe.esm.js → deepsightLoader-AdX0vjwb.esm.js} +2 -2
  29. package/dist/document-capture.esm.js +2 -2
  30. package/dist/document-upload.d.ts +4 -4
  31. package/dist/document-upload.esm.js +1 -1
  32. package/dist/{documentCaptureManager-DBRQX16v.esm.js → documentCaptureManager-iTx0jqU4.esm.js} +1 -1
  33. package/dist/{documentCaptureStateMachine-BXgH9gGq.esm.js → documentCaptureStateMachine-CrdQsDn2.esm.js} +1 -1
  34. package/dist/dynamic-forms.d.ts +2 -2
  35. package/dist/dynamic-forms.esm.js +2 -2
  36. package/dist/{dynamicFormsManager-DI0sCyVB.esm.js → dynamicFormsManager-BNIbGJmh.esm.js} +7 -3
  37. package/dist/{dynamicFormsManager-BYac2uEY.d.ts → dynamicFormsManager-fhK0yINk.d.ts} +9 -1
  38. package/dist/{dynamicFormsStateMachine-BQqAwNQ-.esm.js → dynamicFormsStateMachine-DKUOlqmi.esm.js} +69 -4
  39. package/dist/ekyb.d.ts +1 -1
  40. package/dist/ekyb.esm.js +3 -3
  41. package/dist/{ekybManager-DUFNmJTE.esm.js → ekybManager-BUWJUews.esm.js} +1 -1
  42. package/dist/{ekybStateMachine-B_2GynKh.esm.js → ekybStateMachine-CYLZDKC7.esm.js} +3 -3
  43. package/dist/ekyc.esm.js +2 -2
  44. package/dist/{ekycManager-Cl2e4Knv.esm.js → ekycManager-C6Wc4wRj.esm.js} +1 -1
  45. package/dist/{ekycStateMachine-9Mm7LBea.esm.js → ekycStateMachine-fHXM6pc0.esm.js} +2 -2
  46. package/dist/electronic-signature.esm.js +1 -1
  47. package/dist/{electronicSignatureManager-BXIpAJ5m.esm.js → electronicSignatureManager-hJ9YaAvD.esm.js} +1 -1
  48. package/dist/email.esm.js +2 -2
  49. package/dist/{emailManager-Dmt1YrtS.esm.js → emailManager-B_Q6MfUq.esm.js} +1 -1
  50. package/dist/{emailStateMachine-DQS-QMgQ.esm.js → emailStateMachine-DHfDd8LI.esm.js} +1 -1
  51. package/dist/{endpoints-CfRg7iAr.esm.js → endpoints-BwKx4Gne.esm.js} +1 -0
  52. package/dist/extensibility.d.ts +14 -13
  53. package/dist/extensibility.esm.js +25 -24
  54. package/dist/face-match.esm.js +2 -2
  55. package/dist/{faceCaptureManagerFactory-B2TUje5s.d.ts → faceCaptureManagerFactory-B92LFT16.d.ts} +3 -3
  56. package/dist/{faceCaptureManagerFactory-padlYUpO.esm.js → faceCaptureManagerFactory-Bkc1HLRL.esm.js} +1 -1
  57. package/dist/{faceCaptureSetup-D7wL9pqU.esm.js → faceCaptureSetup-BQEQriDi.esm.js} +2 -2
  58. package/dist/{faceMatchManager-fPX11GnX.esm.js → faceMatchManager-Bh5wFMyh.esm.js} +1 -1
  59. package/dist/{faceMatchStateMachine-D_7UX1rV.esm.js → faceMatchStateMachine-QIf8gak4.esm.js} +1 -1
  60. package/dist/field-comparison.esm.js +1 -1
  61. package/dist/{fieldComparisonManager-USUE9qDr.esm.js → fieldComparisonManager-B_3cIH9t.esm.js} +1 -1
  62. package/dist/fiscal-qr.esm.js +1 -1
  63. package/dist/flow-events.d.ts +1 -1
  64. package/dist/flow.d.ts +8 -8
  65. package/dist/flow.esm.js +2 -2
  66. package/dist/{flowCompletionService-D5oIlcza.esm.js → flowCompletionService-6yWz7xwZ.esm.js} +1 -1
  67. package/dist/{flowServices-DSlnJDz_.esm.js → flowServices-Cf63iD-o.esm.js} +6 -4
  68. package/dist/geolocation.esm.js +2 -2
  69. package/dist/{geolocationManager-zeqAcVHC.esm.js → geolocationManager-gKopAolS.esm.js} +1 -1
  70. package/dist/{geolocationStateMachine-DxSETS9_.esm.js → geolocationStateMachine-Cac3eKge.esm.js} +1 -1
  71. package/dist/government-validation.esm.js +1 -1
  72. package/dist/{governmentValidationStateMachine-loZfWcU9.esm.js → governmentValidationStateMachine-Be1ruaNj.esm.js} +1 -1
  73. package/dist/home.d.ts +1 -1
  74. package/dist/id-ocr.d.ts +2 -2
  75. package/dist/id-ocr.esm.js +2 -2
  76. package/dist/id-verification.esm.js +2 -2
  77. package/dist/id.d.ts +2 -2
  78. package/dist/id.esm.js +2 -2
  79. package/dist/{idCaptureManager-D6fKtXhM.d.ts → idCaptureManager-C-WjmsN4.d.ts} +2 -2
  80. package/dist/{idCaptureManager-iTvQbzxA.esm.js → idCaptureManager-Dg8pxseH.esm.js} +1 -1
  81. package/dist/{idCaptureStateMachine-q4n-6o5I.esm.js → idCaptureStateMachine-B2e_wX0x.esm.js} +7 -7
  82. package/dist/{idOcrManager-CnIWzuqU.esm.js → idOcrManager-8WPK22Kq.esm.js} +1 -1
  83. package/dist/{idOcrManager-BF_cXZq8.d.ts → idOcrManager-dLuxey6y.d.ts} +2 -2
  84. package/dist/{idOcrStateMachine-Cqi8173Y.esm.js → idOcrStateMachine-Cfq5gJ0f.esm.js} +1 -1
  85. package/dist/{idVerificationManager-BTsyXjv6.esm.js → idVerificationManager-DBVs8TRS.esm.js} +1 -1
  86. package/dist/{idVerificationStateMachine-7BSciEJk.esm.js → idVerificationStateMachine-xtTSJDrB.esm.js} +1 -1
  87. package/dist/identity-reuse.d.ts +1 -1
  88. package/dist/identity-reuse.esm.js +2 -2
  89. package/dist/{identityReuseManager-BjMJHKLP.esm.js → identityReuseManager-B8jNZNHu.esm.js} +1 -1
  90. package/dist/{identityReuseManager-v2TH5g7e.d.ts → identityReuseManager-D6pD4hcZ.d.ts} +1 -1
  91. package/dist/{identityReuseStateMachine-B0IFF3R7.esm.js → identityReuseStateMachine-DdwSrghH.esm.js} +1 -1
  92. package/dist/{index-X9serOZT.d.ts → index-CLMF0QLQ.d.ts} +1 -1
  93. package/dist/index.esm.js +1 -1
  94. package/dist/mandatory-consent.d.ts +2 -2
  95. package/dist/mandatory-consent.esm.js +2 -2
  96. package/dist/{mandatoryConsentManager-BOOjm7SU.esm.js → mandatoryConsentManager-BAKnA7U_.esm.js} +1 -1
  97. package/dist/{mandatoryConsentManager-XOWt-AgD.d.ts → mandatoryConsentManager-Dcgmj1Cd.d.ts} +6 -6
  98. package/dist/{mandatoryConsentStateMachine-BP3npRnI.esm.js → mandatoryConsentStateMachine-3a1psaoK.esm.js} +1 -1
  99. package/dist/{onDeviceFaceResults-BmqIjCbi.esm.js → onDeviceFaceResults-DbSP6iTw.esm.js} +3 -3
  100. package/dist/personhood.d.ts +1 -1
  101. package/dist/personhood.esm.js +3 -3
  102. package/dist/phone.esm.js +2 -2
  103. package/dist/{phoneManager-C3aqq6jS.esm.js → phoneManager-dizEvG20.esm.js} +1 -1
  104. package/dist/{phoneStateMachine-CLGcLA8t.esm.js → phoneStateMachine-DxmYoLg8.esm.js} +1 -1
  105. package/dist/qe-signature.esm.js +1 -1
  106. package/dist/{recordingService-yaOQEalD.esm.js → recordingService-C8jFtEKZ.esm.js} +2 -2
  107. package/dist/redirect-to-mobile.esm.js +2 -2
  108. package/dist/{redirectToMobileManager-BO0BVfgM.esm.js → redirectToMobileManager-BCInKNqp.esm.js} +1 -1
  109. package/dist/{redirectToMobileStateMachine-BQuhw8_L.esm.js → redirectToMobileStateMachine-TSHtrr5D.esm.js} +1 -1
  110. package/dist/selfie.d.ts +3 -3
  111. package/dist/selfie.esm.js +5 -5
  112. package/dist/{selfieErrorUtils-BAEYvNVr.esm.js → selfieErrorUtils-1aFaxF3Q.esm.js} +2 -2
  113. package/dist/{selfieManager-BT7dmOHi.d.ts → selfieManager-CxeMb2tM.d.ts} +1 -1
  114. package/dist/{selfieManager-B2_n13LR.esm.js → selfieManager-KbDEkivf.esm.js} +2 -2
  115. package/dist/{selfieStateMachine-CrEcZaGF.esm.js → selfieStateMachine-BiuQiED3.esm.js} +3 -3
  116. package/dist/session-CrAUqlgX.esm.js +1 -0
  117. package/dist/session.d.ts +1 -1
  118. package/dist/session.esm.js +4 -4
  119. package/dist/{sessionInitializer-D2MRL--r.esm.js → sessionInitializer-DyJ4nLFJ.esm.js} +3 -3
  120. package/dist/{setup-BIxOSpxN.esm.js → setup-MlGXfrG8.esm.js} +4 -4
  121. package/dist/signature.esm.js +1 -1
  122. package/dist/{signatureStateMachine-zRLvEGTw.esm.js → signatureStateMachine-CCcFhvuv.esm.js} +1 -1
  123. package/dist/{stats-4DAk7TYl.esm.js → stats-CKtpeAhi.esm.js} +1 -1
  124. package/dist/stats.esm.js +1 -1
  125. package/dist/{types-BK-v1UYb.d.ts → types-BBQjIaK4.d.ts} +1 -1
  126. package/dist/{types-xIEGXWk8.d.ts → types-BSBzhHRH.d.ts} +9 -0
  127. package/dist/{types-DjHL5Wa9.d.ts → types-BX_XkMsQ.d.ts} +1 -1
  128. package/dist/{types-DznwkfTc.d.ts → types-C2n-6lCx.d.ts} +1 -1
  129. package/dist/types-CrUhpMDP.d.ts +6 -0
  130. package/dist/{types-NSJbROLr.d.ts → types-KPvmag_B.d.ts} +2 -0
  131. package/dist/video-selfie.d.ts +2 -2
  132. package/dist/video-selfie.esm.js +5 -5
  133. package/dist/wasm.esm.js +1 -1
  134. package/dist/watchlist-for-business.esm.js +1 -1
  135. package/dist/watchlist.d.ts +1 -50
  136. package/dist/watchlist.esm.js +2 -70
  137. package/dist/{watchlistForBusinessStateMachine-Rc6BAwlr.esm.js → watchlistForBusinessStateMachine-DZZNfYsA.esm.js} +1 -1
  138. package/dist/watchlistManager-CMFZ0aqP.esm.js +83 -0
  139. package/dist/watchlistManager-DLXef90v.d.ts +68 -0
  140. package/dist/{watchlistStateMachine-64y9XBjm.esm.js → watchlistStateMachine-CmhlwIhk.esm.js} +1 -1
  141. package/dist/workflow.d.ts +6 -6
  142. package/dist/workflow.esm.js +30 -30
  143. package/package.json +3 -3
  144. package/dist/session-DInWb8_z.esm.js +0 -1
  145. package/dist/types-sK-eGomM.d.ts +0 -6
  146. /package/dist/{types-BfgmV7s7.d.ts → types-BfgmV7s72.d.ts} +0 -0
  147. /package/dist/{types-CJ7Yl9K-.d.ts → types-CJ7Yl9K-2.d.ts} +0 -0
@@ -1,7 +1,7 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dy8PyVO5.esm.js";
2
2
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
3
  import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
- import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-Rc6BAwlr.esm.js";
4
+ import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-DZZNfYsA.esm.js";
5
5
  //#region src/modules/watchlist-for-business/watchlistForBusinessActor.ts
6
6
  function createWatchlistForBusinessActor() {
7
7
  return createActor(watchlistForBusinessMachine).start();
@@ -1,53 +1,4 @@
1
- import { t as Manager } from "./Manager-CQQ99QOI.js";
2
- //#region src/modules/watchlist/watchlistStateMachine.d.ts
3
- type WatchlistResult = 'success' | 'skipped';
4
- declare const watchlistMachine: any;
5
- //#endregion
6
- //#region src/modules/watchlist/watchlistManager.d.ts
7
- type WatchlistIdleState = {
8
- status: 'idle';
9
- };
10
- type WatchlistProcessingState = {
11
- status: 'processing';
12
- };
13
- type WatchlistSuccessState = {
14
- status: 'success';
15
- };
16
- type WatchlistFinishedState = {
17
- status: 'finished';
18
- result: WatchlistResult;
19
- };
20
- /**
21
- * Union of all possible global watchlist manager states.
22
- *
23
- * @example
24
- * ```typescript
25
- * const state = watchlistManager.getState();
26
- * if (state.status === 'finished') {
27
- * console.log('Global watchlist check complete');
28
- * }
29
- * ```
30
- */
31
- type WatchlistState = WatchlistIdleState | WatchlistProcessingState | WatchlistSuccessState | WatchlistFinishedState;
32
- /**
33
- * Creates a global watchlist manager for headless or UI-driven usage.
34
- *
35
- * @example Headless usage
36
- * ```typescript
37
- * const manager = createWatchlistManager();
38
- * manager.subscribe((state) => console.log(state.status));
39
- * manager.load();
40
- * ```
41
- */
42
- declare function createWatchlistManager(): Manager<WatchlistState> & {
43
- /**
44
- * Kicks off the global watchlist check.
45
- * Transitions from 'idle' to 'processing'.
46
- */
47
- load(): void;
48
- };
49
- type WatchlistManager = ReturnType<typeof createWatchlistManager>;
50
- //#endregion
1
+ import { n as WatchlistState, o as watchlistMachine, r as createWatchlistManager, t as WatchlistManager } from "./watchlistManager-DLXef90v.js";
51
2
  //#region src/modules/watchlist/types.d.ts
52
3
  /**
53
4
  * Configuration options for the global watchlist module.
@@ -1,71 +1,3 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dy8PyVO5.esm.js";
2
- import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
- import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
- import { t as watchlistMachine } from "./watchlistStateMachine-64y9XBjm.esm.js";
5
- //#region src/modules/watchlist/watchlistActor.ts
6
- function createWatchlistActor() {
7
- return createActor(watchlistMachine).start();
8
- }
9
- //#endregion
10
- //#region src/modules/watchlist/watchlistManager.ts
11
- /**
12
- * Maps a Watchlist state-machine snapshot to the exact Figma "Tracked
13
- * Events" screen name. Source: Watchlist | Custom Watchlist Figma file
14
- * (`https://www.figma.com/design/Xm4BgXotNwdi5iRdHTIX0N/Watchlist-%7C-Custom-Watchlist----Latest-Design?node-id=3031-82920`).
15
- * Family is `watchlist.*` — shared across global watchlist, custom
16
- * watchlist, and watchlist-for-business (distinct module tokens per
17
- * AdSign/QSign precedent).
18
- *
19
- * `idle` and `finished` are intentionally unmapped — the Figma canvas does
20
- * not define screens for the entry / terminal moments. `finished` collapses
21
- * into `moduleClosed`.
22
- */
23
- function getWatchlistScreenName(snapshot) {
24
- const stateName = topLevelStateName(snapshot.value);
25
- if (stateName === void 0) return void 0;
26
- switch (stateName) {
27
- case "processing": return "watchlist.processing";
28
- case "success": return "watchlist.success";
29
- default: return;
30
- }
31
- }
32
- function mapState(snapshot) {
33
- const typedSnapshot = snapshot;
34
- if (typedSnapshot.matches("processing")) return { status: "processing" };
35
- if (typedSnapshot.matches("success")) return { status: "success" };
36
- if (typedSnapshot.matches("finished")) return {
37
- status: "finished",
38
- result: typedSnapshot.context.result ?? "skipped"
39
- };
40
- return { status: "idle" };
41
- }
42
- function createApi({ actor }) {
43
- return {
44
- /**
45
- * Kicks off the global watchlist check.
46
- * Transitions from 'idle' to 'processing'.
47
- */
48
- load() {
49
- actor.send({ type: "LOAD" });
50
- } };
51
- }
52
- /**
53
- * Creates a global watchlist manager for headless or UI-driven usage.
54
- *
55
- * @example Headless usage
56
- * ```typescript
57
- * const manager = createWatchlistManager();
58
- * manager.subscribe((state) => console.log(state.status));
59
- * manager.load();
60
- * ```
61
- */
62
- function createWatchlistManager() {
63
- return createManager({
64
- actor: createWatchlistActor(),
65
- mapState,
66
- createApi,
67
- instrumentation: createManagerInstrumentation(eventModuleNames.watchlist, { getEventScreenName: getWatchlistScreenName })
68
- });
69
- }
70
- //#endregion
1
+ import { t as watchlistMachine } from "./watchlistStateMachine-CmhlwIhk.esm.js";
2
+ import { t as createWatchlistManager } from "./watchlistManager-CMFZ0aqP.esm.js";
71
3
  export { createWatchlistManager, watchlistMachine };
@@ -1,5 +1,5 @@
1
1
  import { t as api } from "./api-BDTZNnca.esm.js";
2
- import { t as endpoints } from "./endpoints-CfRg7iAr.esm.js";
2
+ import { t as endpoints } from "./endpoints-BwKx4Gne.esm.js";
3
3
  import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
4
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
5
5
  //#region src/modules/watchlist-for-business/watchlistForBusinessServices.ts
@@ -0,0 +1,83 @@
1
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dy8PyVO5.esm.js";
2
+ import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
+ import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
+ import { t as watchlistMachine } from "./watchlistStateMachine-CmhlwIhk.esm.js";
5
+ //#region src/modules/watchlist/watchlistActor.ts
6
+ function createWatchlistActor() {
7
+ return createActor(watchlistMachine).start();
8
+ }
9
+ //#endregion
10
+ //#region src/modules/watchlist/watchlistManager.ts
11
+ /**
12
+ * Maps a Watchlist state-machine snapshot to the exact Figma "Tracked
13
+ * Events" screen name. Source: Watchlist | Custom Watchlist Figma file
14
+ * (`https://www.figma.com/design/Xm4BgXotNwdi5iRdHTIX0N/Watchlist-%7C-Custom-Watchlist----Latest-Design?node-id=3031-82920`).
15
+ * Family is `watchlist.*` — shared across global watchlist, custom
16
+ * watchlist, and watchlist-for-business (distinct module tokens per
17
+ * AdSign/QSign precedent).
18
+ *
19
+ * `idle` and `finished` are intentionally unmapped — the Figma canvas does
20
+ * not define screens for the entry / terminal moments. `finished` collapses
21
+ * into `moduleClosed`.
22
+ */
23
+ function getWatchlistScreenName(snapshot) {
24
+ const stateName = topLevelStateName(snapshot.value);
25
+ if (stateName === void 0) return void 0;
26
+ switch (stateName) {
27
+ case "processing": return "watchlist.processing";
28
+ case "success": return "watchlist.success";
29
+ default: return;
30
+ }
31
+ }
32
+ function mapState(snapshot) {
33
+ const typedSnapshot = snapshot;
34
+ if (typedSnapshot.matches("processing")) return { status: "processing" };
35
+ if (typedSnapshot.matches("success")) return { status: "success" };
36
+ if (typedSnapshot.matches("finished")) return {
37
+ status: "finished",
38
+ result: typedSnapshot.context.result ?? "skipped"
39
+ };
40
+ return { status: "idle" };
41
+ }
42
+ function createApi({ actor }) {
43
+ return {
44
+ /**
45
+ * Kicks off the global watchlist check.
46
+ * Transitions from 'idle' to 'processing'.
47
+ */
48
+ load() {
49
+ actor.send({ type: "LOAD" });
50
+ } };
51
+ }
52
+ /**
53
+ * Creates a global watchlist manager for headless or UI-driven usage.
54
+ *
55
+ * @example Headless usage
56
+ * ```typescript
57
+ * const manager = createWatchlistManager();
58
+ * manager.subscribe((state) => console.log(state.status));
59
+ * manager.load();
60
+ * ```
61
+ */
62
+ function createWatchlistManager() {
63
+ return createManager({
64
+ actor: createWatchlistActor(),
65
+ mapState,
66
+ createApi,
67
+ instrumentation: createManagerInstrumentation(eventModuleNames.watchlist, { getEventScreenName: getWatchlistScreenName })
68
+ });
69
+ }
70
+ /**
71
+ * Creates a watchlist manager from a pre-built actor.
72
+ * Use this when overriding the machine via `.provide()` for custom backends or testing.
73
+ */
74
+ function createWatchlistManagerFromActor(actor) {
75
+ return createManager({
76
+ actor,
77
+ mapState,
78
+ createApi,
79
+ instrumentation: createManagerInstrumentation(eventModuleNames.watchlist, { getEventScreenName: getWatchlistScreenName })
80
+ });
81
+ }
82
+ //#endregion
83
+ export { createWatchlistManagerFromActor as n, createWatchlistManager as t };
@@ -0,0 +1,68 @@
1
+ import { i as ActorRefFrom } from "./spawn-D9jgw9pW.js";
2
+ import { t as Manager } from "./Manager-CQQ99QOI.js";
3
+ import "./Actor-iTq7YY48.js";
4
+ //#region src/modules/watchlist/watchlistStateMachine.d.ts
5
+ type WatchlistResult = 'success' | 'skipped';
6
+ declare const watchlistMachine: any;
7
+ type WatchlistMachine = typeof watchlistMachine;
8
+ //#endregion
9
+ //#region src/modules/watchlist/watchlistActor.d.ts
10
+ type WatchlistActor = ActorRefFrom<WatchlistMachine>;
11
+ //#endregion
12
+ //#region src/modules/watchlist/watchlistManager.d.ts
13
+ type WatchlistIdleState = {
14
+ status: 'idle';
15
+ };
16
+ type WatchlistProcessingState = {
17
+ status: 'processing';
18
+ };
19
+ type WatchlistSuccessState = {
20
+ status: 'success';
21
+ };
22
+ type WatchlistFinishedState = {
23
+ status: 'finished';
24
+ result: WatchlistResult;
25
+ };
26
+ /**
27
+ * Union of all possible global watchlist manager states.
28
+ *
29
+ * @example
30
+ * ```typescript
31
+ * const state = watchlistManager.getState();
32
+ * if (state.status === 'finished') {
33
+ * console.log('Global watchlist check complete');
34
+ * }
35
+ * ```
36
+ */
37
+ type WatchlistState = WatchlistIdleState | WatchlistProcessingState | WatchlistSuccessState | WatchlistFinishedState;
38
+ /**
39
+ * Creates a global watchlist manager for headless or UI-driven usage.
40
+ *
41
+ * @example Headless usage
42
+ * ```typescript
43
+ * const manager = createWatchlistManager();
44
+ * manager.subscribe((state) => console.log(state.status));
45
+ * manager.load();
46
+ * ```
47
+ */
48
+ declare function createWatchlistManager(): Manager<WatchlistState> & {
49
+ /**
50
+ * Kicks off the global watchlist check.
51
+ * Transitions from 'idle' to 'processing'.
52
+ */
53
+ load(): void;
54
+ };
55
+ /**
56
+ * Creates a watchlist manager from a pre-built actor.
57
+ * Use this when overriding the machine via `.provide()` for custom backends or testing.
58
+ */
59
+ declare function createWatchlistManagerFromActor(actor: WatchlistActor): Manager<WatchlistState> & {
60
+ /**
61
+ * Kicks off the global watchlist check.
62
+ * Transitions from 'idle' to 'processing'.
63
+ */
64
+ load(): void;
65
+ };
66
+ type WatchlistManager = ReturnType<typeof createWatchlistManager>;
67
+ //#endregion
68
+ export { WatchlistActor as a, createWatchlistManagerFromActor as i, WatchlistState as n, watchlistMachine as o, createWatchlistManager as r, WatchlistManager as t };
@@ -1,5 +1,5 @@
1
1
  import { t as api } from "./api-BDTZNnca.esm.js";
2
- import { t as endpoints } from "./endpoints-CfRg7iAr.esm.js";
2
+ import { t as endpoints } from "./endpoints-BwKx4Gne.esm.js";
3
3
  import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
4
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
5
5
  //#region src/modules/watchlist/watchlistServices.ts
@@ -3,8 +3,8 @@ import { t as CallbackActorLogic } from "./callback-645_omgz.js";
3
3
  import "./StateMachine-EDpYWy0i.js";
4
4
  import { t as Manager } from "./Manager-CQQ99QOI.js";
5
5
  import { a as TotalScore, i as GetTotalScoreStatusFn, n as FinishStatus, r as GetFinishStatusFn } from "./flowCompletionService-BlAHsKyv.js";
6
- import { o as FlowEventSubscribable } from "./index-X9serOZT.js";
7
- import { a as WorkflowModuleRegistry, i as RunChildModuleInput, r as RunChildModuleEvent, t as ModuleConfigMappers } from "./types-BfgmV7s7.js";
6
+ import { o as FlowEventSubscribable } from "./index-CLMF0QLQ.js";
7
+ import { a as WorkflowModuleRegistry, i as RunChildModuleInput, r as RunChildModuleEvent, t as ModuleConfigMappers } from "./types-BfgmV7s72.js";
8
8
  //#region src/modules/workflow/types.d.ts
9
9
  /** Possible node types returned by the workflow server. */
10
10
  type WorkflowNodeType = 'MODULE' | 'FINISH' | 'ASYNC_RESOLUTION';
@@ -320,10 +320,6 @@ declare const workflowMachine: StateMachine<WorkflowContext, {
320
320
  id: string | undefined;
321
321
  };
322
322
  }>, Values<{
323
- setError: {
324
- type: "setError";
325
- params: NonReducibleUnknown;
326
- };
327
323
  setLoadingResult: {
328
324
  type: "setLoadingResult";
329
325
  params: NonReducibleUnknown;
@@ -352,6 +348,10 @@ declare const workflowMachine: StateMachine<WorkflowContext, {
352
348
  type: "setFinishStatusFailed";
353
349
  params: NonReducibleUnknown;
354
350
  };
351
+ setError: {
352
+ type: "setError";
353
+ params: NonReducibleUnknown;
354
+ };
355
355
  setModuleError: {
356
356
  type: "setModuleError";
357
357
  params: NonReducibleUnknown;
@@ -1,43 +1,43 @@
1
1
  import { g as updateFeatureManagementUser } from "./feature-management-Dw96qEMs.esm.js";
2
2
  import { t as api } from "./api-BDTZNnca.esm.js";
3
3
  import { m as addEvent, n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dy8PyVO5.esm.js";
4
- import { t as endpoints } from "./endpoints-CfRg7iAr.esm.js";
5
- import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-D2MRL--r.esm.js";
4
+ import { t as endpoints } from "./endpoints-BwKx4Gne.esm.js";
5
+ import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-DyJ4nLFJ.esm.js";
6
6
  import { r as toIncodeApiError } from "./apiError-B-PkYxln.esm.js";
7
- import { g as toEkybConfig } from "./flowServices-DSlnJDz_.esm.js";
7
+ import { g as toEkybConfig } from "./flowServices-Cf63iD-o.esm.js";
8
8
  import { i as toEkycConfig } from "./ekycUtils-Dew1rBG0.esm.js";
9
9
  import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
10
10
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
11
- import { n as electronicSignatureMachine } from "./electronicSignatureManager-BXIpAJ5m.esm.js";
11
+ import { n as electronicSignatureMachine } from "./electronicSignatureManager-hJ9YaAvD.esm.js";
12
12
  import "./ae-signature.esm.js";
13
- import { t as antifraudMachine } from "./antifraudStateMachine-VB-aXHct.esm.js";
14
- import { t as authenticationMachine } from "./authenticationStateMachine-B6D1-OHs.esm.js";
15
- import { t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-Di_bLlkP.esm.js";
16
- import { t as consentMachine } from "./consentStateMachine-STURxpEc.esm.js";
17
- import { t as curpValidationMachine } from "./curpValidationStateMachine-Dq6l4oeZ.esm.js";
18
- import { t as customWatchlistMachine } from "./customWatchlistStateMachine-BuQML-pk.esm.js";
19
- import { t as documentCaptureMachine } from "./documentCaptureStateMachine-BXgH9gGq.esm.js";
20
- import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-BQqAwNQ-.esm.js";
21
- import { t as ekybMachine } from "./ekybStateMachine-B_2GynKh.esm.js";
22
- import { t as ekycMachine } from "./ekycStateMachine-9Mm7LBea.esm.js";
23
- import { t as emailMachine } from "./emailStateMachine-DQS-QMgQ.esm.js";
24
- import { t as selfieMachine } from "./selfieStateMachine-CrEcZaGF.esm.js";
25
- import { t as idCaptureMachine } from "./idCaptureStateMachine-q4n-6o5I.esm.js";
26
- import { t as phoneMachine } from "./phoneStateMachine-CLGcLA8t.esm.js";
27
- import { n as identityReuseMachine } from "./identityReuseStateMachine-B0IFF3R7.esm.js";
28
- import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-BP3npRnI.esm.js";
29
- import { t as idOcrStateMachine } from "./idOcrStateMachine-Cqi8173Y.esm.js";
30
- import { n as redirectToMobileMachine } from "./redirectToMobileStateMachine-BQuhw8_L.esm.js";
31
- import { t as geolocationMachine } from "./geolocationStateMachine-DxSETS9_.esm.js";
32
- import { t as idVerificationMachine } from "./idVerificationStateMachine-7BSciEJk.esm.js";
33
- import { t as faceMatchMachine } from "./faceMatchStateMachine-D_7UX1rV.esm.js";
34
- import { n as getFinishStatus, r as getTotalScoreStatus } from "./flowCompletionService-D5oIlcza.esm.js";
13
+ import { t as antifraudMachine } from "./antifraudStateMachine-MfVOsgZf.esm.js";
14
+ import { t as authenticationMachine } from "./authenticationStateMachine-CRaoYKLp.esm.js";
15
+ import { t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-BrbhvQ3k.esm.js";
16
+ import { t as consentMachine } from "./consentStateMachine-BCVxc6mI.esm.js";
17
+ import { t as curpValidationMachine } from "./curpValidationStateMachine-DMdmcv5-.esm.js";
18
+ import { t as customWatchlistMachine } from "./customWatchlistStateMachine-DB2I9_OR.esm.js";
19
+ import { t as documentCaptureMachine } from "./documentCaptureStateMachine-CrdQsDn2.esm.js";
20
+ import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-DKUOlqmi.esm.js";
21
+ import { t as ekybMachine } from "./ekybStateMachine-CYLZDKC7.esm.js";
22
+ import { t as ekycMachine } from "./ekycStateMachine-fHXM6pc0.esm.js";
23
+ import { t as emailMachine } from "./emailStateMachine-DHfDd8LI.esm.js";
24
+ import { t as selfieMachine } from "./selfieStateMachine-BiuQiED3.esm.js";
25
+ import { t as idCaptureMachine } from "./idCaptureStateMachine-B2e_wX0x.esm.js";
26
+ import { t as phoneMachine } from "./phoneStateMachine-DxmYoLg8.esm.js";
27
+ import { t as watchlistMachine } from "./watchlistStateMachine-CmhlwIhk.esm.js";
28
+ import { n as identityReuseMachine } from "./identityReuseStateMachine-DdwSrghH.esm.js";
29
+ import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-3a1psaoK.esm.js";
30
+ import { t as idOcrStateMachine } from "./idOcrStateMachine-Cfq5gJ0f.esm.js";
31
+ import { n as redirectToMobileMachine } from "./redirectToMobileStateMachine-TSHtrr5D.esm.js";
32
+ import { t as geolocationMachine } from "./geolocationStateMachine-Cac3eKge.esm.js";
33
+ import { t as idVerificationMachine } from "./idVerificationStateMachine-xtTSJDrB.esm.js";
34
+ import { t as faceMatchMachine } from "./faceMatchStateMachine-QIf8gak4.esm.js";
35
+ import { n as getFinishStatus, r as getTotalScoreStatus } from "./flowCompletionService-6yWz7xwZ.esm.js";
35
36
  import { n as isAdvanceableError, r as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-Crz1nHwJ.esm.js";
36
- import { t as governmentValidationMachine } from "./governmentValidationStateMachine-loZfWcU9.esm.js";
37
+ import { t as governmentValidationMachine } from "./governmentValidationStateMachine-Be1ruaNj.esm.js";
37
38
  import "./qe-signature.esm.js";
38
- import { t as signatureMachine } from "./signatureStateMachine-zRLvEGTw.esm.js";
39
- import { t as watchlistMachine } from "./watchlistStateMachine-64y9XBjm.esm.js";
40
- import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-Rc6BAwlr.esm.js";
39
+ import { t as signatureMachine } from "./signatureStateMachine-CCcFhvuv.esm.js";
40
+ import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-DZZNfYsA.esm.js";
41
41
  //#region src/internal/orchestration/defaultModules.ts
42
42
  /**
43
43
  * Shared default module registry — single source of truth for module key → machine mappings.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/core",
3
- "version": "0.0.0-dev-20260728-13fa1fcf",
3
+ "version": "0.0.0-dev-20260729-9461bce1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/IncodeTechnologies/incode-web-sdk.git"
@@ -276,8 +276,8 @@
276
276
  "tsdown": "^0.22.8",
277
277
  "typescript": "^5.9.3",
278
278
  "vitest": "4.1.4",
279
- "@incodetech/config": "1.0.2",
280
- "@incodetech/infra": "1.2.0"
279
+ "@incodetech/infra": "1.2.0",
280
+ "@incodetech/config": "1.0.2"
281
281
  },
282
282
  "scripts": {
283
283
  "build": "tsdown -c tsdown.config.ts",
@@ -1 +0,0 @@
1
- import "./sessionInitializer-D2MRL--r.esm.js";
@@ -1,6 +0,0 @@
1
- import { i as FlowModuleConfig } from "./types-NSJbROLr.js";
2
- import { t as BaseFaceCaptureConfig } from "./types-BK-v1UYb.js";
3
- //#region src/modules/authentication/types.d.ts
4
- type AuthenticationConfig = FlowModuleConfig['AUTHENTICATION'] & BaseFaceCaptureConfig;
5
- //#endregion
6
- export { AuthenticationConfig as t };