@incodetech/core 0.0.0-dev-20260318-aab03c7 → 0.0.0-dev-20260320-26b35b4

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-DsNvecSe.js";
2
2
  import { t as CameraStream } from "./camera-Bzi6CMAW.js";
3
- import * as xstate63 from "xstate";
3
+ import * as xstate0 from "xstate";
4
4
 
5
5
  //#region src/modules/document-capture/types.d.ts
6
6
  type DocumentType = 'addressStatement' | 'otherDocument1' | 'otherDocument2' | 'otherDocument3' | 'v5cMultiPageLogbook' | 'circulationCard' | 'financeSettlement' | 'carInvoice' | 'capture' | 'processPoaOcr' | 'processLoaOcr' | 'processAsylumSeekerVisaZaf' | 'processBankStatementOCR' | 'processBankCheck' | 'processV5CLogbook' | 'processCarInvoice' | 'processCirculationCard' | 'processFinanceSettlement';
@@ -72,7 +72,7 @@ type DocumentCaptureInput = {
72
72
  };
73
73
  //#endregion
74
74
  //#region src/modules/document-capture/documentCaptureStateMachine.d.ts
75
- declare const documentCaptureMachine: xstate63.StateMachine<DocumentCaptureContext, {
75
+ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContext, {
76
76
  type: "CAPTURE";
77
77
  } | {
78
78
  type: "FILE_SELECTED";
@@ -95,43 +95,31 @@ declare const documentCaptureMachine: xstate63.StateMachine<DocumentCaptureConte
95
95
  } | {
96
96
  type: "CLOSE";
97
97
  }, {
98
- [x: string]: xstate63.ActorRefFromLogic<xstate63.PromiseActorLogic<MediaStream, void, xstate63.EventObject>> | xstate63.ActorRefFromLogic<xstate63.PromiseActorLogic<DocumentUploadResponse, {
98
+ [x: string]: xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>> | xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<DocumentUploadResponse, {
99
99
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
100
100
  processingType: string;
101
101
  onProgress: (progress: number) => void;
102
- }, xstate63.EventObject>> | undefined;
103
- }, xstate63.Values<{
102
+ }, xstate0.EventObject>> | undefined;
103
+ }, xstate0.Values<{
104
104
  initCamera: {
105
105
  src: "initCamera";
106
- logic: xstate63.PromiseActorLogic<MediaStream, void, xstate63.EventObject>;
106
+ logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
107
107
  id: string | undefined;
108
108
  };
109
109
  uploadDocument: {
110
110
  src: "uploadDocument";
111
- logic: xstate63.PromiseActorLogic<DocumentUploadResponse, {
111
+ logic: xstate0.PromiseActorLogic<DocumentUploadResponse, {
112
112
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
113
113
  processingType: string;
114
114
  onProgress: (progress: number) => void;
115
- }, xstate63.EventObject>;
115
+ }, xstate0.EventObject>;
116
116
  id: string | undefined;
117
117
  };
118
- }>, xstate63.Values<{
118
+ }>, xstate0.Values<{
119
119
  setStream: {
120
120
  type: "setStream";
121
121
  params: unknown;
122
122
  };
123
- setProgress: {
124
- type: "setProgress";
125
- params: unknown;
126
- };
127
- clearError: {
128
- type: "clearError";
129
- params: unknown;
130
- };
131
- stopStream: {
132
- type: "stopStream";
133
- params: unknown;
134
- };
135
123
  setCapturedDocument: {
136
124
  type: "setCapturedDocument";
137
125
  params: unknown;
@@ -140,6 +128,10 @@ declare const documentCaptureMachine: xstate63.StateMachine<DocumentCaptureConte
140
128
  type: "setFileTooLargeError";
141
129
  params: unknown;
142
130
  };
131
+ setProgress: {
132
+ type: "setProgress";
133
+ params: unknown;
134
+ };
143
135
  setUploadError: {
144
136
  type: "setUploadError";
145
137
  params: unknown;
@@ -168,10 +160,18 @@ declare const documentCaptureMachine: xstate63.StateMachine<DocumentCaptureConte
168
160
  type: "clearForNextPage";
169
161
  params: unknown;
170
162
  };
163
+ clearError: {
164
+ type: "clearError";
165
+ params: unknown;
166
+ };
171
167
  resetProgress: {
172
168
  type: "resetProgress";
173
169
  params: unknown;
174
170
  };
171
+ stopStream: {
172
+ type: "stopStream";
173
+ params: unknown;
174
+ };
175
175
  trackTutorial: {
176
176
  type: "trackTutorial";
177
177
  params: unknown;
@@ -196,7 +196,7 @@ declare const documentCaptureMachine: xstate63.StateMachine<DocumentCaptureConte
196
196
  type: "trackFailure";
197
197
  params: unknown;
198
198
  };
199
- }>, xstate63.Values<{
199
+ }>, xstate0.Values<{
200
200
  allowSkip: {
201
201
  type: "allowSkip";
202
202
  params: unknown;
@@ -225,11 +225,15 @@ declare const documentCaptureMachine: xstate63.StateMachine<DocumentCaptureConte
225
225
  type: "isCameraMode";
226
226
  params: unknown;
227
227
  };
228
+ isCaptureMethodFile: {
229
+ type: "isCaptureMethodFile";
230
+ params: unknown;
231
+ };
228
232
  isPendingNextPage: {
229
233
  type: "isPendingNextPage";
230
234
  params: unknown;
231
235
  };
232
- }>, never, "initCamera" | "capturing" | "closed" | "uploading" | "finished" | "tutorial" | "preview" | "failure" | "success", string, DocumentCaptureInput, xstate63.NonReducibleUnknown, xstate63.EventObject, xstate63.MetaObject, {
236
+ }>, never, "initCamera" | "tutorial" | "capturing" | "preview" | "finished" | "closed" | "failure" | "uploading" | "success", string, DocumentCaptureInput, xstate0.NonReducibleUnknown, xstate0.EventObject, xstate0.MetaObject, {
233
237
  readonly id: "documentCapture";
234
238
  readonly initial: "tutorial";
235
239
  readonly context: ({
@@ -238,67 +242,67 @@ declare const documentCaptureMachine: xstate63.StateMachine<DocumentCaptureConte
238
242
  spawn: {
239
243
  <TSrc extends "initCamera" | "uploadDocument">(logic: TSrc, ...[options]: ({
240
244
  src: "initCamera";
241
- logic: xstate63.PromiseActorLogic<MediaStream, void, xstate63.EventObject>;
245
+ logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
242
246
  id: string | undefined;
243
247
  } extends infer T ? T extends {
244
248
  src: "initCamera";
245
- logic: xstate63.PromiseActorLogic<MediaStream, void, xstate63.EventObject>;
249
+ logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
246
250
  id: string | undefined;
247
251
  } ? T extends {
248
252
  src: TSrc;
249
- } ? xstate63.ConditionalRequired<[options?: ({
253
+ } ? xstate0.ConditionalRequired<[options?: ({
250
254
  id?: T["id"] | undefined;
251
255
  systemId?: string;
252
- input?: xstate63.InputFrom<T["logic"]> | undefined;
256
+ input?: xstate0.InputFrom<T["logic"]> | undefined;
253
257
  syncSnapshot?: boolean;
254
- } & { [K in xstate63.RequiredActorOptions<T>]: unknown }) | undefined], xstate63.IsNotNever<xstate63.RequiredActorOptions<T>>> : never : never : never) | ({
258
+ } & { [K in xstate0.RequiredActorOptions<T>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T>>> : never : never : never) | ({
255
259
  src: "uploadDocument";
256
- logic: xstate63.PromiseActorLogic<DocumentUploadResponse, {
260
+ logic: xstate0.PromiseActorLogic<DocumentUploadResponse, {
257
261
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
258
262
  processingType: string;
259
263
  onProgress: (progress: number) => void;
260
- }, xstate63.EventObject>;
264
+ }, xstate0.EventObject>;
261
265
  id: string | undefined;
262
266
  } extends infer T_1 ? T_1 extends {
263
267
  src: "uploadDocument";
264
- logic: xstate63.PromiseActorLogic<DocumentUploadResponse, {
268
+ logic: xstate0.PromiseActorLogic<DocumentUploadResponse, {
265
269
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
266
270
  processingType: string;
267
271
  onProgress: (progress: number) => void;
268
- }, xstate63.EventObject>;
272
+ }, xstate0.EventObject>;
269
273
  id: string | undefined;
270
274
  } ? T_1 extends {
271
275
  src: TSrc;
272
- } ? xstate63.ConditionalRequired<[options?: ({
276
+ } ? xstate0.ConditionalRequired<[options?: ({
273
277
  id?: T_1["id"] | undefined;
274
278
  systemId?: string;
275
- input?: xstate63.InputFrom<T_1["logic"]> | undefined;
279
+ input?: xstate0.InputFrom<T_1["logic"]> | undefined;
276
280
  syncSnapshot?: boolean;
277
- } & { [K_1 in xstate63.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate63.IsNotNever<xstate63.RequiredActorOptions<T_1>>> : never : never : never)): xstate63.ActorRefFromLogic<xstate63.GetConcreteByKey<xstate63.Values<{
281
+ } & { [K_1 in xstate0.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T_1>>> : never : never : never)): xstate0.ActorRefFromLogic<xstate0.GetConcreteByKey<xstate0.Values<{
278
282
  initCamera: {
279
283
  src: "initCamera";
280
- logic: xstate63.PromiseActorLogic<MediaStream, void, xstate63.EventObject>;
284
+ logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
281
285
  id: string | undefined;
282
286
  };
283
287
  uploadDocument: {
284
288
  src: "uploadDocument";
285
- logic: xstate63.PromiseActorLogic<DocumentUploadResponse, {
289
+ logic: xstate0.PromiseActorLogic<DocumentUploadResponse, {
286
290
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
287
291
  processingType: string;
288
292
  onProgress: (progress: number) => void;
289
- }, xstate63.EventObject>;
293
+ }, xstate0.EventObject>;
290
294
  id: string | undefined;
291
295
  };
292
296
  }>, "src", TSrc>["logic"]>;
293
- <TLogic extends xstate63.AnyActorLogic>(src: TLogic, ...[options]: xstate63.ConditionalRequired<[options?: ({
297
+ <TLogic extends xstate0.AnyActorLogic>(src: TLogic, ...[options]: xstate0.ConditionalRequired<[options?: ({
294
298
  id?: never;
295
299
  systemId?: string;
296
- input?: xstate63.InputFrom<TLogic> | undefined;
300
+ input?: xstate0.InputFrom<TLogic> | undefined;
297
301
  syncSnapshot?: boolean;
298
- } & { [K in xstate63.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate63.IsNotNever<xstate63.RequiredLogicInput<TLogic>>>): xstate63.ActorRefFromLogic<TLogic>;
302
+ } & { [K in xstate0.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredLogicInput<TLogic>>>): xstate0.ActorRefFromLogic<TLogic>;
299
303
  };
300
304
  input: DocumentCaptureInput;
301
- self: xstate63.ActorRef<xstate63.MachineSnapshot<DocumentCaptureContext, {
305
+ self: xstate0.ActorRef<xstate0.MachineSnapshot<DocumentCaptureContext, {
302
306
  type: "CAPTURE";
303
307
  } | {
304
308
  type: "FILE_SELECTED";
@@ -320,7 +324,7 @@ declare const documentCaptureMachine: xstate63.StateMachine<DocumentCaptureConte
320
324
  type: "SKIP";
321
325
  } | {
322
326
  type: "CLOSE";
323
- }, Record<string, xstate63.AnyActorRef | undefined>, xstate63.StateValue, string, unknown, any, any>, {
327
+ }, Record<string, xstate0.AnyActorRef | undefined>, xstate0.StateValue, string, unknown, any, any>, {
324
328
  type: "CAPTURE";
325
329
  } | {
326
330
  type: "FILE_SELECTED";
@@ -342,7 +346,7 @@ declare const documentCaptureMachine: xstate63.StateMachine<DocumentCaptureConte
342
346
  type: "SKIP";
343
347
  } | {
344
348
  type: "CLOSE";
345
- }, xstate63.AnyEventObject>;
349
+ }, xstate0.AnyEventObject>;
346
350
  }) => {
347
351
  config: {
348
352
  processingType: DocumentType;
@@ -436,10 +440,14 @@ declare const documentCaptureMachine: xstate63.StateMachine<DocumentCaptureConte
436
440
  readonly target: "uploading";
437
441
  readonly actions: "resetProgress";
438
442
  };
439
- readonly RETAKE: {
443
+ readonly RETAKE: readonly [{
444
+ readonly target: "tutorial";
445
+ readonly guard: "isCaptureMethodFile";
446
+ readonly actions: "clearCapturedDocument";
447
+ }, {
440
448
  readonly target: "capturing";
441
449
  readonly actions: "clearCapturedDocument";
442
- };
450
+ }];
443
451
  readonly CLOSE: {
444
452
  readonly target: "closed";
445
453
  readonly actions: "stopStream";
@@ -479,7 +487,7 @@ declare const documentCaptureMachine: xstate63.StateMachine<DocumentCaptureConte
479
487
  } | {
480
488
  type: "CLOSE";
481
489
  };
482
- self: xstate63.ActorRef<xstate63.MachineSnapshot<DocumentCaptureContext, {
490
+ self: xstate0.ActorRef<xstate0.MachineSnapshot<DocumentCaptureContext, {
483
491
  type: "CAPTURE";
484
492
  } | {
485
493
  type: "FILE_SELECTED";
@@ -501,7 +509,7 @@ declare const documentCaptureMachine: xstate63.StateMachine<DocumentCaptureConte
501
509
  type: "SKIP";
502
510
  } | {
503
511
  type: "CLOSE";
504
- }, Record<string, xstate63.AnyActorRef>, xstate63.StateValue, string, unknown, any, any>, {
512
+ }, Record<string, xstate0.AnyActorRef>, xstate0.StateValue, string, unknown, any, any>, {
505
513
  type: "CAPTURE";
506
514
  } | {
507
515
  type: "FILE_SELECTED";
@@ -523,7 +531,7 @@ declare const documentCaptureMachine: xstate63.StateMachine<DocumentCaptureConte
523
531
  type: "SKIP";
524
532
  } | {
525
533
  type: "CLOSE";
526
- }, xstate63.AnyEventObject>;
534
+ }, xstate0.AnyEventObject>;
527
535
  }) => {
528
536
  capturedDocument: CapturedDocument;
529
537
  processingType: DocumentType;
@@ -147,6 +147,7 @@ const documentCaptureMachine = setup({
147
147
  canRetryFile: ({ context }) => context.attemptsRemaining > 0 && context.captureMethod !== "camera",
148
148
  attemptsExhausted: ({ context }) => context.attemptsRemaining <= 0,
149
149
  isCameraMode: ({ context }) => context.config.captureMode === "camera",
150
+ isCaptureMethodFile: ({ context }) => context.captureMethod !== "camera",
150
151
  isPendingNextPage: ({ context }) => context.pendingNextPage
151
152
  }
152
153
  }).createMachine({
@@ -240,10 +241,14 @@ const documentCaptureMachine = setup({
240
241
  target: "uploading",
241
242
  actions: "resetProgress"
242
243
  },
243
- RETAKE: {
244
+ RETAKE: [{
245
+ target: "tutorial",
246
+ guard: "isCaptureMethodFile",
247
+ actions: "clearCapturedDocument"
248
+ }, {
244
249
  target: "capturing",
245
250
  actions: "clearCapturedDocument"
246
- },
251
+ }],
247
252
  CLOSE: {
248
253
  target: "closed",
249
254
  actions: "stopStream"
@@ -1,10 +1,10 @@
1
1
  import { t as Manager } from "./Manager-DsNvecSe.js";
2
2
  import "./camera-Bzi6CMAW.js";
3
3
  import { n as DocumentUploadContext, r as DocumentUploadInput, t as DocumentUploadConfig } from "./types-BHnsBsl_.js";
4
- import * as xstate0 from "xstate";
4
+ import * as xstate58 from "xstate";
5
5
 
6
6
  //#region src/modules/document-upload/documentUploadStateMachine.d.ts
7
- declare const documentUploadMachine: xstate0.StateMachine<DocumentUploadContext, {
7
+ declare const documentUploadMachine: xstate58.StateMachine<DocumentUploadContext, {
8
8
  type: "START";
9
9
  } | {
10
10
  type: "CAPTURE";
@@ -17,52 +17,52 @@ declare const documentUploadMachine: xstate0.StateMachine<DocumentUploadContext,
17
17
  } | {
18
18
  type: "CLOSE";
19
19
  }, {
20
- [x: string]: xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>> | xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<void, {
20
+ [x: string]: xstate58.ActorRefFromLogic<xstate58.PromiseActorLogic<MediaStream, void, xstate58.EventObject>> | xstate58.ActorRefFromLogic<xstate58.PromiseActorLogic<void, {
21
21
  imageBase64: string;
22
22
  documentType: string;
23
23
  onProgress: (progress: number) => void;
24
- }, xstate0.EventObject>> | undefined;
25
- }, xstate0.Values<{
24
+ }, xstate58.EventObject>> | undefined;
25
+ }, xstate58.Values<{
26
26
  initCamera: {
27
27
  src: "initCamera";
28
- logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
28
+ logic: xstate58.PromiseActorLogic<MediaStream, void, xstate58.EventObject>;
29
29
  id: string | undefined;
30
30
  };
31
31
  uploadDocument: {
32
32
  src: "uploadDocument";
33
- logic: xstate0.PromiseActorLogic<void, {
33
+ logic: xstate58.PromiseActorLogic<void, {
34
34
  imageBase64: string;
35
35
  documentType: string;
36
36
  onProgress: (progress: number) => void;
37
- }, xstate0.EventObject>;
37
+ }, xstate58.EventObject>;
38
38
  id: string | undefined;
39
39
  };
40
- }>, xstate0.Values<{
40
+ }>, xstate58.Values<{
41
41
  setStream: {
42
42
  type: "setStream";
43
- params: xstate0.NonReducibleUnknown;
44
- };
45
- setImageAndClearError: {
46
- type: "setImageAndClearError";
47
- params: xstate0.NonReducibleUnknown;
43
+ params: xstate58.NonReducibleUnknown;
48
44
  };
49
45
  setProgress: {
50
46
  type: "setProgress";
51
- params: xstate0.NonReducibleUnknown;
52
- };
53
- setError: {
54
- type: "setError";
55
- params: xstate0.NonReducibleUnknown;
47
+ params: xstate58.NonReducibleUnknown;
56
48
  };
57
49
  clearError: {
58
50
  type: "clearError";
59
- params: xstate0.NonReducibleUnknown;
51
+ params: xstate58.NonReducibleUnknown;
60
52
  };
61
53
  stopStream: {
62
54
  type: "stopStream";
63
- params: xstate0.NonReducibleUnknown;
55
+ params: xstate58.NonReducibleUnknown;
56
+ };
57
+ setImageAndClearError: {
58
+ type: "setImageAndClearError";
59
+ params: xstate58.NonReducibleUnknown;
60
+ };
61
+ setError: {
62
+ type: "setError";
63
+ params: xstate58.NonReducibleUnknown;
64
64
  };
65
- }>, never, never, "error" | "initCamera" | "idle" | "capturing" | "closed" | "uploading" | "finished", string, DocumentUploadInput, xstate0.NonReducibleUnknown, xstate0.EventObject, xstate0.MetaObject, {
65
+ }>, never, never, "error" | "initCamera" | "capturing" | "finished" | "closed" | "uploading" | "idle", string, DocumentUploadInput, xstate58.NonReducibleUnknown, xstate58.EventObject, xstate58.MetaObject, {
66
66
  readonly id: "documentUpload";
67
67
  readonly initial: "idle";
68
68
  readonly context: ({
@@ -71,67 +71,67 @@ declare const documentUploadMachine: xstate0.StateMachine<DocumentUploadContext,
71
71
  spawn: {
72
72
  <TSrc extends "initCamera" | "uploadDocument">(logic: TSrc, ...[options]: ({
73
73
  src: "initCamera";
74
- logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
74
+ logic: xstate58.PromiseActorLogic<MediaStream, void, xstate58.EventObject>;
75
75
  id: string | undefined;
76
76
  } extends infer T ? T extends {
77
77
  src: "initCamera";
78
- logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
78
+ logic: xstate58.PromiseActorLogic<MediaStream, void, xstate58.EventObject>;
79
79
  id: string | undefined;
80
80
  } ? T extends {
81
81
  src: TSrc;
82
- } ? xstate0.ConditionalRequired<[options?: ({
82
+ } ? xstate58.ConditionalRequired<[options?: ({
83
83
  id?: T["id"] | undefined;
84
84
  systemId?: string;
85
- input?: xstate0.InputFrom<T["logic"]> | undefined;
85
+ input?: xstate58.InputFrom<T["logic"]> | undefined;
86
86
  syncSnapshot?: boolean;
87
- } & { [K in xstate0.RequiredActorOptions<T>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T>>> : never : never : never) | ({
87
+ } & { [K in xstate58.RequiredActorOptions<T>]: unknown }) | undefined], xstate58.IsNotNever<xstate58.RequiredActorOptions<T>>> : never : never : never) | ({
88
88
  src: "uploadDocument";
89
- logic: xstate0.PromiseActorLogic<void, {
89
+ logic: xstate58.PromiseActorLogic<void, {
90
90
  imageBase64: string;
91
91
  documentType: string;
92
92
  onProgress: (progress: number) => void;
93
- }, xstate0.EventObject>;
93
+ }, xstate58.EventObject>;
94
94
  id: string | undefined;
95
95
  } extends infer T_1 ? T_1 extends {
96
96
  src: "uploadDocument";
97
- logic: xstate0.PromiseActorLogic<void, {
97
+ logic: xstate58.PromiseActorLogic<void, {
98
98
  imageBase64: string;
99
99
  documentType: string;
100
100
  onProgress: (progress: number) => void;
101
- }, xstate0.EventObject>;
101
+ }, xstate58.EventObject>;
102
102
  id: string | undefined;
103
103
  } ? T_1 extends {
104
104
  src: TSrc;
105
- } ? xstate0.ConditionalRequired<[options?: ({
105
+ } ? xstate58.ConditionalRequired<[options?: ({
106
106
  id?: T_1["id"] | undefined;
107
107
  systemId?: string;
108
- input?: xstate0.InputFrom<T_1["logic"]> | undefined;
108
+ input?: xstate58.InputFrom<T_1["logic"]> | undefined;
109
109
  syncSnapshot?: boolean;
110
- } & { [K_1 in xstate0.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T_1>>> : never : never : never)): xstate0.ActorRefFromLogic<xstate0.GetConcreteByKey<xstate0.Values<{
110
+ } & { [K_1 in xstate58.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate58.IsNotNever<xstate58.RequiredActorOptions<T_1>>> : never : never : never)): xstate58.ActorRefFromLogic<xstate58.GetConcreteByKey<xstate58.Values<{
111
111
  initCamera: {
112
112
  src: "initCamera";
113
- logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
113
+ logic: xstate58.PromiseActorLogic<MediaStream, void, xstate58.EventObject>;
114
114
  id: string | undefined;
115
115
  };
116
116
  uploadDocument: {
117
117
  src: "uploadDocument";
118
- logic: xstate0.PromiseActorLogic<void, {
118
+ logic: xstate58.PromiseActorLogic<void, {
119
119
  imageBase64: string;
120
120
  documentType: string;
121
121
  onProgress: (progress: number) => void;
122
- }, xstate0.EventObject>;
122
+ }, xstate58.EventObject>;
123
123
  id: string | undefined;
124
124
  };
125
125
  }>, "src", TSrc>["logic"]>;
126
- <TLogic extends xstate0.AnyActorLogic>(src: TLogic, ...[options]: xstate0.ConditionalRequired<[options?: ({
126
+ <TLogic extends xstate58.AnyActorLogic>(src: TLogic, ...[options]: xstate58.ConditionalRequired<[options?: ({
127
127
  id?: never;
128
128
  systemId?: string;
129
- input?: xstate0.InputFrom<TLogic> | undefined;
129
+ input?: xstate58.InputFrom<TLogic> | undefined;
130
130
  syncSnapshot?: boolean;
131
- } & { [K in xstate0.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredLogicInput<TLogic>>>): xstate0.ActorRefFromLogic<TLogic>;
131
+ } & { [K in xstate58.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate58.IsNotNever<xstate58.RequiredLogicInput<TLogic>>>): xstate58.ActorRefFromLogic<TLogic>;
132
132
  };
133
133
  input: DocumentUploadInput;
134
- self: xstate0.ActorRef<xstate0.MachineSnapshot<DocumentUploadContext, {
134
+ self: xstate58.ActorRef<xstate58.MachineSnapshot<DocumentUploadContext, {
135
135
  type: "START";
136
136
  } | {
137
137
  type: "CAPTURE";
@@ -143,7 +143,7 @@ declare const documentUploadMachine: xstate0.StateMachine<DocumentUploadContext,
143
143
  type: "RETRY";
144
144
  } | {
145
145
  type: "CLOSE";
146
- }, Record<string, xstate0.AnyActorRef | undefined>, xstate0.StateValue, string, unknown, any, any>, {
146
+ }, Record<string, xstate58.AnyActorRef | undefined>, xstate58.StateValue, string, unknown, any, any>, {
147
147
  type: "START";
148
148
  } | {
149
149
  type: "CAPTURE";
@@ -155,7 +155,7 @@ declare const documentUploadMachine: xstate0.StateMachine<DocumentUploadContext,
155
155
  type: "RETRY";
156
156
  } | {
157
157
  type: "CLOSE";
158
- }, xstate0.AnyEventObject>;
158
+ }, xstate58.AnyEventObject>;
159
159
  }) => {
160
160
  config: DocumentUploadConfig;
161
161
  stream: undefined;
@@ -225,7 +225,7 @@ declare const documentUploadMachine: xstate0.StateMachine<DocumentUploadContext,
225
225
  } | {
226
226
  type: "CLOSE";
227
227
  };
228
- self: xstate0.ActorRef<xstate0.MachineSnapshot<DocumentUploadContext, {
228
+ self: xstate58.ActorRef<xstate58.MachineSnapshot<DocumentUploadContext, {
229
229
  type: "START";
230
230
  } | {
231
231
  type: "CAPTURE";
@@ -237,7 +237,7 @@ declare const documentUploadMachine: xstate0.StateMachine<DocumentUploadContext,
237
237
  type: "RETRY";
238
238
  } | {
239
239
  type: "CLOSE";
240
- }, Record<string, xstate0.AnyActorRef>, xstate0.StateValue, string, unknown, any, any>, {
240
+ }, Record<string, xstate58.AnyActorRef>, xstate58.StateValue, string, unknown, any, any>, {
241
241
  type: "START";
242
242
  } | {
243
243
  type: "CAPTURE";
@@ -249,7 +249,7 @@ declare const documentUploadMachine: xstate0.StateMachine<DocumentUploadContext,
249
249
  type: "RETRY";
250
250
  } | {
251
251
  type: "CLOSE";
252
- }, xstate0.AnyEventObject>;
252
+ }, xstate58.AnyEventObject>;
253
253
  }) => {
254
254
  imageBase64: string;
255
255
  documentType: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/core",
3
- "version": "0.0.0-dev-20260318-aab03c7",
3
+ "version": "0.0.0-dev-20260320-26b35b4",
4
4
  "type": "module",
5
5
  "main": "./dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",