@incodetech/core 2.1.1-rc.6 → 2.1.1-rc.8

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 (61) hide show
  1. package/dist/{BrowserStorageProvider-fZsibQTR.esm.js → BrowserStorageProvider-CBHBhKQN.esm.js} +22 -8
  2. package/dist/{MotionSensorProvider-D95kOKVK.esm.js → MotionSensorProvider-BHuHoYvJ.esm.js} +48 -10
  3. package/dist/ae-signature.d.ts +1 -1
  4. package/dist/authentication.esm.js +12 -12
  5. package/dist/{authenticationManager-DuMSpelF.esm.js → authenticationManager-CaaiBwSC.esm.js} +3 -3
  6. package/dist/{authenticationStateMachine-CDG0SMYg.esm.js → authenticationStateMachine-B_vlpQuJ.esm.js} +2 -2
  7. package/dist/{browserSimulation-CWJhFPZ2.esm.js → browserSimulation-DZwEy9bu.esm.js} +14 -1
  8. package/dist/camera.esm.js +2 -2
  9. package/dist/certificate-issuance.d.ts +28 -28
  10. package/dist/consent.d.ts +1 -1
  11. package/dist/{consentManager-2EPNWwaG.d.ts → consentManager-CuA2nywX.d.ts} +47 -47
  12. package/dist/cpf-ocr.d.ts +1 -1
  13. package/dist/{cpfOcrManager-Bg7WqgVy.d.ts → cpfOcrManager-DtACTRn6.d.ts} +17 -17
  14. package/dist/{deepsightLoader-CmbuFd4Q.esm.js → deepsightLoader-DGj5bORx.esm.js} +4 -4
  15. package/dist/{deepsightService-CkZqM1Q2.esm.js → deepsightService-CViys6T4.esm.js} +1 -1
  16. package/dist/document-capture.d.ts +225 -225
  17. package/dist/document-capture.esm.js +4 -4
  18. package/dist/document-upload.d.ts +43 -43
  19. package/dist/{documentCaptureStateMachine-BHIYPUEu.esm.js → documentCaptureStateMachine-BkTvU3yq.esm.js} +2 -2
  20. package/dist/ekyb.esm.js +4 -4
  21. package/dist/{ekybStateMachine-D5vj8UG_.esm.js → ekybStateMachine-DSBpi4ES.esm.js} +1 -1
  22. package/dist/electronic-signature.d.ts +1 -1
  23. package/dist/extensibility.d.ts +13 -9
  24. package/dist/extensibility.esm.js +17 -17
  25. package/dist/{faceCaptureManagerFactory-B65bYWfD.esm.js → faceCaptureManagerFactory-D4ogJ_0w.esm.js} +2 -2
  26. package/dist/{faceCaptureSetup-CoQ5A9Il.esm.js → faceCaptureSetup-DIcdpyTZ.esm.js} +4 -4
  27. package/dist/flow.d.ts +2 -2
  28. package/dist/flow.esm.js +3 -3
  29. package/dist/{flowServices-CYMfu_12.esm.js → flowServices-CTzsb9K5.esm.js} +1 -1
  30. package/dist/home.d.ts +10 -10
  31. package/dist/id-ocr.d.ts +1 -1
  32. package/dist/id-verification.d.ts +25 -25
  33. package/dist/id.esm.js +11 -11
  34. package/dist/{idCaptureManager-Cq1DSv6P.esm.js → idCaptureManager-2GN4I9u3.esm.js} +3 -3
  35. package/dist/{idCaptureStateMachine-BqjYsLFf.esm.js → idCaptureStateMachine-D_8rmH0K.esm.js} +6 -6
  36. package/dist/{idOcrManager-CXtyyf3I.d.ts → idOcrManager-DLsv89l1.d.ts} +52 -52
  37. package/dist/identity-reuse.d.ts +1 -1
  38. package/dist/{identityReuseManager-BNf21Y6b.d.ts → identityReuseManager-DhN1XvV4.d.ts} +31 -31
  39. package/dist/{index-CPLWHXKr.d.ts → index-DCDTLkNA.d.ts} +150 -150
  40. package/dist/index.esm.js +3 -3
  41. package/dist/mandatory-consent.d.ts +1 -1
  42. package/dist/{mandatoryConsentManager-s6xcax0K.d.ts → mandatoryConsentManager-BxkxplSG.d.ts} +47 -47
  43. package/dist/{onDeviceFaceResults-CAfvpjnC.esm.js → onDeviceFaceResults-B-NkCXud.esm.js} +1 -1
  44. package/dist/{permissionGuards-BPZGWaL4.esm.js → permissionGuards-BNOe4Tnu.esm.js} +1 -1
  45. package/dist/{permissionServices-BElIOcoJ.esm.js → permissionServices-C_kxhNeo.esm.js} +7 -5
  46. package/dist/personhood.esm.js +7 -7
  47. package/dist/qe-signature.d.ts +1 -1
  48. package/dist/{recordingService-Df_A6oXO.esm.js → recordingService-CDECCnNi.esm.js} +1 -1
  49. package/dist/selfie.esm.js +12 -12
  50. package/dist/{selfieManager-CtS5wYEo.esm.js → selfieManager-Bt0AA1nO.esm.js} +3 -3
  51. package/dist/{selfieStateMachine-CiMhj8YP.esm.js → selfieStateMachine-BTn1TE00.esm.js} +2 -2
  52. package/dist/session.esm.js +2 -2
  53. package/dist/{sessionInitializer-DfN3wUch.esm.js → sessionInitializer-BHolgZLL.esm.js} +2 -2
  54. package/dist/{setup-_SH3lJGQ.esm.js → setup-BlVLlZtj.esm.js} +1 -1
  55. package/dist/trust-graph.d.ts +2 -2
  56. package/dist/video-selfie.d.ts +2 -2
  57. package/dist/video-selfie.esm.js +7 -7
  58. package/dist/wasm.esm.js +3 -3
  59. package/dist/workflow.d.ts +102 -102
  60. package/dist/workflow.esm.js +15 -15
  61. package/package.json +1 -1
@@ -1,18 +1,26 @@
1
+ import { n as resolveLocalStorage } from "./MotionSensorProvider-BHuHoYvJ.esm.js";
2
+
1
3
  //#region ../infra/src/providers/browser/BrowserStorageProvider.ts
2
4
  /**
3
5
  * Browser-based storage provider wrapping localStorage.
4
6
  * Handles JSON serialization/deserialization automatically.
7
+ *
8
+ * Degrades silently when the host makes localStorage unreachable: reads return
9
+ * `null` and writes are no-ops. Deliberately quiet — hosts that harden against
10
+ * self-XSS by deleting the global would otherwise see a warning on every call.
5
11
  */
6
12
  var BrowserStorageProvider = class {
7
13
  /**
8
14
  * Retrieves a value from localStorage.
9
15
  * @param key - The storage key
10
- * @returns The stored value or null if not found
16
+ * @returns The stored value, or null if not found or storage is unavailable
11
17
  * @throws Error if stored value is invalid JSON
12
18
  */
13
19
  async get(key) {
20
+ const storage = resolveLocalStorage();
21
+ if (!storage) return null;
14
22
  try {
15
- const item = localStorage.getItem(key);
23
+ const item = storage.getItem(key);
16
24
  if (item === null) return null;
17
25
  return JSON.parse(item);
18
26
  } catch (error) {
@@ -21,15 +29,17 @@ var BrowserStorageProvider = class {
21
29
  }
22
30
  }
23
31
  /**
24
- * Stores a value in localStorage.
32
+ * Stores a value in localStorage. No-op when storage is unavailable.
25
33
  * @param key - The storage key
26
34
  * @param value - The value to store (will be serialized as JSON)
27
35
  * @throws Error if value cannot be serialized or quota is exceeded
28
36
  */
29
37
  async set(key, value) {
38
+ const storage = resolveLocalStorage();
39
+ if (!storage) return;
30
40
  try {
31
41
  const serialized = JSON.stringify(value);
32
- localStorage.setItem(key, serialized);
42
+ storage.setItem(key, serialized);
33
43
  } catch (error) {
34
44
  if ((error instanceof DOMException || error.name === "QuotaExceededError") && error.name === "QuotaExceededError") throw new Error(`Storage quota exceeded for key "${key}"`);
35
45
  if (error instanceof TypeError) throw new Error(`Failed to serialize value for key "${key}": ${error.message}`);
@@ -37,17 +47,21 @@ var BrowserStorageProvider = class {
37
47
  }
38
48
  }
39
49
  /**
40
- * Removes a value from localStorage.
50
+ * Removes a value from localStorage. No-op when storage is unavailable.
41
51
  * @param key - The storage key to remove
42
52
  */
43
53
  async remove(key) {
44
- localStorage.removeItem(key);
54
+ const storage = resolveLocalStorage();
55
+ if (!storage) return;
56
+ storage.removeItem(key);
45
57
  }
46
58
  /**
47
- * Clears all values from localStorage.
59
+ * Clears all values from localStorage. No-op when storage is unavailable.
48
60
  */
49
61
  async clear() {
50
- localStorage.clear();
62
+ const storage = resolveLocalStorage();
63
+ if (!storage) return;
64
+ storage.clear();
51
65
  }
52
66
  };
53
67
 
@@ -1,3 +1,38 @@
1
+ //#region ../infra/src/storage/safeStorage.ts
2
+ /**
3
+ * Storage resolvers that tolerate hosts which make Web Storage unreachable.
4
+ *
5
+ * Two hostile shapes occur in the field, and they fail differently:
6
+ *
7
+ * 1. **Deleted bare global** — a page mitigates self-XSS with
8
+ * `delete window.localStorage` and keeps a module-private reference. Since
9
+ * `window` *is* the global object, the identifier stops resolving: a bare
10
+ * read throws `ReferenceError`. `typeof` is the only safe probe, because it
11
+ * is the one operator that tolerates an unresolvable identifier.
12
+ * 2. **Blocked storage** — a webview or a cross-origin/partitioned context
13
+ * makes the accessor itself throw (`SecurityError`). Here `typeof` is *not*
14
+ * enough: it invokes the getter, so the throw escapes the guard.
15
+ *
16
+ * Handling only one shape leaves the other live, so always go through these
17
+ * resolvers instead of touching the globals directly. A `null` return means
18
+ * "no storage in this host" — callers degrade, they do not throw.
19
+ */
20
+ function resolveLocalStorage() {
21
+ try {
22
+ return typeof localStorage === "undefined" ? null : localStorage;
23
+ } catch {
24
+ return null;
25
+ }
26
+ }
27
+ function resolveSessionStorage() {
28
+ try {
29
+ return typeof sessionStorage === "undefined" ? null : sessionStorage;
30
+ } catch {
31
+ return null;
32
+ }
33
+ }
34
+
35
+ //#endregion
1
36
  //#region ../infra/src/providers/browser/MotionSensorProvider.ts
2
37
  const MOTION_PERMISSION_GRANTED_KEY = "motionSensorsPermissionsGranted";
3
38
  const MOTION_PERMISSION_DENIED_KEY = "motionSensorsPermissionsDenied";
@@ -6,8 +41,9 @@ var MotionSensorProvider = class MotionSensorProvider {
6
41
  return typeof DeviceMotionEvent !== "undefined" && typeof DeviceMotionEvent.requestPermission === "function";
7
42
  }
8
43
  static readSessionFlag(key) {
9
- if (typeof sessionStorage === "undefined") return false;
10
- return sessionStorage.getItem(key) === "true";
44
+ const storage = resolveSessionStorage();
45
+ if (!storage) return false;
46
+ return storage.getItem(key) === "true";
11
47
  }
12
48
  static hasMotionPermissionGrantedInSession() {
13
49
  return MotionSensorProvider.readSessionFlag(MOTION_PERMISSION_GRANTED_KEY);
@@ -114,15 +150,17 @@ var MotionSensorProvider = class MotionSensorProvider {
114
150
  return MotionSensorProvider.hasMotionPermissionDeniedInSession();
115
151
  }
116
152
  markMotionPermissionGrantedInSession() {
117
- if (typeof sessionStorage === "undefined") return;
118
- sessionStorage.setItem(MOTION_PERMISSION_GRANTED_KEY, String(true));
119
- sessionStorage.removeItem(MOTION_PERMISSION_DENIED_KEY);
120
- sessionStorage.setItem("motionSensorsPermissionsRequested", String(true));
153
+ const storage = resolveSessionStorage();
154
+ if (!storage) return;
155
+ storage.setItem(MOTION_PERMISSION_GRANTED_KEY, String(true));
156
+ storage.removeItem(MOTION_PERMISSION_DENIED_KEY);
157
+ storage.setItem("motionSensorsPermissionsRequested", String(true));
121
158
  }
122
159
  markMotionPermissionDeniedInSession() {
123
- if (typeof sessionStorage === "undefined") return;
124
- sessionStorage.setItem(MOTION_PERMISSION_DENIED_KEY, String(true));
125
- sessionStorage.removeItem(MOTION_PERMISSION_GRANTED_KEY);
160
+ const storage = resolveSessionStorage();
161
+ if (!storage) return;
162
+ storage.setItem(MOTION_PERMISSION_DENIED_KEY, String(true));
163
+ storage.removeItem(MOTION_PERMISSION_GRANTED_KEY);
126
164
  }
127
165
  syncSessionPermission() {
128
166
  if (!MotionSensorProvider.isIosMotionPermissionRequired()) {
@@ -301,4 +339,4 @@ var MotionSensorProvider = class MotionSensorProvider {
301
339
  };
302
340
 
303
341
  //#endregion
304
- export { MotionSensorProvider as t };
342
+ export { resolveLocalStorage as n, resolveSessionStorage as r, MotionSensorProvider as t };
@@ -1,7 +1,7 @@
1
1
  import "./StateMachine-D5WO6lHS.js";
2
2
  import { t as Manager } from "./Manager-goNPc_h_.js";
3
3
  import "./Actor-BwgmOPkb.js";
4
- 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-CPLWHXKr.js";
4
+ 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-DCDTLkNA.js";
5
5
 
6
6
  //#region src/modules/ae-signature/index.d.ts
7
7
 
@@ -3,33 +3,33 @@ import "./api-DsbUi7TO.esm.js";
3
3
  import "./events-1wxZ97yf.esm.js";
4
4
  import "./endpoints-CwrFQfW7.esm.js";
5
5
  import "./stats-BVy52wLy.esm.js";
6
- import "./browserSimulation-CWJhFPZ2.esm.js";
6
+ import "./browserSimulation-DZwEy9bu.esm.js";
7
7
  import "./platform-0Ot-bF_a.esm.js";
8
8
  import "./getBrowser-1yNcfFZR.esm.js";
9
9
  import "./xstate.esm-nY3M5UYm.esm.js";
10
- import "./faceCaptureSetup-CoQ5A9Il.esm.js";
10
+ import "./faceCaptureSetup-DIcdpyTZ.esm.js";
11
11
  import "./wasmDsFlagSync-Ch0mFJNT.esm.js";
12
12
  import "./BrowserVisibilityObserverProvider-GBS6XSii.esm.js";
13
- import "./MotionSensorProvider-D95kOKVK.esm.js";
14
- import "./permissionServices-BElIOcoJ.esm.js";
13
+ import "./MotionSensorProvider-BHuHoYvJ.esm.js";
14
+ import "./permissionServices-C_kxhNeo.esm.js";
15
15
  import "./camera-CxxXV0VN.esm.js";
16
- import "./faceCaptureManagerFactory-B65bYWfD.esm.js";
17
- import "./BrowserStorageProvider-fZsibQTR.esm.js";
18
- import "./onDeviceFaceResults-CAfvpjnC.esm.js";
16
+ import "./faceCaptureManagerFactory-D4ogJ_0w.esm.js";
17
+ import "./BrowserStorageProvider-CBHBhKQN.esm.js";
18
+ import "./onDeviceFaceResults-B-NkCXud.esm.js";
19
19
  import "./ITimerCapability-DJ73P4RK.esm.js";
20
20
  import "./canvas-Pi10hG_l.esm.js";
21
21
  import "./backCameraStream-ChrMTJv-.esm.js";
22
22
  import "./video-ZY92rkel.esm.js";
23
23
  import "./getDeviceClass-C-Dg6IsJ.esm.js";
24
- import "./deepsightService-CkZqM1Q2.esm.js";
24
+ import "./deepsightService-CViys6T4.esm.js";
25
25
  import "./getDeviceClass-DIjnTPjR.esm.js";
26
26
  import "./types-BKLb3C42.esm.js";
27
27
  import "./createFaceAvatar-BZSg2MNo.esm.js";
28
28
  import "./StreamCanvasCapture-CAqUdVkM.esm.js";
29
- import "./permissionGuards-BPZGWaL4.esm.js";
30
- import "./recordingService-Df_A6oXO.esm.js";
29
+ import "./permissionGuards-BNOe4Tnu.esm.js";
30
+ import "./recordingService-CDECCnNi.esm.js";
31
31
  import "./mediaRecorderOptions-CClCKAiF.esm.js";
32
- import { t as authenticationMachine } from "./authenticationStateMachine-CDG0SMYg.esm.js";
33
- import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-DuMSpelF.esm.js";
32
+ import { t as authenticationMachine } from "./authenticationStateMachine-B_vlpQuJ.esm.js";
33
+ import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-CaaiBwSC.esm.js";
34
34
 
35
35
  export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
@@ -1,9 +1,9 @@
1
1
  import { t as WasmUtilProvider } from "./WasmUtilProvider-BgzcXBdl.esm.js";
2
2
  import { n as eventModuleNames } from "./events-1wxZ97yf.esm.js";
3
3
  import { s as createActor } from "./xstate.esm-nY3M5UYm.esm.js";
4
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-B65bYWfD.esm.js";
5
- import { t as BrowserStorageProvider } from "./BrowserStorageProvider-fZsibQTR.esm.js";
6
- import { t as authenticationMachine } from "./authenticationStateMachine-CDG0SMYg.esm.js";
4
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-D4ogJ_0w.esm.js";
5
+ import { t as BrowserStorageProvider } from "./BrowserStorageProvider-CBHBhKQN.esm.js";
6
+ import { t as authenticationMachine } from "./authenticationStateMachine-B_vlpQuJ.esm.js";
7
7
 
8
8
  //#region src/modules/authentication/authenticationActor.ts
9
9
  function createAuthenticationActor(options) {
@@ -2,8 +2,8 @@ import { t as api } from "./api-DsbUi7TO.esm.js";
2
2
  import { t as endpoints } from "./endpoints-CwrFQfW7.esm.js";
3
3
  import { t as addDeviceStats } from "./stats-BVy52wLy.esm.js";
4
4
  import { a as fromPromise, r as assign } from "./xstate.esm-nY3M5UYm.esm.js";
5
- import { t as faceCaptureMachine } from "./faceCaptureSetup-CoQ5A9Il.esm.js";
6
- import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-CAfvpjnC.esm.js";
5
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-DIcdpyTZ.esm.js";
6
+ import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-B-NkCXud.esm.js";
7
7
  import { t as getDeviceClass } from "./getDeviceClass-DIjnTPjR.esm.js";
8
8
  import { t as FACE_ERROR_CODES } from "./types-BKLb3C42.esm.js";
9
9
 
@@ -2724,8 +2724,21 @@ var se = class {
2724
2724
  * Adapter for @thumbmarkjs/thumbmarkjs. Single point of dependency so bundlers
2725
2725
  * resolve it from infra's node_modules when building apps that depend on core → infra.
2726
2726
  */
2727
+ /**
2728
+ * `logging` must stay disabled. With it on (the upstream default) `getThumbmark()`
2729
+ * evaluates a bare, unguarded storage read:
2730
+ *
2731
+ * options.logging && !sessionStorage.getItem("_tmjs_l") && Math.random() < 1e-4
2732
+ *
2733
+ * Hosts that delete the bare global as a self-XSS mitigation (`delete
2734
+ * window.sessionStorage`) make that a `ReferenceError`, which would cost us the
2735
+ * device fingerprint. `logging: false` short-circuits the expression before the
2736
+ * read. It also stops upstream's 1-in-10 000 telemetry POST to
2737
+ * api.thumbmarkjs.com. Re-check this when bumping the dependency.
2738
+ */
2739
+ const THUMBMARK_OPTIONS = { logging: false };
2727
2740
  async function getThumbmarkId() {
2728
- return (await new se().get()).thumbmark;
2741
+ return (await new se(THUMBMARK_OPTIONS).get()).thumbmark;
2729
2742
  }
2730
2743
 
2731
2744
  //#endregion
@@ -1,6 +1,6 @@
1
1
  import "./WasmUtilProvider-BgzcXBdl.esm.js";
2
- import "./MotionSensorProvider-D95kOKVK.esm.js";
3
- import { i as requestPermission, t as checkPermission } from "./permissionServices-BElIOcoJ.esm.js";
2
+ import "./MotionSensorProvider-BHuHoYvJ.esm.js";
3
+ import { i as requestPermission, t as checkPermission } from "./permissionServices-C_kxhNeo.esm.js";
4
4
  import "./camera-CxxXV0VN.esm.js";
5
5
 
6
6
  export { checkPermission as checkCameraPermission, requestPermission as requestCameraPermission };
@@ -1,7 +1,7 @@
1
1
  import "./StateMachine-D5WO6lHS.js";
2
2
  import { t as Manager } from "./Manager-goNPc_h_.js";
3
3
  import "./Actor-BwgmOPkb.js";
4
- import * as xstate1095 from "xstate";
4
+ import * as xstate843 from "xstate";
5
5
 
6
6
  //#region src/modules/certificate-issuance/certificateIssuanceConstants.d.ts
7
7
  declare const MIN_PASSWORD_LENGTH = 8;
@@ -40,7 +40,7 @@ type CertificateIssuanceContext = {
40
40
  type CertificateIssuanceInput = {
41
41
  config: CertificateIssuanceConfig;
42
42
  };
43
- declare const certificateIssuanceMachine: xstate1095.StateMachine<CertificateIssuanceContext, {
43
+ declare const certificateIssuanceMachine: xstate843.StateMachine<CertificateIssuanceContext, {
44
44
  type: "LOAD";
45
45
  } | {
46
46
  type: "PASSWORD_CHANGED";
@@ -54,28 +54,28 @@ declare const certificateIssuanceMachine: xstate1095.StateMachine<CertificateIss
54
54
  } | {
55
55
  type: "FINISH";
56
56
  }, {
57
- [x: string]: xstate1095.ActorRefFromLogic<xstate1095.PromiseActorLogic<IssueCertificateResponse, {
57
+ [x: string]: xstate843.ActorRefFromLogic<xstate843.PromiseActorLogic<IssueCertificateResponse, {
58
58
  password: string;
59
- }, xstate1095.EventObject>> | undefined;
59
+ }, xstate843.EventObject>> | undefined;
60
60
  }, {
61
61
  src: "issueCertificate";
62
- logic: xstate1095.PromiseActorLogic<IssueCertificateResponse, {
62
+ logic: xstate843.PromiseActorLogic<IssueCertificateResponse, {
63
63
  password: string;
64
- }, xstate1095.EventObject>;
64
+ }, xstate843.EventObject>;
65
65
  id: string | undefined;
66
- }, xstate1095.Values<{
66
+ }, xstate843.Values<{
67
67
  setPassword: {
68
68
  type: "setPassword";
69
- params: xstate1095.NonReducibleUnknown;
69
+ params: xstate843.NonReducibleUnknown;
70
70
  };
71
71
  setBlob: {
72
72
  type: "setBlob";
73
- params: xstate1095.NonReducibleUnknown;
73
+ params: xstate843.NonReducibleUnknown;
74
74
  };
75
75
  }>, {
76
76
  type: "isPasswordValid";
77
77
  params: unknown;
78
- }, never, "error" | "idle" | "processing" | "success" | "finished" | "password" | "downloaded", string, CertificateIssuanceInput, xstate1095.NonReducibleUnknown, xstate1095.EventObject, xstate1095.MetaObject, {
78
+ }, never, "error" | "idle" | "processing" | "success" | "finished" | "password" | "downloaded", string, CertificateIssuanceInput, xstate843.NonReducibleUnknown, xstate843.EventObject, xstate843.MetaObject, {
79
79
  readonly id: "certificateIssuance";
80
80
  readonly initial: "idle";
81
81
  readonly context: ({
@@ -84,39 +84,39 @@ declare const certificateIssuanceMachine: xstate1095.StateMachine<CertificateIss
84
84
  spawn: {
85
85
  <TSrc extends "issueCertificate">(logic: TSrc, ...[options]: {
86
86
  src: "issueCertificate";
87
- logic: xstate1095.PromiseActorLogic<IssueCertificateResponse, {
87
+ logic: xstate843.PromiseActorLogic<IssueCertificateResponse, {
88
88
  password: string;
89
- }, xstate1095.EventObject>;
89
+ }, xstate843.EventObject>;
90
90
  id: string | undefined;
91
91
  } extends infer T ? T extends {
92
92
  src: "issueCertificate";
93
- logic: xstate1095.PromiseActorLogic<IssueCertificateResponse, {
93
+ logic: xstate843.PromiseActorLogic<IssueCertificateResponse, {
94
94
  password: string;
95
- }, xstate1095.EventObject>;
95
+ }, xstate843.EventObject>;
96
96
  id: string | undefined;
97
97
  } ? T extends {
98
98
  src: TSrc;
99
- } ? xstate1095.ConditionalRequired<[options?: ({
99
+ } ? xstate843.ConditionalRequired<[options?: ({
100
100
  id?: T["id"] | undefined;
101
101
  systemId?: string;
102
- input?: xstate1095.InputFrom<T["logic"]> | undefined;
102
+ input?: xstate843.InputFrom<T["logic"]> | undefined;
103
103
  syncSnapshot?: boolean;
104
- } & { [K in xstate1095.RequiredActorOptions<T>]: unknown }) | undefined], xstate1095.IsNotNever<xstate1095.RequiredActorOptions<T>>> : never : never : never): xstate1095.ActorRefFromLogic<xstate1095.GetConcreteByKey<{
104
+ } & { [K in xstate843.RequiredActorOptions<T>]: unknown }) | undefined], xstate843.IsNotNever<xstate843.RequiredActorOptions<T>>> : never : never : never): xstate843.ActorRefFromLogic<xstate843.GetConcreteByKey<{
105
105
  src: "issueCertificate";
106
- logic: xstate1095.PromiseActorLogic<IssueCertificateResponse, {
106
+ logic: xstate843.PromiseActorLogic<IssueCertificateResponse, {
107
107
  password: string;
108
- }, xstate1095.EventObject>;
108
+ }, xstate843.EventObject>;
109
109
  id: string | undefined;
110
110
  }, "src", TSrc>["logic"]>;
111
- <TLogic extends xstate1095.AnyActorLogic>(src: TLogic, ...[options]: xstate1095.ConditionalRequired<[options?: ({
111
+ <TLogic extends xstate843.AnyActorLogic>(src: TLogic, ...[options]: xstate843.ConditionalRequired<[options?: ({
112
112
  id?: never;
113
113
  systemId?: string;
114
- input?: xstate1095.InputFrom<TLogic> | undefined;
114
+ input?: xstate843.InputFrom<TLogic> | undefined;
115
115
  syncSnapshot?: boolean;
116
- } & { [K in xstate1095.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate1095.IsNotNever<xstate1095.RequiredLogicInput<TLogic>>>): xstate1095.ActorRefFromLogic<TLogic>;
116
+ } & { [K in xstate843.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate843.IsNotNever<xstate843.RequiredLogicInput<TLogic>>>): xstate843.ActorRefFromLogic<TLogic>;
117
117
  };
118
118
  input: CertificateIssuanceInput;
119
- self: xstate1095.ActorRef<xstate1095.MachineSnapshot<CertificateIssuanceContext, {
119
+ self: xstate843.ActorRef<xstate843.MachineSnapshot<CertificateIssuanceContext, {
120
120
  type: "LOAD";
121
121
  } | {
122
122
  type: "PASSWORD_CHANGED";
@@ -129,7 +129,7 @@ declare const certificateIssuanceMachine: xstate1095.StateMachine<CertificateIss
129
129
  type: "DOWNLOAD_FAILED";
130
130
  } | {
131
131
  type: "FINISH";
132
- }, Record<string, xstate1095.AnyActorRef | undefined>, xstate1095.StateValue, string, unknown, any, any>, {
132
+ }, Record<string, xstate843.AnyActorRef | undefined>, xstate843.StateValue, string, unknown, any, any>, {
133
133
  type: "LOAD";
134
134
  } | {
135
135
  type: "PASSWORD_CHANGED";
@@ -142,7 +142,7 @@ declare const certificateIssuanceMachine: xstate1095.StateMachine<CertificateIss
142
142
  type: "DOWNLOAD_FAILED";
143
143
  } | {
144
144
  type: "FINISH";
145
- }, xstate1095.AnyEventObject>;
145
+ }, xstate843.AnyEventObject>;
146
146
  }) => {
147
147
  config: CertificateIssuanceConfig;
148
148
  password: string;
@@ -190,7 +190,7 @@ declare const certificateIssuanceMachine: xstate1095.StateMachine<CertificateIss
190
190
  } | {
191
191
  type: "FINISH";
192
192
  };
193
- self: xstate1095.ActorRef<xstate1095.MachineSnapshot<CertificateIssuanceContext, {
193
+ self: xstate843.ActorRef<xstate843.MachineSnapshot<CertificateIssuanceContext, {
194
194
  type: "LOAD";
195
195
  } | {
196
196
  type: "PASSWORD_CHANGED";
@@ -203,7 +203,7 @@ declare const certificateIssuanceMachine: xstate1095.StateMachine<CertificateIss
203
203
  type: "DOWNLOAD_FAILED";
204
204
  } | {
205
205
  type: "FINISH";
206
- }, Record<string, xstate1095.AnyActorRef>, xstate1095.StateValue, string, unknown, any, any>, {
206
+ }, Record<string, xstate843.AnyActorRef>, xstate843.StateValue, string, unknown, any, any>, {
207
207
  type: "LOAD";
208
208
  } | {
209
209
  type: "PASSWORD_CHANGED";
@@ -216,7 +216,7 @@ declare const certificateIssuanceMachine: xstate1095.StateMachine<CertificateIss
216
216
  type: "DOWNLOAD_FAILED";
217
217
  } | {
218
218
  type: "FINISH";
219
- }, xstate1095.AnyEventObject>;
219
+ }, xstate843.AnyEventObject>;
220
220
  }) => {
221
221
  password: string;
222
222
  };
package/dist/consent.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./StateMachine-D5WO6lHS.js";
2
2
  import "./Manager-goNPc_h_.js";
3
3
  import "./Actor-BwgmOPkb.js";
4
- 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-2EPNWwaG.js";
4
+ 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-CuA2nywX.js";
5
5
  export { type ConsentActor, type ConsentCheckbox, type ConsentConfig, type ConsentManager, type ConsentState, consentMachine, createConsentManager, createConsentManagerFromActor };