@incodetech/core 0.0.0-dev-20260430-7028aa7 → 0.0.0-dev-20260430-c2b3d94

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-uUcXOI3u.js";
2
2
  import "./Actor-BW-sqJw1.js";
3
- import { a as AE_CONSENT_KEYS, c as ConsentKey, g as getDefaultConsentChecks, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, s as ConsentChecks, u as ElectronicSignatureDocument } from "./index-BGLzW9vv.js";
3
+ import { a as AE_CONSENT_KEYS, c as ConsentKey, g as getDefaultConsentChecks, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, s as ConsentChecks, u as ElectronicSignatureDocument } from "./index-DvosGSCu.js";
4
4
 
5
5
  //#region src/modules/ae-signature/index.d.ts
6
6
 
package/dist/consent.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { t as Manager } from "./Manager-uUcXOI3u.js";
2
2
  import "./Actor-BW-sqJw1.js";
3
- import * as xstate319 from "xstate";
3
+ import * as xstate487 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: xstate319.StateMachine<ConsentContext, {
39
+ declare const consentMachine: xstate487.StateMachine<ConsentContext, {
40
40
  type: "LOAD";
41
41
  } | {
42
42
  type: "TOGGLE_CHECKBOX";
@@ -48,53 +48,53 @@ declare const consentMachine: xstate319.StateMachine<ConsentContext, {
48
48
  } | {
49
49
  type: "RESET";
50
50
  }, {
51
- [x: string]: xstate319.ActorRefFromLogic<xstate319.PromiseActorLogic<FetchCombinedConsentResponse, {
51
+ [x: string]: xstate487.ActorRefFromLogic<xstate487.PromiseActorLogic<FetchCombinedConsentResponse, {
52
52
  consentId: string;
53
- }, xstate319.EventObject>> | xstate319.ActorRefFromLogic<xstate319.PromiseActorLogic<void, {
53
+ }, xstate487.EventObject>> | xstate487.ActorRefFromLogic<xstate487.PromiseActorLogic<void, {
54
54
  languageConsentId: string;
55
55
  checkboxes: ConsentCheckbox[];
56
- }, xstate319.EventObject>> | undefined;
57
- }, xstate319.Values<{
56
+ }, xstate487.EventObject>> | undefined;
57
+ }, xstate487.Values<{
58
58
  fetchConsent: {
59
59
  src: "fetchConsent";
60
- logic: xstate319.PromiseActorLogic<FetchCombinedConsentResponse, {
60
+ logic: xstate487.PromiseActorLogic<FetchCombinedConsentResponse, {
61
61
  consentId: string;
62
- }, xstate319.EventObject>;
62
+ }, xstate487.EventObject>;
63
63
  id: string | undefined;
64
64
  };
65
65
  submitConsent: {
66
66
  src: "submitConsent";
67
- logic: xstate319.PromiseActorLogic<void, {
67
+ logic: xstate487.PromiseActorLogic<void, {
68
68
  languageConsentId: string;
69
69
  checkboxes: ConsentCheckbox[];
70
- }, xstate319.EventObject>;
70
+ }, xstate487.EventObject>;
71
71
  id: string | undefined;
72
72
  };
73
- }>, xstate319.Values<{
73
+ }>, xstate487.Values<{
74
74
  setError: {
75
75
  type: "setError";
76
- params: xstate319.NonReducibleUnknown;
76
+ params: xstate487.NonReducibleUnknown;
77
77
  };
78
78
  clearError: {
79
79
  type: "clearError";
80
- params: xstate319.NonReducibleUnknown;
81
- };
82
- resetContext: {
83
- type: "resetContext";
84
- params: xstate319.NonReducibleUnknown;
80
+ params: xstate487.NonReducibleUnknown;
85
81
  };
86
82
  setConsentData: {
87
83
  type: "setConsentData";
88
- params: xstate319.NonReducibleUnknown;
84
+ params: xstate487.NonReducibleUnknown;
89
85
  };
90
86
  toggleCheckbox: {
91
87
  type: "toggleCheckbox";
92
- params: xstate319.NonReducibleUnknown;
88
+ params: xstate487.NonReducibleUnknown;
89
+ };
90
+ resetContext: {
91
+ type: "resetContext";
92
+ params: xstate487.NonReducibleUnknown;
93
93
  };
94
94
  }>, {
95
95
  type: "canSubmit";
96
96
  params: unknown;
97
- }, never, "error" | "idle" | "finished" | "loading" | "display" | "submitting", string, ConsentInput, xstate319.NonReducibleUnknown, xstate319.EventObject, xstate319.MetaObject, {
97
+ }, never, "error" | "idle" | "finished" | "loading" | "display" | "submitting", string, ConsentInput, xstate487.NonReducibleUnknown, xstate487.EventObject, xstate487.MetaObject, {
98
98
  readonly id: "consent";
99
99
  readonly initial: "idle";
100
100
  readonly context: ({
@@ -103,70 +103,70 @@ declare const consentMachine: xstate319.StateMachine<ConsentContext, {
103
103
  spawn: {
104
104
  <TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
105
105
  src: "fetchConsent";
106
- logic: xstate319.PromiseActorLogic<FetchCombinedConsentResponse, {
106
+ logic: xstate487.PromiseActorLogic<FetchCombinedConsentResponse, {
107
107
  consentId: string;
108
- }, xstate319.EventObject>;
108
+ }, xstate487.EventObject>;
109
109
  id: string | undefined;
110
110
  } extends infer T ? T extends {
111
111
  src: "fetchConsent";
112
- logic: xstate319.PromiseActorLogic<FetchCombinedConsentResponse, {
112
+ logic: xstate487.PromiseActorLogic<FetchCombinedConsentResponse, {
113
113
  consentId: string;
114
- }, xstate319.EventObject>;
114
+ }, xstate487.EventObject>;
115
115
  id: string | undefined;
116
116
  } ? T extends {
117
117
  src: TSrc;
118
- } ? xstate319.ConditionalRequired<[options?: ({
118
+ } ? xstate487.ConditionalRequired<[options?: ({
119
119
  id?: T["id"] | undefined;
120
120
  systemId?: string;
121
- input?: xstate319.InputFrom<T["logic"]> | undefined;
121
+ input?: xstate487.InputFrom<T["logic"]> | undefined;
122
122
  syncSnapshot?: boolean;
123
- } & { [K in xstate319.RequiredActorOptions<T>]: unknown }) | undefined], xstate319.IsNotNever<xstate319.RequiredActorOptions<T>>> : never : never : never) | ({
123
+ } & { [K in xstate487.RequiredActorOptions<T>]: unknown }) | undefined], xstate487.IsNotNever<xstate487.RequiredActorOptions<T>>> : never : never : never) | ({
124
124
  src: "submitConsent";
125
- logic: xstate319.PromiseActorLogic<void, {
125
+ logic: xstate487.PromiseActorLogic<void, {
126
126
  languageConsentId: string;
127
127
  checkboxes: ConsentCheckbox[];
128
- }, xstate319.EventObject>;
128
+ }, xstate487.EventObject>;
129
129
  id: string | undefined;
130
130
  } extends infer T_1 ? T_1 extends {
131
131
  src: "submitConsent";
132
- logic: xstate319.PromiseActorLogic<void, {
132
+ logic: xstate487.PromiseActorLogic<void, {
133
133
  languageConsentId: string;
134
134
  checkboxes: ConsentCheckbox[];
135
- }, xstate319.EventObject>;
135
+ }, xstate487.EventObject>;
136
136
  id: string | undefined;
137
137
  } ? T_1 extends {
138
138
  src: TSrc;
139
- } ? xstate319.ConditionalRequired<[options?: ({
139
+ } ? xstate487.ConditionalRequired<[options?: ({
140
140
  id?: T_1["id"] | undefined;
141
141
  systemId?: string;
142
- input?: xstate319.InputFrom<T_1["logic"]> | undefined;
142
+ input?: xstate487.InputFrom<T_1["logic"]> | undefined;
143
143
  syncSnapshot?: boolean;
144
- } & { [K_1 in xstate319.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate319.IsNotNever<xstate319.RequiredActorOptions<T_1>>> : never : never : never)): xstate319.ActorRefFromLogic<xstate319.GetConcreteByKey<xstate319.Values<{
144
+ } & { [K_1 in xstate487.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate487.IsNotNever<xstate487.RequiredActorOptions<T_1>>> : never : never : never)): xstate487.ActorRefFromLogic<xstate487.GetConcreteByKey<xstate487.Values<{
145
145
  fetchConsent: {
146
146
  src: "fetchConsent";
147
- logic: xstate319.PromiseActorLogic<FetchCombinedConsentResponse, {
147
+ logic: xstate487.PromiseActorLogic<FetchCombinedConsentResponse, {
148
148
  consentId: string;
149
- }, xstate319.EventObject>;
149
+ }, xstate487.EventObject>;
150
150
  id: string | undefined;
151
151
  };
152
152
  submitConsent: {
153
153
  src: "submitConsent";
154
- logic: xstate319.PromiseActorLogic<void, {
154
+ logic: xstate487.PromiseActorLogic<void, {
155
155
  languageConsentId: string;
156
156
  checkboxes: ConsentCheckbox[];
157
- }, xstate319.EventObject>;
157
+ }, xstate487.EventObject>;
158
158
  id: string | undefined;
159
159
  };
160
160
  }>, "src", TSrc>["logic"]>;
161
- <TLogic extends xstate319.AnyActorLogic>(src: TLogic, ...[options]: xstate319.ConditionalRequired<[options?: ({
161
+ <TLogic extends xstate487.AnyActorLogic>(src: TLogic, ...[options]: xstate487.ConditionalRequired<[options?: ({
162
162
  id?: never;
163
163
  systemId?: string;
164
- input?: xstate319.InputFrom<TLogic> | undefined;
164
+ input?: xstate487.InputFrom<TLogic> | undefined;
165
165
  syncSnapshot?: boolean;
166
- } & { [K in xstate319.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate319.IsNotNever<xstate319.RequiredLogicInput<TLogic>>>): xstate319.ActorRefFromLogic<TLogic>;
166
+ } & { [K in xstate487.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate487.IsNotNever<xstate487.RequiredLogicInput<TLogic>>>): xstate487.ActorRefFromLogic<TLogic>;
167
167
  };
168
168
  input: ConsentInput;
169
- self: xstate319.ActorRef<xstate319.MachineSnapshot<ConsentContext, {
169
+ self: xstate487.ActorRef<xstate487.MachineSnapshot<ConsentContext, {
170
170
  type: "LOAD";
171
171
  } | {
172
172
  type: "TOGGLE_CHECKBOX";
@@ -177,7 +177,7 @@ declare const consentMachine: xstate319.StateMachine<ConsentContext, {
177
177
  type: "RETRY";
178
178
  } | {
179
179
  type: "RESET";
180
- }, Record<string, xstate319.AnyActorRef | undefined>, xstate319.StateValue, string, unknown, any, any>, {
180
+ }, Record<string, xstate487.AnyActorRef | undefined>, xstate487.StateValue, string, unknown, any, any>, {
181
181
  type: "LOAD";
182
182
  } | {
183
183
  type: "TOGGLE_CHECKBOX";
@@ -188,7 +188,7 @@ declare const consentMachine: xstate319.StateMachine<ConsentContext, {
188
188
  type: "RETRY";
189
189
  } | {
190
190
  type: "RESET";
191
- }, xstate319.AnyEventObject>;
191
+ }, xstate487.AnyEventObject>;
192
192
  }) => {
193
193
  config: ConsentConfig;
194
194
  title: string;
@@ -226,7 +226,7 @@ declare const consentMachine: xstate319.StateMachine<ConsentContext, {
226
226
  } | {
227
227
  type: "RESET";
228
228
  };
229
- self: xstate319.ActorRef<xstate319.MachineSnapshot<ConsentContext, {
229
+ self: xstate487.ActorRef<xstate487.MachineSnapshot<ConsentContext, {
230
230
  type: "LOAD";
231
231
  } | {
232
232
  type: "TOGGLE_CHECKBOX";
@@ -237,7 +237,7 @@ declare const consentMachine: xstate319.StateMachine<ConsentContext, {
237
237
  type: "RETRY";
238
238
  } | {
239
239
  type: "RESET";
240
- }, Record<string, xstate319.AnyActorRef>, xstate319.StateValue, string, unknown, any, any>, {
240
+ }, Record<string, xstate487.AnyActorRef>, xstate487.StateValue, string, unknown, any, any>, {
241
241
  type: "LOAD";
242
242
  } | {
243
243
  type: "TOGGLE_CHECKBOX";
@@ -248,7 +248,7 @@ declare const consentMachine: xstate319.StateMachine<ConsentContext, {
248
248
  type: "RETRY";
249
249
  } | {
250
250
  type: "RESET";
251
- }, xstate319.AnyEventObject>;
251
+ }, xstate487.AnyEventObject>;
252
252
  }) => {
253
253
  consentId: string;
254
254
  };
@@ -297,7 +297,7 @@ declare const consentMachine: xstate319.StateMachine<ConsentContext, {
297
297
  } | {
298
298
  type: "RESET";
299
299
  };
300
- self: xstate319.ActorRef<xstate319.MachineSnapshot<ConsentContext, {
300
+ self: xstate487.ActorRef<xstate487.MachineSnapshot<ConsentContext, {
301
301
  type: "LOAD";
302
302
  } | {
303
303
  type: "TOGGLE_CHECKBOX";
@@ -308,7 +308,7 @@ declare const consentMachine: xstate319.StateMachine<ConsentContext, {
308
308
  type: "RETRY";
309
309
  } | {
310
310
  type: "RESET";
311
- }, Record<string, xstate319.AnyActorRef>, xstate319.StateValue, string, unknown, any, any>, {
311
+ }, Record<string, xstate487.AnyActorRef>, xstate487.StateValue, string, unknown, any, any>, {
312
312
  type: "LOAD";
313
313
  } | {
314
314
  type: "TOGGLE_CHECKBOX";
@@ -319,7 +319,7 @@ declare const consentMachine: xstate319.StateMachine<ConsentContext, {
319
319
  type: "RETRY";
320
320
  } | {
321
321
  type: "RESET";
322
- }, xstate319.AnyEventObject>;
322
+ }, xstate487.AnyEventObject>;
323
323
  }) => {
324
324
  languageConsentId: string;
325
325
  checkboxes: ConsentCheckbox[];
@@ -1,7 +1,7 @@
1
1
  import { t as Manager } from "./Manager-uUcXOI3u.js";
2
2
  import "./Actor-BW-sqJw1.js";
3
3
  import { t as CameraStream } from "./camera-8mZXnNHU.js";
4
- import * as xstate221 from "xstate";
4
+ import * as xstate389 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';
@@ -84,7 +84,7 @@ type DocumentCaptureInput = {
84
84
  };
85
85
  //#endregion
86
86
  //#region src/modules/document-capture/documentCaptureStateMachine.d.ts
87
- declare const documentCaptureMachine: xstate221.StateMachine<DocumentCaptureContext, {
87
+ declare const documentCaptureMachine: xstate389.StateMachine<DocumentCaptureContext, {
88
88
  type: "CAPTURE";
89
89
  } | {
90
90
  type: "FILE_SELECTED";
@@ -113,109 +113,109 @@ declare const documentCaptureMachine: xstate221.StateMachine<DocumentCaptureCont
113
113
  } | {
114
114
  type: "CLOSE";
115
115
  }, {
116
- [x: string]: xstate221.ActorRefFromLogic<xstate221.PromiseActorLogic<MediaStream, void, xstate221.EventObject>> | xstate221.ActorRefFromLogic<xstate221.PromiseActorLogic<DocumentUploadResponse, {
116
+ [x: string]: xstate389.ActorRefFromLogic<xstate389.PromiseActorLogic<MediaStream, void, xstate389.EventObject>> | xstate389.ActorRefFromLogic<xstate389.PromiseActorLogic<DocumentUploadResponse, {
117
117
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
118
118
  processingType: string;
119
119
  onProgress: (progress: number) => void;
120
- }, xstate221.EventObject>> | xstate221.ActorRefFromLogic<xstate221.PromiseActorLogic<FinalizeDocumentResponse, {
120
+ }, xstate389.EventObject>> | xstate389.ActorRefFromLogic<xstate389.PromiseActorLogic<FinalizeDocumentResponse, {
121
121
  processingType: string;
122
- }, xstate221.EventObject>> | undefined;
123
- }, xstate221.Values<{
122
+ }, xstate389.EventObject>> | undefined;
123
+ }, xstate389.Values<{
124
124
  uploadDocument: {
125
125
  src: "uploadDocument";
126
- logic: xstate221.PromiseActorLogic<DocumentUploadResponse, {
126
+ logic: xstate389.PromiseActorLogic<DocumentUploadResponse, {
127
127
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
128
128
  processingType: string;
129
129
  onProgress: (progress: number) => void;
130
- }, xstate221.EventObject>;
130
+ }, xstate389.EventObject>;
131
131
  id: string | undefined;
132
132
  };
133
133
  initCamera: {
134
134
  src: "initCamera";
135
- logic: xstate221.PromiseActorLogic<MediaStream, void, xstate221.EventObject>;
135
+ logic: xstate389.PromiseActorLogic<MediaStream, void, xstate389.EventObject>;
136
136
  id: string | undefined;
137
137
  };
138
138
  finalizeDocumentRequest: {
139
139
  src: "finalizeDocumentRequest";
140
- logic: xstate221.PromiseActorLogic<FinalizeDocumentResponse, {
140
+ logic: xstate389.PromiseActorLogic<FinalizeDocumentResponse, {
141
141
  processingType: string;
142
- }, xstate221.EventObject>;
142
+ }, xstate389.EventObject>;
143
143
  id: string | undefined;
144
144
  };
145
- }>, xstate221.Values<{
146
- clearError: {
147
- type: "clearError";
148
- params: xstate221.NonReducibleUnknown;
149
- };
145
+ }>, xstate389.Values<{
150
146
  setStream: {
151
147
  type: "setStream";
152
- params: xstate221.NonReducibleUnknown;
148
+ params: xstate389.NonReducibleUnknown;
153
149
  };
154
150
  setProgress: {
155
151
  type: "setProgress";
156
- params: xstate221.NonReducibleUnknown;
152
+ params: xstate389.NonReducibleUnknown;
153
+ };
154
+ clearError: {
155
+ type: "clearError";
156
+ params: xstate389.NonReducibleUnknown;
157
157
  };
158
158
  stopStream: {
159
159
  type: "stopStream";
160
- params: xstate221.NonReducibleUnknown;
160
+ params: xstate389.NonReducibleUnknown;
161
161
  };
162
162
  setCapturedDocument: {
163
163
  type: "setCapturedDocument";
164
- params: xstate221.NonReducibleUnknown;
164
+ params: xstate389.NonReducibleUnknown;
165
165
  };
166
166
  setFileTooLargeError: {
167
167
  type: "setFileTooLargeError";
168
- params: xstate221.NonReducibleUnknown;
168
+ params: xstate389.NonReducibleUnknown;
169
169
  };
170
170
  setUploadError: {
171
171
  type: "setUploadError";
172
- params: xstate221.NonReducibleUnknown;
172
+ params: xstate389.NonReducibleUnknown;
173
173
  };
174
174
  setFinalizeError: {
175
175
  type: "setFinalizeError";
176
- params: xstate221.NonReducibleUnknown;
176
+ params: xstate389.NonReducibleUnknown;
177
177
  };
178
178
  decrementAttemptsRemaining: {
179
179
  type: "decrementAttemptsRemaining";
180
- params: xstate221.NonReducibleUnknown;
180
+ params: xstate389.NonReducibleUnknown;
181
181
  };
182
182
  setCaptureMethodFile: {
183
183
  type: "setCaptureMethodFile";
184
- params: xstate221.NonReducibleUnknown;
184
+ params: xstate389.NonReducibleUnknown;
185
185
  };
186
186
  setCaptureMethodCamera: {
187
187
  type: "setCaptureMethodCamera";
188
- params: xstate221.NonReducibleUnknown;
188
+ params: xstate389.NonReducibleUnknown;
189
189
  };
190
190
  setCaptureMethodGallery: {
191
191
  type: "setCaptureMethodGallery";
192
- params: xstate221.NonReducibleUnknown;
192
+ params: xstate389.NonReducibleUnknown;
193
193
  };
194
194
  clearCapturedDocument: {
195
195
  type: "clearCapturedDocument";
196
- params: xstate221.NonReducibleUnknown;
196
+ params: xstate389.NonReducibleUnknown;
197
197
  };
198
198
  resetPageNumber: {
199
199
  type: "resetPageNumber";
200
- params: xstate221.NonReducibleUnknown;
200
+ params: xstate389.NonReducibleUnknown;
201
201
  };
202
202
  clearCapturedDocumentGalleryRetake: {
203
203
  type: "clearCapturedDocumentGalleryRetake";
204
- params: xstate221.NonReducibleUnknown;
204
+ params: xstate389.NonReducibleUnknown;
205
205
  };
206
206
  setNextPageType: {
207
207
  type: "setNextPageType";
208
- params: xstate221.NonReducibleUnknown;
208
+ params: xstate389.NonReducibleUnknown;
209
209
  };
210
210
  clearForNextPage: {
211
211
  type: "clearForNextPage";
212
- params: xstate221.NonReducibleUnknown;
212
+ params: xstate389.NonReducibleUnknown;
213
213
  };
214
214
  resetProgress: {
215
215
  type: "resetProgress";
216
- params: xstate221.NonReducibleUnknown;
216
+ params: xstate389.NonReducibleUnknown;
217
217
  };
218
- }>, xstate221.Values<{
218
+ }>, xstate389.Values<{
219
219
  allowSkip: {
220
220
  type: "allowSkip";
221
221
  params: unknown;
@@ -268,7 +268,7 @@ declare const documentCaptureMachine: xstate221.StateMachine<DocumentCaptureCont
268
268
  type: "fileSizeOkForNonGallery";
269
269
  params: unknown;
270
270
  };
271
- }>, never, "uploading" | "closed" | "success" | "finished" | "initCamera" | "capturing" | "tutorial" | "preview" | "failure" | "nextPage" | "finalizing", string, DocumentCaptureInput, xstate221.NonReducibleUnknown, xstate221.EventObject, xstate221.MetaObject, {
271
+ }>, never, "uploading" | "closed" | "success" | "finished" | "initCamera" | "capturing" | "tutorial" | "preview" | "failure" | "nextPage" | "finalizing", string, DocumentCaptureInput, xstate389.NonReducibleUnknown, xstate389.EventObject, xstate389.MetaObject, {
272
272
  readonly id: "documentCapture";
273
273
  readonly initial: "tutorial";
274
274
  readonly context: ({
@@ -277,93 +277,93 @@ declare const documentCaptureMachine: xstate221.StateMachine<DocumentCaptureCont
277
277
  spawn: {
278
278
  <TSrc extends "uploadDocument" | "initCamera" | "finalizeDocumentRequest">(logic: TSrc, ...[options]: ({
279
279
  src: "uploadDocument";
280
- logic: xstate221.PromiseActorLogic<DocumentUploadResponse, {
280
+ logic: xstate389.PromiseActorLogic<DocumentUploadResponse, {
281
281
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
282
282
  processingType: string;
283
283
  onProgress: (progress: number) => void;
284
- }, xstate221.EventObject>;
284
+ }, xstate389.EventObject>;
285
285
  id: string | undefined;
286
286
  } extends infer T ? T extends {
287
287
  src: "uploadDocument";
288
- logic: xstate221.PromiseActorLogic<DocumentUploadResponse, {
288
+ logic: xstate389.PromiseActorLogic<DocumentUploadResponse, {
289
289
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
290
290
  processingType: string;
291
291
  onProgress: (progress: number) => void;
292
- }, xstate221.EventObject>;
292
+ }, xstate389.EventObject>;
293
293
  id: string | undefined;
294
294
  } ? T extends {
295
295
  src: TSrc;
296
- } ? xstate221.ConditionalRequired<[options?: ({
296
+ } ? xstate389.ConditionalRequired<[options?: ({
297
297
  id?: T["id"] | undefined;
298
298
  systemId?: string;
299
- input?: xstate221.InputFrom<T["logic"]> | undefined;
299
+ input?: xstate389.InputFrom<T["logic"]> | undefined;
300
300
  syncSnapshot?: boolean;
301
- } & { [K in xstate221.RequiredActorOptions<T>]: unknown }) | undefined], xstate221.IsNotNever<xstate221.RequiredActorOptions<T>>> : never : never : never) | ({
301
+ } & { [K in xstate389.RequiredActorOptions<T>]: unknown }) | undefined], xstate389.IsNotNever<xstate389.RequiredActorOptions<T>>> : never : never : never) | ({
302
302
  src: "initCamera";
303
- logic: xstate221.PromiseActorLogic<MediaStream, void, xstate221.EventObject>;
303
+ logic: xstate389.PromiseActorLogic<MediaStream, void, xstate389.EventObject>;
304
304
  id: string | undefined;
305
305
  } extends infer T_1 ? T_1 extends {
306
306
  src: "initCamera";
307
- logic: xstate221.PromiseActorLogic<MediaStream, void, xstate221.EventObject>;
307
+ logic: xstate389.PromiseActorLogic<MediaStream, void, xstate389.EventObject>;
308
308
  id: string | undefined;
309
309
  } ? T_1 extends {
310
310
  src: TSrc;
311
- } ? xstate221.ConditionalRequired<[options?: ({
311
+ } ? xstate389.ConditionalRequired<[options?: ({
312
312
  id?: T_1["id"] | undefined;
313
313
  systemId?: string;
314
- input?: xstate221.InputFrom<T_1["logic"]> | undefined;
314
+ input?: xstate389.InputFrom<T_1["logic"]> | undefined;
315
315
  syncSnapshot?: boolean;
316
- } & { [K_1 in xstate221.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate221.IsNotNever<xstate221.RequiredActorOptions<T_1>>> : never : never : never) | ({
316
+ } & { [K_1 in xstate389.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate389.IsNotNever<xstate389.RequiredActorOptions<T_1>>> : never : never : never) | ({
317
317
  src: "finalizeDocumentRequest";
318
- logic: xstate221.PromiseActorLogic<FinalizeDocumentResponse, {
318
+ logic: xstate389.PromiseActorLogic<FinalizeDocumentResponse, {
319
319
  processingType: string;
320
- }, xstate221.EventObject>;
320
+ }, xstate389.EventObject>;
321
321
  id: string | undefined;
322
322
  } extends infer T_2 ? T_2 extends {
323
323
  src: "finalizeDocumentRequest";
324
- logic: xstate221.PromiseActorLogic<FinalizeDocumentResponse, {
324
+ logic: xstate389.PromiseActorLogic<FinalizeDocumentResponse, {
325
325
  processingType: string;
326
- }, xstate221.EventObject>;
326
+ }, xstate389.EventObject>;
327
327
  id: string | undefined;
328
328
  } ? T_2 extends {
329
329
  src: TSrc;
330
- } ? xstate221.ConditionalRequired<[options?: ({
330
+ } ? xstate389.ConditionalRequired<[options?: ({
331
331
  id?: T_2["id"] | undefined;
332
332
  systemId?: string;
333
- input?: xstate221.InputFrom<T_2["logic"]> | undefined;
333
+ input?: xstate389.InputFrom<T_2["logic"]> | undefined;
334
334
  syncSnapshot?: boolean;
335
- } & { [K_2 in xstate221.RequiredActorOptions<T_2>]: unknown }) | undefined], xstate221.IsNotNever<xstate221.RequiredActorOptions<T_2>>> : never : never : never)): xstate221.ActorRefFromLogic<xstate221.GetConcreteByKey<xstate221.Values<{
335
+ } & { [K_2 in xstate389.RequiredActorOptions<T_2>]: unknown }) | undefined], xstate389.IsNotNever<xstate389.RequiredActorOptions<T_2>>> : never : never : never)): xstate389.ActorRefFromLogic<xstate389.GetConcreteByKey<xstate389.Values<{
336
336
  uploadDocument: {
337
337
  src: "uploadDocument";
338
- logic: xstate221.PromiseActorLogic<DocumentUploadResponse, {
338
+ logic: xstate389.PromiseActorLogic<DocumentUploadResponse, {
339
339
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
340
340
  processingType: string;
341
341
  onProgress: (progress: number) => void;
342
- }, xstate221.EventObject>;
342
+ }, xstate389.EventObject>;
343
343
  id: string | undefined;
344
344
  };
345
345
  initCamera: {
346
346
  src: "initCamera";
347
- logic: xstate221.PromiseActorLogic<MediaStream, void, xstate221.EventObject>;
347
+ logic: xstate389.PromiseActorLogic<MediaStream, void, xstate389.EventObject>;
348
348
  id: string | undefined;
349
349
  };
350
350
  finalizeDocumentRequest: {
351
351
  src: "finalizeDocumentRequest";
352
- logic: xstate221.PromiseActorLogic<FinalizeDocumentResponse, {
352
+ logic: xstate389.PromiseActorLogic<FinalizeDocumentResponse, {
353
353
  processingType: string;
354
- }, xstate221.EventObject>;
354
+ }, xstate389.EventObject>;
355
355
  id: string | undefined;
356
356
  };
357
357
  }>, "src", TSrc>["logic"]>;
358
- <TLogic extends xstate221.AnyActorLogic>(src: TLogic, ...[options]: xstate221.ConditionalRequired<[options?: ({
358
+ <TLogic extends xstate389.AnyActorLogic>(src: TLogic, ...[options]: xstate389.ConditionalRequired<[options?: ({
359
359
  id?: never;
360
360
  systemId?: string;
361
- input?: xstate221.InputFrom<TLogic> | undefined;
361
+ input?: xstate389.InputFrom<TLogic> | undefined;
362
362
  syncSnapshot?: boolean;
363
- } & { [K in xstate221.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate221.IsNotNever<xstate221.RequiredLogicInput<TLogic>>>): xstate221.ActorRefFromLogic<TLogic>;
363
+ } & { [K in xstate389.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate389.IsNotNever<xstate389.RequiredLogicInput<TLogic>>>): xstate389.ActorRefFromLogic<TLogic>;
364
364
  };
365
365
  input: DocumentCaptureInput;
366
- self: xstate221.ActorRef<xstate221.MachineSnapshot<DocumentCaptureContext, {
366
+ self: xstate389.ActorRef<xstate389.MachineSnapshot<DocumentCaptureContext, {
367
367
  type: "CAPTURE";
368
368
  } | {
369
369
  type: "FILE_SELECTED";
@@ -391,7 +391,7 @@ declare const documentCaptureMachine: xstate221.StateMachine<DocumentCaptureCont
391
391
  type: "SKIP";
392
392
  } | {
393
393
  type: "CLOSE";
394
- }, Record<string, xstate221.AnyActorRef | undefined>, xstate221.StateValue, string, unknown, any, any>, {
394
+ }, Record<string, xstate389.AnyActorRef | undefined>, xstate389.StateValue, string, unknown, any, any>, {
395
395
  type: "CAPTURE";
396
396
  } | {
397
397
  type: "FILE_SELECTED";
@@ -419,7 +419,7 @@ declare const documentCaptureMachine: xstate221.StateMachine<DocumentCaptureCont
419
419
  type: "SKIP";
420
420
  } | {
421
421
  type: "CLOSE";
422
- }, xstate221.AnyEventObject>;
422
+ }, xstate389.AnyEventObject>;
423
423
  }) => {
424
424
  config: {
425
425
  processingType: DocumentType;
@@ -570,7 +570,7 @@ declare const documentCaptureMachine: xstate221.StateMachine<DocumentCaptureCont
570
570
  } | {
571
571
  type: "CLOSE";
572
572
  };
573
- self: xstate221.ActorRef<xstate221.MachineSnapshot<DocumentCaptureContext, {
573
+ self: xstate389.ActorRef<xstate389.MachineSnapshot<DocumentCaptureContext, {
574
574
  type: "CAPTURE";
575
575
  } | {
576
576
  type: "FILE_SELECTED";
@@ -598,7 +598,7 @@ declare const documentCaptureMachine: xstate221.StateMachine<DocumentCaptureCont
598
598
  type: "SKIP";
599
599
  } | {
600
600
  type: "CLOSE";
601
- }, Record<string, xstate221.AnyActorRef>, xstate221.StateValue, string, unknown, any, any>, {
601
+ }, Record<string, xstate389.AnyActorRef>, xstate389.StateValue, string, unknown, any, any>, {
602
602
  type: "CAPTURE";
603
603
  } | {
604
604
  type: "FILE_SELECTED";
@@ -626,7 +626,7 @@ declare const documentCaptureMachine: xstate221.StateMachine<DocumentCaptureCont
626
626
  type: "SKIP";
627
627
  } | {
628
628
  type: "CLOSE";
629
- }, xstate221.AnyEventObject>;
629
+ }, xstate389.AnyEventObject>;
630
630
  }) => {
631
631
  capturedDocument: CapturedDocument;
632
632
  processingType: DocumentType;
@@ -721,7 +721,7 @@ declare const documentCaptureMachine: xstate221.StateMachine<DocumentCaptureCont
721
721
  } | {
722
722
  type: "CLOSE";
723
723
  };
724
- self: xstate221.ActorRef<xstate221.MachineSnapshot<DocumentCaptureContext, {
724
+ self: xstate389.ActorRef<xstate389.MachineSnapshot<DocumentCaptureContext, {
725
725
  type: "CAPTURE";
726
726
  } | {
727
727
  type: "FILE_SELECTED";
@@ -749,7 +749,7 @@ declare const documentCaptureMachine: xstate221.StateMachine<DocumentCaptureCont
749
749
  type: "SKIP";
750
750
  } | {
751
751
  type: "CLOSE";
752
- }, Record<string, xstate221.AnyActorRef>, xstate221.StateValue, string, unknown, any, any>, {
752
+ }, Record<string, xstate389.AnyActorRef>, xstate389.StateValue, string, unknown, any, any>, {
753
753
  type: "CAPTURE";
754
754
  } | {
755
755
  type: "FILE_SELECTED";
@@ -777,7 +777,7 @@ declare const documentCaptureMachine: xstate221.StateMachine<DocumentCaptureCont
777
777
  type: "SKIP";
778
778
  } | {
779
779
  type: "CLOSE";
780
- }, xstate221.AnyEventObject>;
780
+ }, xstate389.AnyEventObject>;
781
781
  }) => {
782
782
  processingType: DocumentType;
783
783
  };