@incodetech/core 0.0.0-dev-20260402-728ce7f → 0.0.0-dev-20260403-10f7d94

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.
package/dist/consent.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import "./Actor-phIcsUhv.js";
2
2
  import { t as Manager } from "./Manager-BndLda4_.js";
3
- import * as xstate96 from "xstate";
3
+ import * as xstate228 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: xstate96.StateMachine<ConsentContext, {
39
+ declare const consentMachine: xstate228.StateMachine<ConsentContext, {
40
40
  type: "LOAD";
41
41
  } | {
42
42
  type: "TOGGLE_CHECKBOX";
@@ -48,53 +48,53 @@ declare const consentMachine: xstate96.StateMachine<ConsentContext, {
48
48
  } | {
49
49
  type: "RESET";
50
50
  }, {
51
- [x: string]: xstate96.ActorRefFromLogic<xstate96.PromiseActorLogic<FetchCombinedConsentResponse, {
51
+ [x: string]: xstate228.ActorRefFromLogic<xstate228.PromiseActorLogic<FetchCombinedConsentResponse, {
52
52
  consentId: string;
53
- }, xstate96.EventObject>> | xstate96.ActorRefFromLogic<xstate96.PromiseActorLogic<void, {
53
+ }, xstate228.EventObject>> | xstate228.ActorRefFromLogic<xstate228.PromiseActorLogic<void, {
54
54
  languageConsentId: string;
55
55
  checkboxes: ConsentCheckbox[];
56
- }, xstate96.EventObject>> | undefined;
57
- }, xstate96.Values<{
56
+ }, xstate228.EventObject>> | undefined;
57
+ }, xstate228.Values<{
58
58
  fetchConsent: {
59
59
  src: "fetchConsent";
60
- logic: xstate96.PromiseActorLogic<FetchCombinedConsentResponse, {
60
+ logic: xstate228.PromiseActorLogic<FetchCombinedConsentResponse, {
61
61
  consentId: string;
62
- }, xstate96.EventObject>;
62
+ }, xstate228.EventObject>;
63
63
  id: string | undefined;
64
64
  };
65
65
  submitConsent: {
66
66
  src: "submitConsent";
67
- logic: xstate96.PromiseActorLogic<void, {
67
+ logic: xstate228.PromiseActorLogic<void, {
68
68
  languageConsentId: string;
69
69
  checkboxes: ConsentCheckbox[];
70
- }, xstate96.EventObject>;
70
+ }, xstate228.EventObject>;
71
71
  id: string | undefined;
72
72
  };
73
- }>, xstate96.Values<{
73
+ }>, xstate228.Values<{
74
74
  clearError: {
75
75
  type: "clearError";
76
- params: xstate96.NonReducibleUnknown;
77
- };
78
- setConsentData: {
79
- type: "setConsentData";
80
- params: xstate96.NonReducibleUnknown;
81
- };
82
- toggleCheckbox: {
83
- type: "toggleCheckbox";
84
- params: xstate96.NonReducibleUnknown;
76
+ params: xstate228.NonReducibleUnknown;
85
77
  };
86
78
  setError: {
87
79
  type: "setError";
88
- params: xstate96.NonReducibleUnknown;
80
+ params: xstate228.NonReducibleUnknown;
89
81
  };
90
82
  resetContext: {
91
83
  type: "resetContext";
92
- params: xstate96.NonReducibleUnknown;
84
+ params: xstate228.NonReducibleUnknown;
85
+ };
86
+ setConsentData: {
87
+ type: "setConsentData";
88
+ params: xstate228.NonReducibleUnknown;
89
+ };
90
+ toggleCheckbox: {
91
+ type: "toggleCheckbox";
92
+ params: xstate228.NonReducibleUnknown;
93
93
  };
94
94
  }>, {
95
95
  type: "canSubmit";
96
96
  params: unknown;
97
- }, never, "error" | "finished" | "idle" | "loading" | "display" | "submitting", string, ConsentInput, xstate96.NonReducibleUnknown, xstate96.EventObject, xstate96.MetaObject, {
97
+ }, never, "error" | "finished" | "idle" | "loading" | "display" | "submitting", string, ConsentInput, xstate228.NonReducibleUnknown, xstate228.EventObject, xstate228.MetaObject, {
98
98
  readonly id: "consent";
99
99
  readonly initial: "idle";
100
100
  readonly context: ({
@@ -103,70 +103,70 @@ declare const consentMachine: xstate96.StateMachine<ConsentContext, {
103
103
  spawn: {
104
104
  <TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
105
105
  src: "fetchConsent";
106
- logic: xstate96.PromiseActorLogic<FetchCombinedConsentResponse, {
106
+ logic: xstate228.PromiseActorLogic<FetchCombinedConsentResponse, {
107
107
  consentId: string;
108
- }, xstate96.EventObject>;
108
+ }, xstate228.EventObject>;
109
109
  id: string | undefined;
110
110
  } extends infer T ? T extends {
111
111
  src: "fetchConsent";
112
- logic: xstate96.PromiseActorLogic<FetchCombinedConsentResponse, {
112
+ logic: xstate228.PromiseActorLogic<FetchCombinedConsentResponse, {
113
113
  consentId: string;
114
- }, xstate96.EventObject>;
114
+ }, xstate228.EventObject>;
115
115
  id: string | undefined;
116
116
  } ? T extends {
117
117
  src: TSrc;
118
- } ? xstate96.ConditionalRequired<[options?: ({
118
+ } ? xstate228.ConditionalRequired<[options?: ({
119
119
  id?: T["id"] | undefined;
120
120
  systemId?: string;
121
- input?: xstate96.InputFrom<T["logic"]> | undefined;
121
+ input?: xstate228.InputFrom<T["logic"]> | undefined;
122
122
  syncSnapshot?: boolean;
123
- } & { [K in xstate96.RequiredActorOptions<T>]: unknown }) | undefined], xstate96.IsNotNever<xstate96.RequiredActorOptions<T>>> : never : never : never) | ({
123
+ } & { [K in xstate228.RequiredActorOptions<T>]: unknown }) | undefined], xstate228.IsNotNever<xstate228.RequiredActorOptions<T>>> : never : never : never) | ({
124
124
  src: "submitConsent";
125
- logic: xstate96.PromiseActorLogic<void, {
125
+ logic: xstate228.PromiseActorLogic<void, {
126
126
  languageConsentId: string;
127
127
  checkboxes: ConsentCheckbox[];
128
- }, xstate96.EventObject>;
128
+ }, xstate228.EventObject>;
129
129
  id: string | undefined;
130
130
  } extends infer T_1 ? T_1 extends {
131
131
  src: "submitConsent";
132
- logic: xstate96.PromiseActorLogic<void, {
132
+ logic: xstate228.PromiseActorLogic<void, {
133
133
  languageConsentId: string;
134
134
  checkboxes: ConsentCheckbox[];
135
- }, xstate96.EventObject>;
135
+ }, xstate228.EventObject>;
136
136
  id: string | undefined;
137
137
  } ? T_1 extends {
138
138
  src: TSrc;
139
- } ? xstate96.ConditionalRequired<[options?: ({
139
+ } ? xstate228.ConditionalRequired<[options?: ({
140
140
  id?: T_1["id"] | undefined;
141
141
  systemId?: string;
142
- input?: xstate96.InputFrom<T_1["logic"]> | undefined;
142
+ input?: xstate228.InputFrom<T_1["logic"]> | undefined;
143
143
  syncSnapshot?: boolean;
144
- } & { [K_1 in xstate96.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate96.IsNotNever<xstate96.RequiredActorOptions<T_1>>> : never : never : never)): xstate96.ActorRefFromLogic<xstate96.GetConcreteByKey<xstate96.Values<{
144
+ } & { [K_1 in xstate228.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate228.IsNotNever<xstate228.RequiredActorOptions<T_1>>> : never : never : never)): xstate228.ActorRefFromLogic<xstate228.GetConcreteByKey<xstate228.Values<{
145
145
  fetchConsent: {
146
146
  src: "fetchConsent";
147
- logic: xstate96.PromiseActorLogic<FetchCombinedConsentResponse, {
147
+ logic: xstate228.PromiseActorLogic<FetchCombinedConsentResponse, {
148
148
  consentId: string;
149
- }, xstate96.EventObject>;
149
+ }, xstate228.EventObject>;
150
150
  id: string | undefined;
151
151
  };
152
152
  submitConsent: {
153
153
  src: "submitConsent";
154
- logic: xstate96.PromiseActorLogic<void, {
154
+ logic: xstate228.PromiseActorLogic<void, {
155
155
  languageConsentId: string;
156
156
  checkboxes: ConsentCheckbox[];
157
- }, xstate96.EventObject>;
157
+ }, xstate228.EventObject>;
158
158
  id: string | undefined;
159
159
  };
160
160
  }>, "src", TSrc>["logic"]>;
161
- <TLogic extends xstate96.AnyActorLogic>(src: TLogic, ...[options]: xstate96.ConditionalRequired<[options?: ({
161
+ <TLogic extends xstate228.AnyActorLogic>(src: TLogic, ...[options]: xstate228.ConditionalRequired<[options?: ({
162
162
  id?: never;
163
163
  systemId?: string;
164
- input?: xstate96.InputFrom<TLogic> | undefined;
164
+ input?: xstate228.InputFrom<TLogic> | undefined;
165
165
  syncSnapshot?: boolean;
166
- } & { [K in xstate96.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate96.IsNotNever<xstate96.RequiredLogicInput<TLogic>>>): xstate96.ActorRefFromLogic<TLogic>;
166
+ } & { [K in xstate228.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate228.IsNotNever<xstate228.RequiredLogicInput<TLogic>>>): xstate228.ActorRefFromLogic<TLogic>;
167
167
  };
168
168
  input: ConsentInput;
169
- self: xstate96.ActorRef<xstate96.MachineSnapshot<ConsentContext, {
169
+ self: xstate228.ActorRef<xstate228.MachineSnapshot<ConsentContext, {
170
170
  type: "LOAD";
171
171
  } | {
172
172
  type: "TOGGLE_CHECKBOX";
@@ -177,7 +177,7 @@ declare const consentMachine: xstate96.StateMachine<ConsentContext, {
177
177
  type: "RETRY";
178
178
  } | {
179
179
  type: "RESET";
180
- }, Record<string, xstate96.AnyActorRef | undefined>, xstate96.StateValue, string, unknown, any, any>, {
180
+ }, Record<string, xstate228.AnyActorRef | undefined>, xstate228.StateValue, string, unknown, any, any>, {
181
181
  type: "LOAD";
182
182
  } | {
183
183
  type: "TOGGLE_CHECKBOX";
@@ -188,7 +188,7 @@ declare const consentMachine: xstate96.StateMachine<ConsentContext, {
188
188
  type: "RETRY";
189
189
  } | {
190
190
  type: "RESET";
191
- }, xstate96.AnyEventObject>;
191
+ }, xstate228.AnyEventObject>;
192
192
  }) => {
193
193
  config: ConsentConfig;
194
194
  title: string;
@@ -226,7 +226,7 @@ declare const consentMachine: xstate96.StateMachine<ConsentContext, {
226
226
  } | {
227
227
  type: "RESET";
228
228
  };
229
- self: xstate96.ActorRef<xstate96.MachineSnapshot<ConsentContext, {
229
+ self: xstate228.ActorRef<xstate228.MachineSnapshot<ConsentContext, {
230
230
  type: "LOAD";
231
231
  } | {
232
232
  type: "TOGGLE_CHECKBOX";
@@ -237,7 +237,7 @@ declare const consentMachine: xstate96.StateMachine<ConsentContext, {
237
237
  type: "RETRY";
238
238
  } | {
239
239
  type: "RESET";
240
- }, Record<string, xstate96.AnyActorRef>, xstate96.StateValue, string, unknown, any, any>, {
240
+ }, Record<string, xstate228.AnyActorRef>, xstate228.StateValue, string, unknown, any, any>, {
241
241
  type: "LOAD";
242
242
  } | {
243
243
  type: "TOGGLE_CHECKBOX";
@@ -248,7 +248,7 @@ declare const consentMachine: xstate96.StateMachine<ConsentContext, {
248
248
  type: "RETRY";
249
249
  } | {
250
250
  type: "RESET";
251
- }, xstate96.AnyEventObject>;
251
+ }, xstate228.AnyEventObject>;
252
252
  }) => {
253
253
  consentId: string;
254
254
  };
@@ -297,7 +297,7 @@ declare const consentMachine: xstate96.StateMachine<ConsentContext, {
297
297
  } | {
298
298
  type: "RESET";
299
299
  };
300
- self: xstate96.ActorRef<xstate96.MachineSnapshot<ConsentContext, {
300
+ self: xstate228.ActorRef<xstate228.MachineSnapshot<ConsentContext, {
301
301
  type: "LOAD";
302
302
  } | {
303
303
  type: "TOGGLE_CHECKBOX";
@@ -308,7 +308,7 @@ declare const consentMachine: xstate96.StateMachine<ConsentContext, {
308
308
  type: "RETRY";
309
309
  } | {
310
310
  type: "RESET";
311
- }, Record<string, xstate96.AnyActorRef>, xstate96.StateValue, string, unknown, any, any>, {
311
+ }, Record<string, xstate228.AnyActorRef>, xstate228.StateValue, string, unknown, any, any>, {
312
312
  type: "LOAD";
313
313
  } | {
314
314
  type: "TOGGLE_CHECKBOX";
@@ -319,7 +319,7 @@ declare const consentMachine: xstate96.StateMachine<ConsentContext, {
319
319
  type: "RETRY";
320
320
  } | {
321
321
  type: "RESET";
322
- }, xstate96.AnyEventObject>;
322
+ }, xstate228.AnyEventObject>;
323
323
  }) => {
324
324
  languageConsentId: string;
325
325
  checkboxes: ConsentCheckbox[];
@@ -2,10 +2,10 @@ import "./Actor-phIcsUhv.js";
2
2
  import "./camera-Dv2WEhGe.js";
3
3
  import { n as DocumentUploadContext, r as DocumentUploadInput, t as DocumentUploadConfig } from "./types-BWGxcjiZ.js";
4
4
  import { t as Manager } from "./Manager-BndLda4_.js";
5
- import * as xstate232 from "xstate";
5
+ import * as xstate164 from "xstate";
6
6
 
7
7
  //#region src/modules/document-upload/documentUploadStateMachine.d.ts
8
- declare const documentUploadMachine: xstate232.StateMachine<DocumentUploadContext, {
8
+ declare const documentUploadMachine: xstate164.StateMachine<DocumentUploadContext, {
9
9
  type: "START";
10
10
  } | {
11
11
  type: "CAPTURE";
@@ -18,52 +18,52 @@ declare const documentUploadMachine: xstate232.StateMachine<DocumentUploadContex
18
18
  } | {
19
19
  type: "CLOSE";
20
20
  }, {
21
- [x: string]: xstate232.ActorRefFromLogic<xstate232.PromiseActorLogic<MediaStream, void, xstate232.EventObject>> | xstate232.ActorRefFromLogic<xstate232.PromiseActorLogic<void, {
21
+ [x: string]: xstate164.ActorRefFromLogic<xstate164.PromiseActorLogic<MediaStream, void, xstate164.EventObject>> | xstate164.ActorRefFromLogic<xstate164.PromiseActorLogic<void, {
22
22
  imageBase64: string;
23
23
  documentType: string;
24
24
  onProgress: (progress: number) => void;
25
- }, xstate232.EventObject>> | undefined;
26
- }, xstate232.Values<{
25
+ }, xstate164.EventObject>> | undefined;
26
+ }, xstate164.Values<{
27
27
  initCamera: {
28
28
  src: "initCamera";
29
- logic: xstate232.PromiseActorLogic<MediaStream, void, xstate232.EventObject>;
29
+ logic: xstate164.PromiseActorLogic<MediaStream, void, xstate164.EventObject>;
30
30
  id: string | undefined;
31
31
  };
32
32
  uploadDocument: {
33
33
  src: "uploadDocument";
34
- logic: xstate232.PromiseActorLogic<void, {
34
+ logic: xstate164.PromiseActorLogic<void, {
35
35
  imageBase64: string;
36
36
  documentType: string;
37
37
  onProgress: (progress: number) => void;
38
- }, xstate232.EventObject>;
38
+ }, xstate164.EventObject>;
39
39
  id: string | undefined;
40
40
  };
41
- }>, xstate232.Values<{
41
+ }>, xstate164.Values<{
42
42
  setStream: {
43
43
  type: "setStream";
44
- params: xstate232.NonReducibleUnknown;
44
+ params: xstate164.NonReducibleUnknown;
45
45
  };
46
46
  setProgress: {
47
47
  type: "setProgress";
48
- params: xstate232.NonReducibleUnknown;
48
+ params: xstate164.NonReducibleUnknown;
49
49
  };
50
50
  clearError: {
51
51
  type: "clearError";
52
- params: xstate232.NonReducibleUnknown;
52
+ params: xstate164.NonReducibleUnknown;
53
53
  };
54
54
  stopStream: {
55
55
  type: "stopStream";
56
- params: xstate232.NonReducibleUnknown;
56
+ params: xstate164.NonReducibleUnknown;
57
57
  };
58
58
  setError: {
59
59
  type: "setError";
60
- params: xstate232.NonReducibleUnknown;
60
+ params: xstate164.NonReducibleUnknown;
61
61
  };
62
62
  setImageAndClearError: {
63
63
  type: "setImageAndClearError";
64
- params: xstate232.NonReducibleUnknown;
64
+ params: xstate164.NonReducibleUnknown;
65
65
  };
66
- }>, never, never, "error" | "initCamera" | "capturing" | "finished" | "closed" | "uploading" | "idle", string, DocumentUploadInput, xstate232.NonReducibleUnknown, xstate232.EventObject, xstate232.MetaObject, {
66
+ }>, never, never, "error" | "initCamera" | "capturing" | "finished" | "closed" | "uploading" | "idle", string, DocumentUploadInput, xstate164.NonReducibleUnknown, xstate164.EventObject, xstate164.MetaObject, {
67
67
  readonly id: "documentUpload";
68
68
  readonly initial: "idle";
69
69
  readonly context: ({
@@ -72,67 +72,67 @@ declare const documentUploadMachine: xstate232.StateMachine<DocumentUploadContex
72
72
  spawn: {
73
73
  <TSrc extends "initCamera" | "uploadDocument">(logic: TSrc, ...[options]: ({
74
74
  src: "initCamera";
75
- logic: xstate232.PromiseActorLogic<MediaStream, void, xstate232.EventObject>;
75
+ logic: xstate164.PromiseActorLogic<MediaStream, void, xstate164.EventObject>;
76
76
  id: string | undefined;
77
77
  } extends infer T ? T extends {
78
78
  src: "initCamera";
79
- logic: xstate232.PromiseActorLogic<MediaStream, void, xstate232.EventObject>;
79
+ logic: xstate164.PromiseActorLogic<MediaStream, void, xstate164.EventObject>;
80
80
  id: string | undefined;
81
81
  } ? T extends {
82
82
  src: TSrc;
83
- } ? xstate232.ConditionalRequired<[options?: ({
83
+ } ? xstate164.ConditionalRequired<[options?: ({
84
84
  id?: T["id"] | undefined;
85
85
  systemId?: string;
86
- input?: xstate232.InputFrom<T["logic"]> | undefined;
86
+ input?: xstate164.InputFrom<T["logic"]> | undefined;
87
87
  syncSnapshot?: boolean;
88
- } & { [K in xstate232.RequiredActorOptions<T>]: unknown }) | undefined], xstate232.IsNotNever<xstate232.RequiredActorOptions<T>>> : never : never : never) | ({
88
+ } & { [K in xstate164.RequiredActorOptions<T>]: unknown }) | undefined], xstate164.IsNotNever<xstate164.RequiredActorOptions<T>>> : never : never : never) | ({
89
89
  src: "uploadDocument";
90
- logic: xstate232.PromiseActorLogic<void, {
90
+ logic: xstate164.PromiseActorLogic<void, {
91
91
  imageBase64: string;
92
92
  documentType: string;
93
93
  onProgress: (progress: number) => void;
94
- }, xstate232.EventObject>;
94
+ }, xstate164.EventObject>;
95
95
  id: string | undefined;
96
96
  } extends infer T_1 ? T_1 extends {
97
97
  src: "uploadDocument";
98
- logic: xstate232.PromiseActorLogic<void, {
98
+ logic: xstate164.PromiseActorLogic<void, {
99
99
  imageBase64: string;
100
100
  documentType: string;
101
101
  onProgress: (progress: number) => void;
102
- }, xstate232.EventObject>;
102
+ }, xstate164.EventObject>;
103
103
  id: string | undefined;
104
104
  } ? T_1 extends {
105
105
  src: TSrc;
106
- } ? xstate232.ConditionalRequired<[options?: ({
106
+ } ? xstate164.ConditionalRequired<[options?: ({
107
107
  id?: T_1["id"] | undefined;
108
108
  systemId?: string;
109
- input?: xstate232.InputFrom<T_1["logic"]> | undefined;
109
+ input?: xstate164.InputFrom<T_1["logic"]> | undefined;
110
110
  syncSnapshot?: boolean;
111
- } & { [K_1 in xstate232.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate232.IsNotNever<xstate232.RequiredActorOptions<T_1>>> : never : never : never)): xstate232.ActorRefFromLogic<xstate232.GetConcreteByKey<xstate232.Values<{
111
+ } & { [K_1 in xstate164.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate164.IsNotNever<xstate164.RequiredActorOptions<T_1>>> : never : never : never)): xstate164.ActorRefFromLogic<xstate164.GetConcreteByKey<xstate164.Values<{
112
112
  initCamera: {
113
113
  src: "initCamera";
114
- logic: xstate232.PromiseActorLogic<MediaStream, void, xstate232.EventObject>;
114
+ logic: xstate164.PromiseActorLogic<MediaStream, void, xstate164.EventObject>;
115
115
  id: string | undefined;
116
116
  };
117
117
  uploadDocument: {
118
118
  src: "uploadDocument";
119
- logic: xstate232.PromiseActorLogic<void, {
119
+ logic: xstate164.PromiseActorLogic<void, {
120
120
  imageBase64: string;
121
121
  documentType: string;
122
122
  onProgress: (progress: number) => void;
123
- }, xstate232.EventObject>;
123
+ }, xstate164.EventObject>;
124
124
  id: string | undefined;
125
125
  };
126
126
  }>, "src", TSrc>["logic"]>;
127
- <TLogic extends xstate232.AnyActorLogic>(src: TLogic, ...[options]: xstate232.ConditionalRequired<[options?: ({
127
+ <TLogic extends xstate164.AnyActorLogic>(src: TLogic, ...[options]: xstate164.ConditionalRequired<[options?: ({
128
128
  id?: never;
129
129
  systemId?: string;
130
- input?: xstate232.InputFrom<TLogic> | undefined;
130
+ input?: xstate164.InputFrom<TLogic> | undefined;
131
131
  syncSnapshot?: boolean;
132
- } & { [K in xstate232.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate232.IsNotNever<xstate232.RequiredLogicInput<TLogic>>>): xstate232.ActorRefFromLogic<TLogic>;
132
+ } & { [K in xstate164.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate164.IsNotNever<xstate164.RequiredLogicInput<TLogic>>>): xstate164.ActorRefFromLogic<TLogic>;
133
133
  };
134
134
  input: DocumentUploadInput;
135
- self: xstate232.ActorRef<xstate232.MachineSnapshot<DocumentUploadContext, {
135
+ self: xstate164.ActorRef<xstate164.MachineSnapshot<DocumentUploadContext, {
136
136
  type: "START";
137
137
  } | {
138
138
  type: "CAPTURE";
@@ -144,7 +144,7 @@ declare const documentUploadMachine: xstate232.StateMachine<DocumentUploadContex
144
144
  type: "RETRY";
145
145
  } | {
146
146
  type: "CLOSE";
147
- }, Record<string, xstate232.AnyActorRef | undefined>, xstate232.StateValue, string, unknown, any, any>, {
147
+ }, Record<string, xstate164.AnyActorRef | undefined>, xstate164.StateValue, string, unknown, any, any>, {
148
148
  type: "START";
149
149
  } | {
150
150
  type: "CAPTURE";
@@ -156,7 +156,7 @@ declare const documentUploadMachine: xstate232.StateMachine<DocumentUploadContex
156
156
  type: "RETRY";
157
157
  } | {
158
158
  type: "CLOSE";
159
- }, xstate232.AnyEventObject>;
159
+ }, xstate164.AnyEventObject>;
160
160
  }) => {
161
161
  config: DocumentUploadConfig;
162
162
  stream: undefined;
@@ -226,7 +226,7 @@ declare const documentUploadMachine: xstate232.StateMachine<DocumentUploadContex
226
226
  } | {
227
227
  type: "CLOSE";
228
228
  };
229
- self: xstate232.ActorRef<xstate232.MachineSnapshot<DocumentUploadContext, {
229
+ self: xstate164.ActorRef<xstate164.MachineSnapshot<DocumentUploadContext, {
230
230
  type: "START";
231
231
  } | {
232
232
  type: "CAPTURE";
@@ -238,7 +238,7 @@ declare const documentUploadMachine: xstate232.StateMachine<DocumentUploadContex
238
238
  type: "RETRY";
239
239
  } | {
240
240
  type: "CLOSE";
241
- }, Record<string, xstate232.AnyActorRef>, xstate232.StateValue, string, unknown, any, any>, {
241
+ }, Record<string, xstate164.AnyActorRef>, xstate164.StateValue, string, unknown, any, any>, {
242
242
  type: "START";
243
243
  } | {
244
244
  type: "CAPTURE";
@@ -250,7 +250,7 @@ declare const documentUploadMachine: xstate232.StateMachine<DocumentUploadContex
250
250
  type: "RETRY";
251
251
  } | {
252
252
  type: "CLOSE";
253
- }, xstate232.AnyEventObject>;
253
+ }, xstate164.AnyEventObject>;
254
254
  }) => {
255
255
  imageBase64: string;
256
256
  documentType: string;
package/dist/email.esm.js CHANGED
@@ -2,6 +2,6 @@ import "./api-3fZO5bmj.esm.js";
2
2
  import "./Manager-9L3Rmc6X.esm.js";
3
3
  import "./endpoints-DEXxYYFi.esm.js";
4
4
  import "./BrowserTimerProvider-CRhCvln7.esm.js";
5
- import { r as emailMachine, t as createEmailManager } from "./emailManager-JowzcrAP.esm.js";
5
+ import { r as emailMachine, t as createEmailManager } from "./emailManager-DDioJ_AQ.esm.js";
6
6
 
7
7
  export { createEmailManager, emailMachine };
@@ -119,7 +119,7 @@ const emailMachine = setup({
119
119
  hasPrefill: ({ context }) => context.config.prefill,
120
120
  hasOtpVerification: ({ context }) => context.config.otpVerification,
121
121
  isValidEmail: ({ context }) => context.isValid,
122
- hasAttemptsRemaining: ({ context }) => context.attemptsRemaining > 0,
122
+ hasAttemptsRemaining: ({ context }) => context.attemptsRemaining > 1,
123
123
  canResend: ({ context }) => !context.resendTimerActive
124
124
  }
125
125
  }).createMachine({
@@ -15,9 +15,9 @@ import "./backCameraStream-BJwEXNl4.esm.js";
15
15
  import { t as WasmUtilProvider } from "./WasmUtilProvider-DctESPCy.esm.js";
16
16
  import { t as faceCaptureMachine } from "./faceCaptureSetup-Bq4TPX5D.esm.js";
17
17
  import { n as createAuthenticationManagerFromActor } from "./authenticationManager-xQrUkboA.esm.js";
18
- import { n as createEmailManagerFromActor } from "./emailManager-JowzcrAP.esm.js";
18
+ import { n as createEmailManagerFromActor } from "./emailManager-DDioJ_AQ.esm.js";
19
19
  import { n as createSelfieManagerFromActor } from "./selfieManager-DSEpKb7Q.esm.js";
20
- import { n as createPhoneManagerFromActor } from "./phoneManager-zIENJkK4.esm.js";
20
+ import { n as createPhoneManagerFromActor } from "./phoneManager-DXxuWtoy.esm.js";
21
21
 
22
22
  //#region src/internal/fingerprint/fingerprintApi.ts
23
23
  async function getFingerprint(disableIpify) {
@@ -3,7 +3,7 @@ import "./camera-Dv2WEhGe.js";
3
3
  import "./types-BWGxcjiZ.js";
4
4
  import { i as RegulationTypes } from "./types-BX1ZlbSR.js";
5
5
  import { t as Manager } from "./Manager-BndLda4_.js";
6
- import * as xstate164 from "xstate";
6
+ import * as xstate96 from "xstate";
7
7
 
8
8
  //#region src/modules/mandatory-consent/types.d.ts
9
9
  type MandatoryConsentConfig = {
@@ -30,7 +30,7 @@ type MandatoryConsentContext = {
30
30
  type MandatoryConsentInput = {
31
31
  config: MandatoryConsentConfig;
32
32
  };
33
- declare const mandatoryConsentMachine: xstate164.StateMachine<MandatoryConsentContext, {
33
+ declare const mandatoryConsentMachine: xstate96.StateMachine<MandatoryConsentContext, {
34
34
  type: "LOAD";
35
35
  } | {
36
36
  type: "TOGGLE";
@@ -43,53 +43,53 @@ declare const mandatoryConsentMachine: xstate164.StateMachine<MandatoryConsentCo
43
43
  } | {
44
44
  type: "RESET";
45
45
  }, {
46
- [x: string]: xstate164.ActorRefFromLogic<xstate164.PromiseActorLogic<FetchMandatoryConsentResponse, {
46
+ [x: string]: xstate96.ActorRefFromLogic<xstate96.PromiseActorLogic<FetchMandatoryConsentResponse, {
47
47
  config: MandatoryConsentConfig;
48
- }, xstate164.EventObject>> | xstate164.ActorRefFromLogic<xstate164.PromiseActorLogic<void, {
48
+ }, xstate96.EventObject>> | xstate96.ActorRefFromLogic<xstate96.PromiseActorLogic<void, {
49
49
  consentId: string;
50
50
  isSigned: boolean;
51
- }, xstate164.EventObject>> | undefined;
52
- }, xstate164.Values<{
51
+ }, xstate96.EventObject>> | undefined;
52
+ }, xstate96.Values<{
53
53
  fetchConsent: {
54
54
  src: "fetchConsent";
55
- logic: xstate164.PromiseActorLogic<FetchMandatoryConsentResponse, {
55
+ logic: xstate96.PromiseActorLogic<FetchMandatoryConsentResponse, {
56
56
  config: MandatoryConsentConfig;
57
- }, xstate164.EventObject>;
57
+ }, xstate96.EventObject>;
58
58
  id: string | undefined;
59
59
  };
60
60
  submitConsent: {
61
61
  src: "submitConsent";
62
- logic: xstate164.PromiseActorLogic<void, {
62
+ logic: xstate96.PromiseActorLogic<void, {
63
63
  consentId: string;
64
64
  isSigned: boolean;
65
- }, xstate164.EventObject>;
65
+ }, xstate96.EventObject>;
66
66
  id: string | undefined;
67
67
  };
68
- }>, xstate164.Values<{
68
+ }>, xstate96.Values<{
69
69
  clearError: {
70
70
  type: "clearError";
71
- params: xstate164.NonReducibleUnknown;
72
- };
73
- setError: {
74
- type: "setError";
75
- params: xstate164.NonReducibleUnknown;
76
- };
77
- resetContext: {
78
- type: "resetContext";
79
- params: xstate164.NonReducibleUnknown;
71
+ params: xstate96.NonReducibleUnknown;
80
72
  };
81
73
  setConsent: {
82
74
  type: "setConsent";
83
- params: xstate164.NonReducibleUnknown;
75
+ params: xstate96.NonReducibleUnknown;
84
76
  };
85
77
  toggleSigned: {
86
78
  type: "toggleSigned";
87
- params: xstate164.NonReducibleUnknown;
79
+ params: xstate96.NonReducibleUnknown;
80
+ };
81
+ setError: {
82
+ type: "setError";
83
+ params: xstate96.NonReducibleUnknown;
84
+ };
85
+ resetContext: {
86
+ type: "resetContext";
87
+ params: xstate96.NonReducibleUnknown;
88
88
  };
89
89
  }>, {
90
90
  type: "canSubmit";
91
91
  params: unknown;
92
- }, never, "error" | "finished" | "closed" | "idle" | "loading" | "display" | "submitting", string, MandatoryConsentInput, xstate164.NonReducibleUnknown, xstate164.EventObject, xstate164.MetaObject, {
92
+ }, never, "error" | "finished" | "closed" | "idle" | "loading" | "display" | "submitting", string, MandatoryConsentInput, xstate96.NonReducibleUnknown, xstate96.EventObject, xstate96.MetaObject, {
93
93
  readonly id: "mandatoryConsent";
94
94
  readonly initial: "idle";
95
95
  readonly context: ({
@@ -98,70 +98,70 @@ declare const mandatoryConsentMachine: xstate164.StateMachine<MandatoryConsentCo
98
98
  spawn: {
99
99
  <TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
100
100
  src: "fetchConsent";
101
- logic: xstate164.PromiseActorLogic<FetchMandatoryConsentResponse, {
101
+ logic: xstate96.PromiseActorLogic<FetchMandatoryConsentResponse, {
102
102
  config: MandatoryConsentConfig;
103
- }, xstate164.EventObject>;
103
+ }, xstate96.EventObject>;
104
104
  id: string | undefined;
105
105
  } extends infer T ? T extends {
106
106
  src: "fetchConsent";
107
- logic: xstate164.PromiseActorLogic<FetchMandatoryConsentResponse, {
107
+ logic: xstate96.PromiseActorLogic<FetchMandatoryConsentResponse, {
108
108
  config: MandatoryConsentConfig;
109
- }, xstate164.EventObject>;
109
+ }, xstate96.EventObject>;
110
110
  id: string | undefined;
111
111
  } ? T extends {
112
112
  src: TSrc;
113
- } ? xstate164.ConditionalRequired<[options?: ({
113
+ } ? xstate96.ConditionalRequired<[options?: ({
114
114
  id?: T["id"] | undefined;
115
115
  systemId?: string;
116
- input?: xstate164.InputFrom<T["logic"]> | undefined;
116
+ input?: xstate96.InputFrom<T["logic"]> | undefined;
117
117
  syncSnapshot?: boolean;
118
- } & { [K in xstate164.RequiredActorOptions<T>]: unknown }) | undefined], xstate164.IsNotNever<xstate164.RequiredActorOptions<T>>> : never : never : never) | ({
118
+ } & { [K in xstate96.RequiredActorOptions<T>]: unknown }) | undefined], xstate96.IsNotNever<xstate96.RequiredActorOptions<T>>> : never : never : never) | ({
119
119
  src: "submitConsent";
120
- logic: xstate164.PromiseActorLogic<void, {
120
+ logic: xstate96.PromiseActorLogic<void, {
121
121
  consentId: string;
122
122
  isSigned: boolean;
123
- }, xstate164.EventObject>;
123
+ }, xstate96.EventObject>;
124
124
  id: string | undefined;
125
125
  } extends infer T_1 ? T_1 extends {
126
126
  src: "submitConsent";
127
- logic: xstate164.PromiseActorLogic<void, {
127
+ logic: xstate96.PromiseActorLogic<void, {
128
128
  consentId: string;
129
129
  isSigned: boolean;
130
- }, xstate164.EventObject>;
130
+ }, xstate96.EventObject>;
131
131
  id: string | undefined;
132
132
  } ? T_1 extends {
133
133
  src: TSrc;
134
- } ? xstate164.ConditionalRequired<[options?: ({
134
+ } ? xstate96.ConditionalRequired<[options?: ({
135
135
  id?: T_1["id"] | undefined;
136
136
  systemId?: string;
137
- input?: xstate164.InputFrom<T_1["logic"]> | undefined;
137
+ input?: xstate96.InputFrom<T_1["logic"]> | undefined;
138
138
  syncSnapshot?: boolean;
139
- } & { [K_1 in xstate164.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate164.IsNotNever<xstate164.RequiredActorOptions<T_1>>> : never : never : never)): xstate164.ActorRefFromLogic<xstate164.GetConcreteByKey<xstate164.Values<{
139
+ } & { [K_1 in xstate96.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate96.IsNotNever<xstate96.RequiredActorOptions<T_1>>> : never : never : never)): xstate96.ActorRefFromLogic<xstate96.GetConcreteByKey<xstate96.Values<{
140
140
  fetchConsent: {
141
141
  src: "fetchConsent";
142
- logic: xstate164.PromiseActorLogic<FetchMandatoryConsentResponse, {
142
+ logic: xstate96.PromiseActorLogic<FetchMandatoryConsentResponse, {
143
143
  config: MandatoryConsentConfig;
144
- }, xstate164.EventObject>;
144
+ }, xstate96.EventObject>;
145
145
  id: string | undefined;
146
146
  };
147
147
  submitConsent: {
148
148
  src: "submitConsent";
149
- logic: xstate164.PromiseActorLogic<void, {
149
+ logic: xstate96.PromiseActorLogic<void, {
150
150
  consentId: string;
151
151
  isSigned: boolean;
152
- }, xstate164.EventObject>;
152
+ }, xstate96.EventObject>;
153
153
  id: string | undefined;
154
154
  };
155
155
  }>, "src", TSrc>["logic"]>;
156
- <TLogic extends xstate164.AnyActorLogic>(src: TLogic, ...[options]: xstate164.ConditionalRequired<[options?: ({
156
+ <TLogic extends xstate96.AnyActorLogic>(src: TLogic, ...[options]: xstate96.ConditionalRequired<[options?: ({
157
157
  id?: never;
158
158
  systemId?: string;
159
- input?: xstate164.InputFrom<TLogic> | undefined;
159
+ input?: xstate96.InputFrom<TLogic> | undefined;
160
160
  syncSnapshot?: boolean;
161
- } & { [K in xstate164.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate164.IsNotNever<xstate164.RequiredLogicInput<TLogic>>>): xstate164.ActorRefFromLogic<TLogic>;
161
+ } & { [K in xstate96.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate96.IsNotNever<xstate96.RequiredLogicInput<TLogic>>>): xstate96.ActorRefFromLogic<TLogic>;
162
162
  };
163
163
  input: MandatoryConsentInput;
164
- self: xstate164.ActorRef<xstate164.MachineSnapshot<MandatoryConsentContext, {
164
+ self: xstate96.ActorRef<xstate96.MachineSnapshot<MandatoryConsentContext, {
165
165
  type: "LOAD";
166
166
  } | {
167
167
  type: "TOGGLE";
@@ -173,7 +173,7 @@ declare const mandatoryConsentMachine: xstate164.StateMachine<MandatoryConsentCo
173
173
  type: "RETRY";
174
174
  } | {
175
175
  type: "RESET";
176
- }, Record<string, xstate164.AnyActorRef | undefined>, xstate164.StateValue, string, unknown, any, any>, {
176
+ }, Record<string, xstate96.AnyActorRef | undefined>, xstate96.StateValue, string, unknown, any, any>, {
177
177
  type: "LOAD";
178
178
  } | {
179
179
  type: "TOGGLE";
@@ -185,7 +185,7 @@ declare const mandatoryConsentMachine: xstate164.StateMachine<MandatoryConsentCo
185
185
  type: "RETRY";
186
186
  } | {
187
187
  type: "RESET";
188
- }, xstate164.AnyEventObject>;
188
+ }, xstate96.AnyEventObject>;
189
189
  }) => {
190
190
  config: MandatoryConsentConfig;
191
191
  consent: undefined;
@@ -222,7 +222,7 @@ declare const mandatoryConsentMachine: xstate164.StateMachine<MandatoryConsentCo
222
222
  } | {
223
223
  type: "RESET";
224
224
  };
225
- self: xstate164.ActorRef<xstate164.MachineSnapshot<MandatoryConsentContext, {
225
+ self: xstate96.ActorRef<xstate96.MachineSnapshot<MandatoryConsentContext, {
226
226
  type: "LOAD";
227
227
  } | {
228
228
  type: "TOGGLE";
@@ -234,7 +234,7 @@ declare const mandatoryConsentMachine: xstate164.StateMachine<MandatoryConsentCo
234
234
  type: "RETRY";
235
235
  } | {
236
236
  type: "RESET";
237
- }, Record<string, xstate164.AnyActorRef>, xstate164.StateValue, string, unknown, any, any>, {
237
+ }, Record<string, xstate96.AnyActorRef>, xstate96.StateValue, string, unknown, any, any>, {
238
238
  type: "LOAD";
239
239
  } | {
240
240
  type: "TOGGLE";
@@ -246,7 +246,7 @@ declare const mandatoryConsentMachine: xstate164.StateMachine<MandatoryConsentCo
246
246
  type: "RETRY";
247
247
  } | {
248
248
  type: "RESET";
249
- }, xstate164.AnyEventObject>;
249
+ }, xstate96.AnyEventObject>;
250
250
  }) => {
251
251
  config: MandatoryConsentConfig;
252
252
  };
@@ -299,7 +299,7 @@ declare const mandatoryConsentMachine: xstate164.StateMachine<MandatoryConsentCo
299
299
  } | {
300
300
  type: "RESET";
301
301
  };
302
- self: xstate164.ActorRef<xstate164.MachineSnapshot<MandatoryConsentContext, {
302
+ self: xstate96.ActorRef<xstate96.MachineSnapshot<MandatoryConsentContext, {
303
303
  type: "LOAD";
304
304
  } | {
305
305
  type: "TOGGLE";
@@ -311,7 +311,7 @@ declare const mandatoryConsentMachine: xstate164.StateMachine<MandatoryConsentCo
311
311
  type: "RETRY";
312
312
  } | {
313
313
  type: "RESET";
314
- }, Record<string, xstate164.AnyActorRef>, xstate164.StateValue, string, unknown, any, any>, {
314
+ }, Record<string, xstate96.AnyActorRef>, xstate96.StateValue, string, unknown, any, any>, {
315
315
  type: "LOAD";
316
316
  } | {
317
317
  type: "TOGGLE";
@@ -323,7 +323,7 @@ declare const mandatoryConsentMachine: xstate164.StateMachine<MandatoryConsentCo
323
323
  type: "RETRY";
324
324
  } | {
325
325
  type: "RESET";
326
- }, xstate164.AnyEventObject>;
326
+ }, xstate96.AnyEventObject>;
327
327
  }) => {
328
328
  consentId: string;
329
329
  isSigned: boolean;
package/dist/phone.esm.js CHANGED
@@ -2,6 +2,6 @@ import "./api-3fZO5bmj.esm.js";
2
2
  import "./Manager-9L3Rmc6X.esm.js";
3
3
  import "./endpoints-DEXxYYFi.esm.js";
4
4
  import "./BrowserTimerProvider-CRhCvln7.esm.js";
5
- import { r as phoneMachine, t as createPhoneManager } from "./phoneManager-zIENJkK4.esm.js";
5
+ import { r as phoneMachine, t as createPhoneManager } from "./phoneManager-DXxuWtoy.esm.js";
6
6
 
7
7
  export { createPhoneManager, phoneMachine };
@@ -158,7 +158,7 @@ const phoneMachine = setup({
158
158
  hasPrefill: ({ context }) => context.config.prefill,
159
159
  hasOtpVerification: ({ context }) => context.config.otpVerification,
160
160
  isValidPhone: ({ context }) => context.isValid,
161
- hasAttemptsRemaining: ({ context }) => context.attemptsRemaining > 0,
161
+ hasAttemptsRemaining: ({ context }) => context.attemptsRemaining > 1,
162
162
  canResend: ({ context }) => !context.resendTimerActive
163
163
  }
164
164
  }).createMachine({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/core",
3
- "version": "0.0.0-dev-20260402-728ce7f",
3
+ "version": "0.0.0-dev-20260403-10f7d94",
4
4
  "type": "module",
5
5
  "main": "./dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",
@@ -102,8 +102,8 @@
102
102
  "tsdown": "^0.16.6",
103
103
  "typescript": "^5.9.3",
104
104
  "vitest": "^4.0.13",
105
- "@incodetech/config": "1.0.0",
106
- "@incodetech/infra": "1.0.0"
105
+ "@incodetech/infra": "1.0.0",
106
+ "@incodetech/config": "1.0.0"
107
107
  },
108
108
  "scripts": {
109
109
  "build": "tsdown -c tsdown.config.ts",