@incodetech/core 0.0.0-dev-20260320-c9bdba0 → 0.0.0-dev-20260320-e46eb90

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 (79) hide show
  1. package/dist/{addressSearch-B446UZn4.esm.js → addressSearch-O-LFYClt.esm.js} +4 -4
  2. package/dist/authentication.d.ts +10 -10
  3. package/dist/authentication.esm.js +11 -11
  4. package/dist/{authenticationManager-IChdnUM9.esm.js → authenticationManager-BDCN6xbG.esm.js} +7 -7
  5. package/dist/{authenticationManager-CsDKpKla.d.ts → authenticationManager-BH1ZY_16.d.ts} +2 -2
  6. package/dist/{backCameraStream-DDzfvhxo.esm.js → backCameraStream-D-_dxon_.esm.js} +1 -1
  7. package/dist/consent.d.ts +402 -0
  8. package/dist/consent.esm.js +231 -0
  9. package/dist/curp-validation.d.ts +4 -4
  10. package/dist/curp-validation.esm.js +5 -5
  11. package/dist/{deepsightLoader-IPtIRYqd.esm.js → deepsightLoader-DXU9BgO8.esm.js} +4 -4
  12. package/dist/{deepsightService-CP5OM4Fc.d.ts → deepsightService-B4HcyNDh.d.ts} +1 -1
  13. package/dist/{deepsightService-Ca85OHZ-.esm.js → deepsightService-B4jCQAh8.esm.js} +3 -3
  14. package/dist/document-capture.d.ts +37 -37
  15. package/dist/document-capture.esm.js +6 -6
  16. package/dist/document-upload.d.ts +3 -3
  17. package/dist/document-upload.esm.js +5 -5
  18. package/dist/ekyb.d.ts +2 -2
  19. package/dist/ekyb.esm.js +7 -7
  20. package/dist/ekyc.d.ts +2 -2
  21. package/dist/ekyc.esm.js +6 -6
  22. package/dist/email.d.ts +3 -3
  23. package/dist/email.esm.js +6 -6
  24. package/dist/{emailManager-BRFO9OW6.esm.js → emailManager-BWKRZIDo.esm.js} +5 -5
  25. package/dist/{emailManager-DcYzBeT-.d.ts → emailManager-jXfroijR.d.ts} +2 -2
  26. package/dist/{endpoints-IAlXA1zN.esm.js → endpoints-BGaT9ldX.esm.js} +2 -0
  27. package/dist/{events-3HzCcoEy.esm.js → events-CcXL3VWp.esm.js} +2 -2
  28. package/dist/extensibility.d.ts +14 -14
  29. package/dist/extensibility.esm.js +15 -15
  30. package/dist/face-match.d.ts +1 -1
  31. package/dist/face-match.esm.js +5 -5
  32. package/dist/{faceCaptureManagerFactory-COWObGBr.d.ts → faceCaptureManagerFactory-CULlsJHa.d.ts} +7 -7
  33. package/dist/{faceCaptureSetup-I9wFuT1d.esm.js → faceCaptureSetup-ePWTb1VF.esm.js} +9 -9
  34. package/dist/flow.d.ts +7 -7
  35. package/dist/flow.esm.js +6 -6
  36. package/dist/{flowCompletionService-D1bhU2uN.esm.js → flowCompletionService-BJ1cHA-d.esm.js} +2 -2
  37. package/dist/{flowServices-B5YbZJ7r.esm.js → flowServices-B5BTeA3c.esm.js} +2 -2
  38. package/dist/geolocation.d.ts +1 -1
  39. package/dist/geolocation.esm.js +5 -5
  40. package/dist/government-validation.d.ts +1 -1
  41. package/dist/government-validation.esm.js +4 -4
  42. package/dist/id.d.ts +9 -9
  43. package/dist/id.esm.js +11 -11
  44. package/dist/{idCaptureManager-7mOidZiv.esm.js → idCaptureManager-DJaBQlDY.esm.js} +10 -10
  45. package/dist/{idCaptureManager-UIUJISQP.d.ts → idCaptureManager-DY9Le1U5.d.ts} +6 -6
  46. package/dist/index.d.ts +10 -10
  47. package/dist/index.esm.js +11 -11
  48. package/dist/{lib-DJozC192.esm.js → lib-DCX3_IAU.esm.js} +1 -1
  49. package/dist/phone.d.ts +3 -3
  50. package/dist/phone.esm.js +6 -6
  51. package/dist/{phoneManager-BwJpxm-D.d.ts → phoneManager-BXeQetqQ.d.ts} +2 -2
  52. package/dist/{phoneManager-D-Mi06el.esm.js → phoneManager-CQKg7NiP.esm.js} +5 -5
  53. package/dist/redirect-to-mobile.d.ts +1 -1
  54. package/dist/redirect-to-mobile.esm.js +4 -4
  55. package/dist/selfie.d.ts +10 -10
  56. package/dist/selfie.esm.js +11 -11
  57. package/dist/{selfieManager-B3CAoqXl.d.ts → selfieManager-BzVXhKYT.d.ts} +2 -2
  58. package/dist/{selfieManager-BeVNeGVa.esm.js → selfieManager-DBIy2tuK.esm.js} +4 -4
  59. package/dist/session.d.ts +1 -1
  60. package/dist/session.esm.js +3 -3
  61. package/dist/{src-D0bFtylT.esm.js → src-LjezYyPe.esm.js} +2 -2
  62. package/dist/{stats-kLtQIgsA.esm.js → stats-DJ3CICeP.esm.js} +1 -1
  63. package/dist/stats.esm.js +2 -2
  64. package/dist/{streamingEvents-BjxVqrJP.esm.js → streamingEvents-JeLmnOFf.esm.js} +3 -3
  65. package/dist/{types-BHnsBsl_.d.ts → types-CSgWWTDb.d.ts} +1 -1
  66. package/dist/{types-BZcBRlI8.d.ts → types-S1nlDDGB.d.ts} +1 -1
  67. package/package.json +5 -1
  68. /package/dist/{Actor-D3GOC38V.d.ts → Actor-Bd72Yikw.d.ts} +0 -0
  69. /package/dist/{Manager-DsNvecSe.d.ts → Manager-DKHVvCA1.d.ts} +0 -0
  70. /package/dist/{StateMachine-BFurBmbZ.d.ts → StateMachine-D-N4dLZo.d.ts} +0 -0
  71. /package/dist/{api-C2uzxrpN.esm.js → api-G4JA8CXK.esm.js} +0 -0
  72. /package/dist/{camera-Bzi6CMAW.d.ts → camera-pEBK1r31.d.ts} +0 -0
  73. /package/dist/{chunk-C4_ANvih.esm.js → chunk-C24vxluH.esm.js} +0 -0
  74. /package/dist/{displayErrors-B2eFGhh_.d.ts → displayErrors-mVWkbnVw.d.ts} +0 -0
  75. /package/dist/{flowCompletionService-BiICW3B-.d.ts → flowCompletionService-B89QmIQg.d.ts} +0 -0
  76. /package/dist/{id-A_upgNRR.esm.js → id-B1BwT5Nd.esm.js} +0 -0
  77. /package/dist/{index-Km_6UPBI.d.ts → index-DwdIY3SO.d.ts} +0 -0
  78. /package/dist/{warmup-4e5k___O.d.ts → warmup-LifmFv5i.d.ts} +0 -0
  79. /package/dist/{xstate.esm-CcoTezCZ.esm.js → xstate.esm-nEixMy7s.esm.js} +0 -0
@@ -0,0 +1,231 @@
1
+ import { d as addEvent, n as eventModuleNames } from "./events-CcXL3VWp.esm.js";
2
+ import { A as createManager } from "./src-LjezYyPe.esm.js";
3
+ import { a as createActor, i as fromPromise, n as assign, t as setup } from "./xstate.esm-nEixMy7s.esm.js";
4
+ import { t as api } from "./api-G4JA8CXK.esm.js";
5
+ import { t as endpoints } from "./endpoints-BGaT9ldX.esm.js";
6
+
7
+ //#region src/modules/consent/consentServices.ts
8
+ async function fetchCombinedConsent(consentId, signal) {
9
+ if (!consentId) throw new Error("Combined consent id is required");
10
+ const res = await api.get(endpoints.getCombinedConsent, {
11
+ signal,
12
+ query: {
13
+ id: consentId,
14
+ language: "en"
15
+ }
16
+ });
17
+ if (!res.ok) throw new Error(`GET ${endpoints.getCombinedConsent} failed: ${res.status} ${res.statusText}`);
18
+ return res.data;
19
+ }
20
+ async function submitCombinedConsent(params, signal) {
21
+ const res = await api.post(endpoints.signCombinedConsent, params, { signal });
22
+ if (!res.ok) throw new Error(`POST ${endpoints.signCombinedConsent} failed: ${res.status} ${res.statusText}`);
23
+ }
24
+
25
+ //#endregion
26
+ //#region src/modules/consent/consentStateMachine.ts
27
+ function toCheckboxRecord(checkboxes) {
28
+ return checkboxes.reduce((acc, checkbox) => {
29
+ acc[checkbox.id] = checkbox.checked;
30
+ return acc;
31
+ }, {});
32
+ }
33
+ const consentMachine = setup({
34
+ types: {
35
+ context: {},
36
+ events: {},
37
+ input: {}
38
+ },
39
+ actors: {
40
+ fetchConsent: fromPromise(async ({ input, signal }) => {
41
+ return fetchCombinedConsent(input.consentId, signal);
42
+ }),
43
+ submitConsent: fromPromise(async ({ input, signal }) => {
44
+ await submitCombinedConsent({
45
+ languageConsentId: input.languageConsentId,
46
+ checkboxes: toCheckboxRecord(input.checkboxes)
47
+ }, signal);
48
+ })
49
+ },
50
+ actions: {
51
+ setConsentData: assign(({ event }) => {
52
+ const output = event.output;
53
+ return {
54
+ title: output.title,
55
+ richText: output.terms,
56
+ languageConsentId: output.languageConsentId,
57
+ checkboxes: output.consents.map((consent) => ({
58
+ id: consent.checkboxId,
59
+ label: consent.consentText,
60
+ required: !consent.optional,
61
+ checked: false
62
+ })),
63
+ error: void 0
64
+ };
65
+ }),
66
+ toggleCheckbox: assign(({ context, event }) => {
67
+ const checkboxId = event.checkboxId;
68
+ return { checkboxes: context.checkboxes.map((checkbox) => checkbox.id === checkboxId ? {
69
+ ...checkbox,
70
+ checked: !checkbox.checked
71
+ } : checkbox) };
72
+ }),
73
+ setError: assign(({ event }) => ({ error: String(event.error) })),
74
+ clearError: assign({ error: () => void 0 }),
75
+ resetContext: assign(({ context }) => ({
76
+ config: context.config,
77
+ title: "",
78
+ richText: "",
79
+ languageConsentId: "",
80
+ checkboxes: [],
81
+ error: void 0
82
+ })),
83
+ trackConsentGiven: () => {
84
+ addEvent({
85
+ code: "combinedConsentGiven",
86
+ module: eventModuleNames.combinedConsent
87
+ });
88
+ }
89
+ },
90
+ guards: { canSubmit: ({ context }) => context.checkboxes.filter((checkbox) => checkbox.required).every((checkbox) => checkbox.checked) }
91
+ }).createMachine({
92
+ id: "consent",
93
+ initial: "idle",
94
+ context: ({ input }) => ({
95
+ config: input.config,
96
+ title: "",
97
+ richText: "",
98
+ languageConsentId: "",
99
+ checkboxes: [],
100
+ error: void 0
101
+ }),
102
+ states: {
103
+ idle: { on: { LOAD: {
104
+ target: "loading",
105
+ actions: "clearError"
106
+ } } },
107
+ loading: { invoke: {
108
+ id: "fetchConsent",
109
+ src: "fetchConsent",
110
+ input: ({ context }) => ({ consentId: String(context.config.combinedConsents ?? context.config.consentId ?? "") }),
111
+ onDone: {
112
+ target: "display",
113
+ actions: "setConsentData"
114
+ },
115
+ onError: {
116
+ target: "error",
117
+ actions: "setError"
118
+ }
119
+ } },
120
+ display: { on: {
121
+ TOGGLE_CHECKBOX: { actions: "toggleCheckbox" },
122
+ SUBMIT: {
123
+ target: "submitting",
124
+ guard: "canSubmit"
125
+ },
126
+ RETRY: {
127
+ target: "loading",
128
+ actions: "clearError"
129
+ }
130
+ } },
131
+ submitting: { invoke: {
132
+ id: "submitConsent",
133
+ src: "submitConsent",
134
+ input: ({ context }) => ({
135
+ languageConsentId: context.languageConsentId,
136
+ checkboxes: context.checkboxes
137
+ }),
138
+ onDone: {
139
+ target: "finished",
140
+ actions: "trackConsentGiven"
141
+ },
142
+ onError: {
143
+ target: "display",
144
+ actions: "setError"
145
+ }
146
+ } },
147
+ error: { on: {
148
+ RETRY: {
149
+ target: "loading",
150
+ actions: "clearError"
151
+ },
152
+ RESET: {
153
+ target: "idle",
154
+ actions: "resetContext"
155
+ }
156
+ } },
157
+ finished: { type: "final" }
158
+ }
159
+ });
160
+
161
+ //#endregion
162
+ //#region src/modules/consent/consentActor.ts
163
+ function createConsentActor(options) {
164
+ return createActor(consentMachine, { input: { config: options.config } }).start();
165
+ }
166
+
167
+ //#endregion
168
+ //#region src/modules/consent/consentManager.ts
169
+ function getCanSubmit(checkboxes) {
170
+ return checkboxes.filter((checkbox) => checkbox.required).every((checkbox) => checkbox.checked);
171
+ }
172
+ function mapState(snapshot) {
173
+ const typedSnapshot = snapshot;
174
+ const { context } = typedSnapshot;
175
+ const canSubmit = getCanSubmit(context.checkboxes);
176
+ if (typedSnapshot.matches("idle")) return { status: "idle" };
177
+ if (typedSnapshot.matches("loading")) return { status: "loading" };
178
+ if (typedSnapshot.matches("display")) return {
179
+ status: "display",
180
+ title: context.title,
181
+ richText: context.richText,
182
+ checkboxes: context.checkboxes,
183
+ canSubmit,
184
+ error: context.error
185
+ };
186
+ if (typedSnapshot.matches("submitting")) return {
187
+ status: "submitting",
188
+ title: context.title,
189
+ richText: context.richText,
190
+ checkboxes: context.checkboxes,
191
+ canSubmit: false
192
+ };
193
+ if (typedSnapshot.matches("finished")) return { status: "finished" };
194
+ if (typedSnapshot.matches("error")) return {
195
+ status: "error",
196
+ error: context.error ?? "Unknown error"
197
+ };
198
+ return { status: "idle" };
199
+ }
200
+ function createApi({ actor }) {
201
+ return {
202
+ load() {
203
+ actor.send({ type: "LOAD" });
204
+ },
205
+ toggleCheckbox(checkboxId) {
206
+ actor.send({
207
+ type: "TOGGLE_CHECKBOX",
208
+ checkboxId
209
+ });
210
+ },
211
+ submit() {
212
+ actor.send({ type: "SUBMIT" });
213
+ },
214
+ retry() {
215
+ actor.send({ type: "RETRY" });
216
+ },
217
+ reset() {
218
+ actor.send({ type: "RESET" });
219
+ }
220
+ };
221
+ }
222
+ function createConsentManager(options) {
223
+ return createManager({
224
+ actor: createConsentActor(options),
225
+ mapState,
226
+ createApi
227
+ });
228
+ }
229
+
230
+ //#endregion
231
+ export { consentMachine, createConsentManager };
@@ -1,7 +1,7 @@
1
- import { t as Manager } from "./Manager-DsNvecSe.js";
2
- import "./camera-Bzi6CMAW.js";
3
- import "./types-BHnsBsl_.js";
4
- import { r as FlowModuleConfig } from "./types-BZcBRlI8.js";
1
+ import { t as Manager } from "./Manager-DKHVvCA1.js";
2
+ import "./camera-pEBK1r31.js";
3
+ import "./types-CSgWWTDb.js";
4
+ import { r as FlowModuleConfig } from "./types-S1nlDDGB.js";
5
5
 
6
6
  //#region src/modules/curp-validation/types.d.ts
7
7
  type CurpValidationConfig = FlowModuleConfig['CURP_VALIDATION'] & {
@@ -1,8 +1,8 @@
1
- import { n as eventModuleNames, r as eventScreenNames, u as screenOpened } from "./events-3HzCcoEy.esm.js";
2
- import { A as createManager } from "./src-D0bFtylT.esm.js";
3
- import { a as createActor, i as fromPromise, n as assign, t as setup } from "./xstate.esm-CcoTezCZ.esm.js";
4
- import { t as api } from "./api-C2uzxrpN.esm.js";
5
- import { t as endpoints } from "./endpoints-IAlXA1zN.esm.js";
1
+ import { n as eventModuleNames, r as eventScreenNames, u as screenOpened } from "./events-CcXL3VWp.esm.js";
2
+ import { A as createManager } from "./src-LjezYyPe.esm.js";
3
+ import { a as createActor, i as fromPromise, n as assign, t as setup } from "./xstate.esm-nEixMy7s.esm.js";
4
+ import { t as api } from "./api-G4JA8CXK.esm.js";
5
+ import { t as endpoints } from "./endpoints-BGaT9ldX.esm.js";
6
6
 
7
7
  //#region src/modules/curp-validation/curpValidationUtils.ts
8
8
  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)$/;
@@ -1,7 +1,7 @@
1
- import { a as WasmUtilProvider, f as MotionSensorProvider, l as VisibilityProvider, y as BrowserEnvironmentProvider } from "./src-D0bFtylT.esm.js";
2
- import { t as createDeepsightService } from "./deepsightService-Ca85OHZ-.esm.js";
3
- import "./api-C2uzxrpN.esm.js";
4
- import "./stats-kLtQIgsA.esm.js";
1
+ import { a as WasmUtilProvider, f as MotionSensorProvider, l as VisibilityProvider, y as BrowserEnvironmentProvider } from "./src-LjezYyPe.esm.js";
2
+ import { t as createDeepsightService } from "./deepsightService-B4jCQAh8.esm.js";
3
+ import "./api-G4JA8CXK.esm.js";
4
+ import "./stats-DJ3CICeP.esm.js";
5
5
 
6
6
  //#region src/internal/deepsight/deepsightLoader.ts
7
7
  const SDK_VERSION = "2.0.0";
@@ -1,4 +1,4 @@
1
- import { t as CameraStream } from "./camera-Bzi6CMAW.js";
1
+ import { t as CameraStream } from "./camera-pEBK1r31.js";
2
2
 
3
3
  //#region ../infra/src/media/canvas.d.ts
4
4
  /**
@@ -1,6 +1,6 @@
1
- import { M as getDeviceInfo, O as requestCameraAccess, P as getUserAgent, T as IncodeCanvas, k as stopCameraStream, w as createHiddenVideoElement } from "./src-D0bFtylT.esm.js";
2
- import { t as api } from "./api-C2uzxrpN.esm.js";
3
- import { t as addDeviceStats } from "./stats-kLtQIgsA.esm.js";
1
+ import { M as getDeviceInfo, O as requestCameraAccess, P as getUserAgent, T as IncodeCanvas, k as stopCameraStream, w as createHiddenVideoElement } from "./src-LjezYyPe.esm.js";
2
+ import { t as api } from "./api-G4JA8CXK.esm.js";
3
+ import { t as addDeviceStats } from "./stats-DJ3CICeP.esm.js";
4
4
 
5
5
  //#region src/internal/device/browserSimulation.ts
6
6
  const AUTOMATION_MARKERS = {
@@ -1,6 +1,6 @@
1
- import { t as Manager } from "./Manager-DsNvecSe.js";
2
- import { t as CameraStream } from "./camera-Bzi6CMAW.js";
3
- import * as xstate63 from "xstate";
1
+ import { t as Manager } from "./Manager-DKHVvCA1.js";
2
+ import { t as CameraStream } from "./camera-pEBK1r31.js";
3
+ import * as xstate126 from "xstate";
4
4
 
5
5
  //#region src/modules/document-capture/types.d.ts
6
6
  type DocumentType = 'addressStatement' | 'otherDocument1' | 'otherDocument2' | 'otherDocument3' | 'v5cMultiPageLogbook' | 'circulationCard' | 'financeSettlement' | 'carInvoice' | 'capture' | 'processPoaOcr' | 'processLoaOcr' | 'processAsylumSeekerVisaZaf' | 'processBankStatementOCR' | 'processBankCheck' | 'processV5CLogbook' | 'processCarInvoice' | 'processCirculationCard' | 'processFinanceSettlement';
@@ -72,7 +72,7 @@ type DocumentCaptureInput = {
72
72
  };
73
73
  //#endregion
74
74
  //#region src/modules/document-capture/documentCaptureStateMachine.d.ts
75
- declare const documentCaptureMachine: xstate63.StateMachine<DocumentCaptureContext, {
75
+ declare const documentCaptureMachine: xstate126.StateMachine<DocumentCaptureContext, {
76
76
  type: "CAPTURE";
77
77
  } | {
78
78
  type: "FILE_SELECTED";
@@ -95,27 +95,27 @@ declare const documentCaptureMachine: xstate63.StateMachine<DocumentCaptureConte
95
95
  } | {
96
96
  type: "CLOSE";
97
97
  }, {
98
- [x: string]: xstate63.ActorRefFromLogic<xstate63.PromiseActorLogic<MediaStream, void, xstate63.EventObject>> | xstate63.ActorRefFromLogic<xstate63.PromiseActorLogic<DocumentUploadResponse, {
98
+ [x: string]: xstate126.ActorRefFromLogic<xstate126.PromiseActorLogic<MediaStream, void, xstate126.EventObject>> | xstate126.ActorRefFromLogic<xstate126.PromiseActorLogic<DocumentUploadResponse, {
99
99
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
100
100
  processingType: string;
101
101
  onProgress: (progress: number) => void;
102
- }, xstate63.EventObject>> | undefined;
103
- }, xstate63.Values<{
102
+ }, xstate126.EventObject>> | undefined;
103
+ }, xstate126.Values<{
104
104
  initCamera: {
105
105
  src: "initCamera";
106
- logic: xstate63.PromiseActorLogic<MediaStream, void, xstate63.EventObject>;
106
+ logic: xstate126.PromiseActorLogic<MediaStream, void, xstate126.EventObject>;
107
107
  id: string | undefined;
108
108
  };
109
109
  uploadDocument: {
110
110
  src: "uploadDocument";
111
- logic: xstate63.PromiseActorLogic<DocumentUploadResponse, {
111
+ logic: xstate126.PromiseActorLogic<DocumentUploadResponse, {
112
112
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
113
113
  processingType: string;
114
114
  onProgress: (progress: number) => void;
115
- }, xstate63.EventObject>;
115
+ }, xstate126.EventObject>;
116
116
  id: string | undefined;
117
117
  };
118
- }>, xstate63.Values<{
118
+ }>, xstate126.Values<{
119
119
  setStream: {
120
120
  type: "setStream";
121
121
  params: unknown;
@@ -196,7 +196,7 @@ declare const documentCaptureMachine: xstate63.StateMachine<DocumentCaptureConte
196
196
  type: "trackFailure";
197
197
  params: unknown;
198
198
  };
199
- }>, xstate63.Values<{
199
+ }>, xstate126.Values<{
200
200
  allowSkip: {
201
201
  type: "allowSkip";
202
202
  params: unknown;
@@ -233,7 +233,7 @@ declare const documentCaptureMachine: xstate63.StateMachine<DocumentCaptureConte
233
233
  type: "isPendingNextPage";
234
234
  params: unknown;
235
235
  };
236
- }>, never, "initCamera" | "capturing" | "closed" | "uploading" | "finished" | "tutorial" | "preview" | "failure" | "success", string, DocumentCaptureInput, xstate63.NonReducibleUnknown, xstate63.EventObject, xstate63.MetaObject, {
236
+ }>, never, "initCamera" | "capturing" | "closed" | "uploading" | "finished" | "tutorial" | "preview" | "failure" | "success", string, DocumentCaptureInput, xstate126.NonReducibleUnknown, xstate126.EventObject, xstate126.MetaObject, {
237
237
  readonly id: "documentCapture";
238
238
  readonly initial: "tutorial";
239
239
  readonly context: ({
@@ -242,67 +242,67 @@ declare const documentCaptureMachine: xstate63.StateMachine<DocumentCaptureConte
242
242
  spawn: {
243
243
  <TSrc extends "initCamera" | "uploadDocument">(logic: TSrc, ...[options]: ({
244
244
  src: "initCamera";
245
- logic: xstate63.PromiseActorLogic<MediaStream, void, xstate63.EventObject>;
245
+ logic: xstate126.PromiseActorLogic<MediaStream, void, xstate126.EventObject>;
246
246
  id: string | undefined;
247
247
  } extends infer T ? T extends {
248
248
  src: "initCamera";
249
- logic: xstate63.PromiseActorLogic<MediaStream, void, xstate63.EventObject>;
249
+ logic: xstate126.PromiseActorLogic<MediaStream, void, xstate126.EventObject>;
250
250
  id: string | undefined;
251
251
  } ? T extends {
252
252
  src: TSrc;
253
- } ? xstate63.ConditionalRequired<[options?: ({
253
+ } ? xstate126.ConditionalRequired<[options?: ({
254
254
  id?: T["id"] | undefined;
255
255
  systemId?: string;
256
- input?: xstate63.InputFrom<T["logic"]> | undefined;
256
+ input?: xstate126.InputFrom<T["logic"]> | undefined;
257
257
  syncSnapshot?: boolean;
258
- } & { [K in xstate63.RequiredActorOptions<T>]: unknown }) | undefined], xstate63.IsNotNever<xstate63.RequiredActorOptions<T>>> : never : never : never) | ({
258
+ } & { [K in xstate126.RequiredActorOptions<T>]: unknown }) | undefined], xstate126.IsNotNever<xstate126.RequiredActorOptions<T>>> : never : never : never) | ({
259
259
  src: "uploadDocument";
260
- logic: xstate63.PromiseActorLogic<DocumentUploadResponse, {
260
+ logic: xstate126.PromiseActorLogic<DocumentUploadResponse, {
261
261
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
262
262
  processingType: string;
263
263
  onProgress: (progress: number) => void;
264
- }, xstate63.EventObject>;
264
+ }, xstate126.EventObject>;
265
265
  id: string | undefined;
266
266
  } extends infer T_1 ? T_1 extends {
267
267
  src: "uploadDocument";
268
- logic: xstate63.PromiseActorLogic<DocumentUploadResponse, {
268
+ logic: xstate126.PromiseActorLogic<DocumentUploadResponse, {
269
269
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
270
270
  processingType: string;
271
271
  onProgress: (progress: number) => void;
272
- }, xstate63.EventObject>;
272
+ }, xstate126.EventObject>;
273
273
  id: string | undefined;
274
274
  } ? T_1 extends {
275
275
  src: TSrc;
276
- } ? xstate63.ConditionalRequired<[options?: ({
276
+ } ? xstate126.ConditionalRequired<[options?: ({
277
277
  id?: T_1["id"] | undefined;
278
278
  systemId?: string;
279
- input?: xstate63.InputFrom<T_1["logic"]> | undefined;
279
+ input?: xstate126.InputFrom<T_1["logic"]> | undefined;
280
280
  syncSnapshot?: boolean;
281
- } & { [K_1 in xstate63.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate63.IsNotNever<xstate63.RequiredActorOptions<T_1>>> : never : never : never)): xstate63.ActorRefFromLogic<xstate63.GetConcreteByKey<xstate63.Values<{
281
+ } & { [K_1 in xstate126.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate126.IsNotNever<xstate126.RequiredActorOptions<T_1>>> : never : never : never)): xstate126.ActorRefFromLogic<xstate126.GetConcreteByKey<xstate126.Values<{
282
282
  initCamera: {
283
283
  src: "initCamera";
284
- logic: xstate63.PromiseActorLogic<MediaStream, void, xstate63.EventObject>;
284
+ logic: xstate126.PromiseActorLogic<MediaStream, void, xstate126.EventObject>;
285
285
  id: string | undefined;
286
286
  };
287
287
  uploadDocument: {
288
288
  src: "uploadDocument";
289
- logic: xstate63.PromiseActorLogic<DocumentUploadResponse, {
289
+ logic: xstate126.PromiseActorLogic<DocumentUploadResponse, {
290
290
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
291
291
  processingType: string;
292
292
  onProgress: (progress: number) => void;
293
- }, xstate63.EventObject>;
293
+ }, xstate126.EventObject>;
294
294
  id: string | undefined;
295
295
  };
296
296
  }>, "src", TSrc>["logic"]>;
297
- <TLogic extends xstate63.AnyActorLogic>(src: TLogic, ...[options]: xstate63.ConditionalRequired<[options?: ({
297
+ <TLogic extends xstate126.AnyActorLogic>(src: TLogic, ...[options]: xstate126.ConditionalRequired<[options?: ({
298
298
  id?: never;
299
299
  systemId?: string;
300
- input?: xstate63.InputFrom<TLogic> | undefined;
300
+ input?: xstate126.InputFrom<TLogic> | undefined;
301
301
  syncSnapshot?: boolean;
302
- } & { [K in xstate63.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate63.IsNotNever<xstate63.RequiredLogicInput<TLogic>>>): xstate63.ActorRefFromLogic<TLogic>;
302
+ } & { [K in xstate126.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate126.IsNotNever<xstate126.RequiredLogicInput<TLogic>>>): xstate126.ActorRefFromLogic<TLogic>;
303
303
  };
304
304
  input: DocumentCaptureInput;
305
- self: xstate63.ActorRef<xstate63.MachineSnapshot<DocumentCaptureContext, {
305
+ self: xstate126.ActorRef<xstate126.MachineSnapshot<DocumentCaptureContext, {
306
306
  type: "CAPTURE";
307
307
  } | {
308
308
  type: "FILE_SELECTED";
@@ -324,7 +324,7 @@ declare const documentCaptureMachine: xstate63.StateMachine<DocumentCaptureConte
324
324
  type: "SKIP";
325
325
  } | {
326
326
  type: "CLOSE";
327
- }, Record<string, xstate63.AnyActorRef | undefined>, xstate63.StateValue, string, unknown, any, any>, {
327
+ }, Record<string, xstate126.AnyActorRef | undefined>, xstate126.StateValue, string, unknown, any, any>, {
328
328
  type: "CAPTURE";
329
329
  } | {
330
330
  type: "FILE_SELECTED";
@@ -346,7 +346,7 @@ declare const documentCaptureMachine: xstate63.StateMachine<DocumentCaptureConte
346
346
  type: "SKIP";
347
347
  } | {
348
348
  type: "CLOSE";
349
- }, xstate63.AnyEventObject>;
349
+ }, xstate126.AnyEventObject>;
350
350
  }) => {
351
351
  config: {
352
352
  processingType: DocumentType;
@@ -487,7 +487,7 @@ declare const documentCaptureMachine: xstate63.StateMachine<DocumentCaptureConte
487
487
  } | {
488
488
  type: "CLOSE";
489
489
  };
490
- self: xstate63.ActorRef<xstate63.MachineSnapshot<DocumentCaptureContext, {
490
+ self: xstate126.ActorRef<xstate126.MachineSnapshot<DocumentCaptureContext, {
491
491
  type: "CAPTURE";
492
492
  } | {
493
493
  type: "FILE_SELECTED";
@@ -509,7 +509,7 @@ declare const documentCaptureMachine: xstate63.StateMachine<DocumentCaptureConte
509
509
  type: "SKIP";
510
510
  } | {
511
511
  type: "CLOSE";
512
- }, Record<string, xstate63.AnyActorRef>, xstate63.StateValue, string, unknown, any, any>, {
512
+ }, Record<string, xstate126.AnyActorRef>, xstate126.StateValue, string, unknown, any, any>, {
513
513
  type: "CAPTURE";
514
514
  } | {
515
515
  type: "FILE_SELECTED";
@@ -531,7 +531,7 @@ declare const documentCaptureMachine: xstate63.StateMachine<DocumentCaptureConte
531
531
  type: "SKIP";
532
532
  } | {
533
533
  type: "CLOSE";
534
- }, xstate63.AnyEventObject>;
534
+ }, xstate126.AnyEventObject>;
535
535
  }) => {
536
536
  capturedDocument: CapturedDocument;
537
537
  processingType: DocumentType;
@@ -1,9 +1,9 @@
1
- import { n as eventModuleNames, r as eventScreenNames, u as screenOpened } from "./events-3HzCcoEy.esm.js";
2
- import { t as getBackCameraStream } from "./backCameraStream-DDzfvhxo.esm.js";
3
- import { A as createManager, k as stopCameraStream } from "./src-D0bFtylT.esm.js";
4
- import { a as createActor, i as fromPromise, n as assign, t as setup } from "./xstate.esm-CcoTezCZ.esm.js";
5
- import { t as api } from "./api-C2uzxrpN.esm.js";
6
- import { t as endpoints } from "./endpoints-IAlXA1zN.esm.js";
1
+ import { n as eventModuleNames, r as eventScreenNames, u as screenOpened } from "./events-CcXL3VWp.esm.js";
2
+ import { t as getBackCameraStream } from "./backCameraStream-D-_dxon_.esm.js";
3
+ import { A as createManager, k as stopCameraStream } from "./src-LjezYyPe.esm.js";
4
+ import { a as createActor, i as fromPromise, n as assign, t as setup } from "./xstate.esm-nEixMy7s.esm.js";
5
+ import { t as api } from "./api-G4JA8CXK.esm.js";
6
+ import { t as endpoints } from "./endpoints-BGaT9ldX.esm.js";
7
7
 
8
8
  //#region src/modules/document-capture/types.ts
9
9
  const PROCESSING_TYPE_MAP = {
@@ -1,6 +1,6 @@
1
- import { t as Manager } from "./Manager-DsNvecSe.js";
2
- import "./camera-Bzi6CMAW.js";
3
- import { n as DocumentUploadContext, r as DocumentUploadInput, t as DocumentUploadConfig } from "./types-BHnsBsl_.js";
1
+ import { t as Manager } from "./Manager-DKHVvCA1.js";
2
+ import "./camera-pEBK1r31.js";
3
+ import { n as DocumentUploadContext, r as DocumentUploadInput, t as DocumentUploadConfig } from "./types-CSgWWTDb.js";
4
4
  import * as xstate0 from "xstate";
5
5
 
6
6
  //#region src/modules/document-upload/documentUploadStateMachine.d.ts
@@ -1,8 +1,8 @@
1
- import { t as getBackCameraStream } from "./backCameraStream-DDzfvhxo.esm.js";
2
- import { A as createManager, k as stopCameraStream } from "./src-D0bFtylT.esm.js";
3
- import { a as createActor, i as fromPromise, n as assign, t as setup } from "./xstate.esm-CcoTezCZ.esm.js";
4
- import { t as api } from "./api-C2uzxrpN.esm.js";
5
- import { t as endpoints } from "./endpoints-IAlXA1zN.esm.js";
1
+ import { t as getBackCameraStream } from "./backCameraStream-D-_dxon_.esm.js";
2
+ import { A as createManager, k as stopCameraStream } from "./src-LjezYyPe.esm.js";
3
+ import { a as createActor, i as fromPromise, n as assign, t as setup } from "./xstate.esm-nEixMy7s.esm.js";
4
+ import { t as api } from "./api-G4JA8CXK.esm.js";
5
+ import { t as endpoints } from "./endpoints-BGaT9ldX.esm.js";
6
6
 
7
7
  //#region src/modules/document-upload/documentUploadServices.ts
8
8
  async function uploadDocument({ imageBase64, documentType, onProgress, signal }) {
package/dist/ekyb.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { t as Manager } from "./Manager-DsNvecSe.js";
2
- import { n as AddressSuggestion, r as FieldDef, t as DisplayErrorsResult } from "./displayErrors-B2eFGhh_.js";
1
+ import { t as Manager } from "./Manager-DKHVvCA1.js";
2
+ import { n as AddressSuggestion, r as FieldDef, t as DisplayErrorsResult } from "./displayErrors-mVWkbnVw.js";
3
3
 
4
4
  //#region src/modules/ekyb/types.d.ts
5
5
  type UboEntry = {
package/dist/ekyb.esm.js CHANGED
@@ -1,10 +1,10 @@
1
- import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-3HzCcoEy.esm.js";
2
- import { A as createManager } from "./src-D0bFtylT.esm.js";
3
- import { a as createActor, i as fromPromise, n as assign, t as setup } from "./xstate.esm-CcoTezCZ.esm.js";
4
- import { t as api } from "./api-C2uzxrpN.esm.js";
5
- import { t as endpoints } from "./endpoints-IAlXA1zN.esm.js";
6
- 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-B446UZn4.esm.js";
7
- import { t as getFlow } from "./flowServices-B5YbZJ7r.esm.js";
1
+ import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-CcXL3VWp.esm.js";
2
+ import { A as createManager } from "./src-LjezYyPe.esm.js";
3
+ import { a as createActor, i as fromPromise, n as assign, t as setup } from "./xstate.esm-nEixMy7s.esm.js";
4
+ import { t as api } from "./api-G4JA8CXK.esm.js";
5
+ import { t as endpoints } from "./endpoints-BGaT9ldX.esm.js";
6
+ 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-O-LFYClt.esm.js";
7
+ import { t as getFlow } from "./flowServices-B5BTeA3c.esm.js";
8
8
 
9
9
  //#region src/modules/ekyb/ekybConstants.ts
10
10
  const UBO_INPUT_LIMIT = 8;
package/dist/ekyc.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { t as Manager } from "./Manager-DsNvecSe.js";
2
- import { n as AddressSuggestion, r as FieldDef, t as DisplayErrorsResult } from "./displayErrors-B2eFGhh_.js";
1
+ import { t as Manager } from "./Manager-DKHVvCA1.js";
2
+ import { n as AddressSuggestion, r as FieldDef, t as DisplayErrorsResult } from "./displayErrors-mVWkbnVw.js";
3
3
 
4
4
  //#region src/modules/ekyc/types.d.ts
5
5
  type EkycFieldSource = 'user_input' | 'document_scan' | 'poa_document' | 'phone_module_input' | 'email_module_input' | false;
package/dist/ekyc.esm.js CHANGED
@@ -1,9 +1,9 @@
1
- import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-3HzCcoEy.esm.js";
2
- import { A as createManager } from "./src-D0bFtylT.esm.js";
3
- import { a as createActor, i as fromPromise, n as assign, t as setup } from "./xstate.esm-CcoTezCZ.esm.js";
4
- import { t as api } from "./api-C2uzxrpN.esm.js";
5
- import { t as endpoints } from "./endpoints-IAlXA1zN.esm.js";
6
- 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-B446UZn4.esm.js";
1
+ import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-CcXL3VWp.esm.js";
2
+ import { A as createManager } from "./src-LjezYyPe.esm.js";
3
+ import { a as createActor, i as fromPromise, n as assign, t as setup } from "./xstate.esm-nEixMy7s.esm.js";
4
+ import { t as api } from "./api-G4JA8CXK.esm.js";
5
+ import { t as endpoints } from "./endpoints-BGaT9ldX.esm.js";
6
+ 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-O-LFYClt.esm.js";
7
7
 
8
8
  //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/metadata.min.json.js
9
9
  var metadata_min_json_default = {
package/dist/email.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import "./Manager-DsNvecSe.js";
2
- import "./Actor-D3GOC38V.js";
3
- import { a as emailMachine, n as EmailState, o as EmailConfig, r as createEmailManager, t as EmailManager } from "./emailManager-DcYzBeT-.js";
1
+ import "./Manager-DKHVvCA1.js";
2
+ import "./Actor-Bd72Yikw.js";
3
+ import { a as emailMachine, n as EmailState, o as EmailConfig, r as createEmailManager, t as EmailManager } from "./emailManager-jXfroijR.js";
4
4
  export { type EmailConfig, type EmailManager, type EmailState, createEmailManager, emailMachine };
package/dist/email.esm.js CHANGED
@@ -1,8 +1,8 @@
1
- import "./events-3HzCcoEy.esm.js";
2
- import "./src-D0bFtylT.esm.js";
3
- import "./xstate.esm-CcoTezCZ.esm.js";
4
- import "./api-C2uzxrpN.esm.js";
5
- import "./endpoints-IAlXA1zN.esm.js";
6
- import { r as emailMachine, t as createEmailManager } from "./emailManager-BRFO9OW6.esm.js";
1
+ import "./events-CcXL3VWp.esm.js";
2
+ import "./src-LjezYyPe.esm.js";
3
+ import "./xstate.esm-nEixMy7s.esm.js";
4
+ import "./api-G4JA8CXK.esm.js";
5
+ import "./endpoints-BGaT9ldX.esm.js";
6
+ import { r as emailMachine, t as createEmailManager } from "./emailManager-BWKRZIDo.esm.js";
7
7
 
8
8
  export { createEmailManager, emailMachine };
@@ -1,8 +1,8 @@
1
- import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-3HzCcoEy.esm.js";
2
- import { A as createManager, g as BrowserTimerProvider } from "./src-D0bFtylT.esm.js";
3
- import { a as createActor, i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-CcoTezCZ.esm.js";
4
- import { t as api } from "./api-C2uzxrpN.esm.js";
5
- import { t as endpoints } from "./endpoints-IAlXA1zN.esm.js";
1
+ import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-CcXL3VWp.esm.js";
2
+ import { A as createManager, g as BrowserTimerProvider } from "./src-LjezYyPe.esm.js";
3
+ import { a as createActor, i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-nEixMy7s.esm.js";
4
+ import { t as api } from "./api-G4JA8CXK.esm.js";
5
+ import { t as endpoints } from "./endpoints-BGaT9ldX.esm.js";
6
6
 
7
7
  //#region src/modules/email/emailServices.ts
8
8
  async function fetchEmail(signal) {
@@ -1,5 +1,5 @@
1
- import { t as Manager } from "./Manager-DsNvecSe.js";
2
- import { t as ActorRefFrom } from "./Actor-D3GOC38V.js";
1
+ import { t as Manager } from "./Manager-DKHVvCA1.js";
2
+ import { t as ActorRefFrom } from "./Actor-Bd72Yikw.js";
3
3
 
4
4
  //#region src/modules/email/types.d.ts
5
5