@incodetech/core 0.0.0-dev-20260402-682edb5 → 0.0.0-dev-20260402-7cf9db4

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 (91) hide show
  1. package/dist/Actor-phIcsUhv.d.ts +2 -0
  2. package/dist/BaseWasmProvider-BFXU7jj8.esm.js +1536 -0
  3. package/dist/BrowserEnvironmentProvider-DApG6lNu.esm.js +89 -0
  4. package/dist/BrowserTimerProvider-CRhCvln7.esm.js +22 -0
  5. package/dist/Manager-BndLda4_.d.ts +19 -0
  6. package/dist/{events-Cc1xUUgF.esm.js → Manager-D_DMzMWz.esm.js} +114 -11
  7. package/dist/{warmup-CzfSiaMj.d.ts → StateMachine-CGAi8x_b.d.ts} +4 -1
  8. package/dist/StreamCanvasCapture-9VAzOfOv.esm.js +410 -0
  9. package/dist/WasmUtilProvider-DctESPCy.esm.js +114 -0
  10. package/dist/{addressSearch-DzOdaNEA.esm.js → addressSearch-CYGzuJJ3.esm.js} +3 -3
  11. package/dist/authentication.d.ts +9 -7
  12. package/dist/authentication.esm.js +12 -10
  13. package/dist/{authenticationManager-TaI12wf3.d.ts → authenticationManager-B5Yv9bDw.d.ts} +2 -2
  14. package/dist/{authenticationManager-CBSPCdJc.esm.js → authenticationManager-C9iQ1d2a.esm.js} +5 -5
  15. package/dist/{backCameraStream-BGAbuvw1.esm.js → backCameraStream-BJwEXNl4.esm.js} +2 -1
  16. package/dist/camera-D-MPXRbZ.esm.js +22 -0
  17. package/dist/camera-Dv2WEhGe.d.ts +4 -0
  18. package/dist/consent.d.ts +55 -54
  19. package/dist/consent.esm.js +2 -3
  20. package/dist/curp-validation.d.ts +5 -3
  21. package/dist/curp-validation.esm.js +2 -3
  22. package/dist/deepsightLoader-D2MKmB5z.esm.js +48 -0
  23. package/dist/{deepsightService-DxA--87N.d.ts → deepsightService-CWnhwXLw.d.ts} +223 -17
  24. package/dist/document-capture.d.ts +58 -56
  25. package/dist/document-capture.esm.js +5 -4
  26. package/dist/document-upload.d.ts +47 -45
  27. package/dist/document-upload.esm.js +5 -4
  28. package/dist/ekyb.d.ts +3 -2
  29. package/dist/ekyb.esm.js +8 -7
  30. package/dist/ekyc.d.ts +3 -2
  31. package/dist/ekyc.esm.js +133 -123
  32. package/dist/email.d.ts +3 -2
  33. package/dist/email.esm.js +4 -4
  34. package/dist/{emailManager-DN_q_zxy.d.ts → emailManager-BIq6pJa8.d.ts} +11 -4
  35. package/dist/{emailManager-DSR9gQLX.esm.js → emailManager-C5GCSw78.esm.js} +43 -23
  36. package/dist/extensibility.d.ts +45 -43
  37. package/dist/extensibility.esm.js +26 -15
  38. package/dist/face-match.d.ts +1 -1
  39. package/dist/face-match.esm.js +2 -3
  40. package/dist/{faceCaptureManagerFactory-CGpkO_S3.d.ts → faceCaptureManagerFactory-CN5-GRxP.d.ts} +89 -142
  41. package/dist/{faceCaptureSetup-Rr7LUbBm.esm.js → faceCaptureSetup-DYRykM5Y.esm.js} +413 -7
  42. package/dist/flow.d.ts +6 -5
  43. package/dist/flow.esm.js +7 -7
  44. package/dist/{flowCompletionService-Bkaerugt.esm.js → flowCompletionService-CBvXiMKa.esm.js} +1 -1
  45. package/dist/{flowServices-Bt6lMLUI.esm.js → flowServices-CQ3rTJLE.esm.js} +2 -2
  46. package/dist/geolocation.d.ts +2 -1
  47. package/dist/geolocation.esm.js +16 -3
  48. package/dist/government-validation.d.ts +2 -1
  49. package/dist/government-validation.esm.js +3 -3
  50. package/dist/id.d.ts +9 -6
  51. package/dist/id.esm.js +14 -11
  52. package/dist/{idCaptureManager-Dc2NJMy_.d.ts → idCaptureManager-B1RWflj0.d.ts} +15 -12
  53. package/dist/{idCaptureManager-QyM4nIKM.esm.js → idCaptureManager-D5rjCu9r.esm.js} +178 -8
  54. package/dist/index.d.ts +68 -21
  55. package/dist/index.esm.js +440 -11
  56. package/dist/mandatory-consent.d.ts +58 -56
  57. package/dist/mandatory-consent.esm.js +2 -3
  58. package/dist/phone.d.ts +3 -2
  59. package/dist/phone.esm.js +4 -4
  60. package/dist/{phoneManager-D2A0hXXq.d.ts → phoneManager-Ba66ysK2.d.ts} +9 -2
  61. package/dist/{phoneManager-D2nZtu-b.esm.js → phoneManager-CQJim-Ky.esm.js} +32 -21
  62. package/dist/platform-B3nGssGZ.esm.js +83 -0
  63. package/dist/redirect-to-mobile.d.ts +2 -1
  64. package/dist/redirect-to-mobile.esm.js +3 -3
  65. package/dist/selfie.d.ts +9 -7
  66. package/dist/selfie.esm.js +12 -10
  67. package/dist/{selfieManager-B4Nnp7ws.d.ts → selfieManager-BnfnTPcx.d.ts} +2 -2
  68. package/dist/{selfieManager-CvE35L72.esm.js → selfieManager-DYW1C2GP.esm.js} +4 -3
  69. package/dist/session-TBPhHmyy.esm.js +3130 -0
  70. package/dist/session.d.ts +1 -1
  71. package/dist/session.esm.js +2 -2
  72. package/dist/signature.d.ts +3 -3
  73. package/dist/signature.esm.js +3 -4
  74. package/dist/{stats-D0m3TvIg.esm.js → stats-D4C7iDy1.esm.js} +1 -1
  75. package/dist/stats.esm.js +2 -2
  76. package/dist/{types-oveF7RrS.d.ts → types-BWGxcjiZ.d.ts} +1 -1
  77. package/dist/{types-mQLzH6uw.d.ts → types-BX1ZlbSR.d.ts} +1 -1
  78. package/package.json +1 -1
  79. package/dist/deepsightLoader-B93Oa9pS.esm.js +0 -24
  80. package/dist/deepsightService-CLUMQ5ee.esm.js +0 -235
  81. package/dist/index-BTaLQSj9.d.ts +0 -219
  82. package/dist/recordingsRepository-Djt_In2b.esm.js +0 -122
  83. package/dist/session-CUy9-Yzi.esm.js +0 -250
  84. package/dist/src-8rn6DoH7.esm.js +0 -6554
  85. /package/dist/{api-G4JA8CXK.esm.js → api-3fZO5bmj.esm.js} +0 -0
  86. /package/dist/{browserSimulation-C8gNnn5p.esm.js → browserSimulation-zWJAZ1vA.esm.js} +0 -0
  87. /package/dist/{displayErrors-BgtBHbfb.d.ts → displayErrors-DzzB3fcR.d.ts} +0 -0
  88. /package/dist/{flowCompletionService-De8JDo87.d.ts → flowCompletionService-C_CShl_d.d.ts} +0 -0
  89. /package/dist/{id-B30uqGbp.esm.js → id-Dv0it9CY.esm.js} +0 -0
  90. /package/dist/{index-LKrIp3Oo.d.ts → index-CuY8tqBC.d.ts} +0 -0
  91. /package/dist/{lib-qeMam2F_.esm.js → lib-B5byelWf.esm.js} +0 -0
@@ -1,7 +1,9 @@
1
- import { f as Manager } from "./index-BTaLQSj9.js";
2
- import "./types-oveF7RrS.js";
3
- import { i as RegulationTypes } from "./types-mQLzH6uw.js";
4
- import * as xstate0 from "xstate";
1
+ import "./Actor-phIcsUhv.js";
2
+ import "./camera-Dv2WEhGe.js";
3
+ import "./types-BWGxcjiZ.js";
4
+ import { i as RegulationTypes } from "./types-BX1ZlbSR.js";
5
+ import { t as Manager } from "./Manager-BndLda4_.js";
6
+ import * as xstate204 from "xstate";
5
7
 
6
8
  //#region src/modules/mandatory-consent/types.d.ts
7
9
  type MandatoryConsentConfig = {
@@ -28,7 +30,7 @@ type MandatoryConsentContext = {
28
30
  type MandatoryConsentInput = {
29
31
  config: MandatoryConsentConfig;
30
32
  };
31
- declare const mandatoryConsentMachine: xstate0.StateMachine<MandatoryConsentContext, {
33
+ declare const mandatoryConsentMachine: xstate204.StateMachine<MandatoryConsentContext, {
32
34
  type: "LOAD";
33
35
  } | {
34
36
  type: "TOGGLE";
@@ -41,53 +43,53 @@ declare const mandatoryConsentMachine: xstate0.StateMachine<MandatoryConsentCont
41
43
  } | {
42
44
  type: "RESET";
43
45
  }, {
44
- [x: string]: xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<FetchMandatoryConsentResponse, {
46
+ [x: string]: xstate204.ActorRefFromLogic<xstate204.PromiseActorLogic<FetchMandatoryConsentResponse, {
45
47
  config: MandatoryConsentConfig;
46
- }, xstate0.EventObject>> | xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<void, {
48
+ }, xstate204.EventObject>> | xstate204.ActorRefFromLogic<xstate204.PromiseActorLogic<void, {
47
49
  consentId: string;
48
50
  isSigned: boolean;
49
- }, xstate0.EventObject>> | undefined;
50
- }, xstate0.Values<{
51
+ }, xstate204.EventObject>> | undefined;
52
+ }, xstate204.Values<{
51
53
  fetchConsent: {
52
54
  src: "fetchConsent";
53
- logic: xstate0.PromiseActorLogic<FetchMandatoryConsentResponse, {
55
+ logic: xstate204.PromiseActorLogic<FetchMandatoryConsentResponse, {
54
56
  config: MandatoryConsentConfig;
55
- }, xstate0.EventObject>;
57
+ }, xstate204.EventObject>;
56
58
  id: string | undefined;
57
59
  };
58
60
  submitConsent: {
59
61
  src: "submitConsent";
60
- logic: xstate0.PromiseActorLogic<void, {
62
+ logic: xstate204.PromiseActorLogic<void, {
61
63
  consentId: string;
62
64
  isSigned: boolean;
63
- }, xstate0.EventObject>;
65
+ }, xstate204.EventObject>;
64
66
  id: string | undefined;
65
67
  };
66
- }>, xstate0.Values<{
67
- setConsent: {
68
- type: "setConsent";
69
- params: xstate0.NonReducibleUnknown;
70
- };
71
- toggleSigned: {
72
- type: "toggleSigned";
73
- params: xstate0.NonReducibleUnknown;
74
- };
68
+ }>, xstate204.Values<{
75
69
  setError: {
76
70
  type: "setError";
77
- params: xstate0.NonReducibleUnknown;
71
+ params: xstate204.NonReducibleUnknown;
78
72
  };
79
73
  clearError: {
80
74
  type: "clearError";
81
- params: xstate0.NonReducibleUnknown;
75
+ params: xstate204.NonReducibleUnknown;
82
76
  };
83
77
  resetContext: {
84
78
  type: "resetContext";
85
- params: xstate0.NonReducibleUnknown;
79
+ params: xstate204.NonReducibleUnknown;
80
+ };
81
+ setConsent: {
82
+ type: "setConsent";
83
+ params: xstate204.NonReducibleUnknown;
84
+ };
85
+ toggleSigned: {
86
+ type: "toggleSigned";
87
+ params: xstate204.NonReducibleUnknown;
86
88
  };
87
89
  }>, {
88
90
  type: "canSubmit";
89
91
  params: unknown;
90
- }, never, "error" | "idle" | "loading" | "display" | "submitting" | "closed" | "finished", string, MandatoryConsentInput, xstate0.NonReducibleUnknown, xstate0.EventObject, xstate0.MetaObject, {
92
+ }, never, "error" | "idle" | "loading" | "display" | "submitting" | "finished" | "closed", string, MandatoryConsentInput, xstate204.NonReducibleUnknown, xstate204.EventObject, xstate204.MetaObject, {
91
93
  readonly id: "mandatoryConsent";
92
94
  readonly initial: "idle";
93
95
  readonly context: ({
@@ -96,70 +98,70 @@ declare const mandatoryConsentMachine: xstate0.StateMachine<MandatoryConsentCont
96
98
  spawn: {
97
99
  <TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
98
100
  src: "fetchConsent";
99
- logic: xstate0.PromiseActorLogic<FetchMandatoryConsentResponse, {
101
+ logic: xstate204.PromiseActorLogic<FetchMandatoryConsentResponse, {
100
102
  config: MandatoryConsentConfig;
101
- }, xstate0.EventObject>;
103
+ }, xstate204.EventObject>;
102
104
  id: string | undefined;
103
105
  } extends infer T ? T extends {
104
106
  src: "fetchConsent";
105
- logic: xstate0.PromiseActorLogic<FetchMandatoryConsentResponse, {
107
+ logic: xstate204.PromiseActorLogic<FetchMandatoryConsentResponse, {
106
108
  config: MandatoryConsentConfig;
107
- }, xstate0.EventObject>;
109
+ }, xstate204.EventObject>;
108
110
  id: string | undefined;
109
111
  } ? T extends {
110
112
  src: TSrc;
111
- } ? xstate0.ConditionalRequired<[options?: ({
113
+ } ? xstate204.ConditionalRequired<[options?: ({
112
114
  id?: T["id"] | undefined;
113
115
  systemId?: string;
114
- input?: xstate0.InputFrom<T["logic"]> | undefined;
116
+ input?: xstate204.InputFrom<T["logic"]> | undefined;
115
117
  syncSnapshot?: boolean;
116
- } & { [K in xstate0.RequiredActorOptions<T>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T>>> : never : never : never) | ({
118
+ } & { [K in xstate204.RequiredActorOptions<T>]: unknown }) | undefined], xstate204.IsNotNever<xstate204.RequiredActorOptions<T>>> : never : never : never) | ({
117
119
  src: "submitConsent";
118
- logic: xstate0.PromiseActorLogic<void, {
120
+ logic: xstate204.PromiseActorLogic<void, {
119
121
  consentId: string;
120
122
  isSigned: boolean;
121
- }, xstate0.EventObject>;
123
+ }, xstate204.EventObject>;
122
124
  id: string | undefined;
123
125
  } extends infer T_1 ? T_1 extends {
124
126
  src: "submitConsent";
125
- logic: xstate0.PromiseActorLogic<void, {
127
+ logic: xstate204.PromiseActorLogic<void, {
126
128
  consentId: string;
127
129
  isSigned: boolean;
128
- }, xstate0.EventObject>;
130
+ }, xstate204.EventObject>;
129
131
  id: string | undefined;
130
132
  } ? T_1 extends {
131
133
  src: TSrc;
132
- } ? xstate0.ConditionalRequired<[options?: ({
134
+ } ? xstate204.ConditionalRequired<[options?: ({
133
135
  id?: T_1["id"] | undefined;
134
136
  systemId?: string;
135
- input?: xstate0.InputFrom<T_1["logic"]> | undefined;
137
+ input?: xstate204.InputFrom<T_1["logic"]> | undefined;
136
138
  syncSnapshot?: boolean;
137
- } & { [K_1 in xstate0.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T_1>>> : never : never : never)): xstate0.ActorRefFromLogic<xstate0.GetConcreteByKey<xstate0.Values<{
139
+ } & { [K_1 in xstate204.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate204.IsNotNever<xstate204.RequiredActorOptions<T_1>>> : never : never : never)): xstate204.ActorRefFromLogic<xstate204.GetConcreteByKey<xstate204.Values<{
138
140
  fetchConsent: {
139
141
  src: "fetchConsent";
140
- logic: xstate0.PromiseActorLogic<FetchMandatoryConsentResponse, {
142
+ logic: xstate204.PromiseActorLogic<FetchMandatoryConsentResponse, {
141
143
  config: MandatoryConsentConfig;
142
- }, xstate0.EventObject>;
144
+ }, xstate204.EventObject>;
143
145
  id: string | undefined;
144
146
  };
145
147
  submitConsent: {
146
148
  src: "submitConsent";
147
- logic: xstate0.PromiseActorLogic<void, {
149
+ logic: xstate204.PromiseActorLogic<void, {
148
150
  consentId: string;
149
151
  isSigned: boolean;
150
- }, xstate0.EventObject>;
152
+ }, xstate204.EventObject>;
151
153
  id: string | undefined;
152
154
  };
153
155
  }>, "src", TSrc>["logic"]>;
154
- <TLogic extends xstate0.AnyActorLogic>(src: TLogic, ...[options]: xstate0.ConditionalRequired<[options?: ({
156
+ <TLogic extends xstate204.AnyActorLogic>(src: TLogic, ...[options]: xstate204.ConditionalRequired<[options?: ({
155
157
  id?: never;
156
158
  systemId?: string;
157
- input?: xstate0.InputFrom<TLogic> | undefined;
159
+ input?: xstate204.InputFrom<TLogic> | undefined;
158
160
  syncSnapshot?: boolean;
159
- } & { [K in xstate0.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredLogicInput<TLogic>>>): xstate0.ActorRefFromLogic<TLogic>;
161
+ } & { [K in xstate204.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate204.IsNotNever<xstate204.RequiredLogicInput<TLogic>>>): xstate204.ActorRefFromLogic<TLogic>;
160
162
  };
161
163
  input: MandatoryConsentInput;
162
- self: xstate0.ActorRef<xstate0.MachineSnapshot<MandatoryConsentContext, {
164
+ self: xstate204.ActorRef<xstate204.MachineSnapshot<MandatoryConsentContext, {
163
165
  type: "LOAD";
164
166
  } | {
165
167
  type: "TOGGLE";
@@ -171,7 +173,7 @@ declare const mandatoryConsentMachine: xstate0.StateMachine<MandatoryConsentCont
171
173
  type: "RETRY";
172
174
  } | {
173
175
  type: "RESET";
174
- }, Record<string, xstate0.AnyActorRef | undefined>, xstate0.StateValue, string, unknown, any, any>, {
176
+ }, Record<string, xstate204.AnyActorRef | undefined>, xstate204.StateValue, string, unknown, any, any>, {
175
177
  type: "LOAD";
176
178
  } | {
177
179
  type: "TOGGLE";
@@ -183,7 +185,7 @@ declare const mandatoryConsentMachine: xstate0.StateMachine<MandatoryConsentCont
183
185
  type: "RETRY";
184
186
  } | {
185
187
  type: "RESET";
186
- }, xstate0.AnyEventObject>;
188
+ }, xstate204.AnyEventObject>;
187
189
  }) => {
188
190
  config: MandatoryConsentConfig;
189
191
  consent: undefined;
@@ -220,7 +222,7 @@ declare const mandatoryConsentMachine: xstate0.StateMachine<MandatoryConsentCont
220
222
  } | {
221
223
  type: "RESET";
222
224
  };
223
- self: xstate0.ActorRef<xstate0.MachineSnapshot<MandatoryConsentContext, {
225
+ self: xstate204.ActorRef<xstate204.MachineSnapshot<MandatoryConsentContext, {
224
226
  type: "LOAD";
225
227
  } | {
226
228
  type: "TOGGLE";
@@ -232,7 +234,7 @@ declare const mandatoryConsentMachine: xstate0.StateMachine<MandatoryConsentCont
232
234
  type: "RETRY";
233
235
  } | {
234
236
  type: "RESET";
235
- }, Record<string, xstate0.AnyActorRef>, xstate0.StateValue, string, unknown, any, any>, {
237
+ }, Record<string, xstate204.AnyActorRef>, xstate204.StateValue, string, unknown, any, any>, {
236
238
  type: "LOAD";
237
239
  } | {
238
240
  type: "TOGGLE";
@@ -244,7 +246,7 @@ declare const mandatoryConsentMachine: xstate0.StateMachine<MandatoryConsentCont
244
246
  type: "RETRY";
245
247
  } | {
246
248
  type: "RESET";
247
- }, xstate0.AnyEventObject>;
249
+ }, xstate204.AnyEventObject>;
248
250
  }) => {
249
251
  config: MandatoryConsentConfig;
250
252
  };
@@ -297,7 +299,7 @@ declare const mandatoryConsentMachine: xstate0.StateMachine<MandatoryConsentCont
297
299
  } | {
298
300
  type: "RESET";
299
301
  };
300
- self: xstate0.ActorRef<xstate0.MachineSnapshot<MandatoryConsentContext, {
302
+ self: xstate204.ActorRef<xstate204.MachineSnapshot<MandatoryConsentContext, {
301
303
  type: "LOAD";
302
304
  } | {
303
305
  type: "TOGGLE";
@@ -309,7 +311,7 @@ declare const mandatoryConsentMachine: xstate0.StateMachine<MandatoryConsentCont
309
311
  type: "RETRY";
310
312
  } | {
311
313
  type: "RESET";
312
- }, Record<string, xstate0.AnyActorRef>, xstate0.StateValue, string, unknown, any, any>, {
314
+ }, Record<string, xstate204.AnyActorRef>, xstate204.StateValue, string, unknown, any, any>, {
313
315
  type: "LOAD";
314
316
  } | {
315
317
  type: "TOGGLE";
@@ -321,7 +323,7 @@ declare const mandatoryConsentMachine: xstate0.StateMachine<MandatoryConsentCont
321
323
  type: "RETRY";
322
324
  } | {
323
325
  type: "RESET";
324
- }, xstate0.AnyEventObject>;
326
+ }, xstate204.AnyEventObject>;
325
327
  }) => {
326
328
  consentId: string;
327
329
  isSigned: boolean;
@@ -1,6 +1,5 @@
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 { M as createManager } from "./src-8rn6DoH7.esm.js";
3
- import { t as api } from "./api-G4JA8CXK.esm.js";
1
+ import { t as api } from "./api-3fZO5bmj.esm.js";
2
+ import { C as fromPromise, b as setup, r as eventModuleNames, s as createManagerInstrumentation, t as createManager, w as createActor, x as assign } from "./Manager-D_DMzMWz.esm.js";
4
3
  import { t as endpoints } from "./endpoints-CCuj1KZH.esm.js";
5
4
 
6
5
  //#region src/modules/mandatory-consent/mandatoryConsentServices.ts
package/dist/phone.d.ts CHANGED
@@ -1,3 +1,4 @@
1
- import "./index-BTaLQSj9.js";
2
- import { a as phoneMachine, n as PhoneState, o as PhoneConfig, r as createPhoneManager, t as PhoneManager } from "./phoneManager-D2A0hXXq.js";
1
+ import "./Actor-phIcsUhv.js";
2
+ import "./Manager-BndLda4_.js";
3
+ import { a as phoneMachine, n as PhoneState, o as PhoneConfig, r as createPhoneManager, t as PhoneManager } from "./phoneManager-Ba66ysK2.js";
3
4
  export { type PhoneConfig, type PhoneManager, type PhoneState, createPhoneManager, phoneMachine };
package/dist/phone.esm.js CHANGED
@@ -1,7 +1,7 @@
1
- import "./events-Cc1xUUgF.esm.js";
2
- import "./src-8rn6DoH7.esm.js";
3
- import "./api-G4JA8CXK.esm.js";
1
+ import "./api-3fZO5bmj.esm.js";
2
+ import "./Manager-D_DMzMWz.esm.js";
4
3
  import "./endpoints-CCuj1KZH.esm.js";
5
- import { r as phoneMachine, t as createPhoneManager } from "./phoneManager-D2nZtu-b.esm.js";
4
+ import "./BrowserTimerProvider-CRhCvln7.esm.js";
5
+ import { r as phoneMachine, t as createPhoneManager } from "./phoneManager-CQJim-Ky.esm.js";
6
6
 
7
7
  export { createPhoneManager, phoneMachine };
@@ -1,4 +1,5 @@
1
- import { c as ActorRefFrom, f as Manager } from "./index-BTaLQSj9.js";
1
+ import { t as ActorRefFrom } from "./Actor-phIcsUhv.js";
2
+ import { t as Manager } from "./Manager-BndLda4_.js";
2
3
 
3
4
  //#region src/modules/phone/types.d.ts
4
5
 
@@ -124,9 +125,15 @@ type PhoneAwaitingOtpState = {
124
125
  canResend: boolean;
125
126
  attemptsRemaining: number;
126
127
  };
127
- /** OTP code is being verified against the backend */
128
+ /**
129
+ * OTP code is being verified against the backend
130
+ * @property resendTimer - Seconds remaining on resend cooldown (unchanged while verifying)
131
+ * @property canResend - Whether resend is allowed (cooldown finished)
132
+ */
128
133
  type PhoneVerifyingOtpState = {
129
134
  status: 'verifyingOtp';
135
+ resendTimer: number;
136
+ canResend: boolean;
130
137
  };
131
138
  /**
132
139
  * OTP verification failed - user can retry with `submitOtp()`
@@ -1,7 +1,7 @@
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 { M as createManager, v as BrowserTimerProvider } from "./src-8rn6DoH7.esm.js";
3
- import { t as api } from "./api-G4JA8CXK.esm.js";
1
+ import { t as api } from "./api-3fZO5bmj.esm.js";
2
+ import { C as fromPromise, S as fromCallback, b as setup, r as eventModuleNames, s as createManagerInstrumentation, t as createManager, w as createActor, x as assign } from "./Manager-D_DMzMWz.esm.js";
4
3
  import { t as endpoints } from "./endpoints-CCuj1KZH.esm.js";
4
+ import { t as BrowserTimerProvider } from "./BrowserTimerProvider-CRhCvln7.esm.js";
5
5
 
6
6
  //#region src/modules/phone/phoneServices.ts
7
7
  async function fetchPhone(signal) {
@@ -72,13 +72,14 @@ const phoneMachine = setup({
72
72
  verifyOtp: fromPromise(async ({ input, signal }) => {
73
73
  return verifyOtp(input.code, signal);
74
74
  }),
75
- resendTimer: fromCallback(({ sendBack }) => {
75
+ resendTimer: fromCallback(({ input, sendBack }) => {
76
76
  const timer = BrowserTimerProvider.getInstance();
77
- let seconds = RESEND_TIMER_SECONDS;
77
+ let remaining = input.seconds;
78
+ if (remaining <= 0) return () => {};
78
79
  const interval = timer.setInterval(() => {
79
- seconds -= 1;
80
80
  sendBack({ type: "TICK" });
81
- if (seconds <= 0) timer.clearInterval(interval);
81
+ remaining -= 1;
82
+ if (remaining <= 0) timer.clearInterval(interval);
82
83
  }, 1e3);
83
84
  return () => timer.clearInterval(interval);
84
85
  })
@@ -135,7 +136,6 @@ const phoneMachine = setup({
135
136
  resendTimerActive: newTimer > 0
136
137
  };
137
138
  }),
138
- stopResendTimer: assign({ resendTimerActive: () => false }),
139
139
  resetContext: assign(({ context }) => ({
140
140
  config: context.config,
141
141
  phone: "",
@@ -152,11 +152,7 @@ const phoneMachine = setup({
152
152
  attemptsRemaining: context.config.maxOtpAttempts ?? 3,
153
153
  resendTimer: 0,
154
154
  resendTimerActive: false
155
- })),
156
- clearResendTimer: assign({
157
- resendTimer: () => 0,
158
- resendTimerActive: () => false
159
- })
155
+ }))
160
156
  },
161
157
  guards: {
162
158
  hasPrefill: ({ context }) => context.config.prefill,
@@ -239,26 +235,32 @@ const phoneMachine = setup({
239
235
  sendingInitialOtp: { invoke: {
240
236
  id: "sendOtp",
241
237
  src: "sendOtp",
242
- onDone: { target: "awaitingOtp" },
238
+ onDone: {
239
+ target: "awaitingOtp",
240
+ actions: "startResendTimer"
241
+ },
243
242
  onError: {
244
243
  target: "awaitingOtp",
245
- actions: "setError"
244
+ actions: ["setError", "startResendTimer"]
246
245
  }
247
246
  } },
248
247
  resendingOtp: { invoke: {
249
248
  id: "sendOtp",
250
249
  src: "sendOtp",
251
- onDone: { target: "awaitingOtp" },
250
+ onDone: {
251
+ target: "awaitingOtp",
252
+ actions: "startResendTimer"
253
+ },
252
254
  onError: {
253
255
  target: "awaitingOtp",
254
- actions: "setError"
256
+ actions: ["setError", "startResendTimer"]
255
257
  }
256
258
  } },
257
259
  awaitingOtp: {
258
- entry: "startResendTimer",
259
260
  invoke: {
260
261
  id: "resendTimer",
261
- src: "resendTimer"
262
+ src: "resendTimer",
263
+ input: ({ context }) => ({ seconds: context.resendTimer })
262
264
  },
263
265
  on: {
264
266
  TICK: { actions: "tickResendTimer" },
@@ -303,8 +305,13 @@ const phoneMachine = setup({
303
305
  }]
304
306
  } },
305
307
  otpError: {
306
- entry: "clearResendTimer",
308
+ invoke: {
309
+ id: "resendTimer",
310
+ src: "resendTimer",
311
+ input: ({ context }) => ({ seconds: context.resendTimer })
312
+ },
307
313
  on: {
314
+ TICK: { actions: "tickResendTimer" },
308
315
  OTP_CHANGED: {
309
316
  target: "awaitingOtp",
310
317
  actions: "setOtpCode"
@@ -451,7 +458,11 @@ function mapState(snapshot) {
451
458
  canResend: !context.resendTimerActive,
452
459
  attemptsRemaining: context.attemptsRemaining
453
460
  };
454
- if (typedSnapshot.matches("verifyingOtp")) return { status: "verifyingOtp" };
461
+ if (typedSnapshot.matches("verifyingOtp")) return {
462
+ status: "verifyingOtp",
463
+ resendTimer: context.resendTimer,
464
+ canResend: !context.resendTimerActive
465
+ };
455
466
  if (typedSnapshot.matches("otpError")) return {
456
467
  status: "otpError",
457
468
  otpError: context.otpError ?? "otp.errorv2",
@@ -0,0 +1,83 @@
1
+ //#region ../infra/src/capabilities/platform.ts
2
+ /**
3
+ * Platform detection utilities for camera operations.
4
+ * These are pure functions with no external dependencies and can be used by all layers.
5
+ */
6
+ let uxType = null;
7
+ function isTouchDevice() {
8
+ return (typeof navigator !== "undefined" ? navigator.maxTouchPoints > 0 : false) || "ontouchstart" in (typeof document !== "undefined" ? document.documentElement : {});
9
+ }
10
+ function isTabletWithoutAndroid(userAgent) {
11
+ const isLinux = /Linux/i.test(userAgent);
12
+ const isChrome = /Chrome/i.test(userAgent) && !/Edge/i.test(userAgent);
13
+ return !/Mobile|Android/i.test(userAgent) && isLinux && isChrome && isTouchDevice();
14
+ }
15
+ function isIOS(userAgent) {
16
+ const ua = userAgent || (typeof navigator !== "undefined" ? navigator.userAgent : "");
17
+ const hasTouchPoints = typeof navigator !== "undefined" ? navigator.maxTouchPoints > 0 : false;
18
+ return /iPad|iPhone|iPod/.test(ua) || /Mac OS/.test(ua) && hasTouchPoints || /iPadOS/.test(ua);
19
+ }
20
+ function isAndroid(userAgent) {
21
+ const ua = userAgent || (typeof navigator !== "undefined" ? navigator.userAgent : "");
22
+ return /Android/i.test(ua);
23
+ }
24
+ function isIPad(userAgent) {
25
+ const ua = userAgent || (typeof navigator !== "undefined" ? navigator.userAgent : "");
26
+ const hasTouchPoints = typeof navigator !== "undefined" ? navigator.maxTouchPoints > 0 : false;
27
+ return /iPad/.test(ua) || /Mac OS/.test(ua) && hasTouchPoints && !/iPhone|iPod/.test(ua);
28
+ }
29
+ function isDesktop(userAgent) {
30
+ if (uxType) return uxType === "desktop";
31
+ const ua = userAgent || (typeof navigator !== "undefined" ? navigator.userAgent : "");
32
+ return !(/Mobile|Android/i.test(ua) || isTabletWithoutAndroid(ua) || isIOS(ua));
33
+ }
34
+ function isSafari(userAgent) {
35
+ const ua = userAgent || (typeof navigator !== "undefined" ? navigator.userAgent : "");
36
+ return /Safari/i.test(ua) && !/Chrome|Chromium|Edge/i.test(ua);
37
+ }
38
+ const IPHONE_14_PLUS_DIMENSIONS = [
39
+ {
40
+ outerHeight: 852,
41
+ outerWidth: 393
42
+ },
43
+ {
44
+ outerHeight: 932,
45
+ outerWidth: 430
46
+ },
47
+ {
48
+ innerHeight: 631,
49
+ innerWidth: 375
50
+ },
51
+ {
52
+ innerHeight: 920,
53
+ innerWidth: 402
54
+ },
55
+ {
56
+ outerHeight: 874,
57
+ outerWidth: 402
58
+ },
59
+ {
60
+ innerHeight: 874,
61
+ innerWidth: 402
62
+ },
63
+ {
64
+ outerHeight: 912,
65
+ outerWidth: 420
66
+ },
67
+ {
68
+ outerHeight: 873,
69
+ outerWidth: 402
70
+ },
71
+ {
72
+ outerHeight: 956,
73
+ outerWidth: 440
74
+ }
75
+ ];
76
+ function isIPhone14OrHigher() {
77
+ if (typeof window === "undefined") return false;
78
+ const { outerHeight, outerWidth, innerHeight, innerWidth } = window;
79
+ return IPHONE_14_PLUS_DIMENSIONS.some((dims) => dims.outerHeight === outerHeight && dims.outerWidth === outerWidth || dims.innerHeight === innerHeight && dims.innerWidth === innerWidth);
80
+ }
81
+
82
+ //#endregion
83
+ export { isIPhone14OrHigher as a, isIPad as i, isDesktop as n, isSafari as o, isIOS as r, isAndroid as t };
@@ -1,4 +1,5 @@
1
- import { f as Manager } from "./index-BTaLQSj9.js";
1
+ import "./Actor-phIcsUhv.js";
2
+ import { t as Manager } from "./Manager-BndLda4_.js";
2
3
 
3
4
  //#region src/modules/redirect-to-mobile/types.d.ts
4
5
  type RedirectToMobileConfig = {
@@ -1,7 +1,7 @@
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 { M as createManager, v as BrowserTimerProvider } from "./src-8rn6DoH7.esm.js";
3
- import { t as api } from "./api-G4JA8CXK.esm.js";
1
+ import { t as api } from "./api-3fZO5bmj.esm.js";
2
+ import { C as fromPromise, S as fromCallback, b as setup, r as eventModuleNames, s as createManagerInstrumentation, t as createManager, w as createActor, x as assign } from "./Manager-D_DMzMWz.esm.js";
4
3
  import { t as endpoints } from "./endpoints-CCuj1KZH.esm.js";
4
+ import { t as BrowserTimerProvider } from "./BrowserTimerProvider-CRhCvln7.esm.js";
5
5
 
6
6
  //#region ../infra/src/url/urlUtils.ts
7
7
  function getUrlSearchParam(url, param) {
package/dist/selfie.d.ts CHANGED
@@ -1,8 +1,10 @@
1
- import { d as CameraStream } from "./index-BTaLQSj9.js";
2
- import { n as PermissionResult, r as PermissionStatus, t as DeepsightService } from "./deepsightService-DxA--87N.js";
3
- import { _ as DetectionStatus, a as SelfieMachine, d as SelfieConfig, o as selfieMachine, v as FaceErrorCode } from "./faceCaptureManagerFactory-CGpkO_S3.js";
4
- import "./warmup-CzfSiaMj.js";
5
- import "./types-oveF7RrS.js";
6
- import "./types-mQLzH6uw.js";
7
- import { a as ProcessFaceResponse, n as SelfieState, o as processFace, r as createSelfieManager, t as SelfieManager } from "./selfieManager-B4Nnp7ws.js";
1
+ import "./StateMachine-CGAi8x_b.js";
2
+ import "./Actor-phIcsUhv.js";
3
+ import { c as PermissionResult, l as PermissionStatus, t as DeepsightService } from "./deepsightService-CWnhwXLw.js";
4
+ import { t as CameraStream } from "./camera-Dv2WEhGe.js";
5
+ import "./types-BWGxcjiZ.js";
6
+ import "./types-BX1ZlbSR.js";
7
+ import "./Manager-BndLda4_.js";
8
+ import { a as SelfieMachine, d as SelfieConfig, o as selfieMachine, v as DetectionStatus, y as FaceErrorCode } from "./faceCaptureManagerFactory-CN5-GRxP.js";
9
+ import { a as ProcessFaceResponse, n as SelfieState, o as processFace, r as createSelfieManager, t as SelfieManager } from "./selfieManager-BnfnTPcx.js";
8
10
  export { type CameraStream, type DeepsightService, type DetectionStatus, type FaceErrorCode, type PermissionResult, type PermissionStatus, type ProcessFaceResponse, type SelfieConfig, type SelfieMachine, type SelfieManager, type SelfieState, createSelfieManager, processFace, selfieMachine };
@@ -1,13 +1,15 @@
1
- import "./events-Cc1xUUgF.esm.js";
2
- import "./backCameraStream-BGAbuvw1.esm.js";
3
- import "./src-8rn6DoH7.esm.js";
4
- import "./recordingsRepository-Djt_In2b.esm.js";
5
- import "./browserSimulation-C8gNnn5p.esm.js";
6
- import "./api-G4JA8CXK.esm.js";
1
+ import "./platform-B3nGssGZ.esm.js";
2
+ import "./BaseWasmProvider-BFXU7jj8.esm.js";
3
+ import "./StreamCanvasCapture-9VAzOfOv.esm.js";
4
+ import "./browserSimulation-zWJAZ1vA.esm.js";
5
+ import "./api-3fZO5bmj.esm.js";
6
+ import "./Manager-D_DMzMWz.esm.js";
7
7
  import "./endpoints-CCuj1KZH.esm.js";
8
- import "./deepsightService-CLUMQ5ee.esm.js";
9
- import "./stats-D0m3TvIg.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";
8
+ import "./camera-D-MPXRbZ.esm.js";
9
+ import "./stats-D4C7iDy1.esm.js";
10
+ import "./backCameraStream-BJwEXNl4.esm.js";
11
+ import "./WasmUtilProvider-DctESPCy.esm.js";
12
+ import { n as processFace } from "./faceCaptureSetup-DYRykM5Y.esm.js";
13
+ import { r as selfieMachine, t as createSelfieManager } from "./selfieManager-DYW1C2GP.esm.js";
12
14
 
13
15
  export { createSelfieManager, processFace, selfieMachine };
@@ -1,5 +1,5 @@
1
- import { f as Manager } from "./index-BTaLQSj9.js";
2
- import { i as SelfieActor, n as FaceCaptureManagerState, r as CreateSelfieActorOptions, t as FaceCaptureManager } from "./faceCaptureManagerFactory-CGpkO_S3.js";
1
+ import { t as Manager } from "./Manager-BndLda4_.js";
2
+ import { i as SelfieActor, n as FaceCaptureManagerState, r as CreateSelfieActorOptions, t as FaceCaptureManager } from "./faceCaptureManagerFactory-CN5-GRxP.js";
3
3
 
4
4
  //#region src/modules/selfie/selfieUploadService.d.ts
5
5
  type ProcessFaceImageType = 'selfie' | 'videoSelfie';
@@ -1,6 +1,7 @@
1
- import { S as createActor, n as eventModuleNames, x as fromPromise, y as assign } from "./events-Cc1xUUgF.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";
1
+ import { f as BrowserStorageProvider } from "./StreamCanvasCapture-9VAzOfOv.esm.js";
2
+ import { C as fromPromise, r as eventModuleNames, w as createActor, x as assign } from "./Manager-D_DMzMWz.esm.js";
3
+ import { t as WasmUtilProvider } from "./WasmUtilProvider-DctESPCy.esm.js";
4
+ import { a as createFaceCaptureManagerFromActor, i as FACE_ERROR_CODES, n as processFace, r as uploadSelfie, t as faceCaptureMachine } from "./faceCaptureSetup-DYRykM5Y.esm.js";
4
5
 
5
6
  //#region src/modules/selfie/selfieErrorUtils.ts
6
7
  const FACE_ERROR_CODE_VALUES = Object.values(FACE_ERROR_CODES);