@incodetech/core 0.0.0-dev-20260512-20def2c → 0.0.0-dev-20260513-0ec71c0

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 (40) hide show
  1. package/dist/{BaseWasmProvider-CVktpSfA.esm.js → BaseWasmProvider-rCpBxg2n.esm.js} +6 -4
  2. package/dist/{WasmUtilProvider-BEQWy5_K.esm.js → WasmUtilProvider--NH11WMy.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-DsauZR1g.esm.js → authenticationManager-DcGiJ5zB.esm.js} +2 -2
  6. package/dist/{authenticationStateMachine-B4FQ52zK.esm.js → authenticationStateMachine-BkxEuiOe.esm.js} +2 -2
  7. package/dist/consent.d.ts +50 -50
  8. package/dist/cpf-ocr.d.ts +20 -20
  9. package/dist/{deepsightLoader-VJ3nFjie.esm.js → deepsightLoader-DVjWQrsv.esm.js} +2 -2
  10. package/dist/document-capture.d.ts +77 -77
  11. package/dist/document-upload.d.ts +49 -49
  12. package/dist/ekyb.esm.js +3 -3
  13. package/dist/{ekybStateMachine-DqzhMm0r.esm.js → ekybStateMachine-Cw4N-GB5.esm.js} +1 -1
  14. package/dist/electronic-signature.d.ts +1 -1
  15. package/dist/extensibility.esm.js +11 -11
  16. package/dist/{faceCaptureSetup-D607PhdL.esm.js → faceCaptureSetup-DuyxqX2C.esm.js} +29 -8
  17. package/dist/flow.d.ts +2 -2
  18. package/dist/flow.esm.js +2 -2
  19. package/dist/{flowServices-BVVnH_Fn.esm.js → flowServices-BoXJgwso.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.esm.js +5 -5
  23. package/dist/{idCaptureManager-DbP4E8PO.esm.js → idCaptureManager-WnnPecUR.esm.js} +1 -1
  24. package/dist/{idCaptureStateMachine-g5cYnHGD.esm.js → idCaptureStateMachine-DiUfiVtU.esm.js} +4 -4
  25. package/dist/identity-reuse.d.ts +43 -43
  26. package/dist/{index-DXB9aRs0.d.ts → index-CRvEjMgP.d.ts} +119 -119
  27. package/dist/index.esm.js +4 -4
  28. package/dist/mandatory-consent.d.ts +50 -50
  29. package/dist/qe-signature.d.ts +1 -1
  30. package/dist/{recordingService-Dp-3nA-h.esm.js → recordingService-D7oQbN6c.esm.js} +2 -2
  31. package/dist/selfie.esm.js +6 -6
  32. package/dist/{selfieManager-5AG9bMT1.esm.js → selfieManager-BvY_JjgO.esm.js} +2 -2
  33. package/dist/{selfieStateMachine-D0rrAFIs.esm.js → selfieStateMachine-Bq5AS2Ym.esm.js} +2 -2
  34. package/dist/{session-BxtuBDwz.esm.js → session-CCVzeyXu.esm.js} +1 -1
  35. package/dist/session.esm.js +1 -1
  36. package/dist/{setup-B2Van3Nc.esm.js → setup-DVRsRzJX.esm.js} +3 -3
  37. package/dist/wasm.esm.js +4 -4
  38. package/dist/workflow.d.ts +84 -84
  39. package/dist/workflow.esm.js +9 -9
  40. package/package.json +3 -3
@@ -1,20 +1,20 @@
1
- import "./BaseWasmProvider-CVktpSfA.esm.js";
2
- import { t as WasmUtilProvider } from "./WasmUtilProvider-BEQWy5_K.esm.js";
1
+ import "./BaseWasmProvider-rCpBxg2n.esm.js";
2
+ import { t as WasmUtilProvider } from "./WasmUtilProvider--NH11WMy.esm.js";
3
3
  import "./BrowserTimerProvider-BZGH3sYJ.esm.js";
4
4
  import "./api-eqRXuVG-.esm.js";
5
5
  import "./events-Bt1azl2B.esm.js";
6
6
  import "./endpoints-B3V1U9Dg.esm.js";
7
- import { a as FingerprintProvider, o as getDeviceFingerprintInfo, t as getDisableIpify } from "./session-BxtuBDwz.esm.js";
7
+ import { a as FingerprintProvider, o as getDeviceFingerprintInfo, t as getDisableIpify } from "./session-CCVzeyXu.esm.js";
8
8
  import { t as IpifyProvider } from "./IpifyProvider-ByL6JYxg.esm.js";
9
9
  import "./browserSimulation-CAH-V_iE.esm.js";
10
10
  import { a as fromPromise, o as createActor } from "./xstate.esm-7GmmAwg6.esm.js";
11
11
  import "./faceCaptureManagerFactory-fu-9hWf5.esm.js";
12
12
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-CoUfuy0u.esm.js";
13
- import { t as faceCaptureMachine } from "./faceCaptureSetup-D607PhdL.esm.js";
13
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-DuyxqX2C.esm.js";
14
14
  import "./ITimerCapability-3xSd36bT.esm.js";
15
15
  import "./camera-Bm3wb89Z.esm.js";
16
16
  import "./deepsightService-Dv6kvzph.esm.js";
17
- import "./recordingService-Dp-3nA-h.esm.js";
17
+ import "./recordingService-D7oQbN6c.esm.js";
18
18
  import "./platform-CDh4uv5Y.esm.js";
19
19
  import "./backCameraStream-BKC7QXRJ.esm.js";
20
20
  import "./getBrowser-Bl0PlyDu.esm.js";
@@ -22,14 +22,14 @@ import "./stats-qUsejORa.esm.js";
22
22
  import "./getDeviceClass-C1ZS2XJL.esm.js";
23
23
  import "./MotionSensorProvider-Dt_lF3Z8.esm.js";
24
24
  import "./permissionServices-Cdxqlwqz.esm.js";
25
- import "./authenticationStateMachine-B4FQ52zK.esm.js";
26
- import { n as createAuthenticationManagerFromActor } from "./authenticationManager-DsauZR1g.esm.js";
25
+ import "./authenticationStateMachine-BkxEuiOe.esm.js";
26
+ import { n as createAuthenticationManagerFromActor } from "./authenticationManager-DcGiJ5zB.esm.js";
27
27
  import "./emailStateMachine-BW4tiYqt.esm.js";
28
28
  import { n as createEmailManagerFromActor } from "./emailManager-CJAgi4be.esm.js";
29
- import "./selfieStateMachine-D0rrAFIs.esm.js";
30
- import { n as createSelfieManagerFromActor } from "./selfieManager-5AG9bMT1.esm.js";
31
- import "./idCaptureStateMachine-g5cYnHGD.esm.js";
32
- import { n as createIdCaptureManagerFromActor } from "./idCaptureManager-DbP4E8PO.esm.js";
29
+ import "./selfieStateMachine-Bq5AS2Ym.esm.js";
30
+ import { n as createSelfieManagerFromActor } from "./selfieManager-BvY_JjgO.esm.js";
31
+ import "./idCaptureStateMachine-DiUfiVtU.esm.js";
32
+ import { n as createIdCaptureManagerFromActor } from "./idCaptureManager-WnnPecUR.esm.js";
33
33
  import "./phoneStateMachine-dDqWuk_Q.esm.js";
34
34
  import { n as createPhoneManagerFromActor } from "./phoneManager-BgAfR0DQ.esm.js";
35
35
 
@@ -1,7 +1,7 @@
1
1
  import { r as getToken } from "./api-eqRXuVG-.esm.js";
2
2
  import { a as fromPromise, i as fromCallback, r as assign, t as setup } from "./xstate.esm-7GmmAwg6.esm.js";
3
3
  import { t as sleep } from "./ITimerCapability-3xSd36bT.esm.js";
4
- import { a as StreamCanvasCapture, c as initializeDeepsightSession, d as stopStream, l as sendLabelInspectionEvent, m as FACE_ERROR_CODES, n as preloadOpenViduProvider, o as encryptSelfieImage, r as flagFaceManualReview, s as initializeCamera, t as createRecordingService, u as startDetection } from "./recordingService-Dp-3nA-h.esm.js";
4
+ import { a as StreamCanvasCapture, c as initializeDeepsightSession, d as stopStream, l as sendLabelInspectionEvent, m as FACE_ERROR_CODES, n as preloadOpenViduProvider, o as encryptSelfieImage, r as flagFaceManualReview, s as initializeCamera, t as createRecordingService, u as startDetection } from "./recordingService-D7oQbN6c.esm.js";
5
5
  import { n as requestPermission, t as checkPermission } from "./permissionServices-Cdxqlwqz.esm.js";
6
6
 
7
7
  //#region ../infra/src/scheduling/yieldUntilNextPaint.ts
@@ -98,10 +98,29 @@ async function defaultPrepareFaceUpload(ctx) {
98
98
  }
99
99
  /**
100
100
  * On-device prepare-upload. No recording to stop (the recording service is
101
- * never created when the flag is on), no image encryption needed — instead,
102
- * we hand the captured canvas to the WASM provider's `processPhoto` which
103
- * runs the full on-device pipeline and stages results inside `WebApi` for
104
- * the subsequent `postFaceResults` call.
101
+ * never created when the flag is on), no image encryption needed.
102
+ *
103
+ * Behavior depends on which capture path got us here:
104
+ *
105
+ * - **Auto-capture path**: the WASM `OnDeviceSelfiePipeline` has been
106
+ * consuming every video frame via `processFrame()` and aggregating
107
+ * results across them. When it picks a best-shot, the C++
108
+ * `OnDeviceSelfieWorkflow::createOnCaptureHandler` calls
109
+ * `WebApi::setFaceResults(...)` automatically — staging strong,
110
+ * aggregated `BestShotData` for the subsequent `postFaceResults` call.
111
+ * We must NOT call `processPhoto` here: `applyFaceResults` would
112
+ * overwrite that staged state with a weaker single-frame analysis of a
113
+ * post-capture snapshot (camera state has already changed: autocapture
114
+ * freeze, stream pause, post-detection latency), and the server then
115
+ * rejects the submission as "image quality too low".
116
+ *
117
+ * - **Manual-capture path**: the auto-capture timer expired without a
118
+ * successful best-shot, so the C++ pipeline has nothing staged. We
119
+ * need to run a single-frame analysis on the manually captured canvas
120
+ * via `processPhoto`, which itself calls
121
+ * `OnDeviceSelfieWorkflow::applyFaceResults` → `WebApi::setFaceResults`
122
+ * to stage results. Mirrors V1 (`packages/incode-welcome/src/camera/useSelfie.ts`)
123
+ * where `processPhoto` is only invoked from `handleManualCapture`.
105
124
  *
106
125
  * Returns sentinel values for `encryptedBase64Image` and `recordingId` so
107
126
  * the existing FaceCaptureContext shape remains stable; downstream actors
@@ -110,9 +129,11 @@ async function defaultPrepareFaceUpload(ctx) {
110
129
  async function prepareOnDeviceFaceUpload(ctx) {
111
130
  if (!ctx.capturedImage) throw new Error("On-device capture requires a captured image canvas");
112
131
  if (!ctx.provider) throw new Error("On-device capture requires the FaceDetectionProvider to be initialized");
113
- await yieldUntilNextPaint();
114
- await sleep(350);
115
- ctx.provider.processPhoto(ctx.capturedImage.canvas);
132
+ if (ctx.manualCaptureTriggered) {
133
+ await yieldUntilNextPaint();
134
+ await sleep(350);
135
+ ctx.provider.processPhoto(ctx.capturedImage.canvas);
136
+ }
116
137
  return {
117
138
  encryptedBase64Image: "",
118
139
  recordingId: null
package/dist/flow.d.ts CHANGED
@@ -7,7 +7,7 @@ import { i as FlowModuleConfig, n as Flow, r as FlowModule } from "./types-DkXZp
7
7
  import { n as GetFinishStatusFn, t as FinishStatus } from "./flowCompletionService-C376JZwA.js";
8
8
  import { o as FlowEventSubscribable } from "./index-UH-vOq3x.js";
9
9
  import { t as ModuleRegistry } from "./types-WKAQ7Ai4.js";
10
- import * as xstate963 from "xstate";
10
+ import * as xstate899 from "xstate";
11
11
 
12
12
  //#region src/modules/flow/flowUtils.d.ts
13
13
  type NormalizeFlowModulesOptions = {
@@ -59,7 +59,7 @@ type GetFlow = (signal: AbortSignal, options?: GetFlowOptions) => Promise<Flow>;
59
59
  declare const getFlow: GetFlow;
60
60
  //#endregion
61
61
  //#region src/modules/flow/noOpFlowModuleMachine.d.ts
62
- declare const noOpFlowModuleMachine: xstate963.StateMachine<xstate963.MachineContext, xstate963.AnyEventObject, {}, never, never, never, never, "finished", string, xstate963.NonReducibleUnknown, xstate963.NonReducibleUnknown, xstate963.EventObject, xstate963.MetaObject, {
62
+ declare const noOpFlowModuleMachine: xstate899.StateMachine<xstate899.MachineContext, xstate899.AnyEventObject, {}, never, never, never, never, "finished", string, xstate899.NonReducibleUnknown, xstate899.NonReducibleUnknown, xstate899.EventObject, xstate899.MetaObject, {
63
63
  readonly id: "noOpFlowModule";
64
64
  readonly initial: "finished";
65
65
  readonly states: {
package/dist/flow.esm.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import "./api-eqRXuVG-.esm.js";
2
2
  import "./events-Bt1azl2B.esm.js";
3
3
  import "./endpoints-B3V1U9Dg.esm.js";
4
- import "./session-BxtuBDwz.esm.js";
4
+ import "./session-CCVzeyXu.esm.js";
5
5
  import "./IpifyProvider-ByL6JYxg.esm.js";
6
6
  import "./browserSimulation-CAH-V_iE.esm.js";
7
7
  import { a as fromPromise, o as createActor, r as assign, s as createManager, t as setup } from "./xstate.esm-7GmmAwg6.esm.js";
8
- import { n as getRequiredWasmPipelines, r as normalizeFlowModules, t as getFlow } from "./flowServices-BVVnH_Fn.esm.js";
8
+ import { n as getRequiredWasmPipelines, r as normalizeFlowModules, t as getFlow } from "./flowServices-BoXJgwso.esm.js";
9
9
  import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-B16ocpd4.esm.js";
10
10
  import { t as getFinishStatus } from "./flowCompletionService-BuVIVPT_.esm.js";
11
11
 
@@ -1,6 +1,6 @@
1
1
  import { t as api } from "./api-eqRXuVG-.esm.js";
2
2
  import { t as endpoints } from "./endpoints-B3V1U9Dg.esm.js";
3
- import { n as getSessionFingerprintResult, r as initializeSession } from "./session-BxtuBDwz.esm.js";
3
+ import { n as getSessionFingerprintResult, r as initializeSession } from "./session-CCVzeyXu.esm.js";
4
4
 
5
5
  //#region src/modules/flow/flowUtils.ts
6
6
  const WASM_MODULE_PIPELINES = {
package/dist/home.d.ts CHANGED
@@ -2,7 +2,7 @@ import { t as Manager } from "./Manager-D9pehGyp.js";
2
2
  import "./camera-B6UAKpM1.js";
3
3
  import "./types-DJSt3Ovt.js";
4
4
  import { t as EmptyConfig } from "./types-DkXZpS0R.js";
5
- import * as xstate726 from "xstate";
5
+ import * as xstate311 from "xstate";
6
6
 
7
7
  //#region src/modules/home/types.d.ts
8
8
  type HomeConfig = EmptyConfig;
@@ -34,41 +34,41 @@ type HomeContext = {
34
34
  type HomeInput = {
35
35
  config: EmptyConfig;
36
36
  };
37
- declare const homeMachine: xstate726.StateMachine<HomeContext, {
37
+ declare const homeMachine: xstate311.StateMachine<HomeContext, {
38
38
  type: "LOAD";
39
39
  } | {
40
40
  type: "COMPLETE";
41
41
  } | {
42
42
  type: "RESET";
43
- }, {}, never, never, never, never, "idle" | "finished" | "main", string, HomeInput, xstate726.NonReducibleUnknown, xstate726.EventObject, xstate726.MetaObject, {
43
+ }, {}, never, never, never, never, "idle" | "finished" | "main", string, HomeInput, xstate311.NonReducibleUnknown, xstate311.EventObject, xstate311.MetaObject, {
44
44
  readonly id: "home";
45
45
  readonly initial: "idle";
46
46
  readonly context: ({
47
47
  input
48
48
  }: {
49
49
  spawn: {
50
- <TSrc extends never>(logic: TSrc, ...[options]: never): xstate726.ActorRefFromLogic<never>;
51
- <TLogic extends xstate726.AnyActorLogic>(src: TLogic, ...[options]: xstate726.ConditionalRequired<[options?: ({
50
+ <TSrc extends never>(logic: TSrc, ...[options]: never): xstate311.ActorRefFromLogic<never>;
51
+ <TLogic extends xstate311.AnyActorLogic>(src: TLogic, ...[options]: xstate311.ConditionalRequired<[options?: ({
52
52
  id?: never;
53
53
  systemId?: string;
54
- input?: xstate726.InputFrom<TLogic> | undefined;
54
+ input?: xstate311.InputFrom<TLogic> | undefined;
55
55
  syncSnapshot?: boolean;
56
- } & { [K in xstate726.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate726.IsNotNever<xstate726.RequiredLogicInput<TLogic>>>): xstate726.ActorRefFromLogic<TLogic>;
56
+ } & { [K in xstate311.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate311.IsNotNever<xstate311.RequiredLogicInput<TLogic>>>): xstate311.ActorRefFromLogic<TLogic>;
57
57
  };
58
58
  input: HomeInput;
59
- self: xstate726.ActorRef<xstate726.MachineSnapshot<HomeContext, {
59
+ self: xstate311.ActorRef<xstate311.MachineSnapshot<HomeContext, {
60
60
  type: "LOAD";
61
61
  } | {
62
62
  type: "COMPLETE";
63
63
  } | {
64
64
  type: "RESET";
65
- }, Record<string, xstate726.AnyActorRef | undefined>, xstate726.StateValue, string, unknown, any, any>, {
65
+ }, Record<string, xstate311.AnyActorRef | undefined>, xstate311.StateValue, string, unknown, any, any>, {
66
66
  type: "LOAD";
67
67
  } | {
68
68
  type: "COMPLETE";
69
69
  } | {
70
70
  type: "RESET";
71
- }, xstate726.AnyEventObject>;
71
+ }, xstate311.AnyEventObject>;
72
72
  }) => {
73
73
  config: EmptyConfig;
74
74
  };
package/dist/id-ocr.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { t as Manager } from "./Manager-D9pehGyp.js";
2
2
  import "./Actor-YjWTo26u.js";
3
- import * as xstate67 from "xstate";
3
+ import * as xstate165 from "xstate";
4
4
 
5
5
  //#region src/modules/id-ocr/types.d.ts
6
6
  type IdOcrConfig = {
@@ -177,7 +177,7 @@ type IdOcrContext = {
177
177
  type IdOcrInput = {
178
178
  config: IdOcrConfig;
179
179
  };
180
- declare const idOcrStateMachine: xstate67.StateMachine<IdOcrContext, {
180
+ declare const idOcrStateMachine: xstate165.StateMachine<IdOcrContext, {
181
181
  type: "LOAD";
182
182
  } | {
183
183
  type: "DATA_CHANGED";
@@ -191,66 +191,66 @@ declare const idOcrStateMachine: xstate67.StateMachine<IdOcrContext, {
191
191
  } | {
192
192
  type: "RETRY";
193
193
  }, {
194
- [x: string]: xstate67.ActorRefFromLogic<xstate67.PromiseActorLogic<OcrData, {
194
+ [x: string]: xstate165.ActorRefFromLogic<xstate165.PromiseActorLogic<OcrData, {
195
195
  isSecondId: boolean;
196
- }, xstate67.EventObject>> | xstate67.ActorRefFromLogic<xstate67.PromiseActorLogic<UpdateOcrResponse, {
196
+ }, xstate165.EventObject>> | xstate165.ActorRefFromLogic<xstate165.PromiseActorLogic<UpdateOcrResponse, {
197
197
  params: UpdateOcrDataParams;
198
198
  isSecondId: boolean;
199
- }, xstate67.EventObject>> | undefined;
200
- }, xstate67.Values<{
199
+ }, xstate165.EventObject>> | undefined;
200
+ }, xstate165.Values<{
201
201
  getOcrData: {
202
202
  src: "getOcrData";
203
- logic: xstate67.PromiseActorLogic<OcrData, {
203
+ logic: xstate165.PromiseActorLogic<OcrData, {
204
204
  isSecondId: boolean;
205
- }, xstate67.EventObject>;
205
+ }, xstate165.EventObject>;
206
206
  id: string | undefined;
207
207
  };
208
208
  updateOcrData: {
209
209
  src: "updateOcrData";
210
- logic: xstate67.PromiseActorLogic<UpdateOcrResponse, {
210
+ logic: xstate165.PromiseActorLogic<UpdateOcrResponse, {
211
211
  params: UpdateOcrDataParams;
212
212
  isSecondId: boolean;
213
- }, xstate67.EventObject>;
213
+ }, xstate165.EventObject>;
214
214
  id: string | undefined;
215
215
  };
216
- }>, xstate67.Values<{
216
+ }>, xstate165.Values<{
217
217
  setError: {
218
218
  type: "setError";
219
- params: xstate67.NonReducibleUnknown;
219
+ params: xstate165.NonReducibleUnknown;
220
220
  };
221
221
  setInitialData: {
222
222
  type: "setInitialData";
223
- params: xstate67.NonReducibleUnknown;
223
+ params: xstate165.NonReducibleUnknown;
224
224
  };
225
225
  updateField: {
226
226
  type: "updateField";
227
- params: xstate67.NonReducibleUnknown;
227
+ params: xstate165.NonReducibleUnknown;
228
228
  };
229
229
  clearFieldValidationError: {
230
230
  type: "clearFieldValidationError";
231
- params: xstate67.NonReducibleUnknown;
231
+ params: xstate165.NonReducibleUnknown;
232
232
  };
233
233
  setOcrValidationErrors: {
234
234
  type: "setOcrValidationErrors";
235
- params: xstate67.NonReducibleUnknown;
235
+ params: xstate165.NonReducibleUnknown;
236
236
  };
237
237
  validateFormField: {
238
238
  type: "validateFormField";
239
- params: xstate67.NonReducibleUnknown;
239
+ params: xstate165.NonReducibleUnknown;
240
240
  };
241
241
  beginSecondIdOcrPhase: {
242
242
  type: "beginSecondIdOcrPhase";
243
- params: xstate67.NonReducibleUnknown;
243
+ params: xstate165.NonReducibleUnknown;
244
244
  };
245
245
  resetForRetry: {
246
246
  type: "resetForRetry";
247
- params: xstate67.NonReducibleUnknown;
247
+ params: xstate165.NonReducibleUnknown;
248
248
  };
249
249
  computeValidationResult: {
250
250
  type: "computeValidationResult";
251
- params: xstate67.NonReducibleUnknown;
251
+ params: xstate165.NonReducibleUnknown;
252
252
  };
253
- }>, xstate67.Values<{
253
+ }>, xstate165.Values<{
254
254
  isOcrEditable: {
255
255
  type: "isOcrEditable";
256
256
  params: unknown;
@@ -271,7 +271,7 @@ declare const idOcrStateMachine: xstate67.StateMachine<IdOcrContext, {
271
271
  type: "shouldProceedWithoutSubmitToSecondId";
272
272
  params: unknown;
273
273
  };
274
- }>, never, "error" | "idle" | "success" | "finished" | "loading" | "submitting" | "inputting" | "readonly" | "validatingContinue", string, IdOcrInput, xstate67.NonReducibleUnknown, xstate67.EventObject, xstate67.MetaObject, {
274
+ }>, never, "error" | "idle" | "success" | "finished" | "loading" | "submitting" | "inputting" | "readonly" | "validatingContinue", string, IdOcrInput, xstate165.NonReducibleUnknown, xstate165.EventObject, xstate165.MetaObject, {
275
275
  readonly id: "idOcr";
276
276
  readonly initial: "idle";
277
277
  readonly context: ({
@@ -280,70 +280,70 @@ declare const idOcrStateMachine: xstate67.StateMachine<IdOcrContext, {
280
280
  spawn: {
281
281
  <TSrc extends "getOcrData" | "updateOcrData">(logic: TSrc, ...[options]: ({
282
282
  src: "getOcrData";
283
- logic: xstate67.PromiseActorLogic<OcrData, {
283
+ logic: xstate165.PromiseActorLogic<OcrData, {
284
284
  isSecondId: boolean;
285
- }, xstate67.EventObject>;
285
+ }, xstate165.EventObject>;
286
286
  id: string | undefined;
287
287
  } extends infer T ? T extends {
288
288
  src: "getOcrData";
289
- logic: xstate67.PromiseActorLogic<OcrData, {
289
+ logic: xstate165.PromiseActorLogic<OcrData, {
290
290
  isSecondId: boolean;
291
- }, xstate67.EventObject>;
291
+ }, xstate165.EventObject>;
292
292
  id: string | undefined;
293
293
  } ? T extends {
294
294
  src: TSrc;
295
- } ? xstate67.ConditionalRequired<[options?: ({
295
+ } ? xstate165.ConditionalRequired<[options?: ({
296
296
  id?: T["id"] | undefined;
297
297
  systemId?: string;
298
- input?: xstate67.InputFrom<T["logic"]> | undefined;
298
+ input?: xstate165.InputFrom<T["logic"]> | undefined;
299
299
  syncSnapshot?: boolean;
300
- } & { [K in xstate67.RequiredActorOptions<T>]: unknown }) | undefined], xstate67.IsNotNever<xstate67.RequiredActorOptions<T>>> : never : never : never) | ({
300
+ } & { [K in xstate165.RequiredActorOptions<T>]: unknown }) | undefined], xstate165.IsNotNever<xstate165.RequiredActorOptions<T>>> : never : never : never) | ({
301
301
  src: "updateOcrData";
302
- logic: xstate67.PromiseActorLogic<UpdateOcrResponse, {
302
+ logic: xstate165.PromiseActorLogic<UpdateOcrResponse, {
303
303
  params: UpdateOcrDataParams;
304
304
  isSecondId: boolean;
305
- }, xstate67.EventObject>;
305
+ }, xstate165.EventObject>;
306
306
  id: string | undefined;
307
307
  } extends infer T_1 ? T_1 extends {
308
308
  src: "updateOcrData";
309
- logic: xstate67.PromiseActorLogic<UpdateOcrResponse, {
309
+ logic: xstate165.PromiseActorLogic<UpdateOcrResponse, {
310
310
  params: UpdateOcrDataParams;
311
311
  isSecondId: boolean;
312
- }, xstate67.EventObject>;
312
+ }, xstate165.EventObject>;
313
313
  id: string | undefined;
314
314
  } ? T_1 extends {
315
315
  src: TSrc;
316
- } ? xstate67.ConditionalRequired<[options?: ({
316
+ } ? xstate165.ConditionalRequired<[options?: ({
317
317
  id?: T_1["id"] | undefined;
318
318
  systemId?: string;
319
- input?: xstate67.InputFrom<T_1["logic"]> | undefined;
319
+ input?: xstate165.InputFrom<T_1["logic"]> | undefined;
320
320
  syncSnapshot?: boolean;
321
- } & { [K_1 in xstate67.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate67.IsNotNever<xstate67.RequiredActorOptions<T_1>>> : never : never : never)): xstate67.ActorRefFromLogic<xstate67.GetConcreteByKey<xstate67.Values<{
321
+ } & { [K_1 in xstate165.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate165.IsNotNever<xstate165.RequiredActorOptions<T_1>>> : never : never : never)): xstate165.ActorRefFromLogic<xstate165.GetConcreteByKey<xstate165.Values<{
322
322
  getOcrData: {
323
323
  src: "getOcrData";
324
- logic: xstate67.PromiseActorLogic<OcrData, {
324
+ logic: xstate165.PromiseActorLogic<OcrData, {
325
325
  isSecondId: boolean;
326
- }, xstate67.EventObject>;
326
+ }, xstate165.EventObject>;
327
327
  id: string | undefined;
328
328
  };
329
329
  updateOcrData: {
330
330
  src: "updateOcrData";
331
- logic: xstate67.PromiseActorLogic<UpdateOcrResponse, {
331
+ logic: xstate165.PromiseActorLogic<UpdateOcrResponse, {
332
332
  params: UpdateOcrDataParams;
333
333
  isSecondId: boolean;
334
- }, xstate67.EventObject>;
334
+ }, xstate165.EventObject>;
335
335
  id: string | undefined;
336
336
  };
337
337
  }>, "src", TSrc>["logic"]>;
338
- <TLogic extends xstate67.AnyActorLogic>(src: TLogic, ...[options]: xstate67.ConditionalRequired<[options?: ({
338
+ <TLogic extends xstate165.AnyActorLogic>(src: TLogic, ...[options]: xstate165.ConditionalRequired<[options?: ({
339
339
  id?: never;
340
340
  systemId?: string;
341
- input?: xstate67.InputFrom<TLogic> | undefined;
341
+ input?: xstate165.InputFrom<TLogic> | undefined;
342
342
  syncSnapshot?: boolean;
343
- } & { [K in xstate67.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate67.IsNotNever<xstate67.RequiredLogicInput<TLogic>>>): xstate67.ActorRefFromLogic<TLogic>;
343
+ } & { [K in xstate165.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate165.IsNotNever<xstate165.RequiredLogicInput<TLogic>>>): xstate165.ActorRefFromLogic<TLogic>;
344
344
  };
345
345
  input: IdOcrInput;
346
- self: xstate67.ActorRef<xstate67.MachineSnapshot<IdOcrContext, {
346
+ self: xstate165.ActorRef<xstate165.MachineSnapshot<IdOcrContext, {
347
347
  type: "LOAD";
348
348
  } | {
349
349
  type: "DATA_CHANGED";
@@ -356,7 +356,7 @@ declare const idOcrStateMachine: xstate67.StateMachine<IdOcrContext, {
356
356
  type: "CONTINUE";
357
357
  } | {
358
358
  type: "RETRY";
359
- }, Record<string, xstate67.AnyActorRef | undefined>, xstate67.StateValue, string, unknown, any, any>, {
359
+ }, Record<string, xstate165.AnyActorRef | undefined>, xstate165.StateValue, string, unknown, any, any>, {
360
360
  type: "LOAD";
361
361
  } | {
362
362
  type: "DATA_CHANGED";
@@ -369,7 +369,7 @@ declare const idOcrStateMachine: xstate67.StateMachine<IdOcrContext, {
369
369
  type: "CONTINUE";
370
370
  } | {
371
371
  type: "RETRY";
372
- }, xstate67.AnyEventObject>;
372
+ }, xstate165.AnyEventObject>;
373
373
  }) => {
374
374
  config: IdOcrConfig;
375
375
  formData: UpdateOcrDataParams;
@@ -405,7 +405,7 @@ declare const idOcrStateMachine: xstate67.StateMachine<IdOcrContext, {
405
405
  } | {
406
406
  type: "RETRY";
407
407
  };
408
- self: xstate67.ActorRef<xstate67.MachineSnapshot<IdOcrContext, {
408
+ self: xstate165.ActorRef<xstate165.MachineSnapshot<IdOcrContext, {
409
409
  type: "LOAD";
410
410
  } | {
411
411
  type: "DATA_CHANGED";
@@ -418,7 +418,7 @@ declare const idOcrStateMachine: xstate67.StateMachine<IdOcrContext, {
418
418
  type: "CONTINUE";
419
419
  } | {
420
420
  type: "RETRY";
421
- }, Record<string, xstate67.AnyActorRef>, xstate67.StateValue, string, unknown, any, any>, {
421
+ }, Record<string, xstate165.AnyActorRef>, xstate165.StateValue, string, unknown, any, any>, {
422
422
  type: "LOAD";
423
423
  } | {
424
424
  type: "DATA_CHANGED";
@@ -431,7 +431,7 @@ declare const idOcrStateMachine: xstate67.StateMachine<IdOcrContext, {
431
431
  type: "CONTINUE";
432
432
  } | {
433
433
  type: "RETRY";
434
- }, xstate67.AnyEventObject>;
434
+ }, xstate165.AnyEventObject>;
435
435
  }) => {
436
436
  isSecondId: boolean;
437
437
  };
@@ -510,7 +510,7 @@ declare const idOcrStateMachine: xstate67.StateMachine<IdOcrContext, {
510
510
  } | {
511
511
  type: "RETRY";
512
512
  };
513
- self: xstate67.ActorRef<xstate67.MachineSnapshot<IdOcrContext, {
513
+ self: xstate165.ActorRef<xstate165.MachineSnapshot<IdOcrContext, {
514
514
  type: "LOAD";
515
515
  } | {
516
516
  type: "DATA_CHANGED";
@@ -523,7 +523,7 @@ declare const idOcrStateMachine: xstate67.StateMachine<IdOcrContext, {
523
523
  type: "CONTINUE";
524
524
  } | {
525
525
  type: "RETRY";
526
- }, Record<string, xstate67.AnyActorRef>, xstate67.StateValue, string, unknown, any, any>, {
526
+ }, Record<string, xstate165.AnyActorRef>, xstate165.StateValue, string, unknown, any, any>, {
527
527
  type: "LOAD";
528
528
  } | {
529
529
  type: "DATA_CHANGED";
@@ -536,7 +536,7 @@ declare const idOcrStateMachine: xstate67.StateMachine<IdOcrContext, {
536
536
  type: "CONTINUE";
537
537
  } | {
538
538
  type: "RETRY";
539
- }, xstate67.AnyEventObject>;
539
+ }, xstate165.AnyEventObject>;
540
540
  }) => {
541
541
  params: UpdateOcrDataParams;
542
542
  isSecondId: boolean;
package/dist/id.esm.js CHANGED
@@ -1,9 +1,9 @@
1
- import "./BaseWasmProvider-CVktpSfA.esm.js";
1
+ import "./BaseWasmProvider-rCpBxg2n.esm.js";
2
2
  import "./BrowserTimerProvider-BZGH3sYJ.esm.js";
3
3
  import "./api-eqRXuVG-.esm.js";
4
4
  import "./events-Bt1azl2B.esm.js";
5
5
  import "./endpoints-B3V1U9Dg.esm.js";
6
- import "./session-BxtuBDwz.esm.js";
6
+ import "./session-CCVzeyXu.esm.js";
7
7
  import "./IpifyProvider-ByL6JYxg.esm.js";
8
8
  import "./browserSimulation-CAH-V_iE.esm.js";
9
9
  import "./xstate.esm-7GmmAwg6.esm.js";
@@ -11,7 +11,7 @@ import "./BrowserStorageProvider-CoUfuy0u.esm.js";
11
11
  import "./ITimerCapability-3xSd36bT.esm.js";
12
12
  import "./camera-Bm3wb89Z.esm.js";
13
13
  import "./deepsightService-Dv6kvzph.esm.js";
14
- import "./recordingService-Dp-3nA-h.esm.js";
14
+ import "./recordingService-D7oQbN6c.esm.js";
15
15
  import "./platform-CDh4uv5Y.esm.js";
16
16
  import "./backCameraStream-BKC7QXRJ.esm.js";
17
17
  import "./getBrowser-Bl0PlyDu.esm.js";
@@ -19,7 +19,7 @@ import "./stats-qUsejORa.esm.js";
19
19
  import "./getDeviceClass-C1ZS2XJL.esm.js";
20
20
  import "./MotionSensorProvider-Dt_lF3Z8.esm.js";
21
21
  import "./permissionServices-Cdxqlwqz.esm.js";
22
- import { a as preloadIdRecordingProvider, c as stopRecording, d as uploadManualIdFile, f as validateUploadResponse, g as MANUAL_UPLOAD_MAX_RETRIES, h as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, i as initializeIdCapture, l as stopStream, m as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, o as processId, p as ID_ERROR_CODES, s as startRecordingSession, t as idCaptureMachine, u as uploadIdImage } from "./idCaptureStateMachine-g5cYnHGD.esm.js";
23
- import { r as createIdCaptureActor, t as createIdCaptureManager } from "./idCaptureManager-DbP4E8PO.esm.js";
22
+ import { a as preloadIdRecordingProvider, c as stopRecording, d as uploadManualIdFile, f as validateUploadResponse, g as MANUAL_UPLOAD_MAX_RETRIES, h as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, i as initializeIdCapture, l as stopStream, m as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, o as processId, p as ID_ERROR_CODES, s as startRecordingSession, t as idCaptureMachine, u as uploadIdImage } from "./idCaptureStateMachine-DiUfiVtU.esm.js";
23
+ import { r as createIdCaptureActor, t as createIdCaptureManager } from "./idCaptureManager-WnnPecUR.esm.js";
24
24
 
25
25
  export { ID_ERROR_CODES, MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, MANUAL_UPLOAD_MAX_RETRIES, createIdCaptureActor, createIdCaptureManager, idCaptureMachine, initializeIdCapture, preloadIdRecordingProvider, processId, startRecordingSession, stopRecording, stopStream, uploadIdImage, uploadManualIdFile, validateUploadResponse };
@@ -1,7 +1,7 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Bt1azl2B.esm.js";
2
2
  import { o as createActor, s as createManager } from "./xstate.esm-7GmmAwg6.esm.js";
3
3
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-CoUfuy0u.esm.js";
4
- import { g as MANUAL_UPLOAD_MAX_RETRIES, n as mapDigitalIdScreenName, r as DIGITAL_UPLOAD_MAX_RETRIES, t as idCaptureMachine } from "./idCaptureStateMachine-g5cYnHGD.esm.js";
4
+ import { g as MANUAL_UPLOAD_MAX_RETRIES, n as mapDigitalIdScreenName, r as DIGITAL_UPLOAD_MAX_RETRIES, t as idCaptureMachine } from "./idCaptureStateMachine-DiUfiVtU.esm.js";
5
5
 
6
6
  //#region src/modules/id/idCaptureActor.ts
7
7
  function createIdCaptureActor(options) {
@@ -1,12 +1,12 @@
1
- import { d as IdCaptureModelType, r as mlWasmJSApi_default, t as BaseWasmProvider, u as WasmPipelineType } from "./BaseWasmProvider-CVktpSfA.esm.js";
1
+ import { d as IdCaptureModelType, r as mlWasmJSApi_default, t as BaseWasmProvider, u as WasmPipelineType } from "./BaseWasmProvider-rCpBxg2n.esm.js";
2
2
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BZGH3sYJ.esm.js";
3
3
  import { r as getToken, t as api } from "./api-eqRXuVG-.esm.js";
4
4
  import { S as revokeObjectURL } from "./events-Bt1azl2B.esm.js";
5
5
  import { t as endpoints } from "./endpoints-B3V1U9Dg.esm.js";
6
- import { t as getDisableIpify } from "./session-BxtuBDwz.esm.js";
6
+ import { t as getDisableIpify } from "./session-CCVzeyXu.esm.js";
7
7
  import { a as fromPromise, i as fromCallback, n as sendTo, r as assign, t as setup } from "./xstate.esm-7GmmAwg6.esm.js";
8
8
  import { n as IncodeCanvas } from "./deepsightService-Dv6kvzph.esm.js";
9
- import { _ as stopRecording$1, a as StreamCanvasCapture, g as startRecording, h as createRecordingSession, i as flagIdManualReview, n as preloadOpenViduProvider, v as StreamCanvasProcessingSession } from "./recordingService-Dp-3nA-h.esm.js";
9
+ import { _ as stopRecording$1, a as StreamCanvasCapture, g as startRecording, h as createRecordingSession, i as flagIdManualReview, n as preloadOpenViduProvider, v as StreamCanvasProcessingSession } from "./recordingService-D7oQbN6c.esm.js";
10
10
  import { n as isDesktop } from "./platform-CDh4uv5Y.esm.js";
11
11
  import { t as getBackCameraStream } from "./backCameraStream-BKC7QXRJ.esm.js";
12
12
  import { r as getWindowDimensions } from "./getBrowser-Bl0PlyDu.esm.js";
@@ -1469,7 +1469,7 @@ const checkMotionSensorActor = fromCallback(({ input, sendBack }) => {
1469
1469
  });
1470
1470
  const initializeDeepsightSessionActor = fromPromise(async ({ input }) => {
1471
1471
  if (!input.dependencies) return;
1472
- const { loadDeepsightSession } = await import("./deepsightLoader-VJ3nFjie.esm.js");
1472
+ const { loadDeepsightSession } = await import("./deepsightLoader-DVjWQrsv.esm.js");
1473
1473
  return loadDeepsightSession({
1474
1474
  ds: input.ds,
1475
1475
  storage: input.dependencies.storage,