@incodetech/core 0.0.0-dev-20260605-ef19b3d6 → 0.0.0-dev-20260605-d822e497

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 (48) hide show
  1. package/dist/ae-signature.d.ts +1 -1
  2. package/dist/authentication.esm.js +5 -5
  3. package/dist/{authenticationManager-BgtXT783.esm.js → authenticationManager-CanKY304.esm.js} +1 -1
  4. package/dist/{authenticationStateMachine-Bx9QKZmx.esm.js → authenticationStateMachine-CBDrSMYG.esm.js} +2 -2
  5. package/dist/{backCameraStream-sqXIvxpl.esm.js → backCameraStream-CUbrvLLD.esm.js} +54 -3
  6. package/dist/consent.d.ts +1 -1
  7. package/dist/{consentManager-BXUCEKj0.d.ts → consentManager-BGHrk8T5.d.ts} +50 -50
  8. package/dist/cpf-ocr.d.ts +1 -1
  9. package/dist/{cpfOcrManager-_Tg46WZx.d.ts → cpfOcrManager-UhDa1_kJ.d.ts} +17 -17
  10. package/dist/document-capture.d.ts +77 -77
  11. package/dist/document-capture.esm.js +2 -2
  12. package/dist/document-upload.d.ts +46 -46
  13. package/dist/document-upload.esm.js +1 -1
  14. package/dist/{documentCaptureStateMachine-BRkOYrL_.esm.js → documentCaptureStateMachine-BAv8UNOd.esm.js} +1 -1
  15. package/dist/ekyb.esm.js +3 -3
  16. package/dist/{ekybStateMachine-GAw4_ErO.esm.js → ekybStateMachine-B95It8Xk.esm.js} +1 -1
  17. package/dist/electronic-signature.d.ts +1 -1
  18. package/dist/extensibility.d.ts +4 -4
  19. package/dist/extensibility.esm.js +10 -10
  20. package/dist/{faceCaptureSetup-BV_JfZOM.esm.js → faceCaptureSetup-D5sRdkLU.esm.js} +1 -1
  21. package/dist/flow.d.ts +2 -2
  22. package/dist/flow.esm.js +2 -2
  23. package/dist/{flowServices-DM6Hn_GI.esm.js → flowServices-OEvX-Cht.esm.js} +1 -1
  24. package/dist/home.d.ts +10 -10
  25. package/dist/id-ocr.d.ts +52 -52
  26. package/dist/id-verification.d.ts +25 -25
  27. package/dist/id.esm.js +5 -5
  28. package/dist/{idCaptureManager-CSH1-x8H.esm.js → idCaptureManager--dXjJFry.esm.js} +1 -1
  29. package/dist/{idCaptureStateMachine-B10y8cvf.esm.js → idCaptureStateMachine-CYvzBNvD.esm.js} +3 -3
  30. package/dist/identity-reuse.d.ts +1 -1
  31. package/dist/{identityReuseManager-CaZ55wk-.d.ts → identityReuseManager-C3VWhpwU.d.ts} +34 -34
  32. package/dist/{index-B-uobO6O.d.ts → index-BKv5VsLN.d.ts} +168 -168
  33. package/dist/index.esm.js +2 -2
  34. package/dist/mandatory-consent.d.ts +1 -1
  35. package/dist/{mandatoryConsentManager-Tl2s7ncx.d.ts → mandatoryConsentManager-CxtCBISK.d.ts} +50 -50
  36. package/dist/qe-signature.d.ts +1 -1
  37. package/dist/{recordingService-CGlyfFQ7.esm.js → recordingService-CkUHfrGH.esm.js} +1 -1
  38. package/dist/selfie.esm.js +5 -5
  39. package/dist/{selfieManager-BdH-6KoN.esm.js → selfieManager-D2p_F9-u.esm.js} +1 -1
  40. package/dist/{selfieStateMachine-Dwuu_grk.esm.js → selfieStateMachine-DRwzo0ca.esm.js} +2 -2
  41. package/dist/session.esm.js +1 -1
  42. package/dist/{sessionInitializer-B6SUi-p1.esm.js → sessionInitializer-Cj2m08by.esm.js} +1 -1
  43. package/dist/{setup-BVHq9mDc.esm.js → setup-BVc3rsqt.esm.js} +1 -1
  44. package/dist/trust-graph.d.ts +2 -2
  45. package/dist/wasm.esm.js +2 -2
  46. package/dist/workflow.d.ts +88 -88
  47. package/dist/workflow.esm.js +10 -10
  48. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import { t as Manager } from "./Manager-BtbwDUTY.js";
2
2
  import "./Actor-JBsgjVQJ.js";
3
- import { a as AE_CONSENT_KEYS, c as ConsentKey, g as getDefaultConsentChecks, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, s as ConsentChecks, u as ElectronicSignatureDocument } from "./index-B-uobO6O.js";
3
+ import { a as AE_CONSENT_KEYS, c as ConsentKey, g as getDefaultConsentChecks, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, s as ConsentChecks, u as ElectronicSignatureDocument } from "./index-BKv5VsLN.js";
4
4
 
5
5
  //#region src/modules/ae-signature/index.d.ts
6
6
 
@@ -12,15 +12,15 @@ import "./MotionSensorProvider-D1JWpMLJ.esm.js";
12
12
  import "./permissionServices-BjXAT5OT.esm.js";
13
13
  import "./camera-P7dse339.esm.js";
14
14
  import "./faceCaptureManagerFactory-DKE4-MLG.esm.js";
15
- import "./recordingService-CGlyfFQ7.esm.js";
15
+ import "./recordingService-CkUHfrGH.esm.js";
16
16
  import "./ITimerCapability-gIlcIrAX.esm.js";
17
17
  import "./deepsightService-Dh9EiWze.esm.js";
18
- import "./backCameraStream-sqXIvxpl.esm.js";
18
+ import "./backCameraStream-CUbrvLLD.esm.js";
19
19
  import "./getDeviceClass-C5yT6K2e.esm.js";
20
20
  import "./getDeviceClass-cJ-TvND7.esm.js";
21
21
  import "./types-CRp-Maxh.esm.js";
22
- import "./faceCaptureSetup-BV_JfZOM.esm.js";
23
- import { t as authenticationMachine } from "./authenticationStateMachine-Bx9QKZmx.esm.js";
24
- import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-BgtXT783.esm.js";
22
+ import "./faceCaptureSetup-D5sRdkLU.esm.js";
23
+ import { t as authenticationMachine } from "./authenticationStateMachine-CBDrSMYG.esm.js";
24
+ import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-CanKY304.esm.js";
25
25
 
26
26
  export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
@@ -3,7 +3,7 @@ import { n as eventModuleNames } from "./events-Bsw1l0pH.esm.js";
3
3
  import { s as createActor } from "./xstate.esm-CWoFJOio.esm.js";
4
4
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-BrJver0U.esm.js";
5
5
  import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-DKE4-MLG.esm.js";
6
- import { t as authenticationMachine } from "./authenticationStateMachine-Bx9QKZmx.esm.js";
6
+ import { t as authenticationMachine } from "./authenticationStateMachine-CBDrSMYG.esm.js";
7
7
 
8
8
  //#region src/modules/authentication/authenticationActor.ts
9
9
  function createAuthenticationActor(options) {
@@ -2,10 +2,10 @@ import { t as api } from "./api-YxPMtty2.esm.js";
2
2
  import { t as endpoints } from "./endpoints-BPHddOTi.esm.js";
3
3
  import { t as addDeviceStats } from "./stats-AwLva7-C.esm.js";
4
4
  import { a as fromPromise, r as assign } from "./xstate.esm-CWoFJOio.esm.js";
5
- import { d as postOnDeviceFaceResults, f as prepareOnDeviceFaceUpload, l as defaultPrepareFaceUpload, u as isOnDeviceMode } from "./recordingService-CGlyfFQ7.esm.js";
5
+ import { d as postOnDeviceFaceResults, f as prepareOnDeviceFaceUpload, l as defaultPrepareFaceUpload, u as isOnDeviceMode } from "./recordingService-CkUHfrGH.esm.js";
6
6
  import { t as getDeviceClass } from "./getDeviceClass-cJ-TvND7.esm.js";
7
7
  import { t as FACE_ERROR_CODES } from "./types-CRp-Maxh.esm.js";
8
- import { t as faceCaptureMachine } from "./faceCaptureSetup-BV_JfZOM.esm.js";
8
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-D5sRdkLU.esm.js";
9
9
 
10
10
  //#region src/modules/authentication/authenticationErrorUtils.ts
11
11
  const AUTH_ERROR_MAP = {
@@ -314,12 +314,12 @@ function getDesktopVideoConstraints(level) {
314
314
  }
315
315
  }
316
316
  function getDesktopConstraints(options, level = 0) {
317
- const { deviceId } = options;
317
+ const { deviceId, facingMode = "user" } = options;
318
318
  const resolution = getDesktopVideoConstraints(level);
319
319
  return {
320
320
  audio: isSafari(),
321
321
  video: {
322
- facingMode: "user",
322
+ facingMode,
323
323
  deviceId: deviceId ? { exact: deviceId } : void 0,
324
324
  ...resolution
325
325
  }
@@ -336,10 +336,61 @@ async function getDesktopCameraStream(options, fallbackLevel = 0) {
336
336
  return getDesktopCameraStream(options, nextLevel);
337
337
  }
338
338
  }
339
+ /**
340
+ * Pick the best back-facing device from a list already filtered by label.
341
+ * Prefers the highest megapixel count when labels advertise it, else the first.
342
+ */
343
+ function selectBestBackDevice(devices) {
344
+ if (devices.length === 1) return devices[0];
345
+ const withMp = devices.map((d) => {
346
+ const match = d.label.match(/\b([0-9]+)\s*MP?\b/i);
347
+ return {
348
+ device: d,
349
+ mp: match ? parseInt(match[1], 10) : 0
350
+ };
351
+ });
352
+ const maxMp = Math.max(...withMp.map((w) => w.mp));
353
+ const best = withMp.find((w) => w.mp === maxMp);
354
+ return best ? best.device : devices[0];
355
+ }
356
+ /**
357
+ * Desktop / non-mobile back-camera acquisition with verify-and-correct.
358
+ *
359
+ * Why this exists: devices like the Microsoft Surface fall into the desktop
360
+ * branch (Windows is neither iOS nor Android) and have a documented bug where
361
+ * requesting `facingMode: 'environment'` hands back the FRONT camera — and the
362
+ * reported `facingMode` can falsely say 'environment'. So we never trust
363
+ * facingMode; we verify what we actually got by LABEL only.
364
+ *
365
+ * Flow:
366
+ * 1. Open best-effort with an 'environment' hint.
367
+ * 2. If the opened track's label looks like a back camera → done.
368
+ * 3. Otherwise enumerate and look for a back-LABELLED device, reopen it.
369
+ * 4. If no device has a back label → keep the original stream (never regress).
370
+ *
371
+ * An explicit deviceId from the caller is always trusted as-is.
372
+ */
373
+ async function getDesktopBackCameraStream(deviceId) {
374
+ if (deviceId) return getDesktopCameraStream({ deviceId });
375
+ const original = await getDesktopCameraStream({ facingMode: "environment" });
376
+ const track = original.getVideoTracks()[0];
377
+ if (track && isBackCameraLabel(track.label)) return original;
378
+ const backDevices = (await enumerateVideoDevices()).filter((d) => isBackCameraLabel(d.label));
379
+ if (backDevices.length === 0) return original;
380
+ const target = selectBestBackDevice(backDevices);
381
+ if (track && track.getSettings().deviceId === target.deviceId) return original;
382
+ try {
383
+ const corrected = await getDesktopCameraStream({ deviceId: target.deviceId });
384
+ stopCameraStream(original);
385
+ return corrected;
386
+ } catch {
387
+ return original;
388
+ }
389
+ }
339
390
  async function getBackCameraStream(deviceId) {
340
391
  if (isIOS()) return { stream: await getIOSCameraStream() };
341
392
  if (isAndroid()) return getAndroidBackCameraStream(0);
342
- return { stream: await getDesktopCameraStream({ deviceId }) };
393
+ return { stream: await getDesktopBackCameraStream(deviceId) };
343
394
  }
344
395
 
345
396
  //#endregion
package/dist/consent.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  import "./Manager-BtbwDUTY.js";
2
2
  import "./Actor-JBsgjVQJ.js";
3
- import { a as ConsentActor, c as ConsentConfig, i as createConsentManagerFromActor, n as ConsentState, o as consentMachine, r as createConsentManager, s as ConsentCheckbox, t as ConsentManager } from "./consentManager-BXUCEKj0.js";
3
+ import { a as ConsentActor, c as ConsentConfig, i as createConsentManagerFromActor, n as ConsentState, o as consentMachine, r as createConsentManager, s as ConsentCheckbox, t as ConsentManager } from "./consentManager-BGHrk8T5.js";
4
4
  export { type ConsentActor, type ConsentCheckbox, type ConsentConfig, type ConsentManager, type ConsentState, consentMachine, createConsentManager, createConsentManagerFromActor };
@@ -1,6 +1,6 @@
1
1
  import { t as Manager } from "./Manager-BtbwDUTY.js";
2
2
  import { t as ActorRefFrom } from "./Actor-JBsgjVQJ.js";
3
- import * as xstate1001 from "xstate";
3
+ import * as xstate102 from "xstate";
4
4
 
5
5
  //#region src/modules/consent/types.d.ts
6
6
  type ConsentConfig = {
@@ -37,7 +37,7 @@ type ConsentContext = {
37
37
  type ConsentInput = {
38
38
  config: ConsentConfig;
39
39
  };
40
- declare const consentMachine: xstate1001.StateMachine<ConsentContext, {
40
+ declare const consentMachine: xstate102.StateMachine<ConsentContext, {
41
41
  type: "LOAD";
42
42
  } | {
43
43
  type: "TOGGLE_CHECKBOX";
@@ -49,55 +49,55 @@ declare const consentMachine: xstate1001.StateMachine<ConsentContext, {
49
49
  } | {
50
50
  type: "RESET";
51
51
  }, {
52
- [x: string]: xstate1001.ActorRefFromLogic<xstate1001.PromiseActorLogic<FetchCombinedConsentResponse, {
52
+ [x: string]: xstate102.ActorRefFromLogic<xstate102.PromiseActorLogic<FetchCombinedConsentResponse, {
53
53
  consentId: string;
54
54
  language?: string;
55
- }, xstate1001.EventObject>> | xstate1001.ActorRefFromLogic<xstate1001.PromiseActorLogic<void, {
55
+ }, xstate102.EventObject>> | xstate102.ActorRefFromLogic<xstate102.PromiseActorLogic<void, {
56
56
  languageConsentId: string;
57
57
  checkboxes: ConsentCheckbox[];
58
- }, xstate1001.EventObject>> | undefined;
59
- }, xstate1001.Values<{
58
+ }, xstate102.EventObject>> | undefined;
59
+ }, xstate102.Values<{
60
60
  fetchConsent: {
61
61
  src: "fetchConsent";
62
- logic: xstate1001.PromiseActorLogic<FetchCombinedConsentResponse, {
62
+ logic: xstate102.PromiseActorLogic<FetchCombinedConsentResponse, {
63
63
  consentId: string;
64
64
  language?: string;
65
- }, xstate1001.EventObject>;
65
+ }, xstate102.EventObject>;
66
66
  id: string | undefined;
67
67
  };
68
68
  submitConsent: {
69
69
  src: "submitConsent";
70
- logic: xstate1001.PromiseActorLogic<void, {
70
+ logic: xstate102.PromiseActorLogic<void, {
71
71
  languageConsentId: string;
72
72
  checkboxes: ConsentCheckbox[];
73
- }, xstate1001.EventObject>;
73
+ }, xstate102.EventObject>;
74
74
  id: string | undefined;
75
75
  };
76
- }>, xstate1001.Values<{
76
+ }>, xstate102.Values<{
77
77
  setError: {
78
78
  type: "setError";
79
- params: xstate1001.NonReducibleUnknown;
79
+ params: xstate102.NonReducibleUnknown;
80
80
  };
81
81
  clearError: {
82
82
  type: "clearError";
83
- params: xstate1001.NonReducibleUnknown;
84
- };
85
- resetContext: {
86
- type: "resetContext";
87
- params: xstate1001.NonReducibleUnknown;
83
+ params: xstate102.NonReducibleUnknown;
88
84
  };
89
85
  setConsentData: {
90
86
  type: "setConsentData";
91
- params: xstate1001.NonReducibleUnknown;
87
+ params: xstate102.NonReducibleUnknown;
92
88
  };
93
89
  toggleCheckbox: {
94
90
  type: "toggleCheckbox";
95
- params: xstate1001.NonReducibleUnknown;
91
+ params: xstate102.NonReducibleUnknown;
92
+ };
93
+ resetContext: {
94
+ type: "resetContext";
95
+ params: xstate102.NonReducibleUnknown;
96
96
  };
97
97
  }>, {
98
98
  type: "canSubmit";
99
99
  params: unknown;
100
- }, never, "error" | "idle" | "finished" | "loading" | "submitting" | "display", string, ConsentInput, xstate1001.NonReducibleUnknown, xstate1001.EventObject, xstate1001.MetaObject, {
100
+ }, never, "error" | "idle" | "finished" | "loading" | "submitting" | "display", string, ConsentInput, xstate102.NonReducibleUnknown, xstate102.EventObject, xstate102.MetaObject, {
101
101
  readonly id: "consent";
102
102
  readonly initial: "idle";
103
103
  readonly context: ({
@@ -106,73 +106,73 @@ declare const consentMachine: xstate1001.StateMachine<ConsentContext, {
106
106
  spawn: {
107
107
  <TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
108
108
  src: "fetchConsent";
109
- logic: xstate1001.PromiseActorLogic<FetchCombinedConsentResponse, {
109
+ logic: xstate102.PromiseActorLogic<FetchCombinedConsentResponse, {
110
110
  consentId: string;
111
111
  language?: string;
112
- }, xstate1001.EventObject>;
112
+ }, xstate102.EventObject>;
113
113
  id: string | undefined;
114
114
  } extends infer T ? T extends {
115
115
  src: "fetchConsent";
116
- logic: xstate1001.PromiseActorLogic<FetchCombinedConsentResponse, {
116
+ logic: xstate102.PromiseActorLogic<FetchCombinedConsentResponse, {
117
117
  consentId: string;
118
118
  language?: string;
119
- }, xstate1001.EventObject>;
119
+ }, xstate102.EventObject>;
120
120
  id: string | undefined;
121
121
  } ? T extends {
122
122
  src: TSrc;
123
- } ? xstate1001.ConditionalRequired<[options?: ({
123
+ } ? xstate102.ConditionalRequired<[options?: ({
124
124
  id?: T["id"] | undefined;
125
125
  systemId?: string;
126
- input?: xstate1001.InputFrom<T["logic"]> | undefined;
126
+ input?: xstate102.InputFrom<T["logic"]> | undefined;
127
127
  syncSnapshot?: boolean;
128
- } & { [K in xstate1001.RequiredActorOptions<T>]: unknown }) | undefined], xstate1001.IsNotNever<xstate1001.RequiredActorOptions<T>>> : never : never : never) | ({
128
+ } & { [K in xstate102.RequiredActorOptions<T>]: unknown }) | undefined], xstate102.IsNotNever<xstate102.RequiredActorOptions<T>>> : never : never : never) | ({
129
129
  src: "submitConsent";
130
- logic: xstate1001.PromiseActorLogic<void, {
130
+ logic: xstate102.PromiseActorLogic<void, {
131
131
  languageConsentId: string;
132
132
  checkboxes: ConsentCheckbox[];
133
- }, xstate1001.EventObject>;
133
+ }, xstate102.EventObject>;
134
134
  id: string | undefined;
135
135
  } extends infer T_1 ? T_1 extends {
136
136
  src: "submitConsent";
137
- logic: xstate1001.PromiseActorLogic<void, {
137
+ logic: xstate102.PromiseActorLogic<void, {
138
138
  languageConsentId: string;
139
139
  checkboxes: ConsentCheckbox[];
140
- }, xstate1001.EventObject>;
140
+ }, xstate102.EventObject>;
141
141
  id: string | undefined;
142
142
  } ? T_1 extends {
143
143
  src: TSrc;
144
- } ? xstate1001.ConditionalRequired<[options?: ({
144
+ } ? xstate102.ConditionalRequired<[options?: ({
145
145
  id?: T_1["id"] | undefined;
146
146
  systemId?: string;
147
- input?: xstate1001.InputFrom<T_1["logic"]> | undefined;
147
+ input?: xstate102.InputFrom<T_1["logic"]> | undefined;
148
148
  syncSnapshot?: boolean;
149
- } & { [K_1 in xstate1001.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate1001.IsNotNever<xstate1001.RequiredActorOptions<T_1>>> : never : never : never)): xstate1001.ActorRefFromLogic<xstate1001.GetConcreteByKey<xstate1001.Values<{
149
+ } & { [K_1 in xstate102.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate102.IsNotNever<xstate102.RequiredActorOptions<T_1>>> : never : never : never)): xstate102.ActorRefFromLogic<xstate102.GetConcreteByKey<xstate102.Values<{
150
150
  fetchConsent: {
151
151
  src: "fetchConsent";
152
- logic: xstate1001.PromiseActorLogic<FetchCombinedConsentResponse, {
152
+ logic: xstate102.PromiseActorLogic<FetchCombinedConsentResponse, {
153
153
  consentId: string;
154
154
  language?: string;
155
- }, xstate1001.EventObject>;
155
+ }, xstate102.EventObject>;
156
156
  id: string | undefined;
157
157
  };
158
158
  submitConsent: {
159
159
  src: "submitConsent";
160
- logic: xstate1001.PromiseActorLogic<void, {
160
+ logic: xstate102.PromiseActorLogic<void, {
161
161
  languageConsentId: string;
162
162
  checkboxes: ConsentCheckbox[];
163
- }, xstate1001.EventObject>;
163
+ }, xstate102.EventObject>;
164
164
  id: string | undefined;
165
165
  };
166
166
  }>, "src", TSrc>["logic"]>;
167
- <TLogic extends xstate1001.AnyActorLogic>(src: TLogic, ...[options]: xstate1001.ConditionalRequired<[options?: ({
167
+ <TLogic extends xstate102.AnyActorLogic>(src: TLogic, ...[options]: xstate102.ConditionalRequired<[options?: ({
168
168
  id?: never;
169
169
  systemId?: string;
170
- input?: xstate1001.InputFrom<TLogic> | undefined;
170
+ input?: xstate102.InputFrom<TLogic> | undefined;
171
171
  syncSnapshot?: boolean;
172
- } & { [K in xstate1001.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate1001.IsNotNever<xstate1001.RequiredLogicInput<TLogic>>>): xstate1001.ActorRefFromLogic<TLogic>;
172
+ } & { [K in xstate102.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate102.IsNotNever<xstate102.RequiredLogicInput<TLogic>>>): xstate102.ActorRefFromLogic<TLogic>;
173
173
  };
174
174
  input: ConsentInput;
175
- self: xstate1001.ActorRef<xstate1001.MachineSnapshot<ConsentContext, {
175
+ self: xstate102.ActorRef<xstate102.MachineSnapshot<ConsentContext, {
176
176
  type: "LOAD";
177
177
  } | {
178
178
  type: "TOGGLE_CHECKBOX";
@@ -183,7 +183,7 @@ declare const consentMachine: xstate1001.StateMachine<ConsentContext, {
183
183
  type: "RETRY";
184
184
  } | {
185
185
  type: "RESET";
186
- }, Record<string, xstate1001.AnyActorRef | undefined>, xstate1001.StateValue, string, unknown, any, any>, {
186
+ }, Record<string, xstate102.AnyActorRef | undefined>, xstate102.StateValue, string, unknown, any, any>, {
187
187
  type: "LOAD";
188
188
  } | {
189
189
  type: "TOGGLE_CHECKBOX";
@@ -194,7 +194,7 @@ declare const consentMachine: xstate1001.StateMachine<ConsentContext, {
194
194
  type: "RETRY";
195
195
  } | {
196
196
  type: "RESET";
197
- }, xstate1001.AnyEventObject>;
197
+ }, xstate102.AnyEventObject>;
198
198
  }) => {
199
199
  config: ConsentConfig;
200
200
  title: string;
@@ -232,7 +232,7 @@ declare const consentMachine: xstate1001.StateMachine<ConsentContext, {
232
232
  } | {
233
233
  type: "RESET";
234
234
  };
235
- self: xstate1001.ActorRef<xstate1001.MachineSnapshot<ConsentContext, {
235
+ self: xstate102.ActorRef<xstate102.MachineSnapshot<ConsentContext, {
236
236
  type: "LOAD";
237
237
  } | {
238
238
  type: "TOGGLE_CHECKBOX";
@@ -243,7 +243,7 @@ declare const consentMachine: xstate1001.StateMachine<ConsentContext, {
243
243
  type: "RETRY";
244
244
  } | {
245
245
  type: "RESET";
246
- }, Record<string, xstate1001.AnyActorRef>, xstate1001.StateValue, string, unknown, any, any>, {
246
+ }, Record<string, xstate102.AnyActorRef>, xstate102.StateValue, string, unknown, any, any>, {
247
247
  type: "LOAD";
248
248
  } | {
249
249
  type: "TOGGLE_CHECKBOX";
@@ -254,7 +254,7 @@ declare const consentMachine: xstate1001.StateMachine<ConsentContext, {
254
254
  type: "RETRY";
255
255
  } | {
256
256
  type: "RESET";
257
- }, xstate1001.AnyEventObject>;
257
+ }, xstate102.AnyEventObject>;
258
258
  }) => {
259
259
  consentId: string;
260
260
  language: string | undefined;
@@ -304,7 +304,7 @@ declare const consentMachine: xstate1001.StateMachine<ConsentContext, {
304
304
  } | {
305
305
  type: "RESET";
306
306
  };
307
- self: xstate1001.ActorRef<xstate1001.MachineSnapshot<ConsentContext, {
307
+ self: xstate102.ActorRef<xstate102.MachineSnapshot<ConsentContext, {
308
308
  type: "LOAD";
309
309
  } | {
310
310
  type: "TOGGLE_CHECKBOX";
@@ -315,7 +315,7 @@ declare const consentMachine: xstate1001.StateMachine<ConsentContext, {
315
315
  type: "RETRY";
316
316
  } | {
317
317
  type: "RESET";
318
- }, Record<string, xstate1001.AnyActorRef>, xstate1001.StateValue, string, unknown, any, any>, {
318
+ }, Record<string, xstate102.AnyActorRef>, xstate102.StateValue, string, unknown, any, any>, {
319
319
  type: "LOAD";
320
320
  } | {
321
321
  type: "TOGGLE_CHECKBOX";
@@ -326,7 +326,7 @@ declare const consentMachine: xstate1001.StateMachine<ConsentContext, {
326
326
  type: "RETRY";
327
327
  } | {
328
328
  type: "RESET";
329
- }, xstate1001.AnyEventObject>;
329
+ }, xstate102.AnyEventObject>;
330
330
  }) => {
331
331
  languageConsentId: string;
332
332
  checkboxes: ConsentCheckbox[];
package/dist/cpf-ocr.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import "./Manager-BtbwDUTY.js";
2
2
  import "./Actor-JBsgjVQJ.js";
3
- import { a as CpfOcrActor, i as createCpfOcrManagerFromActor, n as CpfOcrState, o as cpfOcrMachine, r as createCpfOcrManager, t as CpfOcrManager } from "./cpfOcrManager-_Tg46WZx.js";
3
+ import { a as CpfOcrActor, i as createCpfOcrManagerFromActor, n as CpfOcrState, o as cpfOcrMachine, r as createCpfOcrManager, t as CpfOcrManager } from "./cpfOcrManager-UhDa1_kJ.js";
4
4
 
5
5
  //#region src/modules/cpf-ocr/cpfOcrUtils.d.ts
6
6
  declare function formatCPF(value: string): string;
@@ -1,6 +1,6 @@
1
1
  import { t as Manager } from "./Manager-BtbwDUTY.js";
2
2
  import { t as ActorRefFrom } from "./Actor-JBsgjVQJ.js";
3
- import * as xstate760 from "xstate";
3
+ import * as xstate1010 from "xstate";
4
4
 
5
5
  //#region src/modules/cpf-ocr/types.d.ts
6
6
  type CpfOcrDataResponse = {
@@ -17,7 +17,7 @@ type CpfOcrContext = {
17
17
  error: string | undefined;
18
18
  };
19
19
  type CpfOcrInput = Record<string, never>;
20
- declare const cpfOcrMachine: xstate760.StateMachine<CpfOcrContext, {
20
+ declare const cpfOcrMachine: xstate1010.StateMachine<CpfOcrContext, {
21
21
  type: "LOAD";
22
22
  } | {
23
23
  type: "SET_CPF";
@@ -27,43 +27,43 @@ declare const cpfOcrMachine: xstate760.StateMachine<CpfOcrContext, {
27
27
  } | {
28
28
  type: "RETRY";
29
29
  }, {
30
- [x: string]: xstate760.ActorRefFromLogic<xstate760.PromiseActorLogic<CpfOcrDataResponse, void, xstate760.EventObject>> | xstate760.ActorRefFromLogic<xstate760.PromiseActorLogic<CpfOcrUpdateResponse, {
30
+ [x: string]: xstate1010.ActorRefFromLogic<xstate1010.PromiseActorLogic<CpfOcrDataResponse, void, xstate1010.EventObject>> | xstate1010.ActorRefFromLogic<xstate1010.PromiseActorLogic<CpfOcrUpdateResponse, {
31
31
  cpf: string;
32
- }, xstate760.EventObject>> | undefined;
33
- }, xstate760.Values<{
32
+ }, xstate1010.EventObject>> | undefined;
33
+ }, xstate1010.Values<{
34
34
  fetchCpfOcrData: {
35
35
  src: "fetchCpfOcrData";
36
- logic: xstate760.PromiseActorLogic<CpfOcrDataResponse, void, xstate760.EventObject>;
36
+ logic: xstate1010.PromiseActorLogic<CpfOcrDataResponse, void, xstate1010.EventObject>;
37
37
  id: string | undefined;
38
38
  };
39
39
  submitCpfOcr: {
40
40
  src: "submitCpfOcr";
41
- logic: xstate760.PromiseActorLogic<CpfOcrUpdateResponse, {
41
+ logic: xstate1010.PromiseActorLogic<CpfOcrUpdateResponse, {
42
42
  cpf: string;
43
- }, xstate760.EventObject>;
43
+ }, xstate1010.EventObject>;
44
44
  id: string | undefined;
45
45
  };
46
- }>, xstate760.Values<{
46
+ }>, xstate1010.Values<{
47
47
  setError: {
48
48
  type: "setError";
49
- params: xstate760.NonReducibleUnknown;
49
+ params: xstate1010.NonReducibleUnknown;
50
50
  };
51
51
  clearError: {
52
52
  type: "clearError";
53
- params: xstate760.NonReducibleUnknown;
53
+ params: xstate1010.NonReducibleUnknown;
54
54
  };
55
55
  setPrefill: {
56
56
  type: "setPrefill";
57
- params: xstate760.NonReducibleUnknown;
57
+ params: xstate1010.NonReducibleUnknown;
58
58
  };
59
59
  setCpf: {
60
60
  type: "setCpf";
61
- params: xstate760.NonReducibleUnknown;
61
+ params: xstate1010.NonReducibleUnknown;
62
62
  };
63
63
  }>, {
64
64
  type: "isValid";
65
65
  params: unknown;
66
- }, never, "error" | "idle" | "finished" | "loading" | "inputting" | "submitting", string, CpfOcrInput, xstate760.NonReducibleUnknown, xstate760.EventObject, xstate760.MetaObject, {
66
+ }, never, "error" | "idle" | "finished" | "loading" | "submitting" | "inputting", string, CpfOcrInput, xstate1010.NonReducibleUnknown, xstate1010.EventObject, xstate1010.MetaObject, {
67
67
  readonly id: "cpfOcr";
68
68
  readonly initial: "idle";
69
69
  readonly context: {
@@ -118,7 +118,7 @@ declare const cpfOcrMachine: xstate760.StateMachine<CpfOcrContext, {
118
118
  } | {
119
119
  type: "RETRY";
120
120
  };
121
- self: xstate760.ActorRef<xstate760.MachineSnapshot<CpfOcrContext, {
121
+ self: xstate1010.ActorRef<xstate1010.MachineSnapshot<CpfOcrContext, {
122
122
  type: "LOAD";
123
123
  } | {
124
124
  type: "SET_CPF";
@@ -127,7 +127,7 @@ declare const cpfOcrMachine: xstate760.StateMachine<CpfOcrContext, {
127
127
  type: "SUBMIT";
128
128
  } | {
129
129
  type: "RETRY";
130
- }, Record<string, xstate760.AnyActorRef>, xstate760.StateValue, string, unknown, any, any>, {
130
+ }, Record<string, xstate1010.AnyActorRef>, xstate1010.StateValue, string, unknown, any, any>, {
131
131
  type: "LOAD";
132
132
  } | {
133
133
  type: "SET_CPF";
@@ -136,7 +136,7 @@ declare const cpfOcrMachine: xstate760.StateMachine<CpfOcrContext, {
136
136
  type: "SUBMIT";
137
137
  } | {
138
138
  type: "RETRY";
139
- }, xstate760.AnyEventObject>;
139
+ }, xstate1010.AnyEventObject>;
140
140
  }) => {
141
141
  cpf: string;
142
142
  };