@incodetech/core 0.0.0-dev-20260618-c6ccb3ca → 0.0.0-dev-20260619-9a09b3a5

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 (41) hide show
  1. package/dist/ae-signature.d.ts +1 -1
  2. package/dist/{browser-8Za96B1X-2HhouIRF.esm.js → browser-DlFgHpoC-DwBHV6-1.esm.js} +18 -18
  3. package/dist/certificate-issuance.d.ts +28 -28
  4. package/dist/consent.d.ts +1 -1
  5. package/dist/{consentManager-Cu8PF0H0.d.ts → consentManager-C7D16zfA.d.ts} +52 -52
  6. package/dist/cpf-ocr.d.ts +1 -1
  7. package/dist/{cpfOcrManager-CNfIFhha.d.ts → cpfOcrManager-r5gjUsYU.d.ts} +20 -20
  8. package/dist/document-capture.d.ts +225 -225
  9. package/dist/document-upload.d.ts +46 -46
  10. package/dist/ekyb.esm.js +3 -3
  11. package/dist/{ekybStateMachine-Br1wBDpg.esm.js → ekybStateMachine-JF6-IKua.esm.js} +1 -1
  12. package/dist/electronic-signature.d.ts +1 -1
  13. package/dist/extensibility.d.ts +4 -4
  14. package/dist/extensibility.esm.js +3 -3
  15. package/dist/flow.d.ts +2 -2
  16. package/dist/flow.esm.js +2 -2
  17. package/dist/{flowServices-Bfszkz06.esm.js → flowServices-iJKtJvK3.esm.js} +1 -1
  18. package/dist/home.d.ts +10 -10
  19. package/dist/id-ocr.d.ts +55 -55
  20. package/dist/id-verification.d.ts +25 -25
  21. package/dist/id.esm.js +3 -3
  22. package/dist/{idCaptureManager-Bnvstb8q.esm.js → idCaptureManager-DNTn2TCr.esm.js} +1 -1
  23. package/dist/{idCaptureStateMachine-D2-YLKEq.esm.js → idCaptureStateMachine-CixFJh5-.esm.js} +1 -1
  24. package/dist/identity-reuse.d.ts +1 -1
  25. package/dist/{identityReuseManager-DI4OYfZa.d.ts → identityReuseManager-DLlFpDiV.d.ts} +34 -34
  26. package/dist/{index-B97U8dGl.d.ts → index-BTJ5ufs1.d.ts} +168 -168
  27. package/dist/index.esm.js +3 -3
  28. package/dist/mandatory-consent.d.ts +1 -1
  29. package/dist/{mandatoryConsentManager-92wvPNCD.d.ts → mandatoryConsentManager-BheHDo4t.d.ts} +50 -50
  30. package/dist/qe-signature.d.ts +1 -1
  31. package/dist/session.esm.js +1 -1
  32. package/dist/{sessionInitializer-BCFgAROb.esm.js → sessionInitializer-DFA3XI-3.esm.js} +1 -1
  33. package/dist/{setup-BSvUCn_x.esm.js → setup-l-Ud6DX-.esm.js} +2 -2
  34. package/dist/{tri-Dm8DCwTc.esm.js → tri-nGQNAf3M.esm.js} +3 -1
  35. package/dist/{tri.esm-Cb1T14_N.esm.js → tri.esm-seBni-5K.esm.js} +447 -457
  36. package/dist/tri.esm.js +1 -1
  37. package/dist/trust-graph.d.ts +2 -2
  38. package/dist/wasm.esm.js +3 -3
  39. package/dist/workflow.d.ts +86 -86
  40. package/dist/workflow.esm.js +4 -4
  41. package/package.json +3 -3
@@ -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-B97U8dGl.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-BTJ5ufs1.js";
4
4
 
5
5
  //#region src/modules/ae-signature/index.d.ts
6
6
 
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/@incodetech+tri-sdk@0.3.0/node_modules/@incodetech/tri-sdk/dist/chunks/browser-8Za96B1X.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,
@@ -677,11 +677,11 @@ var Mn = function() {
677
677
  e$1.set(this.b.subarray(0, this.s.z)), this.b = e$1;
678
678
  }
679
679
  var f$1 = this.b.length - this.s.z;
680
- this.b.set(n$2.subarray(0, f$1), this.s.z), this.s.z = this.b.length, this.p(this.b, 0), this.b.set(this.b.subarray(-32768)), this.b.set(n$2.subarray(f$1), 32768), this.s.z = n$2.length - f$1 + 32768, this.s.i = 32766, this.s.w = 32768;
680
+ this.b.set(n$2.subarray(0, f$1), this.s.z), this.s.z = this.b.length, this.p(this.b, !1), this.b.set(this.b.subarray(-32768)), this.b.set(n$2.subarray(f$1), 32768), this.s.z = n$2.length - f$1 + 32768, this.s.i = 32766, this.s.w = 32768;
681
681
  } else this.b.set(n$2, this.s.z), this.s.z += n$2.length;
682
- this.s.l = 1 & i$1, (this.s.z > this.s.w + 8191 || i$1) && (this.p(this.b, i$1 || 0), this.s.w = this.s.i, this.s.i -= 2);
682
+ this.s.l = 1 & i$1, (this.s.z > this.s.w + 8191 || i$1) && (this.p(this.b, i$1 || !1), this.s.w = this.s.i, this.s.i -= 2);
683
683
  }, n$1.prototype.flush = function() {
684
- this.ondata || F(5), this.s.l && F(4), this.p(this.b, 0), this.s.w = this.s.i, this.s.i -= 2;
684
+ this.ondata || F(5), this.s.l && F(4), this.p(this.b, !1), this.s.w = this.s.i, this.s.i -= 2;
685
685
  }, n$1;
686
686
  }(), bn = function() {
687
687
  return function(n$1, t$1) {
@@ -717,7 +717,7 @@ var Tn = function() {
717
717
  }
718
718
  } else this.p = n$2;
719
719
  }, n$1.prototype.c = function(n$2) {
720
- this.s.i = +(this.d = n$2 || 0);
720
+ this.s.i = +(this.d = n$2 || !1);
721
721
  var t$1 = this.s.b, i$1 = U(this.p, this.s, this.o);
722
722
  this.ondata(S(i$1, t$1, this.s.b), this.d), this.o = S(i$1, this.s.b - 32768), this.s.b = this.o.length, this.p = S(this.p, this.s.p / 8 | 0), this.s.p &= 7;
723
723
  }, n$1.prototype.push = function(n$2, t$1) {
@@ -975,7 +975,7 @@ var Qn = function(n$1, i$1, r$1, e$1) {
975
975
  }
976
976
  }, Vn = "undefined" != typeof TextEncoder && new TextEncoder(), Xn = "undefined" != typeof TextDecoder && new TextDecoder(), Yn = 0;
977
977
  try {
978
- Xn.decode(R, { stream: 1 }), Yn = 1;
978
+ Xn.decode(R, { stream: !0 }), Yn = 1;
979
979
  } catch (n$1) {}
980
980
  var _n = function(n$1) {
981
981
  for (var t$1 = "", i$1 = 0;;) {
@@ -991,7 +991,7 @@ var _n = function(n$1) {
991
991
  this.ondata = n$2, Yn ? this.t = new TextDecoder() : this.p = R;
992
992
  }
993
993
  return n$1.prototype.push = function(n$2, i$1) {
994
- if (this.ondata || F(5), i$1 = !!i$1, this.t) return this.ondata(this.t.decode(n$2, { stream: 1 }), i$1), void (i$1 && (this.t.decode().length && F(8), this.t = null));
994
+ if (this.ondata || F(5), i$1 = !!i$1, this.t) return this.ondata(this.t.decode(n$2, { stream: !0 }), i$1), void (i$1 && (this.t.decode().length && F(8), this.t = null));
995
995
  this.p || F(4);
996
996
  var r$1 = new t(this.p.length + n$2.length);
997
997
  r$1.set(this.p), r$1.set(n$2, this.p.length);
@@ -1003,7 +1003,7 @@ var _n = function(n$1) {
1003
1003
  this.ondata = n$2;
1004
1004
  }
1005
1005
  return n$1.prototype.push = function(n$2, t$1) {
1006
- this.ondata || F(5), this.d && F(4), this.ondata(it(n$2), this.d = t$1 || 0);
1006
+ this.ondata || F(5), this.d && F(4), this.ondata(it(n$2), this.d = t$1 || !1);
1007
1007
  }, n$1;
1008
1008
  }();
1009
1009
  function it(n$1, i$1) {
@@ -1084,7 +1084,7 @@ var et = function(n$1) {
1084
1084
  return n$1.prototype.process = function(n$2, t$1) {
1085
1085
  this.ondata(null, n$2, t$1);
1086
1086
  }, n$1.prototype.push = function(n$2, t$1) {
1087
- this.ondata || F(5), this.c.p(n$2), this.size += n$2.length, t$1 && (this.crc = this.c.d()), this.process(n$2, t$1 || 0);
1087
+ this.ondata || F(5), this.c.p(n$2), this.size += n$2.length, t$1 && (this.crc = this.c.d()), this.process(n$2, t$1 || !1);
1088
1088
  }, n$1;
1089
1089
  }(), vt = function() {
1090
1090
  function n$1(n$2, t$1) {
@@ -1120,14 +1120,14 @@ var et = function(n$1) {
1120
1120
  }
1121
1121
  return n$1.prototype.add = function(n$2) {
1122
1122
  var i$1 = this;
1123
- if (this.ondata || F(5), 2 & this.d) this.ondata(F(4 + 8 * (1 & this.d), 0, 1), null, 0);
1123
+ if (this.ondata || F(5), 2 & this.d) this.ondata(F(4 + 8 * (1 & this.d), 0, 1), null, !1);
1124
1124
  else {
1125
1125
  var r$1 = it(n$2.filename), e$1 = r$1.length, f$1 = n$2.comment, s$1 = f$1 && it(f$1), u$1 = e$1 != n$2.filename.length || s$1 && f$1.length != s$1.length, o$1 = e$1 + ot(n$2.extra) + 30;
1126
- e$1 > 65535 && this.ondata(F(11, 0, 1), null, 0);
1126
+ e$1 > 65535 && this.ondata(F(11, 0, 1), null, !1);
1127
1127
  var a$1 = new t(o$1);
1128
1128
  at(a$1, 0, n$2, r$1, u$1, -1);
1129
1129
  var h$1 = [a$1], c$1 = function() {
1130
- for (var n$3 = 0, t$1 = h$1; n$3 < t$1.length; n$3++) i$1.ondata(null, t$1[n$3], 0);
1130
+ for (var n$3 = 0, t$1 = h$1; n$3 < t$1.length; n$3++) i$1.ondata(null, t$1[n$3], !1);
1131
1131
  h$1 = [];
1132
1132
  }, v$1 = this.d;
1133
1133
  this.d = 0;
@@ -1156,7 +1156,7 @@ var et = function(n$1) {
1156
1156
  }
1157
1157
  }, n$1.prototype.end = function() {
1158
1158
  var n$2 = this;
1159
- 2 & this.d ? this.ondata(F(4 + 8 * (1 & this.d), 0, 1), null, 1) : (this.d ? this.e() : this.u.push({
1159
+ 2 & this.d ? this.ondata(F(4 + 8 * (1 & this.d), 0, 1), null, !0) : (this.d ? this.e() : this.u.push({
1160
1160
  r: function() {
1161
1161
  1 & n$2.d && (n$2.u.splice(-1, 1), n$2.e());
1162
1162
  },
@@ -1168,7 +1168,7 @@ var et = function(n$1) {
1168
1168
  var a$1;
1169
1169
  at(s$1, n$2, a$1 = o$1[u$1], a$1.f, a$1.u, -a$1.c - 2, i$1, a$1.o), n$2 += 46 + a$1.f.length + ot(a$1.extra) + (a$1.o ? a$1.o.length : 0), i$1 += a$1.b;
1170
1170
  }
1171
- ht(s$1, n$2, this.u.length, r$1, i$1), this.ondata(null, s$1, 1), this.d = 2;
1171
+ ht(s$1, n$2, this.u.length, r$1, i$1), this.ondata(null, s$1, !0), this.d = 2;
1172
1172
  }, n$1.prototype.terminate = function() {
1173
1173
  for (var n$2 = 0, t$1 = this.u; n$2 < t$1.length; n$2++) t$1[n$2].t();
1174
1174
  this.d = 2;
@@ -1320,12 +1320,12 @@ var yt = function() {
1320
1320
  start: function() {
1321
1321
  if (M$1.ondata || F(5), m$1) {
1322
1322
  var n$4 = r$1.o[e$2];
1323
- n$4 || M$1.ondata(F(14, "unknown compression type " + e$2, 1), null, 0), (y$1 = m$1 < 0 ? new n$4(k$1) : new n$4(k$1, m$1, g$1)).ondata = function(n$5, t$3, i$4) {
1323
+ n$4 || M$1.ondata(F(14, "unknown compression type " + e$2, 1), null, !1), (y$1 = m$1 < 0 ? new n$4(k$1) : new n$4(k$1, m$1, g$1)).ondata = function(n$5, t$3, i$4) {
1324
1324
  M$1.ondata(n$5, t$3, i$4);
1325
1325
  };
1326
- for (var t$2 = 0, i$3 = p$1; t$2 < i$3.length; t$2++) y$1.push(i$3[t$2], 0);
1327
- r$1.k[0] == p$1 && r$1.c ? r$1.d = y$1 : y$1.push(R, 1);
1328
- } else M$1.ondata(null, R, 1);
1326
+ for (var t$2 = 0, i$3 = p$1; t$2 < i$3.length; t$2++) y$1.push(i$3[t$2], !1);
1327
+ r$1.k[0] == p$1 && r$1.c ? r$1.d = y$1 : y$1.push(R, !0);
1328
+ } else M$1.ondata(null, R, !0);
1329
1329
  },
1330
1330
  terminate: function() {
1331
1331
  y$1 && y$1.terminate && y$1.terminate();
@@ -1,6 +1,6 @@
1
1
  import { t as Manager } from "./Manager-B2OEDYqf.js";
2
2
  import "./Actor-fIPLXfoi.js";
3
- import * as xstate946 from "xstate";
3
+ import * as xstate1555 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: xstate946.StateMachine<CertificateIssuanceContext, {
42
+ declare const certificateIssuanceMachine: xstate1555.StateMachine<CertificateIssuanceContext, {
43
43
  type: "LOAD";
44
44
  } | {
45
45
  type: "PASSWORD_CHANGED";
@@ -53,28 +53,28 @@ declare const certificateIssuanceMachine: xstate946.StateMachine<CertificateIssu
53
53
  } | {
54
54
  type: "FINISH";
55
55
  }, {
56
- [x: string]: xstate946.ActorRefFromLogic<xstate946.PromiseActorLogic<IssueCertificateResponse, {
56
+ [x: string]: xstate1555.ActorRefFromLogic<xstate1555.PromiseActorLogic<IssueCertificateResponse, {
57
57
  password: string;
58
- }, xstate946.EventObject>> | undefined;
58
+ }, xstate1555.EventObject>> | undefined;
59
59
  }, {
60
60
  src: "issueCertificate";
61
- logic: xstate946.PromiseActorLogic<IssueCertificateResponse, {
61
+ logic: xstate1555.PromiseActorLogic<IssueCertificateResponse, {
62
62
  password: string;
63
- }, xstate946.EventObject>;
63
+ }, xstate1555.EventObject>;
64
64
  id: string | undefined;
65
- }, xstate946.Values<{
65
+ }, xstate1555.Values<{
66
66
  setPassword: {
67
67
  type: "setPassword";
68
- params: xstate946.NonReducibleUnknown;
68
+ params: xstate1555.NonReducibleUnknown;
69
69
  };
70
70
  setBlob: {
71
71
  type: "setBlob";
72
- params: xstate946.NonReducibleUnknown;
72
+ params: xstate1555.NonReducibleUnknown;
73
73
  };
74
74
  }>, {
75
75
  type: "isPasswordValid";
76
76
  params: unknown;
77
- }, never, "error" | "idle" | "processing" | "success" | "finished" | "password" | "downloaded", string, CertificateIssuanceInput, xstate946.NonReducibleUnknown, xstate946.EventObject, xstate946.MetaObject, {
77
+ }, never, "error" | "idle" | "processing" | "success" | "finished" | "password" | "downloaded", string, CertificateIssuanceInput, xstate1555.NonReducibleUnknown, xstate1555.EventObject, xstate1555.MetaObject, {
78
78
  readonly id: "certificateIssuance";
79
79
  readonly initial: "idle";
80
80
  readonly context: ({
@@ -83,39 +83,39 @@ declare const certificateIssuanceMachine: xstate946.StateMachine<CertificateIssu
83
83
  spawn: {
84
84
  <TSrc extends "issueCertificate">(logic: TSrc, ...[options]: {
85
85
  src: "issueCertificate";
86
- logic: xstate946.PromiseActorLogic<IssueCertificateResponse, {
86
+ logic: xstate1555.PromiseActorLogic<IssueCertificateResponse, {
87
87
  password: string;
88
- }, xstate946.EventObject>;
88
+ }, xstate1555.EventObject>;
89
89
  id: string | undefined;
90
90
  } extends infer T ? T extends {
91
91
  src: "issueCertificate";
92
- logic: xstate946.PromiseActorLogic<IssueCertificateResponse, {
92
+ logic: xstate1555.PromiseActorLogic<IssueCertificateResponse, {
93
93
  password: string;
94
- }, xstate946.EventObject>;
94
+ }, xstate1555.EventObject>;
95
95
  id: string | undefined;
96
96
  } ? T extends {
97
97
  src: TSrc;
98
- } ? xstate946.ConditionalRequired<[options?: ({
98
+ } ? xstate1555.ConditionalRequired<[options?: ({
99
99
  id?: T["id"] | undefined;
100
100
  systemId?: string;
101
- input?: xstate946.InputFrom<T["logic"]> | undefined;
101
+ input?: xstate1555.InputFrom<T["logic"]> | undefined;
102
102
  syncSnapshot?: boolean;
103
- } & { [K in xstate946.RequiredActorOptions<T>]: unknown }) | undefined], xstate946.IsNotNever<xstate946.RequiredActorOptions<T>>> : never : never : never): xstate946.ActorRefFromLogic<xstate946.GetConcreteByKey<{
103
+ } & { [K in xstate1555.RequiredActorOptions<T>]: unknown }) | undefined], xstate1555.IsNotNever<xstate1555.RequiredActorOptions<T>>> : never : never : never): xstate1555.ActorRefFromLogic<xstate1555.GetConcreteByKey<{
104
104
  src: "issueCertificate";
105
- logic: xstate946.PromiseActorLogic<IssueCertificateResponse, {
105
+ logic: xstate1555.PromiseActorLogic<IssueCertificateResponse, {
106
106
  password: string;
107
- }, xstate946.EventObject>;
107
+ }, xstate1555.EventObject>;
108
108
  id: string | undefined;
109
109
  }, "src", TSrc>["logic"]>;
110
- <TLogic extends xstate946.AnyActorLogic>(src: TLogic, ...[options]: xstate946.ConditionalRequired<[options?: ({
110
+ <TLogic extends xstate1555.AnyActorLogic>(src: TLogic, ...[options]: xstate1555.ConditionalRequired<[options?: ({
111
111
  id?: never;
112
112
  systemId?: string;
113
- input?: xstate946.InputFrom<TLogic> | undefined;
113
+ input?: xstate1555.InputFrom<TLogic> | undefined;
114
114
  syncSnapshot?: boolean;
115
- } & { [K in xstate946.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate946.IsNotNever<xstate946.RequiredLogicInput<TLogic>>>): xstate946.ActorRefFromLogic<TLogic>;
115
+ } & { [K in xstate1555.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate1555.IsNotNever<xstate1555.RequiredLogicInput<TLogic>>>): xstate1555.ActorRefFromLogic<TLogic>;
116
116
  };
117
117
  input: CertificateIssuanceInput;
118
- self: xstate946.ActorRef<xstate946.MachineSnapshot<CertificateIssuanceContext, {
118
+ self: xstate1555.ActorRef<xstate1555.MachineSnapshot<CertificateIssuanceContext, {
119
119
  type: "LOAD";
120
120
  } | {
121
121
  type: "PASSWORD_CHANGED";
@@ -128,7 +128,7 @@ declare const certificateIssuanceMachine: xstate946.StateMachine<CertificateIssu
128
128
  type: "DOWNLOAD_FAILED";
129
129
  } | {
130
130
  type: "FINISH";
131
- }, Record<string, xstate946.AnyActorRef | undefined>, xstate946.StateValue, string, unknown, any, any>, {
131
+ }, Record<string, xstate1555.AnyActorRef | undefined>, xstate1555.StateValue, string, unknown, any, any>, {
132
132
  type: "LOAD";
133
133
  } | {
134
134
  type: "PASSWORD_CHANGED";
@@ -141,7 +141,7 @@ declare const certificateIssuanceMachine: xstate946.StateMachine<CertificateIssu
141
141
  type: "DOWNLOAD_FAILED";
142
142
  } | {
143
143
  type: "FINISH";
144
- }, xstate946.AnyEventObject>;
144
+ }, xstate1555.AnyEventObject>;
145
145
  }) => {
146
146
  config: CertificateIssuanceConfig;
147
147
  password: string;
@@ -189,7 +189,7 @@ declare const certificateIssuanceMachine: xstate946.StateMachine<CertificateIssu
189
189
  } | {
190
190
  type: "FINISH";
191
191
  };
192
- self: xstate946.ActorRef<xstate946.MachineSnapshot<CertificateIssuanceContext, {
192
+ self: xstate1555.ActorRef<xstate1555.MachineSnapshot<CertificateIssuanceContext, {
193
193
  type: "LOAD";
194
194
  } | {
195
195
  type: "PASSWORD_CHANGED";
@@ -202,7 +202,7 @@ declare const certificateIssuanceMachine: xstate946.StateMachine<CertificateIssu
202
202
  type: "DOWNLOAD_FAILED";
203
203
  } | {
204
204
  type: "FINISH";
205
- }, Record<string, xstate946.AnyActorRef>, xstate946.StateValue, string, unknown, any, any>, {
205
+ }, Record<string, xstate1555.AnyActorRef>, xstate1555.StateValue, string, unknown, any, any>, {
206
206
  type: "LOAD";
207
207
  } | {
208
208
  type: "PASSWORD_CHANGED";
@@ -215,7 +215,7 @@ declare const certificateIssuanceMachine: xstate946.StateMachine<CertificateIssu
215
215
  type: "DOWNLOAD_FAILED";
216
216
  } | {
217
217
  type: "FINISH";
218
- }, xstate946.AnyEventObject>;
218
+ }, xstate1555.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-Cu8PF0H0.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-C7D16zfA.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 xstate878 from "xstate";
3
+ import * as xstate1487 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: xstate878.StateMachine<ConsentContext, {
40
+ declare const consentMachine: xstate1487.StateMachine<ConsentContext, {
41
41
  type: "LOAD";
42
42
  } | {
43
43
  type: "TOGGLE_CHECKBOX";
@@ -49,55 +49,55 @@ declare const consentMachine: xstate878.StateMachine<ConsentContext, {
49
49
  } | {
50
50
  type: "RESET";
51
51
  }, {
52
- [x: string]: xstate878.ActorRefFromLogic<xstate878.PromiseActorLogic<FetchCombinedConsentResponse, {
52
+ [x: string]: xstate1487.ActorRefFromLogic<xstate1487.PromiseActorLogic<FetchCombinedConsentResponse, {
53
53
  consentId: string;
54
54
  language?: string;
55
- }, xstate878.EventObject>> | xstate878.ActorRefFromLogic<xstate878.PromiseActorLogic<void, {
55
+ }, xstate1487.EventObject>> | xstate1487.ActorRefFromLogic<xstate1487.PromiseActorLogic<void, {
56
56
  languageConsentId: string;
57
57
  checkboxes: ConsentCheckbox[];
58
- }, xstate878.EventObject>> | undefined;
59
- }, xstate878.Values<{
58
+ }, xstate1487.EventObject>> | undefined;
59
+ }, xstate1487.Values<{
60
60
  fetchConsent: {
61
61
  src: "fetchConsent";
62
- logic: xstate878.PromiseActorLogic<FetchCombinedConsentResponse, {
62
+ logic: xstate1487.PromiseActorLogic<FetchCombinedConsentResponse, {
63
63
  consentId: string;
64
64
  language?: string;
65
- }, xstate878.EventObject>;
65
+ }, xstate1487.EventObject>;
66
66
  id: string | undefined;
67
67
  };
68
68
  submitConsent: {
69
69
  src: "submitConsent";
70
- logic: xstate878.PromiseActorLogic<void, {
70
+ logic: xstate1487.PromiseActorLogic<void, {
71
71
  languageConsentId: string;
72
72
  checkboxes: ConsentCheckbox[];
73
- }, xstate878.EventObject>;
73
+ }, xstate1487.EventObject>;
74
74
  id: string | undefined;
75
75
  };
76
- }>, xstate878.Values<{
76
+ }>, xstate1487.Values<{
77
+ clearError: {
78
+ type: "clearError";
79
+ params: xstate1487.NonReducibleUnknown;
80
+ };
77
81
  setError: {
78
82
  type: "setError";
79
- params: xstate878.NonReducibleUnknown;
83
+ params: xstate1487.NonReducibleUnknown;
80
84
  };
81
- clearError: {
82
- type: "clearError";
83
- params: xstate878.NonReducibleUnknown;
85
+ resetContext: {
86
+ type: "resetContext";
87
+ params: xstate1487.NonReducibleUnknown;
84
88
  };
85
89
  setConsentData: {
86
90
  type: "setConsentData";
87
- params: xstate878.NonReducibleUnknown;
91
+ params: xstate1487.NonReducibleUnknown;
88
92
  };
89
93
  toggleCheckbox: {
90
94
  type: "toggleCheckbox";
91
- params: xstate878.NonReducibleUnknown;
92
- };
93
- resetContext: {
94
- type: "resetContext";
95
- params: xstate878.NonReducibleUnknown;
95
+ params: xstate1487.NonReducibleUnknown;
96
96
  };
97
97
  }>, {
98
98
  type: "canSubmit";
99
99
  params: unknown;
100
- }, never, "error" | "idle" | "finished" | "loading" | "submitting" | "display", string, ConsentInput, xstate878.NonReducibleUnknown, xstate878.EventObject, xstate878.MetaObject, {
100
+ }, never, "error" | "idle" | "finished" | "loading" | "submitting" | "display", string, ConsentInput, xstate1487.NonReducibleUnknown, xstate1487.EventObject, xstate1487.MetaObject, {
101
101
  readonly id: "consent";
102
102
  readonly initial: "idle";
103
103
  readonly context: ({
@@ -106,73 +106,73 @@ declare const consentMachine: xstate878.StateMachine<ConsentContext, {
106
106
  spawn: {
107
107
  <TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
108
108
  src: "fetchConsent";
109
- logic: xstate878.PromiseActorLogic<FetchCombinedConsentResponse, {
109
+ logic: xstate1487.PromiseActorLogic<FetchCombinedConsentResponse, {
110
110
  consentId: string;
111
111
  language?: string;
112
- }, xstate878.EventObject>;
112
+ }, xstate1487.EventObject>;
113
113
  id: string | undefined;
114
114
  } extends infer T ? T extends {
115
115
  src: "fetchConsent";
116
- logic: xstate878.PromiseActorLogic<FetchCombinedConsentResponse, {
116
+ logic: xstate1487.PromiseActorLogic<FetchCombinedConsentResponse, {
117
117
  consentId: string;
118
118
  language?: string;
119
- }, xstate878.EventObject>;
119
+ }, xstate1487.EventObject>;
120
120
  id: string | undefined;
121
121
  } ? T extends {
122
122
  src: TSrc;
123
- } ? xstate878.ConditionalRequired<[options?: ({
123
+ } ? xstate1487.ConditionalRequired<[options?: ({
124
124
  id?: T["id"] | undefined;
125
125
  systemId?: string;
126
- input?: xstate878.InputFrom<T["logic"]> | undefined;
126
+ input?: xstate1487.InputFrom<T["logic"]> | undefined;
127
127
  syncSnapshot?: boolean;
128
- } & { [K in xstate878.RequiredActorOptions<T>]: unknown }) | undefined], xstate878.IsNotNever<xstate878.RequiredActorOptions<T>>> : never : never : never) | ({
128
+ } & { [K in xstate1487.RequiredActorOptions<T>]: unknown }) | undefined], xstate1487.IsNotNever<xstate1487.RequiredActorOptions<T>>> : never : never : never) | ({
129
129
  src: "submitConsent";
130
- logic: xstate878.PromiseActorLogic<void, {
130
+ logic: xstate1487.PromiseActorLogic<void, {
131
131
  languageConsentId: string;
132
132
  checkboxes: ConsentCheckbox[];
133
- }, xstate878.EventObject>;
133
+ }, xstate1487.EventObject>;
134
134
  id: string | undefined;
135
135
  } extends infer T_1 ? T_1 extends {
136
136
  src: "submitConsent";
137
- logic: xstate878.PromiseActorLogic<void, {
137
+ logic: xstate1487.PromiseActorLogic<void, {
138
138
  languageConsentId: string;
139
139
  checkboxes: ConsentCheckbox[];
140
- }, xstate878.EventObject>;
140
+ }, xstate1487.EventObject>;
141
141
  id: string | undefined;
142
142
  } ? T_1 extends {
143
143
  src: TSrc;
144
- } ? xstate878.ConditionalRequired<[options?: ({
144
+ } ? xstate1487.ConditionalRequired<[options?: ({
145
145
  id?: T_1["id"] | undefined;
146
146
  systemId?: string;
147
- input?: xstate878.InputFrom<T_1["logic"]> | undefined;
147
+ input?: xstate1487.InputFrom<T_1["logic"]> | undefined;
148
148
  syncSnapshot?: boolean;
149
- } & { [K_1 in xstate878.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate878.IsNotNever<xstate878.RequiredActorOptions<T_1>>> : never : never : never)): xstate878.ActorRefFromLogic<xstate878.GetConcreteByKey<xstate878.Values<{
149
+ } & { [K_1 in xstate1487.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate1487.IsNotNever<xstate1487.RequiredActorOptions<T_1>>> : never : never : never)): xstate1487.ActorRefFromLogic<xstate1487.GetConcreteByKey<xstate1487.Values<{
150
150
  fetchConsent: {
151
151
  src: "fetchConsent";
152
- logic: xstate878.PromiseActorLogic<FetchCombinedConsentResponse, {
152
+ logic: xstate1487.PromiseActorLogic<FetchCombinedConsentResponse, {
153
153
  consentId: string;
154
154
  language?: string;
155
- }, xstate878.EventObject>;
155
+ }, xstate1487.EventObject>;
156
156
  id: string | undefined;
157
157
  };
158
158
  submitConsent: {
159
159
  src: "submitConsent";
160
- logic: xstate878.PromiseActorLogic<void, {
160
+ logic: xstate1487.PromiseActorLogic<void, {
161
161
  languageConsentId: string;
162
162
  checkboxes: ConsentCheckbox[];
163
- }, xstate878.EventObject>;
163
+ }, xstate1487.EventObject>;
164
164
  id: string | undefined;
165
165
  };
166
166
  }>, "src", TSrc>["logic"]>;
167
- <TLogic extends xstate878.AnyActorLogic>(src: TLogic, ...[options]: xstate878.ConditionalRequired<[options?: ({
167
+ <TLogic extends xstate1487.AnyActorLogic>(src: TLogic, ...[options]: xstate1487.ConditionalRequired<[options?: ({
168
168
  id?: never;
169
169
  systemId?: string;
170
- input?: xstate878.InputFrom<TLogic> | undefined;
170
+ input?: xstate1487.InputFrom<TLogic> | undefined;
171
171
  syncSnapshot?: boolean;
172
- } & { [K in xstate878.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate878.IsNotNever<xstate878.RequiredLogicInput<TLogic>>>): xstate878.ActorRefFromLogic<TLogic>;
172
+ } & { [K in xstate1487.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate1487.IsNotNever<xstate1487.RequiredLogicInput<TLogic>>>): xstate1487.ActorRefFromLogic<TLogic>;
173
173
  };
174
174
  input: ConsentInput;
175
- self: xstate878.ActorRef<xstate878.MachineSnapshot<ConsentContext, {
175
+ self: xstate1487.ActorRef<xstate1487.MachineSnapshot<ConsentContext, {
176
176
  type: "LOAD";
177
177
  } | {
178
178
  type: "TOGGLE_CHECKBOX";
@@ -183,7 +183,7 @@ declare const consentMachine: xstate878.StateMachine<ConsentContext, {
183
183
  type: "RETRY";
184
184
  } | {
185
185
  type: "RESET";
186
- }, Record<string, xstate878.AnyActorRef | undefined>, xstate878.StateValue, string, unknown, any, any>, {
186
+ }, Record<string, xstate1487.AnyActorRef | undefined>, xstate1487.StateValue, string, unknown, any, any>, {
187
187
  type: "LOAD";
188
188
  } | {
189
189
  type: "TOGGLE_CHECKBOX";
@@ -194,7 +194,7 @@ declare const consentMachine: xstate878.StateMachine<ConsentContext, {
194
194
  type: "RETRY";
195
195
  } | {
196
196
  type: "RESET";
197
- }, xstate878.AnyEventObject>;
197
+ }, xstate1487.AnyEventObject>;
198
198
  }) => {
199
199
  config: ConsentConfig;
200
200
  title: string;
@@ -232,7 +232,7 @@ declare const consentMachine: xstate878.StateMachine<ConsentContext, {
232
232
  } | {
233
233
  type: "RESET";
234
234
  };
235
- self: xstate878.ActorRef<xstate878.MachineSnapshot<ConsentContext, {
235
+ self: xstate1487.ActorRef<xstate1487.MachineSnapshot<ConsentContext, {
236
236
  type: "LOAD";
237
237
  } | {
238
238
  type: "TOGGLE_CHECKBOX";
@@ -243,7 +243,7 @@ declare const consentMachine: xstate878.StateMachine<ConsentContext, {
243
243
  type: "RETRY";
244
244
  } | {
245
245
  type: "RESET";
246
- }, Record<string, xstate878.AnyActorRef>, xstate878.StateValue, string, unknown, any, any>, {
246
+ }, Record<string, xstate1487.AnyActorRef>, xstate1487.StateValue, string, unknown, any, any>, {
247
247
  type: "LOAD";
248
248
  } | {
249
249
  type: "TOGGLE_CHECKBOX";
@@ -254,7 +254,7 @@ declare const consentMachine: xstate878.StateMachine<ConsentContext, {
254
254
  type: "RETRY";
255
255
  } | {
256
256
  type: "RESET";
257
- }, xstate878.AnyEventObject>;
257
+ }, xstate1487.AnyEventObject>;
258
258
  }) => {
259
259
  consentId: string;
260
260
  language: string | undefined;
@@ -304,7 +304,7 @@ declare const consentMachine: xstate878.StateMachine<ConsentContext, {
304
304
  } | {
305
305
  type: "RESET";
306
306
  };
307
- self: xstate878.ActorRef<xstate878.MachineSnapshot<ConsentContext, {
307
+ self: xstate1487.ActorRef<xstate1487.MachineSnapshot<ConsentContext, {
308
308
  type: "LOAD";
309
309
  } | {
310
310
  type: "TOGGLE_CHECKBOX";
@@ -315,7 +315,7 @@ declare const consentMachine: xstate878.StateMachine<ConsentContext, {
315
315
  type: "RETRY";
316
316
  } | {
317
317
  type: "RESET";
318
- }, Record<string, xstate878.AnyActorRef>, xstate878.StateValue, string, unknown, any, any>, {
318
+ }, Record<string, xstate1487.AnyActorRef>, xstate1487.StateValue, string, unknown, any, any>, {
319
319
  type: "LOAD";
320
320
  } | {
321
321
  type: "TOGGLE_CHECKBOX";
@@ -326,7 +326,7 @@ declare const consentMachine: xstate878.StateMachine<ConsentContext, {
326
326
  type: "RETRY";
327
327
  } | {
328
328
  type: "RESET";
329
- }, xstate878.AnyEventObject>;
329
+ }, xstate1487.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-CNfIFhha.js";
3
+ import { a as CpfOcrActor, i as createCpfOcrManagerFromActor, n as CpfOcrState, o as cpfOcrMachine, r as createCpfOcrManager, t as CpfOcrManager } from "./cpfOcrManager-r5gjUsYU.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-B2OEDYqf.js";
2
2
  import { t as ActorRefFrom } from "./Actor-fIPLXfoi.js";
3
- import * as xstate853 from "xstate";
3
+ import * as xstate1462 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: xstate853.StateMachine<CpfOcrContext, {
20
+ declare const cpfOcrMachine: xstate1462.StateMachine<CpfOcrContext, {
21
21
  type: "LOAD";
22
22
  } | {
23
23
  type: "SET_CPF";
@@ -27,43 +27,43 @@ declare const cpfOcrMachine: xstate853.StateMachine<CpfOcrContext, {
27
27
  } | {
28
28
  type: "RETRY";
29
29
  }, {
30
- [x: string]: xstate853.ActorRefFromLogic<xstate853.PromiseActorLogic<CpfOcrDataResponse, void, xstate853.EventObject>> | xstate853.ActorRefFromLogic<xstate853.PromiseActorLogic<CpfOcrUpdateResponse, {
30
+ [x: string]: xstate1462.ActorRefFromLogic<xstate1462.PromiseActorLogic<CpfOcrDataResponse, void, xstate1462.EventObject>> | xstate1462.ActorRefFromLogic<xstate1462.PromiseActorLogic<CpfOcrUpdateResponse, {
31
31
  cpf: string;
32
- }, xstate853.EventObject>> | undefined;
33
- }, xstate853.Values<{
32
+ }, xstate1462.EventObject>> | undefined;
33
+ }, xstate1462.Values<{
34
34
  fetchCpfOcrData: {
35
35
  src: "fetchCpfOcrData";
36
- logic: xstate853.PromiseActorLogic<CpfOcrDataResponse, void, xstate853.EventObject>;
36
+ logic: xstate1462.PromiseActorLogic<CpfOcrDataResponse, void, xstate1462.EventObject>;
37
37
  id: string | undefined;
38
38
  };
39
39
  submitCpfOcr: {
40
40
  src: "submitCpfOcr";
41
- logic: xstate853.PromiseActorLogic<CpfOcrUpdateResponse, {
41
+ logic: xstate1462.PromiseActorLogic<CpfOcrUpdateResponse, {
42
42
  cpf: string;
43
- }, xstate853.EventObject>;
43
+ }, xstate1462.EventObject>;
44
44
  id: string | undefined;
45
45
  };
46
- }>, xstate853.Values<{
47
- setError: {
48
- type: "setError";
49
- params: xstate853.NonReducibleUnknown;
50
- };
46
+ }>, xstate1462.Values<{
51
47
  clearError: {
52
48
  type: "clearError";
53
- params: xstate853.NonReducibleUnknown;
49
+ params: xstate1462.NonReducibleUnknown;
50
+ };
51
+ setError: {
52
+ type: "setError";
53
+ params: xstate1462.NonReducibleUnknown;
54
54
  };
55
55
  setPrefill: {
56
56
  type: "setPrefill";
57
- params: xstate853.NonReducibleUnknown;
57
+ params: xstate1462.NonReducibleUnknown;
58
58
  };
59
59
  setCpf: {
60
60
  type: "setCpf";
61
- params: xstate853.NonReducibleUnknown;
61
+ params: xstate1462.NonReducibleUnknown;
62
62
  };
63
63
  }>, {
64
64
  type: "isValid";
65
65
  params: unknown;
66
- }, never, "error" | "idle" | "finished" | "loading" | "inputting" | "submitting", string, CpfOcrInput, xstate853.NonReducibleUnknown, xstate853.EventObject, xstate853.MetaObject, {
66
+ }, never, "error" | "idle" | "finished" | "loading" | "submitting" | "inputting", string, CpfOcrInput, xstate1462.NonReducibleUnknown, xstate1462.EventObject, xstate1462.MetaObject, {
67
67
  readonly id: "cpfOcr";
68
68
  readonly initial: "idle";
69
69
  readonly context: {
@@ -118,7 +118,7 @@ declare const cpfOcrMachine: xstate853.StateMachine<CpfOcrContext, {
118
118
  } | {
119
119
  type: "RETRY";
120
120
  };
121
- self: xstate853.ActorRef<xstate853.MachineSnapshot<CpfOcrContext, {
121
+ self: xstate1462.ActorRef<xstate1462.MachineSnapshot<CpfOcrContext, {
122
122
  type: "LOAD";
123
123
  } | {
124
124
  type: "SET_CPF";
@@ -127,7 +127,7 @@ declare const cpfOcrMachine: xstate853.StateMachine<CpfOcrContext, {
127
127
  type: "SUBMIT";
128
128
  } | {
129
129
  type: "RETRY";
130
- }, Record<string, xstate853.AnyActorRef>, xstate853.StateValue, string, unknown, any, any>, {
130
+ }, Record<string, xstate1462.AnyActorRef>, xstate1462.StateValue, string, unknown, any, any>, {
131
131
  type: "LOAD";
132
132
  } | {
133
133
  type: "SET_CPF";
@@ -136,7 +136,7 @@ declare const cpfOcrMachine: xstate853.StateMachine<CpfOcrContext, {
136
136
  type: "SUBMIT";
137
137
  } | {
138
138
  type: "RETRY";
139
- }, xstate853.AnyEventObject>;
139
+ }, xstate1462.AnyEventObject>;
140
140
  }) => {
141
141
  cpf: string;
142
142
  };