@incodetech/core 0.0.0-dev-20260604-16565430 → 0.0.0-dev-20260604-662e2c10

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 (46) hide show
  1. package/dist/ae-signature.d.ts +1 -1
  2. package/dist/authentication.esm.js +5 -5
  3. package/dist/{authenticationManager-BnUv3sYx.esm.js → authenticationManager-DVM4c1N2.esm.js} +1 -1
  4. package/dist/{authenticationStateMachine-ChPmwAAV.esm.js → authenticationStateMachine-CWkBPcZL.esm.js} +5 -5
  5. package/dist/consent.d.ts +1 -1
  6. package/dist/{consentManager-B78wrASK.d.ts → consentManager-D2xWZq4c.d.ts} +47 -47
  7. package/dist/cpf-ocr.d.ts +1 -1
  8. package/dist/{cpfOcrManager-hkCjiBXb.d.ts → cpfOcrManager-Bre5fWGF.d.ts} +20 -20
  9. package/dist/document-capture.d.ts +71 -71
  10. package/dist/document-upload.d.ts +46 -46
  11. package/dist/ekyb.esm.js +3 -3
  12. package/dist/{ekybStateMachine-DcJlgUlK.esm.js → ekybStateMachine-CYCL-edj.esm.js} +1 -1
  13. package/dist/electronic-signature.d.ts +1 -1
  14. package/dist/extensibility.d.ts +4 -4
  15. package/dist/extensibility.esm.js +10 -10
  16. package/dist/{faceCaptureSetup-DIT_z0qp.esm.js → faceCaptureSetup-BE6JdX3x.esm.js} +2 -2
  17. package/dist/flow.d.ts +2 -2
  18. package/dist/flow.esm.js +6 -6
  19. package/dist/{flowServices-CGLG6Aps.esm.js → flowServices-BZA0VeZm.esm.js} +1 -1
  20. package/dist/home.d.ts +10 -10
  21. package/dist/id-ocr.d.ts +52 -52
  22. package/dist/id-verification.d.ts +25 -25
  23. package/dist/id.esm.js +5 -5
  24. package/dist/{idCaptureManager-DMGs1KG_.esm.js → idCaptureManager-CYRsf_AI.esm.js} +1 -1
  25. package/dist/{idCaptureStateMachine-Ds_Pi7au.esm.js → idCaptureStateMachine-CuCS2Bd3.esm.js} +2 -2
  26. package/dist/identity-reuse.d.ts +1 -1
  27. package/dist/{identityReuseManager-zcnh4sUs.d.ts → identityReuseManager-kaWtmQ8c.d.ts} +31 -31
  28. package/dist/{index-DnSENIXl.d.ts → index-b54_wCjZ.d.ts} +126 -126
  29. package/dist/index.esm.js +2 -2
  30. package/dist/mandatory-consent.d.ts +1 -1
  31. package/dist/{mandatoryConsentManager-Bmpb5JW-.d.ts → mandatoryConsentManager-C-6RpPx5.d.ts} +47 -47
  32. package/dist/qe-signature.d.ts +1 -1
  33. package/dist/{recordingService-DDLGl-a3.esm.js → recordingService-yq4IvyVq.esm.js} +1 -1
  34. package/dist/{runChildModule-B35VgFTo.esm.js → runChildModule-BPowizCN.esm.js} +33 -1
  35. package/dist/selfie.esm.js +5 -5
  36. package/dist/{selfieManager-YMuTjX-Y.esm.js → selfieManager-DgRA1tKd.esm.js} +1 -1
  37. package/dist/{selfieStateMachine-D3HsPohW.esm.js → selfieStateMachine-ijqe-SXy.esm.js} +3 -3
  38. package/dist/session.esm.js +1 -1
  39. package/dist/{sessionInitializer-EyllOMHH.esm.js → sessionInitializer-gxmz0biG.esm.js} +1 -1
  40. package/dist/{setup-CypESC5k.esm.js → setup-DVWH0x4K.esm.js} +1 -1
  41. package/dist/trust-graph.d.ts +2 -2
  42. package/dist/{types-sA-iP7aF.esm.js → types-CRp-Maxh.esm.js} +1 -12
  43. package/dist/wasm.esm.js +2 -2
  44. package/dist/workflow.d.ts +88 -88
  45. package/dist/workflow.esm.js +11 -11
  46. package/package.json +1 -1
package/dist/index.esm.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./WasmUtilProvider-CeyOvhU2.esm.js";
2
- import { a as setup, n as isConfigured, r as reset } from "./setup-CypESC5k.esm.js";
2
+ import { a as setup, n as isConfigured, r as reset } from "./setup-DVWH0x4K.esm.js";
3
3
  import "./BrowserTimerProvider-BESs49g_.esm.js";
4
4
  import "./api-YxPMtty2.esm.js";
5
5
  import "./events-Bsw1l0pH.esm.js";
@@ -7,7 +7,7 @@ import "./endpoints-BPHddOTi.esm.js";
7
7
  import "./stats-AwLva7-C.esm.js";
8
8
  import "./IpifyProvider-BQKB2PR-.esm.js";
9
9
  import "./browserSimulation-CHpyEI-W.esm.js";
10
- import "./sessionInitializer-EyllOMHH.esm.js";
10
+ import "./sessionInitializer-gxmz0biG.esm.js";
11
11
  import "./platform-D871crJL.esm.js";
12
12
  import "./getBrowser-CMJJeBF8.esm.js";
13
13
 
@@ -4,5 +4,5 @@ import "./camera-BCAbwFy2.js";
4
4
  import "./types-DGzov-rE.js";
5
5
  import "./types-CURk4uNi.js";
6
6
  import "./types-BPTRiryB.js";
7
- import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, o as mandatoryConsentMachine, r as createMandatoryConsentManager, s as MandatoryConsentConfig, t as MandatoryConsentManager } from "./mandatoryConsentManager-Bmpb5JW-.js";
7
+ import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, o as mandatoryConsentMachine, r as createMandatoryConsentManager, s as MandatoryConsentConfig, t as MandatoryConsentManager } from "./mandatoryConsentManager-C-6RpPx5.js";
8
8
  export { type MandatoryConsentActor, type MandatoryConsentConfig, type MandatoryConsentManager, type MandatoryConsentState, createMandatoryConsentManager, createMandatoryConsentManagerFromActor, mandatoryConsentMachine };
@@ -1,7 +1,7 @@
1
1
  import { t as Manager } from "./Manager-C6PZlp2a.js";
2
2
  import { t as ActorRefFrom } from "./Actor-CcQ_EteO.js";
3
3
  import { a as RegulationTypes } from "./types-BPTRiryB.js";
4
- import * as xstate876 from "xstate";
4
+ import * as xstate829 from "xstate";
5
5
 
6
6
  //#region src/modules/mandatory-consent/types.d.ts
7
7
  type MandatoryConsentConfig = {
@@ -29,7 +29,7 @@ type MandatoryConsentContext = {
29
29
  type MandatoryConsentInput = {
30
30
  config: MandatoryConsentConfig;
31
31
  };
32
- declare const mandatoryConsentMachine: xstate876.StateMachine<MandatoryConsentContext, {
32
+ declare const mandatoryConsentMachine: xstate829.StateMachine<MandatoryConsentContext, {
33
33
  type: "LOAD";
34
34
  } | {
35
35
  type: "TOGGLE";
@@ -42,53 +42,53 @@ declare const mandatoryConsentMachine: xstate876.StateMachine<MandatoryConsentCo
42
42
  } | {
43
43
  type: "RESET";
44
44
  }, {
45
- [x: string]: xstate876.ActorRefFromLogic<xstate876.PromiseActorLogic<FetchMandatoryConsentResponse, {
45
+ [x: string]: xstate829.ActorRefFromLogic<xstate829.PromiseActorLogic<FetchMandatoryConsentResponse, {
46
46
  config: MandatoryConsentConfig;
47
- }, xstate876.EventObject>> | xstate876.ActorRefFromLogic<xstate876.PromiseActorLogic<void, {
47
+ }, xstate829.EventObject>> | xstate829.ActorRefFromLogic<xstate829.PromiseActorLogic<void, {
48
48
  consentId: string;
49
49
  isSigned: boolean;
50
- }, xstate876.EventObject>> | undefined;
51
- }, xstate876.Values<{
50
+ }, xstate829.EventObject>> | undefined;
51
+ }, xstate829.Values<{
52
52
  fetchConsent: {
53
53
  src: "fetchConsent";
54
- logic: xstate876.PromiseActorLogic<FetchMandatoryConsentResponse, {
54
+ logic: xstate829.PromiseActorLogic<FetchMandatoryConsentResponse, {
55
55
  config: MandatoryConsentConfig;
56
- }, xstate876.EventObject>;
56
+ }, xstate829.EventObject>;
57
57
  id: string | undefined;
58
58
  };
59
59
  submitConsent: {
60
60
  src: "submitConsent";
61
- logic: xstate876.PromiseActorLogic<void, {
61
+ logic: xstate829.PromiseActorLogic<void, {
62
62
  consentId: string;
63
63
  isSigned: boolean;
64
- }, xstate876.EventObject>;
64
+ }, xstate829.EventObject>;
65
65
  id: string | undefined;
66
66
  };
67
- }>, xstate876.Values<{
67
+ }>, xstate829.Values<{
68
68
  setConsent: {
69
69
  type: "setConsent";
70
- params: xstate876.NonReducibleUnknown;
70
+ params: xstate829.NonReducibleUnknown;
71
71
  };
72
72
  setError: {
73
73
  type: "setError";
74
- params: xstate876.NonReducibleUnknown;
74
+ params: xstate829.NonReducibleUnknown;
75
75
  };
76
76
  clearError: {
77
77
  type: "clearError";
78
- params: xstate876.NonReducibleUnknown;
78
+ params: xstate829.NonReducibleUnknown;
79
79
  };
80
80
  toggleSigned: {
81
81
  type: "toggleSigned";
82
- params: xstate876.NonReducibleUnknown;
82
+ params: xstate829.NonReducibleUnknown;
83
83
  };
84
84
  resetContext: {
85
85
  type: "resetContext";
86
- params: xstate876.NonReducibleUnknown;
86
+ params: xstate829.NonReducibleUnknown;
87
87
  };
88
88
  }>, {
89
89
  type: "canSubmit";
90
90
  params: unknown;
91
- }, never, "error" | "idle" | "closed" | "finished" | "loading" | "submitting" | "display", string, MandatoryConsentInput, xstate876.NonReducibleUnknown, xstate876.EventObject, xstate876.MetaObject, {
91
+ }, never, "error" | "idle" | "closed" | "finished" | "loading" | "submitting" | "display", string, MandatoryConsentInput, xstate829.NonReducibleUnknown, xstate829.EventObject, xstate829.MetaObject, {
92
92
  readonly id: "mandatoryConsent";
93
93
  readonly initial: "idle";
94
94
  readonly context: ({
@@ -97,70 +97,70 @@ declare const mandatoryConsentMachine: xstate876.StateMachine<MandatoryConsentCo
97
97
  spawn: {
98
98
  <TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
99
99
  src: "fetchConsent";
100
- logic: xstate876.PromiseActorLogic<FetchMandatoryConsentResponse, {
100
+ logic: xstate829.PromiseActorLogic<FetchMandatoryConsentResponse, {
101
101
  config: MandatoryConsentConfig;
102
- }, xstate876.EventObject>;
102
+ }, xstate829.EventObject>;
103
103
  id: string | undefined;
104
104
  } extends infer T ? T extends {
105
105
  src: "fetchConsent";
106
- logic: xstate876.PromiseActorLogic<FetchMandatoryConsentResponse, {
106
+ logic: xstate829.PromiseActorLogic<FetchMandatoryConsentResponse, {
107
107
  config: MandatoryConsentConfig;
108
- }, xstate876.EventObject>;
108
+ }, xstate829.EventObject>;
109
109
  id: string | undefined;
110
110
  } ? T extends {
111
111
  src: TSrc;
112
- } ? xstate876.ConditionalRequired<[options?: ({
112
+ } ? xstate829.ConditionalRequired<[options?: ({
113
113
  id?: T["id"] | undefined;
114
114
  systemId?: string;
115
- input?: xstate876.InputFrom<T["logic"]> | undefined;
115
+ input?: xstate829.InputFrom<T["logic"]> | undefined;
116
116
  syncSnapshot?: boolean;
117
- } & { [K in xstate876.RequiredActorOptions<T>]: unknown }) | undefined], xstate876.IsNotNever<xstate876.RequiredActorOptions<T>>> : never : never : never) | ({
117
+ } & { [K in xstate829.RequiredActorOptions<T>]: unknown }) | undefined], xstate829.IsNotNever<xstate829.RequiredActorOptions<T>>> : never : never : never) | ({
118
118
  src: "submitConsent";
119
- logic: xstate876.PromiseActorLogic<void, {
119
+ logic: xstate829.PromiseActorLogic<void, {
120
120
  consentId: string;
121
121
  isSigned: boolean;
122
- }, xstate876.EventObject>;
122
+ }, xstate829.EventObject>;
123
123
  id: string | undefined;
124
124
  } extends infer T_1 ? T_1 extends {
125
125
  src: "submitConsent";
126
- logic: xstate876.PromiseActorLogic<void, {
126
+ logic: xstate829.PromiseActorLogic<void, {
127
127
  consentId: string;
128
128
  isSigned: boolean;
129
- }, xstate876.EventObject>;
129
+ }, xstate829.EventObject>;
130
130
  id: string | undefined;
131
131
  } ? T_1 extends {
132
132
  src: TSrc;
133
- } ? xstate876.ConditionalRequired<[options?: ({
133
+ } ? xstate829.ConditionalRequired<[options?: ({
134
134
  id?: T_1["id"] | undefined;
135
135
  systemId?: string;
136
- input?: xstate876.InputFrom<T_1["logic"]> | undefined;
136
+ input?: xstate829.InputFrom<T_1["logic"]> | undefined;
137
137
  syncSnapshot?: boolean;
138
- } & { [K_1 in xstate876.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate876.IsNotNever<xstate876.RequiredActorOptions<T_1>>> : never : never : never)): xstate876.ActorRefFromLogic<xstate876.GetConcreteByKey<xstate876.Values<{
138
+ } & { [K_1 in xstate829.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate829.IsNotNever<xstate829.RequiredActorOptions<T_1>>> : never : never : never)): xstate829.ActorRefFromLogic<xstate829.GetConcreteByKey<xstate829.Values<{
139
139
  fetchConsent: {
140
140
  src: "fetchConsent";
141
- logic: xstate876.PromiseActorLogic<FetchMandatoryConsentResponse, {
141
+ logic: xstate829.PromiseActorLogic<FetchMandatoryConsentResponse, {
142
142
  config: MandatoryConsentConfig;
143
- }, xstate876.EventObject>;
143
+ }, xstate829.EventObject>;
144
144
  id: string | undefined;
145
145
  };
146
146
  submitConsent: {
147
147
  src: "submitConsent";
148
- logic: xstate876.PromiseActorLogic<void, {
148
+ logic: xstate829.PromiseActorLogic<void, {
149
149
  consentId: string;
150
150
  isSigned: boolean;
151
- }, xstate876.EventObject>;
151
+ }, xstate829.EventObject>;
152
152
  id: string | undefined;
153
153
  };
154
154
  }>, "src", TSrc>["logic"]>;
155
- <TLogic extends xstate876.AnyActorLogic>(src: TLogic, ...[options]: xstate876.ConditionalRequired<[options?: ({
155
+ <TLogic extends xstate829.AnyActorLogic>(src: TLogic, ...[options]: xstate829.ConditionalRequired<[options?: ({
156
156
  id?: never;
157
157
  systemId?: string;
158
- input?: xstate876.InputFrom<TLogic> | undefined;
158
+ input?: xstate829.InputFrom<TLogic> | undefined;
159
159
  syncSnapshot?: boolean;
160
- } & { [K in xstate876.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate876.IsNotNever<xstate876.RequiredLogicInput<TLogic>>>): xstate876.ActorRefFromLogic<TLogic>;
160
+ } & { [K in xstate829.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate829.IsNotNever<xstate829.RequiredLogicInput<TLogic>>>): xstate829.ActorRefFromLogic<TLogic>;
161
161
  };
162
162
  input: MandatoryConsentInput;
163
- self: xstate876.ActorRef<xstate876.MachineSnapshot<MandatoryConsentContext, {
163
+ self: xstate829.ActorRef<xstate829.MachineSnapshot<MandatoryConsentContext, {
164
164
  type: "LOAD";
165
165
  } | {
166
166
  type: "TOGGLE";
@@ -172,7 +172,7 @@ declare const mandatoryConsentMachine: xstate876.StateMachine<MandatoryConsentCo
172
172
  type: "RETRY";
173
173
  } | {
174
174
  type: "RESET";
175
- }, Record<string, xstate876.AnyActorRef | undefined>, xstate876.StateValue, string, unknown, any, any>, {
175
+ }, Record<string, xstate829.AnyActorRef | undefined>, xstate829.StateValue, string, unknown, any, any>, {
176
176
  type: "LOAD";
177
177
  } | {
178
178
  type: "TOGGLE";
@@ -184,7 +184,7 @@ declare const mandatoryConsentMachine: xstate876.StateMachine<MandatoryConsentCo
184
184
  type: "RETRY";
185
185
  } | {
186
186
  type: "RESET";
187
- }, xstate876.AnyEventObject>;
187
+ }, xstate829.AnyEventObject>;
188
188
  }) => {
189
189
  config: MandatoryConsentConfig;
190
190
  consent: undefined;
@@ -221,7 +221,7 @@ declare const mandatoryConsentMachine: xstate876.StateMachine<MandatoryConsentCo
221
221
  } | {
222
222
  type: "RESET";
223
223
  };
224
- self: xstate876.ActorRef<xstate876.MachineSnapshot<MandatoryConsentContext, {
224
+ self: xstate829.ActorRef<xstate829.MachineSnapshot<MandatoryConsentContext, {
225
225
  type: "LOAD";
226
226
  } | {
227
227
  type: "TOGGLE";
@@ -233,7 +233,7 @@ declare const mandatoryConsentMachine: xstate876.StateMachine<MandatoryConsentCo
233
233
  type: "RETRY";
234
234
  } | {
235
235
  type: "RESET";
236
- }, Record<string, xstate876.AnyActorRef>, xstate876.StateValue, string, unknown, any, any>, {
236
+ }, Record<string, xstate829.AnyActorRef>, xstate829.StateValue, string, unknown, any, any>, {
237
237
  type: "LOAD";
238
238
  } | {
239
239
  type: "TOGGLE";
@@ -245,7 +245,7 @@ declare const mandatoryConsentMachine: xstate876.StateMachine<MandatoryConsentCo
245
245
  type: "RETRY";
246
246
  } | {
247
247
  type: "RESET";
248
- }, xstate876.AnyEventObject>;
248
+ }, xstate829.AnyEventObject>;
249
249
  }) => {
250
250
  config: MandatoryConsentConfig;
251
251
  };
@@ -298,7 +298,7 @@ declare const mandatoryConsentMachine: xstate876.StateMachine<MandatoryConsentCo
298
298
  } | {
299
299
  type: "RESET";
300
300
  };
301
- self: xstate876.ActorRef<xstate876.MachineSnapshot<MandatoryConsentContext, {
301
+ self: xstate829.ActorRef<xstate829.MachineSnapshot<MandatoryConsentContext, {
302
302
  type: "LOAD";
303
303
  } | {
304
304
  type: "TOGGLE";
@@ -310,7 +310,7 @@ declare const mandatoryConsentMachine: xstate876.StateMachine<MandatoryConsentCo
310
310
  type: "RETRY";
311
311
  } | {
312
312
  type: "RESET";
313
- }, Record<string, xstate876.AnyActorRef>, xstate876.StateValue, string, unknown, any, any>, {
313
+ }, Record<string, xstate829.AnyActorRef>, xstate829.StateValue, string, unknown, any, any>, {
314
314
  type: "LOAD";
315
315
  } | {
316
316
  type: "TOGGLE";
@@ -322,7 +322,7 @@ declare const mandatoryConsentMachine: xstate876.StateMachine<MandatoryConsentCo
322
322
  type: "RETRY";
323
323
  } | {
324
324
  type: "RESET";
325
- }, xstate876.AnyEventObject>;
325
+ }, xstate829.AnyEventObject>;
326
326
  }) => {
327
327
  consentId: string;
328
328
  isSigned: boolean;
@@ -1,6 +1,6 @@
1
1
  import { t as Manager } from "./Manager-C6PZlp2a.js";
2
2
  import "./Actor-CcQ_EteO.js";
3
- import { c as ConsentKey, f as QE_CONSENT_KEYS, g as getDefaultConsentChecks, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, s as ConsentChecks, u as ElectronicSignatureDocument } from "./index-DnSENIXl.js";
3
+ import { c as ConsentKey, f as QE_CONSENT_KEYS, g as getDefaultConsentChecks, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, s as ConsentChecks, u as ElectronicSignatureDocument } from "./index-b54_wCjZ.js";
4
4
 
5
5
  //#region src/modules/qe-signature/index.d.ts
6
6
 
@@ -9,7 +9,7 @@ import { t as sleep } from "./ITimerCapability-gIlcIrAX.esm.js";
9
9
  import { n as IncodeCanvas } from "./deepsightService-Dh9EiWze.esm.js";
10
10
  import { n as getDesktopCameraStream, t as getBackCameraStream } from "./backCameraStream-sqXIvxpl.esm.js";
11
11
  import { t as getDeviceClass } from "./getDeviceClass-cJ-TvND7.esm.js";
12
- import { n as FACE_ERROR_CODES } from "./types-sA-iP7aF.esm.js";
12
+ import { t as FACE_ERROR_CODES } from "./types-CRp-Maxh.esm.js";
13
13
 
14
14
  //#region ../infra/src/scheduling/yieldUntilNextPaint.ts
15
15
  /**
@@ -1,5 +1,6 @@
1
1
  import { b as createEventBus, x as getTimestamp } from "./events-Bsw1l0pH.esm.js";
2
2
  import { i as fromCallback, s as createActor } from "./xstate.esm-CWoFJOio.esm.js";
3
+ import { t as FACE_ERROR_CODES } from "./types-CRp-Maxh.esm.js";
3
4
 
4
5
  //#region src/internal/flow-events/flowEvents.ts
5
6
  function createFlowEventBus() {
@@ -191,6 +192,37 @@ function attachFlowEventEmitter(manager, options = {}) {
191
192
  return manager;
192
193
  }
193
194
 
195
+ //#endregion
196
+ //#region src/internal/orchestration/advanceableErrors.ts
197
+ /**
198
+ * Module terminal-error codes that an orchestrator (workflow / flow) should
199
+ * treat as "advance to the next step" rather than "fail the flow". The
200
+ * advance-vs-fail decision lives here, at the orchestration layer, so every
201
+ * consumer (UI workflow, headless) behaves identically.
202
+ *
203
+ * The codes are currently all `FaceErrorCode`s because the face/auth module is
204
+ * the only producer of advanceable terminal errors today; at this layer they
205
+ * are matched against the opaque `moduleErrorCode` string a module reports.
206
+ *
207
+ * "Advanceable" is independent of "retryable" — it only decides what the flow
208
+ * does *after* a module reports a terminal error. Whether the module retried
209
+ * first is the module's own concern (e.g. the auth module's
210
+ * `NON_RETRYABLE_AUTH_ERROR_CODES`):
211
+ * - `NONEXISTENT_CUSTOMER` / `HINT_NOT_PROVIDED`: retrying the capture is
212
+ * pointless, so the auth module fails on the first attempt, then the flow
213
+ * advances (e.g. route the customer to enrollment / ID capture).
214
+ * - `USER_IS_NOT_RECOGNIZED`: a better-lit / better-aligned retry can still flip
215
+ * a borderline match, so the auth module retries up to the attempt limit; once
216
+ * attempts are exhausted the flow advances.
217
+ */
218
+ const ADVANCEABLE_ERROR_CODES = [
219
+ FACE_ERROR_CODES.NONEXISTENT_CUSTOMER,
220
+ FACE_ERROR_CODES.HINT_NOT_PROVIDED,
221
+ FACE_ERROR_CODES.USER_IS_NOT_RECOGNIZED
222
+ ];
223
+ /** True when the given code is a module terminal error the flow should advance past rather than fail on. */
224
+ const isAdvanceableError = (moduleErrorCode) => moduleErrorCode !== void 0 && ADVANCEABLE_ERROR_CODES.includes(moduleErrorCode);
225
+
194
226
  //#endregion
195
227
  //#region src/internal/orchestration/runChildModule.ts
196
228
  const runChildModule = fromCallback(({ sendBack, input }) => {
@@ -216,4 +248,4 @@ const runChildModule = fromCallback(({ sendBack, input }) => {
216
248
  });
217
249
 
218
250
  //#endregion
219
- export { attachFlowEventEmitter as n, runChildModule as t };
251
+ export { isAdvanceableError as n, attachFlowEventEmitter as r, runChildModule as t };
@@ -12,16 +12,16 @@ import "./MotionSensorProvider-D1JWpMLJ.esm.js";
12
12
  import "./permissionServices-BjXAT5OT.esm.js";
13
13
  import "./camera-P7dse339.esm.js";
14
14
  import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-DKE4-MLG.esm.js";
15
- import { v as processFace } from "./recordingService-DDLGl-a3.esm.js";
15
+ import { v as processFace } from "./recordingService-yq4IvyVq.esm.js";
16
16
  import "./ITimerCapability-gIlcIrAX.esm.js";
17
17
  import "./deepsightService-Dh9EiWze.esm.js";
18
18
  import "./backCameraStream-sqXIvxpl.esm.js";
19
19
  import "./getDeviceClass-C5yT6K2e.esm.js";
20
20
  import "./getDeviceClass-cJ-TvND7.esm.js";
21
- import "./types-sA-iP7aF.esm.js";
22
- import { t as faceCaptureMachine } from "./faceCaptureSetup-DIT_z0qp.esm.js";
23
- import { t as selfieMachine } from "./selfieStateMachine-D3HsPohW.esm.js";
24
- import { t as createSelfieManager } from "./selfieManager-YMuTjX-Y.esm.js";
21
+ import "./types-CRp-Maxh.esm.js";
22
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-BE6JdX3x.esm.js";
23
+ import { t as selfieMachine } from "./selfieStateMachine-ijqe-SXy.esm.js";
24
+ import { t as createSelfieManager } from "./selfieManager-DgRA1tKd.esm.js";
25
25
  import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-CIfXHrFp.esm.js";
26
26
 
27
27
  //#region src/modules/selfie/selfieCaptureOnlyStateMachine.ts
@@ -3,7 +3,7 @@ import { n as eventModuleNames } from "./events-Bsw1l0pH.esm.js";
3
3
  import { s as createActor } from "./xstate.esm-CWoFJOio.esm.js";
4
4
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-BrJver0U.esm.js";
5
5
  import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-DKE4-MLG.esm.js";
6
- import { t as selfieMachine } from "./selfieStateMachine-D3HsPohW.esm.js";
6
+ import { t as selfieMachine } from "./selfieStateMachine-ijqe-SXy.esm.js";
7
7
 
8
8
  //#region src/modules/selfie/selfieActor.ts
9
9
  function createSelfieActor(options) {
@@ -1,7 +1,7 @@
1
1
  import { a as fromPromise, r as assign } from "./xstate.esm-CWoFJOio.esm.js";
2
- import { d as postOnDeviceFaceResults, f as prepareOnDeviceFaceUpload, l as defaultPrepareFaceUpload, u as isOnDeviceMode, v as processFace, y as uploadSelfie } from "./recordingService-DDLGl-a3.esm.js";
3
- import { n as FACE_ERROR_CODES } from "./types-sA-iP7aF.esm.js";
4
- import { t as faceCaptureMachine } from "./faceCaptureSetup-DIT_z0qp.esm.js";
2
+ import { d as postOnDeviceFaceResults, f as prepareOnDeviceFaceUpload, l as defaultPrepareFaceUpload, u as isOnDeviceMode, v as processFace, y as uploadSelfie } from "./recordingService-yq4IvyVq.esm.js";
3
+ import { t as FACE_ERROR_CODES } from "./types-CRp-Maxh.esm.js";
4
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-BE6JdX3x.esm.js";
5
5
 
6
6
  //#region src/modules/selfie/selfieErrorUtils.ts
7
7
  const FACE_ERROR_CODE_VALUES = Object.values(FACE_ERROR_CODES);
@@ -4,7 +4,7 @@ import "./endpoints-BPHddOTi.esm.js";
4
4
  import "./stats-AwLva7-C.esm.js";
5
5
  import "./IpifyProvider-BQKB2PR-.esm.js";
6
6
  import "./browserSimulation-CHpyEI-W.esm.js";
7
- import { r as initializeSession } from "./sessionInitializer-EyllOMHH.esm.js";
7
+ import { r as initializeSession } from "./sessionInitializer-gxmz0biG.esm.js";
8
8
  import "./platform-D871crJL.esm.js";
9
9
  import "./getBrowser-CMJJeBF8.esm.js";
10
10
  import { t as IncodeApiError } from "./apiError-76Dulrw9.esm.js";
@@ -185,7 +185,7 @@ function resetFeatureConfigCache() {
185
185
 
186
186
  //#endregion
187
187
  //#region src/internal/version/sdkVersion.ts
188
- const SDK_VERSION = "0.0.0-dev-20260604-16565430";
188
+ const SDK_VERSION = "0.0.0-dev-20260604-662e2c10";
189
189
 
190
190
  //#endregion
191
191
  //#region src/internal/fingerprint/fingerprintService.ts
@@ -4,7 +4,7 @@ import { a as resetApi, i as isApiConfigured, n as getApi, o as setClient, r as
4
4
  import { _ as resetAnalyticsBatcher, g as getAnalyticsBatcher, m as createAnalyticsBatchingService, v as setAnalyticsBatcher } from "./events-Bsw1l0pH.esm.js";
5
5
  import { t as endpoints } from "./endpoints-BPHddOTi.esm.js";
6
6
  import { r as resetDeviceStatsQueue, t as addDeviceStats } from "./stats-AwLva7-C.esm.js";
7
- import { a as setClientIpLookupEnabled, i as resetSessionInit, r as initializeSession } from "./sessionInitializer-EyllOMHH.esm.js";
7
+ import { a as setClientIpLookupEnabled, i as resetSessionInit, r as initializeSession } from "./sessionInitializer-gxmz0biG.esm.js";
8
8
 
9
9
  //#region ../infra/src/wasm/wasmDefaults.ts
10
10
  const WASM_CDN_BASE_URL = "https://cdn.incodesmile.com/ml-wasm-kit-release";
@@ -1,5 +1,5 @@
1
1
  import { t as Manager } from "./Manager-C6PZlp2a.js";
2
- import * as xstate700 from "xstate";
2
+ import * as xstate643 from "xstate";
3
3
 
4
4
  //#region src/modules/trust-graph/trustGraphManager.d.ts
5
5
  type TrustGraphIdleState = {
@@ -59,7 +59,7 @@ type TrustGraphContext = Record<string, never>;
59
59
  * Mirror the `noOpFlowModuleMachine` / `identitySearchMachine` headless pattern:
60
60
  * start directly in the `final` state.
61
61
  */
62
- declare const trustGraphMachine: xstate700.StateMachine<TrustGraphContext, xstate700.AnyEventObject, {}, never, never, never, never, "finished", string, xstate700.NonReducibleUnknown, xstate700.NonReducibleUnknown, xstate700.EventObject, xstate700.MetaObject, {
62
+ declare const trustGraphMachine: xstate643.StateMachine<TrustGraphContext, xstate643.AnyEventObject, {}, never, never, never, never, "finished", string, xstate643.NonReducibleUnknown, xstate643.NonReducibleUnknown, xstate643.EventObject, xstate643.MetaObject, {
63
63
  readonly id: "trust-graph";
64
64
  readonly initial: "finished";
65
65
  readonly context: {};
@@ -29,17 +29,6 @@ const FACE_ERROR_CODES = {
29
29
  HINT_NOT_PROVIDED: "HINT_NOT_PROVIDED",
30
30
  SELFIE_IMAGE_LOW_QUALITY: "SELFIE_IMAGE_LOW_QUALITY"
31
31
  };
32
- /**
33
- * Terminal face-error codes that an orchestrator (e.g. the workflow) should
34
- * treat as "advance" rather than "fail". These are not capture problems the
35
- * user can retry away — they mean the current step is done and the flow should
36
- * move on (e.g. the customer doesn't exist yet, so route to enrollment / ID
37
- * capture). The advance-vs-terminate decision lives in core so every consumer
38
- * (UI workflow, headless) behaves identically.
39
- */
40
- const ADVANCEABLE_TERMINAL_ERROR_CODES = [FACE_ERROR_CODES.NONEXISTENT_CUSTOMER, FACE_ERROR_CODES.HINT_NOT_PROVIDED];
41
- /** True when the given code is a terminal face error the workflow should advance past. */
42
- const isAdvanceableTerminalError = (moduleErrorCode) => moduleErrorCode !== void 0 && ADVANCEABLE_TERMINAL_ERROR_CODES.includes(moduleErrorCode);
43
32
 
44
33
  //#endregion
45
- export { FACE_ERROR_CODES as n, isAdvanceableTerminalError as r, ADVANCEABLE_TERMINAL_ERROR_CODES as t };
34
+ export { FACE_ERROR_CODES as t };
package/dist/wasm.esm.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { r as warmupWasm } from "./WasmUtilProvider-CeyOvhU2.esm.js";
2
- import { c as buildDefaultWasmConfig, i as setWasmConfig, l as buildWasmConfigFromBasePath, o as upgradeToWasmHttpClient, s as DEFAULT_WASM_VERSION, t as initializeWasmUtil, u as resolveWasmConfig } from "./setup-CypESC5k.esm.js";
2
+ import { c as buildDefaultWasmConfig, i as setWasmConfig, l as buildWasmConfigFromBasePath, o as upgradeToWasmHttpClient, s as DEFAULT_WASM_VERSION, t as initializeWasmUtil, u as resolveWasmConfig } from "./setup-DVWH0x4K.esm.js";
3
3
  import "./BrowserTimerProvider-BESs49g_.esm.js";
4
4
  import "./api-YxPMtty2.esm.js";
5
5
  import "./events-Bsw1l0pH.esm.js";
@@ -7,7 +7,7 @@ import "./endpoints-BPHddOTi.esm.js";
7
7
  import "./stats-AwLva7-C.esm.js";
8
8
  import "./IpifyProvider-BQKB2PR-.esm.js";
9
9
  import "./browserSimulation-CHpyEI-W.esm.js";
10
- import "./sessionInitializer-EyllOMHH.esm.js";
10
+ import "./sessionInitializer-gxmz0biG.esm.js";
11
11
  import "./platform-D871crJL.esm.js";
12
12
  import "./getBrowser-CMJJeBF8.esm.js";
13
13