@incodetech/core 0.0.0-dev-20260512-e44bacb → 0.0.0-dev-20260512-cffbe28

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 (45) hide show
  1. package/dist/{BaseWasmProvider-C2cw9STp.esm.js → BaseWasmProvider-IiHnsP8E.esm.js} +17 -17
  2. package/dist/{WasmUtilProvider-B8VtGgvF.esm.js → WasmUtilProvider-BrEYcdhY.esm.js} +1 -1
  3. package/dist/ae-signature.d.ts +1 -1
  4. package/dist/authentication.esm.js +6 -6
  5. package/dist/{authenticationManager-D0Yv5R02.esm.js → authenticationManager-CKDxnLtG.esm.js} +2 -2
  6. package/dist/{authenticationStateMachine-CFiP6P_V.esm.js → authenticationStateMachine-BNs4VCxh.esm.js} +2 -2
  7. package/dist/consent.d.ts +50 -50
  8. package/dist/cpf-ocr.d.ts +17 -17
  9. package/dist/{deepsightLoader-CFNSfs2N.esm.js → deepsightLoader-BMeAmiNh.esm.js} +2 -2
  10. package/dist/document-capture.d.ts +76 -76
  11. package/dist/document-upload.d.ts +49 -49
  12. package/dist/ekyb.esm.js +3 -3
  13. package/dist/{ekybStateMachine-Cq7M50sN.esm.js → ekybStateMachine-tZ1_L9vE.esm.js} +1 -1
  14. package/dist/electronic-signature.d.ts +1 -1
  15. package/dist/extensibility.d.ts +1 -1
  16. package/dist/extensibility.esm.js +11 -11
  17. package/dist/{faceCaptureSetup-zLRBv0-5.esm.js → faceCaptureSetup-CUzqUwkP.esm.js} +1 -1
  18. package/dist/flow.esm.js +2 -2
  19. package/dist/{flowServices-CLnM71N7.esm.js → flowServices-CLo2qihS.esm.js} +1 -1
  20. package/dist/home.d.ts +10 -10
  21. package/dist/id-ocr.d.ts +55 -55
  22. package/dist/id.d.ts +1 -1
  23. package/dist/id.esm.js +5 -5
  24. package/dist/{idCaptureManager-C4xBRJNt.d.ts → idCaptureManager-DiFBYm7h.d.ts} +43 -1
  25. package/dist/{idCaptureManager-vkJ6QLuk.esm.js → idCaptureManager-ZtfBOR6V.esm.js} +64 -1
  26. package/dist/{idCaptureStateMachine-C94NHeR2.esm.js → idCaptureStateMachine-BuX1-VlB.esm.js} +358 -14
  27. package/dist/identity-reuse.d.ts +40 -40
  28. package/dist/{index-CNrrk1gH.d.ts → index-BRdxM5zm.d.ts} +119 -119
  29. package/dist/index.d.ts +1 -1
  30. package/dist/index.esm.js +4 -4
  31. package/dist/mandatory-consent.d.ts +50 -50
  32. package/dist/qe-signature.d.ts +1 -1
  33. package/dist/{recordingService-BsYjkILQ.esm.js → recordingService-DMaVUhWY.esm.js} +2 -2
  34. package/dist/selfie.esm.js +6 -6
  35. package/dist/{selfieManager-ByCKxpZC.esm.js → selfieManager-DC9hKgt7.esm.js} +2 -2
  36. package/dist/{selfieStateMachine-ecwZ7tWK.esm.js → selfieStateMachine-DvOTE42w.esm.js} +2 -2
  37. package/dist/{session-DWFMKdX6.esm.js → session-DAspZUCj.esm.js} +1 -1
  38. package/dist/session.esm.js +1 -1
  39. package/dist/{setup-D3rE3N3K.d.ts → setup-DM301Lyz.d.ts} +39 -5
  40. package/dist/{setup-h75-vL1d.esm.js → setup-DyspWyTY.esm.js} +326 -169
  41. package/dist/wasm.d.ts +1 -1
  42. package/dist/wasm.esm.js +4 -4
  43. package/dist/workflow.d.ts +84 -84
  44. package/dist/workflow.esm.js +9 -9
  45. package/package.json +3 -3
package/dist/index.esm.js CHANGED
@@ -1,11 +1,11 @@
1
- import { a as setup, n as isConfigured, r as reset } from "./setup-h75-vL1d.esm.js";
2
- import "./BaseWasmProvider-C2cw9STp.esm.js";
3
- import "./WasmUtilProvider-B8VtGgvF.esm.js";
1
+ import { a as setup, n as isConfigured, r as reset } from "./setup-DyspWyTY.esm.js";
2
+ import "./BaseWasmProvider-IiHnsP8E.esm.js";
3
+ import "./WasmUtilProvider-BrEYcdhY.esm.js";
4
4
  import "./BrowserTimerProvider-BZGH3sYJ.esm.js";
5
5
  import "./api-eqRXuVG-.esm.js";
6
6
  import "./events-Bt1azl2B.esm.js";
7
7
  import "./endpoints-B3V1U9Dg.esm.js";
8
- import "./session-DWFMKdX6.esm.js";
8
+ import "./session-DAspZUCj.esm.js";
9
9
  import "./IpifyProvider-ByL6JYxg.esm.js";
10
10
  import "./browserSimulation-CAH-V_iE.esm.js";
11
11
 
@@ -3,7 +3,7 @@ import "./Actor-YjWTo26u.js";
3
3
  import "./camera-B6UAKpM1.js";
4
4
  import "./types-DJSt3Ovt.js";
5
5
  import { a as RegulationTypes } from "./types-BA181GDD.js";
6
- import * as xstate89 from "xstate";
6
+ import * as xstate254 from "xstate";
7
7
 
8
8
  //#region src/modules/mandatory-consent/types.d.ts
9
9
  type MandatoryConsentConfig = {
@@ -30,7 +30,7 @@ type MandatoryConsentContext = {
30
30
  type MandatoryConsentInput = {
31
31
  config: MandatoryConsentConfig;
32
32
  };
33
- declare const mandatoryConsentMachine: xstate89.StateMachine<MandatoryConsentContext, {
33
+ declare const mandatoryConsentMachine: xstate254.StateMachine<MandatoryConsentContext, {
34
34
  type: "LOAD";
35
35
  } | {
36
36
  type: "TOGGLE";
@@ -43,53 +43,53 @@ declare const mandatoryConsentMachine: xstate89.StateMachine<MandatoryConsentCon
43
43
  } | {
44
44
  type: "RESET";
45
45
  }, {
46
- [x: string]: xstate89.ActorRefFromLogic<xstate89.PromiseActorLogic<FetchMandatoryConsentResponse, {
46
+ [x: string]: xstate254.ActorRefFromLogic<xstate254.PromiseActorLogic<FetchMandatoryConsentResponse, {
47
47
  config: MandatoryConsentConfig;
48
- }, xstate89.EventObject>> | xstate89.ActorRefFromLogic<xstate89.PromiseActorLogic<void, {
48
+ }, xstate254.EventObject>> | xstate254.ActorRefFromLogic<xstate254.PromiseActorLogic<void, {
49
49
  consentId: string;
50
50
  isSigned: boolean;
51
- }, xstate89.EventObject>> | undefined;
52
- }, xstate89.Values<{
51
+ }, xstate254.EventObject>> | undefined;
52
+ }, xstate254.Values<{
53
53
  fetchConsent: {
54
54
  src: "fetchConsent";
55
- logic: xstate89.PromiseActorLogic<FetchMandatoryConsentResponse, {
55
+ logic: xstate254.PromiseActorLogic<FetchMandatoryConsentResponse, {
56
56
  config: MandatoryConsentConfig;
57
- }, xstate89.EventObject>;
57
+ }, xstate254.EventObject>;
58
58
  id: string | undefined;
59
59
  };
60
60
  submitConsent: {
61
61
  src: "submitConsent";
62
- logic: xstate89.PromiseActorLogic<void, {
62
+ logic: xstate254.PromiseActorLogic<void, {
63
63
  consentId: string;
64
64
  isSigned: boolean;
65
- }, xstate89.EventObject>;
65
+ }, xstate254.EventObject>;
66
66
  id: string | undefined;
67
67
  };
68
- }>, xstate89.Values<{
68
+ }>, xstate254.Values<{
69
69
  setConsent: {
70
70
  type: "setConsent";
71
- params: xstate89.NonReducibleUnknown;
71
+ params: xstate254.NonReducibleUnknown;
72
72
  };
73
73
  setError: {
74
74
  type: "setError";
75
- params: xstate89.NonReducibleUnknown;
76
- };
77
- toggleSigned: {
78
- type: "toggleSigned";
79
- params: xstate89.NonReducibleUnknown;
75
+ params: xstate254.NonReducibleUnknown;
80
76
  };
81
77
  clearError: {
82
78
  type: "clearError";
83
- params: xstate89.NonReducibleUnknown;
79
+ params: xstate254.NonReducibleUnknown;
84
80
  };
85
81
  resetContext: {
86
82
  type: "resetContext";
87
- params: xstate89.NonReducibleUnknown;
83
+ params: xstate254.NonReducibleUnknown;
84
+ };
85
+ toggleSigned: {
86
+ type: "toggleSigned";
87
+ params: xstate254.NonReducibleUnknown;
88
88
  };
89
89
  }>, {
90
90
  type: "canSubmit";
91
91
  params: unknown;
92
- }, never, "error" | "idle" | "closed" | "finished" | "loading" | "submitting" | "display", string, MandatoryConsentInput, xstate89.NonReducibleUnknown, xstate89.EventObject, xstate89.MetaObject, {
92
+ }, never, "error" | "idle" | "closed" | "finished" | "loading" | "submitting" | "display", string, MandatoryConsentInput, xstate254.NonReducibleUnknown, xstate254.EventObject, xstate254.MetaObject, {
93
93
  readonly id: "mandatoryConsent";
94
94
  readonly initial: "idle";
95
95
  readonly context: ({
@@ -98,70 +98,70 @@ declare const mandatoryConsentMachine: xstate89.StateMachine<MandatoryConsentCon
98
98
  spawn: {
99
99
  <TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
100
100
  src: "fetchConsent";
101
- logic: xstate89.PromiseActorLogic<FetchMandatoryConsentResponse, {
101
+ logic: xstate254.PromiseActorLogic<FetchMandatoryConsentResponse, {
102
102
  config: MandatoryConsentConfig;
103
- }, xstate89.EventObject>;
103
+ }, xstate254.EventObject>;
104
104
  id: string | undefined;
105
105
  } extends infer T ? T extends {
106
106
  src: "fetchConsent";
107
- logic: xstate89.PromiseActorLogic<FetchMandatoryConsentResponse, {
107
+ logic: xstate254.PromiseActorLogic<FetchMandatoryConsentResponse, {
108
108
  config: MandatoryConsentConfig;
109
- }, xstate89.EventObject>;
109
+ }, xstate254.EventObject>;
110
110
  id: string | undefined;
111
111
  } ? T extends {
112
112
  src: TSrc;
113
- } ? xstate89.ConditionalRequired<[options?: ({
113
+ } ? xstate254.ConditionalRequired<[options?: ({
114
114
  id?: T["id"] | undefined;
115
115
  systemId?: string;
116
- input?: xstate89.InputFrom<T["logic"]> | undefined;
116
+ input?: xstate254.InputFrom<T["logic"]> | undefined;
117
117
  syncSnapshot?: boolean;
118
- } & { [K in xstate89.RequiredActorOptions<T>]: unknown }) | undefined], xstate89.IsNotNever<xstate89.RequiredActorOptions<T>>> : never : never : never) | ({
118
+ } & { [K in xstate254.RequiredActorOptions<T>]: unknown }) | undefined], xstate254.IsNotNever<xstate254.RequiredActorOptions<T>>> : never : never : never) | ({
119
119
  src: "submitConsent";
120
- logic: xstate89.PromiseActorLogic<void, {
120
+ logic: xstate254.PromiseActorLogic<void, {
121
121
  consentId: string;
122
122
  isSigned: boolean;
123
- }, xstate89.EventObject>;
123
+ }, xstate254.EventObject>;
124
124
  id: string | undefined;
125
125
  } extends infer T_1 ? T_1 extends {
126
126
  src: "submitConsent";
127
- logic: xstate89.PromiseActorLogic<void, {
127
+ logic: xstate254.PromiseActorLogic<void, {
128
128
  consentId: string;
129
129
  isSigned: boolean;
130
- }, xstate89.EventObject>;
130
+ }, xstate254.EventObject>;
131
131
  id: string | undefined;
132
132
  } ? T_1 extends {
133
133
  src: TSrc;
134
- } ? xstate89.ConditionalRequired<[options?: ({
134
+ } ? xstate254.ConditionalRequired<[options?: ({
135
135
  id?: T_1["id"] | undefined;
136
136
  systemId?: string;
137
- input?: xstate89.InputFrom<T_1["logic"]> | undefined;
137
+ input?: xstate254.InputFrom<T_1["logic"]> | undefined;
138
138
  syncSnapshot?: boolean;
139
- } & { [K_1 in xstate89.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate89.IsNotNever<xstate89.RequiredActorOptions<T_1>>> : never : never : never)): xstate89.ActorRefFromLogic<xstate89.GetConcreteByKey<xstate89.Values<{
139
+ } & { [K_1 in xstate254.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate254.IsNotNever<xstate254.RequiredActorOptions<T_1>>> : never : never : never)): xstate254.ActorRefFromLogic<xstate254.GetConcreteByKey<xstate254.Values<{
140
140
  fetchConsent: {
141
141
  src: "fetchConsent";
142
- logic: xstate89.PromiseActorLogic<FetchMandatoryConsentResponse, {
142
+ logic: xstate254.PromiseActorLogic<FetchMandatoryConsentResponse, {
143
143
  config: MandatoryConsentConfig;
144
- }, xstate89.EventObject>;
144
+ }, xstate254.EventObject>;
145
145
  id: string | undefined;
146
146
  };
147
147
  submitConsent: {
148
148
  src: "submitConsent";
149
- logic: xstate89.PromiseActorLogic<void, {
149
+ logic: xstate254.PromiseActorLogic<void, {
150
150
  consentId: string;
151
151
  isSigned: boolean;
152
- }, xstate89.EventObject>;
152
+ }, xstate254.EventObject>;
153
153
  id: string | undefined;
154
154
  };
155
155
  }>, "src", TSrc>["logic"]>;
156
- <TLogic extends xstate89.AnyActorLogic>(src: TLogic, ...[options]: xstate89.ConditionalRequired<[options?: ({
156
+ <TLogic extends xstate254.AnyActorLogic>(src: TLogic, ...[options]: xstate254.ConditionalRequired<[options?: ({
157
157
  id?: never;
158
158
  systemId?: string;
159
- input?: xstate89.InputFrom<TLogic> | undefined;
159
+ input?: xstate254.InputFrom<TLogic> | undefined;
160
160
  syncSnapshot?: boolean;
161
- } & { [K in xstate89.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate89.IsNotNever<xstate89.RequiredLogicInput<TLogic>>>): xstate89.ActorRefFromLogic<TLogic>;
161
+ } & { [K in xstate254.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate254.IsNotNever<xstate254.RequiredLogicInput<TLogic>>>): xstate254.ActorRefFromLogic<TLogic>;
162
162
  };
163
163
  input: MandatoryConsentInput;
164
- self: xstate89.ActorRef<xstate89.MachineSnapshot<MandatoryConsentContext, {
164
+ self: xstate254.ActorRef<xstate254.MachineSnapshot<MandatoryConsentContext, {
165
165
  type: "LOAD";
166
166
  } | {
167
167
  type: "TOGGLE";
@@ -173,7 +173,7 @@ declare const mandatoryConsentMachine: xstate89.StateMachine<MandatoryConsentCon
173
173
  type: "RETRY";
174
174
  } | {
175
175
  type: "RESET";
176
- }, Record<string, xstate89.AnyActorRef | undefined>, xstate89.StateValue, string, unknown, any, any>, {
176
+ }, Record<string, xstate254.AnyActorRef | undefined>, xstate254.StateValue, string, unknown, any, any>, {
177
177
  type: "LOAD";
178
178
  } | {
179
179
  type: "TOGGLE";
@@ -185,7 +185,7 @@ declare const mandatoryConsentMachine: xstate89.StateMachine<MandatoryConsentCon
185
185
  type: "RETRY";
186
186
  } | {
187
187
  type: "RESET";
188
- }, xstate89.AnyEventObject>;
188
+ }, xstate254.AnyEventObject>;
189
189
  }) => {
190
190
  config: MandatoryConsentConfig;
191
191
  consent: undefined;
@@ -222,7 +222,7 @@ declare const mandatoryConsentMachine: xstate89.StateMachine<MandatoryConsentCon
222
222
  } | {
223
223
  type: "RESET";
224
224
  };
225
- self: xstate89.ActorRef<xstate89.MachineSnapshot<MandatoryConsentContext, {
225
+ self: xstate254.ActorRef<xstate254.MachineSnapshot<MandatoryConsentContext, {
226
226
  type: "LOAD";
227
227
  } | {
228
228
  type: "TOGGLE";
@@ -234,7 +234,7 @@ declare const mandatoryConsentMachine: xstate89.StateMachine<MandatoryConsentCon
234
234
  type: "RETRY";
235
235
  } | {
236
236
  type: "RESET";
237
- }, Record<string, xstate89.AnyActorRef>, xstate89.StateValue, string, unknown, any, any>, {
237
+ }, Record<string, xstate254.AnyActorRef>, xstate254.StateValue, string, unknown, any, any>, {
238
238
  type: "LOAD";
239
239
  } | {
240
240
  type: "TOGGLE";
@@ -246,7 +246,7 @@ declare const mandatoryConsentMachine: xstate89.StateMachine<MandatoryConsentCon
246
246
  type: "RETRY";
247
247
  } | {
248
248
  type: "RESET";
249
- }, xstate89.AnyEventObject>;
249
+ }, xstate254.AnyEventObject>;
250
250
  }) => {
251
251
  config: MandatoryConsentConfig;
252
252
  };
@@ -299,7 +299,7 @@ declare const mandatoryConsentMachine: xstate89.StateMachine<MandatoryConsentCon
299
299
  } | {
300
300
  type: "RESET";
301
301
  };
302
- self: xstate89.ActorRef<xstate89.MachineSnapshot<MandatoryConsentContext, {
302
+ self: xstate254.ActorRef<xstate254.MachineSnapshot<MandatoryConsentContext, {
303
303
  type: "LOAD";
304
304
  } | {
305
305
  type: "TOGGLE";
@@ -311,7 +311,7 @@ declare const mandatoryConsentMachine: xstate89.StateMachine<MandatoryConsentCon
311
311
  type: "RETRY";
312
312
  } | {
313
313
  type: "RESET";
314
- }, Record<string, xstate89.AnyActorRef>, xstate89.StateValue, string, unknown, any, any>, {
314
+ }, Record<string, xstate254.AnyActorRef>, xstate254.StateValue, string, unknown, any, any>, {
315
315
  type: "LOAD";
316
316
  } | {
317
317
  type: "TOGGLE";
@@ -323,7 +323,7 @@ declare const mandatoryConsentMachine: xstate89.StateMachine<MandatoryConsentCon
323
323
  type: "RETRY";
324
324
  } | {
325
325
  type: "RESET";
326
- }, xstate89.AnyEventObject>;
326
+ }, xstate254.AnyEventObject>;
327
327
  }) => {
328
328
  consentId: string;
329
329
  isSigned: boolean;
@@ -1,6 +1,6 @@
1
1
  import { t as Manager } from "./Manager-D9pehGyp.js";
2
2
  import "./Actor-YjWTo26u.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-CNrrk1gH.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-BRdxM5zm.js";
4
4
 
5
5
  //#region src/modules/qe-signature/index.d.ts
6
6
 
@@ -1,4 +1,4 @@
1
- import { i as WasmPipelineType, r as mlWasmJSApi_default, t as BaseWasmProvider } from "./BaseWasmProvider-C2cw9STp.esm.js";
1
+ import { a as WasmPipelineType, r as mlWasmJSApi_default, t as BaseWasmProvider } from "./BaseWasmProvider-IiHnsP8E.esm.js";
2
2
  import { t as api } from "./api-eqRXuVG-.esm.js";
3
3
  import { t as endpoints } from "./endpoints-B3V1U9Dg.esm.js";
4
4
  import { n as IncodeCanvas } from "./deepsightService-IxmrmdKl.esm.js";
@@ -620,7 +620,7 @@ async function stopRecording(session) {
620
620
  }
621
621
  }
622
622
  async function initializeDeepsightSession(options) {
623
- const { loadDeepsightSession } = await import("./deepsightLoader-CFNSfs2N.esm.js");
623
+ const { loadDeepsightSession } = await import("./deepsightLoader-BMeAmiNh.esm.js");
624
624
  return loadDeepsightSession({
625
625
  ds: options.ds,
626
626
  storage: options.storage
@@ -1,5 +1,5 @@
1
- import "./BaseWasmProvider-C2cw9STp.esm.js";
2
- import "./WasmUtilProvider-B8VtGgvF.esm.js";
1
+ import "./BaseWasmProvider-IiHnsP8E.esm.js";
2
+ import "./WasmUtilProvider-BrEYcdhY.esm.js";
3
3
  import "./api-eqRXuVG-.esm.js";
4
4
  import "./events-Bt1azl2B.esm.js";
5
5
  import "./endpoints-B3V1U9Dg.esm.js";
@@ -7,7 +7,7 @@ import "./browserSimulation-CAH-V_iE.esm.js";
7
7
  import "./xstate.esm-7GmmAwg6.esm.js";
8
8
  import "./faceCaptureManagerFactory-ByAGjOLF.esm.js";
9
9
  import "./BrowserStorageProvider-CoUfuy0u.esm.js";
10
- import { l as processFace } from "./recordingService-BsYjkILQ.esm.js";
10
+ import { l as processFace } from "./recordingService-DMaVUhWY.esm.js";
11
11
  import "./deepsightService-IxmrmdKl.esm.js";
12
12
  import "./camera-Bm3wb89Z.esm.js";
13
13
  import "./getBrowser-Y88tNVud.esm.js";
@@ -18,8 +18,8 @@ import "./platform-Dpzd9p3X.esm.js";
18
18
  import "./ITimerCapability-2pw-S97e.esm.js";
19
19
  import "./backCameraStream-DWZ1cNVA.esm.js";
20
20
  import "./getDeviceClass-DmoqR7G2.esm.js";
21
- import "./faceCaptureSetup-zLRBv0-5.esm.js";
22
- import { t as selfieMachine } from "./selfieStateMachine-ecwZ7tWK.esm.js";
23
- import { t as createSelfieManager } from "./selfieManager-ByCKxpZC.esm.js";
21
+ import "./faceCaptureSetup-CUzqUwkP.esm.js";
22
+ import { t as selfieMachine } from "./selfieStateMachine-DvOTE42w.esm.js";
23
+ import { t as createSelfieManager } from "./selfieManager-DC9hKgt7.esm.js";
24
24
 
25
25
  export { createSelfieManager, processFace, selfieMachine };
@@ -1,9 +1,9 @@
1
- import { t as WasmUtilProvider } from "./WasmUtilProvider-B8VtGgvF.esm.js";
1
+ import { t as WasmUtilProvider } from "./WasmUtilProvider-BrEYcdhY.esm.js";
2
2
  import { n as eventModuleNames } from "./events-Bt1azl2B.esm.js";
3
3
  import { o as createActor } from "./xstate.esm-7GmmAwg6.esm.js";
4
4
  import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-ByAGjOLF.esm.js";
5
5
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-CoUfuy0u.esm.js";
6
- import { t as selfieMachine } from "./selfieStateMachine-ecwZ7tWK.esm.js";
6
+ import { t as selfieMachine } from "./selfieStateMachine-DvOTE42w.esm.js";
7
7
 
8
8
  //#region src/modules/selfie/selfieActor.ts
9
9
  function createSelfieActor(options) {
@@ -1,6 +1,6 @@
1
1
  import { a as fromPromise, r as assign } from "./xstate.esm-7GmmAwg6.esm.js";
2
- import { l as processFace, u as uploadSelfie, v as FACE_ERROR_CODES } from "./recordingService-BsYjkILQ.esm.js";
3
- import { t as faceCaptureMachine } from "./faceCaptureSetup-zLRBv0-5.esm.js";
2
+ import { l as processFace, u as uploadSelfie, v as FACE_ERROR_CODES } from "./recordingService-DMaVUhWY.esm.js";
3
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-CUzqUwkP.esm.js";
4
4
 
5
5
  //#region src/modules/selfie/selfieErrorUtils.ts
6
6
  const FACE_ERROR_CODE_VALUES = Object.values(FACE_ERROR_CODES);
@@ -3036,7 +3036,7 @@ function resetFeatureConfigCache() {
3036
3036
 
3037
3037
  //#endregion
3038
3038
  //#region src/internal/version/sdkVersion.ts
3039
- const SDK_VERSION = "0.0.0-dev-20260512-e44bacb";
3039
+ const SDK_VERSION = "0.0.0-dev-20260512-cffbe28";
3040
3040
 
3041
3041
  //#endregion
3042
3042
  //#region src/internal/fingerprint/fingerprintService.ts
@@ -1,7 +1,7 @@
1
1
  import "./api-eqRXuVG-.esm.js";
2
2
  import "./events-Bt1azl2B.esm.js";
3
3
  import "./endpoints-B3V1U9Dg.esm.js";
4
- import { c as QrValidationError, d as refreshQrUrlUuid, f as validateQrUuid, l as bootstrapSession, s as QR_VALIDATION_ERROR_CODES, u as createSession } from "./session-DWFMKdX6.esm.js";
4
+ import { c as QrValidationError, d as refreshQrUrlUuid, f as validateQrUuid, l as bootstrapSession, s as QR_VALIDATION_ERROR_CODES, u as createSession } from "./session-DAspZUCj.esm.js";
5
5
  import "./IpifyProvider-ByL6JYxg.esm.js";
6
6
  import "./browserSimulation-CAH-V_iE.esm.js";
7
7
  import { t as getFinishStatus } from "./flowCompletionService-BuVIVPT_.esm.js";
@@ -41,6 +41,35 @@ type SetupOptions = {
41
41
  * - Object: load WASM with CDN defaults plus any overrides you provide.
42
42
  */
43
43
  wasm?: WasmConfig | false;
44
+ /**
45
+ * Enable end-to-end encryption for SDK traffic. When `true`, the SDK
46
+ * negotiates an encrypted transport during initialization (RSA-OAEP-SHA256
47
+ * key transport + AES-GCM payload encryption). Independent of `token` —
48
+ * encryption can be set up before a session token is known.
49
+ *
50
+ * Encryption requires the binary (WASM) transport. If `wasm: false` is set,
51
+ * `setup` throws. If `wasm` is omitted, the binary transport is provisioned
52
+ * automatically with CDN defaults.
53
+ *
54
+ * **One-way switch.** Once enabled, `encryption` cannot be turned off by
55
+ * passing `encryption: false` on a subsequent `setup()` call — that throws.
56
+ * Call `reset()` first if you genuinely need a non-encrypted client.
57
+ *
58
+ * **Late enable.** Calling `setup({ encryption: true })` after an initial
59
+ * non-encrypted `setup({ apiURL })` upgrades the existing connection to
60
+ * encrypted (the binary transport is provisioned on demand).
61
+ *
62
+ * **Failure modes.** `setup()` rejects with a descriptive error if the
63
+ * encrypted-transport handshake (`GET /e2ee/key/v2` + `POST /e2ee/key`)
64
+ * cannot complete — typically due to an unreachable `apiURL`, an env that
65
+ * does not provision E2EE, or a transient network/server error. There is
66
+ * no built-in retry; catch and re-call `setup()` if your environment is
67
+ * known-flaky.
68
+ *
69
+ * @throws If `wasm: false` is also set, or if the handshake fails, or if
70
+ * `encryption: false` is passed after encryption was previously enabled.
71
+ */
72
+ encryption?: boolean;
44
73
  /** Optional hosting app identifier for fingerprint tracking */
45
74
  hostingApp?: string;
46
75
  };
@@ -94,7 +123,9 @@ type SetupOptions = {
94
123
  * pipelines: ['selfie'],
95
124
  * },
96
125
  * });
97
- * ```
126
+ *
127
+ * // Enable end-to-end encryption at boot
128
+ * await setup({ apiURL: 'https://api.incode.com', encryption: true });
98
129
  */
99
130
  declare function setup(options: SetupOptions): Promise<void>;
100
131
  /**
@@ -114,14 +145,17 @@ declare function setWasmConfig(config: WasmConfig): void;
114
145
  */
115
146
  declare function initializeWasmUtil(config?: WasmConfig): Promise<void>;
116
147
  /**
117
- * Replaces the active HTTP client with the WASM-backed one. Used when WASM is
118
- * loaded lazily (e.g. by the flow component) — `setup()` originally wired the
119
- * fetch/XHR client because no `wasm` was provided, and this swap upgrades to
120
- * `createWasmApi` once the WASM module is ready.
148
+ * Replaces the active HTTP client with the WASM-backed one. Used internally
149
+ * by lazy-loading UI components (`<incode-flow>`, `<incode-workflow>`) when
150
+ * WASM finishes warming up.
121
151
  *
122
152
  * No-op when no apiURL was originally configured, or when the active client is
123
153
  * already the WASM one.
124
154
  *
155
+ * @internal NOT a public API. Application code should use
156
+ * `setup({ wasm: {...} })` instead — that path is the supported way to opt
157
+ * into the WASM HTTP client.
158
+ *
125
159
  * @param config - Optional WASM configuration. Defaults to the config stored via `setWasmConfig`.
126
160
  */
127
161
  declare function upgradeToWasmHttpClient(config?: WasmConfig): Promise<void>;