@incodetech/core 0.0.0-dev-20260527-67542989 → 0.0.0-dev-20260527-e762b8ad
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.
- package/dist/{BrowserStorageProvider-SzhC3_bZ.esm.js → BrowserStorageProvider-EtdbBJGr.esm.js} +8 -1
- package/dist/{MotionSensorProvider-D8M9kEPC.esm.js → MotionSensorProvider-BiZTqw83.esm.js} +53 -12
- package/dist/{BaseWasmProvider-Bu-KpwmU.esm.js → WasmUtilProvider-C3xYpVKR.esm.js} +125 -2
- package/dist/{addressSearch-XScWWdG2.esm.js → addressSearch-CJtpPfHp.esm.js} +4 -4
- package/dist/{ae-signature-CMZEibMI.esm.js → ae-signature-CDCW3z6k.esm.js} +1 -1
- package/dist/ae-signature.d.ts +1 -1
- package/dist/ae-signature.esm.js +7 -6
- package/dist/antifraud.esm.js +5 -5
- package/dist/{antifraudStateMachine-CiJH01Ew.esm.js → antifraudStateMachine-DG6ZVhgf.esm.js} +3 -3
- package/dist/apiError-CH9VyBh5.esm.js +51 -0
- package/dist/authentication.d.ts +4 -4
- package/dist/authentication.esm.js +23 -24
- package/dist/{authenticationManager-DpUkttoA.d.ts → authenticationManager-CXwDnFxJ.d.ts} +3 -3
- package/dist/{authenticationManager-Bm789ZF6.esm.js → authenticationManager-gRC1sCEb.esm.js} +6 -6
- package/dist/{authenticationStateMachine-C3zbMjU_.esm.js → authenticationStateMachine-TIrvdOEV.esm.js} +7 -7
- package/dist/{backCameraStream-DOjKMmDh.esm.js → backCameraStream-5q1r2W2q.esm.js} +3 -3
- package/dist/{browserSimulation-B4v6Uc0u.esm.js → browserSimulation-DoIsN6qC.esm.js} +2 -2
- package/dist/camera.d.ts +4 -3
- package/dist/camera.esm.js +4 -3
- package/dist/consent.d.ts +47 -47
- package/dist/consent.esm.js +5 -5
- package/dist/{consentStateMachine-BTV0sgyX.esm.js → consentStateMachine-DoAMTUpJ.esm.js} +3 -3
- package/dist/cpf-ocr.d.ts +17 -17
- package/dist/cpf-ocr.esm.js +4 -4
- package/dist/cross-document-data-match.esm.js +5 -5
- package/dist/curp-validation.esm.js +5 -5
- package/dist/{curpValidationStateMachine-C8TEQWn_.esm.js → curpValidationStateMachine-DOxJlK7O.esm.js} +3 -3
- package/dist/custom-fields.esm.js +4 -4
- package/dist/custom-watchlist.esm.js +5 -5
- package/dist/{customWatchlistStateMachine-DEOH5mIh.esm.js → customWatchlistStateMachine-C5qmtYkf.esm.js} +3 -3
- package/dist/{deepsightLoader-DYK1s4yN.esm.js → deepsightLoader-oQnIw3yy.esm.js} +19 -14
- package/dist/{deepsightService-D4bEQp3e.d.ts → deepsightService-CiNHvOj0.d.ts} +1 -0
- package/dist/{deepsightService-Be6Zzytt.esm.js → deepsightService-DgmtJnVh.esm.js} +8 -6
- package/dist/device.esm.js +4 -4
- package/dist/document-capture.d.ts +74 -74
- package/dist/document-capture.esm.js +9 -9
- package/dist/document-upload.d.ts +43 -43
- package/dist/document-upload.esm.js +8 -8
- package/dist/{documentCaptureStateMachine-LpJnuj6V.esm.js → documentCaptureStateMachine-Ct2kC1XA.esm.js} +5 -5
- package/dist/dynamic-forms.esm.js +4 -4
- package/dist/ekyb.esm.js +16 -15
- package/dist/{ekybStateMachine-CXw52EDZ.esm.js → ekybStateMachine-Dprv83b-.esm.js} +5 -5
- package/dist/ekyc.esm.js +7 -7
- package/dist/{ekycStateMachine-ByFjerHH.esm.js → ekycStateMachine-CDOMcZGt.esm.js} +4 -4
- package/dist/electronic-signature.d.ts +1 -1
- package/dist/electronic-signature.esm.js +6 -5
- package/dist/{electronicSignatureManager-m1XuxLEc.esm.js → electronicSignatureManager-DeXWxqNA.esm.js} +53 -15
- package/dist/email.esm.js +7 -7
- package/dist/{emailManager-D3M9UNcy.esm.js → emailManager-CetA61j7.esm.js} +3 -3
- package/dist/{emailStateMachine-dsbIVuDa.esm.js → emailStateMachine-B4Wtz_HA.esm.js} +4 -4
- package/dist/{events-D6-e4vok.esm.js → events-Dnh2PVAZ.esm.js} +1 -1
- package/dist/events.esm.js +2 -2
- package/dist/extensibility.d.ts +6 -6
- package/dist/extensibility.esm.js +36 -36
- package/dist/face-match.esm.js +5 -5
- package/dist/{faceCaptureManagerFactory-ngkLqllM.d.ts → faceCaptureManagerFactory-BodYisaN.d.ts} +3 -3
- package/dist/{faceCaptureManagerFactory-D5uJFoFF.esm.js → faceCaptureManagerFactory-GCqj24xa.esm.js} +17 -3
- package/dist/{faceCaptureSetup-DtVQG-eq.esm.js → faceCaptureSetup-B9RFaTgo.esm.js} +65 -27
- package/dist/{faceMatchStateMachine-By-jTA_A.esm.js → faceMatchStateMachine-DDJuYnTn.esm.js} +3 -3
- package/dist/flow.d.ts +2 -2
- package/dist/flow.esm.js +15 -14
- package/dist/{flowCompletionService-C3-_iaMC.esm.js → flowCompletionService-D3jTfJDC.esm.js} +3 -3
- package/dist/{flowServices-BjZy_gnx.esm.js → flowServices-CVBVe9fh.esm.js} +4 -4
- package/dist/geolocation.esm.js +6 -6
- package/dist/{geolocationStateMachine-un0p4JOS.esm.js → geolocationStateMachine-Bvj_QrZB.esm.js} +4 -4
- package/dist/{getDeviceClass--6s4J1GM.esm.js → getDeviceClass-B6U_P2pO.esm.js} +1 -1
- package/dist/government-validation.esm.js +6 -6
- package/dist/{governmentValidationStateMachine-BtVCm61p.esm.js → governmentValidationStateMachine-f0oCTSJG.esm.js} +4 -4
- package/dist/home.d.ts +10 -10
- package/dist/home.esm.js +3 -3
- package/dist/http.esm.js +1 -1
- package/dist/id-ocr.d.ts +52 -52
- package/dist/id-ocr.esm.js +5 -5
- package/dist/id-verification.d.ts +25 -25
- package/dist/id-verification.esm.js +5 -5
- package/dist/id.d.ts +3 -3
- package/dist/id.esm.js +27 -26
- package/dist/{idCaptureManager-Bnt-Sr7d.esm.js → idCaptureManager-BM3xxi1m.esm.js} +19 -5
- package/dist/{idCaptureManager-BnT64lct.d.ts → idCaptureManager-Bvw3NEhH.d.ts} +4 -4
- package/dist/{idCaptureStateMachine-FsPmfTOo.esm.js → idCaptureStateMachine-DyPzyGnm.esm.js} +56 -31
- package/dist/{idOcrStateMachine-CJvGtJjH.esm.js → idOcrStateMachine-can5Er3s.esm.js} +4 -4
- package/dist/{idVerificationStateMachine-DDVIg_Hz.esm.js → idVerificationStateMachine-K9JNlir9.esm.js} +3 -3
- package/dist/identity-reuse.d.ts +34 -34
- package/dist/identity-reuse.esm.js +5 -5
- package/dist/{identityReuseStateMachine-BO6qmq5o.esm.js → identityReuseStateMachine-BmzyRrev.esm.js} +3 -3
- package/dist/{index-D_JyxxN8.d.ts → index-xu3NbUht.d.ts} +182 -121
- package/dist/index.esm.js +12 -13
- package/dist/{invokeOnCaptureCallback-DtUcr9QF.esm.js → invokeOnCaptureCallback-BxoTAyzA.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +50 -50
- package/dist/mandatory-consent.esm.js +5 -5
- package/dist/{mandatoryConsentStateMachine-P83lO1Kv.esm.js → mandatoryConsentStateMachine-WrlXxYoV.esm.js} +3 -3
- package/dist/permissionServices-4py90m2a.esm.js +130 -0
- package/dist/phone.esm.js +7 -7
- package/dist/{phoneManager-Rmpzst5o.esm.js → phoneManager-0ec4qDAL.esm.js} +3 -3
- package/dist/{phoneStateMachine-BovyXAH7.esm.js → phoneStateMachine-DpZMDLlL.esm.js} +4 -4
- package/dist/{qe-signature-CUXumNOT.esm.js → qe-signature-DiXt5xMf.esm.js} +1 -1
- package/dist/qe-signature.d.ts +1 -1
- package/dist/qe-signature.esm.js +7 -6
- package/dist/{recordingService--7zrnJ0L.esm.js → recordingService-DJPyoT4J.esm.js} +33 -12
- package/dist/redirect-to-mobile.esm.js +6 -6
- package/dist/{redirectToMobileStateMachine-DmPreZ4N.esm.js → redirectToMobileStateMachine-BLf3Lf35.esm.js} +4 -4
- package/dist/{runChildModule-DfoDhWUj.esm.js → runChildModule-DQucWuaz.esm.js} +2 -2
- package/dist/selfie.d.ts +4 -4
- package/dist/selfie.esm.js +24 -25
- package/dist/{selfieManager-2Dp_5M47.d.ts → selfieManager-BG8fq_FT.d.ts} +3 -3
- package/dist/{selfieManager-2hJ_F_7l.esm.js → selfieManager-CuwAFh3w.esm.js} +6 -6
- package/dist/{selfieStateMachine-CYkMakwQ.esm.js → selfieStateMachine-BnRGtQ0j.esm.js} +3 -3
- package/dist/{session-CavoWvhW.esm.js → session-CCaOwDaZ.esm.js} +4 -53
- package/dist/session.esm.js +12 -11
- package/dist/{sessionInitializer-CbOBOOBS.esm.js → sessionInitializer-GjxPhy6q.esm.js} +7 -7
- package/dist/{setup-wf2tqocl.esm.js → setup-BFWg3ruS.esm.js} +8 -9
- package/dist/signature.esm.js +5 -5
- package/dist/{signatureStateMachine-BOYxYLTJ.esm.js → signatureStateMachine-D-xEAiA4.esm.js} +4 -4
- package/dist/{stats-Cp8V6jOL.esm.js → stats-Dc1nW_Oc.esm.js} +2 -2
- package/dist/stats.esm.js +3 -3
- package/dist/trust-graph.esm.js +3 -3
- package/dist/types-CL7hCbCA.d.ts +5 -0
- package/dist/wasm.d.ts +1 -1
- package/dist/wasm.esm.js +12 -13
- package/dist/watchlist-for-business.esm.js +5 -5
- package/dist/watchlist.esm.js +5 -5
- package/dist/{watchlistForBusinessStateMachine-_7mwU1wi.esm.js → watchlistForBusinessStateMachine-DZFCU5-e.esm.js} +3 -3
- package/dist/{watchlistStateMachine-Bbblb1rR.esm.js → watchlistStateMachine-Lme04iSM.esm.js} +3 -3
- package/dist/workflow.d.ts +123 -123
- package/dist/workflow.esm.js +54 -53
- package/package.json +1 -1
- package/dist/WasmUtilProvider-aU2dI9LT.esm.js +0 -126
- package/dist/permissionServices-BM6kC-Bb.esm.js +0 -50
- package/dist/types-DIpSjydy.d.ts +0 -5
- /package/dist/{BrowserTimerProvider-DhNc_x02.esm.js → BrowserTimerProvider-BZGH3sYJ.esm.js} +0 -0
- /package/dist/{ITimerCapability-DUyV4pr-.esm.js → ITimerCapability-2pw-S97e.esm.js} +0 -0
- /package/dist/{IpifyProvider-D4LWD15E.esm.js → IpifyProvider-Dt8MgLjg.esm.js} +0 -0
- /package/dist/{api-CESGtpbH.esm.js → api-eqRXuVG-.esm.js} +0 -0
- /package/dist/{camera-BDnuTUHR.esm.js → camera-CUAQ-q4e.esm.js} +0 -0
- /package/dist/{endpoints-C791eZQ7.esm.js → endpoints-D4cNQqhS.esm.js} +0 -0
- /package/dist/{getBrowser-C8DP7oTB.esm.js → getBrowser-DHeJ7PSV.esm.js} +0 -0
- /package/dist/{getDeviceClass-DLbfq_Ux.esm.js → getDeviceClass-CK6VGnUc.esm.js} +0 -0
- /package/dist/{platform-SKvEfCBh.esm.js → platform-Ca6QEq2_.esm.js} +0 -0
- /package/dist/{xstate.esm-C9wncMQa.esm.js → xstate.esm-C_4CL5-u.esm.js} +0 -0
package/dist/{BrowserStorageProvider-SzhC3_bZ.esm.js → BrowserStorageProvider-EtdbBJGr.esm.js}
RENAMED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
//#region ../infra/src/wasm/wasmDsFlagSync.ts
|
|
2
|
+
function setWasmDsFlagSync(enabled) {
|
|
3
|
+
if (typeof localStorage === "undefined") return;
|
|
4
|
+
localStorage.setItem("ds", enabled ? "1" : "0");
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
1
8
|
//#region ../infra/src/providers/browser/BrowserStorageProvider.ts
|
|
2
9
|
/**
|
|
3
10
|
* Browser-based storage provider wrapping localStorage.
|
|
@@ -52,4 +59,4 @@ var BrowserStorageProvider = class {
|
|
|
52
59
|
};
|
|
53
60
|
|
|
54
61
|
//#endregion
|
|
55
|
-
export { BrowserStorageProvider as t };
|
|
62
|
+
export { setWasmDsFlagSync as n, BrowserStorageProvider as t };
|
|
@@ -1,8 +1,22 @@
|
|
|
1
1
|
//#region ../infra/src/providers/browser/MotionSensorProvider.ts
|
|
2
|
-
|
|
2
|
+
const MOTION_PERMISSION_GRANTED_KEY = "motionSensorsPermissionsGranted";
|
|
3
|
+
const MOTION_PERMISSION_DENIED_KEY = "motionSensorsPermissionsDenied";
|
|
4
|
+
var MotionSensorProvider = class MotionSensorProvider {
|
|
5
|
+
static isIosMotionPermissionRequired() {
|
|
6
|
+
return typeof DeviceMotionEvent !== "undefined" && typeof DeviceMotionEvent.requestPermission === "function";
|
|
7
|
+
}
|
|
8
|
+
static readSessionFlag(key) {
|
|
9
|
+
if (typeof sessionStorage === "undefined") return false;
|
|
10
|
+
return sessionStorage.getItem(key) === "true";
|
|
11
|
+
}
|
|
12
|
+
static hasMotionPermissionGrantedInSession() {
|
|
13
|
+
return MotionSensorProvider.readSessionFlag(MOTION_PERMISSION_GRANTED_KEY);
|
|
14
|
+
}
|
|
15
|
+
static hasMotionPermissionDeniedInSession() {
|
|
16
|
+
return MotionSensorProvider.readSessionFlag(MOTION_PERMISSION_DENIED_KEY);
|
|
17
|
+
}
|
|
3
18
|
constructor(thresholds) {
|
|
4
19
|
this._isRunning = false;
|
|
5
|
-
this._hasPermission = true;
|
|
6
20
|
this.acl = null;
|
|
7
21
|
this.gyro = null;
|
|
8
22
|
this.minNumberOfFrames = 10;
|
|
@@ -71,6 +85,7 @@ var MotionSensorProvider = class {
|
|
|
71
85
|
this.updateParams(this.paramsOrientationOld, orientationVal);
|
|
72
86
|
}
|
|
73
87
|
};
|
|
88
|
+
this._hasPermission = MotionSensorProvider.isIosMotionPermissionRequired() ? MotionSensorProvider.hasMotionPermissionGrantedInSession() : true;
|
|
74
89
|
this.thresholds = {
|
|
75
90
|
accThreshold: thresholds?.accThreshold ?? .3,
|
|
76
91
|
gyroThreshold: thresholds?.gyroThreshold ?? .3,
|
|
@@ -92,21 +107,47 @@ var MotionSensorProvider = class {
|
|
|
92
107
|
get hasPermission() {
|
|
93
108
|
return this._hasPermission;
|
|
94
109
|
}
|
|
110
|
+
hasBeenRequestedThisSession() {
|
|
111
|
+
return MotionSensorProvider.hasMotionPermissionGrantedInSession();
|
|
112
|
+
}
|
|
113
|
+
hasMotionPermissionDeniedThisSession() {
|
|
114
|
+
return MotionSensorProvider.hasMotionPermissionDeniedInSession();
|
|
115
|
+
}
|
|
116
|
+
markMotionPermissionGrantedInSession() {
|
|
117
|
+
if (typeof sessionStorage === "undefined") return;
|
|
118
|
+
sessionStorage.setItem(MOTION_PERMISSION_GRANTED_KEY, String(true));
|
|
119
|
+
sessionStorage.removeItem(MOTION_PERMISSION_DENIED_KEY);
|
|
120
|
+
sessionStorage.setItem("motionSensorsPermissionsRequested", String(true));
|
|
121
|
+
}
|
|
122
|
+
markMotionPermissionDeniedInSession() {
|
|
123
|
+
if (typeof sessionStorage === "undefined") return;
|
|
124
|
+
sessionStorage.setItem(MOTION_PERMISSION_DENIED_KEY, String(true));
|
|
125
|
+
sessionStorage.removeItem(MOTION_PERMISSION_GRANTED_KEY);
|
|
126
|
+
}
|
|
95
127
|
async requestPermission() {
|
|
96
|
-
if (
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
128
|
+
if (!MotionSensorProvider.isIosMotionPermissionRequired()) return "not-required";
|
|
129
|
+
if (MotionSensorProvider.hasMotionPermissionGrantedInSession()) {
|
|
130
|
+
this._hasPermission = true;
|
|
131
|
+
return "granted";
|
|
132
|
+
}
|
|
133
|
+
if (MotionSensorProvider.hasMotionPermissionDeniedInSession()) {
|
|
134
|
+
this._hasPermission = false;
|
|
135
|
+
return "denied";
|
|
136
|
+
}
|
|
137
|
+
try {
|
|
138
|
+
if (await DeviceMotionEvent.requestPermission() !== "granted") {
|
|
105
139
|
this._hasPermission = false;
|
|
140
|
+
this.markMotionPermissionDeniedInSession();
|
|
106
141
|
return "denied";
|
|
107
142
|
}
|
|
143
|
+
this._hasPermission = true;
|
|
144
|
+
this.markMotionPermissionGrantedInSession();
|
|
145
|
+
return "granted";
|
|
146
|
+
} catch {
|
|
147
|
+
this._hasPermission = false;
|
|
148
|
+
this.markMotionPermissionDeniedInSession();
|
|
149
|
+
return "denied";
|
|
108
150
|
}
|
|
109
|
-
return "not-required";
|
|
110
151
|
}
|
|
111
152
|
initializeAccelerometer() {
|
|
112
153
|
if (!("Accelerometer" in window)) return;
|
|
@@ -773,7 +773,7 @@ var MlWasmJSApi = class MlWasmJSApi {
|
|
|
773
773
|
}
|
|
774
774
|
async prc() {
|
|
775
775
|
this.checkWasmInitialization("Unable to prc, cpp API hasn't been initialized");
|
|
776
|
-
await wasmCallWrapper(this.wasmCallSemaphore, () => this.utilityApi.prc(), true);
|
|
776
|
+
await wasmCallWrapper(this.wasmCallSemaphore, () => this.utilityApi.prc(false), true);
|
|
777
777
|
}
|
|
778
778
|
async poc(output) {
|
|
779
779
|
this.checkWasmInitialization("Unable to poc, cpp API hasn't been initialized");
|
|
@@ -1148,4 +1148,127 @@ var BaseWasmProvider = class {
|
|
|
1148
1148
|
};
|
|
1149
1149
|
|
|
1150
1150
|
//#endregion
|
|
1151
|
-
|
|
1151
|
+
//#region ../infra/src/providers/wasm/WasmUtilProvider.ts
|
|
1152
|
+
var WasmUtilProvider = class WasmUtilProvider extends BaseWasmProvider {
|
|
1153
|
+
static async getInstance() {
|
|
1154
|
+
if (WasmUtilProvider.instance) return WasmUtilProvider.instance;
|
|
1155
|
+
if (WasmUtilProvider.initPromise) return WasmUtilProvider.initPromise;
|
|
1156
|
+
WasmUtilProvider.initPromise = (async () => {
|
|
1157
|
+
const instance = new WasmUtilProvider();
|
|
1158
|
+
await instance.initializeBase({}, "selfie");
|
|
1159
|
+
WasmUtilProvider.instance = instance;
|
|
1160
|
+
return instance;
|
|
1161
|
+
})();
|
|
1162
|
+
return WasmUtilProvider.initPromise;
|
|
1163
|
+
}
|
|
1164
|
+
static resetInstance() {
|
|
1165
|
+
WasmUtilProvider.instance = void 0;
|
|
1166
|
+
WasmUtilProvider.initPromise = void 0;
|
|
1167
|
+
}
|
|
1168
|
+
constructor() {
|
|
1169
|
+
super(void 0);
|
|
1170
|
+
}
|
|
1171
|
+
async initialize(config) {
|
|
1172
|
+
if (this.initialized) return;
|
|
1173
|
+
const pipeline = config.pipelines?.[0] ?? "selfie";
|
|
1174
|
+
await this.initializeBase(config, pipeline);
|
|
1175
|
+
}
|
|
1176
|
+
async processFrame(_image) {
|
|
1177
|
+
throw new Error("WasmUtilProvider does not support frame processing. Use encryptImage() instead.");
|
|
1178
|
+
}
|
|
1179
|
+
encryptImage(image) {
|
|
1180
|
+
this.ensureInitialized();
|
|
1181
|
+
return mlWasmJSApi_default.ens(image);
|
|
1182
|
+
}
|
|
1183
|
+
setSdkVersion(version) {
|
|
1184
|
+
this.ensureInitialized();
|
|
1185
|
+
mlWasmJSApi_default.setSdkVersion(version);
|
|
1186
|
+
}
|
|
1187
|
+
setSdkPlatform(platform) {
|
|
1188
|
+
this.ensureInitialized();
|
|
1189
|
+
mlWasmJSApi_default.setSdkPlatform(platform);
|
|
1190
|
+
}
|
|
1191
|
+
setDeviceInfo(deviceInfo, overrideExisting = true) {
|
|
1192
|
+
this.ensureInitialized();
|
|
1193
|
+
mlWasmJSApi_default.setDeviceInfo(deviceInfo, overrideExisting);
|
|
1194
|
+
}
|
|
1195
|
+
setBrowserInfo(browserInfo, overrideExisting = true) {
|
|
1196
|
+
this.ensureInitialized();
|
|
1197
|
+
mlWasmJSApi_default.setBrowserInfo(browserInfo, overrideExisting);
|
|
1198
|
+
}
|
|
1199
|
+
setCameraInfo(cameraInfo, overrideExisting = true) {
|
|
1200
|
+
this.ensureInitialized();
|
|
1201
|
+
mlWasmJSApi_default.setCameraInfo(cameraInfo, overrideExisting);
|
|
1202
|
+
}
|
|
1203
|
+
setMotionStatus(status) {
|
|
1204
|
+
this.ensureInitialized();
|
|
1205
|
+
mlWasmJSApi_default.setMotionStatus(status);
|
|
1206
|
+
}
|
|
1207
|
+
setBackgroundMode(backgroundMode) {
|
|
1208
|
+
this.ensureInitialized();
|
|
1209
|
+
mlWasmJSApi_default.setBackgroundMode(backgroundMode);
|
|
1210
|
+
}
|
|
1211
|
+
setZc(zc) {
|
|
1212
|
+
this.ensureInitialized();
|
|
1213
|
+
mlWasmJSApi_default.setZc(zc);
|
|
1214
|
+
}
|
|
1215
|
+
setInspectorOpened(opened) {
|
|
1216
|
+
this.ensureInitialized();
|
|
1217
|
+
mlWasmJSApi_default.setInspectorOpened(opened);
|
|
1218
|
+
}
|
|
1219
|
+
getMetadata() {
|
|
1220
|
+
this.ensureInitialized();
|
|
1221
|
+
return mlWasmJSApi_default.getMetadata();
|
|
1222
|
+
}
|
|
1223
|
+
async analyzeFrame(image) {
|
|
1224
|
+
this.ensureInitialized();
|
|
1225
|
+
await mlWasmJSApi_default.analyzeFrame(image);
|
|
1226
|
+
}
|
|
1227
|
+
getCheck() {
|
|
1228
|
+
this.ensureInitialized();
|
|
1229
|
+
return mlWasmJSApi_default.getCheck();
|
|
1230
|
+
}
|
|
1231
|
+
getPipelineState() {
|
|
1232
|
+
this.ensureInitialized();
|
|
1233
|
+
return mlWasmJSApi_default.getPipelineState();
|
|
1234
|
+
}
|
|
1235
|
+
estimatePerformance() {
|
|
1236
|
+
this.ensureInitialized();
|
|
1237
|
+
return mlWasmJSApi_default.estimatePerformance();
|
|
1238
|
+
}
|
|
1239
|
+
isVirtualCamera(label) {
|
|
1240
|
+
this.ensureInitialized();
|
|
1241
|
+
return mlWasmJSApi_default.isVirtualCamera(label);
|
|
1242
|
+
}
|
|
1243
|
+
async prc() {
|
|
1244
|
+
this.ensureInitialized();
|
|
1245
|
+
await mlWasmJSApi_default.prc();
|
|
1246
|
+
}
|
|
1247
|
+
async poc(output) {
|
|
1248
|
+
this.ensureInitialized();
|
|
1249
|
+
await mlWasmJSApi_default.poc(output);
|
|
1250
|
+
}
|
|
1251
|
+
async rsp() {
|
|
1252
|
+
this.ensureInitialized();
|
|
1253
|
+
await mlWasmJSApi_default.rsp();
|
|
1254
|
+
}
|
|
1255
|
+
ssl() {
|
|
1256
|
+
this.ensureInitialized();
|
|
1257
|
+
mlWasmJSApi_default.ssl();
|
|
1258
|
+
}
|
|
1259
|
+
stl() {
|
|
1260
|
+
this.ensureInitialized();
|
|
1261
|
+
mlWasmJSApi_default.stl();
|
|
1262
|
+
}
|
|
1263
|
+
ckvcks(data) {
|
|
1264
|
+
this.ensureInitialized();
|
|
1265
|
+
mlWasmJSApi_default.ckvcks(data);
|
|
1266
|
+
}
|
|
1267
|
+
async getVersions() {
|
|
1268
|
+
this.ensureInitialized();
|
|
1269
|
+
return mlWasmJSApi_default.getVersions();
|
|
1270
|
+
}
|
|
1271
|
+
};
|
|
1272
|
+
|
|
1273
|
+
//#endregion
|
|
1274
|
+
export { WasmWebClientError as a, setWebApiHttpTransport as c, IdCaptureModelType as d, deriveSiblingJsPath as f, mlWasmJSApi_default as i, setupWasmConnection as l, BaseWasmProvider as n, executeWasmRequest as o, warmupWasm as r, initializeWasmWebClient as s, WasmUtilProvider as t, WasmPipelineType as u };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-
|
|
2
|
-
import { t as api } from "./api-
|
|
3
|
-
import { t as endpoints } from "./endpoints-
|
|
4
|
-
import { i as fromCallback } from "./xstate.esm-
|
|
1
|
+
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BZGH3sYJ.esm.js";
|
|
2
|
+
import { t as api } from "./api-eqRXuVG-.esm.js";
|
|
3
|
+
import { t as endpoints } from "./endpoints-D4cNQqhS.esm.js";
|
|
4
|
+
import { i as fromCallback } from "./xstate.esm-C_4CL5-u.esm.js";
|
|
5
5
|
|
|
6
6
|
//#region src/shared/usStates.ts
|
|
7
7
|
const usStates = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createElectronicSignatureManager } from "./electronicSignatureManager-
|
|
1
|
+
import { t as createElectronicSignatureManager } from "./electronicSignatureManager-DeXWxqNA.esm.js";
|
|
2
2
|
|
|
3
3
|
//#region src/modules/ae-signature/index.ts
|
|
4
4
|
function createAeSignatureManager(options) {
|
package/dist/ae-signature.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-BeGOXZ8j.js";
|
|
2
2
|
import "./Actor-CARlguSq.js";
|
|
3
|
-
import { a as AE_CONSENT_KEYS, c as ConsentKey, g as getDefaultConsentChecks, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, s as ConsentChecks, u as ElectronicSignatureDocument } from "./index-
|
|
3
|
+
import { a as AE_CONSENT_KEYS, c as ConsentKey, g as getDefaultConsentChecks, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, s as ConsentChecks, u as ElectronicSignatureDocument } from "./index-xu3NbUht.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/ae-signature/index.d.ts
|
|
6
6
|
|
package/dist/ae-signature.esm.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import "./api-
|
|
2
|
-
import "./events-
|
|
3
|
-
import "./endpoints-
|
|
4
|
-
import "./xstate.esm-
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
1
|
+
import "./api-eqRXuVG-.esm.js";
|
|
2
|
+
import "./events-Dnh2PVAZ.esm.js";
|
|
3
|
+
import "./endpoints-D4cNQqhS.esm.js";
|
|
4
|
+
import "./xstate.esm-C_4CL5-u.esm.js";
|
|
5
|
+
import "./apiError-CH9VyBh5.esm.js";
|
|
6
|
+
import { a as areAllConsented, n as electronicSignatureMachine, r as AE_CONSENT_KEYS, s as getDefaultConsentChecks } from "./electronicSignatureManager-DeXWxqNA.esm.js";
|
|
7
|
+
import { t as createAeSignatureManager } from "./ae-signature-CDCW3z6k.esm.js";
|
|
7
8
|
|
|
8
9
|
export { AE_CONSENT_KEYS, electronicSignatureMachine as aeSignatureMachine, areAllConsented, createAeSignatureManager, getDefaultConsentChecks };
|
package/dist/antifraud.esm.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./api-
|
|
2
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
3
|
-
import "./endpoints-
|
|
4
|
-
import { c as createManager, s as createActor } from "./xstate.esm-
|
|
5
|
-
import { t as antifraudMachine } from "./antifraudStateMachine-
|
|
1
|
+
import "./api-eqRXuVG-.esm.js";
|
|
2
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dnh2PVAZ.esm.js";
|
|
3
|
+
import "./endpoints-D4cNQqhS.esm.js";
|
|
4
|
+
import { c as createManager, s as createActor } from "./xstate.esm-C_4CL5-u.esm.js";
|
|
5
|
+
import { t as antifraudMachine } from "./antifraudStateMachine-DG6ZVhgf.esm.js";
|
|
6
6
|
|
|
7
7
|
//#region src/modules/antifraud/antifraudActor.ts
|
|
8
8
|
function createAntifraudActor() {
|
package/dist/{antifraudStateMachine-CiJH01Ew.esm.js → antifraudStateMachine-DG6ZVhgf.esm.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
2
|
-
import { t as endpoints } from "./endpoints-
|
|
3
|
-
import { a as fromPromise, t as setup } from "./xstate.esm-
|
|
1
|
+
import { t as api } from "./api-eqRXuVG-.esm.js";
|
|
2
|
+
import { t as endpoints } from "./endpoints-D4cNQqhS.esm.js";
|
|
3
|
+
import { a as fromPromise, t as setup } from "./xstate.esm-C_4CL5-u.esm.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/antifraud/antifraudServices.ts
|
|
6
6
|
async function processAntifraud(signal) {
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
//#region src/internal/http/apiError.ts
|
|
2
|
+
/**
|
|
3
|
+
* Incode API error.
|
|
4
|
+
*
|
|
5
|
+
* Wraps an HTTP failure so callers can branch on the Incode-specific status
|
|
6
|
+
* code (e.g. `4028` for "Flow is not activated") and surface the server's
|
|
7
|
+
* human-readable message to the user. The Incode backend returns these on
|
|
8
|
+
* HTTP `400` responses with a body shaped:
|
|
9
|
+
*
|
|
10
|
+
* ```json
|
|
11
|
+
* { "status": 4028, "error": "Flow is not activated.", "message": "...", "path": "/0/omni/start" }
|
|
12
|
+
* ```
|
|
13
|
+
*
|
|
14
|
+
* - `status` — prefers the body's Incode status code, falls back to the HTTP
|
|
15
|
+
* status when the body doesn't carry one.
|
|
16
|
+
* - `httpStatus` — always the underlying HTTP status.
|
|
17
|
+
* - `cause` — the original `HttpError` (typically `FetchHttpError`) is
|
|
18
|
+
* preserved on the standard ES `Error.cause` slot, so core consumers that
|
|
19
|
+
* need `url` / `method` / `headers` / raw `data` can read them via
|
|
20
|
+
* `err.cause`.
|
|
21
|
+
*/
|
|
22
|
+
var IncodeApiError = class extends Error {
|
|
23
|
+
constructor(endpoint, status, httpStatus, message, cause) {
|
|
24
|
+
super(message);
|
|
25
|
+
this.name = "IncodeApiError";
|
|
26
|
+
this.endpoint = endpoint;
|
|
27
|
+
this.status = status;
|
|
28
|
+
this.httpStatus = httpStatus;
|
|
29
|
+
if (cause !== void 0) this.cause = cause;
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
function isHttpError(err) {
|
|
33
|
+
return typeof err === "object" && err !== null && "status" in err && "statusText" in err && "data" in err;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Convert an unknown error caught from `api.{get,post,...}` into an
|
|
37
|
+
* `IncodeApiError`, extracting the Incode-specific status and message from
|
|
38
|
+
* the response body when present. The original error is preserved on
|
|
39
|
+
* `IncodeApiError.cause`. Non-HTTP errors (including `AbortError`) and any
|
|
40
|
+
* other shape are re-thrown unchanged.
|
|
41
|
+
*/
|
|
42
|
+
function toIncodeApiError(endpoint, err) {
|
|
43
|
+
if (!isHttpError(err)) throw err;
|
|
44
|
+
const body = err.data ?? {};
|
|
45
|
+
const status = typeof body.status === "number" ? body.status : err.status;
|
|
46
|
+
const message = body.error ?? body.message ?? err.statusText ?? `HTTP ${err.status}`;
|
|
47
|
+
throw new IncodeApiError(endpoint, status, err.status, message, err);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
//#endregion
|
|
51
|
+
export { toIncodeApiError as n, IncodeApiError as t };
|
package/dist/authentication.d.ts
CHANGED
|
@@ -2,12 +2,12 @@ import "./warmup-5M9V24RH.js";
|
|
|
2
2
|
import "./Manager-BeGOXZ8j.js";
|
|
3
3
|
import "./Actor-CARlguSq.js";
|
|
4
4
|
import "./StateMachine-CDm3JH51.js";
|
|
5
|
-
import { D as authenticationMachine, S as AuthenticationConfig, b as CreateAuthenticationActorOptions, x as createAuthenticationActor, y as AuthenticationActor } from "./faceCaptureManagerFactory-
|
|
5
|
+
import { D as authenticationMachine, S as AuthenticationConfig, b as CreateAuthenticationActorOptions, x as createAuthenticationActor, y as AuthenticationActor } from "./faceCaptureManagerFactory-BodYisaN.js";
|
|
6
6
|
import "./camera-BMF1a_t8.js";
|
|
7
7
|
import "./types-EXVJmBuY.js";
|
|
8
8
|
import "./types-CdzhDWOw.js";
|
|
9
9
|
import "./types-cQjCrKJE.js";
|
|
10
|
-
import "./deepsightService-
|
|
11
|
-
import "./types-
|
|
12
|
-
import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-
|
|
10
|
+
import "./deepsightService-CiNHvOj0.js";
|
|
11
|
+
import "./types-CL7hCbCA.js";
|
|
12
|
+
import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-CXwDnFxJ.js";
|
|
13
13
|
export { type AuthenticationActor, type AuthenticationConfig, type AuthenticationManager, type AuthenticationState, type CreateAuthenticationActorOptions, authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
|
@@ -1,26 +1,25 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
5
|
-
import "./
|
|
6
|
-
import "./
|
|
7
|
-
import "./
|
|
8
|
-
import "./
|
|
9
|
-
import "./
|
|
10
|
-
import "./
|
|
11
|
-
import "./
|
|
12
|
-
import "./
|
|
13
|
-
import "./
|
|
14
|
-
import "./
|
|
15
|
-
import "./
|
|
16
|
-
import "./
|
|
17
|
-
import "./
|
|
18
|
-
import "./
|
|
19
|
-
import "./getDeviceClass
|
|
20
|
-
import "./
|
|
21
|
-
import "./
|
|
22
|
-
import "./
|
|
23
|
-
import { t as
|
|
24
|
-
import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-Bm789ZF6.esm.js";
|
|
1
|
+
import "./WasmUtilProvider-C3xYpVKR.esm.js";
|
|
2
|
+
import "./api-eqRXuVG-.esm.js";
|
|
3
|
+
import "./events-Dnh2PVAZ.esm.js";
|
|
4
|
+
import "./endpoints-D4cNQqhS.esm.js";
|
|
5
|
+
import "./stats-Dc1nW_Oc.esm.js";
|
|
6
|
+
import "./browserSimulation-DoIsN6qC.esm.js";
|
|
7
|
+
import "./platform-Ca6QEq2_.esm.js";
|
|
8
|
+
import "./getBrowser-DHeJ7PSV.esm.js";
|
|
9
|
+
import "./xstate.esm-C_4CL5-u.esm.js";
|
|
10
|
+
import "./BrowserStorageProvider-EtdbBJGr.esm.js";
|
|
11
|
+
import "./MotionSensorProvider-BiZTqw83.esm.js";
|
|
12
|
+
import "./permissionServices-4py90m2a.esm.js";
|
|
13
|
+
import "./camera-CUAQ-q4e.esm.js";
|
|
14
|
+
import "./faceCaptureManagerFactory-GCqj24xa.esm.js";
|
|
15
|
+
import "./recordingService-DJPyoT4J.esm.js";
|
|
16
|
+
import "./ITimerCapability-2pw-S97e.esm.js";
|
|
17
|
+
import "./deepsightService-DgmtJnVh.esm.js";
|
|
18
|
+
import "./backCameraStream-5q1r2W2q.esm.js";
|
|
19
|
+
import "./getDeviceClass-CK6VGnUc.esm.js";
|
|
20
|
+
import "./getDeviceClass-B6U_P2pO.esm.js";
|
|
21
|
+
import "./faceCaptureSetup-B9RFaTgo.esm.js";
|
|
22
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-TIrvdOEV.esm.js";
|
|
23
|
+
import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-gRC1sCEb.esm.js";
|
|
25
24
|
|
|
26
25
|
export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-BeGOXZ8j.js";
|
|
2
|
-
import { b as CreateAuthenticationActorOptions, n as FaceCaptureManagerState, t as FaceCaptureManager, y as AuthenticationActor } from "./faceCaptureManagerFactory-
|
|
2
|
+
import { b as CreateAuthenticationActorOptions, n as FaceCaptureManagerState, t as FaceCaptureManager, y as AuthenticationActor } from "./faceCaptureManagerFactory-BodYisaN.js";
|
|
3
3
|
|
|
4
4
|
//#region src/modules/authentication/authenticationManager.d.ts
|
|
5
5
|
type AuthenticationState = FaceCaptureManagerState;
|
|
6
6
|
declare function createAuthenticationManagerFromActor(actor: AuthenticationActor): Manager<FaceCaptureManagerState> & {
|
|
7
7
|
load(): void;
|
|
8
|
-
nextStep(): void
|
|
8
|
+
nextStep(): Promise<void>;
|
|
9
9
|
requestPermission(): void;
|
|
10
10
|
goToLearnMore(): void;
|
|
11
11
|
back(): void;
|
|
@@ -52,7 +52,7 @@ declare function createAuthenticationManagerFromActor(actor: AuthenticationActor
|
|
|
52
52
|
*/
|
|
53
53
|
declare function createAuthenticationManager(options: CreateAuthenticationActorOptions): Manager<FaceCaptureManagerState> & {
|
|
54
54
|
load(): void;
|
|
55
|
-
nextStep(): void
|
|
55
|
+
nextStep(): Promise<void>;
|
|
56
56
|
requestPermission(): void;
|
|
57
57
|
goToLearnMore(): void;
|
|
58
58
|
back(): void;
|
package/dist/{authenticationManager-Bm789ZF6.esm.js → authenticationManager-gRC1sCEb.esm.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as WasmUtilProvider } from "./WasmUtilProvider-
|
|
2
|
-
import { n as eventModuleNames } from "./events-
|
|
3
|
-
import { s as createActor } from "./xstate.esm-
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
1
|
+
import { t as WasmUtilProvider } from "./WasmUtilProvider-C3xYpVKR.esm.js";
|
|
2
|
+
import { n as eventModuleNames } from "./events-Dnh2PVAZ.esm.js";
|
|
3
|
+
import { s as createActor } from "./xstate.esm-C_4CL5-u.esm.js";
|
|
4
|
+
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-EtdbBJGr.esm.js";
|
|
5
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-GCqj24xa.esm.js";
|
|
6
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-TIrvdOEV.esm.js";
|
|
7
7
|
|
|
8
8
|
//#region src/modules/authentication/authenticationActor.ts
|
|
9
9
|
function createAuthenticationActor(options) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
2
|
-
import { t as endpoints } from "./endpoints-
|
|
3
|
-
import { t as addDeviceStats } from "./stats-
|
|
4
|
-
import { a as fromPromise, r as assign } from "./xstate.esm-
|
|
5
|
-
import {
|
|
6
|
-
import { t as getDeviceClass } from "./getDeviceClass
|
|
7
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
1
|
+
import { t as api } from "./api-eqRXuVG-.esm.js";
|
|
2
|
+
import { t as endpoints } from "./endpoints-D4cNQqhS.esm.js";
|
|
3
|
+
import { t as addDeviceStats } from "./stats-Dc1nW_Oc.esm.js";
|
|
4
|
+
import { a as fromPromise, r as assign } from "./xstate.esm-C_4CL5-u.esm.js";
|
|
5
|
+
import { b as FACE_ERROR_CODES, d as postOnDeviceFaceResults, f as prepareOnDeviceFaceUpload, l as defaultPrepareFaceUpload, u as isOnDeviceMode } from "./recordingService-DJPyoT4J.esm.js";
|
|
6
|
+
import { t as getDeviceClass } from "./getDeviceClass-B6U_P2pO.esm.js";
|
|
7
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-B9RFaTgo.esm.js";
|
|
8
8
|
|
|
9
9
|
//#region src/modules/authentication/authenticationErrorUtils.ts
|
|
10
10
|
const AUTH_ERROR_MAP = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as isIPhone14OrHigher, o as isSafari, r as isIOS, t as isAndroid } from "./platform-
|
|
2
|
-
import { t as
|
|
3
|
-
import {
|
|
1
|
+
import { a as isIPhone14OrHigher, o as isSafari, r as isIOS, t as isAndroid } from "./platform-Ca6QEq2_.esm.js";
|
|
2
|
+
import { i as stopCameraStream, n as enumerateVideoDevices, r as requestCameraAccess, t as applyTrackConstraints } from "./camera-CUAQ-q4e.esm.js";
|
|
3
|
+
import { t as sleep } from "./ITimerCapability-2pw-S97e.esm.js";
|
|
4
4
|
|
|
5
5
|
//#region src/internal/camera/backCameraStream.ts
|
|
6
6
|
const BACK_CAMERA_KEYWORDS = [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as isIOS } from "./platform-
|
|
2
|
-
import { t as getUserAgent } from "./getBrowser-
|
|
1
|
+
import { r as isIOS } from "./platform-Ca6QEq2_.esm.js";
|
|
2
|
+
import { t as getUserAgent } from "./getBrowser-DHeJ7PSV.esm.js";
|
|
3
3
|
|
|
4
4
|
//#region ../../node_modules/.pnpm/ua-parser-js@2.0.9/node_modules/ua-parser-js/src/main/ua-parser.mjs
|
|
5
5
|
var LIBVERSION = "2.0.9", UA_MAX_LENGTH = 500, USER_AGENT = "user-agent", EMPTY = "", UNKNOWN = "?", TYPEOF = {
|
package/dist/camera.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as PermissionStatus, t as PermissionResult } from "./types-
|
|
1
|
+
import { n as PermissionStatus, t as PermissionResult } from "./types-CL7hCbCA.js";
|
|
2
2
|
|
|
3
3
|
//#region src/internal/permissions/permissionServices.d.ts
|
|
4
4
|
type RequestPermissionOptions = {
|
|
@@ -7,8 +7,9 @@ type RequestPermissionOptions = {
|
|
|
7
7
|
declare function checkPermission(): Promise<PermissionResult>;
|
|
8
8
|
/**
|
|
9
9
|
* Requests camera permission by attempting to access the camera, then immediately
|
|
10
|
-
* stops the obtained stream.
|
|
11
|
-
*
|
|
10
|
+
* stops the obtained stream. When `requestMotion` is true (deepsight), requests
|
|
11
|
+
* motion OS permission, primes WASM sensors, then camera — all in one user gesture
|
|
12
|
+
* chain, matching SDK v1.
|
|
12
13
|
*/
|
|
13
14
|
declare function requestPermission(options?: RequestPermissionOptions): Promise<PermissionResult>;
|
|
14
15
|
//#endregion
|
package/dist/camera.esm.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./MotionSensorProvider-
|
|
3
|
-
import {
|
|
1
|
+
import "./WasmUtilProvider-C3xYpVKR.esm.js";
|
|
2
|
+
import "./MotionSensorProvider-BiZTqw83.esm.js";
|
|
3
|
+
import { i as requestPermission, t as checkPermission } from "./permissionServices-4py90m2a.esm.js";
|
|
4
|
+
import "./camera-CUAQ-q4e.esm.js";
|
|
4
5
|
|
|
5
6
|
export { checkPermission as checkCameraPermission, requestPermission as requestCameraPermission };
|