@incodetech/core 0.0.0-dev-20260619-bb63cb3a → 0.0.0-dev-20260619-dd4a6874

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 (57) hide show
  1. package/dist/{WasmUtilProvider-CAZ4AD98.esm.js → WasmUtilProvider-CIu373BZ.esm.js} +10 -1
  2. package/dist/ae-signature.d.ts +1 -1
  3. package/dist/authentication.esm.js +8 -8
  4. package/dist/{authenticationManager-BG6QpPct.esm.js → authenticationManager-Bwn7fioj.esm.js} +3 -3
  5. package/dist/{authenticationStateMachine-BESir35o.esm.js → authenticationStateMachine-CY9tW24P.esm.js} +2 -2
  6. package/dist/{browser-DlFgHpoC-iQk9oyxh.esm.js → browser-DlFgHpoC-DwBHV6-1.esm.js} +1 -1
  7. package/dist/camera.esm.js +2 -2
  8. package/dist/certificate-issuance.d.ts +28 -28
  9. package/dist/consent.d.ts +1 -1
  10. package/dist/{consentManager-CNdr6JTS.d.ts → consentManager-BFuU3KoB.d.ts} +47 -47
  11. package/dist/cpf-ocr.d.ts +1 -1
  12. package/dist/{cpfOcrManager-CII4qiF3.d.ts → cpfOcrManager-OBTw8aBe.d.ts} +17 -17
  13. package/dist/{deepsightLoader-D8lOvUfM.esm.js → deepsightLoader-DbNpK-z4.esm.js} +1 -1
  14. package/dist/document-capture.d.ts +170 -170
  15. package/dist/document-capture.esm.js +4 -4
  16. package/dist/document-upload.d.ts +40 -40
  17. package/dist/{documentCaptureStateMachine-Q9bBy9DC.esm.js → documentCaptureStateMachine-B_yBteIZ.esm.js} +2 -2
  18. package/dist/ekyb.esm.js +3 -3
  19. package/dist/{ekybStateMachine-DGFH-tLB.esm.js → ekybStateMachine-DmvgDUYP.esm.js} +1 -1
  20. package/dist/electronic-signature.d.ts +1 -1
  21. package/dist/extensibility.d.ts +4 -4
  22. package/dist/extensibility.esm.js +13 -13
  23. package/dist/{faceCaptureManagerFactory-Deh9tYoN.esm.js → faceCaptureManagerFactory-Juvtt26S.esm.js} +1 -1
  24. package/dist/{faceCaptureSetup-DOp6N3Ay.esm.js → faceCaptureSetup-DjRmRo0V.esm.js} +3 -3
  25. package/dist/flow.d.ts +2 -2
  26. package/dist/flow.esm.js +2 -2
  27. package/dist/{flowServices-3MBrgTQn.esm.js → flowServices-CyEOjzFi.esm.js} +1 -1
  28. package/dist/home.d.ts +10 -10
  29. package/dist/id-ocr.d.ts +52 -52
  30. package/dist/id-verification.d.ts +25 -25
  31. package/dist/id.esm.js +7 -7
  32. package/dist/{idCaptureManager-Bkrt8QIC.esm.js → idCaptureManager-DNvxrhqR.esm.js} +2 -2
  33. package/dist/{idCaptureStateMachine-H-1tL3jX.esm.js → idCaptureStateMachine-CWrUP_DQ.esm.js} +6 -6
  34. package/dist/identity-reuse.d.ts +1 -1
  35. package/dist/{identityReuseManager-C3VRLqYZ.d.ts → identityReuseManager-BuBt7AJB.d.ts} +34 -34
  36. package/dist/{index-DXzIC0HG.d.ts → index-DPzIjcrz.d.ts} +168 -168
  37. package/dist/index.esm.js +4 -4
  38. package/dist/mandatory-consent.d.ts +1 -1
  39. package/dist/{mandatoryConsentManager-Cy0yEZ2A.d.ts → mandatoryConsentManager-Dn1p_Mbl.d.ts} +50 -50
  40. package/dist/{permissionGuards-MDEdZAXO.esm.js → permissionGuards-D-Z-lgNj.esm.js} +1 -1
  41. package/dist/{permissionServices-BApXq7a0.esm.js → permissionServices-CPDboRoE.esm.js} +1 -1
  42. package/dist/qe-signature.d.ts +1 -1
  43. package/dist/{recordingService-D6wX1gjP.esm.js → recordingService-DrBGyI6d.esm.js} +2 -2
  44. package/dist/selfie.esm.js +8 -8
  45. package/dist/{selfieManager-1C0NFNWn.esm.js → selfieManager-C6jYvRAX.esm.js} +3 -3
  46. package/dist/{selfieStateMachine-BJkorR40.esm.js → selfieStateMachine-BmLe1og0.esm.js} +2 -2
  47. package/dist/session.esm.js +1 -1
  48. package/dist/{sessionInitializer-DBTrvltw.esm.js → sessionInitializer-BSKJg9bU.esm.js} +1 -1
  49. package/dist/{setup-Dq9-4cRc.esm.js → setup-dbz5Ecax.esm.js} +3 -3
  50. package/dist/{tri-DPpCyQfs.esm.js → tri-nGQNAf3M.esm.js} +1 -1
  51. package/dist/{tri.esm-CpKcH4P7.esm.js → tri.esm-seBni-5K.esm.js} +121 -118
  52. package/dist/tri.esm.js +1 -1
  53. package/dist/trust-graph.d.ts +2 -2
  54. package/dist/wasm.esm.js +4 -4
  55. package/dist/workflow.d.ts +140 -140
  56. package/dist/workflow.esm.js +12 -12
  57. package/package.json +1 -1
@@ -919,6 +919,7 @@ let loadingPromise = null;
919
919
  let wasmError = null;
920
920
  let loadedPipelines = [];
921
921
  let lastConfig = null;
922
+ let pipelinesInFlight = [];
922
923
  function mapPipelineToWasmType(pipeline) {
923
924
  switch (pipeline) {
924
925
  case "selfie": return WasmPipelineType.SelfieWithQualityMetrics;
@@ -985,13 +986,18 @@ function buildPipelinesMap(pipelines, modelsBasePath, customModels) {
985
986
  async function warmupWasm(config) {
986
987
  const pipelines = config.pipelines ?? [...WASM_PIPELINES];
987
988
  const modelsBasePath = config.modelsBasePath ?? deriveModelsBasePath(config.wasmPath);
988
- if (state === "loading" && loadingPromise) return loadingPromise;
989
+ if (state === "loading" && loadingPromise) {
990
+ const inFlight = loadingPromise;
991
+ if (pipelines.filter((p) => !pipelinesInFlight.includes(p)).length === 0) return inFlight;
992
+ return inFlight.then(() => warmupWasm(config));
993
+ }
989
994
  if (state === "ready") {
990
995
  if (pipelines.filter((p) => !loadedPipelines.includes(p)).length === 0) return;
991
996
  if (!lastConfig) throw new Error("Cannot add pipelines: original warmup config not available");
992
997
  if (lastConfig.wasmPath !== config.wasmPath || lastConfig.glueCodePath !== config.glueCodePath || (lastConfig.wasmSimdPath ?? lastConfig.wasmPath) !== (config.wasmSimdPath ?? config.wasmPath) || (lastConfig.glueCodeSimdPath ?? "") !== (config.glueCodeSimdPath ?? "") || (lastConfig.useSimd ?? true) !== (config.useSimd ?? true)) throw new Error("Cannot add pipelines: WASM config mismatch. Use same wasmPath, glueCodePath, and useSimd settings.");
993
998
  const combinedPipelines = [...new Set([...loadedPipelines, ...pipelines])];
994
999
  state = "loading";
1000
+ pipelinesInFlight = combinedPipelines;
995
1001
  wasmError = null;
996
1002
  loadingPromise = (async () => {
997
1003
  try {
@@ -1010,12 +1016,14 @@ async function warmupWasm(config) {
1010
1016
  state = "error";
1011
1017
  wasmError = error instanceof Error ? error : new Error(String(error));
1012
1018
  loadingPromise = null;
1019
+ pipelinesInFlight = [];
1013
1020
  throw wasmError;
1014
1021
  }
1015
1022
  })();
1016
1023
  return loadingPromise;
1017
1024
  }
1018
1025
  state = "loading";
1026
+ pipelinesInFlight = [...pipelines];
1019
1027
  wasmError = null;
1020
1028
  loadingPromise = (async () => {
1021
1029
  try {
@@ -1034,6 +1042,7 @@ async function warmupWasm(config) {
1034
1042
  state = "error";
1035
1043
  wasmError = error instanceof Error ? error : new Error(String(error));
1036
1044
  loadingPromise = null;
1045
+ pipelinesInFlight = [];
1037
1046
  throw wasmError;
1038
1047
  }
1039
1048
  })();
@@ -1,6 +1,6 @@
1
1
  import { t as Manager } from "./Manager-B2OEDYqf.js";
2
2
  import "./Actor-fIPLXfoi.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-DXzIC0HG.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-DPzIjcrz.js";
4
4
 
5
5
  //#region src/modules/ae-signature/index.d.ts
6
6
 
@@ -1,4 +1,4 @@
1
- import "./WasmUtilProvider-CAZ4AD98.esm.js";
1
+ import "./WasmUtilProvider-CIu373BZ.esm.js";
2
2
  import "./api-DUZwyz0o.esm.js";
3
3
  import "./events-BduWcqZW.esm.js";
4
4
  import "./endpoints-B2t80MAM.esm.js";
@@ -9,10 +9,10 @@ import "./getBrowser-Dv8LZyHE.esm.js";
9
9
  import "./xstate.esm-BwZUki12.esm.js";
10
10
  import "./BrowserStorageProvider-CGCKial0.esm.js";
11
11
  import "./MotionSensorProvider-C9fPAJdS.esm.js";
12
- import "./permissionServices-BApXq7a0.esm.js";
12
+ import "./permissionServices-CPDboRoE.esm.js";
13
13
  import "./camera-x4LjGTjZ.esm.js";
14
- import "./faceCaptureManagerFactory-Deh9tYoN.esm.js";
15
- import "./recordingService-D6wX1gjP.esm.js";
14
+ import "./faceCaptureManagerFactory-Juvtt26S.esm.js";
15
+ import "./recordingService-DrBGyI6d.esm.js";
16
16
  import "./ITimerCapability-BvH0pDwp.esm.js";
17
17
  import "./canvas-7uX2izHb.esm.js";
18
18
  import "./backCameraStream-iftkf3rd.esm.js";
@@ -21,9 +21,9 @@ import "./getDeviceClass-C0zrM97a.esm.js";
21
21
  import "./getDeviceClass-rXKlXywy.esm.js";
22
22
  import "./types-BdVOWGGW.esm.js";
23
23
  import "./StreamCanvasCapture-Dr5n_iK1.esm.js";
24
- import "./permissionGuards-MDEdZAXO.esm.js";
25
- import "./faceCaptureSetup-DOp6N3Ay.esm.js";
26
- import { t as authenticationMachine } from "./authenticationStateMachine-BESir35o.esm.js";
27
- import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-BG6QpPct.esm.js";
24
+ import "./permissionGuards-D-Z-lgNj.esm.js";
25
+ import "./faceCaptureSetup-DjRmRo0V.esm.js";
26
+ import { t as authenticationMachine } from "./authenticationStateMachine-CY9tW24P.esm.js";
27
+ import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-Bwn7fioj.esm.js";
28
28
 
29
29
  export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
@@ -1,9 +1,9 @@
1
- import { t as WasmUtilProvider } from "./WasmUtilProvider-CAZ4AD98.esm.js";
1
+ import { t as WasmUtilProvider } from "./WasmUtilProvider-CIu373BZ.esm.js";
2
2
  import { n as eventModuleNames } from "./events-BduWcqZW.esm.js";
3
3
  import { s as createActor } from "./xstate.esm-BwZUki12.esm.js";
4
4
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-CGCKial0.esm.js";
5
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-Deh9tYoN.esm.js";
6
- import { t as authenticationMachine } from "./authenticationStateMachine-BESir35o.esm.js";
5
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-Juvtt26S.esm.js";
6
+ import { t as authenticationMachine } from "./authenticationStateMachine-CY9tW24P.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-DUZwyz0o.esm.js";
2
2
  import { t as endpoints } from "./endpoints-B2t80MAM.esm.js";
3
3
  import { t as addDeviceStats } from "./stats-32mOt6D8.esm.js";
4
4
  import { a as fromPromise, r as assign } from "./xstate.esm-BwZUki12.esm.js";
5
- import { a as defaultPrepareFaceUpload, c as prepareOnDeviceFaceUpload, o as isOnDeviceMode, s as postOnDeviceFaceResults } from "./recordingService-D6wX1gjP.esm.js";
5
+ import { a as defaultPrepareFaceUpload, c as prepareOnDeviceFaceUpload, o as isOnDeviceMode, s as postOnDeviceFaceResults } from "./recordingService-DrBGyI6d.esm.js";
6
6
  import { t as getDeviceClass } from "./getDeviceClass-rXKlXywy.esm.js";
7
7
  import { t as FACE_ERROR_CODES } from "./types-BdVOWGGW.esm.js";
8
- import { t as faceCaptureMachine } from "./faceCaptureSetup-DOp6N3Ay.esm.js";
8
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-DjRmRo0V.esm.js";
9
9
 
10
10
  //#region src/modules/authentication/authenticationErrorUtils.ts
11
11
  const AUTH_ERROR_MAP = {
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/@incodetech+tri-sdk@0.4.0/node_modules/@incodetech/tri-sdk/dist/chunks/browser-DlFgHpoC.js
1
+ //#region ../../node_modules/.pnpm/@incodetech+tri-sdk@0.4.1/node_modules/@incodetech/tri-sdk/dist/chunks/browser-DlFgHpoC.js
2
2
  var n = {}, t = Uint8Array, i = Uint16Array, r = Int32Array, e = new t([
3
3
  0,
4
4
  0,
@@ -1,6 +1,6 @@
1
- import "./WasmUtilProvider-CAZ4AD98.esm.js";
1
+ import "./WasmUtilProvider-CIu373BZ.esm.js";
2
2
  import "./MotionSensorProvider-C9fPAJdS.esm.js";
3
- import { i as requestPermission, t as checkPermission } from "./permissionServices-BApXq7a0.esm.js";
3
+ import { i as requestPermission, t as checkPermission } from "./permissionServices-CPDboRoE.esm.js";
4
4
  import "./camera-x4LjGTjZ.esm.js";
5
5
 
6
6
  export { checkPermission as checkCameraPermission, requestPermission as requestCameraPermission };
@@ -1,6 +1,6 @@
1
1
  import { t as Manager } from "./Manager-B2OEDYqf.js";
2
2
  import "./Actor-fIPLXfoi.js";
3
- import * as xstate573 from "xstate";
3
+ import * as xstate439 from "xstate";
4
4
 
5
5
  //#region src/modules/certificate-issuance/certificateIssuanceConstants.d.ts
6
6
  declare const MIN_PASSWORD_LENGTH = 8;
@@ -39,7 +39,7 @@ type CertificateIssuanceContext = {
39
39
  type CertificateIssuanceInput = {
40
40
  config: CertificateIssuanceConfig;
41
41
  };
42
- declare const certificateIssuanceMachine: xstate573.StateMachine<CertificateIssuanceContext, {
42
+ declare const certificateIssuanceMachine: xstate439.StateMachine<CertificateIssuanceContext, {
43
43
  type: "LOAD";
44
44
  } | {
45
45
  type: "PASSWORD_CHANGED";
@@ -53,28 +53,28 @@ declare const certificateIssuanceMachine: xstate573.StateMachine<CertificateIssu
53
53
  } | {
54
54
  type: "FINISH";
55
55
  }, {
56
- [x: string]: xstate573.ActorRefFromLogic<xstate573.PromiseActorLogic<IssueCertificateResponse, {
56
+ [x: string]: xstate439.ActorRefFromLogic<xstate439.PromiseActorLogic<IssueCertificateResponse, {
57
57
  password: string;
58
- }, xstate573.EventObject>> | undefined;
58
+ }, xstate439.EventObject>> | undefined;
59
59
  }, {
60
60
  src: "issueCertificate";
61
- logic: xstate573.PromiseActorLogic<IssueCertificateResponse, {
61
+ logic: xstate439.PromiseActorLogic<IssueCertificateResponse, {
62
62
  password: string;
63
- }, xstate573.EventObject>;
63
+ }, xstate439.EventObject>;
64
64
  id: string | undefined;
65
- }, xstate573.Values<{
65
+ }, xstate439.Values<{
66
66
  setPassword: {
67
67
  type: "setPassword";
68
- params: xstate573.NonReducibleUnknown;
68
+ params: xstate439.NonReducibleUnknown;
69
69
  };
70
70
  setBlob: {
71
71
  type: "setBlob";
72
- params: xstate573.NonReducibleUnknown;
72
+ params: xstate439.NonReducibleUnknown;
73
73
  };
74
74
  }>, {
75
75
  type: "isPasswordValid";
76
76
  params: unknown;
77
- }, never, "error" | "idle" | "processing" | "success" | "finished" | "password" | "downloaded", string, CertificateIssuanceInput, xstate573.NonReducibleUnknown, xstate573.EventObject, xstate573.MetaObject, {
77
+ }, never, "error" | "idle" | "processing" | "success" | "finished" | "password" | "downloaded", string, CertificateIssuanceInput, xstate439.NonReducibleUnknown, xstate439.EventObject, xstate439.MetaObject, {
78
78
  readonly id: "certificateIssuance";
79
79
  readonly initial: "idle";
80
80
  readonly context: ({
@@ -83,39 +83,39 @@ declare const certificateIssuanceMachine: xstate573.StateMachine<CertificateIssu
83
83
  spawn: {
84
84
  <TSrc extends "issueCertificate">(logic: TSrc, ...[options]: {
85
85
  src: "issueCertificate";
86
- logic: xstate573.PromiseActorLogic<IssueCertificateResponse, {
86
+ logic: xstate439.PromiseActorLogic<IssueCertificateResponse, {
87
87
  password: string;
88
- }, xstate573.EventObject>;
88
+ }, xstate439.EventObject>;
89
89
  id: string | undefined;
90
90
  } extends infer T ? T extends {
91
91
  src: "issueCertificate";
92
- logic: xstate573.PromiseActorLogic<IssueCertificateResponse, {
92
+ logic: xstate439.PromiseActorLogic<IssueCertificateResponse, {
93
93
  password: string;
94
- }, xstate573.EventObject>;
94
+ }, xstate439.EventObject>;
95
95
  id: string | undefined;
96
96
  } ? T extends {
97
97
  src: TSrc;
98
- } ? xstate573.ConditionalRequired<[options?: ({
98
+ } ? xstate439.ConditionalRequired<[options?: ({
99
99
  id?: T["id"] | undefined;
100
100
  systemId?: string;
101
- input?: xstate573.InputFrom<T["logic"]> | undefined;
101
+ input?: xstate439.InputFrom<T["logic"]> | undefined;
102
102
  syncSnapshot?: boolean;
103
- } & { [K in xstate573.RequiredActorOptions<T>]: unknown }) | undefined], xstate573.IsNotNever<xstate573.RequiredActorOptions<T>>> : never : never : never): xstate573.ActorRefFromLogic<xstate573.GetConcreteByKey<{
103
+ } & { [K in xstate439.RequiredActorOptions<T>]: unknown }) | undefined], xstate439.IsNotNever<xstate439.RequiredActorOptions<T>>> : never : never : never): xstate439.ActorRefFromLogic<xstate439.GetConcreteByKey<{
104
104
  src: "issueCertificate";
105
- logic: xstate573.PromiseActorLogic<IssueCertificateResponse, {
105
+ logic: xstate439.PromiseActorLogic<IssueCertificateResponse, {
106
106
  password: string;
107
- }, xstate573.EventObject>;
107
+ }, xstate439.EventObject>;
108
108
  id: string | undefined;
109
109
  }, "src", TSrc>["logic"]>;
110
- <TLogic extends xstate573.AnyActorLogic>(src: TLogic, ...[options]: xstate573.ConditionalRequired<[options?: ({
110
+ <TLogic extends xstate439.AnyActorLogic>(src: TLogic, ...[options]: xstate439.ConditionalRequired<[options?: ({
111
111
  id?: never;
112
112
  systemId?: string;
113
- input?: xstate573.InputFrom<TLogic> | undefined;
113
+ input?: xstate439.InputFrom<TLogic> | undefined;
114
114
  syncSnapshot?: boolean;
115
- } & { [K in xstate573.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate573.IsNotNever<xstate573.RequiredLogicInput<TLogic>>>): xstate573.ActorRefFromLogic<TLogic>;
115
+ } & { [K in xstate439.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate439.IsNotNever<xstate439.RequiredLogicInput<TLogic>>>): xstate439.ActorRefFromLogic<TLogic>;
116
116
  };
117
117
  input: CertificateIssuanceInput;
118
- self: xstate573.ActorRef<xstate573.MachineSnapshot<CertificateIssuanceContext, {
118
+ self: xstate439.ActorRef<xstate439.MachineSnapshot<CertificateIssuanceContext, {
119
119
  type: "LOAD";
120
120
  } | {
121
121
  type: "PASSWORD_CHANGED";
@@ -128,7 +128,7 @@ declare const certificateIssuanceMachine: xstate573.StateMachine<CertificateIssu
128
128
  type: "DOWNLOAD_FAILED";
129
129
  } | {
130
130
  type: "FINISH";
131
- }, Record<string, xstate573.AnyActorRef | undefined>, xstate573.StateValue, string, unknown, any, any>, {
131
+ }, Record<string, xstate439.AnyActorRef | undefined>, xstate439.StateValue, string, unknown, any, any>, {
132
132
  type: "LOAD";
133
133
  } | {
134
134
  type: "PASSWORD_CHANGED";
@@ -141,7 +141,7 @@ declare const certificateIssuanceMachine: xstate573.StateMachine<CertificateIssu
141
141
  type: "DOWNLOAD_FAILED";
142
142
  } | {
143
143
  type: "FINISH";
144
- }, xstate573.AnyEventObject>;
144
+ }, xstate439.AnyEventObject>;
145
145
  }) => {
146
146
  config: CertificateIssuanceConfig;
147
147
  password: string;
@@ -189,7 +189,7 @@ declare const certificateIssuanceMachine: xstate573.StateMachine<CertificateIssu
189
189
  } | {
190
190
  type: "FINISH";
191
191
  };
192
- self: xstate573.ActorRef<xstate573.MachineSnapshot<CertificateIssuanceContext, {
192
+ self: xstate439.ActorRef<xstate439.MachineSnapshot<CertificateIssuanceContext, {
193
193
  type: "LOAD";
194
194
  } | {
195
195
  type: "PASSWORD_CHANGED";
@@ -202,7 +202,7 @@ declare const certificateIssuanceMachine: xstate573.StateMachine<CertificateIssu
202
202
  type: "DOWNLOAD_FAILED";
203
203
  } | {
204
204
  type: "FINISH";
205
- }, Record<string, xstate573.AnyActorRef>, xstate573.StateValue, string, unknown, any, any>, {
205
+ }, Record<string, xstate439.AnyActorRef>, xstate439.StateValue, string, unknown, any, any>, {
206
206
  type: "LOAD";
207
207
  } | {
208
208
  type: "PASSWORD_CHANGED";
@@ -215,7 +215,7 @@ declare const certificateIssuanceMachine: xstate573.StateMachine<CertificateIssu
215
215
  type: "DOWNLOAD_FAILED";
216
216
  } | {
217
217
  type: "FINISH";
218
- }, xstate573.AnyEventObject>;
218
+ }, xstate439.AnyEventObject>;
219
219
  }) => {
220
220
  password: string;
221
221
  };
package/dist/consent.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  import "./Manager-B2OEDYqf.js";
2
2
  import "./Actor-fIPLXfoi.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-CNdr6JTS.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-BFuU3KoB.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-B2OEDYqf.js";
2
2
  import { t as ActorRefFrom } from "./Actor-fIPLXfoi.js";
3
- import * as xstate1529 from "xstate";
3
+ import * as xstate1375 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: xstate1529.StateMachine<ConsentContext, {
40
+ declare const consentMachine: xstate1375.StateMachine<ConsentContext, {
41
41
  type: "LOAD";
42
42
  } | {
43
43
  type: "TOGGLE_CHECKBOX";
@@ -49,55 +49,55 @@ declare const consentMachine: xstate1529.StateMachine<ConsentContext, {
49
49
  } | {
50
50
  type: "RESET";
51
51
  }, {
52
- [x: string]: xstate1529.ActorRefFromLogic<xstate1529.PromiseActorLogic<FetchCombinedConsentResponse, {
52
+ [x: string]: xstate1375.ActorRefFromLogic<xstate1375.PromiseActorLogic<FetchCombinedConsentResponse, {
53
53
  consentId: string;
54
54
  language?: string;
55
- }, xstate1529.EventObject>> | xstate1529.ActorRefFromLogic<xstate1529.PromiseActorLogic<void, {
55
+ }, xstate1375.EventObject>> | xstate1375.ActorRefFromLogic<xstate1375.PromiseActorLogic<void, {
56
56
  languageConsentId: string;
57
57
  checkboxes: ConsentCheckbox[];
58
- }, xstate1529.EventObject>> | undefined;
59
- }, xstate1529.Values<{
58
+ }, xstate1375.EventObject>> | undefined;
59
+ }, xstate1375.Values<{
60
60
  fetchConsent: {
61
61
  src: "fetchConsent";
62
- logic: xstate1529.PromiseActorLogic<FetchCombinedConsentResponse, {
62
+ logic: xstate1375.PromiseActorLogic<FetchCombinedConsentResponse, {
63
63
  consentId: string;
64
64
  language?: string;
65
- }, xstate1529.EventObject>;
65
+ }, xstate1375.EventObject>;
66
66
  id: string | undefined;
67
67
  };
68
68
  submitConsent: {
69
69
  src: "submitConsent";
70
- logic: xstate1529.PromiseActorLogic<void, {
70
+ logic: xstate1375.PromiseActorLogic<void, {
71
71
  languageConsentId: string;
72
72
  checkboxes: ConsentCheckbox[];
73
- }, xstate1529.EventObject>;
73
+ }, xstate1375.EventObject>;
74
74
  id: string | undefined;
75
75
  };
76
- }>, xstate1529.Values<{
76
+ }>, xstate1375.Values<{
77
77
  setError: {
78
78
  type: "setError";
79
- params: xstate1529.NonReducibleUnknown;
79
+ params: xstate1375.NonReducibleUnknown;
80
80
  };
81
81
  clearError: {
82
82
  type: "clearError";
83
- params: xstate1529.NonReducibleUnknown;
83
+ params: xstate1375.NonReducibleUnknown;
84
84
  };
85
85
  resetContext: {
86
86
  type: "resetContext";
87
- params: xstate1529.NonReducibleUnknown;
87
+ params: xstate1375.NonReducibleUnknown;
88
88
  };
89
89
  setConsentData: {
90
90
  type: "setConsentData";
91
- params: xstate1529.NonReducibleUnknown;
91
+ params: xstate1375.NonReducibleUnknown;
92
92
  };
93
93
  toggleCheckbox: {
94
94
  type: "toggleCheckbox";
95
- params: xstate1529.NonReducibleUnknown;
95
+ params: xstate1375.NonReducibleUnknown;
96
96
  };
97
97
  }>, {
98
98
  type: "canSubmit";
99
99
  params: unknown;
100
- }, never, "error" | "idle" | "finished" | "loading" | "submitting" | "display", string, ConsentInput, xstate1529.NonReducibleUnknown, xstate1529.EventObject, xstate1529.MetaObject, {
100
+ }, never, "error" | "idle" | "finished" | "loading" | "display" | "submitting", string, ConsentInput, xstate1375.NonReducibleUnknown, xstate1375.EventObject, xstate1375.MetaObject, {
101
101
  readonly id: "consent";
102
102
  readonly initial: "idle";
103
103
  readonly context: ({
@@ -106,73 +106,73 @@ declare const consentMachine: xstate1529.StateMachine<ConsentContext, {
106
106
  spawn: {
107
107
  <TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
108
108
  src: "fetchConsent";
109
- logic: xstate1529.PromiseActorLogic<FetchCombinedConsentResponse, {
109
+ logic: xstate1375.PromiseActorLogic<FetchCombinedConsentResponse, {
110
110
  consentId: string;
111
111
  language?: string;
112
- }, xstate1529.EventObject>;
112
+ }, xstate1375.EventObject>;
113
113
  id: string | undefined;
114
114
  } extends infer T ? T extends {
115
115
  src: "fetchConsent";
116
- logic: xstate1529.PromiseActorLogic<FetchCombinedConsentResponse, {
116
+ logic: xstate1375.PromiseActorLogic<FetchCombinedConsentResponse, {
117
117
  consentId: string;
118
118
  language?: string;
119
- }, xstate1529.EventObject>;
119
+ }, xstate1375.EventObject>;
120
120
  id: string | undefined;
121
121
  } ? T extends {
122
122
  src: TSrc;
123
- } ? xstate1529.ConditionalRequired<[options?: ({
123
+ } ? xstate1375.ConditionalRequired<[options?: ({
124
124
  id?: T["id"] | undefined;
125
125
  systemId?: string;
126
- input?: xstate1529.InputFrom<T["logic"]> | undefined;
126
+ input?: xstate1375.InputFrom<T["logic"]> | undefined;
127
127
  syncSnapshot?: boolean;
128
- } & { [K in xstate1529.RequiredActorOptions<T>]: unknown }) | undefined], xstate1529.IsNotNever<xstate1529.RequiredActorOptions<T>>> : never : never : never) | ({
128
+ } & { [K in xstate1375.RequiredActorOptions<T>]: unknown }) | undefined], xstate1375.IsNotNever<xstate1375.RequiredActorOptions<T>>> : never : never : never) | ({
129
129
  src: "submitConsent";
130
- logic: xstate1529.PromiseActorLogic<void, {
130
+ logic: xstate1375.PromiseActorLogic<void, {
131
131
  languageConsentId: string;
132
132
  checkboxes: ConsentCheckbox[];
133
- }, xstate1529.EventObject>;
133
+ }, xstate1375.EventObject>;
134
134
  id: string | undefined;
135
135
  } extends infer T_1 ? T_1 extends {
136
136
  src: "submitConsent";
137
- logic: xstate1529.PromiseActorLogic<void, {
137
+ logic: xstate1375.PromiseActorLogic<void, {
138
138
  languageConsentId: string;
139
139
  checkboxes: ConsentCheckbox[];
140
- }, xstate1529.EventObject>;
140
+ }, xstate1375.EventObject>;
141
141
  id: string | undefined;
142
142
  } ? T_1 extends {
143
143
  src: TSrc;
144
- } ? xstate1529.ConditionalRequired<[options?: ({
144
+ } ? xstate1375.ConditionalRequired<[options?: ({
145
145
  id?: T_1["id"] | undefined;
146
146
  systemId?: string;
147
- input?: xstate1529.InputFrom<T_1["logic"]> | undefined;
147
+ input?: xstate1375.InputFrom<T_1["logic"]> | undefined;
148
148
  syncSnapshot?: boolean;
149
- } & { [K_1 in xstate1529.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate1529.IsNotNever<xstate1529.RequiredActorOptions<T_1>>> : never : never : never)): xstate1529.ActorRefFromLogic<xstate1529.GetConcreteByKey<xstate1529.Values<{
149
+ } & { [K_1 in xstate1375.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate1375.IsNotNever<xstate1375.RequiredActorOptions<T_1>>> : never : never : never)): xstate1375.ActorRefFromLogic<xstate1375.GetConcreteByKey<xstate1375.Values<{
150
150
  fetchConsent: {
151
151
  src: "fetchConsent";
152
- logic: xstate1529.PromiseActorLogic<FetchCombinedConsentResponse, {
152
+ logic: xstate1375.PromiseActorLogic<FetchCombinedConsentResponse, {
153
153
  consentId: string;
154
154
  language?: string;
155
- }, xstate1529.EventObject>;
155
+ }, xstate1375.EventObject>;
156
156
  id: string | undefined;
157
157
  };
158
158
  submitConsent: {
159
159
  src: "submitConsent";
160
- logic: xstate1529.PromiseActorLogic<void, {
160
+ logic: xstate1375.PromiseActorLogic<void, {
161
161
  languageConsentId: string;
162
162
  checkboxes: ConsentCheckbox[];
163
- }, xstate1529.EventObject>;
163
+ }, xstate1375.EventObject>;
164
164
  id: string | undefined;
165
165
  };
166
166
  }>, "src", TSrc>["logic"]>;
167
- <TLogic extends xstate1529.AnyActorLogic>(src: TLogic, ...[options]: xstate1529.ConditionalRequired<[options?: ({
167
+ <TLogic extends xstate1375.AnyActorLogic>(src: TLogic, ...[options]: xstate1375.ConditionalRequired<[options?: ({
168
168
  id?: never;
169
169
  systemId?: string;
170
- input?: xstate1529.InputFrom<TLogic> | undefined;
170
+ input?: xstate1375.InputFrom<TLogic> | undefined;
171
171
  syncSnapshot?: boolean;
172
- } & { [K in xstate1529.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate1529.IsNotNever<xstate1529.RequiredLogicInput<TLogic>>>): xstate1529.ActorRefFromLogic<TLogic>;
172
+ } & { [K in xstate1375.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate1375.IsNotNever<xstate1375.RequiredLogicInput<TLogic>>>): xstate1375.ActorRefFromLogic<TLogic>;
173
173
  };
174
174
  input: ConsentInput;
175
- self: xstate1529.ActorRef<xstate1529.MachineSnapshot<ConsentContext, {
175
+ self: xstate1375.ActorRef<xstate1375.MachineSnapshot<ConsentContext, {
176
176
  type: "LOAD";
177
177
  } | {
178
178
  type: "TOGGLE_CHECKBOX";
@@ -183,7 +183,7 @@ declare const consentMachine: xstate1529.StateMachine<ConsentContext, {
183
183
  type: "RETRY";
184
184
  } | {
185
185
  type: "RESET";
186
- }, Record<string, xstate1529.AnyActorRef | undefined>, xstate1529.StateValue, string, unknown, any, any>, {
186
+ }, Record<string, xstate1375.AnyActorRef | undefined>, xstate1375.StateValue, string, unknown, any, any>, {
187
187
  type: "LOAD";
188
188
  } | {
189
189
  type: "TOGGLE_CHECKBOX";
@@ -194,7 +194,7 @@ declare const consentMachine: xstate1529.StateMachine<ConsentContext, {
194
194
  type: "RETRY";
195
195
  } | {
196
196
  type: "RESET";
197
- }, xstate1529.AnyEventObject>;
197
+ }, xstate1375.AnyEventObject>;
198
198
  }) => {
199
199
  config: ConsentConfig;
200
200
  title: string;
@@ -232,7 +232,7 @@ declare const consentMachine: xstate1529.StateMachine<ConsentContext, {
232
232
  } | {
233
233
  type: "RESET";
234
234
  };
235
- self: xstate1529.ActorRef<xstate1529.MachineSnapshot<ConsentContext, {
235
+ self: xstate1375.ActorRef<xstate1375.MachineSnapshot<ConsentContext, {
236
236
  type: "LOAD";
237
237
  } | {
238
238
  type: "TOGGLE_CHECKBOX";
@@ -243,7 +243,7 @@ declare const consentMachine: xstate1529.StateMachine<ConsentContext, {
243
243
  type: "RETRY";
244
244
  } | {
245
245
  type: "RESET";
246
- }, Record<string, xstate1529.AnyActorRef>, xstate1529.StateValue, string, unknown, any, any>, {
246
+ }, Record<string, xstate1375.AnyActorRef>, xstate1375.StateValue, string, unknown, any, any>, {
247
247
  type: "LOAD";
248
248
  } | {
249
249
  type: "TOGGLE_CHECKBOX";
@@ -254,7 +254,7 @@ declare const consentMachine: xstate1529.StateMachine<ConsentContext, {
254
254
  type: "RETRY";
255
255
  } | {
256
256
  type: "RESET";
257
- }, xstate1529.AnyEventObject>;
257
+ }, xstate1375.AnyEventObject>;
258
258
  }) => {
259
259
  consentId: string;
260
260
  language: string | undefined;
@@ -304,7 +304,7 @@ declare const consentMachine: xstate1529.StateMachine<ConsentContext, {
304
304
  } | {
305
305
  type: "RESET";
306
306
  };
307
- self: xstate1529.ActorRef<xstate1529.MachineSnapshot<ConsentContext, {
307
+ self: xstate1375.ActorRef<xstate1375.MachineSnapshot<ConsentContext, {
308
308
  type: "LOAD";
309
309
  } | {
310
310
  type: "TOGGLE_CHECKBOX";
@@ -315,7 +315,7 @@ declare const consentMachine: xstate1529.StateMachine<ConsentContext, {
315
315
  type: "RETRY";
316
316
  } | {
317
317
  type: "RESET";
318
- }, Record<string, xstate1529.AnyActorRef>, xstate1529.StateValue, string, unknown, any, any>, {
318
+ }, Record<string, xstate1375.AnyActorRef>, xstate1375.StateValue, string, unknown, any, any>, {
319
319
  type: "LOAD";
320
320
  } | {
321
321
  type: "TOGGLE_CHECKBOX";
@@ -326,7 +326,7 @@ declare const consentMachine: xstate1529.StateMachine<ConsentContext, {
326
326
  type: "RETRY";
327
327
  } | {
328
328
  type: "RESET";
329
- }, xstate1529.AnyEventObject>;
329
+ }, xstate1375.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-B2OEDYqf.js";
2
2
  import "./Actor-fIPLXfoi.js";
3
- import { a as CpfOcrActor, i as createCpfOcrManagerFromActor, n as CpfOcrState, o as cpfOcrMachine, r as createCpfOcrManager, t as CpfOcrManager } from "./cpfOcrManager-CII4qiF3.js";
3
+ import { a as CpfOcrActor, i as createCpfOcrManagerFromActor, n as CpfOcrState, o as cpfOcrMachine, r as createCpfOcrManager, t as CpfOcrManager } from "./cpfOcrManager-OBTw8aBe.js";
4
4
 
5
5
  //#region src/modules/cpf-ocr/cpfOcrUtils.d.ts
6
6
  declare function formatCPF(value: string): string;