@regulaforensics/vp-frontend-face-components 1.4.0 → 2.0.0
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 +47 -22
- package/dist/main.js +1 -1
- package/dist/main.js.LICENSE.txt +19 -20
- package/lib/common/Icon.d.ts +58 -1
- package/lib/common/Message.d.ts +3 -2
- package/lib/common/NoGlareIconLivenessDetection.d.ts +5 -0
- package/lib/common/NoSmilingIconLivenessDetection.d.ts +5 -0
- package/lib/common/PortraitOrientationOnlyIcon.d.ts +6 -0
- package/lib/common/RegulaLogoLivenessDetection.d.ts +5 -0
- package/lib/components/ButtonFaceLiveness.d.ts +7 -0
- package/lib/components/CameraCapture.d.ts +9 -0
- package/lib/components/CameraSnapshot.d.ts +2 -0
- package/lib/components/CameraSnapshotFileCapture.d.ts +10 -0
- package/lib/components/DocumentCapture.d.ts +11 -0
- package/lib/components/DocumentContainer.d.ts +11 -0
- package/lib/components/DocumentReader.d.ts +2 -0
- package/lib/components/DocumentReaderFileCapture.d.ts +12 -0
- package/lib/components/DocumentReaderLayout.d.ts +22 -0
- package/lib/components/DocumentReaderStartScreen.d.ts +10 -0
- package/lib/components/ErrorBoundary.d.ts +6 -5
- package/lib/components/FaceCapture.d.ts +17 -9
- package/lib/components/FaceFullScreenOverlay.d.ts +2 -3
- package/lib/components/FaceHintAnimaition.d.ts +16 -0
- package/lib/components/FaceLayout.d.ts +14 -10
- package/lib/components/InfoScreen.d.ts +2 -1
- package/lib/components/InfoScreenFaceLiveness.d.ts +12 -0
- package/lib/components/InstructionVideoScreen.d.ts +9 -0
- package/lib/components/ProcessScreenFaceLiveness.d.ts +6 -0
- package/lib/components/RetryScreenFaceLiveness.d.ts +7 -0
- package/lib/components/SectorAnimationSvg.d.ts +11 -0
- package/lib/components/WebCamera.d.ts +6 -7
- package/lib/constants.d.ts +489 -169
- package/lib/contexts/DocumentAttributesContext.d.ts +25 -0
- package/lib/contexts/DocumentSDKContext.d.ts +8 -0
- package/lib/contexts/FaceAttributesContext.d.ts +11 -10
- package/lib/hoc/withDocumentAttributesContext.d.ts +4 -0
- package/lib/hoc/withDocumentSDKContext.d.ts +3 -0
- package/lib/hoc/withLocalize.d.ts +5 -4
- package/lib/hooks/useDocumentReaderSeries.d.ts +20 -0
- package/lib/hooks/useDocumentReaderSingle.d.ts +15 -0
- package/lib/hooks/useFaceLiveness.d.ts +34 -26
- package/lib/hooks/useImageInputParam.d.ts +7 -0
- package/lib/hooks/useStateCallback.d.ts +1 -0
- package/lib/hooks/useStream.d.ts +3 -9
- package/lib/i18n/dictionaries/_dictionaries.d.ts +2212 -1988
- package/lib/index-document.d.ts +4 -0
- package/lib/media-resources/resourcesBase64.d.ts +7 -0
- package/lib/models/CameraModel.d.ts +2 -2
- package/lib/models/CustomError.d.ts +7 -0
- package/lib/models/DocReaderWebclient/ext/authenticity/authenticity.d.ts +32 -0
- package/lib/models/DocReaderWebclient/ext/authenticity/fiber.d.ts +7 -0
- package/lib/models/DocReaderWebclient/ext/authenticity/ident.d.ts +8 -0
- package/lib/models/DocReaderWebclient/ext/authenticity/image-ident.d.ts +7 -0
- package/lib/models/DocReaderWebclient/ext/authenticity/index.d.ts +5 -0
- package/lib/models/DocReaderWebclient/ext/authenticity/ocr-security-text.d.ts +7 -0
- package/lib/models/DocReaderWebclient/ext/authenticity/security-feature.d.ts +8 -0
- package/lib/models/DocReaderWebclient/ext/images.d.ts +16 -0
- package/lib/models/DocReaderWebclient/ext/index.d.ts +6 -0
- package/lib/models/DocReaderWebclient/ext/process-request-image.d.ts +5 -0
- package/lib/models/DocReaderWebclient/ext/process-request.d.ts +38 -0
- package/lib/models/DocReaderWebclient/ext/process-response.d.ts +36 -0
- package/lib/models/DocReaderWebclient/ext/text-field.d.ts +40 -0
- package/lib/models/DocReaderWebclient/ext/text.d.ts +14 -0
- package/lib/models/DocReaderWebclient/models/area-array.d.ts +32 -0
- package/lib/models/DocReaderWebclient/models/area-container.d.ts +38 -0
- package/lib/models/DocReaderWebclient/models/authenticity-check-list.d.ts +31 -0
- package/lib/models/DocReaderWebclient/models/authenticity-check-result-item.d.ts +38 -0
- package/lib/models/DocReaderWebclient/models/authenticity-check-result.d.ts +43 -0
- package/lib/models/DocReaderWebclient/models/authenticity-result-all-of.d.ts +25 -0
- package/lib/models/DocReaderWebclient/models/authenticity-result-type.d.ts +33 -0
- package/lib/models/DocReaderWebclient/models/authenticity-result.d.ts +18 -0
- package/lib/models/DocReaderWebclient/models/bc-pdf417-info.d.ts +54 -0
- package/lib/models/DocReaderWebclient/models/bc-roidetect.d.ts +42 -0
- package/lib/models/DocReaderWebclient/models/check-diagnose.d.ts +98 -0
- package/lib/models/DocReaderWebclient/models/check-result.d.ts +30 -0
- package/lib/models/DocReaderWebclient/models/chosen-document-type-result-all-of.d.ts +25 -0
- package/lib/models/DocReaderWebclient/models/chosen-document-type-result.d.ts +19 -0
- package/lib/models/DocReaderWebclient/models/chosen-document-type.d.ts +74 -0
- package/lib/models/DocReaderWebclient/models/container-list.d.ts +45 -0
- package/lib/models/DocReaderWebclient/models/critical.d.ts +26 -0
- package/lib/models/DocReaderWebclient/models/cross-source-value-comparison.d.ts +38 -0
- package/lib/models/DocReaderWebclient/models/data-module.d.ts +48 -0
- package/lib/models/DocReaderWebclient/models/details-optical.d.ts +67 -0
- package/lib/models/DocReaderWebclient/models/details-rfid.d.ts +61 -0
- package/lib/models/DocReaderWebclient/models/device-info.d.ts +54 -0
- package/lib/models/DocReaderWebclient/models/doc-bar-code-info-all-of.d.ts +31 -0
- package/lib/models/DocReaderWebclient/models/doc-bar-code-info.d.ts +19 -0
- package/lib/models/DocReaderWebclient/models/doc-visual-extended-field.d.ts +70 -0
- package/lib/models/DocReaderWebclient/models/doc-visual-extended-info.d.ts +25 -0
- package/lib/models/DocReaderWebclient/models/document-format.d.ts +70 -0
- package/lib/models/DocReaderWebclient/models/document-image-result-all-of.d.ts +25 -0
- package/lib/models/DocReaderWebclient/models/document-image-result.d.ts +18 -0
- package/lib/models/DocReaderWebclient/models/document-image.d.ts +24 -0
- package/lib/models/DocReaderWebclient/models/document-position-result-all-of.d.ts +25 -0
- package/lib/models/DocReaderWebclient/models/document-position-result.d.ts +19 -0
- package/lib/models/DocReaderWebclient/models/document-position.d.ts +80 -0
- package/lib/models/DocReaderWebclient/models/document-type-recognition-result.d.ts +30 -0
- package/lib/models/DocReaderWebclient/models/document-type.d.ts +246 -0
- package/lib/models/DocReaderWebclient/models/document-types-candidates-list.d.ts +32 -0
- package/lib/models/DocReaderWebclient/models/document-types-candidates-result-all-of.d.ts +25 -0
- package/lib/models/DocReaderWebclient/models/document-types-candidates-result.d.ts +18 -0
- package/lib/models/DocReaderWebclient/models/document-types-candidates.d.ts +32 -0
- package/lib/models/DocReaderWebclient/models/encrypted-rclresult-all-of.d.ts +24 -0
- package/lib/models/DocReaderWebclient/models/encrypted-rclresult.d.ts +18 -0
- package/lib/models/DocReaderWebclient/models/fdsidlist.d.ts +80 -0
- package/lib/models/DocReaderWebclient/models/fiber-result-all-of.d.ts +74 -0
- package/lib/models/DocReaderWebclient/models/fiber-result.d.ts +18 -0
- package/lib/models/DocReaderWebclient/models/graphic-field-type.d.ts +118 -0
- package/lib/models/DocReaderWebclient/models/graphic-field.d.ts +63 -0
- package/lib/models/DocReaderWebclient/models/graphic-fields-list.d.ts +25 -0
- package/lib/models/DocReaderWebclient/models/graphics-result-all-of.d.ts +25 -0
- package/lib/models/DocReaderWebclient/models/graphics-result.d.ts +19 -0
- package/lib/models/DocReaderWebclient/models/ident-result-all-of.d.ts +65 -0
- package/lib/models/DocReaderWebclient/models/ident-result.d.ts +18 -0
- package/lib/models/DocReaderWebclient/models/image-data.d.ts +24 -0
- package/lib/models/DocReaderWebclient/models/image-qa.d.ts +54 -0
- package/lib/models/DocReaderWebclient/models/image-quality-check-list.d.ts +32 -0
- package/lib/models/DocReaderWebclient/models/image-quality-check-type.d.ts +50 -0
- package/lib/models/DocReaderWebclient/models/image-quality-check.d.ts +64 -0
- package/lib/models/DocReaderWebclient/models/image-quality-result-all-of.d.ts +25 -0
- package/lib/models/DocReaderWebclient/models/image-quality-result.d.ts +18 -0
- package/lib/models/DocReaderWebclient/models/images-available-source.d.ts +31 -0
- package/lib/models/DocReaderWebclient/models/images-field-value.d.ts +70 -0
- package/lib/models/DocReaderWebclient/models/images-field.d.ts +38 -0
- package/lib/models/DocReaderWebclient/models/images-result-all-of.d.ts +25 -0
- package/lib/models/DocReaderWebclient/models/images-result.d.ts +18 -0
- package/lib/models/DocReaderWebclient/models/images.d.ts +32 -0
- package/lib/models/DocReaderWebclient/models/index.d.ts +123 -0
- package/lib/models/DocReaderWebclient/models/lcid.d.ts +582 -0
- package/lib/models/DocReaderWebclient/models/lexical-analysis-result-all-of.d.ts +25 -0
- package/lib/models/DocReaderWebclient/models/lexical-analysis-result.d.ts +19 -0
- package/lib/models/DocReaderWebclient/models/license-result-all-of.d.ts +24 -0
- package/lib/models/DocReaderWebclient/models/license-result.d.ts +18 -0
- package/lib/models/DocReaderWebclient/models/light.d.ts +34 -0
- package/lib/models/DocReaderWebclient/models/list-verified-fields.d.ts +25 -0
- package/lib/models/DocReaderWebclient/models/log-level.d.ts +23 -0
- package/lib/models/DocReaderWebclient/models/measure-system.d.ts +26 -0
- package/lib/models/DocReaderWebclient/models/mrzformat.d.ts +24 -0
- package/lib/models/DocReaderWebclient/models/ocrsecurity-text-result-all-of.d.ts +81 -0
- package/lib/models/DocReaderWebclient/models/ocrsecurity-text-result.d.ts +18 -0
- package/lib/models/DocReaderWebclient/models/one-candidate.d.ts +74 -0
- package/lib/models/DocReaderWebclient/models/original-symbol.d.ts +37 -0
- package/lib/models/DocReaderWebclient/models/parray-field.d.ts +81 -0
- package/lib/models/DocReaderWebclient/models/per-document-config.d.ts +30 -0
- package/lib/models/DocReaderWebclient/models/photo-ident-result-all-of.d.ts +76 -0
- package/lib/models/DocReaderWebclient/models/photo-ident-result.d.ts +18 -0
- package/lib/models/DocReaderWebclient/models/point-array.d.ts +25 -0
- package/lib/models/DocReaderWebclient/models/point.d.ts +30 -0
- package/lib/models/DocReaderWebclient/models/points-container.d.ts +31 -0
- package/lib/models/DocReaderWebclient/models/process-params.d.ts +254 -0
- package/lib/models/DocReaderWebclient/models/process-request-image.d.ts +38 -0
- package/lib/models/DocReaderWebclient/models/process-request.d.ts +60 -0
- package/lib/models/DocReaderWebclient/models/process-response.d.ts +66 -0
- package/lib/models/DocReaderWebclient/models/process-system-info.d.ts +30 -0
- package/lib/models/DocReaderWebclient/models/processing-status.d.ts +30 -0
- package/lib/models/DocReaderWebclient/models/raw-image-container-list.d.ts +31 -0
- package/lib/models/DocReaderWebclient/models/rectangle-coordinates.d.ts +42 -0
- package/lib/models/DocReaderWebclient/models/result-item.d.ts +48 -0
- package/lib/models/DocReaderWebclient/models/result.d.ts +98 -0
- package/lib/models/DocReaderWebclient/models/rfid-location.d.ts +30 -0
- package/lib/models/DocReaderWebclient/models/rfid-origin.d.ts +42 -0
- package/lib/models/DocReaderWebclient/models/scenario.d.ts +36 -0
- package/lib/models/DocReaderWebclient/models/security-feature-result-all-of.d.ts +59 -0
- package/lib/models/DocReaderWebclient/models/security-feature-result.d.ts +18 -0
- package/lib/models/DocReaderWebclient/models/security-feature-type.d.ts +49 -0
- package/lib/models/DocReaderWebclient/models/source-validity.d.ts +32 -0
- package/lib/models/DocReaderWebclient/models/source.d.ts +23 -0
- package/lib/models/DocReaderWebclient/models/status-result-all-of.d.ts +25 -0
- package/lib/models/DocReaderWebclient/models/status-result.d.ts +18 -0
- package/lib/models/DocReaderWebclient/models/status.d.ts +63 -0
- package/lib/models/DocReaderWebclient/models/string-recognition-result.d.ts +25 -0
- package/lib/models/DocReaderWebclient/models/symbol-candidate.d.ts +30 -0
- package/lib/models/DocReaderWebclient/models/symbol-recognition-result.d.ts +32 -0
- package/lib/models/DocReaderWebclient/models/text-available-source.d.ts +38 -0
- package/lib/models/DocReaderWebclient/models/text-data-result-all-of.d.ts +25 -0
- package/lib/models/DocReaderWebclient/models/text-data-result.d.ts +19 -0
- package/lib/models/DocReaderWebclient/models/text-field-type.d.ts +2386 -0
- package/lib/models/DocReaderWebclient/models/text-field-value.d.ts +70 -0
- package/lib/models/DocReaderWebclient/models/text-field.d.ts +84 -0
- package/lib/models/DocReaderWebclient/models/text-post-processing.d.ts +22 -0
- package/lib/models/DocReaderWebclient/models/text-result-all-of.d.ts +25 -0
- package/lib/models/DocReaderWebclient/models/text-result.d.ts +18 -0
- package/lib/models/DocReaderWebclient/models/text.d.ts +51 -0
- package/lib/models/DocReaderWebclient/models/transaction-info.d.ts +42 -0
- package/lib/models/DocReaderWebclient/models/verification-result.d.ts +38 -0
- package/lib/models/DocReaderWebclient/models/verified-field-map.d.ts +63 -0
- package/lib/models/DocReaderWebclient/models/visibility.d.ts +23 -0
- package/lib/services/DebugService.d.ts +4 -0
- package/lib/services/DocumentReaderProcessor.d.ts +50 -0
- package/lib/services/DocumentReaderService.d.ts +48 -30
- package/lib/services/FaceLivenessService.d.ts +35 -19
- package/lib/services/FaceService.d.ts +34 -6
- package/lib/services/StreamRecorderService.d.ts +24 -0
- package/lib/types.d.ts +261 -119
- package/lib/utils.d.ts +17 -52
- package/lib/web-components/CameraSnapshot.d.ts +14 -0
- package/lib/web-components/DocumentReader.d.ts +14 -0
- package/lib/web-components/FaceDetection.d.ts +3 -3
- package/lib/web-components/FaceLiveness.d.ts +7 -4
- package/lib/web-components/FullScreenContainer.d.ts +1 -1
- package/package.json +59 -62
- package/lib/common/InstructionIconFaceDetection.d.ts +0 -5
- package/lib/common/InstructionIconFaceLiveness.d.ts +0 -5
- package/lib/common/NoGlareIcon.d.ts +0 -5
- package/lib/common/NoSmilingIcon.d.ts +0 -5
- package/lib/components/InstructionScreen.d.ts +0 -9
- package/lib/components/RetryScreen.d.ts +0 -7
- package/lib/hooks/useDebounce.d.ts +0 -2
- package/lib/hooks/useInterval.d.ts +0 -3
- package/lib/services/WasmFeatureDetectService.d.ts +0 -4
- package/lib/web-components.d.ts +0 -47
|
@@ -1,11 +1,39 @@
|
|
|
1
|
-
import { FaceLivenessResultType } from '../types';
|
|
2
|
-
|
|
1
|
+
import { ConfigLivenessParams, FaceLivenessResultType } from '../types';
|
|
2
|
+
import CameraModel from '../models/CameraModel';
|
|
3
|
+
declare type GetLivenessDetectionResultOptions = {
|
|
4
|
+
transactionId: string;
|
|
3
5
|
backendURL?: string;
|
|
4
|
-
uuid: string;
|
|
5
|
-
try_id: number;
|
|
6
6
|
headers?: Record<string, string>;
|
|
7
|
-
|
|
7
|
+
publicKey: string;
|
|
8
|
+
};
|
|
9
|
+
declare type DeviceMetadata = {
|
|
10
|
+
platform: string;
|
|
11
|
+
osVersion: string;
|
|
12
|
+
sdkVersion: string;
|
|
13
|
+
hostAppId: string;
|
|
14
|
+
deviceModel: string;
|
|
15
|
+
currentCameraId: string;
|
|
16
|
+
cameraState: CameraModel[];
|
|
17
|
+
};
|
|
18
|
+
declare type InitializedFaceLivenessDataResult = {
|
|
19
|
+
config: ConfigLivenessParams;
|
|
20
|
+
metadata: {
|
|
21
|
+
ctx: {
|
|
22
|
+
userIp: string;
|
|
23
|
+
};
|
|
24
|
+
serverTime: string;
|
|
25
|
+
};
|
|
26
|
+
publicKey: string;
|
|
27
|
+
schema: string;
|
|
28
|
+
sessionId: string;
|
|
29
|
+
transactionId: string;
|
|
30
|
+
};
|
|
31
|
+
declare function getLivenessDetectionResult(encryptedBody: Uint8Array, { transactionId, backendURL, headers, publicKey }: GetLivenessDetectionResultOptions): Promise<FaceLivenessResultType>;
|
|
32
|
+
declare function getInitialisingData(deviceMetadata: DeviceMetadata, sessionId?: string, backendUrl?: string): Promise<InitializedFaceLivenessDataResult>;
|
|
33
|
+
declare function sendVideoData(data: Uint8Array, transactionId: string, backendURL?: string, tag?: string): Promise<void>;
|
|
8
34
|
declare const _default: {
|
|
9
|
-
|
|
35
|
+
getInitialisingData: typeof getInitialisingData;
|
|
36
|
+
getLivenessDetectionResult: typeof getLivenessDetectionResult;
|
|
37
|
+
sendVideoData: typeof sendVideoData;
|
|
10
38
|
};
|
|
11
39
|
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { VideoFinishStatus } from '../constants';
|
|
2
|
+
declare class StreamRecorderService {
|
|
3
|
+
private chunks;
|
|
4
|
+
private recorder;
|
|
5
|
+
private mimeType;
|
|
6
|
+
private transactionId;
|
|
7
|
+
private debug;
|
|
8
|
+
private backendUrl;
|
|
9
|
+
private finishStatus;
|
|
10
|
+
constructor();
|
|
11
|
+
init(stream: MediaStream): void;
|
|
12
|
+
setParameters({ debug, backendUrl, transactionId, }: {
|
|
13
|
+
debug: boolean | undefined;
|
|
14
|
+
backendUrl: string | undefined;
|
|
15
|
+
transactionId: string;
|
|
16
|
+
}): void;
|
|
17
|
+
setFinishStatus(status: VideoFinishStatus): void;
|
|
18
|
+
stopRecord(): void;
|
|
19
|
+
private errorHandle;
|
|
20
|
+
private setChunk;
|
|
21
|
+
private sendFile;
|
|
22
|
+
}
|
|
23
|
+
declare const _default: StreamRecorderService;
|
|
24
|
+
export default _default;
|
package/lib/types.d.ts
CHANGED
|
@@ -1,34 +1,86 @@
|
|
|
1
|
-
import { Response } from '
|
|
2
|
-
import
|
|
1
|
+
import { Response } from './models/DocReaderWebclient/ext';
|
|
2
|
+
import dictionaries from './i18n/dictionaries/_dictionaries';
|
|
3
|
+
import { DocumentEventActions, FaceEventActions, InternalScenarios, ResponseCode, StreamStatus, ErrorTypes, CameraFacingMode } from './constants';
|
|
3
4
|
import CameraModel from './models/CameraModel';
|
|
5
|
+
export declare type DocumentTranslations = {
|
|
6
|
+
scanIDInBrowser?: string;
|
|
7
|
+
useYourDeviceCamera?: string;
|
|
8
|
+
success?: string;
|
|
9
|
+
processingFinished?: string;
|
|
10
|
+
largeFile?: string;
|
|
11
|
+
selectSmallerFile?: string;
|
|
12
|
+
versionNotSupported?: string;
|
|
13
|
+
updateBrowser?: string;
|
|
14
|
+
licenseError?: string;
|
|
15
|
+
licenseExpired?: string;
|
|
16
|
+
fileCorrupt?: string;
|
|
17
|
+
selectAnotherFile?: string;
|
|
18
|
+
timeout?: string;
|
|
19
|
+
error?: string;
|
|
20
|
+
somethingWentWrong?: string;
|
|
21
|
+
tryAgain?: string;
|
|
22
|
+
fromCamera?: string;
|
|
23
|
+
fromGallery?: string;
|
|
24
|
+
processing?: string;
|
|
25
|
+
preparingService?: string;
|
|
26
|
+
detectingDocument?: string;
|
|
27
|
+
placeDocumentIntoFrame?: string;
|
|
28
|
+
positionDocumentCenter?: string;
|
|
29
|
+
noFocus?: string;
|
|
30
|
+
moveCloser?: string;
|
|
31
|
+
glaresOnDocument?: string;
|
|
32
|
+
holdDocumentStraight?: string;
|
|
33
|
+
documentProcessing?: string;
|
|
34
|
+
flipDocument?: string;
|
|
35
|
+
cameraUnavailable?: string;
|
|
36
|
+
preparingCamera?: string;
|
|
37
|
+
noCameraAvailable?: string;
|
|
38
|
+
incorrectCameraId?: string;
|
|
39
|
+
allowAccessToCamera?: string;
|
|
40
|
+
cameraConnection?: string;
|
|
41
|
+
checkCameraId?: string;
|
|
42
|
+
verified?: string;
|
|
43
|
+
photoCapturedSuccessfully?: string;
|
|
44
|
+
uploadPhoto?: string;
|
|
45
|
+
useCameraOrGallery?: string;
|
|
46
|
+
};
|
|
47
|
+
export declare type Locales = keyof typeof dictionaries | string;
|
|
48
|
+
export declare type DocumentDictionaries = Partial<Record<Locales, DocumentTranslations>>;
|
|
49
|
+
export declare type XY = {
|
|
50
|
+
x: number;
|
|
51
|
+
y: number;
|
|
52
|
+
};
|
|
53
|
+
export declare type Oval = {
|
|
54
|
+
axisX: number;
|
|
55
|
+
axisY: number;
|
|
56
|
+
center: XY;
|
|
57
|
+
};
|
|
4
58
|
export declare type FrameObject = {
|
|
5
59
|
left: number;
|
|
6
60
|
top: number;
|
|
7
61
|
width: number;
|
|
8
62
|
height: number;
|
|
9
63
|
};
|
|
64
|
+
export declare type WidthAndHeight = {
|
|
65
|
+
width: number;
|
|
66
|
+
height: number;
|
|
67
|
+
};
|
|
10
68
|
export declare type VideoParamsType = {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
};
|
|
15
|
-
videoContainerParams: {
|
|
16
|
-
width: number;
|
|
17
|
-
height: number;
|
|
18
|
-
};
|
|
69
|
+
videoElement: HTMLVideoElement | null;
|
|
70
|
+
videoParams: WidthAndHeight;
|
|
71
|
+
videoContainerParams: WidthAndHeight;
|
|
19
72
|
};
|
|
20
|
-
export declare type FacingModeType =
|
|
73
|
+
export declare type FacingModeType = keyof typeof CameraFacingMode;
|
|
21
74
|
export declare type VideoStatusParamsType = {
|
|
22
|
-
videoStatus:
|
|
23
|
-
camera:
|
|
24
|
-
twoFacingModesAvailable: boolean;
|
|
75
|
+
videoStatus: StreamStatus;
|
|
76
|
+
camera: CameraTypes;
|
|
25
77
|
};
|
|
26
78
|
export declare type CaptureFrameType = {
|
|
27
|
-
|
|
79
|
+
imageData: Array<ImageData>;
|
|
28
80
|
raw: string;
|
|
29
81
|
mimeType: string;
|
|
30
82
|
};
|
|
31
|
-
export declare type CaptureType = Array<Omit<CaptureFrameType, '
|
|
83
|
+
export declare type CaptureType = Array<Omit<CaptureFrameType, 'imageData'>>;
|
|
32
84
|
export declare type CodeType = {
|
|
33
85
|
code: number;
|
|
34
86
|
images?: null;
|
|
@@ -46,97 +98,73 @@ export declare type UserAgentType = {
|
|
|
46
98
|
vendor: string;
|
|
47
99
|
vendorSub: string;
|
|
48
100
|
};
|
|
49
|
-
declare type
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
101
|
+
export declare type ConfigLivenessParams = {
|
|
102
|
+
ballSmoothingWeight: number;
|
|
103
|
+
circleRadiusToMinDim: number;
|
|
104
|
+
compressDepthMap: boolean;
|
|
105
|
+
debugOutput: boolean | undefined;
|
|
106
|
+
depthMapBits: number;
|
|
107
|
+
distNormalMaxDeviation: number;
|
|
108
|
+
dontShowReadinessTimeoutMs: number;
|
|
109
|
+
faceBestHeight: number;
|
|
110
|
+
fitFaceMultNear: number;
|
|
111
|
+
frameHeight: number;
|
|
112
|
+
frameWidth: number;
|
|
113
|
+
holdStillNearTimeoutMs: number;
|
|
114
|
+
holdStillNormalTimeoutMs: number;
|
|
115
|
+
maxPitchNear: number;
|
|
116
|
+
maxPitchNormal: number;
|
|
117
|
+
maxRollNormal: number;
|
|
118
|
+
maxYawNear: number;
|
|
119
|
+
maxYawNormal: number;
|
|
120
|
+
minReadinessNear: number;
|
|
121
|
+
minReadinessNormal: number;
|
|
122
|
+
moveAwayMultNear: number;
|
|
123
|
+
moveCloserMultNear: number;
|
|
124
|
+
nearTimeoutMs: number;
|
|
125
|
+
normalTimeoutMs: number;
|
|
126
|
+
numChannels: number;
|
|
127
|
+
numSectors: number;
|
|
128
|
+
pin: number[];
|
|
129
|
+
resizedFrameHeight: number;
|
|
130
|
+
resizedFrameWidth: number;
|
|
131
|
+
scenario: number;
|
|
132
|
+
showGraySectors: boolean;
|
|
133
|
+
showHintDurationMs: number;
|
|
134
|
+
showHintTimeoutMs: number;
|
|
135
|
+
sizeNormalMaxDeviation: number;
|
|
136
|
+
targetSectorRelChange: number;
|
|
137
|
+
};
|
|
138
|
+
export declare type FaceLivenessResultType = {
|
|
70
139
|
code: number;
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
faceIdx: number;
|
|
74
|
-
livenessStatus: number;
|
|
75
|
-
metadata: {
|
|
76
|
-
ageNear: string;
|
|
77
|
-
ageNormal: string;
|
|
78
|
-
distance: number;
|
|
79
|
-
evaluationTime: number;
|
|
80
|
-
eyesNear: FaceLivenessEyesType;
|
|
81
|
-
eyesNormal: FaceLivenessEyesType;
|
|
82
|
-
faceQuality: {
|
|
83
|
-
details: Array<{
|
|
84
|
-
attribute: string;
|
|
85
|
-
score: number;
|
|
86
|
-
}>;
|
|
87
|
-
score: number;
|
|
88
|
-
};
|
|
89
|
-
faceTrackBreak: number;
|
|
90
|
-
occlusionNear: FaceLivenessOcclusionType;
|
|
91
|
-
occlusionNormal: FaceLivenessOcclusionType;
|
|
92
|
-
predArtMaskNear: number;
|
|
93
|
-
predArtMaskNormal: number;
|
|
94
|
-
predElectronicDeviceNear: number;
|
|
95
|
-
predElectronicDeviceNormal: number;
|
|
96
|
-
predGeometryClassifier: number;
|
|
97
|
-
predLivenessViewNear: number;
|
|
98
|
-
predLivenessViewNormal: number;
|
|
99
|
-
predOpticalFlow: number;
|
|
100
|
-
predShadesNear: number;
|
|
101
|
-
predShadesNormal: number;
|
|
102
|
-
predTotal: number;
|
|
103
|
-
probArtMaskNear: number;
|
|
104
|
-
probArtMaskNormal: number;
|
|
105
|
-
probElectronicDeviceNear: number;
|
|
106
|
-
probElectronicDeviceNormal: number;
|
|
107
|
-
probGeometryClassifier: number;
|
|
108
|
-
probOpticalFlow: number;
|
|
109
|
-
probShadesNear: number;
|
|
110
|
-
probShadesNormal: number;
|
|
111
|
-
qualityNear: FaceLivenessQualityType;
|
|
112
|
-
qualityNormal: FaceLivenessQualityType;
|
|
113
|
-
smileNear: string;
|
|
114
|
-
smileNormal: string;
|
|
115
|
-
symNear: number;
|
|
116
|
-
symNormal: number;
|
|
117
|
-
};
|
|
140
|
+
metadata: {
|
|
141
|
+
[key: string]: any;
|
|
118
142
|
};
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
143
|
+
sessionId: string;
|
|
144
|
+
status: number;
|
|
145
|
+
transactionId: string;
|
|
122
146
|
};
|
|
123
|
-
export declare type
|
|
124
|
-
|
|
125
|
-
code: number;
|
|
147
|
+
export declare type FaceLivenessResponseType = FaceLivenessResultType & {
|
|
148
|
+
images: Array<string>;
|
|
126
149
|
};
|
|
127
150
|
export declare type FaceDetectionResponseType = {
|
|
128
151
|
capture: Array<string>;
|
|
129
152
|
};
|
|
130
|
-
export declare type DocumentReaderResponseType = Response
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
153
|
+
export declare type DocumentReaderResponseType = Response;
|
|
154
|
+
export declare type CameraSnapshotResponseType = CaptureType;
|
|
155
|
+
export declare type FaceDebugOutput = {
|
|
156
|
+
cft: boolean;
|
|
157
|
+
face: {
|
|
158
|
+
height: number;
|
|
159
|
+
landmarks: Array<XY>;
|
|
160
|
+
pitch: number;
|
|
161
|
+
roll: number;
|
|
162
|
+
width: number;
|
|
163
|
+
x: number;
|
|
164
|
+
y: number;
|
|
165
|
+
yaw: number;
|
|
166
|
+
};
|
|
167
|
+
target: Oval;
|
|
140
168
|
};
|
|
141
169
|
export declare type ScenarioParamsType = {
|
|
142
170
|
UVTorch?: number;
|
|
@@ -157,14 +185,6 @@ export declare type ScenarioParamsType = {
|
|
|
157
185
|
export declare type InitDataType = {
|
|
158
186
|
scenario: Array<ScenarioParamsType>;
|
|
159
187
|
};
|
|
160
|
-
export declare type UserFrameType = {
|
|
161
|
-
frameBottom: number;
|
|
162
|
-
frameLeft: number;
|
|
163
|
-
frameRight: number;
|
|
164
|
-
frameTop: number;
|
|
165
|
-
width: number;
|
|
166
|
-
height: number;
|
|
167
|
-
};
|
|
168
188
|
export declare type ImageInputParamType = {
|
|
169
189
|
frameBottom: number;
|
|
170
190
|
frameLeft: number;
|
|
@@ -173,10 +193,6 @@ export declare type ImageInputParamType = {
|
|
|
173
193
|
light: number;
|
|
174
194
|
resolutionType: number;
|
|
175
195
|
};
|
|
176
|
-
export declare type FrameParamsType = {
|
|
177
|
-
userFrame: UserFrameType;
|
|
178
|
-
serviceFrame: ImageInputParamType;
|
|
179
|
-
} | null;
|
|
180
196
|
export declare type ImageQualityCheck = {
|
|
181
197
|
featureType: number;
|
|
182
198
|
mean: number;
|
|
@@ -203,8 +219,8 @@ export declare type SupportedBrowserVersionsByOsType = {
|
|
|
203
219
|
desktop: SupportedBrowserVersions;
|
|
204
220
|
};
|
|
205
221
|
declare type CustomEventDataType<R> = {
|
|
206
|
-
status:
|
|
207
|
-
reason?:
|
|
222
|
+
status: ResponseCode;
|
|
223
|
+
reason?: keyof typeof ErrorTypes;
|
|
208
224
|
response?: R;
|
|
209
225
|
};
|
|
210
226
|
interface DetailEvent<A, R> {
|
|
@@ -212,8 +228,134 @@ interface DetailEvent<A, R> {
|
|
|
212
228
|
action: A;
|
|
213
229
|
data: CustomEventDataType<R> | null;
|
|
214
230
|
}
|
|
215
|
-
export declare type FaceLivenessDetailType = DetailEvent<
|
|
216
|
-
export declare type FaceCaptureDetailType = DetailEvent<
|
|
217
|
-
export declare type DocumentReaderDetailType = DetailEvent<
|
|
218
|
-
export declare type CameraSnapshotDetailType = DetailEvent<
|
|
219
|
-
export {
|
|
231
|
+
export declare type FaceLivenessDetailType = DetailEvent<FaceEventActions, FaceLivenessResponseType>;
|
|
232
|
+
export declare type FaceCaptureDetailType = DetailEvent<FaceEventActions, FaceDetectionResponseType>;
|
|
233
|
+
export declare type DocumentReaderDetailType = DetailEvent<DocumentEventActions, DocumentReaderResponseType>;
|
|
234
|
+
export declare type CameraSnapshotDetailType = DetailEvent<DocumentEventActions, CameraSnapshotResponseType>;
|
|
235
|
+
export declare type DocumentReaderImage = {
|
|
236
|
+
data: string;
|
|
237
|
+
light: number;
|
|
238
|
+
pageIdx: number;
|
|
239
|
+
};
|
|
240
|
+
export declare type DocumentReaderProcessParam = {
|
|
241
|
+
returnPackageForReprocess?: boolean;
|
|
242
|
+
returnUncroppedImage?: boolean;
|
|
243
|
+
scenario?: keyof typeof InternalScenarios;
|
|
244
|
+
multipageProcessing?: boolean;
|
|
245
|
+
timeout?: number;
|
|
246
|
+
timeoutFromFirstDetect?: number;
|
|
247
|
+
timeoutFromFirstDocType?: number;
|
|
248
|
+
resultTypeOutput?: Array<string>;
|
|
249
|
+
customParams?: Record<string, any>;
|
|
250
|
+
imageOutputMaxHeight?: number;
|
|
251
|
+
imageOutputMaxWidth?: number;
|
|
252
|
+
doublePageSpread?: boolean;
|
|
253
|
+
generateDoublePageSpreadImage?: boolean;
|
|
254
|
+
fieldTypesFilter?: Array<number>;
|
|
255
|
+
dateFormat?: string;
|
|
256
|
+
measureSystem?: number;
|
|
257
|
+
imageDpiOutMax?: number;
|
|
258
|
+
alreadyCropped?: boolean;
|
|
259
|
+
fastDocDetect?: boolean;
|
|
260
|
+
updateOCRValidityByGlare?: boolean;
|
|
261
|
+
returnCroppedBarcode?: boolean;
|
|
262
|
+
respectImageQuality?: boolean;
|
|
263
|
+
forceDocFormat?: number;
|
|
264
|
+
noGraphics?: boolean;
|
|
265
|
+
documentAreaMin?: number;
|
|
266
|
+
depersonalizeLog?: boolean;
|
|
267
|
+
multiDocOnImage?: boolean;
|
|
268
|
+
shiftExpiryDate?: number;
|
|
269
|
+
minimalHolderAge?: number;
|
|
270
|
+
mrzFormatsFilter?: Array<string>;
|
|
271
|
+
forceReadMrzBeforeLocate?: boolean;
|
|
272
|
+
parseBarcodes?: boolean;
|
|
273
|
+
splitNames?: boolean;
|
|
274
|
+
imageQa?: {
|
|
275
|
+
expectedPass?: Array<string>;
|
|
276
|
+
dpiThreshold?: number;
|
|
277
|
+
glaresCheck?: boolean;
|
|
278
|
+
glaresCheckParams?: {
|
|
279
|
+
imgMarginPart?: number;
|
|
280
|
+
maxGlaringPart?: number;
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
};
|
|
284
|
+
export declare type ProcessingRequest = {
|
|
285
|
+
processParam: DocumentReaderProcessParam;
|
|
286
|
+
imagesList?: Array<DocumentReaderImage>;
|
|
287
|
+
imageInputParam?: ImageInputParamType;
|
|
288
|
+
};
|
|
289
|
+
export declare type ImageProcessingRequest = {
|
|
290
|
+
processParam: Pick<DocumentReaderProcessParam, 'returnPackageForReprocess' | 'returnUncroppedImage' | 'scenario'>;
|
|
291
|
+
};
|
|
292
|
+
export declare type DevicesType = {
|
|
293
|
+
videoDevices: Array<MediaDeviceInfo>;
|
|
294
|
+
isCameraAllowed: boolean;
|
|
295
|
+
};
|
|
296
|
+
export interface StreamDataType {
|
|
297
|
+
status: StreamStatus;
|
|
298
|
+
stream: MediaStream | null;
|
|
299
|
+
camera: CameraTypes;
|
|
300
|
+
}
|
|
301
|
+
export declare type StreamParams = {
|
|
302
|
+
cameraMode: FacingModeType;
|
|
303
|
+
preferredCameraId: string;
|
|
304
|
+
resolution: WidthAndHeight;
|
|
305
|
+
};
|
|
306
|
+
export declare type CameraTypes = {
|
|
307
|
+
selectedCamera: CameraModel;
|
|
308
|
+
frontCameras: Array<CameraModel>;
|
|
309
|
+
backCameras: Array<CameraModel>;
|
|
310
|
+
};
|
|
311
|
+
export declare type CurrentPage = {
|
|
312
|
+
data: Response | null;
|
|
313
|
+
startNextPage: () => Promise<void>;
|
|
314
|
+
finishRecognition: () => void;
|
|
315
|
+
};
|
|
316
|
+
declare global {
|
|
317
|
+
interface HTMLElementEventMap {
|
|
318
|
+
'face-liveness': CustomEvent<FaceLivenessDetailType>;
|
|
319
|
+
'face-capture': CustomEvent<FaceCaptureDetailType>;
|
|
320
|
+
'document-reader': CustomEvent<DocumentReaderDetailType>;
|
|
321
|
+
'camera-snapshot': CustomEvent<CameraSnapshotDetailType>;
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
interface IBaseComponent {
|
|
325
|
+
locale?: Locales;
|
|
326
|
+
copyright?: boolean;
|
|
327
|
+
'camera-id'?: string;
|
|
328
|
+
'change-camera'?: boolean;
|
|
329
|
+
'start-screen'?: boolean;
|
|
330
|
+
}
|
|
331
|
+
interface IDocumentBaseComponent extends IBaseComponent {
|
|
332
|
+
'start-screen'?: boolean;
|
|
333
|
+
multiple?: boolean;
|
|
334
|
+
}
|
|
335
|
+
export interface IFaceLiveness extends IBaseComponent {
|
|
336
|
+
url?: string;
|
|
337
|
+
debug?: boolean;
|
|
338
|
+
}
|
|
339
|
+
export interface IDocumentReader extends IDocumentBaseComponent {
|
|
340
|
+
'internal-scenario'?: keyof typeof InternalScenarios;
|
|
341
|
+
'multipage-processing'?: boolean;
|
|
342
|
+
license?: string;
|
|
343
|
+
}
|
|
344
|
+
export interface IFaceDetection extends IBaseComponent {
|
|
345
|
+
debug?: boolean;
|
|
346
|
+
}
|
|
347
|
+
export declare type ICameraSnapshot = IDocumentBaseComponent;
|
|
348
|
+
export declare type FacePositionLivenessDetection = {
|
|
349
|
+
width: number;
|
|
350
|
+
height: number;
|
|
351
|
+
x: number;
|
|
352
|
+
y: number;
|
|
353
|
+
};
|
|
354
|
+
export { default as DocumentReaderService } from './services/DocumentReaderService';
|
|
355
|
+
export { default as DocumentReaderProcessor } from './services/DocumentReaderProcessor';
|
|
356
|
+
export { default as DocumentReaderCaptureWebComponent } from './web-components/CameraSnapshot';
|
|
357
|
+
export { default as DocumentReaderWebComponent } from './web-components/DocumentReader';
|
|
358
|
+
export { default as FaceDetectionWebComponent } from './web-components/FaceDetection';
|
|
359
|
+
export { default as FaceLivenessWebComponent } from './web-components/FaceLiveness';
|
|
360
|
+
export { default as FullScreenContainer } from './web-components/FullScreenContainer';
|
|
361
|
+
export { defineComponents } from './index-document';
|
package/lib/utils.d.ts
CHANGED
|
@@ -1,48 +1,7 @@
|
|
|
1
|
+
import { DocumentCaptureStatus, ImageOutputType, ObjectFit } from './constants';
|
|
1
2
|
import CameraModel from './models/CameraModel';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
x2: number;
|
|
5
|
-
y1: number;
|
|
6
|
-
y2: number;
|
|
7
|
-
}, b: {
|
|
8
|
-
x1: number;
|
|
9
|
-
x2: number;
|
|
10
|
-
y1: number;
|
|
11
|
-
y2: number;
|
|
12
|
-
}): boolean;
|
|
13
|
-
export declare function overlaps(a: {
|
|
14
|
-
x1: number;
|
|
15
|
-
x2: number;
|
|
16
|
-
y1: number;
|
|
17
|
-
y2: number;
|
|
18
|
-
}, b: {
|
|
19
|
-
x1: number;
|
|
20
|
-
x2: number;
|
|
21
|
-
y1: number;
|
|
22
|
-
y2: number;
|
|
23
|
-
}): boolean;
|
|
24
|
-
export declare function touches(a: {
|
|
25
|
-
x1: number;
|
|
26
|
-
x2: number;
|
|
27
|
-
y1: number;
|
|
28
|
-
y2: number;
|
|
29
|
-
}, b: {
|
|
30
|
-
x1: number;
|
|
31
|
-
x2: number;
|
|
32
|
-
y1: number;
|
|
33
|
-
y2: number;
|
|
34
|
-
}): boolean;
|
|
35
|
-
export declare function geTwoCorners({ top, left, height, width, }: {
|
|
36
|
-
top: number;
|
|
37
|
-
left: number;
|
|
38
|
-
height: number;
|
|
39
|
-
width: number;
|
|
40
|
-
}): {
|
|
41
|
-
x1: number;
|
|
42
|
-
x2: number;
|
|
43
|
-
y1: number;
|
|
44
|
-
y2: number;
|
|
45
|
-
};
|
|
3
|
+
import { CameraTypes, CaptureFrameType, DevicesType, FaceDebugOutput, FacingModeType, FrameObject, StreamDataType, VideoParamsType, WidthAndHeight } from './types';
|
|
4
|
+
import { Response } from './models/DocReaderWebclient/ext';
|
|
46
5
|
export declare function uint8ArrayToBase64(arr: Uint8ClampedArray, videoFrame: {
|
|
47
6
|
width: number;
|
|
48
7
|
height: number;
|
|
@@ -52,14 +11,20 @@ export declare function saveByteArray(data: Uint8ClampedArray, name: string | nu
|
|
|
52
11
|
export declare const convertBooleanAttributeParam: (attributeValue: string | null) => boolean | undefined;
|
|
53
12
|
export declare const convertNumberAttributeParam: (attributeValue: string | null) => number | undefined;
|
|
54
13
|
export declare function compose(...argsA: any): any;
|
|
55
|
-
export declare function
|
|
56
|
-
width: number;
|
|
57
|
-
height: number;
|
|
58
|
-
left: number;
|
|
59
|
-
top: number;
|
|
60
|
-
};
|
|
14
|
+
export declare function recalculateFrameSizes(videoWidth: number, videoHeight: number, containerWidth: number, containerHeight: number, frameWidth: number, frameHeight: number, frameX: number, frameY: number, objectFit: ObjectFit): FrameObject;
|
|
61
15
|
export declare function getByteCount(b64: Array<string> | string): number;
|
|
62
16
|
export declare function base64ToArrayBuffer(base64: string): ArrayBuffer;
|
|
63
|
-
export declare function
|
|
17
|
+
export declare function getUintImages(files: FileList | Array<Blob>, resizeValue: number, maxBrowserSupportedResolution: number): Promise<Array<Promise<ImageData>>>;
|
|
64
18
|
export declare function generateEvent<T>(type: string, detail: T): CustomEvent;
|
|
65
|
-
export declare const getAvailableCameras: (cameraPool: CameraModel[], preferredCameraId?: string
|
|
19
|
+
export declare const getAvailableCameras: (cameraPool: CameraModel[], preferredCameraId?: string) => CameraModel | undefined;
|
|
20
|
+
export declare function calculateFrame(videoSize: WidthAndHeight, isLandscape: boolean, ratio: number, frameOffset: number): FrameObject;
|
|
21
|
+
export declare function getVideosDevices(): Promise<DevicesType>;
|
|
22
|
+
export declare function isBackCameraLabel(label: string, keywords: Array<string>): boolean;
|
|
23
|
+
export declare function getCameras(preferredCameraType: FacingModeType, mediaDevices: DevicesType, preferredCameraId?: string): Promise<CameraTypes>;
|
|
24
|
+
export declare const closeStreamTracks: (stream: MediaStream) => void;
|
|
25
|
+
export declare function getVideo(resolution: WidthAndHeight, cameraTypes: CameraTypes, preferredCameraId?: string): Promise<StreamDataType>;
|
|
26
|
+
export declare function getImageFromVideo(videoElement: HTMLVideoElement, outputType: ImageOutputType): CaptureFrameType;
|
|
27
|
+
export declare function getNextCamera(camerasInfo: CameraTypes): string;
|
|
28
|
+
export declare function drawFaceDebugOutput(canvas: HTMLCanvasElement, videoElementParams: VideoParamsType, debugOutput: FaceDebugOutput): void;
|
|
29
|
+
export declare function mergeDeep<T, S, R>(target: T, source: S): R | T;
|
|
30
|
+
export declare function getStatus(response: Response, pageIdx: number, multipageProcessing?: boolean): DocumentCaptureStatus.FINDING | DocumentCaptureStatus.SUCCESS | DocumentCaptureStatus.RESOLUTION | DocumentCaptureStatus.GLARE | DocumentCaptureStatus.FOCUS | DocumentCaptureStatus.HOLD | DocumentCaptureStatus.START_NEXT_PAGE | DocumentCaptureStatus.TIMEOUT;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DocumentDictionaries } from '../types';
|
|
2
|
+
export default class DocumentReaderCaptureWebComponent extends HTMLElement {
|
|
3
|
+
private _root;
|
|
4
|
+
private _mounted;
|
|
5
|
+
private _translations;
|
|
6
|
+
constructor();
|
|
7
|
+
static get observedAttributes(): Array<string>;
|
|
8
|
+
attributeChangedCallback(name: string): void;
|
|
9
|
+
connectedCallback(): void;
|
|
10
|
+
set translations(dictionary: DocumentDictionaries | null);
|
|
11
|
+
get translations(): DocumentDictionaries | null;
|
|
12
|
+
render(): void;
|
|
13
|
+
disconnectedCallback(): void;
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DocumentDictionaries } from '../types';
|
|
2
|
+
export default class DocumentReaderWebComponent extends HTMLElement {
|
|
3
|
+
private _root;
|
|
4
|
+
private _mounted;
|
|
5
|
+
private _translations;
|
|
6
|
+
constructor();
|
|
7
|
+
static get observedAttributes(): Array<string>;
|
|
8
|
+
attributeChangedCallback(name: string): void;
|
|
9
|
+
connectedCallback(): void;
|
|
10
|
+
set translations(dictionary: DocumentDictionaries | null);
|
|
11
|
+
get translations(): DocumentDictionaries | null;
|
|
12
|
+
render(): void;
|
|
13
|
+
disconnectedCallback(): void;
|
|
14
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export default class FaceDetectionWebComponent extends HTMLElement {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
initialStyles: string;
|
|
2
|
+
private _root;
|
|
3
|
+
private _mounted;
|
|
5
4
|
constructor();
|
|
6
5
|
static get observedAttributes(): Array<string>;
|
|
6
|
+
get version(): string;
|
|
7
7
|
attributeChangedCallback(name: string): void;
|
|
8
8
|
connectedCallback(): void;
|
|
9
9
|
render(): void;
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
export default class FaceLivenessWebComponent extends HTMLElement {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
private _root;
|
|
3
|
+
private _mounted;
|
|
4
|
+
private _headers;
|
|
5
|
+
private _sessionIdValue;
|
|
6
6
|
constructor();
|
|
7
7
|
static get observedAttributes(): Array<string>;
|
|
8
8
|
attributeChangedCallback(name: string): void;
|
|
9
9
|
connectedCallback(): void;
|
|
10
10
|
set headers(headersData: Record<string, string>);
|
|
11
11
|
get headers(): Record<string, string>;
|
|
12
|
+
get version(): string;
|
|
13
|
+
set sessionId(id: string);
|
|
14
|
+
get sessionId(): string;
|
|
12
15
|
render(): void;
|
|
13
16
|
disconnectedCallback(): void;
|
|
14
17
|
}
|