@incodetech/core 0.0.0-dev-20260401-620f105 → 0.0.0-dev-20260401-018c3ea

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 (40) hide show
  1. package/dist/{addressSearch-CVORoFHv.esm.js → addressSearch-DzOdaNEA.esm.js} +1 -1
  2. package/dist/authentication.esm.js +6 -6
  3. package/dist/{authenticationManager-DMbrmeCK.esm.js → authenticationManager-CBSPCdJc.esm.js} +3 -3
  4. package/dist/{backCameraStream-CTPugcLL.esm.js → backCameraStream-BGAbuvw1.esm.js} +1 -1
  5. package/dist/consent.d.ts +53 -53
  6. package/dist/consent.esm.js +1 -1
  7. package/dist/curp-validation.esm.js +1 -1
  8. package/dist/{deepsightLoader-ZyEiKNss.esm.js → deepsightLoader-B93Oa9pS.esm.js} +2 -2
  9. package/dist/{deepsightService-qolSLlqQ.esm.js → deepsightService-CLUMQ5ee.esm.js} +1 -1
  10. package/dist/document-capture.d.ts +58 -58
  11. package/dist/document-capture.esm.js +2 -2
  12. package/dist/document-upload.d.ts +49 -49
  13. package/dist/document-upload.esm.js +2 -2
  14. package/dist/ekyb.esm.js +4 -4
  15. package/dist/ekyc.esm.js +2 -2
  16. package/dist/email.esm.js +2 -2
  17. package/dist/{emailManager-CPOeN76P.esm.js → emailManager-DSR9gQLX.esm.js} +1 -1
  18. package/dist/extensibility.esm.js +11 -11
  19. package/dist/face-match.esm.js +1 -1
  20. package/dist/{faceCaptureSetup-Ca7SG6Xe.esm.js → faceCaptureSetup-Rr7LUbBm.esm.js} +4 -4
  21. package/dist/flow.esm.js +3 -3
  22. package/dist/{flowServices-C65cm0LX.esm.js → flowServices-Bt6lMLUI.esm.js} +1 -1
  23. package/dist/geolocation.esm.js +1 -1
  24. package/dist/government-validation.esm.js +1 -1
  25. package/dist/id.esm.js +6 -6
  26. package/dist/{idCaptureManager-CDEC7BSu.esm.js → idCaptureManager-QyM4nIKM.esm.js} +5 -5
  27. package/dist/index.d.ts +17 -5
  28. package/dist/index.esm.js +25 -17
  29. package/dist/mandatory-consent.d.ts +50 -50
  30. package/dist/mandatory-consent.esm.js +1 -1
  31. package/dist/phone.esm.js +2 -2
  32. package/dist/{phoneManager-B5sf9ARV.esm.js → phoneManager-D2nZtu-b.esm.js} +1 -1
  33. package/dist/{recordingsRepository-IvkvHqPF.esm.js → recordingsRepository-Djt_In2b.esm.js} +1 -1
  34. package/dist/redirect-to-mobile.esm.js +1 -1
  35. package/dist/selfie.esm.js +6 -6
  36. package/dist/{selfieManager-BIQkjPBF.esm.js → selfieManager-CvE35L72.esm.js} +2 -2
  37. package/dist/{session-CVMjvvmd.esm.js → session-CUy9-Yzi.esm.js} +1 -1
  38. package/dist/signature.esm.js +1 -1
  39. package/dist/{src-NguNDCeE.esm.js → src-8rn6DoH7.esm.js} +88 -1
  40. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import { f as Manager } from "./index-BTaLQSj9.js";
2
2
  import "./types-oveF7RrS.js";
3
3
  import { i as RegulationTypes } from "./types-mQLzH6uw.js";
4
- import * as xstate204 from "xstate";
4
+ import * as xstate417 from "xstate";
5
5
 
6
6
  //#region src/modules/mandatory-consent/types.d.ts
7
7
  type MandatoryConsentConfig = {
@@ -28,7 +28,7 @@ type MandatoryConsentContext = {
28
28
  type MandatoryConsentInput = {
29
29
  config: MandatoryConsentConfig;
30
30
  };
31
- declare const mandatoryConsentMachine: xstate204.StateMachine<MandatoryConsentContext, {
31
+ declare const mandatoryConsentMachine: xstate417.StateMachine<MandatoryConsentContext, {
32
32
  type: "LOAD";
33
33
  } | {
34
34
  type: "TOGGLE";
@@ -41,53 +41,53 @@ declare const mandatoryConsentMachine: xstate204.StateMachine<MandatoryConsentCo
41
41
  } | {
42
42
  type: "RESET";
43
43
  }, {
44
- [x: string]: xstate204.ActorRefFromLogic<xstate204.PromiseActorLogic<FetchMandatoryConsentResponse, {
44
+ [x: string]: xstate417.ActorRefFromLogic<xstate417.PromiseActorLogic<FetchMandatoryConsentResponse, {
45
45
  config: MandatoryConsentConfig;
46
- }, xstate204.EventObject>> | xstate204.ActorRefFromLogic<xstate204.PromiseActorLogic<void, {
46
+ }, xstate417.EventObject>> | xstate417.ActorRefFromLogic<xstate417.PromiseActorLogic<void, {
47
47
  consentId: string;
48
48
  isSigned: boolean;
49
- }, xstate204.EventObject>> | undefined;
50
- }, xstate204.Values<{
49
+ }, xstate417.EventObject>> | undefined;
50
+ }, xstate417.Values<{
51
51
  fetchConsent: {
52
52
  src: "fetchConsent";
53
- logic: xstate204.PromiseActorLogic<FetchMandatoryConsentResponse, {
53
+ logic: xstate417.PromiseActorLogic<FetchMandatoryConsentResponse, {
54
54
  config: MandatoryConsentConfig;
55
- }, xstate204.EventObject>;
55
+ }, xstate417.EventObject>;
56
56
  id: string | undefined;
57
57
  };
58
58
  submitConsent: {
59
59
  src: "submitConsent";
60
- logic: xstate204.PromiseActorLogic<void, {
60
+ logic: xstate417.PromiseActorLogic<void, {
61
61
  consentId: string;
62
62
  isSigned: boolean;
63
- }, xstate204.EventObject>;
63
+ }, xstate417.EventObject>;
64
64
  id: string | undefined;
65
65
  };
66
- }>, xstate204.Values<{
67
- setError: {
68
- type: "setError";
69
- params: xstate204.NonReducibleUnknown;
70
- };
66
+ }>, xstate417.Values<{
71
67
  clearError: {
72
68
  type: "clearError";
73
- params: xstate204.NonReducibleUnknown;
69
+ params: xstate417.NonReducibleUnknown;
70
+ };
71
+ setError: {
72
+ type: "setError";
73
+ params: xstate417.NonReducibleUnknown;
74
74
  };
75
75
  resetContext: {
76
76
  type: "resetContext";
77
- params: xstate204.NonReducibleUnknown;
77
+ params: xstate417.NonReducibleUnknown;
78
78
  };
79
79
  setConsent: {
80
80
  type: "setConsent";
81
- params: xstate204.NonReducibleUnknown;
81
+ params: xstate417.NonReducibleUnknown;
82
82
  };
83
83
  toggleSigned: {
84
84
  type: "toggleSigned";
85
- params: xstate204.NonReducibleUnknown;
85
+ params: xstate417.NonReducibleUnknown;
86
86
  };
87
87
  }>, {
88
88
  type: "canSubmit";
89
89
  params: unknown;
90
- }, never, "error" | "idle" | "loading" | "display" | "submitting" | "finished" | "closed", string, MandatoryConsentInput, xstate204.NonReducibleUnknown, xstate204.EventObject, xstate204.MetaObject, {
90
+ }, never, "error" | "finished" | "closed" | "idle" | "loading" | "display" | "submitting", string, MandatoryConsentInput, xstate417.NonReducibleUnknown, xstate417.EventObject, xstate417.MetaObject, {
91
91
  readonly id: "mandatoryConsent";
92
92
  readonly initial: "idle";
93
93
  readonly context: ({
@@ -96,70 +96,70 @@ declare const mandatoryConsentMachine: xstate204.StateMachine<MandatoryConsentCo
96
96
  spawn: {
97
97
  <TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
98
98
  src: "fetchConsent";
99
- logic: xstate204.PromiseActorLogic<FetchMandatoryConsentResponse, {
99
+ logic: xstate417.PromiseActorLogic<FetchMandatoryConsentResponse, {
100
100
  config: MandatoryConsentConfig;
101
- }, xstate204.EventObject>;
101
+ }, xstate417.EventObject>;
102
102
  id: string | undefined;
103
103
  } extends infer T ? T extends {
104
104
  src: "fetchConsent";
105
- logic: xstate204.PromiseActorLogic<FetchMandatoryConsentResponse, {
105
+ logic: xstate417.PromiseActorLogic<FetchMandatoryConsentResponse, {
106
106
  config: MandatoryConsentConfig;
107
- }, xstate204.EventObject>;
107
+ }, xstate417.EventObject>;
108
108
  id: string | undefined;
109
109
  } ? T extends {
110
110
  src: TSrc;
111
- } ? xstate204.ConditionalRequired<[options?: ({
111
+ } ? xstate417.ConditionalRequired<[options?: ({
112
112
  id?: T["id"] | undefined;
113
113
  systemId?: string;
114
- input?: xstate204.InputFrom<T["logic"]> | undefined;
114
+ input?: xstate417.InputFrom<T["logic"]> | undefined;
115
115
  syncSnapshot?: boolean;
116
- } & { [K in xstate204.RequiredActorOptions<T>]: unknown }) | undefined], xstate204.IsNotNever<xstate204.RequiredActorOptions<T>>> : never : never : never) | ({
116
+ } & { [K in xstate417.RequiredActorOptions<T>]: unknown }) | undefined], xstate417.IsNotNever<xstate417.RequiredActorOptions<T>>> : never : never : never) | ({
117
117
  src: "submitConsent";
118
- logic: xstate204.PromiseActorLogic<void, {
118
+ logic: xstate417.PromiseActorLogic<void, {
119
119
  consentId: string;
120
120
  isSigned: boolean;
121
- }, xstate204.EventObject>;
121
+ }, xstate417.EventObject>;
122
122
  id: string | undefined;
123
123
  } extends infer T_1 ? T_1 extends {
124
124
  src: "submitConsent";
125
- logic: xstate204.PromiseActorLogic<void, {
125
+ logic: xstate417.PromiseActorLogic<void, {
126
126
  consentId: string;
127
127
  isSigned: boolean;
128
- }, xstate204.EventObject>;
128
+ }, xstate417.EventObject>;
129
129
  id: string | undefined;
130
130
  } ? T_1 extends {
131
131
  src: TSrc;
132
- } ? xstate204.ConditionalRequired<[options?: ({
132
+ } ? xstate417.ConditionalRequired<[options?: ({
133
133
  id?: T_1["id"] | undefined;
134
134
  systemId?: string;
135
- input?: xstate204.InputFrom<T_1["logic"]> | undefined;
135
+ input?: xstate417.InputFrom<T_1["logic"]> | undefined;
136
136
  syncSnapshot?: boolean;
137
- } & { [K_1 in xstate204.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate204.IsNotNever<xstate204.RequiredActorOptions<T_1>>> : never : never : never)): xstate204.ActorRefFromLogic<xstate204.GetConcreteByKey<xstate204.Values<{
137
+ } & { [K_1 in xstate417.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate417.IsNotNever<xstate417.RequiredActorOptions<T_1>>> : never : never : never)): xstate417.ActorRefFromLogic<xstate417.GetConcreteByKey<xstate417.Values<{
138
138
  fetchConsent: {
139
139
  src: "fetchConsent";
140
- logic: xstate204.PromiseActorLogic<FetchMandatoryConsentResponse, {
140
+ logic: xstate417.PromiseActorLogic<FetchMandatoryConsentResponse, {
141
141
  config: MandatoryConsentConfig;
142
- }, xstate204.EventObject>;
142
+ }, xstate417.EventObject>;
143
143
  id: string | undefined;
144
144
  };
145
145
  submitConsent: {
146
146
  src: "submitConsent";
147
- logic: xstate204.PromiseActorLogic<void, {
147
+ logic: xstate417.PromiseActorLogic<void, {
148
148
  consentId: string;
149
149
  isSigned: boolean;
150
- }, xstate204.EventObject>;
150
+ }, xstate417.EventObject>;
151
151
  id: string | undefined;
152
152
  };
153
153
  }>, "src", TSrc>["logic"]>;
154
- <TLogic extends xstate204.AnyActorLogic>(src: TLogic, ...[options]: xstate204.ConditionalRequired<[options?: ({
154
+ <TLogic extends xstate417.AnyActorLogic>(src: TLogic, ...[options]: xstate417.ConditionalRequired<[options?: ({
155
155
  id?: never;
156
156
  systemId?: string;
157
- input?: xstate204.InputFrom<TLogic> | undefined;
157
+ input?: xstate417.InputFrom<TLogic> | undefined;
158
158
  syncSnapshot?: boolean;
159
- } & { [K in xstate204.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate204.IsNotNever<xstate204.RequiredLogicInput<TLogic>>>): xstate204.ActorRefFromLogic<TLogic>;
159
+ } & { [K in xstate417.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate417.IsNotNever<xstate417.RequiredLogicInput<TLogic>>>): xstate417.ActorRefFromLogic<TLogic>;
160
160
  };
161
161
  input: MandatoryConsentInput;
162
- self: xstate204.ActorRef<xstate204.MachineSnapshot<MandatoryConsentContext, {
162
+ self: xstate417.ActorRef<xstate417.MachineSnapshot<MandatoryConsentContext, {
163
163
  type: "LOAD";
164
164
  } | {
165
165
  type: "TOGGLE";
@@ -171,7 +171,7 @@ declare const mandatoryConsentMachine: xstate204.StateMachine<MandatoryConsentCo
171
171
  type: "RETRY";
172
172
  } | {
173
173
  type: "RESET";
174
- }, Record<string, xstate204.AnyActorRef | undefined>, xstate204.StateValue, string, unknown, any, any>, {
174
+ }, Record<string, xstate417.AnyActorRef | undefined>, xstate417.StateValue, string, unknown, any, any>, {
175
175
  type: "LOAD";
176
176
  } | {
177
177
  type: "TOGGLE";
@@ -183,7 +183,7 @@ declare const mandatoryConsentMachine: xstate204.StateMachine<MandatoryConsentCo
183
183
  type: "RETRY";
184
184
  } | {
185
185
  type: "RESET";
186
- }, xstate204.AnyEventObject>;
186
+ }, xstate417.AnyEventObject>;
187
187
  }) => {
188
188
  config: MandatoryConsentConfig;
189
189
  consent: undefined;
@@ -220,7 +220,7 @@ declare const mandatoryConsentMachine: xstate204.StateMachine<MandatoryConsentCo
220
220
  } | {
221
221
  type: "RESET";
222
222
  };
223
- self: xstate204.ActorRef<xstate204.MachineSnapshot<MandatoryConsentContext, {
223
+ self: xstate417.ActorRef<xstate417.MachineSnapshot<MandatoryConsentContext, {
224
224
  type: "LOAD";
225
225
  } | {
226
226
  type: "TOGGLE";
@@ -232,7 +232,7 @@ declare const mandatoryConsentMachine: xstate204.StateMachine<MandatoryConsentCo
232
232
  type: "RETRY";
233
233
  } | {
234
234
  type: "RESET";
235
- }, Record<string, xstate204.AnyActorRef>, xstate204.StateValue, string, unknown, any, any>, {
235
+ }, Record<string, xstate417.AnyActorRef>, xstate417.StateValue, string, unknown, any, any>, {
236
236
  type: "LOAD";
237
237
  } | {
238
238
  type: "TOGGLE";
@@ -244,7 +244,7 @@ declare const mandatoryConsentMachine: xstate204.StateMachine<MandatoryConsentCo
244
244
  type: "RETRY";
245
245
  } | {
246
246
  type: "RESET";
247
- }, xstate204.AnyEventObject>;
247
+ }, xstate417.AnyEventObject>;
248
248
  }) => {
249
249
  config: MandatoryConsentConfig;
250
250
  };
@@ -297,7 +297,7 @@ declare const mandatoryConsentMachine: xstate204.StateMachine<MandatoryConsentCo
297
297
  } | {
298
298
  type: "RESET";
299
299
  };
300
- self: xstate204.ActorRef<xstate204.MachineSnapshot<MandatoryConsentContext, {
300
+ self: xstate417.ActorRef<xstate417.MachineSnapshot<MandatoryConsentContext, {
301
301
  type: "LOAD";
302
302
  } | {
303
303
  type: "TOGGLE";
@@ -309,7 +309,7 @@ declare const mandatoryConsentMachine: xstate204.StateMachine<MandatoryConsentCo
309
309
  type: "RETRY";
310
310
  } | {
311
311
  type: "RESET";
312
- }, Record<string, xstate204.AnyActorRef>, xstate204.StateValue, string, unknown, any, any>, {
312
+ }, Record<string, xstate417.AnyActorRef>, xstate417.StateValue, string, unknown, any, any>, {
313
313
  type: "LOAD";
314
314
  } | {
315
315
  type: "TOGGLE";
@@ -321,7 +321,7 @@ declare const mandatoryConsentMachine: xstate204.StateMachine<MandatoryConsentCo
321
321
  type: "RETRY";
322
322
  } | {
323
323
  type: "RESET";
324
- }, xstate204.AnyEventObject>;
324
+ }, xstate417.AnyEventObject>;
325
325
  }) => {
326
326
  consentId: string;
327
327
  isSigned: boolean;
@@ -1,5 +1,5 @@
1
1
  import { S as createActor, n as eventModuleNames, o as createManagerInstrumentation, v as setup, x as fromPromise, y as assign } from "./events-Cc1xUUgF.esm.js";
2
- import { j as createManager } from "./src-NguNDCeE.esm.js";
2
+ import { M as createManager } from "./src-8rn6DoH7.esm.js";
3
3
  import { t as api } from "./api-G4JA8CXK.esm.js";
4
4
  import { t as endpoints } from "./endpoints-CCuj1KZH.esm.js";
5
5
 
package/dist/phone.esm.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import "./events-Cc1xUUgF.esm.js";
2
- import "./src-NguNDCeE.esm.js";
2
+ import "./src-8rn6DoH7.esm.js";
3
3
  import "./api-G4JA8CXK.esm.js";
4
4
  import "./endpoints-CCuj1KZH.esm.js";
5
- import { r as phoneMachine, t as createPhoneManager } from "./phoneManager-B5sf9ARV.esm.js";
5
+ import { r as phoneMachine, t as createPhoneManager } from "./phoneManager-D2nZtu-b.esm.js";
6
6
 
7
7
  export { createPhoneManager, phoneMachine };
@@ -1,5 +1,5 @@
1
1
  import { S as createActor, b as fromCallback, n as eventModuleNames, o as createManagerInstrumentation, v as setup, x as fromPromise, y as assign } from "./events-Cc1xUUgF.esm.js";
2
- import { _ as BrowserTimerProvider, j as createManager } from "./src-NguNDCeE.esm.js";
2
+ import { M as createManager, v as BrowserTimerProvider } from "./src-8rn6DoH7.esm.js";
3
3
  import { t as api } from "./api-G4JA8CXK.esm.js";
4
4
  import { t as endpoints } from "./endpoints-CCuj1KZH.esm.js";
5
5
 
@@ -1,4 +1,4 @@
1
- import { A as stopCameraStream, B as isIPad, I as getUserAgent, P as getDeviceInfo, k as requestCameraAccess, p as MotionSensorProvider, w as queryCameraPermission } from "./src-NguNDCeE.esm.js";
1
+ import { A as requestCameraAccess, F as getDeviceInfo, L as getUserAgent, T as queryCameraPermission, V as isIPad, j as stopCameraStream, m as MotionSensorProvider } from "./src-8rn6DoH7.esm.js";
2
2
  import { t as api } from "./api-G4JA8CXK.esm.js";
3
3
  import { t as endpoints } from "./endpoints-CCuj1KZH.esm.js";
4
4
 
@@ -1,5 +1,5 @@
1
1
  import { S as createActor, b as fromCallback, n as eventModuleNames, o as createManagerInstrumentation, v as setup, x as fromPromise, y as assign } from "./events-Cc1xUUgF.esm.js";
2
- import { _ as BrowserTimerProvider, j as createManager } from "./src-NguNDCeE.esm.js";
2
+ import { M as createManager, v as BrowserTimerProvider } from "./src-8rn6DoH7.esm.js";
3
3
  import { t as api } from "./api-G4JA8CXK.esm.js";
4
4
  import { t as endpoints } from "./endpoints-CCuj1KZH.esm.js";
5
5
 
@@ -1,13 +1,13 @@
1
1
  import "./events-Cc1xUUgF.esm.js";
2
- import "./backCameraStream-CTPugcLL.esm.js";
3
- import "./src-NguNDCeE.esm.js";
4
- import "./recordingsRepository-IvkvHqPF.esm.js";
2
+ import "./backCameraStream-BGAbuvw1.esm.js";
3
+ import "./src-8rn6DoH7.esm.js";
4
+ import "./recordingsRepository-Djt_In2b.esm.js";
5
5
  import "./browserSimulation-C8gNnn5p.esm.js";
6
6
  import "./api-G4JA8CXK.esm.js";
7
7
  import "./endpoints-CCuj1KZH.esm.js";
8
- import "./deepsightService-qolSLlqQ.esm.js";
8
+ import "./deepsightService-CLUMQ5ee.esm.js";
9
9
  import "./stats-D0m3TvIg.esm.js";
10
- import { n as processFace } from "./faceCaptureSetup-Ca7SG6Xe.esm.js";
11
- import { r as selfieMachine, t as createSelfieManager } from "./selfieManager-BIQkjPBF.esm.js";
10
+ import { n as processFace } from "./faceCaptureSetup-Rr7LUbBm.esm.js";
11
+ import { r as selfieMachine, t as createSelfieManager } from "./selfieManager-CvE35L72.esm.js";
12
12
 
13
13
  export { createSelfieManager, processFace, selfieMachine };
@@ -1,6 +1,6 @@
1
1
  import { S as createActor, n as eventModuleNames, x as fromPromise, y as assign } from "./events-Cc1xUUgF.esm.js";
2
- import { o as WasmUtilProvider, v as BrowserStorageProvider } from "./src-NguNDCeE.esm.js";
3
- import { a as createFaceCaptureManagerFromActor, i as FACE_ERROR_CODES, n as processFace, r as uploadSelfie, t as faceCaptureMachine } from "./faceCaptureSetup-Ca7SG6Xe.esm.js";
2
+ import { s as WasmUtilProvider, y as BrowserStorageProvider } from "./src-8rn6DoH7.esm.js";
3
+ import { a as createFaceCaptureManagerFromActor, i as FACE_ERROR_CODES, n as processFace, r as uploadSelfie, t as faceCaptureMachine } from "./faceCaptureSetup-Rr7LUbBm.esm.js";
4
4
 
5
5
  //#region src/modules/selfie/selfieErrorUtils.ts
6
6
  const FACE_ERROR_CODE_VALUES = Object.values(FACE_ERROR_CODES);
@@ -1,5 +1,5 @@
1
1
  import { h as addEvent } from "./events-Cc1xUUgF.esm.js";
2
- import { b as BrowserEnvironmentProvider, g as FingerprintProvider, h as IpifyProvider, y as BrowserInfoProvider } from "./src-NguNDCeE.esm.js";
2
+ import { _ as FingerprintProvider, b as BrowserInfoProvider, g as IpifyProvider, x as BrowserEnvironmentProvider } from "./src-8rn6DoH7.esm.js";
3
3
  import { t as isBrowserSimulation } from "./browserSimulation-C8gNnn5p.esm.js";
4
4
  import { n as getApi, t as api } from "./api-G4JA8CXK.esm.js";
5
5
  import { t as endpoints } from "./endpoints-CCuj1KZH.esm.js";
@@ -1,5 +1,5 @@
1
1
  import { S as createActor, h as addEvent, n as eventModuleNames, o as createManagerInstrumentation, r as eventScreenNames, v as setup, x as fromPromise, y as assign } from "./events-Cc1xUUgF.esm.js";
2
- import { j as createManager, t as SignaturePad } from "./src-NguNDCeE.esm.js";
2
+ import { M as createManager, t as SignaturePad } from "./src-8rn6DoH7.esm.js";
3
3
  import { t as api } from "./api-G4JA8CXK.esm.js";
4
4
  import { t as endpoints } from "./endpoints-CCuj1KZH.esm.js";
5
5
 
@@ -5833,6 +5833,69 @@ const DEFAULT_ID_CAPTURE_MODEL_VERSION = "v2";
5833
5833
  const WASM_CDN_BASE_URL = "https://cdn.incodesmile.com/ml-wasm-kit-release";
5834
5834
  /** The WASM version bundled and tested with this SDK release. */
5835
5835
  const DEFAULT_WASM_VERSION = "v2.12.84";
5836
+ const PATH_KEYS = [
5837
+ "wasmPath",
5838
+ "wasmSimdPath",
5839
+ "glueCodePath",
5840
+ "modelsBasePath"
5841
+ ];
5842
+ function isBlank(value) {
5843
+ return value.trim() === "";
5844
+ }
5845
+ function hasDisallowedControlChars(value) {
5846
+ for (let i = 0; i < value.length; i += 1) {
5847
+ const code = value.charCodeAt(i);
5848
+ if (code < 32 || code === 127) return true;
5849
+ }
5850
+ return false;
5851
+ }
5852
+ function isMalformedPath(value) {
5853
+ const trimmed = value.trim();
5854
+ if (trimmed === "") return false;
5855
+ if (hasDisallowedControlChars(trimmed)) return true;
5856
+ if (/^https?:\/\//i.test(trimmed)) try {
5857
+ new URL(trimmed);
5858
+ return false;
5859
+ } catch {
5860
+ return true;
5861
+ }
5862
+ return false;
5863
+ }
5864
+ function warnInvalidWasmPath(field, reason) {
5865
+ if (reason === "empty") {
5866
+ console.warn(`[Incode SDK] wasm.${field} is empty. Falling back to CDN default.`);
5867
+ return;
5868
+ }
5869
+ console.warn(`[Incode SDK] wasm.${field} appears malformed. Falling back to CDN default.`);
5870
+ }
5871
+ function warnMalformedWasmPath(field) {
5872
+ console.warn(`[Incode SDK] wasm.${field} appears malformed. Check the URL or path.`);
5873
+ }
5874
+ /**
5875
+ * Validates merged WASM path strings. When overrides contained blank path
5876
+ * values, callers should have already fallen back to defaults before this runs.
5877
+ */
5878
+ function validateWasmPaths(config) {
5879
+ for (const key of PATH_KEYS) {
5880
+ const value = config[key];
5881
+ if (typeof value === "string" && isMalformedPath(value)) warnMalformedWasmPath(key);
5882
+ }
5883
+ }
5884
+ function pickPath(key, overrides, defaultValue) {
5885
+ if (!overrides || !(key in overrides)) return defaultValue;
5886
+ const raw = overrides[key];
5887
+ if (raw === void 0) return defaultValue;
5888
+ if (typeof raw !== "string") return defaultValue;
5889
+ if (isBlank(raw)) {
5890
+ warnInvalidWasmPath(key, "empty");
5891
+ return defaultValue;
5892
+ }
5893
+ if (isMalformedPath(raw)) {
5894
+ warnInvalidWasmPath(key, "malformed");
5895
+ return defaultValue;
5896
+ }
5897
+ return raw.trim();
5898
+ }
5836
5899
  /** Builds the standard WarmupConfig from the Incode CDN. */
5837
5900
  function buildDefaultWasmConfig() {
5838
5901
  const base = `${WASM_CDN_BASE_URL}/${DEFAULT_WASM_VERSION}`;
@@ -5843,6 +5906,30 @@ function buildDefaultWasmConfig() {
5843
5906
  modelsBasePath: `${base}/models`
5844
5907
  };
5845
5908
  }
5909
+ /**
5910
+ * Merges optional WASM path overrides with CDN defaults. Explicit non-blank
5911
+ * paths take precedence. Blank override strings log a warning and fall back to defaults.
5912
+ */
5913
+ function resolveWasmConfig(overrides) {
5914
+ const defaults = buildDefaultWasmConfig();
5915
+ if (!overrides) return defaults;
5916
+ const simdDefault = defaults.wasmSimdPath ?? defaults.wasmPath;
5917
+ const modelsDefault = defaults.modelsBasePath ?? (() => {
5918
+ const lastSlash = defaults.wasmPath.lastIndexOf("/");
5919
+ return lastSlash === -1 ? "models" : `${defaults.wasmPath.substring(0, lastSlash)}/models`;
5920
+ })();
5921
+ const merged = {
5922
+ wasmPath: pickPath("wasmPath", overrides, defaults.wasmPath),
5923
+ wasmSimdPath: pickPath("wasmSimdPath", overrides, simdDefault),
5924
+ glueCodePath: pickPath("glueCodePath", overrides, defaults.glueCodePath),
5925
+ modelsBasePath: pickPath("modelsBasePath", overrides, modelsDefault),
5926
+ useSimd: overrides.useSimd,
5927
+ pipelines: overrides.pipelines,
5928
+ pipelineModels: overrides.pipelineModels
5929
+ };
5930
+ validateWasmPaths(merged);
5931
+ return merged;
5932
+ }
5846
5933
 
5847
5934
  //#endregion
5848
5935
  //#region ../../node_modules/.pnpm/signature_pad@5.1.3/node_modules/signature_pad/dist/signature_pad.js
@@ -6464,4 +6551,4 @@ var SignaturePad = class _SignaturePad extends SignatureEventTarget {
6464
6551
  };
6465
6552
 
6466
6553
  //#endregion
6467
- export { stopCameraStream as A, isIPad as B, StreamCanvasCapture as C, applyTrackConstraints as D, IncodeCanvas as E, getWindowDimensions as F, isSafari as H, getUserAgent as I, isAndroid as L, createApi_default as M, getDeviceFingerprintInfo as N, enumerateVideoDevices as O, getDeviceInfo as P, isDesktop as R, StreamCanvasProcessingSession as S, createHiddenVideoElement as T, isIPhone14OrHigher as V, BrowserTimerProvider as _, DEFAULT_ID_CAPTURE_THRESHOLDS as a, BrowserEnvironmentProvider as b, FaceDetectionProvider as c, ScreenOrientationProvider as d, OpenViduRecordingProvider as f, FingerprintProvider as g, IpifyProvider as h, DEFAULT_ID_CAPTURE_MODEL_VERSION as i, createManager as j, requestCameraAccess as k, warmupWasm as l, LocalRecordingProvider as m, DEFAULT_WASM_VERSION as n, WasmUtilProvider as o, MotionSensorProvider as p, buildDefaultWasmConfig as r, IdCaptureProvider as s, SignaturePad as t, VisibilityProvider as u, BrowserStorageProvider as v, queryCameraPermission as w, BrowserGeolocationProvider as x, BrowserInfoProvider as y, isIOS as z };
6554
+ export { requestCameraAccess as A, isIOS as B, StreamCanvasProcessingSession as C, IncodeCanvas as D, createHiddenVideoElement as E, getDeviceInfo as F, isIPhone14OrHigher as H, getWindowDimensions as I, getUserAgent as L, createManager as M, createApi_default as N, applyTrackConstraints as O, getDeviceFingerprintInfo as P, isAndroid as R, BrowserGeolocationProvider as S, queryCameraPermission as T, isSafari as U, isIPad as V, FingerprintProvider as _, DEFAULT_ID_CAPTURE_MODEL_VERSION as a, BrowserInfoProvider as b, IdCaptureProvider as c, VisibilityProvider as d, ScreenOrientationProvider as f, IpifyProvider as g, LocalRecordingProvider as h, resolveWasmConfig as i, stopCameraStream as j, enumerateVideoDevices as k, FaceDetectionProvider as l, MotionSensorProvider as m, DEFAULT_WASM_VERSION as n, DEFAULT_ID_CAPTURE_THRESHOLDS as o, OpenViduRecordingProvider as p, buildDefaultWasmConfig as r, WasmUtilProvider as s, SignaturePad as t, warmupWasm as u, BrowserTimerProvider as v, StreamCanvasCapture as w, BrowserEnvironmentProvider as x, BrowserStorageProvider as y, isDesktop as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/core",
3
- "version": "0.0.0-dev-20260401-620f105",
3
+ "version": "0.0.0-dev-20260401-018c3ea",
4
4
  "type": "module",
5
5
  "main": "./dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",