@simprints/simface-sdk 0.5.1 → 0.7.1
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/README.md +52 -4
- package/dist/components/simface-capture.d.ts +15 -19
- package/dist/components/simface-capture.js +176 -250
- package/dist/components/simface-capture.js.map +1 -1
- package/dist/index.d.ts +8 -4
- package/dist/index.js +10 -6
- package/dist/index.js.map +1 -1
- package/dist/services/camera.d.ts +8 -12
- package/dist/services/camera.js +240 -339
- package/dist/services/camera.js.map +1 -1
- package/dist/services/face-quality.js +6 -6
- package/dist/services/face-quality.js.map +1 -1
- package/dist/shared/auto-capture.d.ts +7 -0
- package/dist/shared/auto-capture.js +23 -0
- package/dist/shared/auto-capture.js.map +1 -0
- package/dist/shared/capture-flow.d.ts +28 -0
- package/dist/shared/capture-flow.js +61 -0
- package/dist/shared/capture-flow.js.map +1 -0
- package/dist/shared/capture-runtime.d.ts +21 -0
- package/dist/shared/capture-runtime.js +183 -0
- package/dist/shared/capture-runtime.js.map +1 -0
- package/dist/shared/capture-session.d.ts +99 -0
- package/dist/shared/capture-session.js +287 -0
- package/dist/shared/capture-session.js.map +1 -0
- package/dist/simface-sdk.js +2767 -2464
- package/dist/simface-sdk.umd.cjs +37 -37
- package/dist/types/index.d.ts +17 -0
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -24,6 +24,23 @@ export interface VerifyResult {
|
|
|
24
24
|
/** True if the user was not found and enrollment is needed instead. */
|
|
25
25
|
notEnrolled?: boolean;
|
|
26
26
|
}
|
|
27
|
+
export type CapturePresentation = 'popup' | 'embedded';
|
|
28
|
+
export type CapturePreference = 'auto-preferred' | 'manual-only';
|
|
29
|
+
/** Optional capture behavior for SDK convenience APIs and the capture component. */
|
|
30
|
+
export interface SimFaceCaptureOptions {
|
|
31
|
+
/** Whether capture should be shown in a popup/modal flow or in an embedded component. */
|
|
32
|
+
presentation?: CapturePresentation;
|
|
33
|
+
/** Whether auto capture should be preferred when supported, or disabled entirely. */
|
|
34
|
+
capturePreference?: CapturePreference;
|
|
35
|
+
/** Whether the flow may fall back to a media picker if camera capture is unavailable. */
|
|
36
|
+
allowMediaPickerFallback?: boolean;
|
|
37
|
+
/** Host container for embedded capture when using the top-level SDK helpers. */
|
|
38
|
+
container?: HTMLElement | string;
|
|
39
|
+
/** Optional capture label override. */
|
|
40
|
+
label?: string;
|
|
41
|
+
/** Optional confirm button label override. */
|
|
42
|
+
confirmLabel?: string;
|
|
43
|
+
}
|
|
27
44
|
/** Result of API key validation. */
|
|
28
45
|
export interface ValidateResult {
|
|
29
46
|
valid: boolean;
|