@incodetech/core 0.0.0-dev-20260728-af4e1aee → 0.0.0-dev-20260729-e2dda0b0

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 (170) hide show
  1. package/dist/BrowserDiagnosticsCryptoProvider-BZqV7sJR.esm.js +96 -0
  2. package/dist/IBrowserEnvironmentCapability-DEaRRk-R.esm.js +9 -0
  3. package/dist/{WasmUtilProvider-BrWOTaVG.esm.js → WasmUtilProvider-D13sxEmA.esm.js} +2 -406
  4. package/dist/{addressSearch-DEYnZoez.esm.js → addressSearch-D_0t2Wdn.esm.js} +2 -2
  5. package/dist/ae-signature.esm.js +1 -1
  6. package/dist/antifraud.esm.js +2 -2
  7. package/dist/{antifraudManager-CFsD4BgV.esm.js → antifraudManager-COYh4O_y.esm.js} +2 -2
  8. package/dist/{antifraudStateMachine-VB-aXHct.esm.js → antifraudStateMachine-NuzlVVte.esm.js} +2 -2
  9. package/dist/api-Bx3gKW_y.esm.js +129 -0
  10. package/dist/{apiError-B-PkYxln.esm.js → apiError-GA6MbJpI.esm.js} +12 -1
  11. package/dist/authentication.d.ts +3 -3
  12. package/dist/authentication.esm.js +2 -2
  13. package/dist/{authenticationManager-BDkpqQ-5.esm.js → authenticationManager-B7v0Jy-x.esm.js} +5 -5
  14. package/dist/{authenticationManager-B2KZQ9zw.d.ts → authenticationManager-BGM8bpD0.d.ts} +1 -1
  15. package/dist/{authenticationStateMachine-lTogTlQv.esm.js → authenticationStateMachine-DAh9ziFC.esm.js} +5 -5
  16. package/dist/camera.esm.js +1 -1
  17. package/dist/certificate-issuance.esm.js +2 -2
  18. package/dist/{certificateIssuanceStateMachine-Di_bLlkP.esm.js → certificateIssuanceStateMachine-N__sTAgu.esm.js} +2 -2
  19. package/dist/consent.d.ts +1 -1
  20. package/dist/consent.esm.js +2 -2
  21. package/dist/{consentManager-DLOyIZzt.d.ts → consentManager-BhYFeKiG.d.ts} +9 -9
  22. package/dist/{consentManager-0EiBXYtL.esm.js → consentManager-CWEAhAJ5.esm.js} +2 -2
  23. package/dist/{consentStateMachine-STURxpEc.esm.js → consentStateMachine-DWL-X0Jb.esm.js} +2 -2
  24. package/dist/cross-document-data-match.esm.js +1 -1
  25. package/dist/{crossDocumentDataMatchManager-Dw7euiiZ.esm.js → crossDocumentDataMatchManager-Bk4W2TDJ.esm.js} +3 -3
  26. package/dist/curp-validation.d.ts +1 -1
  27. package/dist/curp-validation.esm.js +2 -2
  28. package/dist/{curpValidationManager-BGj9U3E0.esm.js → curpValidationManager-B6gYKygj.esm.js} +2 -2
  29. package/dist/{curpValidationManager-BEWD-Lvo.d.ts → curpValidationManager-DVGr7Fq7.d.ts} +1 -1
  30. package/dist/{curpValidationStateMachine-Dq6l4oeZ.esm.js → curpValidationStateMachine-42RbYcam.esm.js} +2 -2
  31. package/dist/custom-fields.esm.js +3 -3
  32. package/dist/custom-watchlist.esm.js +2 -2
  33. package/dist/{customWatchlistStateMachine-BuQML-pk.esm.js → customWatchlistStateMachine-BbDtH5kk.esm.js} +2 -2
  34. package/dist/{deepsightLoader-DDu_KUyv.esm.js → deepsightLoader-CHG26pOB.esm.js} +14 -4
  35. package/dist/document-capture.d.ts +1 -1
  36. package/dist/document-capture.esm.js +2 -2
  37. package/dist/document-upload.d.ts +8 -8
  38. package/dist/document-upload.esm.js +3 -3
  39. package/dist/{documentCaptureManager-B-J1lXcH.d.ts → documentCaptureManager-BK_4RbHt.d.ts} +73 -73
  40. package/dist/{documentCaptureManager-DBRQX16v.esm.js → documentCaptureManager-FvcNYpkS.esm.js} +2 -2
  41. package/dist/{documentCaptureStateMachine-BXgH9gGq.esm.js → documentCaptureStateMachine-BlzN0-mU.esm.js} +4 -4
  42. package/dist/dynamic-forms.d.ts +2 -2
  43. package/dist/dynamic-forms.esm.js +2 -2
  44. package/dist/{dynamicFormsManager-DI0sCyVB.esm.js → dynamicFormsManager-CfJixpOW.esm.js} +8 -4
  45. package/dist/{dynamicFormsManager-BYac2uEY.d.ts → dynamicFormsManager-fhK0yINk.d.ts} +9 -1
  46. package/dist/{dynamicFormsStateMachine-BQqAwNQ-.esm.js → dynamicFormsStateMachine-DrPO1i45.esm.js} +71 -6
  47. package/dist/ekyb.d.ts +1 -1
  48. package/dist/ekyb.esm.js +3 -3
  49. package/dist/{ekybManager-BQQyRMqw.esm.js → ekybManager-DVCqaSzz.esm.js} +2 -2
  50. package/dist/{ekybStateMachine-jsiqdGjv.esm.js → ekybStateMachine-C3y-Qx1a.esm.js} +4 -4
  51. package/dist/ekyc.esm.js +2 -2
  52. package/dist/{ekycManager-Cl2e4Knv.esm.js → ekycManager-dimNksoE.esm.js} +2 -2
  53. package/dist/{ekycStateMachine-9Mm7LBea.esm.js → ekycStateMachine-Yl3sQmhm.esm.js} +3 -3
  54. package/dist/electronic-signature.esm.js +1 -1
  55. package/dist/{electronicSignatureManager-BXIpAJ5m.esm.js → electronicSignatureManager-D0X7P-de.esm.js} +4 -4
  56. package/dist/email.esm.js +2 -2
  57. package/dist/{emailManager-Dmt1YrtS.esm.js → emailManager-BqJMritP.esm.js} +2 -2
  58. package/dist/{emailStateMachine-DQS-QMgQ.esm.js → emailStateMachine-CLtrh2Ot.esm.js} +2 -2
  59. package/dist/{endpoints-CfRg7iAr.esm.js → endpoints-DOfmJylF.esm.js} +8 -1
  60. package/dist/{events-Dy8PyVO5.esm.js → events-CMFCCu1H.esm.js} +2 -9
  61. package/dist/events.esm.js +1 -1
  62. package/dist/extensibility.d.ts +13 -13
  63. package/dist/extensibility.esm.js +26 -32
  64. package/dist/face-match.esm.js +2 -2
  65. package/dist/{faceCaptureManagerFactory-B2TUje5s.d.ts → faceCaptureManagerFactory-B92LFT16.d.ts} +3 -3
  66. package/dist/{faceCaptureManagerFactory-DaYwl0Yq.esm.js → faceCaptureManagerFactory-D2pR3ZnX.esm.js} +3 -3
  67. package/dist/{faceCaptureSetup-DlmX-9nD.esm.js → faceCaptureSetup-DbhDPMjb.esm.js} +5 -5
  68. package/dist/{faceMatchManager-fPX11GnX.esm.js → faceMatchManager-XxTEAj9C.esm.js} +2 -2
  69. package/dist/{faceMatchStateMachine-D_7UX1rV.esm.js → faceMatchStateMachine-ubds4WlI.esm.js} +2 -2
  70. package/dist/field-comparison.esm.js +1 -1
  71. package/dist/{fieldComparisonManager-USUE9qDr.esm.js → fieldComparisonManager-BzaX4TvX.esm.js} +3 -3
  72. package/dist/fiscal-qr.esm.js +3 -3
  73. package/dist/flow-events.d.ts +1 -1
  74. package/dist/flow.d.ts +6 -6
  75. package/dist/flow.esm.js +4 -4
  76. package/dist/{flowCompletionService-D5oIlcza.esm.js → flowCompletionService-BdZR6HyE.esm.js} +3 -3
  77. package/dist/{flowServices-T5JoA_1N.esm.js → flowServices-CPti9am-.esm.js} +8 -6
  78. package/dist/geolocation.esm.js +2 -2
  79. package/dist/{geolocationManager-zeqAcVHC.esm.js → geolocationManager-DW27-LTL.esm.js} +2 -2
  80. package/dist/{geolocationStateMachine-DxSETS9_.esm.js → geolocationStateMachine-Cz3Q6az0.esm.js} +3 -3
  81. package/dist/government-validation.esm.js +2 -2
  82. package/dist/{governmentValidationStateMachine-loZfWcU9.esm.js → governmentValidationStateMachine-CtG3bIdM.esm.js} +2 -2
  83. package/dist/home.d.ts +1 -1
  84. package/dist/home.esm.js +1 -1
  85. package/dist/http.esm.js +1 -1
  86. package/dist/id-ocr.d.ts +1 -1
  87. package/dist/id-ocr.esm.js +2 -2
  88. package/dist/id-verification.esm.js +2 -2
  89. package/dist/id.d.ts +2 -2
  90. package/dist/id.esm.js +5 -5
  91. package/dist/{idCaptureDefaults-DCrjeNl5.esm.js → idCaptureDefaults-BDS43fFL.esm.js} +2 -2
  92. package/dist/{idCaptureManager-D6fKtXhM.d.ts → idCaptureManager-C-WjmsN4.d.ts} +2 -2
  93. package/dist/{idCaptureManager-DaqabBBZ.esm.js → idCaptureManager-CPzgzVu8.esm.js} +4 -4
  94. package/dist/{idCaptureStateMachine-CU1CsT7x.esm.js → idCaptureStateMachine-CAKztWBq.esm.js} +28 -17
  95. package/dist/{idOcrManager-dLuxey6y.d.ts → idOcrManager-DXc_xRN7.d.ts} +1 -1
  96. package/dist/{idOcrManager-CnIWzuqU.esm.js → idOcrManager-Drs6frVO.esm.js} +2 -2
  97. package/dist/{idOcrStateMachine-Cqi8173Y.esm.js → idOcrStateMachine-s08FLvEh.esm.js} +3 -3
  98. package/dist/{idVerificationManager-BTsyXjv6.esm.js → idVerificationManager-Df97Bf0n.esm.js} +2 -2
  99. package/dist/{idVerificationStateMachine-7BSciEJk.esm.js → idVerificationStateMachine-tAF7pvC8.esm.js} +2 -2
  100. package/dist/identity-reuse.d.ts +1 -1
  101. package/dist/identity-reuse.esm.js +2 -2
  102. package/dist/{identityReuseManager-BjMJHKLP.esm.js → identityReuseManager-0ZHGWr9T.esm.js} +2 -2
  103. package/dist/{identityReuseManager-D6pD4hcZ.d.ts → identityReuseManager-v2TH5g7e.d.ts} +1 -1
  104. package/dist/{identityReuseStateMachine-B0IFF3R7.esm.js → identityReuseStateMachine-DG8kbKuy.esm.js} +2 -2
  105. package/dist/{index-X9serOZT.d.ts → index-CLMF0QLQ.d.ts} +1 -1
  106. package/dist/index.d.ts +1 -1
  107. package/dist/index.esm.js +1 -1
  108. package/dist/{invokeOnCaptureCallback-B-QfsCQY.esm.js → invokeOnCaptureCallback-Cgl54qED.esm.js} +1 -1
  109. package/dist/mandatory-consent.d.ts +2 -2
  110. package/dist/mandatory-consent.esm.js +2 -2
  111. package/dist/{mandatoryConsentManager-IKpruo6V.d.ts → mandatoryConsentManager-CzsVFG33.d.ts} +6 -6
  112. package/dist/{mandatoryConsentManager-BOOjm7SU.esm.js → mandatoryConsentManager-DaKK7S4q.esm.js} +2 -2
  113. package/dist/{mandatoryConsentStateMachine-BP3npRnI.esm.js → mandatoryConsentStateMachine-CjKpOQXU.esm.js} +2 -2
  114. package/dist/{onDeviceFaceResults-bUR2uNg0.esm.js → onDeviceFaceResults-CVhk1BWp.esm.js} +13 -6
  115. package/dist/{permissionGuards-5Cu6a8iN.esm.js → permissionGuards-UMiLlPfq.esm.js} +1 -1
  116. package/dist/{permissionServices-CkHL1BjH.esm.js → permissionServices-C4qKxOl4.esm.js} +1 -1
  117. package/dist/personhood.d.ts +1 -1
  118. package/dist/personhood.esm.js +9 -22
  119. package/dist/phone.esm.js +2 -2
  120. package/dist/{phoneManager-C3aqq6jS.esm.js → phoneManager-WImoAp4i.esm.js} +2 -2
  121. package/dist/{phoneStateMachine-CLGcLA8t.esm.js → phoneStateMachine-FJ-_x1G4.esm.js} +2 -2
  122. package/dist/qe-signature.esm.js +1 -1
  123. package/dist/{recordingService-ChBo1rvx.esm.js → recordingService-BGPq5vGr.esm.js} +3 -3
  124. package/dist/redirect-to-mobile.esm.js +2 -2
  125. package/dist/{redirectToMobileManager-BO0BVfgM.esm.js → redirectToMobileManager-CxEu6KnV.esm.js} +2 -2
  126. package/dist/{redirectToMobileStateMachine-BQuhw8_L.esm.js → redirectToMobileStateMachine-jI5XPtZJ.esm.js} +2 -2
  127. package/dist/{runChildModule-Crz1nHwJ.esm.js → runChildModule-fagPe5Ct.esm.js} +6 -1
  128. package/dist/selfie.d.ts +3 -3
  129. package/dist/selfie.esm.js +9 -9
  130. package/dist/{selfieErrorUtils-BAEYvNVr.esm.js → selfieErrorUtils-DCRRRj38.esm.js} +3 -3
  131. package/dist/{selfieManager-BT7dmOHi.d.ts → selfieManager-CxeMb2tM.d.ts} +1 -1
  132. package/dist/{selfieManager-9Eci1f5e.esm.js → selfieManager-DTiBsQNn.esm.js} +5 -5
  133. package/dist/{selfieStateMachine-CKRTfYh8.esm.js → selfieStateMachine-CxabK5_3.esm.js} +3 -3
  134. package/dist/session-Ccob4IUP.esm.js +161 -0
  135. package/dist/session.d.ts +9 -2
  136. package/dist/session.esm.js +4 -152
  137. package/dist/{sessionInitializer-CgjN51b2.esm.js → sessionInitializer-DEd0CQ74.esm.js} +27 -32
  138. package/dist/{setup-BFGd-cxt.esm.js → setup-BR4G3NHV.esm.js} +78 -11
  139. package/dist/{setup-B1WTXTQV.d.ts → setup-Dj8n_YLP.d.ts} +22 -0
  140. package/dist/signature.esm.js +2 -2
  141. package/dist/{signatureStateMachine-zRLvEGTw.esm.js → signatureStateMachine-Dx92l8pR.esm.js} +2 -2
  142. package/dist/{stats-4DAk7TYl.esm.js → stats-6sK3f5pc.esm.js} +2 -2
  143. package/dist/stats.esm.js +1 -1
  144. package/dist/trueSight-4L5GCqKy.esm.js +1 -0
  145. package/dist/trueSightService-DKC-gmQC.esm.js +1891 -0
  146. package/dist/trust-graph.esm.js +1 -1
  147. package/dist/{types-BK-v1UYb.d.ts → types-BBQjIaK4.d.ts} +1 -1
  148. package/dist/{types-xIEGXWk8.d.ts → types-BSBzhHRH.d.ts} +9 -0
  149. package/dist/{types-DjHL5Wa9.d.ts → types-BX_XkMsQ.d.ts} +1 -1
  150. package/dist/{types-DznwkfTc.d.ts → types-C2n-6lCx.d.ts} +1 -1
  151. package/dist/types-CrUhpMDP.d.ts +6 -0
  152. package/dist/{types-NSJbROLr.d.ts → types-KPvmag_B.d.ts} +2 -0
  153. package/dist/video-selfie.d.ts +2 -2
  154. package/dist/video-selfie.esm.js +9 -9
  155. package/dist/wasm.d.ts +1 -1
  156. package/dist/wasm.esm.js +3 -3
  157. package/dist/{wasmDefaults-B4DUtYET.esm.js → wasmDefaults-DJiEvV7f.esm.js} +1 -1
  158. package/dist/wasmWebClient-DM8lkb0z.esm.js +407 -0
  159. package/dist/watchlist-for-business.esm.js +2 -2
  160. package/dist/watchlist.esm.js +2 -2
  161. package/dist/{watchlistForBusinessStateMachine-Rc6BAwlr.esm.js → watchlistForBusinessStateMachine-Eo-WEYha.esm.js} +2 -2
  162. package/dist/{watchlistManager-FRMpgcWW.esm.js → watchlistManager-DnVfNc1v.esm.js} +2 -2
  163. package/dist/{watchlistStateMachine-64y9XBjm.esm.js → watchlistStateMachine-DZSOauwp.esm.js} +2 -2
  164. package/dist/workflow.d.ts +17 -9
  165. package/dist/workflow.esm.js +55 -40
  166. package/package.json +3 -3
  167. package/dist/api-BDTZNnca.esm.js +0 -71
  168. package/dist/clientLifecycle-BX83zwtT.esm.js +0 -528
  169. package/dist/session-B3d0Xtee.esm.js +0 -1
  170. package/dist/types-sK-eGomM.d.ts +0 -6
@@ -3,7 +3,7 @@ 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";
6
+ import { o as FlowEventSubscribable } from "./index-CLMF0QLQ.js";
7
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. */
@@ -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;
@@ -364,6 +364,14 @@ declare const workflowMachine: StateMachine<WorkflowContext, {
364
364
  type: "trackAdvanceableModuleError";
365
365
  params: unknown;
366
366
  };
367
+ trackTerminalModuleError: {
368
+ type: "trackTerminalModuleError";
369
+ params: unknown;
370
+ };
371
+ trackNodeTransition: {
372
+ type: "trackNodeTransition";
373
+ params: unknown;
374
+ };
367
375
  setHomeContinueLoading: {
368
376
  type: "setHomeContinueLoading";
369
377
  params: NonReducibleUnknown;
@@ -814,7 +822,7 @@ declare const workflowMachine: StateMachine<WorkflowContext, {
814
822
  readonly actions: readonly ["setModuleErrorCode", "trackAdvanceableModuleError"];
815
823
  }, {
816
824
  readonly target: "error";
817
- readonly actions: "setModuleError";
825
+ readonly actions: readonly ["setModuleError", "trackTerminalModuleError"];
818
826
  }];
819
827
  readonly COMPLETE_FLOW: "completing";
820
828
  readonly FINISH_WORKFLOW: readonly [{
@@ -963,16 +971,16 @@ declare const workflowMachine: StateMachine<WorkflowContext, {
963
971
  readonly onDone: readonly [{
964
972
  readonly target: "resolvingModule";
965
973
  readonly guard: "isModuleNode";
966
- readonly actions: "setNextNode";
974
+ readonly actions: readonly ["setNextNode", "trackNodeTransition"];
967
975
  readonly reenter: true;
968
976
  }, {
969
977
  readonly target: "completing";
970
978
  readonly guard: "isFinishNode";
971
- readonly actions: "setNextNode";
979
+ readonly actions: readonly ["setNextNode", "trackNodeTransition"];
972
980
  }, {
973
981
  readonly target: "asyncResolution";
974
982
  readonly guard: "isAsyncResolutionNode";
975
- readonly actions: "setNextNode";
983
+ readonly actions: readonly ["setNextNode", "trackNodeTransition"];
976
984
  }];
977
985
  readonly onError: {
978
986
  readonly target: "error";
@@ -1,43 +1,45 @@
1
1
  import { g as updateFeatureManagementUser } from "./feature-management-Dw96qEMs.esm.js";
2
- import { t as api } from "./api-BDTZNnca.esm.js";
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-CgjN51b2.esm.js";
6
- import { r as toIncodeApiError } from "./apiError-B-PkYxln.esm.js";
7
- import { g as toEkybConfig } from "./flowServices-T5JoA_1N.esm.js";
2
+ import { t as api } from "./api-Bx3gKW_y.esm.js";
3
+ import { l as trueSightLog } from "./trueSightService-DKC-gmQC.esm.js";
4
+ import { m as addEvent, n as eventModuleNames, o as createManagerInstrumentation } from "./events-CMFCCu1H.esm.js";
5
+ import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-DEd0CQ74.esm.js";
6
+ import { t as endpoints } from "./endpoints-DOfmJylF.esm.js";
7
+ import "./trueSight-4L5GCqKy.esm.js";
8
+ import { r as toIncodeApiError } from "./apiError-GA6MbJpI.esm.js";
9
+ import { g as toEkybConfig } from "./flowServices-CPti9am-.esm.js";
8
10
  import { i as toEkycConfig } from "./ekycUtils-Dew1rBG0.esm.js";
9
11
  import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
10
12
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
11
- import { n as electronicSignatureMachine } from "./electronicSignatureManager-BXIpAJ5m.esm.js";
13
+ import { n as electronicSignatureMachine } from "./electronicSignatureManager-D0X7P-de.esm.js";
12
14
  import "./ae-signature.esm.js";
13
- import { t as antifraudMachine } from "./antifraudStateMachine-VB-aXHct.esm.js";
14
- import { t as authenticationMachine } from "./authenticationStateMachine-lTogTlQv.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-jsiqdGjv.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-CKRTfYh8.esm.js";
25
- import { t as idCaptureMachine } from "./idCaptureStateMachine-CU1CsT7x.esm.js";
26
- import { t as phoneMachine } from "./phoneStateMachine-CLGcLA8t.esm.js";
27
- import { t as watchlistMachine } from "./watchlistStateMachine-64y9XBjm.esm.js";
28
- import { n as identityReuseMachine } from "./identityReuseStateMachine-B0IFF3R7.esm.js";
29
- import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-BP3npRnI.esm.js";
30
- import { t as idOcrStateMachine } from "./idOcrStateMachine-Cqi8173Y.esm.js";
31
- import { n as redirectToMobileMachine } from "./redirectToMobileStateMachine-BQuhw8_L.esm.js";
32
- import { t as geolocationMachine } from "./geolocationStateMachine-DxSETS9_.esm.js";
33
- import { t as idVerificationMachine } from "./idVerificationStateMachine-7BSciEJk.esm.js";
34
- import { t as faceMatchMachine } from "./faceMatchStateMachine-D_7UX1rV.esm.js";
35
- import { n as getFinishStatus, r as getTotalScoreStatus } from "./flowCompletionService-D5oIlcza.esm.js";
36
- import { n as isAdvanceableError, r as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-Crz1nHwJ.esm.js";
37
- import { t as governmentValidationMachine } from "./governmentValidationStateMachine-loZfWcU9.esm.js";
15
+ import { t as antifraudMachine } from "./antifraudStateMachine-NuzlVVte.esm.js";
16
+ import { t as authenticationMachine } from "./authenticationStateMachine-DAh9ziFC.esm.js";
17
+ import { t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-N__sTAgu.esm.js";
18
+ import { t as consentMachine } from "./consentStateMachine-DWL-X0Jb.esm.js";
19
+ import { t as curpValidationMachine } from "./curpValidationStateMachine-42RbYcam.esm.js";
20
+ import { t as customWatchlistMachine } from "./customWatchlistStateMachine-BbDtH5kk.esm.js";
21
+ import { t as documentCaptureMachine } from "./documentCaptureStateMachine-BlzN0-mU.esm.js";
22
+ import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-DrPO1i45.esm.js";
23
+ import { t as ekybMachine } from "./ekybStateMachine-C3y-Qx1a.esm.js";
24
+ import { t as ekycMachine } from "./ekycStateMachine-Yl3sQmhm.esm.js";
25
+ import { t as emailMachine } from "./emailStateMachine-CLtrh2Ot.esm.js";
26
+ import { t as selfieMachine } from "./selfieStateMachine-CxabK5_3.esm.js";
27
+ import { t as idCaptureMachine } from "./idCaptureStateMachine-CAKztWBq.esm.js";
28
+ import { t as phoneMachine } from "./phoneStateMachine-FJ-_x1G4.esm.js";
29
+ import { t as watchlistMachine } from "./watchlistStateMachine-DZSOauwp.esm.js";
30
+ import { n as identityReuseMachine } from "./identityReuseStateMachine-DG8kbKuy.esm.js";
31
+ import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-CjKpOQXU.esm.js";
32
+ import { t as idOcrStateMachine } from "./idOcrStateMachine-s08FLvEh.esm.js";
33
+ import { n as redirectToMobileMachine } from "./redirectToMobileStateMachine-jI5XPtZJ.esm.js";
34
+ import { t as geolocationMachine } from "./geolocationStateMachine-Cz3Q6az0.esm.js";
35
+ import { t as idVerificationMachine } from "./idVerificationStateMachine-tAF7pvC8.esm.js";
36
+ import { t as faceMatchMachine } from "./faceMatchStateMachine-ubds4WlI.esm.js";
37
+ import { n as getFinishStatus, r as getTotalScoreStatus } from "./flowCompletionService-BdZR6HyE.esm.js";
38
+ import { n as isAdvanceableError, r as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-fagPe5Ct.esm.js";
39
+ import { t as governmentValidationMachine } from "./governmentValidationStateMachine-CtG3bIdM.esm.js";
38
40
  import "./qe-signature.esm.js";
39
- import { t as signatureMachine } from "./signatureStateMachine-zRLvEGTw.esm.js";
40
- import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-Rc6BAwlr.esm.js";
41
+ import { t as signatureMachine } from "./signatureStateMachine-Dx92l8pR.esm.js";
42
+ import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-Eo-WEYha.esm.js";
41
43
  //#region src/internal/orchestration/defaultModules.ts
42
44
  /**
43
45
  * Shared default module registry — single source of truth for module key → machine mappings.
@@ -348,14 +350,24 @@ const workflowMachine = setup({
348
350
  setModuleError: assign(({ event }) => ({ error: String(event.error) })),
349
351
  setModuleErrorCode: assign(({ event }) => ({ moduleErrorCode: event.moduleErrorCode })),
350
352
  trackAdvanceableModuleError: ({ context, event }) => {
353
+ const moduleErrorCode = event.moduleErrorCode;
351
354
  addEvent({
352
355
  code: "errorTriggered",
353
356
  module: context.currentNode?.moduleKey,
354
357
  payload: {
355
- errorCode: event.moduleErrorCode,
358
+ errorCode: moduleErrorCode,
356
359
  advanced: true
357
360
  }
358
361
  });
362
+ trueSightLog("warning", "workflow", "orchestration", `module error advanceable moduleErrorCode=${moduleErrorCode ?? "unknown"} module=${context.currentNode?.moduleKey ?? "unknown"} decision=advanced-via-processNode`);
363
+ },
364
+ trackTerminalModuleError: ({ context, event }) => {
365
+ const typed = event;
366
+ trueSightLog("error", "workflow", "orchestration", `module error terminal module=${context.currentNode?.moduleKey ?? "unknown"}${typed.moduleErrorCode !== void 0 ? ` moduleErrorCode=${typed.moduleErrorCode}` : ""} error=${String(typed.error)}`);
367
+ },
368
+ trackNodeTransition: ({ event }) => {
369
+ const node = event.output?.nextNode;
370
+ trueSightLog("info", "workflow", "orchestration", `processNode transition nodeType=${node?.nodeType ?? "unknown"}${node?.moduleKey !== void 0 ? ` module=${node.moduleKey}` : ""}`);
359
371
  },
360
372
  setHomeContinueLoading: assign({ isHomeContinueLoading: true }),
361
373
  clearHomeContinueLoading: assign({ isHomeContinueLoading: false })
@@ -504,7 +516,7 @@ const workflowMachine = setup({
504
516
  actions: ["setModuleErrorCode", "trackAdvanceableModuleError"]
505
517
  }, {
506
518
  target: "error",
507
- actions: "setModuleError"
519
+ actions: ["setModuleError", "trackTerminalModuleError"]
508
520
  }],
509
521
  COMPLETE_FLOW: "completing",
510
522
  FINISH_WORKFLOW: [{
@@ -561,18 +573,18 @@ const workflowMachine = setup({
561
573
  {
562
574
  target: "resolvingModule",
563
575
  guard: "isModuleNode",
564
- actions: "setNextNode",
576
+ actions: ["setNextNode", "trackNodeTransition"],
565
577
  reenter: true
566
578
  },
567
579
  {
568
580
  target: "completing",
569
581
  guard: "isFinishNode",
570
- actions: "setNextNode"
582
+ actions: ["setNextNode", "trackNodeTransition"]
571
583
  },
572
584
  {
573
585
  target: "asyncResolution",
574
586
  guard: "isAsyncResolutionNode",
575
- actions: "setNextNode"
587
+ actions: ["setNextNode", "trackNodeTransition"]
576
588
  }
577
589
  ],
578
590
  onError: {
@@ -808,7 +820,10 @@ function createWorkflowManager(options = {}) {
808
820
  mapState,
809
821
  createApi,
810
822
  instrumentation: createManagerInstrumentation(eventModuleNames.workflow)
811
- }), { interviewId: options.interviewId });
823
+ }), {
824
+ interviewId: options.interviewId,
825
+ managerKind: "workflow"
826
+ });
812
827
  }
813
828
  //#endregion
814
829
  export { createWorkflowManager, workflowMachine };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/core",
3
- "version": "0.0.0-dev-20260728-af4e1aee",
3
+ "version": "0.0.0-dev-20260729-e2dda0b0",
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/infra": "1.2.0",
280
- "@incodetech/config": "1.0.2"
279
+ "@incodetech/config": "1.0.2",
280
+ "@incodetech/infra": "1.2.0"
281
281
  },
282
282
  "scripts": {
283
283
  "build": "tsdown -c tsdown.config.ts",
@@ -1,71 +0,0 @@
1
- //#region src/internal/http/api.ts
2
- let client = null;
3
- let currentToken = null;
4
- function setClient(httpClient) {
5
- client = httpClient;
6
- }
7
- function setToken(token) {
8
- currentToken = token;
9
- }
10
- function getToken() {
11
- return currentToken;
12
- }
13
- function getApi() {
14
- if (!client) throw new Error("SDK not configured. Call setup({ apiURL: \"...\" }) first.");
15
- return client;
16
- }
17
- function isApiConfigured() {
18
- return client !== null;
19
- }
20
- function resetApi() {
21
- client = null;
22
- currentToken = null;
23
- }
24
- /**
25
- * Header-precedence contract: when a caller passes
26
- * `X-Incode-Hardware-Id` in `config.headers`, their value wins over
27
- * `currentToken`. Spreading `config?.headers` LAST achieves that
28
- * (later keys overwrite earlier ones in object spread).
29
- *
30
- * Existing call sites that already pass an explicit
31
- * `X-Incode-Hardware-Id` header (`recordingsRepository.uploadDeepsightVideo`,
32
- * `internal/virtualCameraCheck.logFrame`) now use the value they
33
- * passed in unconditionally — previously the auto-injection silently
34
- * clobbered them. Both call sites pass tokens that are already
35
- * supposed to be the active session token, so behaviour is
36
- * unchanged in practice; the change unblocks personhood (which
37
- * needs to attach its own slot's token) without bypassing the
38
- * shared `api` wrapper.
39
- *
40
- * Regression coverage lives in `api.test.ts → "should let explicit
41
- * X-Incode-Hardware-Id override the auto-injected token"`.
42
- */
43
- function addTokenHeader(config) {
44
- if (!currentToken) return config ?? {};
45
- return {
46
- ...config,
47
- headers: {
48
- "X-Incode-Hardware-Id": currentToken,
49
- ...config?.headers
50
- }
51
- };
52
- }
53
- const api = {
54
- get(url, config) {
55
- return getApi().get(url, addTokenHeader(config));
56
- },
57
- post(url, data, config) {
58
- return getApi().post(url, data, addTokenHeader(config));
59
- },
60
- put(url, data, config) {
61
- return getApi().put(url, data, addTokenHeader(config));
62
- },
63
- patch(url, data, config) {
64
- return getApi().patch(url, data, addTokenHeader(config));
65
- },
66
- delete(url, config) {
67
- return getApi().delete(url, addTokenHeader(config));
68
- }
69
- };
70
- //#endregion
71
- export { resetApi as a, isApiConfigured as i, getApi as n, setClient as o, getToken as r, setToken as s, api as t };