@incodetech/core 0.0.0-dev-20260407-4580f1c → 0.0.0-dev-20260407-2c382da

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
@@ -71,14 +71,14 @@ declare const consentMachine: xstate228.StateMachine<ConsentContext, {
71
71
  id: string | undefined;
72
72
  };
73
73
  }>, xstate228.Values<{
74
- clearError: {
75
- type: "clearError";
76
- params: xstate228.NonReducibleUnknown;
77
- };
78
74
  setError: {
79
75
  type: "setError";
80
76
  params: xstate228.NonReducibleUnknown;
81
77
  };
78
+ clearError: {
79
+ type: "clearError";
80
+ params: xstate228.NonReducibleUnknown;
81
+ };
82
82
  resetContext: {
83
83
  type: "resetContext";
84
84
  params: xstate228.NonReducibleUnknown;
@@ -94,7 +94,7 @@ declare const consentMachine: xstate228.StateMachine<ConsentContext, {
94
94
  }>, {
95
95
  type: "canSubmit";
96
96
  params: unknown;
97
- }, never, "error" | "finished" | "idle" | "loading" | "display" | "submitting", string, ConsentInput, xstate228.NonReducibleUnknown, xstate228.EventObject, xstate228.MetaObject, {
97
+ }, never, "error" | "idle" | "finished" | "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: ({
@@ -1,7 +1,7 @@
1
1
  import "./Actor-By8WNHi-.js";
2
2
  import { t as CameraStream } from "./camera-6XJdOeBF.js";
3
3
  import { t as Manager } from "./Manager-CCT_-HuZ.js";
4
- import * as xstate0 from "xstate";
4
+ import * as xstate63 from "xstate";
5
5
 
6
6
  //#region src/modules/document-capture/types.d.ts
7
7
  type DocumentType = 'addressStatement' | 'otherDocument1' | 'otherDocument2' | 'otherDocument3' | 'v5cMultiPageLogbook' | 'circulationCard' | 'financeSettlement' | 'carInvoice' | 'capture' | 'processPoaOcr' | 'processLoaOcr' | 'processAsylumSeekerVisaZaf' | 'processBankStatementOCR' | 'processBankCheck' | 'processV5CLogbook' | 'processCarInvoice' | 'processCirculationCard' | 'processFinanceSettlement';
@@ -82,7 +82,7 @@ type DocumentCaptureInput = {
82
82
  };
83
83
  //#endregion
84
84
  //#region src/modules/document-capture/documentCaptureStateMachine.d.ts
85
- declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContext, {
85
+ declare const documentCaptureMachine: xstate63.StateMachine<DocumentCaptureContext, {
86
86
  type: "CAPTURE";
87
87
  } | {
88
88
  type: "FILE_SELECTED";
@@ -111,105 +111,105 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
111
111
  } | {
112
112
  type: "CLOSE";
113
113
  }, {
114
- [x: string]: xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>> | xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<DocumentUploadResponse, {
114
+ [x: string]: xstate63.ActorRefFromLogic<xstate63.PromiseActorLogic<MediaStream, void, xstate63.EventObject>> | xstate63.ActorRefFromLogic<xstate63.PromiseActorLogic<DocumentUploadResponse, {
115
115
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
116
116
  processingType: string;
117
117
  onProgress: (progress: number) => void;
118
- }, xstate0.EventObject>> | xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<FinalizeDocumentResponse, {
118
+ }, xstate63.EventObject>> | xstate63.ActorRefFromLogic<xstate63.PromiseActorLogic<FinalizeDocumentResponse, {
119
119
  processingType: string;
120
- }, xstate0.EventObject>> | undefined;
121
- }, xstate0.Values<{
120
+ }, xstate63.EventObject>> | undefined;
121
+ }, xstate63.Values<{
122
122
  initCamera: {
123
123
  src: "initCamera";
124
- logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
124
+ logic: xstate63.PromiseActorLogic<MediaStream, void, xstate63.EventObject>;
125
125
  id: string | undefined;
126
126
  };
127
127
  uploadDocument: {
128
128
  src: "uploadDocument";
129
- logic: xstate0.PromiseActorLogic<DocumentUploadResponse, {
129
+ logic: xstate63.PromiseActorLogic<DocumentUploadResponse, {
130
130
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
131
131
  processingType: string;
132
132
  onProgress: (progress: number) => void;
133
- }, xstate0.EventObject>;
133
+ }, xstate63.EventObject>;
134
134
  id: string | undefined;
135
135
  };
136
136
  finalizeDocumentRequest: {
137
137
  src: "finalizeDocumentRequest";
138
- logic: xstate0.PromiseActorLogic<FinalizeDocumentResponse, {
138
+ logic: xstate63.PromiseActorLogic<FinalizeDocumentResponse, {
139
139
  processingType: string;
140
- }, xstate0.EventObject>;
140
+ }, xstate63.EventObject>;
141
141
  id: string | undefined;
142
142
  };
143
- }>, xstate0.Values<{
143
+ }>, xstate63.Values<{
144
144
  setStream: {
145
145
  type: "setStream";
146
- params: xstate0.NonReducibleUnknown;
146
+ params: xstate63.NonReducibleUnknown;
147
+ };
148
+ setProgress: {
149
+ type: "setProgress";
150
+ params: xstate63.NonReducibleUnknown;
151
+ };
152
+ clearError: {
153
+ type: "clearError";
154
+ params: xstate63.NonReducibleUnknown;
155
+ };
156
+ stopStream: {
157
+ type: "stopStream";
158
+ params: xstate63.NonReducibleUnknown;
147
159
  };
148
160
  setCapturedDocument: {
149
161
  type: "setCapturedDocument";
150
- params: xstate0.NonReducibleUnknown;
162
+ params: xstate63.NonReducibleUnknown;
151
163
  };
152
164
  setFileTooLargeError: {
153
165
  type: "setFileTooLargeError";
154
- params: xstate0.NonReducibleUnknown;
155
- };
156
- setProgress: {
157
- type: "setProgress";
158
- params: xstate0.NonReducibleUnknown;
166
+ params: xstate63.NonReducibleUnknown;
159
167
  };
160
168
  setUploadError: {
161
169
  type: "setUploadError";
162
- params: xstate0.NonReducibleUnknown;
170
+ params: xstate63.NonReducibleUnknown;
163
171
  };
164
172
  setFinalizeError: {
165
173
  type: "setFinalizeError";
166
- params: xstate0.NonReducibleUnknown;
174
+ params: xstate63.NonReducibleUnknown;
167
175
  };
168
176
  decrementAttemptsRemaining: {
169
177
  type: "decrementAttemptsRemaining";
170
- params: xstate0.NonReducibleUnknown;
178
+ params: xstate63.NonReducibleUnknown;
171
179
  };
172
180
  setCaptureMethodFile: {
173
181
  type: "setCaptureMethodFile";
174
- params: xstate0.NonReducibleUnknown;
182
+ params: xstate63.NonReducibleUnknown;
175
183
  };
176
184
  setCaptureMethodCamera: {
177
185
  type: "setCaptureMethodCamera";
178
- params: xstate0.NonReducibleUnknown;
186
+ params: xstate63.NonReducibleUnknown;
179
187
  };
180
188
  setCaptureMethodGallery: {
181
189
  type: "setCaptureMethodGallery";
182
- params: xstate0.NonReducibleUnknown;
190
+ params: xstate63.NonReducibleUnknown;
183
191
  };
184
192
  clearCapturedDocument: {
185
193
  type: "clearCapturedDocument";
186
- params: xstate0.NonReducibleUnknown;
194
+ params: xstate63.NonReducibleUnknown;
187
195
  };
188
196
  clearCapturedDocumentGalleryRetake: {
189
197
  type: "clearCapturedDocumentGalleryRetake";
190
- params: xstate0.NonReducibleUnknown;
198
+ params: xstate63.NonReducibleUnknown;
191
199
  };
192
200
  setNextPageType: {
193
201
  type: "setNextPageType";
194
- params: xstate0.NonReducibleUnknown;
202
+ params: xstate63.NonReducibleUnknown;
195
203
  };
196
204
  clearForNextPage: {
197
205
  type: "clearForNextPage";
198
- params: xstate0.NonReducibleUnknown;
199
- };
200
- clearError: {
201
- type: "clearError";
202
- params: xstate0.NonReducibleUnknown;
206
+ params: xstate63.NonReducibleUnknown;
203
207
  };
204
208
  resetProgress: {
205
209
  type: "resetProgress";
206
- params: xstate0.NonReducibleUnknown;
207
- };
208
- stopStream: {
209
- type: "stopStream";
210
- params: xstate0.NonReducibleUnknown;
210
+ params: xstate63.NonReducibleUnknown;
211
211
  };
212
- }>, xstate0.Values<{
212
+ }>, xstate63.Values<{
213
213
  allowSkip: {
214
214
  type: "allowSkip";
215
215
  params: unknown;
@@ -266,7 +266,7 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
266
266
  type: "fileSizeOkForNonGallery";
267
267
  params: unknown;
268
268
  };
269
- }>, never, "initCamera" | "tutorial" | "capturing" | "preview" | "finished" | "closed" | "failure" | "uploading" | "success" | "nextPage" | "finalizing", string, DocumentCaptureInput, xstate0.NonReducibleUnknown, xstate0.EventObject, xstate0.MetaObject, {
269
+ }>, never, "initCamera" | "capturing" | "closed" | "uploading" | "finished" | "tutorial" | "preview" | "failure" | "success" | "nextPage" | "finalizing", string, DocumentCaptureInput, xstate63.NonReducibleUnknown, xstate63.EventObject, xstate63.MetaObject, {
270
270
  readonly id: "documentCapture";
271
271
  readonly initial: "tutorial";
272
272
  readonly context: ({
@@ -275,93 +275,93 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
275
275
  spawn: {
276
276
  <TSrc extends "initCamera" | "uploadDocument" | "finalizeDocumentRequest">(logic: TSrc, ...[options]: ({
277
277
  src: "initCamera";
278
- logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
278
+ logic: xstate63.PromiseActorLogic<MediaStream, void, xstate63.EventObject>;
279
279
  id: string | undefined;
280
280
  } extends infer T ? T extends {
281
281
  src: "initCamera";
282
- logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
282
+ logic: xstate63.PromiseActorLogic<MediaStream, void, xstate63.EventObject>;
283
283
  id: string | undefined;
284
284
  } ? T extends {
285
285
  src: TSrc;
286
- } ? xstate0.ConditionalRequired<[options?: ({
286
+ } ? xstate63.ConditionalRequired<[options?: ({
287
287
  id?: T["id"] | undefined;
288
288
  systemId?: string;
289
- input?: xstate0.InputFrom<T["logic"]> | undefined;
289
+ input?: xstate63.InputFrom<T["logic"]> | undefined;
290
290
  syncSnapshot?: boolean;
291
- } & { [K in xstate0.RequiredActorOptions<T>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T>>> : never : never : never) | ({
291
+ } & { [K in xstate63.RequiredActorOptions<T>]: unknown }) | undefined], xstate63.IsNotNever<xstate63.RequiredActorOptions<T>>> : never : never : never) | ({
292
292
  src: "uploadDocument";
293
- logic: xstate0.PromiseActorLogic<DocumentUploadResponse, {
293
+ logic: xstate63.PromiseActorLogic<DocumentUploadResponse, {
294
294
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
295
295
  processingType: string;
296
296
  onProgress: (progress: number) => void;
297
- }, xstate0.EventObject>;
297
+ }, xstate63.EventObject>;
298
298
  id: string | undefined;
299
299
  } extends infer T_1 ? T_1 extends {
300
300
  src: "uploadDocument";
301
- logic: xstate0.PromiseActorLogic<DocumentUploadResponse, {
301
+ logic: xstate63.PromiseActorLogic<DocumentUploadResponse, {
302
302
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
303
303
  processingType: string;
304
304
  onProgress: (progress: number) => void;
305
- }, xstate0.EventObject>;
305
+ }, xstate63.EventObject>;
306
306
  id: string | undefined;
307
307
  } ? T_1 extends {
308
308
  src: TSrc;
309
- } ? xstate0.ConditionalRequired<[options?: ({
309
+ } ? xstate63.ConditionalRequired<[options?: ({
310
310
  id?: T_1["id"] | undefined;
311
311
  systemId?: string;
312
- input?: xstate0.InputFrom<T_1["logic"]> | undefined;
312
+ input?: xstate63.InputFrom<T_1["logic"]> | undefined;
313
313
  syncSnapshot?: boolean;
314
- } & { [K_1 in xstate0.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T_1>>> : never : never : never) | ({
314
+ } & { [K_1 in xstate63.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate63.IsNotNever<xstate63.RequiredActorOptions<T_1>>> : never : never : never) | ({
315
315
  src: "finalizeDocumentRequest";
316
- logic: xstate0.PromiseActorLogic<FinalizeDocumentResponse, {
316
+ logic: xstate63.PromiseActorLogic<FinalizeDocumentResponse, {
317
317
  processingType: string;
318
- }, xstate0.EventObject>;
318
+ }, xstate63.EventObject>;
319
319
  id: string | undefined;
320
320
  } extends infer T_2 ? T_2 extends {
321
321
  src: "finalizeDocumentRequest";
322
- logic: xstate0.PromiseActorLogic<FinalizeDocumentResponse, {
322
+ logic: xstate63.PromiseActorLogic<FinalizeDocumentResponse, {
323
323
  processingType: string;
324
- }, xstate0.EventObject>;
324
+ }, xstate63.EventObject>;
325
325
  id: string | undefined;
326
326
  } ? T_2 extends {
327
327
  src: TSrc;
328
- } ? xstate0.ConditionalRequired<[options?: ({
328
+ } ? xstate63.ConditionalRequired<[options?: ({
329
329
  id?: T_2["id"] | undefined;
330
330
  systemId?: string;
331
- input?: xstate0.InputFrom<T_2["logic"]> | undefined;
331
+ input?: xstate63.InputFrom<T_2["logic"]> | undefined;
332
332
  syncSnapshot?: boolean;
333
- } & { [K_2 in xstate0.RequiredActorOptions<T_2>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T_2>>> : never : never : never)): xstate0.ActorRefFromLogic<xstate0.GetConcreteByKey<xstate0.Values<{
333
+ } & { [K_2 in xstate63.RequiredActorOptions<T_2>]: unknown }) | undefined], xstate63.IsNotNever<xstate63.RequiredActorOptions<T_2>>> : never : never : never)): xstate63.ActorRefFromLogic<xstate63.GetConcreteByKey<xstate63.Values<{
334
334
  initCamera: {
335
335
  src: "initCamera";
336
- logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
336
+ logic: xstate63.PromiseActorLogic<MediaStream, void, xstate63.EventObject>;
337
337
  id: string | undefined;
338
338
  };
339
339
  uploadDocument: {
340
340
  src: "uploadDocument";
341
- logic: xstate0.PromiseActorLogic<DocumentUploadResponse, {
341
+ logic: xstate63.PromiseActorLogic<DocumentUploadResponse, {
342
342
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
343
343
  processingType: string;
344
344
  onProgress: (progress: number) => void;
345
- }, xstate0.EventObject>;
345
+ }, xstate63.EventObject>;
346
346
  id: string | undefined;
347
347
  };
348
348
  finalizeDocumentRequest: {
349
349
  src: "finalizeDocumentRequest";
350
- logic: xstate0.PromiseActorLogic<FinalizeDocumentResponse, {
350
+ logic: xstate63.PromiseActorLogic<FinalizeDocumentResponse, {
351
351
  processingType: string;
352
- }, xstate0.EventObject>;
352
+ }, xstate63.EventObject>;
353
353
  id: string | undefined;
354
354
  };
355
355
  }>, "src", TSrc>["logic"]>;
356
- <TLogic extends xstate0.AnyActorLogic>(src: TLogic, ...[options]: xstate0.ConditionalRequired<[options?: ({
356
+ <TLogic extends xstate63.AnyActorLogic>(src: TLogic, ...[options]: xstate63.ConditionalRequired<[options?: ({
357
357
  id?: never;
358
358
  systemId?: string;
359
- input?: xstate0.InputFrom<TLogic> | undefined;
359
+ input?: xstate63.InputFrom<TLogic> | undefined;
360
360
  syncSnapshot?: boolean;
361
- } & { [K in xstate0.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredLogicInput<TLogic>>>): xstate0.ActorRefFromLogic<TLogic>;
361
+ } & { [K in xstate63.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate63.IsNotNever<xstate63.RequiredLogicInput<TLogic>>>): xstate63.ActorRefFromLogic<TLogic>;
362
362
  };
363
363
  input: DocumentCaptureInput;
364
- self: xstate0.ActorRef<xstate0.MachineSnapshot<DocumentCaptureContext, {
364
+ self: xstate63.ActorRef<xstate63.MachineSnapshot<DocumentCaptureContext, {
365
365
  type: "CAPTURE";
366
366
  } | {
367
367
  type: "FILE_SELECTED";
@@ -389,7 +389,7 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
389
389
  type: "SKIP";
390
390
  } | {
391
391
  type: "CLOSE";
392
- }, Record<string, xstate0.AnyActorRef | undefined>, xstate0.StateValue, string, unknown, any, any>, {
392
+ }, Record<string, xstate63.AnyActorRef | undefined>, xstate63.StateValue, string, unknown, any, any>, {
393
393
  type: "CAPTURE";
394
394
  } | {
395
395
  type: "FILE_SELECTED";
@@ -417,7 +417,7 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
417
417
  type: "SKIP";
418
418
  } | {
419
419
  type: "CLOSE";
420
- }, xstate0.AnyEventObject>;
420
+ }, xstate63.AnyEventObject>;
421
421
  }) => {
422
422
  config: {
423
423
  processingType: DocumentType;
@@ -568,7 +568,7 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
568
568
  } | {
569
569
  type: "CLOSE";
570
570
  };
571
- self: xstate0.ActorRef<xstate0.MachineSnapshot<DocumentCaptureContext, {
571
+ self: xstate63.ActorRef<xstate63.MachineSnapshot<DocumentCaptureContext, {
572
572
  type: "CAPTURE";
573
573
  } | {
574
574
  type: "FILE_SELECTED";
@@ -596,7 +596,7 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
596
596
  type: "SKIP";
597
597
  } | {
598
598
  type: "CLOSE";
599
- }, Record<string, xstate0.AnyActorRef>, xstate0.StateValue, string, unknown, any, any>, {
599
+ }, Record<string, xstate63.AnyActorRef>, xstate63.StateValue, string, unknown, any, any>, {
600
600
  type: "CAPTURE";
601
601
  } | {
602
602
  type: "FILE_SELECTED";
@@ -624,7 +624,7 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
624
624
  type: "SKIP";
625
625
  } | {
626
626
  type: "CLOSE";
627
- }, xstate0.AnyEventObject>;
627
+ }, xstate63.AnyEventObject>;
628
628
  }) => {
629
629
  capturedDocument: CapturedDocument;
630
630
  processingType: DocumentType;
@@ -719,7 +719,7 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
719
719
  } | {
720
720
  type: "CLOSE";
721
721
  };
722
- self: xstate0.ActorRef<xstate0.MachineSnapshot<DocumentCaptureContext, {
722
+ self: xstate63.ActorRef<xstate63.MachineSnapshot<DocumentCaptureContext, {
723
723
  type: "CAPTURE";
724
724
  } | {
725
725
  type: "FILE_SELECTED";
@@ -747,7 +747,7 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
747
747
  type: "SKIP";
748
748
  } | {
749
749
  type: "CLOSE";
750
- }, Record<string, xstate0.AnyActorRef>, xstate0.StateValue, string, unknown, any, any>, {
750
+ }, Record<string, xstate63.AnyActorRef>, xstate63.StateValue, string, unknown, any, any>, {
751
751
  type: "CAPTURE";
752
752
  } | {
753
753
  type: "FILE_SELECTED";
@@ -775,7 +775,7 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
775
775
  type: "SKIP";
776
776
  } | {
777
777
  type: "CLOSE";
778
- }, xstate0.AnyEventObject>;
778
+ }, xstate63.AnyEventObject>;
779
779
  }) => {
780
780
  processingType: DocumentType;
781
781
  };
@@ -2,10 +2,10 @@ import "./Actor-By8WNHi-.js";
2
2
  import "./camera-6XJdOeBF.js";
3
3
  import { n as DocumentUploadContext, r as DocumentUploadInput, t as DocumentUploadConfig } from "./types-CiLyvJGb.js";
4
4
  import { t as Manager } from "./Manager-CCT_-HuZ.js";
5
- import * as xstate96 from "xstate";
5
+ import * as xstate0 from "xstate";
6
6
 
7
7
  //#region src/modules/document-upload/documentUploadStateMachine.d.ts
8
- declare const documentUploadMachine: xstate96.StateMachine<DocumentUploadContext, {
8
+ declare const documentUploadMachine: xstate0.StateMachine<DocumentUploadContext, {
9
9
  type: "START";
10
10
  } | {
11
11
  type: "CAPTURE";
@@ -18,52 +18,52 @@ declare const documentUploadMachine: xstate96.StateMachine<DocumentUploadContext
18
18
  } | {
19
19
  type: "CLOSE";
20
20
  }, {
21
- [x: string]: xstate96.ActorRefFromLogic<xstate96.PromiseActorLogic<MediaStream, void, xstate96.EventObject>> | xstate96.ActorRefFromLogic<xstate96.PromiseActorLogic<void, {
21
+ [x: string]: xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>> | xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<void, {
22
22
  imageBase64: string;
23
23
  documentType: string;
24
24
  onProgress: (progress: number) => void;
25
- }, xstate96.EventObject>> | undefined;
26
- }, xstate96.Values<{
25
+ }, xstate0.EventObject>> | undefined;
26
+ }, xstate0.Values<{
27
27
  initCamera: {
28
28
  src: "initCamera";
29
- logic: xstate96.PromiseActorLogic<MediaStream, void, xstate96.EventObject>;
29
+ logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
30
30
  id: string | undefined;
31
31
  };
32
32
  uploadDocument: {
33
33
  src: "uploadDocument";
34
- logic: xstate96.PromiseActorLogic<void, {
34
+ logic: xstate0.PromiseActorLogic<void, {
35
35
  imageBase64: string;
36
36
  documentType: string;
37
37
  onProgress: (progress: number) => void;
38
- }, xstate96.EventObject>;
38
+ }, xstate0.EventObject>;
39
39
  id: string | undefined;
40
40
  };
41
- }>, xstate96.Values<{
41
+ }>, xstate0.Values<{
42
42
  setStream: {
43
43
  type: "setStream";
44
- params: xstate96.NonReducibleUnknown;
44
+ params: xstate0.NonReducibleUnknown;
45
+ };
46
+ setImageAndClearError: {
47
+ type: "setImageAndClearError";
48
+ params: xstate0.NonReducibleUnknown;
45
49
  };
46
50
  setProgress: {
47
51
  type: "setProgress";
48
- params: xstate96.NonReducibleUnknown;
52
+ params: xstate0.NonReducibleUnknown;
53
+ };
54
+ setError: {
55
+ type: "setError";
56
+ params: xstate0.NonReducibleUnknown;
49
57
  };
50
58
  clearError: {
51
59
  type: "clearError";
52
- params: xstate96.NonReducibleUnknown;
60
+ params: xstate0.NonReducibleUnknown;
53
61
  };
54
62
  stopStream: {
55
63
  type: "stopStream";
56
- params: xstate96.NonReducibleUnknown;
57
- };
58
- setImageAndClearError: {
59
- type: "setImageAndClearError";
60
- params: xstate96.NonReducibleUnknown;
61
- };
62
- setError: {
63
- type: "setError";
64
- params: xstate96.NonReducibleUnknown;
64
+ params: xstate0.NonReducibleUnknown;
65
65
  };
66
- }>, never, never, "error" | "initCamera" | "capturing" | "finished" | "closed" | "uploading" | "idle", string, DocumentUploadInput, xstate96.NonReducibleUnknown, xstate96.EventObject, xstate96.MetaObject, {
66
+ }>, never, never, "error" | "initCamera" | "idle" | "capturing" | "closed" | "uploading" | "finished", string, DocumentUploadInput, xstate0.NonReducibleUnknown, xstate0.EventObject, xstate0.MetaObject, {
67
67
  readonly id: "documentUpload";
68
68
  readonly initial: "idle";
69
69
  readonly context: ({
@@ -72,67 +72,67 @@ declare const documentUploadMachine: xstate96.StateMachine<DocumentUploadContext
72
72
  spawn: {
73
73
  <TSrc extends "initCamera" | "uploadDocument">(logic: TSrc, ...[options]: ({
74
74
  src: "initCamera";
75
- logic: xstate96.PromiseActorLogic<MediaStream, void, xstate96.EventObject>;
75
+ logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
76
76
  id: string | undefined;
77
77
  } extends infer T ? T extends {
78
78
  src: "initCamera";
79
- logic: xstate96.PromiseActorLogic<MediaStream, void, xstate96.EventObject>;
79
+ logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
80
80
  id: string | undefined;
81
81
  } ? T extends {
82
82
  src: TSrc;
83
- } ? xstate96.ConditionalRequired<[options?: ({
83
+ } ? xstate0.ConditionalRequired<[options?: ({
84
84
  id?: T["id"] | undefined;
85
85
  systemId?: string;
86
- input?: xstate96.InputFrom<T["logic"]> | undefined;
86
+ input?: xstate0.InputFrom<T["logic"]> | undefined;
87
87
  syncSnapshot?: boolean;
88
- } & { [K in xstate96.RequiredActorOptions<T>]: unknown }) | undefined], xstate96.IsNotNever<xstate96.RequiredActorOptions<T>>> : never : never : never) | ({
88
+ } & { [K in xstate0.RequiredActorOptions<T>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T>>> : never : never : never) | ({
89
89
  src: "uploadDocument";
90
- logic: xstate96.PromiseActorLogic<void, {
90
+ logic: xstate0.PromiseActorLogic<void, {
91
91
  imageBase64: string;
92
92
  documentType: string;
93
93
  onProgress: (progress: number) => void;
94
- }, xstate96.EventObject>;
94
+ }, xstate0.EventObject>;
95
95
  id: string | undefined;
96
96
  } extends infer T_1 ? T_1 extends {
97
97
  src: "uploadDocument";
98
- logic: xstate96.PromiseActorLogic<void, {
98
+ logic: xstate0.PromiseActorLogic<void, {
99
99
  imageBase64: string;
100
100
  documentType: string;
101
101
  onProgress: (progress: number) => void;
102
- }, xstate96.EventObject>;
102
+ }, xstate0.EventObject>;
103
103
  id: string | undefined;
104
104
  } ? T_1 extends {
105
105
  src: TSrc;
106
- } ? xstate96.ConditionalRequired<[options?: ({
106
+ } ? xstate0.ConditionalRequired<[options?: ({
107
107
  id?: T_1["id"] | undefined;
108
108
  systemId?: string;
109
- input?: xstate96.InputFrom<T_1["logic"]> | undefined;
109
+ input?: xstate0.InputFrom<T_1["logic"]> | undefined;
110
110
  syncSnapshot?: boolean;
111
- } & { [K_1 in xstate96.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate96.IsNotNever<xstate96.RequiredActorOptions<T_1>>> : never : never : never)): xstate96.ActorRefFromLogic<xstate96.GetConcreteByKey<xstate96.Values<{
111
+ } & { [K_1 in xstate0.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T_1>>> : never : never : never)): xstate0.ActorRefFromLogic<xstate0.GetConcreteByKey<xstate0.Values<{
112
112
  initCamera: {
113
113
  src: "initCamera";
114
- logic: xstate96.PromiseActorLogic<MediaStream, void, xstate96.EventObject>;
114
+ logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
115
115
  id: string | undefined;
116
116
  };
117
117
  uploadDocument: {
118
118
  src: "uploadDocument";
119
- logic: xstate96.PromiseActorLogic<void, {
119
+ logic: xstate0.PromiseActorLogic<void, {
120
120
  imageBase64: string;
121
121
  documentType: string;
122
122
  onProgress: (progress: number) => void;
123
- }, xstate96.EventObject>;
123
+ }, xstate0.EventObject>;
124
124
  id: string | undefined;
125
125
  };
126
126
  }>, "src", TSrc>["logic"]>;
127
- <TLogic extends xstate96.AnyActorLogic>(src: TLogic, ...[options]: xstate96.ConditionalRequired<[options?: ({
127
+ <TLogic extends xstate0.AnyActorLogic>(src: TLogic, ...[options]: xstate0.ConditionalRequired<[options?: ({
128
128
  id?: never;
129
129
  systemId?: string;
130
- input?: xstate96.InputFrom<TLogic> | undefined;
130
+ input?: xstate0.InputFrom<TLogic> | undefined;
131
131
  syncSnapshot?: boolean;
132
- } & { [K in xstate96.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate96.IsNotNever<xstate96.RequiredLogicInput<TLogic>>>): xstate96.ActorRefFromLogic<TLogic>;
132
+ } & { [K in xstate0.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredLogicInput<TLogic>>>): xstate0.ActorRefFromLogic<TLogic>;
133
133
  };
134
134
  input: DocumentUploadInput;
135
- self: xstate96.ActorRef<xstate96.MachineSnapshot<DocumentUploadContext, {
135
+ self: xstate0.ActorRef<xstate0.MachineSnapshot<DocumentUploadContext, {
136
136
  type: "START";
137
137
  } | {
138
138
  type: "CAPTURE";
@@ -144,7 +144,7 @@ declare const documentUploadMachine: xstate96.StateMachine<DocumentUploadContext
144
144
  type: "RETRY";
145
145
  } | {
146
146
  type: "CLOSE";
147
- }, Record<string, xstate96.AnyActorRef | undefined>, xstate96.StateValue, string, unknown, any, any>, {
147
+ }, Record<string, xstate0.AnyActorRef | undefined>, xstate0.StateValue, string, unknown, any, any>, {
148
148
  type: "START";
149
149
  } | {
150
150
  type: "CAPTURE";
@@ -156,7 +156,7 @@ declare const documentUploadMachine: xstate96.StateMachine<DocumentUploadContext
156
156
  type: "RETRY";
157
157
  } | {
158
158
  type: "CLOSE";
159
- }, xstate96.AnyEventObject>;
159
+ }, xstate0.AnyEventObject>;
160
160
  }) => {
161
161
  config: DocumentUploadConfig;
162
162
  stream: undefined;
@@ -226,7 +226,7 @@ declare const documentUploadMachine: xstate96.StateMachine<DocumentUploadContext
226
226
  } | {
227
227
  type: "CLOSE";
228
228
  };
229
- self: xstate96.ActorRef<xstate96.MachineSnapshot<DocumentUploadContext, {
229
+ self: xstate0.ActorRef<xstate0.MachineSnapshot<DocumentUploadContext, {
230
230
  type: "START";
231
231
  } | {
232
232
  type: "CAPTURE";
@@ -238,7 +238,7 @@ declare const documentUploadMachine: xstate96.StateMachine<DocumentUploadContext
238
238
  type: "RETRY";
239
239
  } | {
240
240
  type: "CLOSE";
241
- }, Record<string, xstate96.AnyActorRef>, xstate96.StateValue, string, unknown, any, any>, {
241
+ }, Record<string, xstate0.AnyActorRef>, xstate0.StateValue, string, unknown, any, any>, {
242
242
  type: "START";
243
243
  } | {
244
244
  type: "CAPTURE";
@@ -250,7 +250,7 @@ declare const documentUploadMachine: xstate96.StateMachine<DocumentUploadContext
250
250
  type: "RETRY";
251
251
  } | {
252
252
  type: "CLOSE";
253
- }, xstate96.AnyEventObject>;
253
+ }, xstate0.AnyEventObject>;
254
254
  }) => {
255
255
  imageBase64: string;
256
256
  documentType: string;
package/dist/ekyb.esm.js CHANGED
@@ -2,11 +2,11 @@ import "./browserSimulation-DYAk0Ipe.esm.js";
2
2
  import { t as api } from "./api-C2uzxrpN.esm.js";
3
3
  import { C as createActor, S as fromPromise, b as assign, r as eventModuleNames, s as createManagerInstrumentation, t as createManager, y as setup } from "./Manager-C6AGXEq_.esm.js";
4
4
  import { t as endpoints } from "./endpoints-CI5-28jT.esm.js";
5
- import "./session-DqNrvO4r.esm.js";
5
+ import "./session-OglUYC9l.esm.js";
6
6
  import "./BrowserEnvironmentProvider-BECjyw3_.esm.js";
7
7
  import "./BrowserTimerProvider-CIqH6hJp.esm.js";
8
8
  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-B8Fo4v9V.esm.js";
9
- import { t as getFlow } from "./flowServices-D5ugKT5n.esm.js";
9
+ import { t as getFlow } from "./flowServices-CO2sIR3D.esm.js";
10
10
 
11
11
  //#region src/modules/ekyb/ekybConstants.ts
12
12
  const UBO_INPUT_LIMIT = 8;
@@ -5,9 +5,9 @@ import "./browserSimulation-DYAk0Ipe.esm.js";
5
5
  import "./api-C2uzxrpN.esm.js";
6
6
  import { C as createActor, S as fromPromise } from "./Manager-C6AGXEq_.esm.js";
7
7
  import "./endpoints-CI5-28jT.esm.js";
8
- import { c as getDeviceFingerprintInfo, s as getFingerprint } from "./session-DqNrvO4r.esm.js";
8
+ import { c as FingerprintProvider, l as getDeviceFingerprintInfo, s as IpifyProvider, t as getDisableIpify } from "./session-OglUYC9l.esm.js";
9
9
  import "./BrowserEnvironmentProvider-BECjyw3_.esm.js";
10
- import { n as createIdCaptureManagerFromActor } from "./idCaptureManager-DUZxcSP_.esm.js";
10
+ import { n as createIdCaptureManagerFromActor } from "./idCaptureManager-DaLU1ug7.esm.js";
11
11
  import "./BrowserTimerProvider-CIqH6hJp.esm.js";
12
12
  import "./camera-DAuRUvnp.esm.js";
13
13
  import "./stats-BVigf5Rn.esm.js";
@@ -19,4 +19,11 @@ import { n as createEmailManagerFromActor } from "./emailManager-CpAwvP3v.esm.js
19
19
  import { n as createSelfieManagerFromActor } from "./selfieManager-BSkzncsa.esm.js";
20
20
  import { n as createPhoneManagerFromActor } from "./phoneManager-BAPHSXx8.esm.js";
21
21
 
22
+ //#region src/internal/fingerprint/fingerprintApi.ts
23
+ async function getFingerprint(disableIpify) {
24
+ const shouldDisableIpify = disableIpify ?? getDisableIpify();
25
+ return new FingerprintProvider(new IpifyProvider()).getFingerprint(shouldDisableIpify);
26
+ }
27
+
28
+ //#endregion
22
29
  export { BrowserStorageProvider, WasmUtilProvider, createActor, createAuthenticationManagerFromActor, createEmailManagerFromActor, createIdCaptureManagerFromActor, createPhoneManagerFromActor, createSelfieManagerFromActor, faceCaptureMachine, fromPromise, getDeviceFingerprintInfo, getFingerprint };
package/dist/flow.esm.js CHANGED
@@ -2,9 +2,9 @@ import "./browserSimulation-DYAk0Ipe.esm.js";
2
2
  import "./api-C2uzxrpN.esm.js";
3
3
  import { C as createActor, S as fromPromise, b as assign, s as createManagerInstrumentation, t as createManager, x as fromCallback, y as setup } from "./Manager-C6AGXEq_.esm.js";
4
4
  import "./endpoints-CI5-28jT.esm.js";
5
- import "./session-DqNrvO4r.esm.js";
5
+ import "./session-OglUYC9l.esm.js";
6
6
  import "./BrowserEnvironmentProvider-BECjyw3_.esm.js";
7
- import { n as getRequiredWasmPipelines, r as normalizeFlowModules, t as getFlow } from "./flowServices-D5ugKT5n.esm.js";
7
+ import { n as getRequiredWasmPipelines, r as normalizeFlowModules, t as getFlow } from "./flowServices-CO2sIR3D.esm.js";
8
8
  import { t as getFinishStatus } from "./flowCompletionService-TnWijsSw.esm.js";
9
9
 
10
10
  //#region src/modules/flow/flowStateMachine.ts
@@ -1,6 +1,6 @@
1
1
  import { t as api } from "./api-C2uzxrpN.esm.js";
2
2
  import { t as endpoints } from "./endpoints-CI5-28jT.esm.js";
3
- import { i as initializeSession, r as getSessionFingerprintResult } from "./session-DqNrvO4r.esm.js";
3
+ import { i as initializeSession, r as getSessionFingerprintResult } from "./session-OglUYC9l.esm.js";
4
4
 
5
5
  //#region src/modules/flow/flowUtils.ts
6
6
  const WASM_MODULE_PIPELINES = {
package/dist/id.esm.js CHANGED
@@ -5,9 +5,9 @@ import "./browserSimulation-DYAk0Ipe.esm.js";
5
5
  import "./api-C2uzxrpN.esm.js";
6
6
  import "./Manager-C6AGXEq_.esm.js";
7
7
  import "./endpoints-CI5-28jT.esm.js";
8
- import "./session-DqNrvO4r.esm.js";
8
+ import "./session-OglUYC9l.esm.js";
9
9
  import "./BrowserEnvironmentProvider-BECjyw3_.esm.js";
10
- import { a as initializeIdCapture, c as stopRecording, d as validateUploadResponse, f as ID_ERROR_CODES, i as idCaptureMachine, l as stopStream, o as processId, r as createIdCaptureActor, s as startRecordingSession, t as createIdCaptureManager, u as uploadIdImage } from "./idCaptureManager-DUZxcSP_.esm.js";
10
+ import { a as initializeIdCapture, c as stopRecording, d as validateUploadResponse, f as ID_ERROR_CODES, i as idCaptureMachine, l as stopStream, o as processId, r as createIdCaptureActor, s as startRecordingSession, t as createIdCaptureManager, u as uploadIdImage } from "./idCaptureManager-DaLU1ug7.esm.js";
11
11
  import "./BrowserTimerProvider-CIqH6hJp.esm.js";
12
12
  import "./camera-DAuRUvnp.esm.js";
13
13
  import "./stats-BVigf5Rn.esm.js";
@@ -4,7 +4,7 @@ import { c as requestPermission, d as flagIdManualReview, f as BrowserStoragePro
4
4
  import { r as getToken, t as api } from "./api-C2uzxrpN.esm.js";
5
5
  import { C as createActor, S as fromPromise, b as assign, i as eventScreenNames, r as eventModuleNames, s as createManagerInstrumentation, t as createManager, v as revokeObjectURL, x as fromCallback, y as setup } from "./Manager-C6AGXEq_.esm.js";
6
6
  import { t as endpoints } from "./endpoints-CI5-28jT.esm.js";
7
- import { t as getDisableIpify } from "./session-DqNrvO4r.esm.js";
7
+ import { t as getDisableIpify } from "./session-OglUYC9l.esm.js";
8
8
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-CIqH6hJp.esm.js";
9
9
  import { t as addDeviceStats } from "./stats-BVigf5Rn.esm.js";
10
10
  import { t as getBackCameraStream } from "./backCameraStream-DF_d7hTz.esm.js";
package/dist/index.esm.js CHANGED
@@ -5,9 +5,9 @@ import "./browserSimulation-DYAk0Ipe.esm.js";
5
5
  import { a as resetApi, n as getApi, o as setClient, s as setToken, t as api } from "./api-C2uzxrpN.esm.js";
6
6
  import { _ as subscribeEvent, a as tutorialScreenNamesMapper, c as captureAttemptFinished, d as moduleOpened, f as screenClosed, g as flushEventQueue, h as addEvent, i as eventScreenNames, l as elementClicked, m as screenOpened, n as cameraScreenNamesMapper, o as videoSelfieEvents, p as screenEvent, r as eventModuleNames, u as moduleClosed } from "./Manager-C6AGXEq_.esm.js";
7
7
  import "./endpoints-CI5-28jT.esm.js";
8
- import { a as isSessionInitialized, i as initializeSession, l as createSession, n as getSessionFeatures, o as resetSessionInit, t as getDisableIpify } from "./session-DqNrvO4r.esm.js";
8
+ import { a as isSessionInitialized, i as initializeSession, n as getSessionFeatures, o as resetSessionInit, t as getDisableIpify, u as createSession } from "./session-OglUYC9l.esm.js";
9
9
  import "./BrowserEnvironmentProvider-BECjyw3_.esm.js";
10
- import { a as initializeIdCapture, c as stopRecording, d as validateUploadResponse, f as ID_ERROR_CODES, i as idCaptureMachine, l as stopStream, o as processId, r as createIdCaptureActor, s as startRecordingSession, t as createIdCaptureManager, u as uploadIdImage } from "./idCaptureManager-DUZxcSP_.esm.js";
10
+ import { a as initializeIdCapture, c as stopRecording, d as validateUploadResponse, f as ID_ERROR_CODES, i as idCaptureMachine, l as stopStream, o as processId, r as createIdCaptureActor, s as startRecordingSession, t as createIdCaptureManager, u as uploadIdImage } from "./idCaptureManager-DaLU1ug7.esm.js";
11
11
  import "./BrowserTimerProvider-CIqH6hJp.esm.js";
12
12
  import "./camera-DAuRUvnp.esm.js";
13
13
  import "./stats-BVigf5Rn.esm.js";
@@ -66,14 +66,14 @@ declare const mandatoryConsentMachine: xstate160.StateMachine<MandatoryConsentCo
66
66
  id: string | undefined;
67
67
  };
68
68
  }>, xstate160.Values<{
69
- clearError: {
70
- type: "clearError";
71
- params: xstate160.NonReducibleUnknown;
72
- };
73
69
  setError: {
74
70
  type: "setError";
75
71
  params: xstate160.NonReducibleUnknown;
76
72
  };
73
+ clearError: {
74
+ type: "clearError";
75
+ params: xstate160.NonReducibleUnknown;
76
+ };
77
77
  setConsent: {
78
78
  type: "setConsent";
79
79
  params: xstate160.NonReducibleUnknown;
@@ -89,7 +89,7 @@ declare const mandatoryConsentMachine: xstate160.StateMachine<MandatoryConsentCo
89
89
  }>, {
90
90
  type: "canSubmit";
91
91
  params: unknown;
92
- }, never, "error" | "finished" | "closed" | "idle" | "loading" | "display" | "submitting", string, MandatoryConsentInput, xstate160.NonReducibleUnknown, xstate160.EventObject, xstate160.MetaObject, {
92
+ }, never, "error" | "idle" | "closed" | "finished" | "loading" | "display" | "submitting", string, MandatoryConsentInput, xstate160.NonReducibleUnknown, xstate160.EventObject, xstate160.MetaObject, {
93
93
  readonly id: "mandatoryConsent";
94
94
  readonly initial: "idle";
95
95
  readonly context: ({
@@ -2956,13 +2956,6 @@ function resetFeatureConfigCache() {
2956
2956
  cachedFeatures$1 = null;
2957
2957
  }
2958
2958
 
2959
- //#endregion
2960
- //#region src/internal/fingerprint/fingerprintApi.ts
2961
- async function getFingerprint(disableIpify) {
2962
- const shouldDisableIpify = disableIpify ?? getDisableIpify();
2963
- return new FingerprintProvider(new IpifyProvider()).getFingerprint(shouldDisableIpify);
2964
- }
2965
-
2966
2959
  //#endregion
2967
2960
  //#region src/internal/fingerprint/fingerprintService.ts
2968
2961
  const SDK_VERSION = "2.0.0";
@@ -3134,4 +3127,4 @@ function resetSessionInit() {
3134
3127
  }
3135
3128
 
3136
3129
  //#endregion
3137
- export { isSessionInitialized as a, getDeviceFingerprintInfo as c, initializeSession as i, createSession as l, getSessionFeatures as n, resetSessionInit as o, getSessionFingerprintResult as r, getFingerprint as s, getDisableIpify as t };
3130
+ export { isSessionInitialized as a, FingerprintProvider as c, initializeSession as i, getDeviceFingerprintInfo as l, getSessionFeatures as n, resetSessionInit as o, getSessionFingerprintResult as r, IpifyProvider as s, getDisableIpify as t, createSession as u };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/core",
3
- "version": "0.0.0-dev-20260407-4580f1c",
3
+ "version": "0.0.0-dev-20260407-2c382da",
4
4
  "type": "module",
5
5
  "main": "./dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",
@@ -111,7 +111,7 @@
111
111
  },
112
112
  "scripts": {
113
113
  "build": "tsdown -c tsdown.config.ts",
114
- "build:dev": "tsdown -c tsdown.config.ts",
114
+ "dev": "tsdown -c tsdown.config.ts --watch",
115
115
  "test": "vitest run",
116
116
  "coverage": "vitest run --coverage",
117
117
  "lint": "eslint .",