@incodetech/core 0.0.0-dev-20260506-66d407a → 0.0.0-dev-20260506-135ee70

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 (31) hide show
  1. package/dist/ae-signature.d.ts +1 -1
  2. package/dist/consent.d.ts +1 -1
  3. package/dist/cpf-ocr.d.ts +23 -23
  4. package/dist/curp-validation.d.ts +18 -1
  5. package/dist/curp-validation.esm.js +2 -2
  6. package/dist/{curpValidationStateMachine-DrPvk0JT.esm.js → curpValidationStateMachine-C5h4uWTM.esm.js} +55 -2
  7. package/dist/document-capture.d.ts +4 -4
  8. package/dist/document-upload.d.ts +46 -46
  9. package/dist/ekyb.esm.js +3 -3
  10. package/dist/{ekybStateMachine-BH1-vuME.esm.js → ekybStateMachine-jDkRkJdd.esm.js} +1 -1
  11. package/dist/electronic-signature.d.ts +1 -1
  12. package/dist/extensibility.esm.js +3 -3
  13. package/dist/flow.esm.js +2 -2
  14. package/dist/{flowServices-Bk-fRnp3.esm.js → flowServices-O6vB_fWX.esm.js} +1 -1
  15. package/dist/home.d.ts +10 -10
  16. package/dist/id-ocr.d.ts +52 -52
  17. package/dist/id.esm.js +3 -3
  18. package/dist/{idCaptureManager-Cmb8JZaZ.esm.js → idCaptureManager-CPTyaHJV.esm.js} +1 -1
  19. package/dist/{idCaptureStateMachine-DfHrzMby.esm.js → idCaptureStateMachine-BamGe_4p.esm.js} +1 -1
  20. package/dist/identity-reuse.d.ts +41 -41
  21. package/dist/{index-DoTRCJI2.d.ts → index-DQ9F_jHn.d.ts} +119 -119
  22. package/dist/index.esm.js +2 -2
  23. package/dist/mandatory-consent.d.ts +47 -47
  24. package/dist/qe-signature.d.ts +1 -1
  25. package/dist/{session-cS6xFrLK.esm.js → session-z8mDIfNZ.esm.js} +1 -1
  26. package/dist/session.esm.js +1 -1
  27. package/dist/{setup-DHeR6Fms.esm.js → setup-CePh1s7T.esm.js} +1 -1
  28. package/dist/wasm.esm.js +2 -2
  29. package/dist/workflow.d.ts +82 -82
  30. package/dist/workflow.esm.js +5 -5
  31. package/package.json +3 -3
@@ -1,6 +1,6 @@
1
1
  import { t as Manager } from "./Manager-B29-VhX7.js";
2
2
  import "./Actor-Bmv1bZHV.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-DoTRCJI2.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-DQ9F_jHn.js";
4
4
 
5
5
  //#region src/modules/ae-signature/index.d.ts
6
6
 
package/dist/consent.d.ts CHANGED
@@ -94,7 +94,7 @@ declare const consentMachine: xstate795.StateMachine<ConsentContext, {
94
94
  }>, {
95
95
  type: "canSubmit";
96
96
  params: unknown;
97
- }, never, "error" | "idle" | "finished" | "loading" | "display" | "submitting", string, ConsentInput, xstate795.NonReducibleUnknown, xstate795.EventObject, xstate795.MetaObject, {
97
+ }, never, "error" | "idle" | "finished" | "loading" | "submitting" | "display", string, ConsentInput, xstate795.NonReducibleUnknown, xstate795.EventObject, xstate795.MetaObject, {
98
98
  readonly id: "consent";
99
99
  readonly initial: "idle";
100
100
  readonly context: ({
package/dist/cpf-ocr.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { t as Manager } from "./Manager-B29-VhX7.js";
2
- import * as xstate770 from "xstate";
2
+ import * as xstate325 from "xstate";
3
3
 
4
4
  //#region src/modules/cpf-ocr/cpfOcrManager.d.ts
5
5
  type CpfOcrIdleState = {
@@ -47,7 +47,7 @@ type CpfOcrContext = {
47
47
  error: string | undefined;
48
48
  };
49
49
  type CpfOcrInput = Record<string, never>;
50
- declare const cpfOcrMachine: xstate770.StateMachine<CpfOcrContext, {
50
+ declare const cpfOcrMachine: xstate325.StateMachine<CpfOcrContext, {
51
51
  type: "LOAD";
52
52
  } | {
53
53
  type: "SET_CPF";
@@ -57,43 +57,43 @@ declare const cpfOcrMachine: xstate770.StateMachine<CpfOcrContext, {
57
57
  } | {
58
58
  type: "RETRY";
59
59
  }, {
60
- [x: string]: xstate770.ActorRefFromLogic<xstate770.PromiseActorLogic<CpfOcrDataResponse, void, xstate770.EventObject>> | xstate770.ActorRefFromLogic<xstate770.PromiseActorLogic<CpfOcrUpdateResponse, {
60
+ [x: string]: xstate325.ActorRefFromLogic<xstate325.PromiseActorLogic<CpfOcrDataResponse, void, xstate325.EventObject>> | xstate325.ActorRefFromLogic<xstate325.PromiseActorLogic<CpfOcrUpdateResponse, {
61
61
  cpf: string;
62
- }, xstate770.EventObject>> | undefined;
63
- }, xstate770.Values<{
62
+ }, xstate325.EventObject>> | undefined;
63
+ }, xstate325.Values<{
64
64
  fetchCpfOcrData: {
65
65
  src: "fetchCpfOcrData";
66
- logic: xstate770.PromiseActorLogic<CpfOcrDataResponse, void, xstate770.EventObject>;
66
+ logic: xstate325.PromiseActorLogic<CpfOcrDataResponse, void, xstate325.EventObject>;
67
67
  id: string | undefined;
68
68
  };
69
69
  submitCpfOcr: {
70
70
  src: "submitCpfOcr";
71
- logic: xstate770.PromiseActorLogic<CpfOcrUpdateResponse, {
71
+ logic: xstate325.PromiseActorLogic<CpfOcrUpdateResponse, {
72
72
  cpf: string;
73
- }, xstate770.EventObject>;
73
+ }, xstate325.EventObject>;
74
74
  id: string | undefined;
75
75
  };
76
- }>, xstate770.Values<{
77
- setError: {
78
- type: "setError";
79
- params: xstate770.NonReducibleUnknown;
80
- };
81
- clearError: {
82
- type: "clearError";
83
- params: xstate770.NonReducibleUnknown;
84
- };
76
+ }>, xstate325.Values<{
85
77
  setPrefill: {
86
78
  type: "setPrefill";
87
- params: xstate770.NonReducibleUnknown;
79
+ params: xstate325.NonReducibleUnknown;
88
80
  };
89
81
  setCpf: {
90
82
  type: "setCpf";
91
- params: xstate770.NonReducibleUnknown;
83
+ params: xstate325.NonReducibleUnknown;
84
+ };
85
+ setError: {
86
+ type: "setError";
87
+ params: xstate325.NonReducibleUnknown;
88
+ };
89
+ clearError: {
90
+ type: "clearError";
91
+ params: xstate325.NonReducibleUnknown;
92
92
  };
93
93
  }>, {
94
94
  type: "isValid";
95
95
  params: unknown;
96
- }, never, "error" | "idle" | "finished" | "loading" | "submitting" | "inputting", string, CpfOcrInput, xstate770.NonReducibleUnknown, xstate770.EventObject, xstate770.MetaObject, {
96
+ }, never, "error" | "idle" | "finished" | "loading" | "inputting" | "submitting", string, CpfOcrInput, xstate325.NonReducibleUnknown, xstate325.EventObject, xstate325.MetaObject, {
97
97
  readonly id: "cpfOcr";
98
98
  readonly initial: "idle";
99
99
  readonly context: {
@@ -148,7 +148,7 @@ declare const cpfOcrMachine: xstate770.StateMachine<CpfOcrContext, {
148
148
  } | {
149
149
  type: "RETRY";
150
150
  };
151
- self: xstate770.ActorRef<xstate770.MachineSnapshot<CpfOcrContext, {
151
+ self: xstate325.ActorRef<xstate325.MachineSnapshot<CpfOcrContext, {
152
152
  type: "LOAD";
153
153
  } | {
154
154
  type: "SET_CPF";
@@ -157,7 +157,7 @@ declare const cpfOcrMachine: xstate770.StateMachine<CpfOcrContext, {
157
157
  type: "SUBMIT";
158
158
  } | {
159
159
  type: "RETRY";
160
- }, Record<string, xstate770.AnyActorRef>, xstate770.StateValue, string, unknown, any, any>, {
160
+ }, Record<string, xstate325.AnyActorRef>, xstate325.StateValue, string, unknown, any, any>, {
161
161
  type: "LOAD";
162
162
  } | {
163
163
  type: "SET_CPF";
@@ -166,7 +166,7 @@ declare const cpfOcrMachine: xstate770.StateMachine<CpfOcrContext, {
166
166
  type: "SUBMIT";
167
167
  } | {
168
168
  type: "RETRY";
169
- }, xstate770.AnyEventObject>;
169
+ }, xstate325.AnyEventObject>;
170
170
  }) => {
171
171
  cpf: string;
172
172
  };
@@ -20,6 +20,14 @@ type GenerateCurpForm = {
20
20
  birthDate: string;
21
21
  birthState: string;
22
22
  };
23
+ type GenerateCurpFieldType = 'text' | 'date' | 'dropdown';
24
+ type GenerateCurpFieldDef = {
25
+ key: keyof GenerateCurpForm;
26
+ labelKey: string;
27
+ type: GenerateCurpFieldType;
28
+ required: boolean;
29
+ autoComplete?: string;
30
+ };
23
31
  //#endregion
24
32
  //#region src/modules/curp-validation/curpValidationStateMachine.d.ts
25
33
 
@@ -95,4 +103,13 @@ type MexicanState = {
95
103
  };
96
104
  declare const mexicanStates: MexicanState[];
97
105
  //#endregion
98
- export { type CurpValidationConfig, type CurpValidationManager, type CurpValidationState, type GenerateCurpForm, createCurpValidationManager, curpValidationMachine, mexicanStates };
106
+ //#region src/modules/curp-validation/curpFields.d.ts
107
+ /**
108
+ * Declarative schema for the CURP generation form.
109
+ *
110
+ * `secondLastName` is intentionally optional: many people in Mexico have
111
+ * only a single paternal surname.
112
+ */
113
+ declare const GENERATE_CURP_FIELDS: GenerateCurpFieldDef[];
114
+ //#endregion
115
+ export { type CurpValidationConfig, type CurpValidationManager, type CurpValidationState, GENERATE_CURP_FIELDS, type GenerateCurpFieldDef, type GenerateCurpFieldType, type GenerateCurpForm, createCurpValidationManager, curpValidationMachine, mexicanStates };
@@ -2,7 +2,7 @@ import "./api-DZdHZLhE.esm.js";
2
2
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-uIxiN9N7.esm.js";
3
3
  import "./endpoints-DNtRS0G7.esm.js";
4
4
  import { a as createActor, o as createManager } from "./xstate.esm-COokXZK9.esm.js";
5
- import { n as mexicanStates, t as curpValidationMachine } from "./curpValidationStateMachine-DrPvk0JT.esm.js";
5
+ import { n as mexicanStates, r as GENERATE_CURP_FIELDS, t as curpValidationMachine } from "./curpValidationStateMachine-C5h4uWTM.esm.js";
6
6
 
7
7
  //#region src/modules/curp-validation/curpValidationActor.ts
8
8
  function createCurpValidationActor(options) {
@@ -98,4 +98,4 @@ function createCurpValidationManager(options) {
98
98
  }
99
99
 
100
100
  //#endregion
101
- export { createCurpValidationManager, curpValidationMachine, mexicanStates };
101
+ export { GENERATE_CURP_FIELDS, createCurpValidationManager, curpValidationMachine, mexicanStates };
@@ -2,6 +2,54 @@ import { t as api } from "./api-DZdHZLhE.esm.js";
2
2
  import { t as endpoints } from "./endpoints-DNtRS0G7.esm.js";
3
3
  import { i as fromPromise, n as assign, t as setup } from "./xstate.esm-COokXZK9.esm.js";
4
4
 
5
+ //#region src/modules/curp-validation/curpFields.ts
6
+ /**
7
+ * Declarative schema for the CURP generation form.
8
+ *
9
+ * `secondLastName` is intentionally optional: many people in Mexico have
10
+ * only a single paternal surname.
11
+ */
12
+ const GENERATE_CURP_FIELDS = [
13
+ {
14
+ key: "name",
15
+ labelKey: "curp.labels.firstName",
16
+ type: "text",
17
+ required: true,
18
+ autoComplete: "given-name"
19
+ },
20
+ {
21
+ key: "firstLastName",
22
+ labelKey: "curp.labels.firstLast",
23
+ type: "text",
24
+ required: true
25
+ },
26
+ {
27
+ key: "secondLastName",
28
+ labelKey: "curp.labels.secondLast",
29
+ type: "text",
30
+ required: false
31
+ },
32
+ {
33
+ key: "gender",
34
+ labelKey: "curp.labels.genderV2",
35
+ type: "dropdown",
36
+ required: true
37
+ },
38
+ {
39
+ key: "birthDate",
40
+ labelKey: "curp.labels.dob",
41
+ type: "date",
42
+ required: true
43
+ },
44
+ {
45
+ key: "birthState",
46
+ labelKey: "curp.labels.birthState",
47
+ type: "dropdown",
48
+ required: true
49
+ }
50
+ ];
51
+
52
+ //#endregion
5
53
  //#region src/modules/curp-validation/curpValidationUtils.ts
6
54
  const CURP_PATTERN = /^([A-Z][AEIOUX][A-Z]{2}\d{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])[HMX](?:AS|B[CS]|C[CLMSH]|D[FG]|G[TR]|HG|JC|M[CNS]|N[ETL]|OC|PL|Q[TR]|S[PLR]|T[CSL]|VZ|YN|ZS)[B-DF-HJ-NP-TV-Z]{3}[A-Z\d])(\d)$/;
7
55
  const CURP_LENGTH = 18;
@@ -147,8 +195,13 @@ const mexicanStates = [
147
195
  label: "Zacatecas"
148
196
  }
149
197
  ];
198
+ /**
199
+ * Returns `true` when every required field of {@link GENERATE_CURP_FIELDS}
200
+ * has a non-empty value. Optional fields (e.g. `secondLastName`) are not
201
+ * checked.
202
+ */
150
203
  function isGenerateFormValid(form) {
151
- return !!(form.name && form.firstLastName && form.gender && form.birthDate && form.birthState);
204
+ return GENERATE_CURP_FIELDS.filter((f) => f.required).every((f) => Boolean(form[f.key]));
152
205
  }
153
206
 
154
207
  //#endregion
@@ -416,4 +469,4 @@ const curpValidationMachine = setup({
416
469
  });
417
470
 
418
471
  //#endregion
419
- export { mexicanStates as n, curpValidationMachine as t };
472
+ export { mexicanStates as n, GENERATE_CURP_FIELDS as r, curpValidationMachine as t };
@@ -143,6 +143,10 @@ declare const documentCaptureMachine: xstate863.StateMachine<DocumentCaptureCont
143
143
  id: string | undefined;
144
144
  };
145
145
  }>, xstate863.Values<{
146
+ clearError: {
147
+ type: "clearError";
148
+ params: xstate863.NonReducibleUnknown;
149
+ };
146
150
  setStream: {
147
151
  type: "setStream";
148
152
  params: xstate863.NonReducibleUnknown;
@@ -151,10 +155,6 @@ declare const documentCaptureMachine: xstate863.StateMachine<DocumentCaptureCont
151
155
  type: "setProgress";
152
156
  params: xstate863.NonReducibleUnknown;
153
157
  };
154
- clearError: {
155
- type: "clearError";
156
- params: xstate863.NonReducibleUnknown;
157
- };
158
158
  stopStream: {
159
159
  type: "stopStream";
160
160
  params: xstate863.NonReducibleUnknown;
@@ -2,10 +2,10 @@ import { t as Manager } from "./Manager-B29-VhX7.js";
2
2
  import "./Actor-Bmv1bZHV.js";
3
3
  import "./camera-m4482v-4.js";
4
4
  import { n as DocumentUploadContext, r as DocumentUploadInput, t as DocumentUploadConfig } from "./types-BWX0ell9.js";
5
- import * as xstate0 from "xstate";
5
+ import * as xstate350 from "xstate";
6
6
 
7
7
  //#region src/modules/document-upload/documentUploadStateMachine.d.ts
8
- declare const documentUploadMachine: xstate0.StateMachine<DocumentUploadContext, {
8
+ declare const documentUploadMachine: xstate350.StateMachine<DocumentUploadContext, {
9
9
  type: "START";
10
10
  } | {
11
11
  type: "CAPTURE";
@@ -18,52 +18,52 @@ declare const documentUploadMachine: xstate0.StateMachine<DocumentUploadContext,
18
18
  } | {
19
19
  type: "CLOSE";
20
20
  }, {
21
- [x: string]: xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<void, {
21
+ [x: string]: xstate350.ActorRefFromLogic<xstate350.PromiseActorLogic<void, {
22
22
  imageBase64: string;
23
23
  documentType: string;
24
24
  onProgress: (progress: number) => void;
25
- }, xstate0.EventObject>> | xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>> | undefined;
26
- }, xstate0.Values<{
25
+ }, xstate350.EventObject>> | xstate350.ActorRefFromLogic<xstate350.PromiseActorLogic<MediaStream, void, xstate350.EventObject>> | undefined;
26
+ }, xstate350.Values<{
27
27
  uploadDocument: {
28
28
  src: "uploadDocument";
29
- logic: xstate0.PromiseActorLogic<void, {
29
+ logic: xstate350.PromiseActorLogic<void, {
30
30
  imageBase64: string;
31
31
  documentType: string;
32
32
  onProgress: (progress: number) => void;
33
- }, xstate0.EventObject>;
33
+ }, xstate350.EventObject>;
34
34
  id: string | undefined;
35
35
  };
36
36
  initCamera: {
37
37
  src: "initCamera";
38
- logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
38
+ logic: xstate350.PromiseActorLogic<MediaStream, void, xstate350.EventObject>;
39
39
  id: string | undefined;
40
40
  };
41
- }>, xstate0.Values<{
41
+ }>, xstate350.Values<{
42
+ setError: {
43
+ type: "setError";
44
+ params: xstate350.NonReducibleUnknown;
45
+ };
46
+ clearError: {
47
+ type: "clearError";
48
+ params: xstate350.NonReducibleUnknown;
49
+ };
42
50
  setStream: {
43
51
  type: "setStream";
44
- params: xstate0.NonReducibleUnknown;
52
+ params: xstate350.NonReducibleUnknown;
45
53
  };
46
54
  setImageAndClearError: {
47
55
  type: "setImageAndClearError";
48
- params: xstate0.NonReducibleUnknown;
56
+ params: xstate350.NonReducibleUnknown;
49
57
  };
50
58
  setProgress: {
51
59
  type: "setProgress";
52
- params: xstate0.NonReducibleUnknown;
53
- };
54
- setError: {
55
- type: "setError";
56
- params: xstate0.NonReducibleUnknown;
57
- };
58
- clearError: {
59
- type: "clearError";
60
- params: xstate0.NonReducibleUnknown;
60
+ params: xstate350.NonReducibleUnknown;
61
61
  };
62
62
  stopStream: {
63
63
  type: "stopStream";
64
- params: xstate0.NonReducibleUnknown;
64
+ params: xstate350.NonReducibleUnknown;
65
65
  };
66
- }>, never, never, "error" | "idle" | "uploading" | "closed" | "finished" | "initCamera" | "capturing", string, DocumentUploadInput, xstate0.NonReducibleUnknown, xstate0.EventObject, xstate0.MetaObject, {
66
+ }>, never, never, "error" | "idle" | "uploading" | "closed" | "finished" | "initCamera" | "capturing", string, DocumentUploadInput, xstate350.NonReducibleUnknown, xstate350.EventObject, xstate350.MetaObject, {
67
67
  readonly id: "documentUpload";
68
68
  readonly initial: "idle";
69
69
  readonly context: ({
@@ -72,67 +72,67 @@ declare const documentUploadMachine: xstate0.StateMachine<DocumentUploadContext,
72
72
  spawn: {
73
73
  <TSrc extends "uploadDocument" | "initCamera">(logic: TSrc, ...[options]: ({
74
74
  src: "uploadDocument";
75
- logic: xstate0.PromiseActorLogic<void, {
75
+ logic: xstate350.PromiseActorLogic<void, {
76
76
  imageBase64: string;
77
77
  documentType: string;
78
78
  onProgress: (progress: number) => void;
79
- }, xstate0.EventObject>;
79
+ }, xstate350.EventObject>;
80
80
  id: string | undefined;
81
81
  } extends infer T ? T extends {
82
82
  src: "uploadDocument";
83
- logic: xstate0.PromiseActorLogic<void, {
83
+ logic: xstate350.PromiseActorLogic<void, {
84
84
  imageBase64: string;
85
85
  documentType: string;
86
86
  onProgress: (progress: number) => void;
87
- }, xstate0.EventObject>;
87
+ }, xstate350.EventObject>;
88
88
  id: string | undefined;
89
89
  } ? T extends {
90
90
  src: TSrc;
91
- } ? xstate0.ConditionalRequired<[options?: ({
91
+ } ? xstate350.ConditionalRequired<[options?: ({
92
92
  id?: T["id"] | undefined;
93
93
  systemId?: string;
94
- input?: xstate0.InputFrom<T["logic"]> | undefined;
94
+ input?: xstate350.InputFrom<T["logic"]> | undefined;
95
95
  syncSnapshot?: boolean;
96
- } & { [K in xstate0.RequiredActorOptions<T>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T>>> : never : never : never) | ({
96
+ } & { [K in xstate350.RequiredActorOptions<T>]: unknown }) | undefined], xstate350.IsNotNever<xstate350.RequiredActorOptions<T>>> : never : never : never) | ({
97
97
  src: "initCamera";
98
- logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
98
+ logic: xstate350.PromiseActorLogic<MediaStream, void, xstate350.EventObject>;
99
99
  id: string | undefined;
100
100
  } extends infer T_1 ? T_1 extends {
101
101
  src: "initCamera";
102
- logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
102
+ logic: xstate350.PromiseActorLogic<MediaStream, void, xstate350.EventObject>;
103
103
  id: string | undefined;
104
104
  } ? T_1 extends {
105
105
  src: TSrc;
106
- } ? xstate0.ConditionalRequired<[options?: ({
106
+ } ? xstate350.ConditionalRequired<[options?: ({
107
107
  id?: T_1["id"] | undefined;
108
108
  systemId?: string;
109
- input?: xstate0.InputFrom<T_1["logic"]> | undefined;
109
+ input?: xstate350.InputFrom<T_1["logic"]> | undefined;
110
110
  syncSnapshot?: boolean;
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<{
111
+ } & { [K_1 in xstate350.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate350.IsNotNever<xstate350.RequiredActorOptions<T_1>>> : never : never : never)): xstate350.ActorRefFromLogic<xstate350.GetConcreteByKey<xstate350.Values<{
112
112
  uploadDocument: {
113
113
  src: "uploadDocument";
114
- logic: xstate0.PromiseActorLogic<void, {
114
+ logic: xstate350.PromiseActorLogic<void, {
115
115
  imageBase64: string;
116
116
  documentType: string;
117
117
  onProgress: (progress: number) => void;
118
- }, xstate0.EventObject>;
118
+ }, xstate350.EventObject>;
119
119
  id: string | undefined;
120
120
  };
121
121
  initCamera: {
122
122
  src: "initCamera";
123
- logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
123
+ logic: xstate350.PromiseActorLogic<MediaStream, void, xstate350.EventObject>;
124
124
  id: string | undefined;
125
125
  };
126
126
  }>, "src", TSrc>["logic"]>;
127
- <TLogic extends xstate0.AnyActorLogic>(src: TLogic, ...[options]: xstate0.ConditionalRequired<[options?: ({
127
+ <TLogic extends xstate350.AnyActorLogic>(src: TLogic, ...[options]: xstate350.ConditionalRequired<[options?: ({
128
128
  id?: never;
129
129
  systemId?: string;
130
- input?: xstate0.InputFrom<TLogic> | undefined;
130
+ input?: xstate350.InputFrom<TLogic> | undefined;
131
131
  syncSnapshot?: boolean;
132
- } & { [K in xstate0.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredLogicInput<TLogic>>>): xstate0.ActorRefFromLogic<TLogic>;
132
+ } & { [K in xstate350.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate350.IsNotNever<xstate350.RequiredLogicInput<TLogic>>>): xstate350.ActorRefFromLogic<TLogic>;
133
133
  };
134
134
  input: DocumentUploadInput;
135
- self: xstate0.ActorRef<xstate0.MachineSnapshot<DocumentUploadContext, {
135
+ self: xstate350.ActorRef<xstate350.MachineSnapshot<DocumentUploadContext, {
136
136
  type: "START";
137
137
  } | {
138
138
  type: "CAPTURE";
@@ -144,7 +144,7 @@ declare const documentUploadMachine: xstate0.StateMachine<DocumentUploadContext,
144
144
  type: "RETRY";
145
145
  } | {
146
146
  type: "CLOSE";
147
- }, Record<string, xstate0.AnyActorRef | undefined>, xstate0.StateValue, string, unknown, any, any>, {
147
+ }, Record<string, xstate350.AnyActorRef | undefined>, xstate350.StateValue, string, unknown, any, any>, {
148
148
  type: "START";
149
149
  } | {
150
150
  type: "CAPTURE";
@@ -156,7 +156,7 @@ declare const documentUploadMachine: xstate0.StateMachine<DocumentUploadContext,
156
156
  type: "RETRY";
157
157
  } | {
158
158
  type: "CLOSE";
159
- }, xstate0.AnyEventObject>;
159
+ }, xstate350.AnyEventObject>;
160
160
  }) => {
161
161
  config: DocumentUploadConfig;
162
162
  stream: undefined;
@@ -226,7 +226,7 @@ declare const documentUploadMachine: xstate0.StateMachine<DocumentUploadContext,
226
226
  } | {
227
227
  type: "CLOSE";
228
228
  };
229
- self: xstate0.ActorRef<xstate0.MachineSnapshot<DocumentUploadContext, {
229
+ self: xstate350.ActorRef<xstate350.MachineSnapshot<DocumentUploadContext, {
230
230
  type: "START";
231
231
  } | {
232
232
  type: "CAPTURE";
@@ -238,7 +238,7 @@ declare const documentUploadMachine: xstate0.StateMachine<DocumentUploadContext,
238
238
  type: "RETRY";
239
239
  } | {
240
240
  type: "CLOSE";
241
- }, Record<string, xstate0.AnyActorRef>, xstate0.StateValue, string, unknown, any, any>, {
241
+ }, Record<string, xstate350.AnyActorRef>, xstate350.StateValue, string, unknown, any, any>, {
242
242
  type: "START";
243
243
  } | {
244
244
  type: "CAPTURE";
@@ -250,7 +250,7 @@ declare const documentUploadMachine: xstate0.StateMachine<DocumentUploadContext,
250
250
  type: "RETRY";
251
251
  } | {
252
252
  type: "CLOSE";
253
- }, xstate0.AnyEventObject>;
253
+ }, xstate350.AnyEventObject>;
254
254
  }) => {
255
255
  imageBase64: string;
256
256
  documentType: string;
package/dist/ekyb.esm.js CHANGED
@@ -2,13 +2,13 @@ import "./BrowserTimerProvider-OUipjf3B.esm.js";
2
2
  import "./api-DZdHZLhE.esm.js";
3
3
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-uIxiN9N7.esm.js";
4
4
  import "./endpoints-DNtRS0G7.esm.js";
5
- import "./session-cS6xFrLK.esm.js";
5
+ import "./session-z8mDIfNZ.esm.js";
6
6
  import "./IpifyProvider-wp6qqO1v.esm.js";
7
7
  import "./browserSimulation-B5_Amlr4.esm.js";
8
8
  import { a as createActor, o as createManager } from "./xstate.esm-COokXZK9.esm.js";
9
- import { a as SUPPORTED_COUNTRIES, i as DEV_ONLY_COUNTRIES, n as computeDisplayErrors, o as isSupportedCountry, r as ALL_COUNTRIES, t as ekybMachine } from "./ekybStateMachine-BH1-vuME.esm.js";
9
+ import { a as SUPPORTED_COUNTRIES, i as DEV_ONLY_COUNTRIES, n as computeDisplayErrors, o as isSupportedCountry, r as ALL_COUNTRIES, t as ekybMachine } from "./ekybStateMachine-jDkRkJdd.esm.js";
10
10
  import "./addressSearch-1EhIahE5.esm.js";
11
- import "./flowServices-Bk-fRnp3.esm.js";
11
+ import "./flowServices-O6vB_fWX.esm.js";
12
12
 
13
13
  //#region src/modules/ekyb/ekybActor.ts
14
14
  /**
@@ -2,7 +2,7 @@ import { t as api } from "./api-DZdHZLhE.esm.js";
2
2
  import { t as endpoints } from "./endpoints-DNtRS0G7.esm.js";
3
3
  import { i as fromPromise, n as assign, t as setup } from "./xstate.esm-COokXZK9.esm.js";
4
4
  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-1EhIahE5.esm.js";
5
- import { t as getFlow } from "./flowServices-Bk-fRnp3.esm.js";
5
+ import { t as getFlow } from "./flowServices-O6vB_fWX.esm.js";
6
6
 
7
7
  //#region src/modules/ekyb/ekybConstants.ts
8
8
  const UBO_INPUT_LIMIT = 8;
@@ -1,4 +1,4 @@
1
1
  import "./Manager-B29-VhX7.js";
2
2
  import "./Actor-Bmv1bZHV.js";
3
- import { a as AE_CONSENT_KEYS, c as ConsentKey, d as ElectronicSignatureVariant, f as QE_CONSENT_KEYS, g as getDefaultConsentChecks, h as getConsentKeys, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, o as AeConsentKey, p as QeConsentKey, r as createElectronicSignatureManager, s as ConsentChecks, t as ElectronicSignatureManager, u as ElectronicSignatureDocument } from "./index-DoTRCJI2.js";
3
+ import { a as AE_CONSENT_KEYS, c as ConsentKey, d as ElectronicSignatureVariant, f as QE_CONSENT_KEYS, g as getDefaultConsentChecks, h as getConsentKeys, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, o as AeConsentKey, p as QeConsentKey, r as createElectronicSignatureManager, s as ConsentChecks, t as ElectronicSignatureManager, u as ElectronicSignatureDocument } from "./index-DQ9F_jHn.js";
4
4
  export { AE_CONSENT_KEYS, AeConsentKey, ConsentChecks, ConsentKey, ElectronicSignatureConfig, ElectronicSignatureDocument, ElectronicSignatureManager, ElectronicSignatureState, ElectronicSignatureVariant, QE_CONSENT_KEYS, QeConsentKey, areAllConsented, createElectronicSignatureManager, electronicSignatureMachine, getConsentKeys, getDefaultConsentChecks };
@@ -4,7 +4,7 @@ import "./BrowserTimerProvider-OUipjf3B.esm.js";
4
4
  import "./api-DZdHZLhE.esm.js";
5
5
  import "./events-uIxiN9N7.esm.js";
6
6
  import "./endpoints-DNtRS0G7.esm.js";
7
- import { a as FingerprintProvider, o as getDeviceFingerprintInfo, t as getDisableIpify } from "./session-cS6xFrLK.esm.js";
7
+ import { a as FingerprintProvider, o as getDeviceFingerprintInfo, t as getDisableIpify } from "./session-z8mDIfNZ.esm.js";
8
8
  import { t as IpifyProvider } from "./IpifyProvider-wp6qqO1v.esm.js";
9
9
  import "./browserSimulation-B5_Amlr4.esm.js";
10
10
  import { a as createActor, i as fromPromise } from "./xstate.esm-COokXZK9.esm.js";
@@ -28,8 +28,8 @@ import "./emailStateMachine-D2rWFesQ.esm.js";
28
28
  import { n as createEmailManagerFromActor } from "./emailManager-4RL2kin0.esm.js";
29
29
  import "./selfieStateMachine-DBEkKHvx.esm.js";
30
30
  import { n as createSelfieManagerFromActor } from "./selfieManager-DZAiQU3s.esm.js";
31
- import "./idCaptureStateMachine-DfHrzMby.esm.js";
32
- import { n as createIdCaptureManagerFromActor } from "./idCaptureManager-Cmb8JZaZ.esm.js";
31
+ import "./idCaptureStateMachine-BamGe_4p.esm.js";
32
+ import { n as createIdCaptureManagerFromActor } from "./idCaptureManager-CPTyaHJV.esm.js";
33
33
  import "./phoneStateMachine-QEx9QC81.esm.js";
34
34
  import { n as createPhoneManagerFromActor } from "./phoneManager-DTsFubQ_.esm.js";
35
35
 
package/dist/flow.esm.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import "./api-DZdHZLhE.esm.js";
2
2
  import "./events-uIxiN9N7.esm.js";
3
3
  import "./endpoints-DNtRS0G7.esm.js";
4
- import "./session-cS6xFrLK.esm.js";
4
+ import "./session-z8mDIfNZ.esm.js";
5
5
  import "./IpifyProvider-wp6qqO1v.esm.js";
6
6
  import "./browserSimulation-B5_Amlr4.esm.js";
7
7
  import { a as createActor, i as fromPromise, n as assign, o as createManager, t as setup } from "./xstate.esm-COokXZK9.esm.js";
8
- import { n as getRequiredWasmPipelines, r as normalizeFlowModules, t as getFlow } from "./flowServices-Bk-fRnp3.esm.js";
8
+ import { n as getRequiredWasmPipelines, r as normalizeFlowModules, t as getFlow } from "./flowServices-O6vB_fWX.esm.js";
9
9
  import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-DKpZakUb.esm.js";
10
10
  import { t as getFinishStatus } from "./flowCompletionService-BWnQnePV.esm.js";
11
11
 
@@ -1,6 +1,6 @@
1
1
  import { t as api } from "./api-DZdHZLhE.esm.js";
2
2
  import { t as endpoints } from "./endpoints-DNtRS0G7.esm.js";
3
- import { n as getSessionFingerprintResult, r as initializeSession } from "./session-cS6xFrLK.esm.js";
3
+ import { n as getSessionFingerprintResult, r as initializeSession } from "./session-z8mDIfNZ.esm.js";
4
4
 
5
5
  //#region src/modules/flow/flowUtils.ts
6
6
  const WASM_MODULE_PIPELINES = {
package/dist/home.d.ts CHANGED
@@ -2,7 +2,7 @@ import { t as Manager } from "./Manager-B29-VhX7.js";
2
2
  import "./camera-m4482v-4.js";
3
3
  import "./types-BWX0ell9.js";
4
4
  import { t as EmptyConfig } from "./types-DP2M29nE.js";
5
- import * as xstate277 from "xstate";
5
+ import * as xstate628 from "xstate";
6
6
 
7
7
  //#region src/modules/home/types.d.ts
8
8
  type HomeConfig = EmptyConfig;
@@ -34,41 +34,41 @@ type HomeContext = {
34
34
  type HomeInput = {
35
35
  config: EmptyConfig;
36
36
  };
37
- declare const homeMachine: xstate277.StateMachine<HomeContext, {
37
+ declare const homeMachine: xstate628.StateMachine<HomeContext, {
38
38
  type: "LOAD";
39
39
  } | {
40
40
  type: "COMPLETE";
41
41
  } | {
42
42
  type: "RESET";
43
- }, {}, never, never, never, never, "idle" | "finished" | "main", string, HomeInput, xstate277.NonReducibleUnknown, xstate277.EventObject, xstate277.MetaObject, {
43
+ }, {}, never, never, never, never, "idle" | "finished" | "main", string, HomeInput, xstate628.NonReducibleUnknown, xstate628.EventObject, xstate628.MetaObject, {
44
44
  readonly id: "home";
45
45
  readonly initial: "idle";
46
46
  readonly context: ({
47
47
  input
48
48
  }: {
49
49
  spawn: {
50
- <TSrc extends never>(logic: TSrc, ...[options]: never): xstate277.ActorRefFromLogic<never>;
51
- <TLogic extends xstate277.AnyActorLogic>(src: TLogic, ...[options]: xstate277.ConditionalRequired<[options?: ({
50
+ <TSrc extends never>(logic: TSrc, ...[options]: never): xstate628.ActorRefFromLogic<never>;
51
+ <TLogic extends xstate628.AnyActorLogic>(src: TLogic, ...[options]: xstate628.ConditionalRequired<[options?: ({
52
52
  id?: never;
53
53
  systemId?: string;
54
- input?: xstate277.InputFrom<TLogic> | undefined;
54
+ input?: xstate628.InputFrom<TLogic> | undefined;
55
55
  syncSnapshot?: boolean;
56
- } & { [K in xstate277.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate277.IsNotNever<xstate277.RequiredLogicInput<TLogic>>>): xstate277.ActorRefFromLogic<TLogic>;
56
+ } & { [K in xstate628.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate628.IsNotNever<xstate628.RequiredLogicInput<TLogic>>>): xstate628.ActorRefFromLogic<TLogic>;
57
57
  };
58
58
  input: HomeInput;
59
- self: xstate277.ActorRef<xstate277.MachineSnapshot<HomeContext, {
59
+ self: xstate628.ActorRef<xstate628.MachineSnapshot<HomeContext, {
60
60
  type: "LOAD";
61
61
  } | {
62
62
  type: "COMPLETE";
63
63
  } | {
64
64
  type: "RESET";
65
- }, Record<string, xstate277.AnyActorRef | undefined>, xstate277.StateValue, string, unknown, any, any>, {
65
+ }, Record<string, xstate628.AnyActorRef | undefined>, xstate628.StateValue, string, unknown, any, any>, {
66
66
  type: "LOAD";
67
67
  } | {
68
68
  type: "COMPLETE";
69
69
  } | {
70
70
  type: "RESET";
71
- }, xstate277.AnyEventObject>;
71
+ }, xstate628.AnyEventObject>;
72
72
  }) => {
73
73
  config: EmptyConfig;
74
74
  };