@simprints/simface-sdk 0.10.1 → 0.12.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 +171 -98
- package/dist/components/simface-capture.d.ts +5 -0
- package/dist/components/simface-capture.js +61 -36
- package/dist/components/simface-capture.js.map +1 -1
- package/dist/index.d.ts +8 -8
- package/dist/index.js +10 -10
- package/dist/index.js.map +1 -1
- package/dist/services/camera.d.ts +3 -3
- package/dist/services/camera.js +17 -30
- package/dist/services/camera.js.map +1 -1
- package/dist/shared/capture-flow.d.ts +11 -5
- package/dist/shared/capture-flow.js +14 -8
- package/dist/shared/capture-flow.js.map +1 -1
- package/dist/simface-sdk.js +1239 -1225
- package/dist/simface-sdk.umd.cjs +55 -54
- package/dist/types/index.d.ts +16 -11
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -24,22 +24,27 @@ 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
27
|
export type CapturePreference = 'auto-preferred' | 'manual-only';
|
|
29
|
-
/**
|
|
30
|
-
export interface
|
|
31
|
-
/** Whether capture should be shown in a popup/modal flow or in an embedded component. */
|
|
32
|
-
presentation?: CapturePresentation;
|
|
28
|
+
/** Cross-presentation capture behavior for the top-level SDK helpers. */
|
|
29
|
+
export interface SimFaceWorkflowOptions {
|
|
33
30
|
/** Whether auto capture should be preferred when supported, or disabled entirely. */
|
|
34
31
|
capturePreference?: CapturePreference;
|
|
35
32
|
/** Whether the flow may fall back to a media picker if camera capture is unavailable. */
|
|
36
33
|
allowMediaPickerFallback?: boolean;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
34
|
+
}
|
|
35
|
+
/** Public surface of the `simface-capture` element used by the top-level SDK helpers. */
|
|
36
|
+
export interface SimFaceCaptureElement extends HTMLElement {
|
|
37
|
+
embedded: boolean;
|
|
38
|
+
active: boolean;
|
|
39
|
+
label: string;
|
|
40
|
+
idleFeedbackLabel: string;
|
|
41
|
+
confirmLabel: string;
|
|
42
|
+
captureLabel: string;
|
|
43
|
+
retakeLabel: string;
|
|
44
|
+
retryLabel: string;
|
|
45
|
+
capturePreference: CapturePreference;
|
|
46
|
+
allowMediaPickerFallback: boolean;
|
|
47
|
+
startCapture: () => Promise<void>;
|
|
43
48
|
}
|
|
44
49
|
/** Result of API key validation. */
|
|
45
50
|
export interface ValidateResult {
|