@incodetech/core 0.0.0-dev-20260703-4e6bf586 → 0.0.0-dev-20260706-82e1bca3

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 (46) hide show
  1. package/dist/{ae-signature-hbFTJkGk.esm.js → ae-signature-ZN0GtLh7.esm.js} +1 -1
  2. package/dist/ae-signature.d.ts +1 -1
  3. package/dist/ae-signature.esm.js +2 -2
  4. package/dist/certificate-issuance.d.ts +28 -28
  5. package/dist/consent.d.ts +1 -1
  6. package/dist/{consentManager-Cq_zuGyV.d.ts → consentManager-C5ghsYWh.d.ts} +52 -52
  7. package/dist/cpf-ocr.d.ts +1 -1
  8. package/dist/{cpfOcrManager-CqofcqUr.d.ts → cpfOcrManager-Cx2sr4VI.d.ts} +20 -20
  9. package/dist/document-capture.d.ts +231 -231
  10. package/dist/document-upload.d.ts +49 -49
  11. package/dist/ekyb.esm.js +3 -3
  12. package/dist/{ekybStateMachine-ByOUNlk3.esm.js → ekybStateMachine-Dv67iprq.esm.js} +1 -1
  13. package/dist/electronic-signature.d.ts +1 -1
  14. package/dist/electronic-signature.esm.js +1 -1
  15. package/dist/{electronicSignatureManager-BNglIp7-.esm.js → electronicSignatureManager-DjnL48UC.esm.js} +6 -3
  16. package/dist/extensibility.d.ts +5 -5
  17. package/dist/extensibility.esm.js +3 -3
  18. package/dist/flow.d.ts +2 -2
  19. package/dist/flow.esm.js +2 -2
  20. package/dist/{flowServices-zQ4hdUWb.esm.js → flowServices-BIg0Te2j.esm.js} +1 -1
  21. package/dist/home.d.ts +10 -10
  22. package/dist/id-ocr.d.ts +1 -1
  23. package/dist/id-verification.d.ts +25 -25
  24. package/dist/id.esm.js +3 -3
  25. package/dist/{idCaptureManager-BaBfY7-F.esm.js → idCaptureManager-loWYQ7CC.esm.js} +1 -1
  26. package/dist/{idCaptureStateMachine-C4JdDQMz.esm.js → idCaptureStateMachine-BlZRUD0U.esm.js} +1 -1
  27. package/dist/{idOcrManager-B8wGPtYt.d.ts → idOcrManager-aZOEIls3.d.ts} +52 -52
  28. package/dist/identity-reuse.d.ts +1 -1
  29. package/dist/{identityReuseManager-e3Q0Ojz-.d.ts → identityReuseManager-qmHJrZrU.d.ts} +35 -35
  30. package/dist/{index-DTYZyqY4.d.ts → index-Ui-vn538.d.ts} +179 -169
  31. package/dist/index.esm.js +2 -2
  32. package/dist/mandatory-consent.d.ts +1 -1
  33. package/dist/{mandatoryConsentManager-CTCWHacw.d.ts → mandatoryConsentManager-3Pzrnpdb.d.ts} +50 -50
  34. package/dist/{qe-signature-DrNTWaUP.esm.js → qe-signature-QPte2SBH.esm.js} +1 -1
  35. package/dist/qe-signature.d.ts +1 -1
  36. package/dist/qe-signature.esm.js +2 -2
  37. package/dist/session.esm.js +1 -1
  38. package/dist/{sessionInitializer-BkDTbgP1.esm.js → sessionInitializer-CiMM_8LA.esm.js} +1 -1
  39. package/dist/{setup--56mH1Is.esm.js → setup-CF8nlE7-.esm.js} +1 -1
  40. package/dist/trust-graph.d.ts +2 -2
  41. package/dist/video-selfie.d.ts +2 -2
  42. package/dist/video-selfie.esm.js +2 -2
  43. package/dist/wasm.esm.js +2 -2
  44. package/dist/workflow.d.ts +156 -156
  45. package/dist/workflow.esm.js +7 -7
  46. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { t as createElectronicSignatureManager } from "./electronicSignatureManager-BNglIp7-.esm.js";
1
+ import { t as createElectronicSignatureManager } from "./electronicSignatureManager-DjnL48UC.esm.js";
2
2
 
3
3
  //#region src/modules/ae-signature/index.ts
4
4
  function createAeSignatureManager(options) {
@@ -1,7 +1,7 @@
1
1
  import "./StateMachine-CNPJD4wG.js";
2
2
  import { t as Manager } from "./Manager-Cmz78C-6.js";
3
3
  import "./Actor-BYmFPUr7.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-DTYZyqY4.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-Ui-vn538.js";
5
5
 
6
6
  //#region src/modules/ae-signature/index.d.ts
7
7
 
@@ -6,7 +6,7 @@ import "./xstate.esm-Bomq1a0z.esm.js";
6
6
  import "./apiError-C7SFQTB2.esm.js";
7
7
  import "./urlUtils-CwKgB7_U.esm.js";
8
8
  import "./externalFetch-D_eLLNOS.esm.js";
9
- import { a as areAllConsented, n as electronicSignatureMachine, r as AE_CONSENT_KEYS, s as getDefaultConsentChecks } from "./electronicSignatureManager-BNglIp7-.esm.js";
10
- import { t as createAeSignatureManager } from "./ae-signature-hbFTJkGk.esm.js";
9
+ import { a as areAllConsented, n as electronicSignatureMachine, r as AE_CONSENT_KEYS, s as getDefaultConsentChecks } from "./electronicSignatureManager-DjnL48UC.esm.js";
10
+ import { t as createAeSignatureManager } from "./ae-signature-ZN0GtLh7.esm.js";
11
11
 
12
12
  export { AE_CONSENT_KEYS, electronicSignatureMachine as aeSignatureMachine, areAllConsented, createAeSignatureManager, getDefaultConsentChecks };
@@ -1,7 +1,7 @@
1
1
  import "./StateMachine-CNPJD4wG.js";
2
2
  import { t as Manager } from "./Manager-Cmz78C-6.js";
3
3
  import "./Actor-BYmFPUr7.js";
4
- import * as xstate1559 from "xstate";
4
+ import * as xstate1037 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: xstate1559.StateMachine<CertificateIssuanceContext, {
43
+ declare const certificateIssuanceMachine: xstate1037.StateMachine<CertificateIssuanceContext, {
44
44
  type: "LOAD";
45
45
  } | {
46
46
  type: "PASSWORD_CHANGED";
@@ -54,28 +54,28 @@ declare const certificateIssuanceMachine: xstate1559.StateMachine<CertificateIss
54
54
  } | {
55
55
  type: "FINISH";
56
56
  }, {
57
- [x: string]: xstate1559.ActorRefFromLogic<xstate1559.PromiseActorLogic<IssueCertificateResponse, {
57
+ [x: string]: xstate1037.ActorRefFromLogic<xstate1037.PromiseActorLogic<IssueCertificateResponse, {
58
58
  password: string;
59
- }, xstate1559.EventObject>> | undefined;
59
+ }, xstate1037.EventObject>> | undefined;
60
60
  }, {
61
61
  src: "issueCertificate";
62
- logic: xstate1559.PromiseActorLogic<IssueCertificateResponse, {
62
+ logic: xstate1037.PromiseActorLogic<IssueCertificateResponse, {
63
63
  password: string;
64
- }, xstate1559.EventObject>;
64
+ }, xstate1037.EventObject>;
65
65
  id: string | undefined;
66
- }, xstate1559.Values<{
66
+ }, xstate1037.Values<{
67
67
  setPassword: {
68
68
  type: "setPassword";
69
- params: xstate1559.NonReducibleUnknown;
69
+ params: xstate1037.NonReducibleUnknown;
70
70
  };
71
71
  setBlob: {
72
72
  type: "setBlob";
73
- params: xstate1559.NonReducibleUnknown;
73
+ params: xstate1037.NonReducibleUnknown;
74
74
  };
75
75
  }>, {
76
76
  type: "isPasswordValid";
77
77
  params: unknown;
78
- }, never, "error" | "idle" | "processing" | "success" | "finished" | "password" | "downloaded", string, CertificateIssuanceInput, xstate1559.NonReducibleUnknown, xstate1559.EventObject, xstate1559.MetaObject, {
78
+ }, never, "error" | "idle" | "processing" | "success" | "finished" | "password" | "downloaded", string, CertificateIssuanceInput, xstate1037.NonReducibleUnknown, xstate1037.EventObject, xstate1037.MetaObject, {
79
79
  readonly id: "certificateIssuance";
80
80
  readonly initial: "idle";
81
81
  readonly context: ({
@@ -84,39 +84,39 @@ declare const certificateIssuanceMachine: xstate1559.StateMachine<CertificateIss
84
84
  spawn: {
85
85
  <TSrc extends "issueCertificate">(logic: TSrc, ...[options]: {
86
86
  src: "issueCertificate";
87
- logic: xstate1559.PromiseActorLogic<IssueCertificateResponse, {
87
+ logic: xstate1037.PromiseActorLogic<IssueCertificateResponse, {
88
88
  password: string;
89
- }, xstate1559.EventObject>;
89
+ }, xstate1037.EventObject>;
90
90
  id: string | undefined;
91
91
  } extends infer T ? T extends {
92
92
  src: "issueCertificate";
93
- logic: xstate1559.PromiseActorLogic<IssueCertificateResponse, {
93
+ logic: xstate1037.PromiseActorLogic<IssueCertificateResponse, {
94
94
  password: string;
95
- }, xstate1559.EventObject>;
95
+ }, xstate1037.EventObject>;
96
96
  id: string | undefined;
97
97
  } ? T extends {
98
98
  src: TSrc;
99
- } ? xstate1559.ConditionalRequired<[options?: ({
99
+ } ? xstate1037.ConditionalRequired<[options?: ({
100
100
  id?: T["id"] | undefined;
101
101
  systemId?: string;
102
- input?: xstate1559.InputFrom<T["logic"]> | undefined;
102
+ input?: xstate1037.InputFrom<T["logic"]> | undefined;
103
103
  syncSnapshot?: boolean;
104
- } & { [K in xstate1559.RequiredActorOptions<T>]: unknown }) | undefined], xstate1559.IsNotNever<xstate1559.RequiredActorOptions<T>>> : never : never : never): xstate1559.ActorRefFromLogic<xstate1559.GetConcreteByKey<{
104
+ } & { [K in xstate1037.RequiredActorOptions<T>]: unknown }) | undefined], xstate1037.IsNotNever<xstate1037.RequiredActorOptions<T>>> : never : never : never): xstate1037.ActorRefFromLogic<xstate1037.GetConcreteByKey<{
105
105
  src: "issueCertificate";
106
- logic: xstate1559.PromiseActorLogic<IssueCertificateResponse, {
106
+ logic: xstate1037.PromiseActorLogic<IssueCertificateResponse, {
107
107
  password: string;
108
- }, xstate1559.EventObject>;
108
+ }, xstate1037.EventObject>;
109
109
  id: string | undefined;
110
110
  }, "src", TSrc>["logic"]>;
111
- <TLogic extends xstate1559.AnyActorLogic>(src: TLogic, ...[options]: xstate1559.ConditionalRequired<[options?: ({
111
+ <TLogic extends xstate1037.AnyActorLogic>(src: TLogic, ...[options]: xstate1037.ConditionalRequired<[options?: ({
112
112
  id?: never;
113
113
  systemId?: string;
114
- input?: xstate1559.InputFrom<TLogic> | undefined;
114
+ input?: xstate1037.InputFrom<TLogic> | undefined;
115
115
  syncSnapshot?: boolean;
116
- } & { [K in xstate1559.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate1559.IsNotNever<xstate1559.RequiredLogicInput<TLogic>>>): xstate1559.ActorRefFromLogic<TLogic>;
116
+ } & { [K in xstate1037.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate1037.IsNotNever<xstate1037.RequiredLogicInput<TLogic>>>): xstate1037.ActorRefFromLogic<TLogic>;
117
117
  };
118
118
  input: CertificateIssuanceInput;
119
- self: xstate1559.ActorRef<xstate1559.MachineSnapshot<CertificateIssuanceContext, {
119
+ self: xstate1037.ActorRef<xstate1037.MachineSnapshot<CertificateIssuanceContext, {
120
120
  type: "LOAD";
121
121
  } | {
122
122
  type: "PASSWORD_CHANGED";
@@ -129,7 +129,7 @@ declare const certificateIssuanceMachine: xstate1559.StateMachine<CertificateIss
129
129
  type: "DOWNLOAD_FAILED";
130
130
  } | {
131
131
  type: "FINISH";
132
- }, Record<string, xstate1559.AnyActorRef | undefined>, xstate1559.StateValue, string, unknown, any, any>, {
132
+ }, Record<string, xstate1037.AnyActorRef | undefined>, xstate1037.StateValue, string, unknown, any, any>, {
133
133
  type: "LOAD";
134
134
  } | {
135
135
  type: "PASSWORD_CHANGED";
@@ -142,7 +142,7 @@ declare const certificateIssuanceMachine: xstate1559.StateMachine<CertificateIss
142
142
  type: "DOWNLOAD_FAILED";
143
143
  } | {
144
144
  type: "FINISH";
145
- }, xstate1559.AnyEventObject>;
145
+ }, xstate1037.AnyEventObject>;
146
146
  }) => {
147
147
  config: CertificateIssuanceConfig;
148
148
  password: string;
@@ -190,7 +190,7 @@ declare const certificateIssuanceMachine: xstate1559.StateMachine<CertificateIss
190
190
  } | {
191
191
  type: "FINISH";
192
192
  };
193
- self: xstate1559.ActorRef<xstate1559.MachineSnapshot<CertificateIssuanceContext, {
193
+ self: xstate1037.ActorRef<xstate1037.MachineSnapshot<CertificateIssuanceContext, {
194
194
  type: "LOAD";
195
195
  } | {
196
196
  type: "PASSWORD_CHANGED";
@@ -203,7 +203,7 @@ declare const certificateIssuanceMachine: xstate1559.StateMachine<CertificateIss
203
203
  type: "DOWNLOAD_FAILED";
204
204
  } | {
205
205
  type: "FINISH";
206
- }, Record<string, xstate1559.AnyActorRef>, xstate1559.StateValue, string, unknown, any, any>, {
206
+ }, Record<string, xstate1037.AnyActorRef>, xstate1037.StateValue, string, unknown, any, any>, {
207
207
  type: "LOAD";
208
208
  } | {
209
209
  type: "PASSWORD_CHANGED";
@@ -216,7 +216,7 @@ declare const certificateIssuanceMachine: xstate1559.StateMachine<CertificateIss
216
216
  type: "DOWNLOAD_FAILED";
217
217
  } | {
218
218
  type: "FINISH";
219
- }, xstate1559.AnyEventObject>;
219
+ }, xstate1037.AnyEventObject>;
220
220
  }) => {
221
221
  password: string;
222
222
  };
package/dist/consent.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./StateMachine-CNPJD4wG.js";
2
2
  import "./Manager-Cmz78C-6.js";
3
3
  import "./Actor-BYmFPUr7.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-Cq_zuGyV.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-C5ghsYWh.js";
5
5
  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-Cmz78C-6.js";
2
2
  import { t as ActorRefFrom } from "./Actor-BYmFPUr7.js";
3
- import * as xstate1491 from "xstate";
3
+ import * as xstate1227 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: xstate1491.StateMachine<ConsentContext, {
40
+ declare const consentMachine: xstate1227.StateMachine<ConsentContext, {
41
41
  type: "LOAD";
42
42
  } | {
43
43
  type: "TOGGLE_CHECKBOX";
@@ -49,55 +49,55 @@ declare const consentMachine: xstate1491.StateMachine<ConsentContext, {
49
49
  } | {
50
50
  type: "RESET";
51
51
  }, {
52
- [x: string]: xstate1491.ActorRefFromLogic<xstate1491.PromiseActorLogic<FetchCombinedConsentResponse, {
52
+ [x: string]: xstate1227.ActorRefFromLogic<xstate1227.PromiseActorLogic<FetchCombinedConsentResponse, {
53
53
  consentId: string;
54
54
  language?: string;
55
- }, xstate1491.EventObject>> | xstate1491.ActorRefFromLogic<xstate1491.PromiseActorLogic<void, {
55
+ }, xstate1227.EventObject>> | xstate1227.ActorRefFromLogic<xstate1227.PromiseActorLogic<void, {
56
56
  languageConsentId: string;
57
57
  checkboxes: ConsentCheckbox[];
58
- }, xstate1491.EventObject>> | undefined;
59
- }, xstate1491.Values<{
58
+ }, xstate1227.EventObject>> | undefined;
59
+ }, xstate1227.Values<{
60
60
  fetchConsent: {
61
61
  src: "fetchConsent";
62
- logic: xstate1491.PromiseActorLogic<FetchCombinedConsentResponse, {
62
+ logic: xstate1227.PromiseActorLogic<FetchCombinedConsentResponse, {
63
63
  consentId: string;
64
64
  language?: string;
65
- }, xstate1491.EventObject>;
65
+ }, xstate1227.EventObject>;
66
66
  id: string | undefined;
67
67
  };
68
68
  submitConsent: {
69
69
  src: "submitConsent";
70
- logic: xstate1491.PromiseActorLogic<void, {
70
+ logic: xstate1227.PromiseActorLogic<void, {
71
71
  languageConsentId: string;
72
72
  checkboxes: ConsentCheckbox[];
73
- }, xstate1491.EventObject>;
73
+ }, xstate1227.EventObject>;
74
74
  id: string | undefined;
75
75
  };
76
- }>, xstate1491.Values<{
77
- clearError: {
78
- type: "clearError";
79
- params: xstate1491.NonReducibleUnknown;
80
- };
76
+ }>, xstate1227.Values<{
81
77
  setError: {
82
78
  type: "setError";
83
- params: xstate1491.NonReducibleUnknown;
79
+ params: xstate1227.NonReducibleUnknown;
84
80
  };
85
- resetContext: {
86
- type: "resetContext";
87
- params: xstate1491.NonReducibleUnknown;
81
+ clearError: {
82
+ type: "clearError";
83
+ params: xstate1227.NonReducibleUnknown;
88
84
  };
89
85
  setConsentData: {
90
86
  type: "setConsentData";
91
- params: xstate1491.NonReducibleUnknown;
87
+ params: xstate1227.NonReducibleUnknown;
92
88
  };
93
89
  toggleCheckbox: {
94
90
  type: "toggleCheckbox";
95
- params: xstate1491.NonReducibleUnknown;
91
+ params: xstate1227.NonReducibleUnknown;
92
+ };
93
+ resetContext: {
94
+ type: "resetContext";
95
+ params: xstate1227.NonReducibleUnknown;
96
96
  };
97
97
  }>, {
98
98
  type: "canSubmit";
99
99
  params: unknown;
100
- }, never, "error" | "idle" | "finished" | "loading" | "submitting" | "display", string, ConsentInput, xstate1491.NonReducibleUnknown, xstate1491.EventObject, xstate1491.MetaObject, {
100
+ }, never, "error" | "idle" | "finished" | "loading" | "submitting" | "display", string, ConsentInput, xstate1227.NonReducibleUnknown, xstate1227.EventObject, xstate1227.MetaObject, {
101
101
  readonly id: "consent";
102
102
  readonly initial: "idle";
103
103
  readonly context: ({
@@ -106,73 +106,73 @@ declare const consentMachine: xstate1491.StateMachine<ConsentContext, {
106
106
  spawn: {
107
107
  <TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
108
108
  src: "fetchConsent";
109
- logic: xstate1491.PromiseActorLogic<FetchCombinedConsentResponse, {
109
+ logic: xstate1227.PromiseActorLogic<FetchCombinedConsentResponse, {
110
110
  consentId: string;
111
111
  language?: string;
112
- }, xstate1491.EventObject>;
112
+ }, xstate1227.EventObject>;
113
113
  id: string | undefined;
114
114
  } extends infer T ? T extends {
115
115
  src: "fetchConsent";
116
- logic: xstate1491.PromiseActorLogic<FetchCombinedConsentResponse, {
116
+ logic: xstate1227.PromiseActorLogic<FetchCombinedConsentResponse, {
117
117
  consentId: string;
118
118
  language?: string;
119
- }, xstate1491.EventObject>;
119
+ }, xstate1227.EventObject>;
120
120
  id: string | undefined;
121
121
  } ? T extends {
122
122
  src: TSrc;
123
- } ? xstate1491.ConditionalRequired<[options?: ({
123
+ } ? xstate1227.ConditionalRequired<[options?: ({
124
124
  id?: T["id"] | undefined;
125
125
  systemId?: string;
126
- input?: xstate1491.InputFrom<T["logic"]> | undefined;
126
+ input?: xstate1227.InputFrom<T["logic"]> | undefined;
127
127
  syncSnapshot?: boolean;
128
- } & { [K in xstate1491.RequiredActorOptions<T>]: unknown }) | undefined], xstate1491.IsNotNever<xstate1491.RequiredActorOptions<T>>> : never : never : never) | ({
128
+ } & { [K in xstate1227.RequiredActorOptions<T>]: unknown }) | undefined], xstate1227.IsNotNever<xstate1227.RequiredActorOptions<T>>> : never : never : never) | ({
129
129
  src: "submitConsent";
130
- logic: xstate1491.PromiseActorLogic<void, {
130
+ logic: xstate1227.PromiseActorLogic<void, {
131
131
  languageConsentId: string;
132
132
  checkboxes: ConsentCheckbox[];
133
- }, xstate1491.EventObject>;
133
+ }, xstate1227.EventObject>;
134
134
  id: string | undefined;
135
135
  } extends infer T_1 ? T_1 extends {
136
136
  src: "submitConsent";
137
- logic: xstate1491.PromiseActorLogic<void, {
137
+ logic: xstate1227.PromiseActorLogic<void, {
138
138
  languageConsentId: string;
139
139
  checkboxes: ConsentCheckbox[];
140
- }, xstate1491.EventObject>;
140
+ }, xstate1227.EventObject>;
141
141
  id: string | undefined;
142
142
  } ? T_1 extends {
143
143
  src: TSrc;
144
- } ? xstate1491.ConditionalRequired<[options?: ({
144
+ } ? xstate1227.ConditionalRequired<[options?: ({
145
145
  id?: T_1["id"] | undefined;
146
146
  systemId?: string;
147
- input?: xstate1491.InputFrom<T_1["logic"]> | undefined;
147
+ input?: xstate1227.InputFrom<T_1["logic"]> | undefined;
148
148
  syncSnapshot?: boolean;
149
- } & { [K_1 in xstate1491.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate1491.IsNotNever<xstate1491.RequiredActorOptions<T_1>>> : never : never : never)): xstate1491.ActorRefFromLogic<xstate1491.GetConcreteByKey<xstate1491.Values<{
149
+ } & { [K_1 in xstate1227.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate1227.IsNotNever<xstate1227.RequiredActorOptions<T_1>>> : never : never : never)): xstate1227.ActorRefFromLogic<xstate1227.GetConcreteByKey<xstate1227.Values<{
150
150
  fetchConsent: {
151
151
  src: "fetchConsent";
152
- logic: xstate1491.PromiseActorLogic<FetchCombinedConsentResponse, {
152
+ logic: xstate1227.PromiseActorLogic<FetchCombinedConsentResponse, {
153
153
  consentId: string;
154
154
  language?: string;
155
- }, xstate1491.EventObject>;
155
+ }, xstate1227.EventObject>;
156
156
  id: string | undefined;
157
157
  };
158
158
  submitConsent: {
159
159
  src: "submitConsent";
160
- logic: xstate1491.PromiseActorLogic<void, {
160
+ logic: xstate1227.PromiseActorLogic<void, {
161
161
  languageConsentId: string;
162
162
  checkboxes: ConsentCheckbox[];
163
- }, xstate1491.EventObject>;
163
+ }, xstate1227.EventObject>;
164
164
  id: string | undefined;
165
165
  };
166
166
  }>, "src", TSrc>["logic"]>;
167
- <TLogic extends xstate1491.AnyActorLogic>(src: TLogic, ...[options]: xstate1491.ConditionalRequired<[options?: ({
167
+ <TLogic extends xstate1227.AnyActorLogic>(src: TLogic, ...[options]: xstate1227.ConditionalRequired<[options?: ({
168
168
  id?: never;
169
169
  systemId?: string;
170
- input?: xstate1491.InputFrom<TLogic> | undefined;
170
+ input?: xstate1227.InputFrom<TLogic> | undefined;
171
171
  syncSnapshot?: boolean;
172
- } & { [K in xstate1491.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate1491.IsNotNever<xstate1491.RequiredLogicInput<TLogic>>>): xstate1491.ActorRefFromLogic<TLogic>;
172
+ } & { [K in xstate1227.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate1227.IsNotNever<xstate1227.RequiredLogicInput<TLogic>>>): xstate1227.ActorRefFromLogic<TLogic>;
173
173
  };
174
174
  input: ConsentInput;
175
- self: xstate1491.ActorRef<xstate1491.MachineSnapshot<ConsentContext, {
175
+ self: xstate1227.ActorRef<xstate1227.MachineSnapshot<ConsentContext, {
176
176
  type: "LOAD";
177
177
  } | {
178
178
  type: "TOGGLE_CHECKBOX";
@@ -183,7 +183,7 @@ declare const consentMachine: xstate1491.StateMachine<ConsentContext, {
183
183
  type: "RETRY";
184
184
  } | {
185
185
  type: "RESET";
186
- }, Record<string, xstate1491.AnyActorRef | undefined>, xstate1491.StateValue, string, unknown, any, any>, {
186
+ }, Record<string, xstate1227.AnyActorRef | undefined>, xstate1227.StateValue, string, unknown, any, any>, {
187
187
  type: "LOAD";
188
188
  } | {
189
189
  type: "TOGGLE_CHECKBOX";
@@ -194,7 +194,7 @@ declare const consentMachine: xstate1491.StateMachine<ConsentContext, {
194
194
  type: "RETRY";
195
195
  } | {
196
196
  type: "RESET";
197
- }, xstate1491.AnyEventObject>;
197
+ }, xstate1227.AnyEventObject>;
198
198
  }) => {
199
199
  config: ConsentConfig;
200
200
  title: string;
@@ -232,7 +232,7 @@ declare const consentMachine: xstate1491.StateMachine<ConsentContext, {
232
232
  } | {
233
233
  type: "RESET";
234
234
  };
235
- self: xstate1491.ActorRef<xstate1491.MachineSnapshot<ConsentContext, {
235
+ self: xstate1227.ActorRef<xstate1227.MachineSnapshot<ConsentContext, {
236
236
  type: "LOAD";
237
237
  } | {
238
238
  type: "TOGGLE_CHECKBOX";
@@ -243,7 +243,7 @@ declare const consentMachine: xstate1491.StateMachine<ConsentContext, {
243
243
  type: "RETRY";
244
244
  } | {
245
245
  type: "RESET";
246
- }, Record<string, xstate1491.AnyActorRef>, xstate1491.StateValue, string, unknown, any, any>, {
246
+ }, Record<string, xstate1227.AnyActorRef>, xstate1227.StateValue, string, unknown, any, any>, {
247
247
  type: "LOAD";
248
248
  } | {
249
249
  type: "TOGGLE_CHECKBOX";
@@ -254,7 +254,7 @@ declare const consentMachine: xstate1491.StateMachine<ConsentContext, {
254
254
  type: "RETRY";
255
255
  } | {
256
256
  type: "RESET";
257
- }, xstate1491.AnyEventObject>;
257
+ }, xstate1227.AnyEventObject>;
258
258
  }) => {
259
259
  consentId: string;
260
260
  language: string | undefined;
@@ -304,7 +304,7 @@ declare const consentMachine: xstate1491.StateMachine<ConsentContext, {
304
304
  } | {
305
305
  type: "RESET";
306
306
  };
307
- self: xstate1491.ActorRef<xstate1491.MachineSnapshot<ConsentContext, {
307
+ self: xstate1227.ActorRef<xstate1227.MachineSnapshot<ConsentContext, {
308
308
  type: "LOAD";
309
309
  } | {
310
310
  type: "TOGGLE_CHECKBOX";
@@ -315,7 +315,7 @@ declare const consentMachine: xstate1491.StateMachine<ConsentContext, {
315
315
  type: "RETRY";
316
316
  } | {
317
317
  type: "RESET";
318
- }, Record<string, xstate1491.AnyActorRef>, xstate1491.StateValue, string, unknown, any, any>, {
318
+ }, Record<string, xstate1227.AnyActorRef>, xstate1227.StateValue, string, unknown, any, any>, {
319
319
  type: "LOAD";
320
320
  } | {
321
321
  type: "TOGGLE_CHECKBOX";
@@ -326,7 +326,7 @@ declare const consentMachine: xstate1491.StateMachine<ConsentContext, {
326
326
  type: "RETRY";
327
327
  } | {
328
328
  type: "RESET";
329
- }, xstate1491.AnyEventObject>;
329
+ }, xstate1227.AnyEventObject>;
330
330
  }) => {
331
331
  languageConsentId: string;
332
332
  checkboxes: ConsentCheckbox[];
package/dist/cpf-ocr.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import "./StateMachine-CNPJD4wG.js";
2
2
  import "./Manager-Cmz78C-6.js";
3
3
  import "./Actor-BYmFPUr7.js";
4
- import { a as CpfOcrActor, i as createCpfOcrManagerFromActor, n as CpfOcrState, o as cpfOcrMachine, r as createCpfOcrManager, t as CpfOcrManager } from "./cpfOcrManager-CqofcqUr.js";
4
+ import { a as CpfOcrActor, i as createCpfOcrManagerFromActor, n as CpfOcrState, o as cpfOcrMachine, r as createCpfOcrManager, t as CpfOcrManager } from "./cpfOcrManager-Cx2sr4VI.js";
5
5
 
6
6
  //#region src/modules/cpf-ocr/cpfOcrUtils.d.ts
7
7
  declare function formatCPF(value: string): string;
@@ -1,6 +1,6 @@
1
1
  import { t as Manager } from "./Manager-Cmz78C-6.js";
2
2
  import { t as ActorRefFrom } from "./Actor-BYmFPUr7.js";
3
- import * as xstate1601 from "xstate";
3
+ import * as xstate1295 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: xstate1601.StateMachine<CpfOcrContext, {
20
+ declare const cpfOcrMachine: xstate1295.StateMachine<CpfOcrContext, {
21
21
  type: "LOAD";
22
22
  } | {
23
23
  type: "SET_CPF";
@@ -27,43 +27,43 @@ declare const cpfOcrMachine: xstate1601.StateMachine<CpfOcrContext, {
27
27
  } | {
28
28
  type: "RETRY";
29
29
  }, {
30
- [x: string]: xstate1601.ActorRefFromLogic<xstate1601.PromiseActorLogic<CpfOcrDataResponse, void, xstate1601.EventObject>> | xstate1601.ActorRefFromLogic<xstate1601.PromiseActorLogic<CpfOcrUpdateResponse, {
30
+ [x: string]: xstate1295.ActorRefFromLogic<xstate1295.PromiseActorLogic<CpfOcrDataResponse, void, xstate1295.EventObject>> | xstate1295.ActorRefFromLogic<xstate1295.PromiseActorLogic<CpfOcrUpdateResponse, {
31
31
  cpf: string;
32
- }, xstate1601.EventObject>> | undefined;
33
- }, xstate1601.Values<{
32
+ }, xstate1295.EventObject>> | undefined;
33
+ }, xstate1295.Values<{
34
34
  fetchCpfOcrData: {
35
35
  src: "fetchCpfOcrData";
36
- logic: xstate1601.PromiseActorLogic<CpfOcrDataResponse, void, xstate1601.EventObject>;
36
+ logic: xstate1295.PromiseActorLogic<CpfOcrDataResponse, void, xstate1295.EventObject>;
37
37
  id: string | undefined;
38
38
  };
39
39
  submitCpfOcr: {
40
40
  src: "submitCpfOcr";
41
- logic: xstate1601.PromiseActorLogic<CpfOcrUpdateResponse, {
41
+ logic: xstate1295.PromiseActorLogic<CpfOcrUpdateResponse, {
42
42
  cpf: string;
43
- }, xstate1601.EventObject>;
43
+ }, xstate1295.EventObject>;
44
44
  id: string | undefined;
45
45
  };
46
- }>, xstate1601.Values<{
47
- clearError: {
48
- type: "clearError";
49
- params: xstate1601.NonReducibleUnknown;
50
- };
46
+ }>, xstate1295.Values<{
51
47
  setError: {
52
48
  type: "setError";
53
- params: xstate1601.NonReducibleUnknown;
49
+ params: xstate1295.NonReducibleUnknown;
50
+ };
51
+ clearError: {
52
+ type: "clearError";
53
+ params: xstate1295.NonReducibleUnknown;
54
54
  };
55
55
  setPrefill: {
56
56
  type: "setPrefill";
57
- params: xstate1601.NonReducibleUnknown;
57
+ params: xstate1295.NonReducibleUnknown;
58
58
  };
59
59
  setCpf: {
60
60
  type: "setCpf";
61
- params: xstate1601.NonReducibleUnknown;
61
+ params: xstate1295.NonReducibleUnknown;
62
62
  };
63
63
  }>, {
64
64
  type: "isValid";
65
65
  params: unknown;
66
- }, never, "error" | "idle" | "finished" | "loading" | "submitting" | "inputting", string, CpfOcrInput, xstate1601.NonReducibleUnknown, xstate1601.EventObject, xstate1601.MetaObject, {
66
+ }, never, "error" | "idle" | "finished" | "loading" | "submitting" | "inputting", string, CpfOcrInput, xstate1295.NonReducibleUnknown, xstate1295.EventObject, xstate1295.MetaObject, {
67
67
  readonly id: "cpfOcr";
68
68
  readonly initial: "idle";
69
69
  readonly context: {
@@ -118,7 +118,7 @@ declare const cpfOcrMachine: xstate1601.StateMachine<CpfOcrContext, {
118
118
  } | {
119
119
  type: "RETRY";
120
120
  };
121
- self: xstate1601.ActorRef<xstate1601.MachineSnapshot<CpfOcrContext, {
121
+ self: xstate1295.ActorRef<xstate1295.MachineSnapshot<CpfOcrContext, {
122
122
  type: "LOAD";
123
123
  } | {
124
124
  type: "SET_CPF";
@@ -127,7 +127,7 @@ declare const cpfOcrMachine: xstate1601.StateMachine<CpfOcrContext, {
127
127
  type: "SUBMIT";
128
128
  } | {
129
129
  type: "RETRY";
130
- }, Record<string, xstate1601.AnyActorRef>, xstate1601.StateValue, string, unknown, any, any>, {
130
+ }, Record<string, xstate1295.AnyActorRef>, xstate1295.StateValue, string, unknown, any, any>, {
131
131
  type: "LOAD";
132
132
  } | {
133
133
  type: "SET_CPF";
@@ -136,7 +136,7 @@ declare const cpfOcrMachine: xstate1601.StateMachine<CpfOcrContext, {
136
136
  type: "SUBMIT";
137
137
  } | {
138
138
  type: "RETRY";
139
- }, xstate1601.AnyEventObject>;
139
+ }, xstate1295.AnyEventObject>;
140
140
  }) => {
141
141
  cpf: string;
142
142
  };