@incodetech/core 0.0.0-dev-20260407-2c382da → 0.0.0-dev-20260407-ebd92aa

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 (114) hide show
  1. package/dist/{BaseWasmProvider--AzPfwOm.esm.js → BaseWasmProvider-CQgeReKV.esm.js} +1 -785
  2. package/dist/MotionSensorProvider-BTDLt08l.esm.js +254 -0
  3. package/dist/OpenViduRecordingProvider-PvkEhhDq.esm.js +87 -0
  4. package/dist/StateMachine-DU1S4Cik.d.ts +2 -0
  5. package/dist/{WasmUtilProvider-BonqBWdj.esm.js → WasmUtilProvider-C45HStLj.esm.js} +1 -1
  6. package/dist/{addressSearch-B8Fo4v9V.esm.js → addressSearch-C5qzDvkN.esm.js} +4 -4
  7. package/dist/antifraud.d.ts +1 -1
  8. package/dist/antifraud.esm.js +3 -3
  9. package/dist/authentication.d.ts +11 -9
  10. package/dist/authentication.esm.js +18 -13
  11. package/dist/{authenticationManager-Bd10YGSO.d.ts → authenticationManager-CXTPgE_2.d.ts} +2 -2
  12. package/dist/{authenticationManager-B4gSCgrO.esm.js → authenticationManager-D4esVx-z.esm.js} +7 -6
  13. package/dist/{backCameraStream-DF_d7hTz.esm.js → backCameraStream-CUo1USCT.esm.js} +2 -2
  14. package/dist/camera.d.ts +16 -0
  15. package/dist/camera.esm.js +5 -0
  16. package/dist/consent.d.ts +52 -52
  17. package/dist/consent.esm.js +3 -3
  18. package/dist/curp-validation.d.ts +5 -5
  19. package/dist/curp-validation.esm.js +3 -3
  20. package/dist/{deepsightLoader-DKgEdLIS.esm.js → deepsightLoader-Bs5jHgca.esm.js} +10 -7
  21. package/dist/deepsightService-C3gQ_9Ml.esm.js +493 -0
  22. package/dist/{deepsightService-Ciu0atv5.d.ts → deepsightService-CyEcAH-I.d.ts} +193 -197
  23. package/dist/device.d.ts +46 -0
  24. package/dist/device.esm.js +106 -0
  25. package/dist/document-capture.d.ts +3 -3
  26. package/dist/document-capture.esm.js +6 -6
  27. package/dist/document-upload.d.ts +4 -4
  28. package/dist/document-upload.esm.js +6 -6
  29. package/dist/ekyb.d.ts +3 -3
  30. package/dist/ekyb.esm.js +9 -9
  31. package/dist/ekyc.d.ts +3 -3
  32. package/dist/ekyc.esm.js +5 -5
  33. package/dist/email.d.ts +3 -3
  34. package/dist/email.esm.js +5 -5
  35. package/dist/{emailManager-CpAwvP3v.esm.js → emailManager-CZ2IGW0g.esm.js} +4 -4
  36. package/dist/{emailManager-BQPIJR_O.d.ts → emailManager-CtA6Tvry.d.ts} +2 -2
  37. package/dist/events-BlVGS-8F.esm.js +472 -0
  38. package/dist/events.d.ts +232 -0
  39. package/dist/events.esm.js +4 -0
  40. package/dist/extensibility.d.ts +15 -13
  41. package/dist/extensibility.esm.js +25 -20
  42. package/dist/face-match.d.ts +1 -1
  43. package/dist/face-match.esm.js +3 -3
  44. package/dist/{faceCaptureManagerFactory-CdwpYykv.d.ts → faceCaptureManagerFactory-Bp_mC9b2.d.ts} +8 -6
  45. package/dist/faceCaptureSetup-DzlTPjT9.esm.js +828 -0
  46. package/dist/flow.d.ts +17 -9
  47. package/dist/flow.esm.js +68 -21
  48. package/dist/{flowCompletionService-TnWijsSw.esm.js → flowCompletionService-N6-xypy-.esm.js} +2 -2
  49. package/dist/{flowServices-CO2sIR3D.esm.js → flowServices-xgqnJ64L.esm.js} +3 -3
  50. package/dist/geolocation.d.ts +2 -2
  51. package/dist/geolocation.esm.js +4 -4
  52. package/dist/getBrowser-B800KRAi.esm.js +41 -0
  53. package/dist/getDeviceClass-BKd2FOAf.esm.js +14 -0
  54. package/dist/government-validation.d.ts +2 -2
  55. package/dist/government-validation.esm.js +4 -4
  56. package/dist/http.d.ts +57 -0
  57. package/dist/http.esm.js +3 -0
  58. package/dist/id.d.ts +11 -10
  59. package/dist/id.esm.js +20 -16
  60. package/dist/{idCaptureManager-IdqsAASp.d.ts → idCaptureManager-Bx298yFC.d.ts} +9 -7
  61. package/dist/{idCaptureManager-DaLU1ug7.esm.js → idCaptureManager-bowLKHEs.esm.js} +75 -58
  62. package/dist/index.d.ts +3 -611
  63. package/dist/index.esm.js +10 -562
  64. package/dist/{lib-i-4qLKdG.esm.js → lib-Cq5Wc-Hd.esm.js} +1 -1
  65. package/dist/mandatory-consent.d.ts +55 -55
  66. package/dist/mandatory-consent.esm.js +3 -3
  67. package/dist/openviduLazy-BdsxPGgp.esm.js +12 -0
  68. package/dist/openviduLazy-NTgGtkeK.esm.js +3 -0
  69. package/dist/permissionServices-CDqkkway.esm.js +50 -0
  70. package/dist/phone.d.ts +3 -3
  71. package/dist/phone.esm.js +5 -5
  72. package/dist/{phoneManager-BAPHSXx8.esm.js → phoneManager-CscgaER2.esm.js} +4 -4
  73. package/dist/{phoneManager-DA8WUJtl.d.ts → phoneManager-DlaiZtwZ.d.ts} +2 -2
  74. package/dist/recordingService-BDx_6XR9.esm.js +1024 -0
  75. package/dist/redirect-to-mobile.d.ts +2 -2
  76. package/dist/redirect-to-mobile.esm.js +4 -4
  77. package/dist/selfie.d.ts +11 -9
  78. package/dist/selfie.esm.js +18 -13
  79. package/dist/{selfieManager-BSkzncsa.esm.js → selfieManager-DVvvlMMf.esm.js} +5 -4
  80. package/dist/{selfieManager-Dft5wZQ_.d.ts → selfieManager-UBgYgVnw.d.ts} +2 -2
  81. package/dist/{session-OglUYC9l.esm.js → session-PLjFj_T3.esm.js} +5 -19
  82. package/dist/session.d.ts +46 -2
  83. package/dist/session.esm.js +7 -4
  84. package/dist/setup-DfinQjIF.d.ts +120 -0
  85. package/dist/setup-fvDWE7f8.esm.js +450 -0
  86. package/dist/signature.d.ts +2 -2
  87. package/dist/signature.esm.js +3 -3
  88. package/dist/{stats-BVigf5Rn.esm.js → stats-BZ1kFW4p.esm.js} +1 -1
  89. package/dist/stats.esm.js +2 -2
  90. package/dist/{types-CiLyvJGb.d.ts → types-DcqFYowa.d.ts} +1 -1
  91. package/dist/{types-D8Y1faI5.d.ts → types-DufUK-_f.d.ts} +1 -1
  92. package/dist/types-UPqCMQKa.d.ts +5 -0
  93. package/dist/{StateMachine-CM_aOfNL.d.ts → warmup-yzJJKXFi.d.ts} +1 -4
  94. package/dist/wasm.d.ts +15 -0
  95. package/dist/wasm.esm.js +10 -0
  96. package/dist/{Manager-C6AGXEq_.esm.js → xstate.esm-BXrcOcSC.esm.js} +103 -507
  97. package/package.json +18 -2
  98. package/dist/StreamCanvasCapture-DkpkIgyL.esm.js +0 -410
  99. package/dist/endpoints-CI5-28jT.esm.js +0 -69
  100. package/dist/faceCaptureSetup-DbXgtcp7.esm.js +0 -1561
  101. package/dist/id-CzDAG_kM.esm.js +0 -0
  102. package/dist/index-BuVKc9bv.d.ts +0 -1
  103. /package/dist/{Actor-By8WNHi-.d.ts → Actor-Cz_KnN47.d.ts} +0 -0
  104. /package/dist/{BrowserEnvironmentProvider-BECjyw3_.esm.js → BrowserEnvironmentProvider--xQUs3sg.esm.js} +0 -0
  105. /package/dist/{BrowserTimerProvider-CIqH6hJp.esm.js → BrowserTimerProvider-CkHEwJFa.esm.js} +0 -0
  106. /package/dist/{Manager-CCT_-HuZ.d.ts → Manager-N01KfnVA.d.ts} +0 -0
  107. /package/dist/{api-C2uzxrpN.esm.js → api-CyI8qTie.esm.js} +0 -0
  108. /package/dist/{browserSimulation-DYAk0Ipe.esm.js → browserSimulation-yzDdWSBf.esm.js} +0 -0
  109. /package/dist/{camera-6XJdOeBF.d.ts → camera-BcVDCZxW.d.ts} +0 -0
  110. /package/dist/{camera-DAuRUvnp.esm.js → camera-CsT06Zqy.esm.js} +0 -0
  111. /package/dist/{chunk-D6hkk-hd.esm.js → chunk-BcQWkoAq.esm.js} +0 -0
  112. /package/dist/{displayErrors-CGJwvrTl.d.ts → displayErrors-C0mf2glb.d.ts} +0 -0
  113. /package/dist/{flowCompletionService-BOd4Rk8n.d.ts → flowCompletionService-Dloh6J8n.d.ts} +0 -0
  114. /package/dist/{platform-DdhkonXk.esm.js → platform-Dcuv6w60.esm.js} +0 -0
@@ -0,0 +1,254 @@
1
+ //#region ../infra/src/providers/browser/MotionSensorProvider.ts
2
+ var MotionSensorProvider = class {
3
+ constructor(thresholds) {
4
+ this._isRunning = false;
5
+ this._hasPermission = true;
6
+ this.acl = null;
7
+ this.gyro = null;
8
+ this.minNumberOfFrames = 3;
9
+ this.maxFrequency = 60;
10
+ this.emptyParams = {
11
+ meanX: 0,
12
+ meanY: 0,
13
+ meanZ: 0,
14
+ m2X: 0,
15
+ m2Y: 0,
16
+ m2Z: 0,
17
+ cumulativeAbsErrorX: 0,
18
+ cumulativeAbsErrorY: 0,
19
+ cumulativeAbsErrorZ: 0,
20
+ ptsNum: 0
21
+ };
22
+ this.paramsAcc = { ...this.emptyParams };
23
+ this.paramsGyro = { ...this.emptyParams };
24
+ this.paramsAccGrOld = { ...this.emptyParams };
25
+ this.paramsAccOld = { ...this.emptyParams };
26
+ this.paramsGyroscopeOld = { ...this.emptyParams };
27
+ this.paramsOrientationOld = { ...this.emptyParams };
28
+ this.deviceMotionListener = (event) => {
29
+ if (event.accelerationIncludingGravity) {
30
+ const accGrVal = {
31
+ x: event.accelerationIncludingGravity.x,
32
+ y: event.accelerationIncludingGravity.y,
33
+ z: event.accelerationIncludingGravity.z
34
+ };
35
+ if (this.checkFields(accGrVal)) {
36
+ this.paramsAccGrOld.ptsNum += 1;
37
+ this.updateParams(this.paramsAccGrOld, accGrVal);
38
+ }
39
+ }
40
+ if (event.acceleration) {
41
+ const accVal = {
42
+ x: event.acceleration.x,
43
+ y: event.acceleration.y,
44
+ z: event.acceleration.z
45
+ };
46
+ if (this.checkFields(accVal)) {
47
+ this.paramsAccOld.ptsNum += 1;
48
+ this.updateParams(this.paramsAccOld, accVal);
49
+ }
50
+ }
51
+ if (event.rotationRate) {
52
+ const gyroVal = {
53
+ x: event.rotationRate.alpha,
54
+ y: event.rotationRate.beta,
55
+ z: event.rotationRate.gamma
56
+ };
57
+ if (this.checkFields(gyroVal)) {
58
+ this.paramsGyroscopeOld.ptsNum += 1;
59
+ this.updateParams(this.paramsGyroscopeOld, gyroVal);
60
+ }
61
+ }
62
+ };
63
+ this.deviceOrientationListener = (event) => {
64
+ const orientationVal = {
65
+ x: event.alpha,
66
+ y: event.beta,
67
+ z: event.gamma
68
+ };
69
+ if (this.checkFields(orientationVal)) {
70
+ this.paramsOrientationOld.ptsNum += 1;
71
+ this.updateParams(this.paramsOrientationOld, orientationVal);
72
+ }
73
+ };
74
+ this.thresholds = {
75
+ accThreshold: thresholds?.accThreshold ?? .3,
76
+ gyroThreshold: thresholds?.gyroThreshold ?? .3,
77
+ accGrOldThreshold: thresholds?.accGrOldThreshold ?? .3,
78
+ accOldThreshold: thresholds?.accOldThreshold ?? .3,
79
+ gyroscopeOldThreshold: thresholds?.gyroscopeOldThreshold ?? 10,
80
+ orientationOldThreshold: thresholds?.orientationOldThreshold ?? 10,
81
+ maeAccThreshold: thresholds?.maeAccThreshold ?? .3,
82
+ maeGyroThreshold: thresholds?.maeGyroThreshold ?? .3,
83
+ maeAccGrOldThreshold: thresholds?.maeAccGrOldThreshold ?? .3,
84
+ maeAccOldThreshold: thresholds?.maeAccOldThreshold ?? .3,
85
+ maeGyroscopeOldThreshold: thresholds?.maeGyroscopeOldThreshold ?? 10,
86
+ maeOrientationOldThreshold: thresholds?.maeOrientationOldThreshold ?? 10
87
+ };
88
+ }
89
+ get isRunning() {
90
+ return this._isRunning;
91
+ }
92
+ get hasPermission() {
93
+ return this._hasPermission;
94
+ }
95
+ async requestPermission() {
96
+ if (typeof DeviceMotionEvent !== "undefined" && typeof DeviceMotionEvent.requestPermission === "function") {
97
+ sessionStorage.setItem("motionSensorsPermissionsRequested", String(true));
98
+ try {
99
+ if (await DeviceMotionEvent.requestPermission() !== "granted") {
100
+ this._hasPermission = false;
101
+ return "denied";
102
+ }
103
+ return "granted";
104
+ } catch {
105
+ this._hasPermission = false;
106
+ return "denied";
107
+ }
108
+ }
109
+ return "not-required";
110
+ }
111
+ initializeAccelerometer() {
112
+ if (!("Accelerometer" in window)) return;
113
+ try {
114
+ const AccelerometerConstructor = window.Accelerometer;
115
+ if (AccelerometerConstructor) {
116
+ this.acl = new AccelerometerConstructor({ frequency: this.maxFrequency });
117
+ this.acl.addEventListener("reading", () => this.updateAcc());
118
+ }
119
+ } catch {}
120
+ }
121
+ initializeGyroscope() {
122
+ if (!("Gyroscope" in window)) return;
123
+ try {
124
+ const GyroscopeConstructor = window.Gyroscope;
125
+ if (GyroscopeConstructor) {
126
+ this.gyro = new GyroscopeConstructor({ frequency: this.maxFrequency });
127
+ this.gyro.addEventListener("reading", () => this.updateGyro());
128
+ }
129
+ } catch {}
130
+ }
131
+ async start() {
132
+ if (this._isRunning || !this._hasPermission) return;
133
+ try {
134
+ this.initializeAccelerometer();
135
+ if (this.acl) this.acl.start();
136
+ } catch {}
137
+ try {
138
+ this.initializeGyroscope();
139
+ if (this.gyro) this.gyro.start();
140
+ } catch {}
141
+ window.addEventListener("devicemotion", this.deviceMotionListener);
142
+ window.addEventListener("deviceorientation", this.deviceOrientationListener);
143
+ this._isRunning = true;
144
+ }
145
+ stop() {
146
+ this._isRunning = false;
147
+ if (this.acl) this.acl.stop();
148
+ if (this.gyro) this.gyro.stop();
149
+ window.removeEventListener("devicemotion", this.deviceMotionListener);
150
+ window.removeEventListener("deviceorientation", this.deviceOrientationListener);
151
+ this.paramsAcc = { ...this.emptyParams };
152
+ this.paramsGyro = { ...this.emptyParams };
153
+ this.paramsAccGrOld = { ...this.emptyParams };
154
+ this.paramsAccOld = { ...this.emptyParams };
155
+ this.paramsGyroscopeOld = { ...this.emptyParams };
156
+ this.paramsOrientationOld = { ...this.emptyParams };
157
+ }
158
+ updateAcc() {
159
+ if (!this._isRunning || !this.acl) return;
160
+ this.paramsAcc.ptsNum += 1;
161
+ const val = {
162
+ x: this.acl.x,
163
+ y: this.acl.y,
164
+ z: this.acl.z
165
+ };
166
+ if (this.checkFields(val)) this.updateParams(this.paramsAcc, val);
167
+ }
168
+ updateGyro() {
169
+ if (!this._isRunning || !this.gyro) return;
170
+ this.paramsGyro.ptsNum += 1;
171
+ const val = {
172
+ x: this.gyro.x,
173
+ y: this.gyro.y,
174
+ z: this.gyro.z
175
+ };
176
+ if (this.checkFields(val)) this.updateParams(this.paramsGyro, val);
177
+ }
178
+ check() {
179
+ if (!this._hasPermission) return "UNCLEAR";
180
+ const result = this.checkStability();
181
+ return result === null ? "UNCLEAR" : result ? "FAIL" : "PASS";
182
+ }
183
+ checkStability() {
184
+ if (!this._isRunning) return null;
185
+ const filteredStdChecks = [
186
+ this.gyro ? this.isBelowStdThreshold(this.paramsGyro, this.thresholds.gyroThreshold) : null,
187
+ this.acl ? this.isBelowStdThreshold(this.paramsAcc, this.thresholds.accThreshold) : null,
188
+ this.isBelowStdThreshold(this.paramsAccGrOld, this.thresholds.accGrOldThreshold),
189
+ this.isBelowStdThreshold(this.paramsAccOld, this.thresholds.accOldThreshold),
190
+ this.isBelowStdThreshold(this.paramsGyroscopeOld, this.thresholds.gyroscopeOldThreshold),
191
+ this.isBelowStdThreshold(this.paramsOrientationOld, this.thresholds.orientationOldThreshold)
192
+ ].filter((check) => check !== null);
193
+ const finalStdCheck = filteredStdChecks.length > 0 ? filteredStdChecks.every((check) => check) : null;
194
+ const filteredMaeChecks = [
195
+ this.gyro ? this.isBelowMaeThreshold(this.paramsGyro, this.thresholds.maeGyroThreshold) : null,
196
+ this.acl ? this.isBelowMaeThreshold(this.paramsAcc, this.thresholds.maeAccThreshold) : null,
197
+ this.isBelowMaeThreshold(this.paramsAccGrOld, this.thresholds.maeAccGrOldThreshold),
198
+ this.isBelowMaeThreshold(this.paramsAccOld, this.thresholds.maeAccOldThreshold),
199
+ this.isBelowMaeThreshold(this.paramsGyroscopeOld, this.thresholds.maeGyroscopeOldThreshold),
200
+ this.isBelowMaeThreshold(this.paramsOrientationOld, this.thresholds.maeOrientationOldThreshold)
201
+ ].filter((check) => check !== null);
202
+ const finalMaeCheck = filteredMaeChecks.length > 0 ? filteredMaeChecks.every((check) => check) : null;
203
+ return finalStdCheck === null ? finalMaeCheck === null ? null : finalMaeCheck : finalMaeCheck !== null ? finalStdCheck && finalMaeCheck : finalStdCheck;
204
+ }
205
+ updateParams(params, val) {
206
+ const deltaX = val.x - params.meanX;
207
+ const deltaY = val.y - params.meanY;
208
+ const deltaZ = val.z - params.meanZ;
209
+ params.meanX += deltaX / params.ptsNum;
210
+ params.meanY += deltaY / params.ptsNum;
211
+ params.meanZ += deltaZ / params.ptsNum;
212
+ params.m2X += deltaX * (val.x - params.meanX);
213
+ params.m2Y += deltaY * (val.y - params.meanY);
214
+ params.m2Z += deltaZ * (val.z - params.meanZ);
215
+ params.cumulativeAbsErrorX += Math.abs(val.x - params.meanX);
216
+ params.cumulativeAbsErrorY += Math.abs(val.y - params.meanY);
217
+ params.cumulativeAbsErrorZ += Math.abs(val.z - params.meanZ);
218
+ }
219
+ calculateStd(params) {
220
+ const variance = {
221
+ x: params.m2X / params.ptsNum,
222
+ y: params.m2Y / params.ptsNum,
223
+ z: params.m2Z / params.ptsNum
224
+ };
225
+ return {
226
+ x: Math.sqrt(variance.x),
227
+ y: Math.sqrt(variance.y),
228
+ z: Math.sqrt(variance.z)
229
+ };
230
+ }
231
+ calculateMae(params) {
232
+ return {
233
+ x: params.cumulativeAbsErrorX / params.ptsNum,
234
+ y: params.cumulativeAbsErrorY / params.ptsNum,
235
+ z: params.cumulativeAbsErrorZ / params.ptsNum
236
+ };
237
+ }
238
+ checkFields(point) {
239
+ return point.x !== null && point.y !== null && point.z !== null;
240
+ }
241
+ isBelowStdThreshold(params, threshold) {
242
+ if (params.ptsNum < this.minNumberOfFrames) return null;
243
+ const std = this.calculateStd(params);
244
+ return std.x < threshold && std.y < threshold && std.z < threshold;
245
+ }
246
+ isBelowMaeThreshold(params, threshold) {
247
+ if (params.ptsNum < this.minNumberOfFrames) return null;
248
+ const mae = this.calculateMae(params);
249
+ return mae.x < threshold && mae.y < threshold && mae.z < threshold;
250
+ }
251
+ };
252
+
253
+ //#endregion
254
+ export { MotionSensorProvider as t };
@@ -0,0 +1,87 @@
1
+ import { t as loadOpenVidu } from "./openviduLazy-BdsxPGgp.esm.js";
2
+
3
+ //#region ../infra/src/providers/browser/OpenViduRecordingProvider.ts
4
+ function createHiddenContainer() {
5
+ const id = `inc_rec_${Math.random().toString(36).slice(2)}`;
6
+ const existing = document.getElementById(id);
7
+ if (existing) return {
8
+ id,
9
+ element: existing
10
+ };
11
+ const div = document.createElement("div");
12
+ div.id = id;
13
+ div.style.display = "none";
14
+ document.body.appendChild(div);
15
+ return {
16
+ id,
17
+ element: div
18
+ };
19
+ }
20
+ var OpenViduRecordingProvider = class {
21
+ async connect(params) {
22
+ const { OpenVidu } = await loadOpenVidu();
23
+ const container = createHiddenContainer();
24
+ const ov = new OpenVidu();
25
+ const session = ov.initSession();
26
+ const videoTrack = params.stream.getVideoTracks()[0];
27
+ const audioTrack = params.stream.getAudioTracks()[0];
28
+ const hasAudio = audioTrack !== void 0;
29
+ const publisher = ov.initPublisher(container.id, {
30
+ publishAudio: hasAudio,
31
+ audioSource: hasAudio ? audioTrack : false,
32
+ videoSource: videoTrack ?? false,
33
+ frameRate: 30
34
+ });
35
+ session.on("exception", (event) => {
36
+ const e = event;
37
+ params.events?.onSessionException?.({
38
+ name: e?.name,
39
+ message: e?.message,
40
+ sessionId: session.sessionId
41
+ });
42
+ });
43
+ publisher.on("streamCreated", () => {
44
+ params.events?.onPublisherCreated?.({
45
+ sessionId: session.sessionId,
46
+ streamId: publisher.stream?.streamId
47
+ });
48
+ });
49
+ await session.connect(params.sessionToken);
50
+ params.events?.onSessionConnected?.(session.sessionId);
51
+ try {
52
+ await session.publish(publisher);
53
+ } catch (error) {
54
+ const message = error instanceof Error ? error.message : String(error);
55
+ params.events?.onPublisherError?.({
56
+ message,
57
+ sessionId: session.sessionId,
58
+ streamId: publisher.stream?.streamId
59
+ });
60
+ throw error;
61
+ }
62
+ return {
63
+ sessionId: session.sessionId,
64
+ publisher: {
65
+ getStreamId: () => publisher.stream?.streamId,
66
+ replaceVideoTrack: async (track) => {
67
+ await publisher.replaceTrack(track);
68
+ },
69
+ destroy: () => {}
70
+ },
71
+ disconnect: async () => {
72
+ try {
73
+ session.disconnect();
74
+ params.stream.getTracks().forEach((t) => {
75
+ t.stop();
76
+ });
77
+ } finally {
78
+ params.events?.onSessionDisconnected?.(session.sessionId);
79
+ if (container.element.parentNode) container.element.parentNode.removeChild(container.element);
80
+ }
81
+ }
82
+ };
83
+ }
84
+ };
85
+
86
+ //#endregion
87
+ export { OpenViduRecordingProvider };
@@ -0,0 +1,2 @@
1
+ import { AnyStateMachine, StateMachine, fromPromise } from "xstate";
2
+ export { StateMachine as n, fromPromise as r, AnyStateMachine as t };
@@ -1,4 +1,4 @@
1
- import { l as mlWasmJSApi_default, t as BaseWasmProvider } from "./BaseWasmProvider--AzPfwOm.esm.js";
1
+ import { r as mlWasmJSApi_default, t as BaseWasmProvider } from "./BaseWasmProvider-CQgeReKV.esm.js";
2
2
 
3
3
  //#region ../infra/src/providers/wasm/WasmUtilProvider.ts
4
4
  var WasmUtilProvider = class WasmUtilProvider extends BaseWasmProvider {
@@ -1,7 +1,7 @@
1
- import { t as api } from "./api-C2uzxrpN.esm.js";
2
- import { x as fromCallback } from "./Manager-C6AGXEq_.esm.js";
3
- import { t as endpoints } from "./endpoints-CI5-28jT.esm.js";
4
- import { t as BrowserTimerProvider } from "./BrowserTimerProvider-CIqH6hJp.esm.js";
1
+ import { t as api } from "./api-CyI8qTie.esm.js";
2
+ import { _ as endpoints } from "./events-BlVGS-8F.esm.js";
3
+ import { r as fromCallback } from "./xstate.esm-BXrcOcSC.esm.js";
4
+ import { t as BrowserTimerProvider } from "./BrowserTimerProvider-CkHEwJFa.esm.js";
5
5
 
6
6
  //#region src/shared/usStates.ts
7
7
  const usStates = {
@@ -1,4 +1,4 @@
1
- import { t as Manager } from "./Manager-CCT_-HuZ.js";
1
+ import { t as Manager } from "./Manager-N01KfnVA.js";
2
2
 
3
3
  //#region src/modules/antifraud/antifraudManager.d.ts
4
4
  type AntifraudIdleState = {
@@ -1,6 +1,6 @@
1
- import { t as api } from "./api-C2uzxrpN.esm.js";
2
- import { C as createActor, S as fromPromise, r as eventModuleNames, s as createManagerInstrumentation, t as createManager, y as setup } from "./Manager-C6AGXEq_.esm.js";
3
- import { t as endpoints } from "./endpoints-CI5-28jT.esm.js";
1
+ import { t as api } from "./api-CyI8qTie.esm.js";
2
+ import { _ as endpoints, n as eventModuleNames, o as createManagerInstrumentation } from "./events-BlVGS-8F.esm.js";
3
+ import { a as createActor, i as fromPromise, o as createManager, t as setup } from "./xstate.esm-BXrcOcSC.esm.js";
4
4
 
5
5
  //#region src/modules/antifraud/antifraudServices.ts
6
6
  async function processAntifraud(signal) {
@@ -1,10 +1,12 @@
1
- import "./StateMachine-CM_aOfNL.js";
2
- import "./Actor-By8WNHi-.js";
3
- import "./deepsightService-Ciu0atv5.js";
4
- import "./camera-6XJdOeBF.js";
5
- import "./types-CiLyvJGb.js";
6
- import "./types-D8Y1faI5.js";
7
- import "./Manager-CCT_-HuZ.js";
8
- import { _ as AuthenticationConfig, b as authenticationMachine, g as createAuthenticationActor, h as CreateAuthenticationActorOptions, m as AuthenticationActor } from "./faceCaptureManagerFactory-CdwpYykv.js";
9
- import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-Bd10YGSO.js";
1
+ import "./warmup-yzJJKXFi.js";
2
+ import "./Manager-N01KfnVA.js";
3
+ import "./Actor-Cz_KnN47.js";
4
+ import "./StateMachine-DU1S4Cik.js";
5
+ import { _ as AuthenticationConfig, b as authenticationMachine, g as createAuthenticationActor, h as CreateAuthenticationActorOptions, m as AuthenticationActor } from "./faceCaptureManagerFactory-Bp_mC9b2.js";
6
+ import "./camera-BcVDCZxW.js";
7
+ import "./types-DcqFYowa.js";
8
+ import "./types-DufUK-_f.js";
9
+ import "./deepsightService-CyEcAH-I.js";
10
+ import "./types-UPqCMQKa.js";
11
+ import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-CXTPgE_2.js";
10
12
  export { type AuthenticationActor, type AuthenticationConfig, type AuthenticationManager, type AuthenticationState, type CreateAuthenticationActorOptions, authenticationMachine, createAuthenticationActor, createAuthenticationManager };
@@ -1,15 +1,20 @@
1
- import "./platform-DdhkonXk.esm.js";
2
- import "./BaseWasmProvider--AzPfwOm.esm.js";
3
- import "./StreamCanvasCapture-DkpkIgyL.esm.js";
4
- import "./browserSimulation-DYAk0Ipe.esm.js";
5
- import "./api-C2uzxrpN.esm.js";
6
- import "./Manager-C6AGXEq_.esm.js";
7
- import "./endpoints-CI5-28jT.esm.js";
8
- import "./camera-DAuRUvnp.esm.js";
9
- import "./stats-BVigf5Rn.esm.js";
10
- import "./backCameraStream-DF_d7hTz.esm.js";
11
- import "./WasmUtilProvider-BonqBWdj.esm.js";
12
- import "./faceCaptureSetup-DbXgtcp7.esm.js";
13
- import { i as authenticationMachine, r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-B4gSCgrO.esm.js";
1
+ import "./BaseWasmProvider-CQgeReKV.esm.js";
2
+ import "./WasmUtilProvider-C45HStLj.esm.js";
3
+ import "./api-CyI8qTie.esm.js";
4
+ import "./events-BlVGS-8F.esm.js";
5
+ import "./browserSimulation-yzDdWSBf.esm.js";
6
+ import "./xstate.esm-BXrcOcSC.esm.js";
7
+ import "./faceCaptureSetup-DzlTPjT9.esm.js";
8
+ import "./recordingService-BDx_6XR9.esm.js";
9
+ import "./deepsightService-C3gQ_9Ml.esm.js";
10
+ import "./camera-CsT06Zqy.esm.js";
11
+ import "./getBrowser-B800KRAi.esm.js";
12
+ import "./stats-BZ1kFW4p.esm.js";
13
+ import "./MotionSensorProvider-BTDLt08l.esm.js";
14
+ import "./permissionServices-CDqkkway.esm.js";
15
+ import "./platform-Dcuv6w60.esm.js";
16
+ import "./backCameraStream-CUo1USCT.esm.js";
17
+ import "./getDeviceClass-BKd2FOAf.esm.js";
18
+ import { i as authenticationMachine, r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-D4esVx-z.esm.js";
14
19
 
15
20
  export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
@@ -1,5 +1,5 @@
1
- import { t as Manager } from "./Manager-CCT_-HuZ.js";
2
- import { h as CreateAuthenticationActorOptions, m as AuthenticationActor, n as FaceCaptureManagerState, t as FaceCaptureManager } from "./faceCaptureManagerFactory-CdwpYykv.js";
1
+ import { t as Manager } from "./Manager-N01KfnVA.js";
2
+ import { h as CreateAuthenticationActorOptions, m as AuthenticationActor, n as FaceCaptureManagerState, t as FaceCaptureManager } from "./faceCaptureManagerFactory-Bp_mC9b2.js";
3
3
 
4
4
  //#region src/modules/authentication/authenticationManager.d.ts
5
5
  type AuthenticationState = FaceCaptureManagerState;
@@ -1,9 +1,10 @@
1
- import { f as BrowserStorageProvider, p as getDeviceClass } from "./StreamCanvasCapture-DkpkIgyL.esm.js";
2
- import { t as api } from "./api-C2uzxrpN.esm.js";
3
- import { C as createActor, S as fromPromise, b as assign, r as eventModuleNames } from "./Manager-C6AGXEq_.esm.js";
4
- import { t as endpoints } from "./endpoints-CI5-28jT.esm.js";
5
- import { t as WasmUtilProvider } from "./WasmUtilProvider-BonqBWdj.esm.js";
6
- import { a as createFaceCaptureManagerFromActor, i as FACE_ERROR_CODES, t as faceCaptureMachine } from "./faceCaptureSetup-DbXgtcp7.esm.js";
1
+ import { t as WasmUtilProvider } from "./WasmUtilProvider-C45HStLj.esm.js";
2
+ import { t as api } from "./api-CyI8qTie.esm.js";
3
+ import { _ as endpoints, n as eventModuleNames } from "./events-BlVGS-8F.esm.js";
4
+ import { a as createActor, i as fromPromise, n as assign } from "./xstate.esm-BXrcOcSC.esm.js";
5
+ import { n as createFaceCaptureManagerFromActor, t as faceCaptureMachine } from "./faceCaptureSetup-DzlTPjT9.esm.js";
6
+ import { v as FACE_ERROR_CODES, y as BrowserStorageProvider } from "./recordingService-BDx_6XR9.esm.js";
7
+ import { t as getDeviceClass } from "./getDeviceClass-BKd2FOAf.esm.js";
7
8
 
8
9
  //#region src/modules/authentication/authenticationErrorUtils.ts
9
10
  const AUTH_ERROR_MAP = {
@@ -1,5 +1,5 @@
1
- import { a as isIPhone14OrHigher, o as isSafari, r as isIOS, t as isAndroid } from "./platform-DdhkonXk.esm.js";
2
- import { i as stopCameraStream, n as enumerateVideoDevices, r as requestCameraAccess, t as applyTrackConstraints } from "./camera-DAuRUvnp.esm.js";
1
+ import { i as stopCameraStream, n as enumerateVideoDevices, r as requestCameraAccess, t as applyTrackConstraints } from "./camera-CsT06Zqy.esm.js";
2
+ import { a as isIPhone14OrHigher, o as isSafari, r as isIOS, t as isAndroid } from "./platform-Dcuv6w60.esm.js";
3
3
 
4
4
  //#region ../infra/src/capabilities/ITimerCapability.ts
5
5
  function sleep(ms) {
@@ -0,0 +1,16 @@
1
+ import { n as PermissionStatus, t as PermissionResult } from "./types-UPqCMQKa.js";
2
+
3
+ //#region src/internal/permissions/permissionServices.d.ts
4
+
5
+ /**
6
+ * Checks the current camera permission state without prompting the user.
7
+ */
8
+ declare function checkPermission(): Promise<PermissionResult>;
9
+ /**
10
+ * Requests camera permission by attempting to access the camera, then immediately
11
+ * stops the obtained stream. Also requests motion sensor permission (required on iOS
12
+ * to be called during a user gesture). This function does not keep or return the stream.
13
+ */
14
+ declare function requestPermission(): Promise<PermissionResult>;
15
+ //#endregion
16
+ export { type PermissionResult, type PermissionStatus, checkPermission as checkCameraPermission, requestPermission as requestCameraPermission };
@@ -0,0 +1,5 @@
1
+ import "./camera-CsT06Zqy.esm.js";
2
+ import "./MotionSensorProvider-BTDLt08l.esm.js";
3
+ import { n as requestPermission, t as checkPermission } from "./permissionServices-CDqkkway.esm.js";
4
+
5
+ export { checkPermission as checkCameraPermission, requestPermission as requestCameraPermission };