idmission-web-sdk 1.0.324 → 1.0.326

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.
@@ -13,10 +13,6 @@ export type CameraState = {
13
13
  iphoneContinuityCameraAllowed: boolean;
14
14
  setIphoneContinuityCameraAllowed: (value: boolean) => void;
15
15
  takePhoto: () => Promise<Blob | null>;
16
- audioStream: MediaStream | null;
17
- microphoneReady: boolean;
18
- microphoneAccessDenied: boolean;
19
- retryMicrophoneAccess: () => void;
20
16
  };
21
17
  export declare const CameraStateContext: React.Context<CameraState>;
22
18
  export type CameraProviderProps = {
@@ -2,11 +2,9 @@ import React from 'react';
2
2
  import { CameraAccessDeniedOverlayAssets, CameraAccessDeniedOverlayClassNames, CameraAccessDeniedOverlayColors, CameraAccessDeniedOverlayVerbiage } from '../camera/CameraAccessDeniedOverlay';
3
3
  import { LoaderButtonColors } from '../common/LoaderButton';
4
4
  import { CustomerSuppliedVerbiage } from '../../lib/locales';
5
- import { MicrophoneAccessDeniedOverlayAssets, MicrophoneAccessDeniedOverlayClassNames, MicrophoneAccessDeniedOverlayColors, MicrophoneAccessDeniedOverlayVerbiage } from '../camera/MicrophoneAccessDeniedOverlay';
6
5
  export type SelfieCaptureLoadingOverlayAssets = {
7
6
  instructionImageUrl?: string;
8
7
  cameraAccessDenied?: CameraAccessDeniedOverlayAssets;
9
- microphoneAccessDenied?: MicrophoneAccessDeniedOverlayAssets;
10
8
  };
11
9
  export type SelfieCaptureLoadingOverlayClassNames = {
12
10
  container?: string;
@@ -20,7 +18,6 @@ export type SelfieCaptureLoadingOverlayClassNames = {
20
18
  continueBtn?: string;
21
19
  cancelBtn?: string;
22
20
  cameraAccessDenied?: CameraAccessDeniedOverlayClassNames;
23
- microphoneAccessDenied?: MicrophoneAccessDeniedOverlayClassNames;
24
21
  progressContainer?: string;
25
22
  progressBackground?: string;
26
23
  progressBar?: string;
@@ -32,7 +29,6 @@ export type SelfieCaptureLoadingOverlayClassNames = {
32
29
  export type SelfieCaptureLoadingOverlayColors = {
33
30
  continueBtn?: LoaderButtonColors;
34
31
  cameraAccessDenied?: CameraAccessDeniedOverlayColors;
35
- microphoneAccessDenied?: MicrophoneAccessDeniedOverlayColors;
36
32
  };
37
33
  export type SelfieCaptureLoadingOverlayVerbiage = {
38
34
  headingText?: CustomerSuppliedVerbiage;
@@ -45,7 +41,6 @@ export type SelfieCaptureLoadingOverlayVerbiage = {
45
41
  modelsReadyText?: CustomerSuppliedVerbiage;
46
42
  cameraInitializedText?: CustomerSuppliedVerbiage;
47
43
  cameraAccessDenied?: CameraAccessDeniedOverlayVerbiage;
48
- microphoneAccessDenied?: MicrophoneAccessDeniedOverlayVerbiage;
49
44
  };
50
45
  export type SelfieCaptureLoadingOverlayProps = {
51
46
  onDismissed?: () => void;
@@ -21,7 +21,6 @@ export type SubmissionState = {
21
21
  idCaptureVideoUrl: string | null;
22
22
  idCaptureVideoIdFrontImage: string | null;
23
23
  idCaptureVideoIdBackImage: string | null;
24
- idCaptureVideoAudioUrl: string | null;
25
24
  idCaptureVideoAudioStartsAt: number | null;
26
25
  additionalDocuments: UploadedDocument[] | null;
27
26
  setIdFrontImage: (image: string) => void;
@@ -33,7 +32,6 @@ export type SubmissionState = {
33
32
  setIdCaptureVideoUrl: (videoDataUrl: string) => void;
34
33
  setIdCaptureVideoIdFrontImage: (image: string) => void;
35
34
  setIdCaptureVideoIdBackImage: (image: string) => void;
36
- setIdCaptureVideoAudioUrl: (videoDataUrl: string) => void;
37
35
  setIdCaptureVideoAudioStartsAt: (value: number) => void;
38
36
  setExpectedAudioText: (value: string) => void;
39
37
  setAdditionalDocuments: (uploadedDocuments: UploadedDocument[]) => void;
@@ -32,7 +32,7 @@ export type IdVideoCaptureVerbiage = {
32
32
  captureBtnText?: CustomerSuppliedVerbiage;
33
33
  };
34
34
  export type IdVideoCaptureProps = {
35
- onComplete?: (videoUrl: string, audioUrl: string | null) => void;
35
+ onComplete?: (videoUrl: string) => void;
36
36
  onIdFrontImageCaptured?: (imageUrl: string) => void;
37
37
  onIdBackImageCaptured?: (imageUrl: string) => void;
38
38
  onFaceNotDetected?: () => void;
@@ -26,7 +26,6 @@ export type IdVideoCaptureSuccessVerbiage = {
26
26
  };
27
27
  export type IdVideoCaptureSuccessProps = {
28
28
  videoUrl: string;
29
- audioUrl: string | null;
30
29
  idFrontImageUrl: string;
31
30
  idBackImageUrl?: string;
32
31
  onDoneClick?: () => void;
@@ -35,4 +34,4 @@ export type IdVideoCaptureSuccessProps = {
35
34
  colors?: IdVideoCaptureSuccessColors;
36
35
  verbiage?: IdVideoCaptureSuccessVerbiage;
37
36
  };
38
- export declare const IdVideoCaptureSuccess: ({ videoUrl, audioUrl, idFrontImageUrl, idBackImageUrl, onDoneClick, onRetryClick, classNames, colors, verbiage: rawVerbiage, }: IdVideoCaptureSuccessProps) => ReactElement;
37
+ export declare const IdVideoCaptureSuccess: ({ videoUrl, idFrontImageUrl, idBackImageUrl, onDoneClick, onRetryClick, classNames, colors, verbiage: rawVerbiage, }: IdVideoCaptureSuccessProps) => ReactElement;
@@ -38,8 +38,7 @@ export type SubmissionRequest = {
38
38
  biometricData?: {
39
39
  selfie?: string;
40
40
  videoData?: string;
41
- voiceData?: string;
42
- voiceStartTime?: number;
41
+ voiceStartsAt?: number;
43
42
  expectedAudioText?: string;
44
43
  };
45
44
  signatureData?: {
@@ -24,7 +24,6 @@ export type FacingMode = 'user' | 'environment' | 'left' | 'right';
24
24
  export declare function listAvailableCameras(facingMode?: FacingMode, requestMicAccess?: boolean): Promise<MediaDeviceInfo[]>;
25
25
  export declare function obtainCameraAccess(stream: MediaStream, deviceLabel: string, video?: HTMLVideoElement | null): Camera;
26
26
  export declare function releaseCameraAccess(): void;
27
- export declare function releaseMicrophoneAccess(): void;
28
27
  export declare const useHighestResCaptureDevice: ({ preferFrontFacingCamera, preferContinuityCamera, requestMicrophoneAccess, maxVideoWidth, maxFps, debugMode, }?: {
29
28
  preferFrontFacingCamera: boolean;
30
29
  preferContinuityCamera: boolean;
@@ -46,10 +45,6 @@ export declare const useHighestResCaptureDevice: ({ preferFrontFacingCamera, pre
46
45
  iphoneContinuityCameraAllowed: boolean;
47
46
  setIphoneContinuityCameraAllowed: import("react").Dispatch<import("react").SetStateAction<boolean>>;
48
47
  takePhoto: () => Promise<Blob | null>;
49
- audioStream: MediaStream | null;
50
- microphoneReady: boolean;
51
- microphoneAccessDenied: boolean;
52
- retryMicrophoneAccess: () => void;
53
48
  };
54
49
  export declare const useDualResCaptureDevice: () => {
55
50
  minVideoRef: import("react").MutableRefObject<HTMLVideoElement | null>;
@@ -1,11 +1,7 @@
1
1
  import { Camera } from './Camera';
2
- export declare const useVideoRecorder: (camera: Camera | null, audioStream?: MediaStream | null) => {
3
- isRecordingVideo: boolean;
4
- isRecordingAudio: boolean;
5
- startRecordingVideo: () => void;
6
- startRecordingAudio: () => void;
7
- stopRecordingVideo: () => void;
8
- stopRecordingAudio: () => void;
2
+ export declare const useVideoRecorder: (camera: Camera | null) => {
3
+ isRecording: boolean;
4
+ startRecording: () => void;
5
+ stopRecording: () => void;
9
6
  videoUrl: string | null;
10
- audioUrl: string | null;
11
7
  };
@@ -7,8 +7,8 @@ declare const _default: {
7
7
  'Location access blocked': string;
8
8
  Continue: string;
9
9
  'Processing...': string;
10
- 'Your camera permission is disabled': string;
11
- 'This application requires access to your camera to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for camera permissions, you must go to settings and provide camera access to the current browser.': string;
10
+ 'Your camera or microphone permission is disabled': string;
11
+ 'This application requires access to your camera and microphone to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for camera permissions, you must go to settings and provide camera and microphone access to the current browser.': string;
12
12
  'Your microphone permission is disabled': string;
13
13
  'This application requires access to your microphone to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for microphone permissions, you must go to settings and provide microphone access to the current browser.': string;
14
14
  'Your location permission is disabled': string;
@@ -15,8 +15,8 @@ export declare const resources: {
15
15
  'Location access blocked': string;
16
16
  Continue: string;
17
17
  'Processing...': string;
18
- 'Your camera permission is disabled': string;
19
- 'This application requires access to your camera to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for camera permissions, you must go to settings and provide camera access to the current browser.': string;
18
+ 'Your camera or microphone permission is disabled': string;
19
+ 'This application requires access to your camera and microphone to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for camera permissions, you must go to settings and provide camera and microphone access to the current browser.': string;
20
20
  'Your microphone permission is disabled': string;
21
21
  'This application requires access to your microphone to continue. Please accept the permission once prompted by the browser. If the browser does not prompt for microphone permissions, you must go to settings and provide microphone access to the current browser.': string;
22
22
  'Your location permission is disabled': string;