@incodetech/core 0.0.0-dev-20260813-2991a679 → 0.0.0-dev-20260817-9145f76e

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.
Files changed (69) hide show
  1. package/dist/{BrowserDiagnosticsCryptoProvider-DmU3XcUT.esm.js → BrowserDiagnosticsCryptoProvider-CKmnKTyR.esm.js} +1 -1
  2. package/dist/ae-signature.esm.js +1 -1
  3. package/dist/{apiError-C9ewfTXC.esm.js → apiError-CmniHhRw.esm.js} +1 -1
  4. package/dist/authentication.esm.js +2 -2
  5. package/dist/{authenticationManager-SxqzvmHf.esm.js → authenticationManager-CrTjKPXr.esm.js} +2 -2
  6. package/dist/{authenticationStateMachine-BSia2svd.esm.js → authenticationStateMachine-tZtVdbtV.esm.js} +2 -2
  7. package/dist/certificate-issuance.d.ts +2 -302
  8. package/dist/certificate-issuance.esm.js +2 -65
  9. package/dist/certificateIssuanceManager-Ci4symEA.esm.js +69 -0
  10. package/dist/certificateIssuanceManager-DCgEidHz.d.ts +312 -0
  11. package/dist/{deepsightLoader-CxhndUYz.esm.js → deepsightLoader-C0Jt4Ss8.esm.js} +3 -3
  12. package/dist/document-capture.d.ts +1 -1
  13. package/dist/document-upload.d.ts +4 -4
  14. package/dist/{documentCaptureManager-B3t0ydtg.d.ts → documentCaptureManager-DS9wf7bv.d.ts} +66 -66
  15. package/dist/dynamic-forms.d.ts +2 -2
  16. package/dist/dynamic-forms.esm.js +2 -2
  17. package/dist/{dynamicFormsManager-BmQJxHYZ.esm.js → dynamicFormsManager-I5_JnnvY.esm.js} +1 -1
  18. package/dist/{dynamicFormsManager-DhveFHPS.d.ts → dynamicFormsManager-fhK0yINk.d.ts} +1 -1
  19. package/dist/{dynamicFormsStateMachine-BgAfJJQH.esm.js → dynamicFormsStateMachine-DpZpPl0y.esm.js} +1 -1
  20. package/dist/ekyb.esm.js +3 -3
  21. package/dist/{ekybManager-CUXrRyZ2.esm.js → ekybManager-DB1i-Z_I.esm.js} +1 -1
  22. package/dist/{ekybStateMachine-DH3uM8DO.esm.js → ekybStateMachine-BYejw9RL.esm.js} +1 -1
  23. package/dist/electronic-signature.esm.js +1 -1
  24. package/dist/{electronicSignatureManager-BV9xT0cc.esm.js → electronicSignatureManager-CQe4K9hz.esm.js} +1 -1
  25. package/dist/extensibility.d.ts +7 -6
  26. package/dist/extensibility.esm.js +11 -10
  27. package/dist/{faceCaptureManagerFactory-C8oK6tdq.esm.js → faceCaptureManagerFactory-DTab6Rl4.esm.js} +1 -1
  28. package/dist/{faceCaptureSetup-C9-Fzm8d.esm.js → faceCaptureSetup-DphTnEII.esm.js} +2 -2
  29. package/dist/flow.d.ts +3 -3
  30. package/dist/flow.esm.js +3 -3
  31. package/dist/{flowCompletionService-B3suP9s_.esm.js → flowCompletionService-C5rPBcRK.esm.js} +1 -1
  32. package/dist/{flowServices-j7UZkYFu.esm.js → flowServices-BPddvC6e.esm.js} +3 -3
  33. package/dist/geolocation.esm.js +2 -2
  34. package/dist/{geolocationManager-D4AIjfeN.esm.js → geolocationManager-BR2bvUOb.esm.js} +1 -1
  35. package/dist/{geolocationStateMachine-BeEwZnQx.esm.js → geolocationStateMachine-DqLBE79T.esm.js} +1 -1
  36. package/dist/id-ocr.d.ts +2 -2
  37. package/dist/id-selfie-flow.esm.js +6 -6
  38. package/dist/id.d.ts +2 -2
  39. package/dist/id.esm.js +3 -3
  40. package/dist/{idCaptureManager-CWmt6dp7.esm.js → idCaptureManager-CF47nHa3.esm.js} +2 -2
  41. package/dist/{idCaptureManager-DCypF_2I.d.ts → idCaptureManager-DVWM-L4V.d.ts} +1 -1
  42. package/dist/{idCaptureServices-wlaNQ3ib.esm.js → idCaptureServices-CzgSBLXN.esm.js} +2 -2
  43. package/dist/{idCaptureStateMachine-C6711mJz.esm.js → idCaptureStateMachine-DP-PiYZm.esm.js} +7 -7
  44. package/dist/{idOcrManager-DXc_xRN7.d.ts → idOcrManager-BF_cXZq8.d.ts} +1 -1
  45. package/dist/index.esm.js +1 -1
  46. package/dist/{onDeviceFaceResults-wU4uSbN-.esm.js → onDeviceFaceResults-S2hHqItf.esm.js} +3 -3
  47. package/dist/personhood.esm.js +3 -3
  48. package/dist/qe-signature.esm.js +1 -1
  49. package/dist/{recordingService-CyT_8BPw.esm.js → recordingService-DPENlj_C.esm.js} +1 -1
  50. package/dist/{runChildModule-Cy8-2m9V.esm.js → runChildModule-CggsCQfX.esm.js} +1 -1
  51. package/dist/selfie.esm.js +4 -4
  52. package/dist/{selfieManager-BcCcnW3q.esm.js → selfieManager-Ch6SEjFI.esm.js} +2 -2
  53. package/dist/{selfieStateMachine-DOEFt4Bo.esm.js → selfieStateMachine-DHcXwGsF.esm.js} +2 -2
  54. package/dist/{session-qR0DAVjz.esm.js → session-Coy5UfuE.esm.js} +4 -4
  55. package/dist/session.esm.js +4 -4
  56. package/dist/{sessionInitializer-DAr2DSlY.esm.js → sessionInitializer-DAsBLJIM.esm.js} +2 -2
  57. package/dist/{setup-GQkY_66u.esm.js → setup-DMd9eq7P.esm.js} +4 -4
  58. package/dist/trueSight-BlqgvkVR.esm.js +1 -0
  59. package/dist/{trueSightService-Bf7-wYag.esm.js → trueSightService-Bfegag2d.esm.js} +2 -2
  60. package/dist/video-selfie.esm.js +3 -3
  61. package/dist/{videoSelfieCameraWarmer-CVFHbQua.esm.js → videoSelfieCameraWarmer-DSAUh1NC.esm.js} +2 -2
  62. package/dist/wasm.esm.js +1 -1
  63. package/dist/workflow.d.ts +4 -4
  64. package/dist/workflow.esm.js +14 -14
  65. package/package.json +1 -1
  66. package/dist/trueSight-XzLKY-t_.esm.js +0 -1
  67. /package/dist/{types-BSBzhHRH2.d.ts → types-BSBzhHRH.d.ts} +0 -0
  68. /package/dist/{types-CJ7Yl9K-2.d.ts → types-CJ7Yl9K-.d.ts} +0 -0
  69. /package/dist/{types-GqIocZi-2.d.ts → types-GqIocZi-.d.ts} +0 -0
@@ -0,0 +1,312 @@
1
+ import { A as StateMachine, C as StateValue, D as PromiseActorLogic, a as ActorRefFromLogic, b as RequiredActorOptions, c as AnyEventObject, g as IsNotNever, h as InputFrom, i as ActorRefFrom, k as MachineSnapshot, m as GetConcreteByKey, o as AnyActorLogic, p as EventObject, r as ActorRef, s as AnyActorRef, u as ConditionalRequired, v as MetaObject, w as Values, x as RequiredLogicInput, y as NonReducibleUnknown } from "./spawn-D9jgw9pW.js";
2
+ import "./StateMachine-EDpYWy0i.js";
3
+ import { t as Manager } from "./Manager-CQQ99QOI.js";
4
+ import "./Actor-iTq7YY48.js";
5
+ //#region src/modules/certificate-issuance/certificateIssuanceConstants.d.ts
6
+ declare const MIN_PASSWORD_LENGTH = 8;
7
+ declare const PASSWORD_VALIDATION_KEYS: readonly ["length", "uppercase", "lowercase", "number"];
8
+ declare const REQUIREMENT_I18N_KEYS: Record<PasswordValidationKey, string>;
9
+ //#endregion
10
+ //#region src/modules/certificate-issuance/types.d.ts
11
+ type CertificateIssuanceType = 'ONE_TIME' | 'SHORT_TERM' | 'LONG_TERM';
12
+ /**
13
+ * Configuration for the certificate issuance module.
14
+ */
15
+ type CertificateIssuanceConfig = {
16
+ /** Issuance region (from flow `moduleConfiguration`) */
17
+ region: string;
18
+ /** Certificate validity period */
19
+ type: CertificateIssuanceType;
20
+ };
21
+ type IssueCertificateResponse = {
22
+ blob: Blob;
23
+ };
24
+ type PasswordValidations = {
25
+ length: boolean;
26
+ uppercase: boolean;
27
+ lowercase: boolean;
28
+ number: boolean;
29
+ };
30
+ type PasswordValidationKey = (typeof PASSWORD_VALIDATION_KEYS)[number];
31
+ //#endregion
32
+ //#region src/modules/certificate-issuance/certificateIssuanceStateMachine.d.ts
33
+ type CertificateIssuanceContext = {
34
+ config: CertificateIssuanceConfig;
35
+ password: string;
36
+ passwordValidations: PasswordValidations;
37
+ certificateBlob: Blob | undefined;
38
+ };
39
+ type CertificateIssuanceInput = {
40
+ config: CertificateIssuanceConfig;
41
+ };
42
+ declare const certificateIssuanceMachine: StateMachine<CertificateIssuanceContext, {
43
+ type: "LOAD";
44
+ } | {
45
+ type: "PASSWORD_CHANGED";
46
+ password: string;
47
+ } | {
48
+ type: "SUBMIT_PASSWORD";
49
+ } | {
50
+ type: "DOWNLOADED";
51
+ } | {
52
+ type: "DOWNLOAD_FAILED";
53
+ } | {
54
+ type: "FINISH";
55
+ }, {
56
+ [x: string]: ActorRefFromLogic<PromiseActorLogic<IssueCertificateResponse, {
57
+ password: string;
58
+ }, EventObject>> | undefined;
59
+ }, {
60
+ src: "issueCertificate";
61
+ logic: PromiseActorLogic<IssueCertificateResponse, {
62
+ password: string;
63
+ }, EventObject>;
64
+ id: string | undefined;
65
+ }, Values<{
66
+ setPassword: {
67
+ type: "setPassword";
68
+ params: NonReducibleUnknown;
69
+ };
70
+ setBlob: {
71
+ type: "setBlob";
72
+ params: NonReducibleUnknown;
73
+ };
74
+ }>, {
75
+ type: "isPasswordValid";
76
+ params: unknown;
77
+ }, never, "error" | "idle" | "processing" | "success" | "finished" | "password" | "downloaded", string, CertificateIssuanceInput, NonReducibleUnknown, EventObject, MetaObject, {
78
+ readonly id: "certificateIssuance";
79
+ readonly initial: "idle";
80
+ readonly context: ({ input }: {
81
+ spawn: {
82
+ <TSrc extends "issueCertificate">(logic: TSrc, ...[options]: {
83
+ src: "issueCertificate";
84
+ logic: PromiseActorLogic<IssueCertificateResponse, {
85
+ password: string;
86
+ }, EventObject>;
87
+ id: string | undefined;
88
+ } extends (infer T) ? T extends {
89
+ src: "issueCertificate";
90
+ logic: PromiseActorLogic<IssueCertificateResponse, {
91
+ password: string;
92
+ }, EventObject>;
93
+ id: string | undefined;
94
+ } ? T extends {
95
+ src: TSrc;
96
+ } ? ConditionalRequired<[options?: ({
97
+ id?: T["id"] | undefined;
98
+ systemId?: string;
99
+ input?: InputFrom<T["logic"]> | undefined;
100
+ syncSnapshot?: boolean;
101
+ } & { [K in RequiredActorOptions<T>]: unknown; }) | undefined], IsNotNever<RequiredActorOptions<T>>> : never : never : never): ActorRefFromLogic<GetConcreteByKey<{
102
+ src: "issueCertificate";
103
+ logic: PromiseActorLogic<IssueCertificateResponse, {
104
+ password: string;
105
+ }, EventObject>;
106
+ id: string | undefined;
107
+ }, "src", TSrc>["logic"]>;
108
+ <TLogic extends AnyActorLogic>(src: TLogic, ...[options]: ConditionalRequired<[options?: ({
109
+ id?: never;
110
+ systemId?: string;
111
+ input?: InputFrom<TLogic> | undefined;
112
+ syncSnapshot?: boolean;
113
+ } & { [K in RequiredLogicInput<TLogic>]: unknown; }) | undefined], IsNotNever<RequiredLogicInput<TLogic>>>): ActorRefFromLogic<TLogic>;
114
+ };
115
+ input: CertificateIssuanceInput;
116
+ self: ActorRef<MachineSnapshot<CertificateIssuanceContext, {
117
+ type: "LOAD";
118
+ } | {
119
+ type: "PASSWORD_CHANGED";
120
+ password: string;
121
+ } | {
122
+ type: "SUBMIT_PASSWORD";
123
+ } | {
124
+ type: "DOWNLOADED";
125
+ } | {
126
+ type: "DOWNLOAD_FAILED";
127
+ } | {
128
+ type: "FINISH";
129
+ }, Record<string, AnyActorRef | undefined>, StateValue, string, unknown, any, any>, {
130
+ type: "LOAD";
131
+ } | {
132
+ type: "PASSWORD_CHANGED";
133
+ password: string;
134
+ } | {
135
+ type: "SUBMIT_PASSWORD";
136
+ } | {
137
+ type: "DOWNLOADED";
138
+ } | {
139
+ type: "DOWNLOAD_FAILED";
140
+ } | {
141
+ type: "FINISH";
142
+ }, AnyEventObject>;
143
+ }) => {
144
+ config: CertificateIssuanceConfig;
145
+ password: string;
146
+ passwordValidations: PasswordValidations;
147
+ certificateBlob: undefined;
148
+ };
149
+ readonly states: {
150
+ readonly idle: {
151
+ readonly on: {
152
+ readonly LOAD: {
153
+ readonly target: "password";
154
+ };
155
+ };
156
+ };
157
+ readonly password: {
158
+ readonly on: {
159
+ readonly PASSWORD_CHANGED: {
160
+ readonly actions: "setPassword";
161
+ };
162
+ readonly SUBMIT_PASSWORD: {
163
+ readonly target: "processing";
164
+ readonly guard: "isPasswordValid";
165
+ };
166
+ };
167
+ };
168
+ readonly processing: {
169
+ readonly invoke: {
170
+ readonly id: "issueCertificate";
171
+ readonly src: "issueCertificate";
172
+ readonly input: ({ context }: {
173
+ context: CertificateIssuanceContext;
174
+ event: {
175
+ type: "LOAD";
176
+ } | {
177
+ type: "PASSWORD_CHANGED";
178
+ password: string;
179
+ } | {
180
+ type: "SUBMIT_PASSWORD";
181
+ } | {
182
+ type: "DOWNLOADED";
183
+ } | {
184
+ type: "DOWNLOAD_FAILED";
185
+ } | {
186
+ type: "FINISH";
187
+ };
188
+ self: ActorRef<MachineSnapshot<CertificateIssuanceContext, {
189
+ type: "LOAD";
190
+ } | {
191
+ type: "PASSWORD_CHANGED";
192
+ password: string;
193
+ } | {
194
+ type: "SUBMIT_PASSWORD";
195
+ } | {
196
+ type: "DOWNLOADED";
197
+ } | {
198
+ type: "DOWNLOAD_FAILED";
199
+ } | {
200
+ type: "FINISH";
201
+ }, Record<string, AnyActorRef>, StateValue, string, unknown, any, any>, {
202
+ type: "LOAD";
203
+ } | {
204
+ type: "PASSWORD_CHANGED";
205
+ password: string;
206
+ } | {
207
+ type: "SUBMIT_PASSWORD";
208
+ } | {
209
+ type: "DOWNLOADED";
210
+ } | {
211
+ type: "DOWNLOAD_FAILED";
212
+ } | {
213
+ type: "FINISH";
214
+ }, AnyEventObject>;
215
+ }) => {
216
+ password: string;
217
+ };
218
+ readonly onDone: {
219
+ readonly target: "success";
220
+ readonly actions: "setBlob";
221
+ };
222
+ readonly onError: {
223
+ readonly target: "error";
224
+ };
225
+ };
226
+ };
227
+ readonly success: {
228
+ readonly on: {
229
+ readonly DOWNLOADED: {
230
+ readonly target: "downloaded";
231
+ };
232
+ readonly DOWNLOAD_FAILED: {
233
+ readonly target: "error";
234
+ };
235
+ readonly FINISH: {
236
+ readonly target: "finished";
237
+ };
238
+ };
239
+ };
240
+ readonly downloaded: {
241
+ readonly on: {
242
+ readonly FINISH: {
243
+ readonly target: "finished";
244
+ };
245
+ };
246
+ };
247
+ readonly error: {
248
+ readonly after: {
249
+ readonly 3000: {
250
+ readonly target: "finished";
251
+ };
252
+ };
253
+ };
254
+ readonly finished: {
255
+ readonly type: "final";
256
+ };
257
+ };
258
+ }>;
259
+ type CertificateIssuanceMachine = typeof certificateIssuanceMachine;
260
+ //#endregion
261
+ //#region src/modules/certificate-issuance/certificateIssuanceActor.d.ts
262
+ type CreateCertificateIssuanceActorOptions = {
263
+ config: CertificateIssuanceConfig;
264
+ };
265
+ type CertificateIssuanceActor = ActorRefFrom<CertificateIssuanceMachine>;
266
+ //#endregion
267
+ //#region src/modules/certificate-issuance/certificateIssuanceManager.d.ts
268
+ type CertificateIssuanceIdleState = {
269
+ status: 'idle';
270
+ };
271
+ type CertificateIssuancePasswordState = {
272
+ status: 'password';
273
+ password: string;
274
+ passwordValidations: PasswordValidations;
275
+ canSubmit: boolean;
276
+ };
277
+ type CertificateIssuanceProcessingState = {
278
+ status: 'processing';
279
+ };
280
+ type CertificateIssuanceErrorState = {
281
+ status: 'error';
282
+ };
283
+ type CertificateIssuanceSuccessState = {
284
+ status: 'success';
285
+ blob: Blob;
286
+ };
287
+ type CertificateIssuanceDownloadedState = {
288
+ status: 'downloaded';
289
+ };
290
+ type CertificateIssuanceFinishedState = {
291
+ status: 'finished';
292
+ };
293
+ type CertificateIssuanceState = CertificateIssuanceIdleState | CertificateIssuancePasswordState | CertificateIssuanceProcessingState | CertificateIssuanceSuccessState | CertificateIssuanceDownloadedState | CertificateIssuanceErrorState | CertificateIssuanceFinishedState;
294
+ declare function createCertificateIssuanceManager(options: CreateCertificateIssuanceActorOptions): Manager<CertificateIssuanceState> & {
295
+ load(): void;
296
+ setPassword(password: string): void;
297
+ submitPassword(): void;
298
+ markDownloaded(): void;
299
+ reportDownloadError(): void;
300
+ finish(): void;
301
+ };
302
+ declare function createCertificateIssuanceManagerFromActor(actor: CertificateIssuanceActor): Manager<CertificateIssuanceState> & {
303
+ load(): void;
304
+ setPassword(password: string): void;
305
+ submitPassword(): void;
306
+ markDownloaded(): void;
307
+ reportDownloadError(): void;
308
+ finish(): void;
309
+ };
310
+ type CertificateIssuanceManager = ReturnType<typeof createCertificateIssuanceManager>;
311
+ //#endregion
312
+ export { CertificateIssuanceActor as a, CertificateIssuanceType as c, PasswordValidations as d, MIN_PASSWORD_LENGTH as f, createCertificateIssuanceManagerFromActor as i, IssueCertificateResponse as l, REQUIREMENT_I18N_KEYS as m, CertificateIssuanceState as n, certificateIssuanceMachine as o, PASSWORD_VALIDATION_KEYS as p, createCertificateIssuanceManager as r, CertificateIssuanceConfig as s, CertificateIssuanceManager as t, PasswordValidationKey as u };
@@ -1,8 +1,8 @@
1
1
  import { r as WasmUtilProvider } from "./safeStorage-Ep56I-f_.esm.js";
2
2
  import { t as api } from "./api-Bx3gKW_y.esm.js";
3
- import { l as trueSightLog } from "./trueSightService-Bf7-wYag.esm.js";
4
- import { g as getThumbmarkId, h as IpifyProvider, n as getFingerprintEnabled, p as isBrowserSimulation, t as getDisableIpify, v as BrowserEnvironmentProvider } from "./sessionInitializer-DAr2DSlY.esm.js";
5
- import "./trueSight-XzLKY-t_.esm.js";
3
+ import { l as trueSightLog } from "./trueSightService-Bfegag2d.esm.js";
4
+ import { g as getThumbmarkId, h as IpifyProvider, n as getFingerprintEnabled, p as isBrowserSimulation, t as getDisableIpify, v as BrowserEnvironmentProvider } from "./sessionInitializer-DAsBLJIM.esm.js";
5
+ import "./trueSight-BlqgvkVR.esm.js";
6
6
  import { t as addDeviceStats } from "./stats-B0nFKawG.esm.js";
7
7
  import { t as getParsedUserAgent } from "./getParsedUserAgent-pJjATANs.esm.js";
8
8
  import { t as getUserAgent } from "./getBrowser-Cb8Zgrgp.esm.js";
@@ -1,3 +1,3 @@
1
1
  import { a as DocumentCaptureErrorCode, c as DocumentType, n as DOCUMENT_CAPTURE_ERROR_CODES, r as DocumentCaptureConfig, s as DocumentCaptureNextPageType } from "./types-DelMqZLe.js";
2
- import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, o as documentCaptureMachine, r as createDocumentCaptureManager, t as DocumentCaptureManager } from "./documentCaptureManager-B3t0ydtg.js";
2
+ import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, o as documentCaptureMachine, r as createDocumentCaptureManager, t as DocumentCaptureManager } from "./documentCaptureManager-DS9wf7bv.js";
3
3
  export { DOCUMENT_CAPTURE_ERROR_CODES, type DocumentCaptureActor, type DocumentCaptureConfig, type DocumentCaptureErrorCode, type DocumentCaptureManager, type DocumentCaptureNextPageType, type DocumentCaptureState, type DocumentType, createDocumentCaptureManager, createDocumentCaptureManagerFromActor, documentCaptureMachine };
@@ -38,6 +38,10 @@ declare const documentUploadMachine: StateMachine<DocumentUploadContext, {
38
38
  id: string | undefined;
39
39
  };
40
40
  }>, Values<{
41
+ setError: {
42
+ type: "setError";
43
+ params: NonReducibleUnknown;
44
+ };
41
45
  setStream: {
42
46
  type: "setStream";
43
47
  params: NonReducibleUnknown;
@@ -50,10 +54,6 @@ declare const documentUploadMachine: StateMachine<DocumentUploadContext, {
50
54
  type: "setProgress";
51
55
  params: NonReducibleUnknown;
52
56
  };
53
- setError: {
54
- type: "setError";
55
- params: NonReducibleUnknown;
56
- };
57
57
  clearError: {
58
58
  type: "clearError";
59
59
  params: NonReducibleUnknown;
@@ -72,11 +72,6 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
72
72
  }, EventObject>;
73
73
  id: string | undefined;
74
74
  };
75
- initCamera: {
76
- src: "initCamera";
77
- logic: PromiseActorLogic<MediaStream, void, EventObject>;
78
- id: string | undefined;
79
- };
80
75
  requestPermission: {
81
76
  src: "requestPermission";
82
77
  logic: PromiseActorLogic<PermissionResult, {
@@ -85,6 +80,11 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
85
80
  }, EventObject>;
86
81
  id: string | undefined;
87
82
  };
83
+ initCamera: {
84
+ src: "initCamera";
85
+ logic: PromiseActorLogic<MediaStream, void, EventObject>;
86
+ id: string | undefined;
87
+ };
88
88
  checkPermission: {
89
89
  src: "checkPermission";
90
90
  logic: PromiseActorLogic<PermissionResult, void, EventObject>;
@@ -251,14 +251,14 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
251
251
  type: "fileSizeOkForNonGallery";
252
252
  params: unknown;
253
253
  };
254
- }>, never, "uploading" | "closed" | "success" | "finished" | "initCamera" | "capturing" | "tutorial" | "preview" | "failure" | "nextPage" | "finalizing" | {
254
+ }>, never, "uploading" | "closed" | "success" | "finished" | "initCamera" | "capturing" | "failure" | "tutorial" | "preview" | "nextPage" | "finalizing" | {
255
255
  permissions: "idle" | "denied" | "waitingForUser" | "requesting" | "learnMore";
256
256
  }, string, DocumentCaptureInput, NonReducibleUnknown, EventObject, MetaObject, {
257
257
  readonly id: "documentCapture";
258
258
  readonly initial: "tutorial";
259
259
  readonly context: ({ input }: {
260
260
  spawn: {
261
- <TSrc extends "uploadDocument" | "initCamera" | "requestPermission" | "checkPermission" | "finalizeDocumentRequest">(logic: TSrc, ...[options]: ({
261
+ <TSrc extends "uploadDocument" | "requestPermission" | "initCamera" | "checkPermission" | "finalizeDocumentRequest">(logic: TSrc, ...[options]: ({
262
262
  src: "uploadDocument";
263
263
  logic: PromiseActorLogic<DocumentUploadResponse, {
264
264
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
@@ -282,12 +282,18 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
282
282
  input?: InputFrom<T["logic"]> | undefined;
283
283
  syncSnapshot?: boolean;
284
284
  } & { [K in RequiredActorOptions<T>]: unknown; }) | undefined], IsNotNever<RequiredActorOptions<T>>> : never : never : never) | ({
285
- src: "initCamera";
286
- logic: PromiseActorLogic<MediaStream, void, EventObject>;
285
+ src: "requestPermission";
286
+ logic: PromiseActorLogic<PermissionResult, {
287
+ permissionResult?: PermissionResult;
288
+ requestMotionPermission: boolean;
289
+ }, EventObject>;
287
290
  id: string | undefined;
288
291
  } extends (infer T_1) ? T_1 extends {
289
- src: "initCamera";
290
- logic: PromiseActorLogic<MediaStream, void, EventObject>;
292
+ src: "requestPermission";
293
+ logic: PromiseActorLogic<PermissionResult, {
294
+ permissionResult?: PermissionResult;
295
+ requestMotionPermission: boolean;
296
+ }, EventObject>;
291
297
  id: string | undefined;
292
298
  } ? T_1 extends {
293
299
  src: TSrc;
@@ -297,18 +303,12 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
297
303
  input?: InputFrom<T_1["logic"]> | undefined;
298
304
  syncSnapshot?: boolean;
299
305
  } & { [K_1 in RequiredActorOptions<T_1>]: unknown; }) | undefined], IsNotNever<RequiredActorOptions<T_1>>> : never : never : never) | ({
300
- src: "requestPermission";
301
- logic: PromiseActorLogic<PermissionResult, {
302
- permissionResult?: PermissionResult;
303
- requestMotionPermission: boolean;
304
- }, EventObject>;
306
+ src: "initCamera";
307
+ logic: PromiseActorLogic<MediaStream, void, EventObject>;
305
308
  id: string | undefined;
306
309
  } extends (infer T_2) ? T_2 extends {
307
- src: "requestPermission";
308
- logic: PromiseActorLogic<PermissionResult, {
309
- permissionResult?: PermissionResult;
310
- requestMotionPermission: boolean;
311
- }, EventObject>;
310
+ src: "initCamera";
311
+ logic: PromiseActorLogic<MediaStream, void, EventObject>;
312
312
  id: string | undefined;
313
313
  } ? T_2 extends {
314
314
  src: TSrc;
@@ -361,11 +361,6 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
361
361
  }, EventObject>;
362
362
  id: string | undefined;
363
363
  };
364
- initCamera: {
365
- src: "initCamera";
366
- logic: PromiseActorLogic<MediaStream, void, EventObject>;
367
- id: string | undefined;
368
- };
369
364
  requestPermission: {
370
365
  src: "requestPermission";
371
366
  logic: PromiseActorLogic<PermissionResult, {
@@ -374,6 +369,11 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
374
369
  }, EventObject>;
375
370
  id: string | undefined;
376
371
  };
372
+ initCamera: {
373
+ src: "initCamera";
374
+ logic: PromiseActorLogic<MediaStream, void, EventObject>;
375
+ id: string | undefined;
376
+ };
377
377
  checkPermission: {
378
378
  src: "checkPermission";
379
379
  logic: PromiseActorLogic<PermissionResult, void, EventObject>;
@@ -621,11 +621,6 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
621
621
  }, EventObject>;
622
622
  id: string | undefined;
623
623
  };
624
- initCamera: {
625
- src: "initCamera";
626
- logic: PromiseActorLogic<MediaStream, void, EventObject>;
627
- id: string | undefined;
628
- };
629
624
  requestPermission: {
630
625
  src: "requestPermission";
631
626
  logic: PromiseActorLogic<PermissionResult, {
@@ -634,6 +629,11 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
634
629
  }, EventObject>;
635
630
  id: string | undefined;
636
631
  };
632
+ initCamera: {
633
+ src: "initCamera";
634
+ logic: PromiseActorLogic<MediaStream, void, EventObject>;
635
+ id: string | undefined;
636
+ };
637
637
  checkPermission: {
638
638
  src: "checkPermission";
639
639
  logic: PromiseActorLogic<PermissionResult, void, EventObject>;
@@ -706,11 +706,6 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
706
706
  }, EventObject>;
707
707
  id: string | undefined;
708
708
  };
709
- initCamera: {
710
- src: "initCamera";
711
- logic: PromiseActorLogic<MediaStream, void, EventObject>;
712
- id: string | undefined;
713
- };
714
709
  requestPermission: {
715
710
  src: "requestPermission";
716
711
  logic: PromiseActorLogic<PermissionResult, {
@@ -719,6 +714,11 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
719
714
  }, EventObject>;
720
715
  id: string | undefined;
721
716
  };
717
+ initCamera: {
718
+ src: "initCamera";
719
+ logic: PromiseActorLogic<MediaStream, void, EventObject>;
720
+ id: string | undefined;
721
+ };
722
722
  checkPermission: {
723
723
  src: "checkPermission";
724
724
  logic: PromiseActorLogic<PermissionResult, void, EventObject>;
@@ -790,11 +790,6 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
790
790
  }, EventObject>;
791
791
  id: string | undefined;
792
792
  };
793
- initCamera: {
794
- src: "initCamera";
795
- logic: PromiseActorLogic<MediaStream, void, EventObject>;
796
- id: string | undefined;
797
- };
798
793
  requestPermission: {
799
794
  src: "requestPermission";
800
795
  logic: PromiseActorLogic<PermissionResult, {
@@ -803,6 +798,11 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
803
798
  }, EventObject>;
804
799
  id: string | undefined;
805
800
  };
801
+ initCamera: {
802
+ src: "initCamera";
803
+ logic: PromiseActorLogic<MediaStream, void, EventObject>;
804
+ id: string | undefined;
805
+ };
806
806
  checkPermission: {
807
807
  src: "checkPermission";
808
808
  logic: PromiseActorLogic<PermissionResult, void, EventObject>;
@@ -875,11 +875,6 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
875
875
  }, EventObject>;
876
876
  id: string | undefined;
877
877
  };
878
- initCamera: {
879
- src: "initCamera";
880
- logic: PromiseActorLogic<MediaStream, void, EventObject>;
881
- id: string | undefined;
882
- };
883
878
  requestPermission: {
884
879
  src: "requestPermission";
885
880
  logic: PromiseActorLogic<PermissionResult, {
@@ -888,6 +883,11 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
888
883
  }, EventObject>;
889
884
  id: string | undefined;
890
885
  };
886
+ initCamera: {
887
+ src: "initCamera";
888
+ logic: PromiseActorLogic<MediaStream, void, EventObject>;
889
+ id: string | undefined;
890
+ };
891
891
  checkPermission: {
892
892
  src: "checkPermission";
893
893
  logic: PromiseActorLogic<PermissionResult, void, EventObject>;
@@ -1129,11 +1129,6 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
1129
1129
  }, EventObject>;
1130
1130
  id: string | undefined;
1131
1131
  };
1132
- initCamera: {
1133
- src: "initCamera";
1134
- logic: PromiseActorLogic<MediaStream, void, EventObject>;
1135
- id: string | undefined;
1136
- };
1137
1132
  requestPermission: {
1138
1133
  src: "requestPermission";
1139
1134
  logic: PromiseActorLogic<PermissionResult, {
@@ -1142,6 +1137,11 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
1142
1137
  }, EventObject>;
1143
1138
  id: string | undefined;
1144
1139
  };
1140
+ initCamera: {
1141
+ src: "initCamera";
1142
+ logic: PromiseActorLogic<MediaStream, void, EventObject>;
1143
+ id: string | undefined;
1144
+ };
1145
1145
  checkPermission: {
1146
1146
  src: "checkPermission";
1147
1147
  logic: PromiseActorLogic<PermissionResult, void, EventObject>;
@@ -1214,11 +1214,6 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
1214
1214
  }, EventObject>;
1215
1215
  id: string | undefined;
1216
1216
  };
1217
- initCamera: {
1218
- src: "initCamera";
1219
- logic: PromiseActorLogic<MediaStream, void, EventObject>;
1220
- id: string | undefined;
1221
- };
1222
1217
  requestPermission: {
1223
1218
  src: "requestPermission";
1224
1219
  logic: PromiseActorLogic<PermissionResult, {
@@ -1227,6 +1222,11 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
1227
1222
  }, EventObject>;
1228
1223
  id: string | undefined;
1229
1224
  };
1225
+ initCamera: {
1226
+ src: "initCamera";
1227
+ logic: PromiseActorLogic<MediaStream, void, EventObject>;
1228
+ id: string | undefined;
1229
+ };
1230
1230
  checkPermission: {
1231
1231
  src: "checkPermission";
1232
1232
  logic: PromiseActorLogic<PermissionResult, void, EventObject>;
@@ -1298,11 +1298,6 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
1298
1298
  }, EventObject>;
1299
1299
  id: string | undefined;
1300
1300
  };
1301
- initCamera: {
1302
- src: "initCamera";
1303
- logic: PromiseActorLogic<MediaStream, void, EventObject>;
1304
- id: string | undefined;
1305
- };
1306
1301
  requestPermission: {
1307
1302
  src: "requestPermission";
1308
1303
  logic: PromiseActorLogic<PermissionResult, {
@@ -1311,6 +1306,11 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
1311
1306
  }, EventObject>;
1312
1307
  id: string | undefined;
1313
1308
  };
1309
+ initCamera: {
1310
+ src: "initCamera";
1311
+ logic: PromiseActorLogic<MediaStream, void, EventObject>;
1312
+ id: string | undefined;
1313
+ };
1314
1314
  checkPermission: {
1315
1315
  src: "checkPermission";
1316
1316
  logic: PromiseActorLogic<PermissionResult, void, EventObject>;
@@ -1433,11 +1433,6 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
1433
1433
  }, EventObject>;
1434
1434
  id: string | undefined;
1435
1435
  };
1436
- initCamera: {
1437
- src: "initCamera";
1438
- logic: PromiseActorLogic<MediaStream, void, EventObject>;
1439
- id: string | undefined;
1440
- };
1441
1436
  requestPermission: {
1442
1437
  src: "requestPermission";
1443
1438
  logic: PromiseActorLogic<PermissionResult, {
@@ -1446,6 +1441,11 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
1446
1441
  }, EventObject>;
1447
1442
  id: string | undefined;
1448
1443
  };
1444
+ initCamera: {
1445
+ src: "initCamera";
1446
+ logic: PromiseActorLogic<MediaStream, void, EventObject>;
1447
+ id: string | undefined;
1448
+ };
1449
1449
  checkPermission: {
1450
1450
  src: "checkPermission";
1451
1451
  logic: PromiseActorLogic<PermissionResult, void, EventObject>;
@@ -1,3 +1,3 @@
1
- import { i as Screen, n as InputType, r as Question, t as DynamicFormsConfig } from "./types-BSBzhHRH2.js";
2
- import { c as DynamicFormsValidationErrors, n as DynamicFormsState, o as DynamicFormsResult, r as createDynamicFormsManager, s as dynamicFormsMachine, t as DynamicFormsManager } from "./dynamicFormsManager-DhveFHPS.js";
1
+ import { i as Screen, n as InputType, r as Question, t as DynamicFormsConfig } from "./types-BSBzhHRH.js";
2
+ import { c as DynamicFormsValidationErrors, n as DynamicFormsState, o as DynamicFormsResult, r as createDynamicFormsManager, s as dynamicFormsMachine, t as DynamicFormsManager } from "./dynamicFormsManager-fhK0yINk.js";
3
3
  export { type DynamicFormsConfig, type DynamicFormsManager, type DynamicFormsResult, type DynamicFormsState, type DynamicFormsValidationErrors, type InputType, type Question, type Screen, createDynamicFormsManager, dynamicFormsMachine };
@@ -1,3 +1,3 @@
1
- import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-BgAfJJQH.esm.js";
2
- import { t as createDynamicFormsManager } from "./dynamicFormsManager-BmQJxHYZ.esm.js";
1
+ import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-DpZpPl0y.esm.js";
2
+ import { t as createDynamicFormsManager } from "./dynamicFormsManager-I5_JnnvY.esm.js";
3
3
  export { createDynamicFormsManager, dynamicFormsMachine };
@@ -1,7 +1,7 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CxfNJVZW.esm.js";
2
2
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
3
  import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
- import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-BgAfJJQH.esm.js";
4
+ import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-DpZpPl0y.esm.js";
5
5
  //#region src/modules/dynamic-forms/dynamicFormsActor.ts
6
6
  function createDynamicFormsActor(options) {
7
7
  return createActor(dynamicFormsMachine, { input: { config: options.config } }).start();