@incodetech/core 0.0.0-dev-20260218-e020e1c → 0.0.0-dev-20260219-dfbf2ff
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/StateMachine-DKxvdEuI.d.ts +2 -0
- package/dist/authentication.d.ts +4 -3
- package/dist/authentication.esm.js +6 -6
- package/dist/backCameraStream-DhKbn3gt.esm.js +337 -0
- package/dist/curp-validation.d.ts +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{deepsightLoader-Bf15_5Gk.esm.js → deepsightLoader-DRQJKHl8.esm.js} +3 -3
- package/dist/{deepsightService-B3FfuHt1.d.ts → deepsightService-BLejzhoL.d.ts} +1 -79
- package/dist/{deepsightService-jsdRuf0u.esm.js → deepsightService-CZC8YaHN.esm.js} +2 -2
- package/dist/email.esm.js +2 -2
- package/dist/{events-BvAMgEuE.esm.js → events-mFVnFpqq.esm.js} +1 -1
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-1AAwvEWC.d.ts → faceCaptureManagerFactory-BqvUNJXR.d.ts} +4 -2
- package/dist/{faceCaptureSetup-Cz44Uo-J.esm.js → faceCaptureSetup-Bxot-Bxs.esm.js} +8 -7
- package/dist/flow.d.ts +3 -2
- package/dist/flow.esm.js +1 -1
- package/dist/government-validation.esm.js +1 -1
- package/dist/{id-DtrUp5nz.esm.js → id-DHFXeDku.esm.js} +23 -263
- package/dist/id.d.ts +5 -5
- package/dist/id.esm.js +8 -8
- package/dist/{index-DDMN1YD_.d.ts → index-D0Zj8bRR.d.ts} +4 -60
- package/dist/index.d.ts +6 -5
- package/dist/index.esm.js +8 -8
- package/dist/phone.esm.js +2 -2
- package/dist/selfie.d.ts +82 -4
- package/dist/selfie.esm.js +6 -6
- package/dist/{stats-Bv2CLzQ0.esm.js → stats-C0Z_4KzW.esm.js} +1 -1
- package/dist/stats.esm.js +2 -2
- package/dist/{StateMachine-CvjqRbSg.d.ts → warmup-oXQm8EFM.d.ts} +1 -4
- package/package.json +1 -1
- package/dist/streamingEvents-Bl2HRhLD.esm.js +0 -104
- /package/dist/{api-CmRbOLxk.esm.js → api-Cqrn4bGi.esm.js} +0 -0
- /package/dist/{types-DFgUJtIJ.d.ts → types-DeUPfNsF.d.ts} +0 -0
package/dist/selfie.esm.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { d as addEvent, n as eventModuleNames } from "./events-
|
|
1
|
+
import { d as addEvent, n as eventModuleNames } from "./events-mFVnFpqq.esm.js";
|
|
2
|
+
import "./backCameraStream-DhKbn3gt.esm.js";
|
|
2
3
|
import { m as BrowserStorageProvider, r as WasmUtilProvider } from "./src-CKB3MNL0.esm.js";
|
|
3
4
|
import { a as fromPromise, o as createActor, r as assign } from "./endpoints-CAXIQnl3.esm.js";
|
|
4
|
-
import "./
|
|
5
|
-
import "./
|
|
6
|
-
import "./
|
|
7
|
-
import "./
|
|
8
|
-
import { a as FACE_ERROR_CODES, i as uploadSelfie, n as faceCaptureMachine, o as createFaceCaptureManager, r as processFace, t as FACE_CAPTURE_EVENT_CODES } from "./faceCaptureSetup-Cz44Uo-J.esm.js";
|
|
5
|
+
import "./deepsightService-CZC8YaHN.esm.js";
|
|
6
|
+
import "./api-Cqrn4bGi.esm.js";
|
|
7
|
+
import "./stats-C0Z_4KzW.esm.js";
|
|
8
|
+
import { a as FACE_ERROR_CODES, i as uploadSelfie, n as faceCaptureMachine, o as createFaceCaptureManager, r as processFace, t as FACE_CAPTURE_EVENT_CODES } from "./faceCaptureSetup-Bxot-Bxs.esm.js";
|
|
9
9
|
|
|
10
10
|
//#region src/modules/selfie/selfieErrorUtils.ts
|
|
11
11
|
const FACE_ERROR_CODE_VALUES = Object.values(FACE_ERROR_CODES);
|
package/dist/stats.esm.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import { AnyStateMachine, StateMachine } from "xstate";
|
|
2
|
-
|
|
3
1
|
//#region ../infra/src/wasm/warmup.d.ts
|
|
4
|
-
|
|
5
2
|
/**
|
|
6
3
|
* All available ML pipelines in the SDK.
|
|
7
4
|
* - 'selfie' - Face detection for selfie capture
|
|
@@ -55,4 +52,4 @@ interface WarmupConfig {
|
|
|
55
52
|
*/
|
|
56
53
|
declare function warmupWasm(config: WarmupConfig): Promise<void>;
|
|
57
54
|
//#endregion
|
|
58
|
-
export { warmupWasm as
|
|
55
|
+
export { warmupWasm as n, WasmPipeline as t };
|
package/package.json
CHANGED
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { A as getUserAgent, O as getDeviceInfo, T as stopCameraStream, l as MotionSensorProvider, w as requestCameraAccess, y as queryCameraPermission } from "./src-CKB3MNL0.esm.js";
|
|
2
|
-
import { t as endpoints } from "./endpoints-CAXIQnl3.esm.js";
|
|
3
|
-
import { t as api } from "./api-CmRbOLxk.esm.js";
|
|
4
|
-
|
|
5
|
-
//#region src/internal/device/getBrowser.ts
|
|
6
|
-
function getBrowser() {
|
|
7
|
-
const userAgent = getUserAgent();
|
|
8
|
-
if (!userAgent) return "other";
|
|
9
|
-
const ua = userAgent.toLowerCase();
|
|
10
|
-
if (ua.includes("edg/")) return "edge";
|
|
11
|
-
if (ua.includes("chrome") && !ua.includes("edg/")) return "chrome";
|
|
12
|
-
if (ua.includes("firefox")) return "firefox";
|
|
13
|
-
if (ua.includes("safari") && !ua.includes("chrome")) return "safari";
|
|
14
|
-
return "other";
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
//#endregion
|
|
18
|
-
//#region src/internal/device/getDeviceClass.ts
|
|
19
|
-
function getDeviceClass() {
|
|
20
|
-
const { userAgent, platform, maxTouchPoints } = getDeviceInfo();
|
|
21
|
-
if (!userAgent) return "desktop";
|
|
22
|
-
const ua = userAgent.toLowerCase();
|
|
23
|
-
if (/iphone|ipad|ipod/.test(ua) || platform === "MacIntel" && maxTouchPoints > 1) return "ios";
|
|
24
|
-
if (/android/.test(ua)) return "android";
|
|
25
|
-
return "desktop";
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
//#endregion
|
|
29
|
-
//#region src/internal/permissions/permissionServices.ts
|
|
30
|
-
/**
|
|
31
|
-
* Checks the current camera permission state without prompting the user.
|
|
32
|
-
*/
|
|
33
|
-
async function checkPermission() {
|
|
34
|
-
return queryCameraPermission();
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Requests motion sensor permission. Must be called during a user gesture on iOS.
|
|
38
|
-
* Returns the permission result.
|
|
39
|
-
*/
|
|
40
|
-
async function requestMotionPermission() {
|
|
41
|
-
return new MotionSensorProvider().requestPermission();
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Requests camera permission by attempting to access the camera, then immediately
|
|
45
|
-
* stops the obtained stream. Also requests motion sensor permission (required on iOS
|
|
46
|
-
* to be called during a user gesture). This function does not keep or return the stream.
|
|
47
|
-
*/
|
|
48
|
-
async function requestPermission() {
|
|
49
|
-
try {
|
|
50
|
-
await requestMotionPermission();
|
|
51
|
-
stopCameraStream(await requestCameraAccess({ video: true }));
|
|
52
|
-
return "granted";
|
|
53
|
-
} catch (error) {
|
|
54
|
-
const name = error instanceof Error ? error.name : void 0;
|
|
55
|
-
if (name === "NotAllowedError" || name === "PermissionDeniedError") return "denied";
|
|
56
|
-
return "prompt";
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
//#endregion
|
|
61
|
-
//#region src/internal/recordings/recordingsRepository.ts
|
|
62
|
-
async function createRecordingSession(type) {
|
|
63
|
-
return (await api.post(endpoints.recordingCreateSessionV2, { type })).data;
|
|
64
|
-
}
|
|
65
|
-
async function startRecording(params) {
|
|
66
|
-
return (await api.post(endpoints.recordingStartV2, {
|
|
67
|
-
videoRecordingId: params.videoRecordingId,
|
|
68
|
-
frameRate: 30,
|
|
69
|
-
outputMode: "COMPOSED",
|
|
70
|
-
resolution: params.resolution,
|
|
71
|
-
type: params.type,
|
|
72
|
-
hasAudio: params.hasAudio ?? false
|
|
73
|
-
})).data;
|
|
74
|
-
}
|
|
75
|
-
async function stopRecording(videoRecordingId) {
|
|
76
|
-
return (await api.post(endpoints.recordingStopV2, { videoRecordingId })).data;
|
|
77
|
-
}
|
|
78
|
-
async function uploadDeepsightVideo(encryptedVideo, token) {
|
|
79
|
-
try {
|
|
80
|
-
return (await api.post(endpoints.deepsightVideoImport, {
|
|
81
|
-
video: encryptedVideo,
|
|
82
|
-
type: "selfie"
|
|
83
|
-
}, { headers: { "X-Incode-Hardware-Id": token } })).data.recordingId ?? "";
|
|
84
|
-
} catch (error) {
|
|
85
|
-
console.error("Error uploading deepsight video:", error);
|
|
86
|
-
return "";
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
//#endregion
|
|
91
|
-
//#region src/internal/recordings/streamingEvents.ts
|
|
92
|
-
const streamingEvents = {
|
|
93
|
-
strSessionDidConnect: "strSessionDidConnect",
|
|
94
|
-
strSessionDidDisconnect: "strSessionDidDisconnect",
|
|
95
|
-
strSessionDidFailWithError: "strSessionDidFailWithError",
|
|
96
|
-
strStreamVideoCaptureStart: "strStreamVideoCaptureStart",
|
|
97
|
-
strStreamVideoCaptureStop: "strStreamVideoCaptureStop",
|
|
98
|
-
strStreamPublisherCreated: "strStreamPublisherCreated",
|
|
99
|
-
strStreamPublisherDestroyed: "strStreamPublisherDestroyed",
|
|
100
|
-
strStreamPublisherDidFailWithError: "strStreamPublisherDidFailWithError"
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
//#endregion
|
|
104
|
-
export { uploadDeepsightVideo as a, getDeviceClass as c, stopRecording as i, getBrowser as l, createRecordingSession as n, checkPermission as o, startRecording as r, requestPermission as s, streamingEvents as t };
|
|
File without changes
|
|
File without changes
|