@incodetech/core 0.0.0-dev-20260511-10b1737 → 0.0.0-dev-20260512-e44bacb

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 (54) hide show
  1. package/dist/ae-signature.d.ts +1 -1
  2. package/dist/authentication.esm.js +12 -12
  3. package/dist/{authenticationManager-CVoZsbJX.esm.js → authenticationManager-D0Yv5R02.esm.js} +1 -1
  4. package/dist/{authenticationStateMachine-DyimpeBS.esm.js → authenticationStateMachine-CFiP6P_V.esm.js} +3 -3
  5. package/dist/{backCameraStream-bztcEWzY.esm.js → backCameraStream-DWZ1cNVA.esm.js} +1 -1
  6. package/dist/camera.d.ts +0 -10
  7. package/dist/camera.esm.js +3 -3
  8. package/dist/consent.d.ts +53 -53
  9. package/dist/cpf-ocr.d.ts +17 -17
  10. package/dist/{deepsightLoader-HPZa6gSA.esm.js → deepsightLoader-CFNSfs2N.esm.js} +5 -5
  11. package/dist/{deepsightService-gNTXZu7Y.esm.js → deepsightService-IxmrmdKl.esm.js} +3 -3
  12. package/dist/device.esm.js +2 -2
  13. package/dist/document-capture.d.ts +74 -74
  14. package/dist/document-capture.esm.js +3 -3
  15. package/dist/document-upload.d.ts +43 -43
  16. package/dist/document-upload.esm.js +2 -2
  17. package/dist/{documentCaptureStateMachine-fpqYHdZV.esm.js → documentCaptureStateMachine-CuanhXvs.esm.js} +2 -2
  18. package/dist/ekyb.esm.js +3 -3
  19. package/dist/{ekybStateMachine-gQoTdfVu.esm.js → ekybStateMachine-Cq7M50sN.esm.js} +1 -1
  20. package/dist/electronic-signature.d.ts +1 -1
  21. package/dist/extensibility.esm.js +17 -17
  22. package/dist/{faceCaptureSetup-D3dirkMC.esm.js → faceCaptureSetup-zLRBv0-5.esm.js} +3 -6
  23. package/dist/flow.d.ts +2 -2
  24. package/dist/flow.esm.js +2 -2
  25. package/dist/{flowServices-DHz5fm4b.esm.js → flowServices-CLnM71N7.esm.js} +1 -1
  26. package/dist/{getDeviceClass-BTVS59zg.esm.js → getDeviceClass-DmoqR7G2.esm.js} +1 -1
  27. package/dist/home.d.ts +10 -10
  28. package/dist/id-ocr.d.ts +55 -55
  29. package/dist/id.esm.js +12 -12
  30. package/dist/{idCaptureManager-Ddv8sncg.esm.js → idCaptureManager-vkJ6QLuk.esm.js} +1 -1
  31. package/dist/{idCaptureStateMachine-CwKipvzM.esm.js → idCaptureStateMachine-C94NHeR2.esm.js} +10 -14
  32. package/dist/identity-reuse.d.ts +40 -40
  33. package/dist/{index-C7cFplmZ.d.ts → index-CNrrk1gH.d.ts} +119 -119
  34. package/dist/index.esm.js +2 -2
  35. package/dist/mandatory-consent.d.ts +50 -50
  36. package/dist/permissionServices-ACBX6sNZ.esm.js +50 -0
  37. package/dist/qe-signature.d.ts +1 -1
  38. package/dist/{recordingService-Dc8qrd2u.esm.js → recordingService-BsYjkILQ.esm.js} +6 -6
  39. package/dist/selfie.esm.js +12 -12
  40. package/dist/{selfieManager-C55Fsp9Q.esm.js → selfieManager-ByCKxpZC.esm.js} +1 -1
  41. package/dist/{selfieStateMachine-CLqNjiIq.esm.js → selfieStateMachine-ecwZ7tWK.esm.js} +2 -2
  42. package/dist/{session-mATfRV08.esm.js → session-DWFMKdX6.esm.js} +1 -1
  43. package/dist/session.esm.js +1 -1
  44. package/dist/{setup-BScIlYqq.esm.js → setup-h75-vL1d.esm.js} +1 -1
  45. package/dist/stats.esm.js +1 -1
  46. package/dist/wasm.esm.js +2 -2
  47. package/dist/workflow.d.ts +123 -123
  48. package/dist/workflow.esm.js +17 -17
  49. package/package.json +1 -1
  50. package/dist/permissionServices-DIxFacTA.esm.js +0 -117
  51. /package/dist/{MotionSensorProvider-DuErU0Pn.esm.js → MotionSensorProvider-DJMsPght.esm.js} +0 -0
  52. /package/dist/{camera-PA2Ljri3.esm.js → camera-Bm3wb89Z.esm.js} +0 -0
  53. /package/dist/{getBrowser-jTObqSyg.esm.js → getBrowser-Y88tNVud.esm.js} +0 -0
  54. /package/dist/{stats-KJxmByg8.esm.js → stats-Bqq9IKre.esm.js} +0 -0
@@ -1,4 +1,4 @@
1
1
  import "./Manager-D9pehGyp.js";
2
2
  import "./Actor-YjWTo26u.js";
3
- import { a as AE_CONSENT_KEYS, c as ConsentKey, d as ElectronicSignatureVariant, f as QE_CONSENT_KEYS, g as getDefaultConsentChecks, h as getConsentKeys, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, o as AeConsentKey, p as QeConsentKey, r as createElectronicSignatureManager, s as ConsentChecks, t as ElectronicSignatureManager, u as ElectronicSignatureDocument } from "./index-C7cFplmZ.js";
3
+ import { a as AE_CONSENT_KEYS, c as ConsentKey, d as ElectronicSignatureVariant, f as QE_CONSENT_KEYS, g as getDefaultConsentChecks, h as getConsentKeys, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, o as AeConsentKey, p as QeConsentKey, r as createElectronicSignatureManager, s as ConsentChecks, t as ElectronicSignatureManager, u as ElectronicSignatureDocument } from "./index-CNrrk1gH.js";
4
4
  export { AE_CONSENT_KEYS, AeConsentKey, ConsentChecks, ConsentKey, ElectronicSignatureConfig, ElectronicSignatureDocument, ElectronicSignatureManager, ElectronicSignatureState, ElectronicSignatureVariant, QE_CONSENT_KEYS, QeConsentKey, areAllConsented, createElectronicSignatureManager, electronicSignatureMachine, getConsentKeys, getDefaultConsentChecks };
@@ -4,32 +4,32 @@ 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-mATfRV08.esm.js";
7
+ import { a as FingerprintProvider, o as getDeviceFingerprintInfo, t as getDisableIpify } from "./session-DWFMKdX6.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-ByAGjOLF.esm.js";
12
12
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-CoUfuy0u.esm.js";
13
- import "./recordingService-Dc8qrd2u.esm.js";
14
- import "./deepsightService-gNTXZu7Y.esm.js";
15
- import "./permissionServices-DIxFacTA.esm.js";
16
- import "./camera-PA2Ljri3.esm.js";
17
- import "./getBrowser-jTObqSyg.esm.js";
18
- import "./stats-KJxmByg8.esm.js";
19
- import "./MotionSensorProvider-DuErU0Pn.esm.js";
13
+ import "./recordingService-BsYjkILQ.esm.js";
14
+ import "./deepsightService-IxmrmdKl.esm.js";
15
+ import "./camera-Bm3wb89Z.esm.js";
16
+ import "./getBrowser-Y88tNVud.esm.js";
17
+ import "./stats-Bqq9IKre.esm.js";
18
+ import "./MotionSensorProvider-DJMsPght.esm.js";
19
+ import "./permissionServices-ACBX6sNZ.esm.js";
20
20
  import "./platform-Dpzd9p3X.esm.js";
21
21
  import "./ITimerCapability-2pw-S97e.esm.js";
22
- import "./backCameraStream-bztcEWzY.esm.js";
23
- import "./getDeviceClass-BTVS59zg.esm.js";
24
- import { t as faceCaptureMachine } from "./faceCaptureSetup-D3dirkMC.esm.js";
25
- import "./authenticationStateMachine-DyimpeBS.esm.js";
26
- import { n as createAuthenticationManagerFromActor } from "./authenticationManager-CVoZsbJX.esm.js";
22
+ import "./backCameraStream-DWZ1cNVA.esm.js";
23
+ import "./getDeviceClass-DmoqR7G2.esm.js";
24
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-zLRBv0-5.esm.js";
25
+ import "./authenticationStateMachine-CFiP6P_V.esm.js";
26
+ import { n as createAuthenticationManagerFromActor } from "./authenticationManager-D0Yv5R02.esm.js";
27
27
  import "./emailStateMachine-BW4tiYqt.esm.js";
28
28
  import { n as createEmailManagerFromActor } from "./emailManager-CJAgi4be.esm.js";
29
- import "./selfieStateMachine-CLqNjiIq.esm.js";
30
- import { n as createSelfieManagerFromActor } from "./selfieManager-C55Fsp9Q.esm.js";
31
- import "./idCaptureStateMachine-CwKipvzM.esm.js";
32
- import { n as createIdCaptureManagerFromActor } from "./idCaptureManager-Ddv8sncg.esm.js";
29
+ import "./selfieStateMachine-ecwZ7tWK.esm.js";
30
+ import { n as createSelfieManagerFromActor } from "./selfieManager-ByCKxpZC.esm.js";
31
+ import "./idCaptureStateMachine-C94NHeR2.esm.js";
32
+ import { n as createIdCaptureManagerFromActor } from "./idCaptureManager-vkJ6QLuk.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
- import { _ as StreamCanvasCapture, a as initializeDeepsightSession, c as stopStream, h as flagFaceManualReview, i as initializeCamera, n as preloadOpenViduProvider, o as sendLabelInspectionEvent, r as encryptSelfieImage, s as startDetection, t as createRecordingService, v as FACE_ERROR_CODES } from "./recordingService-Dc8qrd2u.esm.js";
4
- import { n as requestPermission, r as clearCameraPermissionCache, t as checkPermission } from "./permissionServices-DIxFacTA.esm.js";
3
+ import { _ as StreamCanvasCapture, a as initializeDeepsightSession, c as stopStream, h as flagFaceManualReview, i as initializeCamera, n as preloadOpenViduProvider, o as sendLabelInspectionEvent, r as encryptSelfieImage, s as startDetection, t as createRecordingService, v as FACE_ERROR_CODES } from "./recordingService-BsYjkILQ.esm.js";
4
+ import { n as requestPermission, t as checkPermission } from "./permissionServices-ACBX6sNZ.esm.js";
5
5
 
6
6
  //#region src/internal/faceCapture/faceCaptureSetup.ts
7
7
  const getAttemptsFromConfig = (config) => {
@@ -190,10 +190,7 @@ const _faceCaptureMachine = setup({
190
190
  context.recordingService?.cleanup();
191
191
  },
192
192
  setPermissionResultFromEvent: assign({ permissionResult: ({ event }) => event.output }),
193
- setPermissionDenied: assign({ permissionResult: () => {
194
- clearCameraPermissionCache();
195
- return "denied";
196
- } }),
193
+ setPermissionDenied: assign({ permissionResult: () => "denied" }),
197
194
  setPermissionRefresh: assign({ permissionResult: () => "refresh" }),
198
195
  setDeepsightServiceFromEvent: assign({ deepsightService: ({ event }) => event.output }),
199
196
  setErrorFromEvent: assign({ error: ({ event }) => String(event.error) }),
package/dist/flow.d.ts CHANGED
@@ -7,7 +7,7 @@ import { i as FlowModuleConfig, n as Flow, r as FlowModule } from "./types-BA181
7
7
  import { n as GetFinishStatusFn, t as FinishStatus } from "./flowCompletionService-C376JZwA.js";
8
8
  import { o as FlowEventSubscribable } from "./index-CmFkidgy.js";
9
9
  import { t as ModuleRegistry } from "./types-WKAQ7Ai4.js";
10
- import * as xstate67 from "xstate";
10
+ import * as xstate963 from "xstate";
11
11
 
12
12
  //#region src/modules/flow/flowUtils.d.ts
13
13
  type NormalizeFlowModulesOptions = {
@@ -55,7 +55,7 @@ type GetFlow = (signal: AbortSignal, options?: GetFlowOptions) => Promise<Flow>;
55
55
  declare const getFlow: GetFlow;
56
56
  //#endregion
57
57
  //#region src/modules/flow/noOpFlowModuleMachine.d.ts
58
- declare const noOpFlowModuleMachine: xstate67.StateMachine<xstate67.MachineContext, xstate67.AnyEventObject, {}, never, never, never, never, "finished", string, xstate67.NonReducibleUnknown, xstate67.NonReducibleUnknown, xstate67.EventObject, xstate67.MetaObject, {
58
+ declare const noOpFlowModuleMachine: xstate963.StateMachine<xstate963.MachineContext, xstate963.AnyEventObject, {}, never, never, never, never, "finished", string, xstate963.NonReducibleUnknown, xstate963.NonReducibleUnknown, xstate963.EventObject, xstate963.MetaObject, {
59
59
  readonly id: "noOpFlowModule";
60
60
  readonly initial: "finished";
61
61
  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-mATfRV08.esm.js";
4
+ import "./session-DWFMKdX6.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-DHz5fm4b.esm.js";
8
+ import { n as getRequiredWasmPipelines, r as normalizeFlowModules, t as getFlow } from "./flowServices-CLnM71N7.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-mATfRV08.esm.js";
3
+ import { n as getSessionFingerprintResult, r as initializeSession } from "./session-DWFMKdX6.esm.js";
4
4
 
5
5
  //#region src/modules/flow/flowUtils.ts
6
6
  const WASM_MODULE_PIPELINES = {
@@ -1,4 +1,4 @@
1
- import { n as getDeviceInfo } from "./getBrowser-jTObqSyg.esm.js";
1
+ import { n as getDeviceInfo } from "./getBrowser-Y88tNVud.esm.js";
2
2
 
3
3
  //#region src/internal/device/getDeviceClass.ts
4
4
  function getDeviceClass() {
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-BA181GDD.js";
5
- import * as xstate583 from "xstate";
5
+ import * as xstate72 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: xstate583.StateMachine<HomeContext, {
37
+ declare const homeMachine: xstate72.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, xstate583.NonReducibleUnknown, xstate583.EventObject, xstate583.MetaObject, {
43
+ }, {}, never, never, never, never, "idle" | "finished" | "main", string, HomeInput, xstate72.NonReducibleUnknown, xstate72.EventObject, xstate72.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): xstate583.ActorRefFromLogic<never>;
51
- <TLogic extends xstate583.AnyActorLogic>(src: TLogic, ...[options]: xstate583.ConditionalRequired<[options?: ({
50
+ <TSrc extends never>(logic: TSrc, ...[options]: never): xstate72.ActorRefFromLogic<never>;
51
+ <TLogic extends xstate72.AnyActorLogic>(src: TLogic, ...[options]: xstate72.ConditionalRequired<[options?: ({
52
52
  id?: never;
53
53
  systemId?: string;
54
- input?: xstate583.InputFrom<TLogic> | undefined;
54
+ input?: xstate72.InputFrom<TLogic> | undefined;
55
55
  syncSnapshot?: boolean;
56
- } & { [K in xstate583.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate583.IsNotNever<xstate583.RequiredLogicInput<TLogic>>>): xstate583.ActorRefFromLogic<TLogic>;
56
+ } & { [K in xstate72.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate72.IsNotNever<xstate72.RequiredLogicInput<TLogic>>>): xstate72.ActorRefFromLogic<TLogic>;
57
57
  };
58
58
  input: HomeInput;
59
- self: xstate583.ActorRef<xstate583.MachineSnapshot<HomeContext, {
59
+ self: xstate72.ActorRef<xstate72.MachineSnapshot<HomeContext, {
60
60
  type: "LOAD";
61
61
  } | {
62
62
  type: "COMPLETE";
63
63
  } | {
64
64
  type: "RESET";
65
- }, Record<string, xstate583.AnyActorRef | undefined>, xstate583.StateValue, string, unknown, any, any>, {
65
+ }, Record<string, xstate72.AnyActorRef | undefined>, xstate72.StateValue, string, unknown, any, any>, {
66
66
  type: "LOAD";
67
67
  } | {
68
68
  type: "COMPLETE";
69
69
  } | {
70
70
  type: "RESET";
71
- }, xstate583.AnyEventObject>;
71
+ }, xstate72.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 xstate510 from "xstate";
3
+ import * as xstate0 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: xstate510.StateMachine<IdOcrContext, {
180
+ declare const idOcrStateMachine: xstate0.StateMachine<IdOcrContext, {
181
181
  type: "LOAD";
182
182
  } | {
183
183
  type: "DATA_CHANGED";
@@ -191,66 +191,66 @@ declare const idOcrStateMachine: xstate510.StateMachine<IdOcrContext, {
191
191
  } | {
192
192
  type: "RETRY";
193
193
  }, {
194
- [x: string]: xstate510.ActorRefFromLogic<xstate510.PromiseActorLogic<OcrData, {
194
+ [x: string]: xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<OcrData, {
195
195
  isSecondId: boolean;
196
- }, xstate510.EventObject>> | xstate510.ActorRefFromLogic<xstate510.PromiseActorLogic<UpdateOcrResponse, {
196
+ }, xstate0.EventObject>> | xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<UpdateOcrResponse, {
197
197
  params: UpdateOcrDataParams;
198
198
  isSecondId: boolean;
199
- }, xstate510.EventObject>> | undefined;
200
- }, xstate510.Values<{
199
+ }, xstate0.EventObject>> | undefined;
200
+ }, xstate0.Values<{
201
201
  getOcrData: {
202
202
  src: "getOcrData";
203
- logic: xstate510.PromiseActorLogic<OcrData, {
203
+ logic: xstate0.PromiseActorLogic<OcrData, {
204
204
  isSecondId: boolean;
205
- }, xstate510.EventObject>;
205
+ }, xstate0.EventObject>;
206
206
  id: string | undefined;
207
207
  };
208
208
  updateOcrData: {
209
209
  src: "updateOcrData";
210
- logic: xstate510.PromiseActorLogic<UpdateOcrResponse, {
210
+ logic: xstate0.PromiseActorLogic<UpdateOcrResponse, {
211
211
  params: UpdateOcrDataParams;
212
212
  isSecondId: boolean;
213
- }, xstate510.EventObject>;
213
+ }, xstate0.EventObject>;
214
214
  id: string | undefined;
215
215
  };
216
- }>, xstate510.Values<{
217
- setError: {
218
- type: "setError";
219
- params: xstate510.NonReducibleUnknown;
220
- };
216
+ }>, xstate0.Values<{
221
217
  setInitialData: {
222
218
  type: "setInitialData";
223
- params: xstate510.NonReducibleUnknown;
219
+ params: xstate0.NonReducibleUnknown;
224
220
  };
225
221
  updateField: {
226
222
  type: "updateField";
227
- params: xstate510.NonReducibleUnknown;
223
+ params: xstate0.NonReducibleUnknown;
228
224
  };
229
225
  clearFieldValidationError: {
230
226
  type: "clearFieldValidationError";
231
- params: xstate510.NonReducibleUnknown;
227
+ params: xstate0.NonReducibleUnknown;
232
228
  };
233
229
  setOcrValidationErrors: {
234
230
  type: "setOcrValidationErrors";
235
- params: xstate510.NonReducibleUnknown;
231
+ params: xstate0.NonReducibleUnknown;
236
232
  };
237
233
  validateFormField: {
238
234
  type: "validateFormField";
239
- params: xstate510.NonReducibleUnknown;
235
+ params: xstate0.NonReducibleUnknown;
236
+ };
237
+ setError: {
238
+ type: "setError";
239
+ params: xstate0.NonReducibleUnknown;
240
240
  };
241
241
  beginSecondIdOcrPhase: {
242
242
  type: "beginSecondIdOcrPhase";
243
- params: xstate510.NonReducibleUnknown;
243
+ params: xstate0.NonReducibleUnknown;
244
244
  };
245
245
  resetForRetry: {
246
246
  type: "resetForRetry";
247
- params: xstate510.NonReducibleUnknown;
247
+ params: xstate0.NonReducibleUnknown;
248
248
  };
249
249
  computeValidationResult: {
250
250
  type: "computeValidationResult";
251
- params: xstate510.NonReducibleUnknown;
251
+ params: xstate0.NonReducibleUnknown;
252
252
  };
253
- }>, xstate510.Values<{
253
+ }>, xstate0.Values<{
254
254
  isOcrEditable: {
255
255
  type: "isOcrEditable";
256
256
  params: unknown;
@@ -271,7 +271,7 @@ declare const idOcrStateMachine: xstate510.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, xstate510.NonReducibleUnknown, xstate510.EventObject, xstate510.MetaObject, {
274
+ }>, never, "error" | "idle" | "success" | "finished" | "loading" | "inputting" | "readonly" | "validatingContinue" | "submitting", string, IdOcrInput, xstate0.NonReducibleUnknown, xstate0.EventObject, xstate0.MetaObject, {
275
275
  readonly id: "idOcr";
276
276
  readonly initial: "idle";
277
277
  readonly context: ({
@@ -280,70 +280,70 @@ declare const idOcrStateMachine: xstate510.StateMachine<IdOcrContext, {
280
280
  spawn: {
281
281
  <TSrc extends "getOcrData" | "updateOcrData">(logic: TSrc, ...[options]: ({
282
282
  src: "getOcrData";
283
- logic: xstate510.PromiseActorLogic<OcrData, {
283
+ logic: xstate0.PromiseActorLogic<OcrData, {
284
284
  isSecondId: boolean;
285
- }, xstate510.EventObject>;
285
+ }, xstate0.EventObject>;
286
286
  id: string | undefined;
287
287
  } extends infer T ? T extends {
288
288
  src: "getOcrData";
289
- logic: xstate510.PromiseActorLogic<OcrData, {
289
+ logic: xstate0.PromiseActorLogic<OcrData, {
290
290
  isSecondId: boolean;
291
- }, xstate510.EventObject>;
291
+ }, xstate0.EventObject>;
292
292
  id: string | undefined;
293
293
  } ? T extends {
294
294
  src: TSrc;
295
- } ? xstate510.ConditionalRequired<[options?: ({
295
+ } ? xstate0.ConditionalRequired<[options?: ({
296
296
  id?: T["id"] | undefined;
297
297
  systemId?: string;
298
- input?: xstate510.InputFrom<T["logic"]> | undefined;
298
+ input?: xstate0.InputFrom<T["logic"]> | undefined;
299
299
  syncSnapshot?: boolean;
300
- } & { [K in xstate510.RequiredActorOptions<T>]: unknown }) | undefined], xstate510.IsNotNever<xstate510.RequiredActorOptions<T>>> : never : never : never) | ({
300
+ } & { [K in xstate0.RequiredActorOptions<T>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T>>> : never : never : never) | ({
301
301
  src: "updateOcrData";
302
- logic: xstate510.PromiseActorLogic<UpdateOcrResponse, {
302
+ logic: xstate0.PromiseActorLogic<UpdateOcrResponse, {
303
303
  params: UpdateOcrDataParams;
304
304
  isSecondId: boolean;
305
- }, xstate510.EventObject>;
305
+ }, xstate0.EventObject>;
306
306
  id: string | undefined;
307
307
  } extends infer T_1 ? T_1 extends {
308
308
  src: "updateOcrData";
309
- logic: xstate510.PromiseActorLogic<UpdateOcrResponse, {
309
+ logic: xstate0.PromiseActorLogic<UpdateOcrResponse, {
310
310
  params: UpdateOcrDataParams;
311
311
  isSecondId: boolean;
312
- }, xstate510.EventObject>;
312
+ }, xstate0.EventObject>;
313
313
  id: string | undefined;
314
314
  } ? T_1 extends {
315
315
  src: TSrc;
316
- } ? xstate510.ConditionalRequired<[options?: ({
316
+ } ? xstate0.ConditionalRequired<[options?: ({
317
317
  id?: T_1["id"] | undefined;
318
318
  systemId?: string;
319
- input?: xstate510.InputFrom<T_1["logic"]> | undefined;
319
+ input?: xstate0.InputFrom<T_1["logic"]> | undefined;
320
320
  syncSnapshot?: boolean;
321
- } & { [K_1 in xstate510.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate510.IsNotNever<xstate510.RequiredActorOptions<T_1>>> : never : never : never)): xstate510.ActorRefFromLogic<xstate510.GetConcreteByKey<xstate510.Values<{
321
+ } & { [K_1 in xstate0.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T_1>>> : never : never : never)): xstate0.ActorRefFromLogic<xstate0.GetConcreteByKey<xstate0.Values<{
322
322
  getOcrData: {
323
323
  src: "getOcrData";
324
- logic: xstate510.PromiseActorLogic<OcrData, {
324
+ logic: xstate0.PromiseActorLogic<OcrData, {
325
325
  isSecondId: boolean;
326
- }, xstate510.EventObject>;
326
+ }, xstate0.EventObject>;
327
327
  id: string | undefined;
328
328
  };
329
329
  updateOcrData: {
330
330
  src: "updateOcrData";
331
- logic: xstate510.PromiseActorLogic<UpdateOcrResponse, {
331
+ logic: xstate0.PromiseActorLogic<UpdateOcrResponse, {
332
332
  params: UpdateOcrDataParams;
333
333
  isSecondId: boolean;
334
- }, xstate510.EventObject>;
334
+ }, xstate0.EventObject>;
335
335
  id: string | undefined;
336
336
  };
337
337
  }>, "src", TSrc>["logic"]>;
338
- <TLogic extends xstate510.AnyActorLogic>(src: TLogic, ...[options]: xstate510.ConditionalRequired<[options?: ({
338
+ <TLogic extends xstate0.AnyActorLogic>(src: TLogic, ...[options]: xstate0.ConditionalRequired<[options?: ({
339
339
  id?: never;
340
340
  systemId?: string;
341
- input?: xstate510.InputFrom<TLogic> | undefined;
341
+ input?: xstate0.InputFrom<TLogic> | undefined;
342
342
  syncSnapshot?: boolean;
343
- } & { [K in xstate510.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate510.IsNotNever<xstate510.RequiredLogicInput<TLogic>>>): xstate510.ActorRefFromLogic<TLogic>;
343
+ } & { [K in xstate0.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredLogicInput<TLogic>>>): xstate0.ActorRefFromLogic<TLogic>;
344
344
  };
345
345
  input: IdOcrInput;
346
- self: xstate510.ActorRef<xstate510.MachineSnapshot<IdOcrContext, {
346
+ self: xstate0.ActorRef<xstate0.MachineSnapshot<IdOcrContext, {
347
347
  type: "LOAD";
348
348
  } | {
349
349
  type: "DATA_CHANGED";
@@ -356,7 +356,7 @@ declare const idOcrStateMachine: xstate510.StateMachine<IdOcrContext, {
356
356
  type: "CONTINUE";
357
357
  } | {
358
358
  type: "RETRY";
359
- }, Record<string, xstate510.AnyActorRef | undefined>, xstate510.StateValue, string, unknown, any, any>, {
359
+ }, Record<string, xstate0.AnyActorRef | undefined>, xstate0.StateValue, string, unknown, any, any>, {
360
360
  type: "LOAD";
361
361
  } | {
362
362
  type: "DATA_CHANGED";
@@ -369,7 +369,7 @@ declare const idOcrStateMachine: xstate510.StateMachine<IdOcrContext, {
369
369
  type: "CONTINUE";
370
370
  } | {
371
371
  type: "RETRY";
372
- }, xstate510.AnyEventObject>;
372
+ }, xstate0.AnyEventObject>;
373
373
  }) => {
374
374
  config: IdOcrConfig;
375
375
  formData: UpdateOcrDataParams;
@@ -405,7 +405,7 @@ declare const idOcrStateMachine: xstate510.StateMachine<IdOcrContext, {
405
405
  } | {
406
406
  type: "RETRY";
407
407
  };
408
- self: xstate510.ActorRef<xstate510.MachineSnapshot<IdOcrContext, {
408
+ self: xstate0.ActorRef<xstate0.MachineSnapshot<IdOcrContext, {
409
409
  type: "LOAD";
410
410
  } | {
411
411
  type: "DATA_CHANGED";
@@ -418,7 +418,7 @@ declare const idOcrStateMachine: xstate510.StateMachine<IdOcrContext, {
418
418
  type: "CONTINUE";
419
419
  } | {
420
420
  type: "RETRY";
421
- }, Record<string, xstate510.AnyActorRef>, xstate510.StateValue, string, unknown, any, any>, {
421
+ }, Record<string, xstate0.AnyActorRef>, xstate0.StateValue, string, unknown, any, any>, {
422
422
  type: "LOAD";
423
423
  } | {
424
424
  type: "DATA_CHANGED";
@@ -431,7 +431,7 @@ declare const idOcrStateMachine: xstate510.StateMachine<IdOcrContext, {
431
431
  type: "CONTINUE";
432
432
  } | {
433
433
  type: "RETRY";
434
- }, xstate510.AnyEventObject>;
434
+ }, xstate0.AnyEventObject>;
435
435
  }) => {
436
436
  isSecondId: boolean;
437
437
  };
@@ -510,7 +510,7 @@ declare const idOcrStateMachine: xstate510.StateMachine<IdOcrContext, {
510
510
  } | {
511
511
  type: "RETRY";
512
512
  };
513
- self: xstate510.ActorRef<xstate510.MachineSnapshot<IdOcrContext, {
513
+ self: xstate0.ActorRef<xstate0.MachineSnapshot<IdOcrContext, {
514
514
  type: "LOAD";
515
515
  } | {
516
516
  type: "DATA_CHANGED";
@@ -523,7 +523,7 @@ declare const idOcrStateMachine: xstate510.StateMachine<IdOcrContext, {
523
523
  type: "CONTINUE";
524
524
  } | {
525
525
  type: "RETRY";
526
- }, Record<string, xstate510.AnyActorRef>, xstate510.StateValue, string, unknown, any, any>, {
526
+ }, Record<string, xstate0.AnyActorRef>, xstate0.StateValue, string, unknown, any, any>, {
527
527
  type: "LOAD";
528
528
  } | {
529
529
  type: "DATA_CHANGED";
@@ -536,7 +536,7 @@ declare const idOcrStateMachine: xstate510.StateMachine<IdOcrContext, {
536
536
  type: "CONTINUE";
537
537
  } | {
538
538
  type: "RETRY";
539
- }, xstate510.AnyEventObject>;
539
+ }, xstate0.AnyEventObject>;
540
540
  }) => {
541
541
  params: UpdateOcrDataParams;
542
542
  isSecondId: boolean;
package/dist/id.esm.js CHANGED
@@ -3,23 +3,23 @@ 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-mATfRV08.esm.js";
6
+ import "./session-DWFMKdX6.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";
10
10
  import "./BrowserStorageProvider-CoUfuy0u.esm.js";
11
- import "./recordingService-Dc8qrd2u.esm.js";
12
- import "./deepsightService-gNTXZu7Y.esm.js";
13
- import "./permissionServices-DIxFacTA.esm.js";
14
- import "./camera-PA2Ljri3.esm.js";
15
- import "./getBrowser-jTObqSyg.esm.js";
16
- import "./stats-KJxmByg8.esm.js";
17
- import "./MotionSensorProvider-DuErU0Pn.esm.js";
11
+ import "./recordingService-BsYjkILQ.esm.js";
12
+ import "./deepsightService-IxmrmdKl.esm.js";
13
+ import "./camera-Bm3wb89Z.esm.js";
14
+ import "./getBrowser-Y88tNVud.esm.js";
15
+ import "./stats-Bqq9IKre.esm.js";
16
+ import "./MotionSensorProvider-DJMsPght.esm.js";
17
+ import "./permissionServices-ACBX6sNZ.esm.js";
18
18
  import "./platform-Dpzd9p3X.esm.js";
19
19
  import "./ITimerCapability-2pw-S97e.esm.js";
20
- import "./backCameraStream-bztcEWzY.esm.js";
21
- import "./getDeviceClass-BTVS59zg.esm.js";
22
- import { a as startRecordingSession, c as uploadIdImage, d as ID_ERROR_CODES, f as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, i as processId, l as uploadManualIdFile, m as MANUAL_UPLOAD_MAX_RETRIES, n as initializeIdCapture, o as stopRecording, p as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, r as preloadIdRecordingProvider, s as stopStream, t as idCaptureMachine, u as validateUploadResponse } from "./idCaptureStateMachine-CwKipvzM.esm.js";
23
- import { r as createIdCaptureActor, t as createIdCaptureManager } from "./idCaptureManager-Ddv8sncg.esm.js";
20
+ import "./backCameraStream-DWZ1cNVA.esm.js";
21
+ import "./getDeviceClass-DmoqR7G2.esm.js";
22
+ import { a as startRecordingSession, c as uploadIdImage, d as ID_ERROR_CODES, f as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, i as processId, l as uploadManualIdFile, m as MANUAL_UPLOAD_MAX_RETRIES, n as initializeIdCapture, o as stopRecording, p as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, r as preloadIdRecordingProvider, s as stopStream, t as idCaptureMachine, u as validateUploadResponse } from "./idCaptureStateMachine-C94NHeR2.esm.js";
23
+ import { r as createIdCaptureActor, t as createIdCaptureManager } from "./idCaptureManager-vkJ6QLuk.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 { m as MANUAL_UPLOAD_MAX_RETRIES, t as idCaptureMachine } from "./idCaptureStateMachine-CwKipvzM.esm.js";
4
+ import { m as MANUAL_UPLOAD_MAX_RETRIES, t as idCaptureMachine } from "./idCaptureStateMachine-C94NHeR2.esm.js";
5
5
 
6
6
  //#region src/modules/id/idCaptureActor.ts
7
7
  function createIdCaptureActor(options) {
@@ -3,16 +3,16 @@ import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BZGH3sYJ.esm.j
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-mATfRV08.esm.js";
6
+ import { t as getDisableIpify } from "./session-DWFMKdX6.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
- import { _ as StreamCanvasCapture, d as createRecordingSession, f as startRecording, g as flagIdManualReview, m as StreamCanvasProcessingSession, n as preloadOpenViduProvider, p as stopRecording$1 } from "./recordingService-Dc8qrd2u.esm.js";
9
- import { n as IncodeCanvas } from "./deepsightService-gNTXZu7Y.esm.js";
10
- import { n as requestPermission, r as clearCameraPermissionCache, t as checkPermission } from "./permissionServices-DIxFacTA.esm.js";
11
- import { r as getWindowDimensions } from "./getBrowser-jTObqSyg.esm.js";
12
- import { t as addDeviceStats } from "./stats-KJxmByg8.esm.js";
8
+ import { _ as StreamCanvasCapture, d as createRecordingSession, f as startRecording, g as flagIdManualReview, m as StreamCanvasProcessingSession, n as preloadOpenViduProvider, p as stopRecording$1 } from "./recordingService-BsYjkILQ.esm.js";
9
+ import { n as IncodeCanvas } from "./deepsightService-IxmrmdKl.esm.js";
10
+ import { r as getWindowDimensions } from "./getBrowser-Y88tNVud.esm.js";
11
+ import { t as addDeviceStats } from "./stats-Bqq9IKre.esm.js";
12
+ import { n as requestPermission, t as checkPermission } from "./permissionServices-ACBX6sNZ.esm.js";
13
13
  import { n as isDesktop } from "./platform-Dpzd9p3X.esm.js";
14
- import { t as getBackCameraStream } from "./backCameraStream-bztcEWzY.esm.js";
15
- import { t as getDeviceClass } from "./getDeviceClass-BTVS59zg.esm.js";
14
+ import { t as getBackCameraStream } from "./backCameraStream-DWZ1cNVA.esm.js";
15
+ import { t as getDeviceClass } from "./getDeviceClass-DmoqR7G2.esm.js";
16
16
 
17
17
  //#region src/modules/id/idCaptureHelpers.ts
18
18
  /**
@@ -1175,7 +1175,7 @@ const checkMotionSensorActor = fromCallback(({ input, sendBack }) => {
1175
1175
  });
1176
1176
  const initializeDeepsightSessionActor = fromPromise(async ({ input }) => {
1177
1177
  if (!input.dependencies) return;
1178
- const { loadDeepsightSession } = await import("./deepsightLoader-HPZa6gSA.esm.js");
1178
+ const { loadDeepsightSession } = await import("./deepsightLoader-CFNSfs2N.esm.js");
1179
1179
  return loadDeepsightSession({
1180
1180
  ds: input.ds,
1181
1181
  storage: input.dependencies.storage,
@@ -1894,7 +1894,6 @@ const _idCaptureMachine = setup({
1894
1894
  target: "#idCapture.tutorial.ready",
1895
1895
  guard: "isPermissionDeniedError",
1896
1896
  actions: assign({ permissionResult: () => {
1897
- clearCameraPermissionCache();
1898
1897
  return "denied";
1899
1898
  } })
1900
1899
  }, {
@@ -2054,10 +2053,7 @@ const _idCaptureMachine = setup({
2054
2053
  onError: [{
2055
2054
  target: "#idCapture.permissions",
2056
2055
  guard: "isPermissionDeniedError",
2057
- actions: assign({ permissionResult: () => {
2058
- clearCameraPermissionCache();
2059
- return "denied";
2060
- } })
2056
+ actions: assign({ permissionResult: () => "denied" })
2061
2057
  }, {
2062
2058
  target: "#idCapture.error",
2063
2059
  actions: assign({ error: ({ event }) => String(event.error) })