@incodetech/core 0.0.0-dev-20260609-d8422416 → 0.0.0-dev-20260610-8787196e

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 (36) hide show
  1. package/dist/ae-signature.d.ts +1 -1
  2. package/dist/consent.d.ts +1 -1
  3. package/dist/{consentManager-SD5tBhF2.d.ts → consentManager-CHV12fjQ.d.ts} +50 -50
  4. package/dist/cpf-ocr.d.ts +1 -1
  5. package/dist/{cpfOcrManager-CFXPeScZ.d.ts → cpfOcrManager-BR_dJaKV.d.ts} +17 -17
  6. package/dist/document-upload.d.ts +40 -40
  7. package/dist/ekyb.esm.js +3 -3
  8. package/dist/{ekybStateMachine-D4Me2DKL.esm.js → ekybStateMachine-C0DLJplY.esm.js} +1 -1
  9. package/dist/electronic-signature.d.ts +1 -1
  10. package/dist/extensibility.d.ts +4 -4
  11. package/dist/extensibility.esm.js +3 -3
  12. package/dist/flow.d.ts +2 -2
  13. package/dist/flow.esm.js +2 -2
  14. package/dist/{flowServices-CTe60_Yc.esm.js → flowServices-DhaF-fP3.esm.js} +1 -1
  15. package/dist/home.d.ts +10 -10
  16. package/dist/id-ocr.d.ts +55 -55
  17. package/dist/id-verification.d.ts +25 -25
  18. package/dist/id.esm.js +3 -3
  19. package/dist/{idCaptureManager-NM2_xhQD.esm.js → idCaptureManager-CWG0Qgeq.esm.js} +1 -1
  20. package/dist/{idCaptureStateMachine-Cp-qUHbF.esm.js → idCaptureStateMachine-Dqfxbea3.esm.js} +5 -6
  21. package/dist/identity-reuse.d.ts +1 -1
  22. package/dist/{identityReuseManager-DfFtN0rb.d.ts → identityReuseManager-DVZLgcfm.d.ts} +31 -31
  23. package/dist/{index-TXXaG7tA.d.ts → index-B1ijI7RD.d.ts} +168 -168
  24. package/dist/index.esm.js +2 -2
  25. package/dist/mandatory-consent.d.ts +1 -1
  26. package/dist/{mandatoryConsentManager-DWeOpLdU.d.ts → mandatoryConsentManager-DwmDNt6y.d.ts} +47 -47
  27. package/dist/qe-signature.d.ts +1 -1
  28. package/dist/session.esm.js +1 -1
  29. package/dist/{sessionInitializer-BysWktHr.esm.js → sessionInitializer-Be88b4WX.esm.js} +1 -1
  30. package/dist/{setup-D-yUFr36.esm.js → setup-BgxDnUDw.esm.js} +2 -2
  31. package/dist/trust-graph.d.ts +2 -2
  32. package/dist/wasm.d.ts +1 -1
  33. package/dist/wasm.esm.js +2 -2
  34. package/dist/workflow.d.ts +88 -88
  35. package/dist/workflow.esm.js +4 -4
  36. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import { t as Manager } from "./Manager-Dh6pC-6V.js";
2
2
  import "./Actor-Ds20AUDY.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-TXXaG7tA.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-B1ijI7RD.js";
4
4
 
5
5
  //#region src/modules/ae-signature/index.d.ts
6
6
 
package/dist/consent.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  import "./Manager-Dh6pC-6V.js";
2
2
  import "./Actor-Ds20AUDY.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-SD5tBhF2.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-CHV12fjQ.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-Dh6pC-6V.js";
2
2
  import { t as ActorRefFrom } from "./Actor-Ds20AUDY.js";
3
- import * as xstate1106 from "xstate";
3
+ import * as xstate1484 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: xstate1106.StateMachine<ConsentContext, {
40
+ declare const consentMachine: xstate1484.StateMachine<ConsentContext, {
41
41
  type: "LOAD";
42
42
  } | {
43
43
  type: "TOGGLE_CHECKBOX";
@@ -49,55 +49,55 @@ declare const consentMachine: xstate1106.StateMachine<ConsentContext, {
49
49
  } | {
50
50
  type: "RESET";
51
51
  }, {
52
- [x: string]: xstate1106.ActorRefFromLogic<xstate1106.PromiseActorLogic<FetchCombinedConsentResponse, {
52
+ [x: string]: xstate1484.ActorRefFromLogic<xstate1484.PromiseActorLogic<FetchCombinedConsentResponse, {
53
53
  consentId: string;
54
54
  language?: string;
55
- }, xstate1106.EventObject>> | xstate1106.ActorRefFromLogic<xstate1106.PromiseActorLogic<void, {
55
+ }, xstate1484.EventObject>> | xstate1484.ActorRefFromLogic<xstate1484.PromiseActorLogic<void, {
56
56
  languageConsentId: string;
57
57
  checkboxes: ConsentCheckbox[];
58
- }, xstate1106.EventObject>> | undefined;
59
- }, xstate1106.Values<{
58
+ }, xstate1484.EventObject>> | undefined;
59
+ }, xstate1484.Values<{
60
60
  fetchConsent: {
61
61
  src: "fetchConsent";
62
- logic: xstate1106.PromiseActorLogic<FetchCombinedConsentResponse, {
62
+ logic: xstate1484.PromiseActorLogic<FetchCombinedConsentResponse, {
63
63
  consentId: string;
64
64
  language?: string;
65
- }, xstate1106.EventObject>;
65
+ }, xstate1484.EventObject>;
66
66
  id: string | undefined;
67
67
  };
68
68
  submitConsent: {
69
69
  src: "submitConsent";
70
- logic: xstate1106.PromiseActorLogic<void, {
70
+ logic: xstate1484.PromiseActorLogic<void, {
71
71
  languageConsentId: string;
72
72
  checkboxes: ConsentCheckbox[];
73
- }, xstate1106.EventObject>;
73
+ }, xstate1484.EventObject>;
74
74
  id: string | undefined;
75
75
  };
76
- }>, xstate1106.Values<{
76
+ }>, xstate1484.Values<{
77
77
  clearError: {
78
78
  type: "clearError";
79
- params: xstate1106.NonReducibleUnknown;
79
+ params: xstate1484.NonReducibleUnknown;
80
80
  };
81
81
  setError: {
82
82
  type: "setError";
83
- params: xstate1106.NonReducibleUnknown;
83
+ params: xstate1484.NonReducibleUnknown;
84
+ };
85
+ resetContext: {
86
+ type: "resetContext";
87
+ params: xstate1484.NonReducibleUnknown;
84
88
  };
85
89
  setConsentData: {
86
90
  type: "setConsentData";
87
- params: xstate1106.NonReducibleUnknown;
91
+ params: xstate1484.NonReducibleUnknown;
88
92
  };
89
93
  toggleCheckbox: {
90
94
  type: "toggleCheckbox";
91
- params: xstate1106.NonReducibleUnknown;
92
- };
93
- resetContext: {
94
- type: "resetContext";
95
- params: xstate1106.NonReducibleUnknown;
95
+ params: xstate1484.NonReducibleUnknown;
96
96
  };
97
97
  }>, {
98
98
  type: "canSubmit";
99
99
  params: unknown;
100
- }, never, "error" | "idle" | "finished" | "loading" | "submitting" | "display", string, ConsentInput, xstate1106.NonReducibleUnknown, xstate1106.EventObject, xstate1106.MetaObject, {
100
+ }, never, "error" | "idle" | "finished" | "loading" | "submitting" | "display", string, ConsentInput, xstate1484.NonReducibleUnknown, xstate1484.EventObject, xstate1484.MetaObject, {
101
101
  readonly id: "consent";
102
102
  readonly initial: "idle";
103
103
  readonly context: ({
@@ -106,73 +106,73 @@ declare const consentMachine: xstate1106.StateMachine<ConsentContext, {
106
106
  spawn: {
107
107
  <TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
108
108
  src: "fetchConsent";
109
- logic: xstate1106.PromiseActorLogic<FetchCombinedConsentResponse, {
109
+ logic: xstate1484.PromiseActorLogic<FetchCombinedConsentResponse, {
110
110
  consentId: string;
111
111
  language?: string;
112
- }, xstate1106.EventObject>;
112
+ }, xstate1484.EventObject>;
113
113
  id: string | undefined;
114
114
  } extends infer T ? T extends {
115
115
  src: "fetchConsent";
116
- logic: xstate1106.PromiseActorLogic<FetchCombinedConsentResponse, {
116
+ logic: xstate1484.PromiseActorLogic<FetchCombinedConsentResponse, {
117
117
  consentId: string;
118
118
  language?: string;
119
- }, xstate1106.EventObject>;
119
+ }, xstate1484.EventObject>;
120
120
  id: string | undefined;
121
121
  } ? T extends {
122
122
  src: TSrc;
123
- } ? xstate1106.ConditionalRequired<[options?: ({
123
+ } ? xstate1484.ConditionalRequired<[options?: ({
124
124
  id?: T["id"] | undefined;
125
125
  systemId?: string;
126
- input?: xstate1106.InputFrom<T["logic"]> | undefined;
126
+ input?: xstate1484.InputFrom<T["logic"]> | undefined;
127
127
  syncSnapshot?: boolean;
128
- } & { [K in xstate1106.RequiredActorOptions<T>]: unknown }) | undefined], xstate1106.IsNotNever<xstate1106.RequiredActorOptions<T>>> : never : never : never) | ({
128
+ } & { [K in xstate1484.RequiredActorOptions<T>]: unknown }) | undefined], xstate1484.IsNotNever<xstate1484.RequiredActorOptions<T>>> : never : never : never) | ({
129
129
  src: "submitConsent";
130
- logic: xstate1106.PromiseActorLogic<void, {
130
+ logic: xstate1484.PromiseActorLogic<void, {
131
131
  languageConsentId: string;
132
132
  checkboxes: ConsentCheckbox[];
133
- }, xstate1106.EventObject>;
133
+ }, xstate1484.EventObject>;
134
134
  id: string | undefined;
135
135
  } extends infer T_1 ? T_1 extends {
136
136
  src: "submitConsent";
137
- logic: xstate1106.PromiseActorLogic<void, {
137
+ logic: xstate1484.PromiseActorLogic<void, {
138
138
  languageConsentId: string;
139
139
  checkboxes: ConsentCheckbox[];
140
- }, xstate1106.EventObject>;
140
+ }, xstate1484.EventObject>;
141
141
  id: string | undefined;
142
142
  } ? T_1 extends {
143
143
  src: TSrc;
144
- } ? xstate1106.ConditionalRequired<[options?: ({
144
+ } ? xstate1484.ConditionalRequired<[options?: ({
145
145
  id?: T_1["id"] | undefined;
146
146
  systemId?: string;
147
- input?: xstate1106.InputFrom<T_1["logic"]> | undefined;
147
+ input?: xstate1484.InputFrom<T_1["logic"]> | undefined;
148
148
  syncSnapshot?: boolean;
149
- } & { [K_1 in xstate1106.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate1106.IsNotNever<xstate1106.RequiredActorOptions<T_1>>> : never : never : never)): xstate1106.ActorRefFromLogic<xstate1106.GetConcreteByKey<xstate1106.Values<{
149
+ } & { [K_1 in xstate1484.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate1484.IsNotNever<xstate1484.RequiredActorOptions<T_1>>> : never : never : never)): xstate1484.ActorRefFromLogic<xstate1484.GetConcreteByKey<xstate1484.Values<{
150
150
  fetchConsent: {
151
151
  src: "fetchConsent";
152
- logic: xstate1106.PromiseActorLogic<FetchCombinedConsentResponse, {
152
+ logic: xstate1484.PromiseActorLogic<FetchCombinedConsentResponse, {
153
153
  consentId: string;
154
154
  language?: string;
155
- }, xstate1106.EventObject>;
155
+ }, xstate1484.EventObject>;
156
156
  id: string | undefined;
157
157
  };
158
158
  submitConsent: {
159
159
  src: "submitConsent";
160
- logic: xstate1106.PromiseActorLogic<void, {
160
+ logic: xstate1484.PromiseActorLogic<void, {
161
161
  languageConsentId: string;
162
162
  checkboxes: ConsentCheckbox[];
163
- }, xstate1106.EventObject>;
163
+ }, xstate1484.EventObject>;
164
164
  id: string | undefined;
165
165
  };
166
166
  }>, "src", TSrc>["logic"]>;
167
- <TLogic extends xstate1106.AnyActorLogic>(src: TLogic, ...[options]: xstate1106.ConditionalRequired<[options?: ({
167
+ <TLogic extends xstate1484.AnyActorLogic>(src: TLogic, ...[options]: xstate1484.ConditionalRequired<[options?: ({
168
168
  id?: never;
169
169
  systemId?: string;
170
- input?: xstate1106.InputFrom<TLogic> | undefined;
170
+ input?: xstate1484.InputFrom<TLogic> | undefined;
171
171
  syncSnapshot?: boolean;
172
- } & { [K in xstate1106.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate1106.IsNotNever<xstate1106.RequiredLogicInput<TLogic>>>): xstate1106.ActorRefFromLogic<TLogic>;
172
+ } & { [K in xstate1484.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate1484.IsNotNever<xstate1484.RequiredLogicInput<TLogic>>>): xstate1484.ActorRefFromLogic<TLogic>;
173
173
  };
174
174
  input: ConsentInput;
175
- self: xstate1106.ActorRef<xstate1106.MachineSnapshot<ConsentContext, {
175
+ self: xstate1484.ActorRef<xstate1484.MachineSnapshot<ConsentContext, {
176
176
  type: "LOAD";
177
177
  } | {
178
178
  type: "TOGGLE_CHECKBOX";
@@ -183,7 +183,7 @@ declare const consentMachine: xstate1106.StateMachine<ConsentContext, {
183
183
  type: "RETRY";
184
184
  } | {
185
185
  type: "RESET";
186
- }, Record<string, xstate1106.AnyActorRef | undefined>, xstate1106.StateValue, string, unknown, any, any>, {
186
+ }, Record<string, xstate1484.AnyActorRef | undefined>, xstate1484.StateValue, string, unknown, any, any>, {
187
187
  type: "LOAD";
188
188
  } | {
189
189
  type: "TOGGLE_CHECKBOX";
@@ -194,7 +194,7 @@ declare const consentMachine: xstate1106.StateMachine<ConsentContext, {
194
194
  type: "RETRY";
195
195
  } | {
196
196
  type: "RESET";
197
- }, xstate1106.AnyEventObject>;
197
+ }, xstate1484.AnyEventObject>;
198
198
  }) => {
199
199
  config: ConsentConfig;
200
200
  title: string;
@@ -232,7 +232,7 @@ declare const consentMachine: xstate1106.StateMachine<ConsentContext, {
232
232
  } | {
233
233
  type: "RESET";
234
234
  };
235
- self: xstate1106.ActorRef<xstate1106.MachineSnapshot<ConsentContext, {
235
+ self: xstate1484.ActorRef<xstate1484.MachineSnapshot<ConsentContext, {
236
236
  type: "LOAD";
237
237
  } | {
238
238
  type: "TOGGLE_CHECKBOX";
@@ -243,7 +243,7 @@ declare const consentMachine: xstate1106.StateMachine<ConsentContext, {
243
243
  type: "RETRY";
244
244
  } | {
245
245
  type: "RESET";
246
- }, Record<string, xstate1106.AnyActorRef>, xstate1106.StateValue, string, unknown, any, any>, {
246
+ }, Record<string, xstate1484.AnyActorRef>, xstate1484.StateValue, string, unknown, any, any>, {
247
247
  type: "LOAD";
248
248
  } | {
249
249
  type: "TOGGLE_CHECKBOX";
@@ -254,7 +254,7 @@ declare const consentMachine: xstate1106.StateMachine<ConsentContext, {
254
254
  type: "RETRY";
255
255
  } | {
256
256
  type: "RESET";
257
- }, xstate1106.AnyEventObject>;
257
+ }, xstate1484.AnyEventObject>;
258
258
  }) => {
259
259
  consentId: string;
260
260
  language: string | undefined;
@@ -304,7 +304,7 @@ declare const consentMachine: xstate1106.StateMachine<ConsentContext, {
304
304
  } | {
305
305
  type: "RESET";
306
306
  };
307
- self: xstate1106.ActorRef<xstate1106.MachineSnapshot<ConsentContext, {
307
+ self: xstate1484.ActorRef<xstate1484.MachineSnapshot<ConsentContext, {
308
308
  type: "LOAD";
309
309
  } | {
310
310
  type: "TOGGLE_CHECKBOX";
@@ -315,7 +315,7 @@ declare const consentMachine: xstate1106.StateMachine<ConsentContext, {
315
315
  type: "RETRY";
316
316
  } | {
317
317
  type: "RESET";
318
- }, Record<string, xstate1106.AnyActorRef>, xstate1106.StateValue, string, unknown, any, any>, {
318
+ }, Record<string, xstate1484.AnyActorRef>, xstate1484.StateValue, string, unknown, any, any>, {
319
319
  type: "LOAD";
320
320
  } | {
321
321
  type: "TOGGLE_CHECKBOX";
@@ -326,7 +326,7 @@ declare const consentMachine: xstate1106.StateMachine<ConsentContext, {
326
326
  type: "RETRY";
327
327
  } | {
328
328
  type: "RESET";
329
- }, xstate1106.AnyEventObject>;
329
+ }, xstate1484.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-Dh6pC-6V.js";
2
2
  import "./Actor-Ds20AUDY.js";
3
- import { a as CpfOcrActor, i as createCpfOcrManagerFromActor, n as CpfOcrState, o as cpfOcrMachine, r as createCpfOcrManager, t as CpfOcrManager } from "./cpfOcrManager-CFXPeScZ.js";
3
+ import { a as CpfOcrActor, i as createCpfOcrManagerFromActor, n as CpfOcrState, o as cpfOcrMachine, r as createCpfOcrManager, t as CpfOcrManager } from "./cpfOcrManager-BR_dJaKV.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-Dh6pC-6V.js";
2
2
  import { t as ActorRefFrom } from "./Actor-Ds20AUDY.js";
3
- import * as xstate1081 from "xstate";
3
+ import * as xstate1327 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: xstate1081.StateMachine<CpfOcrContext, {
20
+ declare const cpfOcrMachine: xstate1327.StateMachine<CpfOcrContext, {
21
21
  type: "LOAD";
22
22
  } | {
23
23
  type: "SET_CPF";
@@ -27,43 +27,43 @@ declare const cpfOcrMachine: xstate1081.StateMachine<CpfOcrContext, {
27
27
  } | {
28
28
  type: "RETRY";
29
29
  }, {
30
- [x: string]: xstate1081.ActorRefFromLogic<xstate1081.PromiseActorLogic<CpfOcrDataResponse, void, xstate1081.EventObject>> | xstate1081.ActorRefFromLogic<xstate1081.PromiseActorLogic<CpfOcrUpdateResponse, {
30
+ [x: string]: xstate1327.ActorRefFromLogic<xstate1327.PromiseActorLogic<CpfOcrDataResponse, void, xstate1327.EventObject>> | xstate1327.ActorRefFromLogic<xstate1327.PromiseActorLogic<CpfOcrUpdateResponse, {
31
31
  cpf: string;
32
- }, xstate1081.EventObject>> | undefined;
33
- }, xstate1081.Values<{
32
+ }, xstate1327.EventObject>> | undefined;
33
+ }, xstate1327.Values<{
34
34
  fetchCpfOcrData: {
35
35
  src: "fetchCpfOcrData";
36
- logic: xstate1081.PromiseActorLogic<CpfOcrDataResponse, void, xstate1081.EventObject>;
36
+ logic: xstate1327.PromiseActorLogic<CpfOcrDataResponse, void, xstate1327.EventObject>;
37
37
  id: string | undefined;
38
38
  };
39
39
  submitCpfOcr: {
40
40
  src: "submitCpfOcr";
41
- logic: xstate1081.PromiseActorLogic<CpfOcrUpdateResponse, {
41
+ logic: xstate1327.PromiseActorLogic<CpfOcrUpdateResponse, {
42
42
  cpf: string;
43
- }, xstate1081.EventObject>;
43
+ }, xstate1327.EventObject>;
44
44
  id: string | undefined;
45
45
  };
46
- }>, xstate1081.Values<{
46
+ }>, xstate1327.Values<{
47
47
  clearError: {
48
48
  type: "clearError";
49
- params: xstate1081.NonReducibleUnknown;
49
+ params: xstate1327.NonReducibleUnknown;
50
50
  };
51
51
  setError: {
52
52
  type: "setError";
53
- params: xstate1081.NonReducibleUnknown;
53
+ params: xstate1327.NonReducibleUnknown;
54
54
  };
55
55
  setPrefill: {
56
56
  type: "setPrefill";
57
- params: xstate1081.NonReducibleUnknown;
57
+ params: xstate1327.NonReducibleUnknown;
58
58
  };
59
59
  setCpf: {
60
60
  type: "setCpf";
61
- params: xstate1081.NonReducibleUnknown;
61
+ params: xstate1327.NonReducibleUnknown;
62
62
  };
63
63
  }>, {
64
64
  type: "isValid";
65
65
  params: unknown;
66
- }, never, "error" | "idle" | "finished" | "loading" | "inputting" | "submitting", string, CpfOcrInput, xstate1081.NonReducibleUnknown, xstate1081.EventObject, xstate1081.MetaObject, {
66
+ }, never, "error" | "idle" | "finished" | "loading" | "inputting" | "submitting", string, CpfOcrInput, xstate1327.NonReducibleUnknown, xstate1327.EventObject, xstate1327.MetaObject, {
67
67
  readonly id: "cpfOcr";
68
68
  readonly initial: "idle";
69
69
  readonly context: {
@@ -118,7 +118,7 @@ declare const cpfOcrMachine: xstate1081.StateMachine<CpfOcrContext, {
118
118
  } | {
119
119
  type: "RETRY";
120
120
  };
121
- self: xstate1081.ActorRef<xstate1081.MachineSnapshot<CpfOcrContext, {
121
+ self: xstate1327.ActorRef<xstate1327.MachineSnapshot<CpfOcrContext, {
122
122
  type: "LOAD";
123
123
  } | {
124
124
  type: "SET_CPF";
@@ -127,7 +127,7 @@ declare const cpfOcrMachine: xstate1081.StateMachine<CpfOcrContext, {
127
127
  type: "SUBMIT";
128
128
  } | {
129
129
  type: "RETRY";
130
- }, Record<string, xstate1081.AnyActorRef>, xstate1081.StateValue, string, unknown, any, any>, {
130
+ }, Record<string, xstate1327.AnyActorRef>, xstate1327.StateValue, string, unknown, any, any>, {
131
131
  type: "LOAD";
132
132
  } | {
133
133
  type: "SET_CPF";
@@ -136,7 +136,7 @@ declare const cpfOcrMachine: xstate1081.StateMachine<CpfOcrContext, {
136
136
  type: "SUBMIT";
137
137
  } | {
138
138
  type: "RETRY";
139
- }, xstate1081.AnyEventObject>;
139
+ }, xstate1327.AnyEventObject>;
140
140
  }) => {
141
141
  cpf: string;
142
142
  };
@@ -2,10 +2,10 @@ import { t as Manager } from "./Manager-Dh6pC-6V.js";
2
2
  import "./Actor-Ds20AUDY.js";
3
3
  import "./camera-D7qYpKeG.js";
4
4
  import { n as DocumentUploadContext, r as DocumentUploadInput, t as DocumentUploadConfig } from "./types-BmZR-K77.js";
5
- import * as xstate407 from "xstate";
5
+ import * as xstate1352 from "xstate";
6
6
 
7
7
  //#region src/modules/document-upload/documentUploadStateMachine.d.ts
8
- declare const documentUploadMachine: xstate407.StateMachine<DocumentUploadContext, {
8
+ declare const documentUploadMachine: xstate1352.StateMachine<DocumentUploadContext, {
9
9
  type: "START";
10
10
  } | {
11
11
  type: "CAPTURE";
@@ -18,52 +18,52 @@ declare const documentUploadMachine: xstate407.StateMachine<DocumentUploadContex
18
18
  } | {
19
19
  type: "CLOSE";
20
20
  }, {
21
- [x: string]: xstate407.ActorRefFromLogic<xstate407.PromiseActorLogic<MediaStream, void, xstate407.EventObject>> | xstate407.ActorRefFromLogic<xstate407.PromiseActorLogic<void, {
21
+ [x: string]: xstate1352.ActorRefFromLogic<xstate1352.PromiseActorLogic<MediaStream, void, xstate1352.EventObject>> | xstate1352.ActorRefFromLogic<xstate1352.PromiseActorLogic<void, {
22
22
  imageBase64: string;
23
23
  documentType: string;
24
24
  onProgress: (progress: number) => void;
25
- }, xstate407.EventObject>> | undefined;
26
- }, xstate407.Values<{
25
+ }, xstate1352.EventObject>> | undefined;
26
+ }, xstate1352.Values<{
27
27
  uploadDocument: {
28
28
  src: "uploadDocument";
29
- logic: xstate407.PromiseActorLogic<void, {
29
+ logic: xstate1352.PromiseActorLogic<void, {
30
30
  imageBase64: string;
31
31
  documentType: string;
32
32
  onProgress: (progress: number) => void;
33
- }, xstate407.EventObject>;
33
+ }, xstate1352.EventObject>;
34
34
  id: string | undefined;
35
35
  };
36
36
  initCamera: {
37
37
  src: "initCamera";
38
- logic: xstate407.PromiseActorLogic<MediaStream, void, xstate407.EventObject>;
38
+ logic: xstate1352.PromiseActorLogic<MediaStream, void, xstate1352.EventObject>;
39
39
  id: string | undefined;
40
40
  };
41
- }>, xstate407.Values<{
41
+ }>, xstate1352.Values<{
42
42
  setStream: {
43
43
  type: "setStream";
44
- params: xstate407.NonReducibleUnknown;
44
+ params: xstate1352.NonReducibleUnknown;
45
45
  };
46
46
  setProgress: {
47
47
  type: "setProgress";
48
- params: xstate407.NonReducibleUnknown;
48
+ params: xstate1352.NonReducibleUnknown;
49
49
  };
50
50
  clearError: {
51
51
  type: "clearError";
52
- params: xstate407.NonReducibleUnknown;
52
+ params: xstate1352.NonReducibleUnknown;
53
53
  };
54
54
  stopStream: {
55
55
  type: "stopStream";
56
- params: xstate407.NonReducibleUnknown;
56
+ params: xstate1352.NonReducibleUnknown;
57
57
  };
58
58
  setError: {
59
59
  type: "setError";
60
- params: xstate407.NonReducibleUnknown;
60
+ params: xstate1352.NonReducibleUnknown;
61
61
  };
62
62
  setImageAndClearError: {
63
63
  type: "setImageAndClearError";
64
- params: xstate407.NonReducibleUnknown;
64
+ params: xstate1352.NonReducibleUnknown;
65
65
  };
66
- }>, never, never, "error" | "idle" | "uploading" | "closed" | "finished" | "initCamera" | "capturing", string, DocumentUploadInput, xstate407.NonReducibleUnknown, xstate407.EventObject, xstate407.MetaObject, {
66
+ }>, never, never, "error" | "idle" | "uploading" | "closed" | "finished" | "initCamera" | "capturing", string, DocumentUploadInput, xstate1352.NonReducibleUnknown, xstate1352.EventObject, xstate1352.MetaObject, {
67
67
  readonly id: "documentUpload";
68
68
  readonly initial: "idle";
69
69
  readonly context: ({
@@ -72,67 +72,67 @@ declare const documentUploadMachine: xstate407.StateMachine<DocumentUploadContex
72
72
  spawn: {
73
73
  <TSrc extends "uploadDocument" | "initCamera">(logic: TSrc, ...[options]: ({
74
74
  src: "uploadDocument";
75
- logic: xstate407.PromiseActorLogic<void, {
75
+ logic: xstate1352.PromiseActorLogic<void, {
76
76
  imageBase64: string;
77
77
  documentType: string;
78
78
  onProgress: (progress: number) => void;
79
- }, xstate407.EventObject>;
79
+ }, xstate1352.EventObject>;
80
80
  id: string | undefined;
81
81
  } extends infer T ? T extends {
82
82
  src: "uploadDocument";
83
- logic: xstate407.PromiseActorLogic<void, {
83
+ logic: xstate1352.PromiseActorLogic<void, {
84
84
  imageBase64: string;
85
85
  documentType: string;
86
86
  onProgress: (progress: number) => void;
87
- }, xstate407.EventObject>;
87
+ }, xstate1352.EventObject>;
88
88
  id: string | undefined;
89
89
  } ? T extends {
90
90
  src: TSrc;
91
- } ? xstate407.ConditionalRequired<[options?: ({
91
+ } ? xstate1352.ConditionalRequired<[options?: ({
92
92
  id?: T["id"] | undefined;
93
93
  systemId?: string;
94
- input?: xstate407.InputFrom<T["logic"]> | undefined;
94
+ input?: xstate1352.InputFrom<T["logic"]> | undefined;
95
95
  syncSnapshot?: boolean;
96
- } & { [K in xstate407.RequiredActorOptions<T>]: unknown }) | undefined], xstate407.IsNotNever<xstate407.RequiredActorOptions<T>>> : never : never : never) | ({
96
+ } & { [K in xstate1352.RequiredActorOptions<T>]: unknown }) | undefined], xstate1352.IsNotNever<xstate1352.RequiredActorOptions<T>>> : never : never : never) | ({
97
97
  src: "initCamera";
98
- logic: xstate407.PromiseActorLogic<MediaStream, void, xstate407.EventObject>;
98
+ logic: xstate1352.PromiseActorLogic<MediaStream, void, xstate1352.EventObject>;
99
99
  id: string | undefined;
100
100
  } extends infer T_1 ? T_1 extends {
101
101
  src: "initCamera";
102
- logic: xstate407.PromiseActorLogic<MediaStream, void, xstate407.EventObject>;
102
+ logic: xstate1352.PromiseActorLogic<MediaStream, void, xstate1352.EventObject>;
103
103
  id: string | undefined;
104
104
  } ? T_1 extends {
105
105
  src: TSrc;
106
- } ? xstate407.ConditionalRequired<[options?: ({
106
+ } ? xstate1352.ConditionalRequired<[options?: ({
107
107
  id?: T_1["id"] | undefined;
108
108
  systemId?: string;
109
- input?: xstate407.InputFrom<T_1["logic"]> | undefined;
109
+ input?: xstate1352.InputFrom<T_1["logic"]> | undefined;
110
110
  syncSnapshot?: boolean;
111
- } & { [K_1 in xstate407.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate407.IsNotNever<xstate407.RequiredActorOptions<T_1>>> : never : never : never)): xstate407.ActorRefFromLogic<xstate407.GetConcreteByKey<xstate407.Values<{
111
+ } & { [K_1 in xstate1352.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate1352.IsNotNever<xstate1352.RequiredActorOptions<T_1>>> : never : never : never)): xstate1352.ActorRefFromLogic<xstate1352.GetConcreteByKey<xstate1352.Values<{
112
112
  uploadDocument: {
113
113
  src: "uploadDocument";
114
- logic: xstate407.PromiseActorLogic<void, {
114
+ logic: xstate1352.PromiseActorLogic<void, {
115
115
  imageBase64: string;
116
116
  documentType: string;
117
117
  onProgress: (progress: number) => void;
118
- }, xstate407.EventObject>;
118
+ }, xstate1352.EventObject>;
119
119
  id: string | undefined;
120
120
  };
121
121
  initCamera: {
122
122
  src: "initCamera";
123
- logic: xstate407.PromiseActorLogic<MediaStream, void, xstate407.EventObject>;
123
+ logic: xstate1352.PromiseActorLogic<MediaStream, void, xstate1352.EventObject>;
124
124
  id: string | undefined;
125
125
  };
126
126
  }>, "src", TSrc>["logic"]>;
127
- <TLogic extends xstate407.AnyActorLogic>(src: TLogic, ...[options]: xstate407.ConditionalRequired<[options?: ({
127
+ <TLogic extends xstate1352.AnyActorLogic>(src: TLogic, ...[options]: xstate1352.ConditionalRequired<[options?: ({
128
128
  id?: never;
129
129
  systemId?: string;
130
- input?: xstate407.InputFrom<TLogic> | undefined;
130
+ input?: xstate1352.InputFrom<TLogic> | undefined;
131
131
  syncSnapshot?: boolean;
132
- } & { [K in xstate407.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate407.IsNotNever<xstate407.RequiredLogicInput<TLogic>>>): xstate407.ActorRefFromLogic<TLogic>;
132
+ } & { [K in xstate1352.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate1352.IsNotNever<xstate1352.RequiredLogicInput<TLogic>>>): xstate1352.ActorRefFromLogic<TLogic>;
133
133
  };
134
134
  input: DocumentUploadInput;
135
- self: xstate407.ActorRef<xstate407.MachineSnapshot<DocumentUploadContext, {
135
+ self: xstate1352.ActorRef<xstate1352.MachineSnapshot<DocumentUploadContext, {
136
136
  type: "START";
137
137
  } | {
138
138
  type: "CAPTURE";
@@ -144,7 +144,7 @@ declare const documentUploadMachine: xstate407.StateMachine<DocumentUploadContex
144
144
  type: "RETRY";
145
145
  } | {
146
146
  type: "CLOSE";
147
- }, Record<string, xstate407.AnyActorRef | undefined>, xstate407.StateValue, string, unknown, any, any>, {
147
+ }, Record<string, xstate1352.AnyActorRef | undefined>, xstate1352.StateValue, string, unknown, any, any>, {
148
148
  type: "START";
149
149
  } | {
150
150
  type: "CAPTURE";
@@ -156,7 +156,7 @@ declare const documentUploadMachine: xstate407.StateMachine<DocumentUploadContex
156
156
  type: "RETRY";
157
157
  } | {
158
158
  type: "CLOSE";
159
- }, xstate407.AnyEventObject>;
159
+ }, xstate1352.AnyEventObject>;
160
160
  }) => {
161
161
  config: DocumentUploadConfig;
162
162
  stream: undefined;
@@ -226,7 +226,7 @@ declare const documentUploadMachine: xstate407.StateMachine<DocumentUploadContex
226
226
  } | {
227
227
  type: "CLOSE";
228
228
  };
229
- self: xstate407.ActorRef<xstate407.MachineSnapshot<DocumentUploadContext, {
229
+ self: xstate1352.ActorRef<xstate1352.MachineSnapshot<DocumentUploadContext, {
230
230
  type: "START";
231
231
  } | {
232
232
  type: "CAPTURE";
@@ -238,7 +238,7 @@ declare const documentUploadMachine: xstate407.StateMachine<DocumentUploadContex
238
238
  type: "RETRY";
239
239
  } | {
240
240
  type: "CLOSE";
241
- }, Record<string, xstate407.AnyActorRef>, xstate407.StateValue, string, unknown, any, any>, {
241
+ }, Record<string, xstate1352.AnyActorRef>, xstate1352.StateValue, string, unknown, any, any>, {
242
242
  type: "START";
243
243
  } | {
244
244
  type: "CAPTURE";
@@ -250,7 +250,7 @@ declare const documentUploadMachine: xstate407.StateMachine<DocumentUploadContex
250
250
  type: "RETRY";
251
251
  } | {
252
252
  type: "CLOSE";
253
- }, xstate407.AnyEventObject>;
253
+ }, xstate1352.AnyEventObject>;
254
254
  }) => {
255
255
  imageBase64: string;
256
256
  documentType: string;
package/dist/ekyb.esm.js CHANGED
@@ -5,15 +5,15 @@ import "./endpoints-BPHddOTi.esm.js";
5
5
  import "./stats-AwLva7-C.esm.js";
6
6
  import "./IpifyProvider-BQKB2PR-.esm.js";
7
7
  import "./browserSimulation-CHpyEI-W.esm.js";
8
- import "./sessionInitializer-BysWktHr.esm.js";
8
+ import "./sessionInitializer-Be88b4WX.esm.js";
9
9
  import "./platform-D871crJL.esm.js";
10
10
  import "./getBrowser-CMJJeBF8.esm.js";
11
11
  import { c as createManager, s as createActor } from "./xstate.esm-CWoFJOio.esm.js";
12
12
  import "./apiError-76Dulrw9.esm.js";
13
- import { a as SUPPORTED_COUNTRIES, i as DEV_ONLY_COUNTRIES, n as toEkybConfig, o as isSupportedCountry, r as ALL_COUNTRIES, t as ekybMachine } from "./ekybStateMachine-D4Me2DKL.esm.js";
13
+ import { a as SUPPORTED_COUNTRIES, i as DEV_ONLY_COUNTRIES, n as toEkybConfig, o as isSupportedCountry, r as ALL_COUNTRIES, t as ekybMachine } from "./ekybStateMachine-C0DLJplY.esm.js";
14
14
  import "./addressSearch-DPmseXCM.esm.js";
15
15
  import "./session-Ds1d84mn.esm.js";
16
- import "./flowServices-CTe60_Yc.esm.js";
16
+ import "./flowServices-DhaF-fP3.esm.js";
17
17
 
18
18
  //#region src/modules/ekyb/ekybActor.ts
19
19
  /**
@@ -2,7 +2,7 @@ import { t as api } from "./api-YxPMtty2.esm.js";
2
2
  import { t as endpoints } from "./endpoints-BPHddOTi.esm.js";
3
3
  import { a as fromPromise, r as assign, t as setup } from "./xstate.esm-CWoFJOio.esm.js";
4
4
  import { a as getPostalCodeMaxLength, c as STREET_LEVEL_REQUIRED_ERROR, d as usStateOptions, i as getPostalCodeErrorKey, l as fillFromSuggestion, n as FIXED_DIGIT_POSTAL_CODE_LENGTH, o as validatePostalCode, r as formatPostalCode, s as DYNAMIC_REQUIRED_KEY, t as debounceSearchActor, u as getStreetLevelErrorForSuggestion } from "./addressSearch-DPmseXCM.esm.js";
5
- import { t as getFlow } from "./flowServices-CTe60_Yc.esm.js";
5
+ import { t as getFlow } from "./flowServices-DhaF-fP3.esm.js";
6
6
 
7
7
  //#region src/modules/ekyb/ekybConstants.ts
8
8
  const UBO_INPUT_LIMIT = 8;
@@ -1,4 +1,4 @@
1
1
  import "./Manager-Dh6pC-6V.js";
2
2
  import "./Actor-Ds20AUDY.js";
3
- import { a as AE_CONSENT_KEYS, c as ConsentKey, d as ElectronicSignatureVariant, f as QE_CONSENT_KEYS, g as getDefaultConsentChecks, h as getConsentKeys, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, o as AeConsentKey, p as QeConsentKey, r as createElectronicSignatureManager, s as ConsentChecks, t as ElectronicSignatureManager, u as ElectronicSignatureDocument } from "./index-TXXaG7tA.js";
3
+ import { a as AE_CONSENT_KEYS, c as ConsentKey, d as ElectronicSignatureVariant, f as QE_CONSENT_KEYS, g as getDefaultConsentChecks, h as getConsentKeys, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, o as AeConsentKey, p as QeConsentKey, r as createElectronicSignatureManager, s as ConsentChecks, t as ElectronicSignatureManager, u as ElectronicSignatureDocument } from "./index-B1ijI7RD.js";
4
4
  export { AE_CONSENT_KEYS, AeConsentKey, ConsentChecks, ConsentKey, ElectronicSignatureConfig, ElectronicSignatureDocument, ElectronicSignatureManager, ElectronicSignatureState, ElectronicSignatureVariant, QE_CONSENT_KEYS, QeConsentKey, areAllConsented, createElectronicSignatureManager, electronicSignatureMachine, getConsentKeys, getDefaultConsentChecks };