@incodetech/core 0.0.0-dev-20260729-9461bce1 → 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.
- package/dist/BrowserDiagnosticsCryptoProvider-BZqV7sJR.esm.js +96 -0
- package/dist/IBrowserEnvironmentCapability-DEaRRk-R.esm.js +9 -0
- package/dist/{WasmUtilProvider-BrWOTaVG.esm.js → WasmUtilProvider-D13sxEmA.esm.js} +2 -406
- package/dist/{addressSearch-oyJf4OZO.esm.js → addressSearch-D_0t2Wdn.esm.js} +2 -2
- package/dist/ae-signature.esm.js +1 -1
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudManager-CQ0zC0jZ.esm.js → antifraudManager-COYh4O_y.esm.js} +2 -2
- package/dist/{antifraudStateMachine-MfVOsgZf.esm.js → antifraudStateMachine-NuzlVVte.esm.js} +2 -2
- package/dist/api-Bx3gKW_y.esm.js +129 -0
- package/dist/{apiError-B-PkYxln.esm.js → apiError-GA6MbJpI.esm.js} +12 -1
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-G4OrneRc.esm.js → authenticationManager-B7v0Jy-x.esm.js} +5 -5
- package/dist/{authenticationStateMachine-CRaoYKLp.esm.js → authenticationStateMachine-DAh9ziFC.esm.js} +5 -5
- package/dist/camera.esm.js +1 -1
- package/dist/certificate-issuance.esm.js +2 -2
- package/dist/{certificateIssuanceStateMachine-BrbhvQ3k.esm.js → certificateIssuanceStateMachine-N__sTAgu.esm.js} +2 -2
- package/dist/consent.d.ts +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-DLOyIZzt.d.ts → consentManager-BhYFeKiG.d.ts} +9 -9
- package/dist/{consentManager-fOURtjzF.esm.js → consentManager-CWEAhAJ5.esm.js} +2 -2
- package/dist/{consentStateMachine-BCVxc6mI.esm.js → consentStateMachine-DWL-X0Jb.esm.js} +2 -2
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-DaJvZ8m1.esm.js → crossDocumentDataMatchManager-Bk4W2TDJ.esm.js} +3 -3
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-CKRo8Mch.esm.js → curpValidationManager-B6gYKygj.esm.js} +2 -2
- package/dist/{curpValidationStateMachine-DMdmcv5-.esm.js → curpValidationStateMachine-42RbYcam.esm.js} +2 -2
- package/dist/custom-fields.esm.js +3 -3
- package/dist/custom-watchlist.esm.js +2 -2
- package/dist/{customWatchlistStateMachine-DB2I9_OR.esm.js → customWatchlistStateMachine-BbDtH5kk.esm.js} +2 -2
- package/dist/{deepsightLoader-AdX0vjwb.esm.js → deepsightLoader-CHG26pOB.esm.js} +14 -4
- package/dist/document-capture.d.ts +1 -1
- package/dist/document-capture.esm.js +2 -2
- package/dist/document-upload.d.ts +4 -4
- package/dist/document-upload.esm.js +3 -3
- package/dist/{documentCaptureManager-pEqMY_Oo.d.ts → documentCaptureManager-BK_4RbHt.d.ts} +69 -69
- package/dist/{documentCaptureManager-iTx0jqU4.esm.js → documentCaptureManager-FvcNYpkS.esm.js} +2 -2
- package/dist/{documentCaptureStateMachine-CrdQsDn2.esm.js → documentCaptureStateMachine-BlzN0-mU.esm.js} +4 -4
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-BNIbGJmh.esm.js → dynamicFormsManager-CfJixpOW.esm.js} +2 -2
- package/dist/{dynamicFormsStateMachine-DKUOlqmi.esm.js → dynamicFormsStateMachine-DrPO1i45.esm.js} +3 -3
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-BUWJUews.esm.js → ekybManager-DVCqaSzz.esm.js} +2 -2
- package/dist/{ekybStateMachine-CYLZDKC7.esm.js → ekybStateMachine-C3y-Qx1a.esm.js} +4 -4
- package/dist/ekyc.esm.js +2 -2
- package/dist/{ekycManager-C6Wc4wRj.esm.js → ekycManager-dimNksoE.esm.js} +2 -2
- package/dist/{ekycStateMachine-fHXM6pc0.esm.js → ekycStateMachine-Yl3sQmhm.esm.js} +3 -3
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-hJ9YaAvD.esm.js → electronicSignatureManager-D0X7P-de.esm.js} +4 -4
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-B_Q6MfUq.esm.js → emailManager-BqJMritP.esm.js} +2 -2
- package/dist/{emailStateMachine-DHfDd8LI.esm.js → emailStateMachine-CLtrh2Ot.esm.js} +2 -2
- package/dist/{endpoints-BwKx4Gne.esm.js → endpoints-DOfmJylF.esm.js} +7 -1
- package/dist/{events-Dy8PyVO5.esm.js → events-CMFCCu1H.esm.js} +2 -9
- package/dist/events.esm.js +1 -1
- package/dist/extensibility.d.ts +5 -5
- package/dist/extensibility.esm.js +26 -32
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-Bkc1HLRL.esm.js → faceCaptureManagerFactory-D2pR3ZnX.esm.js} +3 -3
- package/dist/{faceCaptureSetup-BQEQriDi.esm.js → faceCaptureSetup-DbhDPMjb.esm.js} +5 -5
- package/dist/{faceMatchManager-Bh5wFMyh.esm.js → faceMatchManager-XxTEAj9C.esm.js} +2 -2
- package/dist/{faceMatchStateMachine-QIf8gak4.esm.js → faceMatchStateMachine-ubds4WlI.esm.js} +2 -2
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-B_3cIH9t.esm.js → fieldComparisonManager-BzaX4TvX.esm.js} +3 -3
- package/dist/fiscal-qr.esm.js +3 -3
- package/dist/flow.esm.js +4 -4
- package/dist/{flowCompletionService-6yWz7xwZ.esm.js → flowCompletionService-BdZR6HyE.esm.js} +3 -3
- package/dist/{flowServices-Cf63iD-o.esm.js → flowServices-CPti9am-.esm.js} +5 -5
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-gKopAolS.esm.js → geolocationManager-DW27-LTL.esm.js} +2 -2
- package/dist/{geolocationStateMachine-Cac3eKge.esm.js → geolocationStateMachine-Cz3Q6az0.esm.js} +3 -3
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationStateMachine-Be1ruaNj.esm.js → governmentValidationStateMachine-CtG3bIdM.esm.js} +2 -2
- package/dist/home.esm.js +1 -1
- package/dist/http.esm.js +1 -1
- package/dist/id-ocr.d.ts +1 -1
- package/dist/id-ocr.esm.js +2 -2
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.esm.js +5 -5
- package/dist/{idCaptureDefaults-DCrjeNl5.esm.js → idCaptureDefaults-BDS43fFL.esm.js} +2 -2
- package/dist/{idCaptureManager-Dg8pxseH.esm.js → idCaptureManager-CPzgzVu8.esm.js} +4 -4
- package/dist/{idCaptureStateMachine-B2e_wX0x.esm.js → idCaptureStateMachine-CAKztWBq.esm.js} +28 -17
- package/dist/{idOcrManager-dLuxey6y.d.ts → idOcrManager-DXc_xRN7.d.ts} +1 -1
- package/dist/{idOcrManager-8WPK22Kq.esm.js → idOcrManager-Drs6frVO.esm.js} +2 -2
- package/dist/{idOcrStateMachine-Cfq5gJ0f.esm.js → idOcrStateMachine-s08FLvEh.esm.js} +3 -3
- package/dist/{idVerificationManager-DBVs8TRS.esm.js → idVerificationManager-Df97Bf0n.esm.js} +2 -2
- package/dist/{idVerificationStateMachine-xtTSJDrB.esm.js → idVerificationStateMachine-tAF7pvC8.esm.js} +2 -2
- package/dist/identity-reuse.d.ts +1 -1
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/{identityReuseManager-B8jNZNHu.esm.js → identityReuseManager-0ZHGWr9T.esm.js} +2 -2
- package/dist/{identityReuseManager-D6pD4hcZ.d.ts → identityReuseManager-v2TH5g7e.d.ts} +1 -1
- package/dist/{identityReuseStateMachine-DdwSrghH.esm.js → identityReuseStateMachine-DG8kbKuy.esm.js} +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{invokeOnCaptureCallback-B-QfsCQY.esm.js → invokeOnCaptureCallback-Cgl54qED.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-Dcgmj1Cd.d.ts → mandatoryConsentManager-CzsVFG33.d.ts} +5 -5
- package/dist/{mandatoryConsentManager-BAKnA7U_.esm.js → mandatoryConsentManager-DaKK7S4q.esm.js} +2 -2
- package/dist/{mandatoryConsentStateMachine-3a1psaoK.esm.js → mandatoryConsentStateMachine-CjKpOQXU.esm.js} +2 -2
- package/dist/{onDeviceFaceResults-DbSP6iTw.esm.js → onDeviceFaceResults-CVhk1BWp.esm.js} +13 -6
- package/dist/{permissionGuards-5Cu6a8iN.esm.js → permissionGuards-UMiLlPfq.esm.js} +1 -1
- package/dist/{permissionServices-CkHL1BjH.esm.js → permissionServices-C4qKxOl4.esm.js} +1 -1
- package/dist/personhood.esm.js +9 -22
- package/dist/phone.esm.js +2 -2
- package/dist/{phoneManager-dizEvG20.esm.js → phoneManager-WImoAp4i.esm.js} +2 -2
- package/dist/{phoneStateMachine-DxmYoLg8.esm.js → phoneStateMachine-FJ-_x1G4.esm.js} +2 -2
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{recordingService-C8jFtEKZ.esm.js → recordingService-BGPq5vGr.esm.js} +3 -3
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-BCInKNqp.esm.js → redirectToMobileManager-CxEu6KnV.esm.js} +2 -2
- package/dist/{redirectToMobileStateMachine-TSHtrr5D.esm.js → redirectToMobileStateMachine-jI5XPtZJ.esm.js} +2 -2
- package/dist/{runChildModule-Crz1nHwJ.esm.js → runChildModule-fagPe5Ct.esm.js} +6 -1
- package/dist/selfie.esm.js +9 -9
- package/dist/{selfieErrorUtils-1aFaxF3Q.esm.js → selfieErrorUtils-DCRRRj38.esm.js} +3 -3
- package/dist/{selfieManager-KbDEkivf.esm.js → selfieManager-DTiBsQNn.esm.js} +5 -5
- package/dist/{selfieStateMachine-BiuQiED3.esm.js → selfieStateMachine-CxabK5_3.esm.js} +3 -3
- package/dist/session-Ccob4IUP.esm.js +161 -0
- package/dist/session.d.ts +8 -1
- package/dist/session.esm.js +4 -152
- package/dist/{sessionInitializer-DyJ4nLFJ.esm.js → sessionInitializer-DEd0CQ74.esm.js} +27 -32
- package/dist/{setup-MlGXfrG8.esm.js → setup-BR4G3NHV.esm.js} +78 -11
- package/dist/{setup-B1WTXTQV.d.ts → setup-Dj8n_YLP.d.ts} +22 -0
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureStateMachine-CCcFhvuv.esm.js → signatureStateMachine-Dx92l8pR.esm.js} +2 -2
- package/dist/{stats-CKtpeAhi.esm.js → stats-6sK3f5pc.esm.js} +2 -2
- package/dist/stats.esm.js +1 -1
- package/dist/trueSight-4L5GCqKy.esm.js +1 -0
- package/dist/trueSightService-DKC-gmQC.esm.js +1891 -0
- package/dist/trust-graph.esm.js +1 -1
- package/dist/video-selfie.esm.js +9 -9
- package/dist/wasm.d.ts +1 -1
- package/dist/wasm.esm.js +3 -3
- package/dist/{wasmDefaults-B4DUtYET.esm.js → wasmDefaults-DJiEvV7f.esm.js} +1 -1
- package/dist/wasmWebClient-DM8lkb0z.esm.js +407 -0
- package/dist/watchlist-for-business.esm.js +2 -2
- package/dist/watchlist.esm.js +2 -2
- package/dist/{watchlistForBusinessStateMachine-DZZNfYsA.esm.js → watchlistForBusinessStateMachine-Eo-WEYha.esm.js} +2 -2
- package/dist/{watchlistManager-CMFZ0aqP.esm.js → watchlistManager-DnVfNc1v.esm.js} +2 -2
- package/dist/{watchlistStateMachine-CmhlwIhk.esm.js → watchlistStateMachine-DZSOauwp.esm.js} +2 -2
- package/dist/workflow.d.ts +12 -4
- package/dist/workflow.esm.js +55 -40
- package/package.json +3 -3
- package/dist/api-BDTZNnca.esm.js +0 -71
- package/dist/clientLifecycle-BX83zwtT.esm.js +0 -528
- package/dist/session-CrAUqlgX.esm.js +0 -1
package/dist/workflow.esm.js
CHANGED
|
@@ -1,43 +1,45 @@
|
|
|
1
1
|
import { g as updateFeatureManagementUser } from "./feature-management-Dw96qEMs.esm.js";
|
|
2
|
-
import { t as api } from "./api-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
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-
|
|
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-
|
|
14
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
15
|
-
import { t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-
|
|
16
|
-
import { t as consentMachine } from "./consentStateMachine-
|
|
17
|
-
import { t as curpValidationMachine } from "./curpValidationStateMachine-
|
|
18
|
-
import { t as customWatchlistMachine } from "./customWatchlistStateMachine-
|
|
19
|
-
import { t as documentCaptureMachine } from "./documentCaptureStateMachine-
|
|
20
|
-
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-
|
|
21
|
-
import { t as ekybMachine } from "./ekybStateMachine-
|
|
22
|
-
import { t as ekycMachine } from "./ekycStateMachine-
|
|
23
|
-
import { t as emailMachine } from "./emailStateMachine-
|
|
24
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
25
|
-
import { t as idCaptureMachine } from "./idCaptureStateMachine-
|
|
26
|
-
import { t as phoneMachine } from "./phoneStateMachine-
|
|
27
|
-
import { t as watchlistMachine } from "./watchlistStateMachine-
|
|
28
|
-
import { n as identityReuseMachine } from "./identityReuseStateMachine-
|
|
29
|
-
import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-
|
|
30
|
-
import { t as idOcrStateMachine } from "./idOcrStateMachine-
|
|
31
|
-
import { n as redirectToMobileMachine } from "./redirectToMobileStateMachine-
|
|
32
|
-
import { t as geolocationMachine } from "./geolocationStateMachine-
|
|
33
|
-
import { t as idVerificationMachine } from "./idVerificationStateMachine-
|
|
34
|
-
import { t as faceMatchMachine } from "./faceMatchStateMachine-
|
|
35
|
-
import { n as getFinishStatus, r as getTotalScoreStatus } from "./flowCompletionService-
|
|
36
|
-
import { n as isAdvanceableError, r as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-
|
|
37
|
-
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-
|
|
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-
|
|
40
|
-
import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-
|
|
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:
|
|
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
|
-
}), {
|
|
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-20260729-
|
|
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/
|
|
280
|
-
"@incodetech/
|
|
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",
|
package/dist/api-BDTZNnca.esm.js
DELETED
|
@@ -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 };
|