@incodetech/core 0.0.0-dev-20260508-6c63ac8 → 0.0.0-dev-20260508-a05aa65

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.
@@ -1,6 +1,6 @@
1
1
  import { t as Manager } from "./Manager-D9pehGyp.js";
2
2
  import "./Actor-YjWTo26u.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-BrbW6oKs.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-CorEGzgE.js";
4
4
 
5
5
  //#region src/modules/ae-signature/index.d.ts
6
6
 
package/dist/consent.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { t as Manager } from "./Manager-D9pehGyp.js";
2
2
  import "./Actor-YjWTo26u.js";
3
- import * as xstate213 from "xstate";
3
+ import * as xstate24 from "xstate";
4
4
 
5
5
  //#region src/modules/consent/types.d.ts
6
6
  type ConsentConfig = {
@@ -36,7 +36,7 @@ type ConsentContext = {
36
36
  type ConsentInput = {
37
37
  config: ConsentConfig;
38
38
  };
39
- declare const consentMachine: xstate213.StateMachine<ConsentContext, {
39
+ declare const consentMachine: xstate24.StateMachine<ConsentContext, {
40
40
  type: "LOAD";
41
41
  } | {
42
42
  type: "TOGGLE_CHECKBOX";
@@ -48,53 +48,53 @@ declare const consentMachine: xstate213.StateMachine<ConsentContext, {
48
48
  } | {
49
49
  type: "RESET";
50
50
  }, {
51
- [x: string]: xstate213.ActorRefFromLogic<xstate213.PromiseActorLogic<FetchCombinedConsentResponse, {
51
+ [x: string]: xstate24.ActorRefFromLogic<xstate24.PromiseActorLogic<FetchCombinedConsentResponse, {
52
52
  consentId: string;
53
- }, xstate213.EventObject>> | xstate213.ActorRefFromLogic<xstate213.PromiseActorLogic<void, {
53
+ }, xstate24.EventObject>> | xstate24.ActorRefFromLogic<xstate24.PromiseActorLogic<void, {
54
54
  languageConsentId: string;
55
55
  checkboxes: ConsentCheckbox[];
56
- }, xstate213.EventObject>> | undefined;
57
- }, xstate213.Values<{
56
+ }, xstate24.EventObject>> | undefined;
57
+ }, xstate24.Values<{
58
58
  fetchConsent: {
59
59
  src: "fetchConsent";
60
- logic: xstate213.PromiseActorLogic<FetchCombinedConsentResponse, {
60
+ logic: xstate24.PromiseActorLogic<FetchCombinedConsentResponse, {
61
61
  consentId: string;
62
- }, xstate213.EventObject>;
62
+ }, xstate24.EventObject>;
63
63
  id: string | undefined;
64
64
  };
65
65
  submitConsent: {
66
66
  src: "submitConsent";
67
- logic: xstate213.PromiseActorLogic<void, {
67
+ logic: xstate24.PromiseActorLogic<void, {
68
68
  languageConsentId: string;
69
69
  checkboxes: ConsentCheckbox[];
70
- }, xstate213.EventObject>;
70
+ }, xstate24.EventObject>;
71
71
  id: string | undefined;
72
72
  };
73
- }>, xstate213.Values<{
73
+ }>, xstate24.Values<{
74
74
  setError: {
75
75
  type: "setError";
76
- params: xstate213.NonReducibleUnknown;
76
+ params: xstate24.NonReducibleUnknown;
77
77
  };
78
78
  clearError: {
79
79
  type: "clearError";
80
- params: xstate213.NonReducibleUnknown;
81
- };
82
- resetContext: {
83
- type: "resetContext";
84
- params: xstate213.NonReducibleUnknown;
80
+ params: xstate24.NonReducibleUnknown;
85
81
  };
86
82
  setConsentData: {
87
83
  type: "setConsentData";
88
- params: xstate213.NonReducibleUnknown;
84
+ params: xstate24.NonReducibleUnknown;
89
85
  };
90
86
  toggleCheckbox: {
91
87
  type: "toggleCheckbox";
92
- params: xstate213.NonReducibleUnknown;
88
+ params: xstate24.NonReducibleUnknown;
89
+ };
90
+ resetContext: {
91
+ type: "resetContext";
92
+ params: xstate24.NonReducibleUnknown;
93
93
  };
94
94
  }>, {
95
95
  type: "canSubmit";
96
96
  params: unknown;
97
- }, never, "error" | "idle" | "finished" | "loading" | "display" | "submitting", string, ConsentInput, xstate213.NonReducibleUnknown, xstate213.EventObject, xstate213.MetaObject, {
97
+ }, never, "error" | "idle" | "finished" | "loading" | "submitting" | "display", string, ConsentInput, xstate24.NonReducibleUnknown, xstate24.EventObject, xstate24.MetaObject, {
98
98
  readonly id: "consent";
99
99
  readonly initial: "idle";
100
100
  readonly context: ({
@@ -103,70 +103,70 @@ declare const consentMachine: xstate213.StateMachine<ConsentContext, {
103
103
  spawn: {
104
104
  <TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
105
105
  src: "fetchConsent";
106
- logic: xstate213.PromiseActorLogic<FetchCombinedConsentResponse, {
106
+ logic: xstate24.PromiseActorLogic<FetchCombinedConsentResponse, {
107
107
  consentId: string;
108
- }, xstate213.EventObject>;
108
+ }, xstate24.EventObject>;
109
109
  id: string | undefined;
110
110
  } extends infer T ? T extends {
111
111
  src: "fetchConsent";
112
- logic: xstate213.PromiseActorLogic<FetchCombinedConsentResponse, {
112
+ logic: xstate24.PromiseActorLogic<FetchCombinedConsentResponse, {
113
113
  consentId: string;
114
- }, xstate213.EventObject>;
114
+ }, xstate24.EventObject>;
115
115
  id: string | undefined;
116
116
  } ? T extends {
117
117
  src: TSrc;
118
- } ? xstate213.ConditionalRequired<[options?: ({
118
+ } ? xstate24.ConditionalRequired<[options?: ({
119
119
  id?: T["id"] | undefined;
120
120
  systemId?: string;
121
- input?: xstate213.InputFrom<T["logic"]> | undefined;
121
+ input?: xstate24.InputFrom<T["logic"]> | undefined;
122
122
  syncSnapshot?: boolean;
123
- } & { [K in xstate213.RequiredActorOptions<T>]: unknown }) | undefined], xstate213.IsNotNever<xstate213.RequiredActorOptions<T>>> : never : never : never) | ({
123
+ } & { [K in xstate24.RequiredActorOptions<T>]: unknown }) | undefined], xstate24.IsNotNever<xstate24.RequiredActorOptions<T>>> : never : never : never) | ({
124
124
  src: "submitConsent";
125
- logic: xstate213.PromiseActorLogic<void, {
125
+ logic: xstate24.PromiseActorLogic<void, {
126
126
  languageConsentId: string;
127
127
  checkboxes: ConsentCheckbox[];
128
- }, xstate213.EventObject>;
128
+ }, xstate24.EventObject>;
129
129
  id: string | undefined;
130
130
  } extends infer T_1 ? T_1 extends {
131
131
  src: "submitConsent";
132
- logic: xstate213.PromiseActorLogic<void, {
132
+ logic: xstate24.PromiseActorLogic<void, {
133
133
  languageConsentId: string;
134
134
  checkboxes: ConsentCheckbox[];
135
- }, xstate213.EventObject>;
135
+ }, xstate24.EventObject>;
136
136
  id: string | undefined;
137
137
  } ? T_1 extends {
138
138
  src: TSrc;
139
- } ? xstate213.ConditionalRequired<[options?: ({
139
+ } ? xstate24.ConditionalRequired<[options?: ({
140
140
  id?: T_1["id"] | undefined;
141
141
  systemId?: string;
142
- input?: xstate213.InputFrom<T_1["logic"]> | undefined;
142
+ input?: xstate24.InputFrom<T_1["logic"]> | undefined;
143
143
  syncSnapshot?: boolean;
144
- } & { [K_1 in xstate213.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate213.IsNotNever<xstate213.RequiredActorOptions<T_1>>> : never : never : never)): xstate213.ActorRefFromLogic<xstate213.GetConcreteByKey<xstate213.Values<{
144
+ } & { [K_1 in xstate24.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate24.IsNotNever<xstate24.RequiredActorOptions<T_1>>> : never : never : never)): xstate24.ActorRefFromLogic<xstate24.GetConcreteByKey<xstate24.Values<{
145
145
  fetchConsent: {
146
146
  src: "fetchConsent";
147
- logic: xstate213.PromiseActorLogic<FetchCombinedConsentResponse, {
147
+ logic: xstate24.PromiseActorLogic<FetchCombinedConsentResponse, {
148
148
  consentId: string;
149
- }, xstate213.EventObject>;
149
+ }, xstate24.EventObject>;
150
150
  id: string | undefined;
151
151
  };
152
152
  submitConsent: {
153
153
  src: "submitConsent";
154
- logic: xstate213.PromiseActorLogic<void, {
154
+ logic: xstate24.PromiseActorLogic<void, {
155
155
  languageConsentId: string;
156
156
  checkboxes: ConsentCheckbox[];
157
- }, xstate213.EventObject>;
157
+ }, xstate24.EventObject>;
158
158
  id: string | undefined;
159
159
  };
160
160
  }>, "src", TSrc>["logic"]>;
161
- <TLogic extends xstate213.AnyActorLogic>(src: TLogic, ...[options]: xstate213.ConditionalRequired<[options?: ({
161
+ <TLogic extends xstate24.AnyActorLogic>(src: TLogic, ...[options]: xstate24.ConditionalRequired<[options?: ({
162
162
  id?: never;
163
163
  systemId?: string;
164
- input?: xstate213.InputFrom<TLogic> | undefined;
164
+ input?: xstate24.InputFrom<TLogic> | undefined;
165
165
  syncSnapshot?: boolean;
166
- } & { [K in xstate213.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate213.IsNotNever<xstate213.RequiredLogicInput<TLogic>>>): xstate213.ActorRefFromLogic<TLogic>;
166
+ } & { [K in xstate24.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate24.IsNotNever<xstate24.RequiredLogicInput<TLogic>>>): xstate24.ActorRefFromLogic<TLogic>;
167
167
  };
168
168
  input: ConsentInput;
169
- self: xstate213.ActorRef<xstate213.MachineSnapshot<ConsentContext, {
169
+ self: xstate24.ActorRef<xstate24.MachineSnapshot<ConsentContext, {
170
170
  type: "LOAD";
171
171
  } | {
172
172
  type: "TOGGLE_CHECKBOX";
@@ -177,7 +177,7 @@ declare const consentMachine: xstate213.StateMachine<ConsentContext, {
177
177
  type: "RETRY";
178
178
  } | {
179
179
  type: "RESET";
180
- }, Record<string, xstate213.AnyActorRef | undefined>, xstate213.StateValue, string, unknown, any, any>, {
180
+ }, Record<string, xstate24.AnyActorRef | undefined>, xstate24.StateValue, string, unknown, any, any>, {
181
181
  type: "LOAD";
182
182
  } | {
183
183
  type: "TOGGLE_CHECKBOX";
@@ -188,7 +188,7 @@ declare const consentMachine: xstate213.StateMachine<ConsentContext, {
188
188
  type: "RETRY";
189
189
  } | {
190
190
  type: "RESET";
191
- }, xstate213.AnyEventObject>;
191
+ }, xstate24.AnyEventObject>;
192
192
  }) => {
193
193
  config: ConsentConfig;
194
194
  title: string;
@@ -226,7 +226,7 @@ declare const consentMachine: xstate213.StateMachine<ConsentContext, {
226
226
  } | {
227
227
  type: "RESET";
228
228
  };
229
- self: xstate213.ActorRef<xstate213.MachineSnapshot<ConsentContext, {
229
+ self: xstate24.ActorRef<xstate24.MachineSnapshot<ConsentContext, {
230
230
  type: "LOAD";
231
231
  } | {
232
232
  type: "TOGGLE_CHECKBOX";
@@ -237,7 +237,7 @@ declare const consentMachine: xstate213.StateMachine<ConsentContext, {
237
237
  type: "RETRY";
238
238
  } | {
239
239
  type: "RESET";
240
- }, Record<string, xstate213.AnyActorRef>, xstate213.StateValue, string, unknown, any, any>, {
240
+ }, Record<string, xstate24.AnyActorRef>, xstate24.StateValue, string, unknown, any, any>, {
241
241
  type: "LOAD";
242
242
  } | {
243
243
  type: "TOGGLE_CHECKBOX";
@@ -248,7 +248,7 @@ declare const consentMachine: xstate213.StateMachine<ConsentContext, {
248
248
  type: "RETRY";
249
249
  } | {
250
250
  type: "RESET";
251
- }, xstate213.AnyEventObject>;
251
+ }, xstate24.AnyEventObject>;
252
252
  }) => {
253
253
  consentId: string;
254
254
  };
@@ -297,7 +297,7 @@ declare const consentMachine: xstate213.StateMachine<ConsentContext, {
297
297
  } | {
298
298
  type: "RESET";
299
299
  };
300
- self: xstate213.ActorRef<xstate213.MachineSnapshot<ConsentContext, {
300
+ self: xstate24.ActorRef<xstate24.MachineSnapshot<ConsentContext, {
301
301
  type: "LOAD";
302
302
  } | {
303
303
  type: "TOGGLE_CHECKBOX";
@@ -308,7 +308,7 @@ declare const consentMachine: xstate213.StateMachine<ConsentContext, {
308
308
  type: "RETRY";
309
309
  } | {
310
310
  type: "RESET";
311
- }, Record<string, xstate213.AnyActorRef>, xstate213.StateValue, string, unknown, any, any>, {
311
+ }, Record<string, xstate24.AnyActorRef>, xstate24.StateValue, string, unknown, any, any>, {
312
312
  type: "LOAD";
313
313
  } | {
314
314
  type: "TOGGLE_CHECKBOX";
@@ -319,7 +319,7 @@ declare const consentMachine: xstate213.StateMachine<ConsentContext, {
319
319
  type: "RETRY";
320
320
  } | {
321
321
  type: "RESET";
322
- }, xstate213.AnyEventObject>;
322
+ }, xstate24.AnyEventObject>;
323
323
  }) => {
324
324
  languageConsentId: string;
325
325
  checkboxes: ConsentCheckbox[];
package/dist/cpf-ocr.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { t as Manager } from "./Manager-D9pehGyp.js";
2
- import * as xstate281 from "xstate";
2
+ import * as xstate0 from "xstate";
3
3
 
4
4
  //#region src/modules/cpf-ocr/cpfOcrManager.d.ts
5
5
  type CpfOcrIdleState = {
@@ -47,7 +47,7 @@ type CpfOcrContext = {
47
47
  error: string | undefined;
48
48
  };
49
49
  type CpfOcrInput = Record<string, never>;
50
- declare const cpfOcrMachine: xstate281.StateMachine<CpfOcrContext, {
50
+ declare const cpfOcrMachine: xstate0.StateMachine<CpfOcrContext, {
51
51
  type: "LOAD";
52
52
  } | {
53
53
  type: "SET_CPF";
@@ -57,43 +57,43 @@ declare const cpfOcrMachine: xstate281.StateMachine<CpfOcrContext, {
57
57
  } | {
58
58
  type: "RETRY";
59
59
  }, {
60
- [x: string]: xstate281.ActorRefFromLogic<xstate281.PromiseActorLogic<CpfOcrDataResponse, void, xstate281.EventObject>> | xstate281.ActorRefFromLogic<xstate281.PromiseActorLogic<CpfOcrUpdateResponse, {
60
+ [x: string]: xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<CpfOcrDataResponse, void, xstate0.EventObject>> | xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<CpfOcrUpdateResponse, {
61
61
  cpf: string;
62
- }, xstate281.EventObject>> | undefined;
63
- }, xstate281.Values<{
62
+ }, xstate0.EventObject>> | undefined;
63
+ }, xstate0.Values<{
64
64
  fetchCpfOcrData: {
65
65
  src: "fetchCpfOcrData";
66
- logic: xstate281.PromiseActorLogic<CpfOcrDataResponse, void, xstate281.EventObject>;
66
+ logic: xstate0.PromiseActorLogic<CpfOcrDataResponse, void, xstate0.EventObject>;
67
67
  id: string | undefined;
68
68
  };
69
69
  submitCpfOcr: {
70
70
  src: "submitCpfOcr";
71
- logic: xstate281.PromiseActorLogic<CpfOcrUpdateResponse, {
71
+ logic: xstate0.PromiseActorLogic<CpfOcrUpdateResponse, {
72
72
  cpf: string;
73
- }, xstate281.EventObject>;
73
+ }, xstate0.EventObject>;
74
74
  id: string | undefined;
75
75
  };
76
- }>, xstate281.Values<{
77
- setError: {
78
- type: "setError";
79
- params: xstate281.NonReducibleUnknown;
80
- };
81
- clearError: {
82
- type: "clearError";
83
- params: xstate281.NonReducibleUnknown;
84
- };
76
+ }>, xstate0.Values<{
85
77
  setPrefill: {
86
78
  type: "setPrefill";
87
- params: xstate281.NonReducibleUnknown;
79
+ params: xstate0.NonReducibleUnknown;
88
80
  };
89
81
  setCpf: {
90
82
  type: "setCpf";
91
- params: xstate281.NonReducibleUnknown;
83
+ params: xstate0.NonReducibleUnknown;
84
+ };
85
+ setError: {
86
+ type: "setError";
87
+ params: xstate0.NonReducibleUnknown;
88
+ };
89
+ clearError: {
90
+ type: "clearError";
91
+ params: xstate0.NonReducibleUnknown;
92
92
  };
93
93
  }>, {
94
94
  type: "isValid";
95
95
  params: unknown;
96
- }, never, "error" | "idle" | "finished" | "loading" | "submitting" | "inputting", string, CpfOcrInput, xstate281.NonReducibleUnknown, xstate281.EventObject, xstate281.MetaObject, {
96
+ }, never, "error" | "idle" | "finished" | "loading" | "inputting" | "submitting", string, CpfOcrInput, xstate0.NonReducibleUnknown, xstate0.EventObject, xstate0.MetaObject, {
97
97
  readonly id: "cpfOcr";
98
98
  readonly initial: "idle";
99
99
  readonly context: {
@@ -148,7 +148,7 @@ declare const cpfOcrMachine: xstate281.StateMachine<CpfOcrContext, {
148
148
  } | {
149
149
  type: "RETRY";
150
150
  };
151
- self: xstate281.ActorRef<xstate281.MachineSnapshot<CpfOcrContext, {
151
+ self: xstate0.ActorRef<xstate0.MachineSnapshot<CpfOcrContext, {
152
152
  type: "LOAD";
153
153
  } | {
154
154
  type: "SET_CPF";
@@ -157,7 +157,7 @@ declare const cpfOcrMachine: xstate281.StateMachine<CpfOcrContext, {
157
157
  type: "SUBMIT";
158
158
  } | {
159
159
  type: "RETRY";
160
- }, Record<string, xstate281.AnyActorRef>, xstate281.StateValue, string, unknown, any, any>, {
160
+ }, Record<string, xstate0.AnyActorRef>, xstate0.StateValue, string, unknown, any, any>, {
161
161
  type: "LOAD";
162
162
  } | {
163
163
  type: "SET_CPF";
@@ -166,7 +166,7 @@ declare const cpfOcrMachine: xstate281.StateMachine<CpfOcrContext, {
166
166
  type: "SUBMIT";
167
167
  } | {
168
168
  type: "RETRY";
169
- }, xstate281.AnyEventObject>;
169
+ }, xstate0.AnyEventObject>;
170
170
  }) => {
171
171
  cpf: string;
172
172
  };
@@ -2,10 +2,10 @@ import { t as Manager } from "./Manager-D9pehGyp.js";
2
2
  import "./Actor-YjWTo26u.js";
3
3
  import "./camera-B6UAKpM1.js";
4
4
  import { n as DocumentUploadContext, r as DocumentUploadInput, t as DocumentUploadConfig } from "./types-DJSt3Ovt.js";
5
- import * as xstate1103 from "xstate";
5
+ import * as xstate160 from "xstate";
6
6
 
7
7
  //#region src/modules/document-upload/documentUploadStateMachine.d.ts
8
- declare const documentUploadMachine: xstate1103.StateMachine<DocumentUploadContext, {
8
+ declare const documentUploadMachine: xstate160.StateMachine<DocumentUploadContext, {
9
9
  type: "START";
10
10
  } | {
11
11
  type: "CAPTURE";
@@ -18,52 +18,52 @@ declare const documentUploadMachine: xstate1103.StateMachine<DocumentUploadConte
18
18
  } | {
19
19
  type: "CLOSE";
20
20
  }, {
21
- [x: string]: xstate1103.ActorRefFromLogic<xstate1103.PromiseActorLogic<void, {
21
+ [x: string]: xstate160.ActorRefFromLogic<xstate160.PromiseActorLogic<void, {
22
22
  imageBase64: string;
23
23
  documentType: string;
24
24
  onProgress: (progress: number) => void;
25
- }, xstate1103.EventObject>> | xstate1103.ActorRefFromLogic<xstate1103.PromiseActorLogic<MediaStream, void, xstate1103.EventObject>> | undefined;
26
- }, xstate1103.Values<{
25
+ }, xstate160.EventObject>> | xstate160.ActorRefFromLogic<xstate160.PromiseActorLogic<MediaStream, void, xstate160.EventObject>> | undefined;
26
+ }, xstate160.Values<{
27
27
  uploadDocument: {
28
28
  src: "uploadDocument";
29
- logic: xstate1103.PromiseActorLogic<void, {
29
+ logic: xstate160.PromiseActorLogic<void, {
30
30
  imageBase64: string;
31
31
  documentType: string;
32
32
  onProgress: (progress: number) => void;
33
- }, xstate1103.EventObject>;
33
+ }, xstate160.EventObject>;
34
34
  id: string | undefined;
35
35
  };
36
36
  initCamera: {
37
37
  src: "initCamera";
38
- logic: xstate1103.PromiseActorLogic<MediaStream, void, xstate1103.EventObject>;
38
+ logic: xstate160.PromiseActorLogic<MediaStream, void, xstate160.EventObject>;
39
39
  id: string | undefined;
40
40
  };
41
- }>, xstate1103.Values<{
41
+ }>, xstate160.Values<{
42
42
  setError: {
43
43
  type: "setError";
44
- params: xstate1103.NonReducibleUnknown;
44
+ params: xstate160.NonReducibleUnknown;
45
45
  };
46
46
  clearError: {
47
47
  type: "clearError";
48
- params: xstate1103.NonReducibleUnknown;
48
+ params: xstate160.NonReducibleUnknown;
49
49
  };
50
50
  setStream: {
51
51
  type: "setStream";
52
- params: xstate1103.NonReducibleUnknown;
52
+ params: xstate160.NonReducibleUnknown;
53
53
  };
54
54
  setImageAndClearError: {
55
55
  type: "setImageAndClearError";
56
- params: xstate1103.NonReducibleUnknown;
56
+ params: xstate160.NonReducibleUnknown;
57
57
  };
58
58
  setProgress: {
59
59
  type: "setProgress";
60
- params: xstate1103.NonReducibleUnknown;
60
+ params: xstate160.NonReducibleUnknown;
61
61
  };
62
62
  stopStream: {
63
63
  type: "stopStream";
64
- params: xstate1103.NonReducibleUnknown;
64
+ params: xstate160.NonReducibleUnknown;
65
65
  };
66
- }>, never, never, "error" | "idle" | "uploading" | "closed" | "finished" | "initCamera" | "capturing", string, DocumentUploadInput, xstate1103.NonReducibleUnknown, xstate1103.EventObject, xstate1103.MetaObject, {
66
+ }>, never, never, "error" | "idle" | "uploading" | "closed" | "finished" | "initCamera" | "capturing", string, DocumentUploadInput, xstate160.NonReducibleUnknown, xstate160.EventObject, xstate160.MetaObject, {
67
67
  readonly id: "documentUpload";
68
68
  readonly initial: "idle";
69
69
  readonly context: ({
@@ -72,67 +72,67 @@ declare const documentUploadMachine: xstate1103.StateMachine<DocumentUploadConte
72
72
  spawn: {
73
73
  <TSrc extends "uploadDocument" | "initCamera">(logic: TSrc, ...[options]: ({
74
74
  src: "uploadDocument";
75
- logic: xstate1103.PromiseActorLogic<void, {
75
+ logic: xstate160.PromiseActorLogic<void, {
76
76
  imageBase64: string;
77
77
  documentType: string;
78
78
  onProgress: (progress: number) => void;
79
- }, xstate1103.EventObject>;
79
+ }, xstate160.EventObject>;
80
80
  id: string | undefined;
81
81
  } extends infer T ? T extends {
82
82
  src: "uploadDocument";
83
- logic: xstate1103.PromiseActorLogic<void, {
83
+ logic: xstate160.PromiseActorLogic<void, {
84
84
  imageBase64: string;
85
85
  documentType: string;
86
86
  onProgress: (progress: number) => void;
87
- }, xstate1103.EventObject>;
87
+ }, xstate160.EventObject>;
88
88
  id: string | undefined;
89
89
  } ? T extends {
90
90
  src: TSrc;
91
- } ? xstate1103.ConditionalRequired<[options?: ({
91
+ } ? xstate160.ConditionalRequired<[options?: ({
92
92
  id?: T["id"] | undefined;
93
93
  systemId?: string;
94
- input?: xstate1103.InputFrom<T["logic"]> | undefined;
94
+ input?: xstate160.InputFrom<T["logic"]> | undefined;
95
95
  syncSnapshot?: boolean;
96
- } & { [K in xstate1103.RequiredActorOptions<T>]: unknown }) | undefined], xstate1103.IsNotNever<xstate1103.RequiredActorOptions<T>>> : never : never : never) | ({
96
+ } & { [K in xstate160.RequiredActorOptions<T>]: unknown }) | undefined], xstate160.IsNotNever<xstate160.RequiredActorOptions<T>>> : never : never : never) | ({
97
97
  src: "initCamera";
98
- logic: xstate1103.PromiseActorLogic<MediaStream, void, xstate1103.EventObject>;
98
+ logic: xstate160.PromiseActorLogic<MediaStream, void, xstate160.EventObject>;
99
99
  id: string | undefined;
100
100
  } extends infer T_1 ? T_1 extends {
101
101
  src: "initCamera";
102
- logic: xstate1103.PromiseActorLogic<MediaStream, void, xstate1103.EventObject>;
102
+ logic: xstate160.PromiseActorLogic<MediaStream, void, xstate160.EventObject>;
103
103
  id: string | undefined;
104
104
  } ? T_1 extends {
105
105
  src: TSrc;
106
- } ? xstate1103.ConditionalRequired<[options?: ({
106
+ } ? xstate160.ConditionalRequired<[options?: ({
107
107
  id?: T_1["id"] | undefined;
108
108
  systemId?: string;
109
- input?: xstate1103.InputFrom<T_1["logic"]> | undefined;
109
+ input?: xstate160.InputFrom<T_1["logic"]> | undefined;
110
110
  syncSnapshot?: boolean;
111
- } & { [K_1 in xstate1103.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate1103.IsNotNever<xstate1103.RequiredActorOptions<T_1>>> : never : never : never)): xstate1103.ActorRefFromLogic<xstate1103.GetConcreteByKey<xstate1103.Values<{
111
+ } & { [K_1 in xstate160.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate160.IsNotNever<xstate160.RequiredActorOptions<T_1>>> : never : never : never)): xstate160.ActorRefFromLogic<xstate160.GetConcreteByKey<xstate160.Values<{
112
112
  uploadDocument: {
113
113
  src: "uploadDocument";
114
- logic: xstate1103.PromiseActorLogic<void, {
114
+ logic: xstate160.PromiseActorLogic<void, {
115
115
  imageBase64: string;
116
116
  documentType: string;
117
117
  onProgress: (progress: number) => void;
118
- }, xstate1103.EventObject>;
118
+ }, xstate160.EventObject>;
119
119
  id: string | undefined;
120
120
  };
121
121
  initCamera: {
122
122
  src: "initCamera";
123
- logic: xstate1103.PromiseActorLogic<MediaStream, void, xstate1103.EventObject>;
123
+ logic: xstate160.PromiseActorLogic<MediaStream, void, xstate160.EventObject>;
124
124
  id: string | undefined;
125
125
  };
126
126
  }>, "src", TSrc>["logic"]>;
127
- <TLogic extends xstate1103.AnyActorLogic>(src: TLogic, ...[options]: xstate1103.ConditionalRequired<[options?: ({
127
+ <TLogic extends xstate160.AnyActorLogic>(src: TLogic, ...[options]: xstate160.ConditionalRequired<[options?: ({
128
128
  id?: never;
129
129
  systemId?: string;
130
- input?: xstate1103.InputFrom<TLogic> | undefined;
130
+ input?: xstate160.InputFrom<TLogic> | undefined;
131
131
  syncSnapshot?: boolean;
132
- } & { [K in xstate1103.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate1103.IsNotNever<xstate1103.RequiredLogicInput<TLogic>>>): xstate1103.ActorRefFromLogic<TLogic>;
132
+ } & { [K in xstate160.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate160.IsNotNever<xstate160.RequiredLogicInput<TLogic>>>): xstate160.ActorRefFromLogic<TLogic>;
133
133
  };
134
134
  input: DocumentUploadInput;
135
- self: xstate1103.ActorRef<xstate1103.MachineSnapshot<DocumentUploadContext, {
135
+ self: xstate160.ActorRef<xstate160.MachineSnapshot<DocumentUploadContext, {
136
136
  type: "START";
137
137
  } | {
138
138
  type: "CAPTURE";
@@ -144,7 +144,7 @@ declare const documentUploadMachine: xstate1103.StateMachine<DocumentUploadConte
144
144
  type: "RETRY";
145
145
  } | {
146
146
  type: "CLOSE";
147
- }, Record<string, xstate1103.AnyActorRef | undefined>, xstate1103.StateValue, string, unknown, any, any>, {
147
+ }, Record<string, xstate160.AnyActorRef | undefined>, xstate160.StateValue, string, unknown, any, any>, {
148
148
  type: "START";
149
149
  } | {
150
150
  type: "CAPTURE";
@@ -156,7 +156,7 @@ declare const documentUploadMachine: xstate1103.StateMachine<DocumentUploadConte
156
156
  type: "RETRY";
157
157
  } | {
158
158
  type: "CLOSE";
159
- }, xstate1103.AnyEventObject>;
159
+ }, xstate160.AnyEventObject>;
160
160
  }) => {
161
161
  config: DocumentUploadConfig;
162
162
  stream: undefined;
@@ -226,7 +226,7 @@ declare const documentUploadMachine: xstate1103.StateMachine<DocumentUploadConte
226
226
  } | {
227
227
  type: "CLOSE";
228
228
  };
229
- self: xstate1103.ActorRef<xstate1103.MachineSnapshot<DocumentUploadContext, {
229
+ self: xstate160.ActorRef<xstate160.MachineSnapshot<DocumentUploadContext, {
230
230
  type: "START";
231
231
  } | {
232
232
  type: "CAPTURE";
@@ -238,7 +238,7 @@ declare const documentUploadMachine: xstate1103.StateMachine<DocumentUploadConte
238
238
  type: "RETRY";
239
239
  } | {
240
240
  type: "CLOSE";
241
- }, Record<string, xstate1103.AnyActorRef>, xstate1103.StateValue, string, unknown, any, any>, {
241
+ }, Record<string, xstate160.AnyActorRef>, xstate160.StateValue, string, unknown, any, any>, {
242
242
  type: "START";
243
243
  } | {
244
244
  type: "CAPTURE";
@@ -250,7 +250,7 @@ declare const documentUploadMachine: xstate1103.StateMachine<DocumentUploadConte
250
250
  type: "RETRY";
251
251
  } | {
252
252
  type: "CLOSE";
253
- }, xstate1103.AnyEventObject>;
253
+ }, xstate160.AnyEventObject>;
254
254
  }) => {
255
255
  imageBase64: string;
256
256
  documentType: string;
package/dist/ekyb.esm.js CHANGED
@@ -2,13 +2,13 @@ import "./BrowserTimerProvider-BZGH3sYJ.esm.js";
2
2
  import "./api-eqRXuVG-.esm.js";
3
3
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Bt1azl2B.esm.js";
4
4
  import "./endpoints-B3V1U9Dg.esm.js";
5
- import "./session-Djlo0Z2k.esm.js";
5
+ import "./session-f758tX1l.esm.js";
6
6
  import "./IpifyProvider-ByL6JYxg.esm.js";
7
7
  import "./browserSimulation-CAH-V_iE.esm.js";
8
8
  import { a as createActor, o as createManager } from "./xstate.esm-C19_S3_9.esm.js";
9
- import { a as SUPPORTED_COUNTRIES, i as DEV_ONLY_COUNTRIES, n as computeDisplayErrors, o as isSupportedCountry, r as ALL_COUNTRIES, t as ekybMachine } from "./ekybStateMachine-BGQxIW7H.esm.js";
9
+ import { a as SUPPORTED_COUNTRIES, i as DEV_ONLY_COUNTRIES, n as computeDisplayErrors, o as isSupportedCountry, r as ALL_COUNTRIES, t as ekybMachine } from "./ekybStateMachine-FXI54YYY.esm.js";
10
10
  import "./addressSearch-DGVL5bWp.esm.js";
11
- import "./flowServices-DBEKDGvK.esm.js";
11
+ import "./flowServices-B41pWry3.esm.js";
12
12
 
13
13
  //#region src/modules/ekyb/ekybActor.ts
14
14
  /**
@@ -2,7 +2,7 @@ import { t as api } from "./api-eqRXuVG-.esm.js";
2
2
  import { t as endpoints } from "./endpoints-B3V1U9Dg.esm.js";
3
3
  import { i as fromPromise, n as assign, t as setup } from "./xstate.esm-C19_S3_9.esm.js";
4
4
  import { a as POSTAL_CODE_FORMAT_ERROR_KEYS, c as getPostalCodeMaxLength, i as FIXED_DIGIT_POSTAL_CODE_LENGTH, l as validatePostalCode, n as fillFromSuggestion, o as formatPostalCode, r as DYNAMIC_REQUIRED_KEY, s as getPostalCodeErrorKey, t as debounceSearchActor, u as usStateOptions } from "./addressSearch-DGVL5bWp.esm.js";
5
- import { t as getFlow } from "./flowServices-DBEKDGvK.esm.js";
5
+ import { t as getFlow } from "./flowServices-B41pWry3.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-D9pehGyp.js";
2
2
  import "./Actor-YjWTo26u.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-BrbW6oKs.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-CorEGzgE.js";
4
4
  export { AE_CONSENT_KEYS, AeConsentKey, ConsentChecks, ConsentKey, ElectronicSignatureConfig, ElectronicSignatureDocument, ElectronicSignatureManager, ElectronicSignatureState, ElectronicSignatureVariant, QE_CONSENT_KEYS, QeConsentKey, areAllConsented, createElectronicSignatureManager, electronicSignatureMachine, getConsentKeys, getDefaultConsentChecks };
@@ -4,7 +4,7 @@ import "./BrowserTimerProvider-BZGH3sYJ.esm.js";
4
4
  import "./api-eqRXuVG-.esm.js";
5
5
  import "./events-Bt1azl2B.esm.js";
6
6
  import "./endpoints-B3V1U9Dg.esm.js";
7
- import { a as FingerprintProvider, o as getDeviceFingerprintInfo, t as getDisableIpify } from "./session-Djlo0Z2k.esm.js";
7
+ import { a as FingerprintProvider, o as getDeviceFingerprintInfo, t as getDisableIpify } from "./session-f758tX1l.esm.js";
8
8
  import { t as IpifyProvider } from "./IpifyProvider-ByL6JYxg.esm.js";
9
9
  import "./browserSimulation-CAH-V_iE.esm.js";
10
10
  import { a as createActor, i as fromPromise } from "./xstate.esm-C19_S3_9.esm.js";
@@ -28,8 +28,8 @@ import "./emailStateMachine-CfL8um8y.esm.js";
28
28
  import { n as createEmailManagerFromActor } from "./emailManager-Dcdv3r8N.esm.js";
29
29
  import "./selfieStateMachine-DCwYz6V1.esm.js";
30
30
  import { n as createSelfieManagerFromActor } from "./selfieManager-CNus5KCH.esm.js";
31
- import "./idCaptureStateMachine-BYzUuRhm.esm.js";
32
- import { n as createIdCaptureManagerFromActor } from "./idCaptureManager-DJ07F0jB.esm.js";
31
+ import "./idCaptureStateMachine-CjhFzer8.esm.js";
32
+ import { n as createIdCaptureManagerFromActor } from "./idCaptureManager-6AfsPFbT.esm.js";
33
33
  import "./phoneStateMachine-B0KqPCut.esm.js";
34
34
  import { n as createPhoneManagerFromActor } from "./phoneManager-CBupL3Zp.esm.js";
35
35
 
package/dist/flow.d.ts CHANGED
@@ -7,7 +7,7 @@ import { i as FlowModuleConfig, n as Flow, r as FlowModule } from "./types-BA181
7
7
  import { n as GetFinishStatusFn, t as FinishStatus } from "./flowCompletionService-C376JZwA.js";
8
8
  import { o as FlowEventSubscribable } from "./index-CmFkidgy.js";
9
9
  import { t as ModuleRegistry } from "./types-WKAQ7Ai4.js";
10
- import * as xstate632 from "xstate";
10
+ import * as xstate865 from "xstate";
11
11
 
12
12
  //#region src/modules/flow/flowUtils.d.ts
13
13
  type NormalizeFlowModulesOptions = {
@@ -55,7 +55,7 @@ type GetFlow = (signal: AbortSignal, options?: GetFlowOptions) => Promise<Flow>;
55
55
  declare const getFlow: GetFlow;
56
56
  //#endregion
57
57
  //#region src/modules/flow/noOpFlowModuleMachine.d.ts
58
- declare const noOpFlowModuleMachine: xstate632.StateMachine<xstate632.MachineContext, xstate632.AnyEventObject, {}, never, never, never, never, "finished", string, xstate632.NonReducibleUnknown, xstate632.NonReducibleUnknown, xstate632.EventObject, xstate632.MetaObject, {
58
+ declare const noOpFlowModuleMachine: xstate865.StateMachine<xstate865.MachineContext, xstate865.AnyEventObject, {}, never, never, never, never, "finished", string, xstate865.NonReducibleUnknown, xstate865.NonReducibleUnknown, xstate865.EventObject, xstate865.MetaObject, {
59
59
  readonly id: "noOpFlowModule";
60
60
  readonly initial: "finished";
61
61
  readonly states: {