idmission-web-sdk 2.0.0 → 2.0.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 CHANGED
@@ -799,6 +799,7 @@ Render a fullscreen capture component that performs IDValidation and FaceValidat
799
799
  <tr><td><code>idCaptureRotateLoadingOverlayImageWhenPortrait</code> (optional)</td><td>boolean to indicate whether loading overlay image should be rotated on when mobile guides are rotated. Defaults to true.</td></tr>
800
800
  <tr><td><code>faceLivenessLoadingOverlayMode</code> (optional)</td><td>string indicating which face liveness loading overlay screen should be used. Supported values: default and legacy. Defaults to default.</td></tr>
801
801
  <tr><td><code>sendBase64DocumentsInSwaggerProxy</code> (optional)</td><td>boolean flag to enable download and replace behavior for documents in the Swagger Proxy API. Defaults to false.</td></tr>
802
+ <tr><td><code>mergeAVStreams</code> (optional)</td><td>boolean flag to indicate whether recorded audio should be merged onto the recorded video stream before submission. Defaults to false.</td></tr>
802
803
  <tr><td><code>theme</code> (optional)</td><td>name of an included theme or object containing theme properties.</td></tr>
803
804
  <tr><td><code>assets</code> (optional)</td><td>object containing any asset overrides, for available options consult the Assets table below.</td></tr>
804
805
  <tr><td><code>colors</code> (optional)</td><td>object containing any asset overrides, for available options consult the Colors table below.</td></tr>
@@ -150,6 +150,8 @@ export interface VideoIdValidationProps extends PropsWithChildren {
150
150
  disableFaceDetectionWhileAudioCaptureMsDelay?: number;
151
151
  /** Flag for suppressing fallback messaging - used when models fail to load */
152
152
  silentFallback?: boolean;
153
+ /** Boolean flag to indicate whether recorded audio should be merged onto the recorded video stream before submission. Defaults to false. */
154
+ mergeAVStreams?: boolean;
153
155
  /** Name of an included theme or object containing theme properties. **/
154
156
  theme?: ThemeInput;
155
157
  /** Object containing any asset overrides. */
@@ -52,10 +52,11 @@ export type IdVideoCaptureProps = {
52
52
  readTextMinReadingMs?: number;
53
53
  disableFaceDetectionWhileAudioCapture: boolean;
54
54
  disableFaceDetectionWhileAudioCaptureMsDelay: number;
55
+ mergeAVStreams?: boolean;
55
56
  assets?: IdVideoCaptureAssets;
56
57
  classNames?: IdVideoCaptureClassNames;
57
58
  colors?: IdVideoCaptureColors;
58
59
  verbiage?: IdVideoCaptureVerbiage;
59
60
  debugMode?: boolean;
60
61
  };
61
- export declare const IdVideoCapture: ({ onComplete, onIdFrontImageCaptured, onIdBackImageCaptured, onFaceNotDetected, onRecordingFailed, idCaptureModelsEnabled, idCardFrontDelay, idCardFrontDetectionThreshold, idCardFrontFocusThreshold, goodIdCardFrontFramesThreshold, idCardBackDetectionThreshold, idCardBackFocusThreshold, goodIdCardBackFramesThreshold, skipShowIdCardBack, captureCountdownSeconds, readTextPrompt, readTextTimeoutDurationMs, readTextMinReadingMs, disableFaceDetectionWhileAudioCapture, disableFaceDetectionWhileAudioCaptureMsDelay, assets, classNames, colors, verbiage: rawVerbiage, debugMode, }: IdVideoCaptureProps) => ReactElement;
62
+ export declare const IdVideoCapture: ({ onComplete, onIdFrontImageCaptured, onIdBackImageCaptured, onFaceNotDetected, onRecordingFailed, idCaptureModelsEnabled, idCardFrontDelay, idCardFrontDetectionThreshold, idCardFrontFocusThreshold, goodIdCardFrontFramesThreshold, idCardBackDetectionThreshold, idCardBackFocusThreshold, goodIdCardBackFramesThreshold, skipShowIdCardBack, captureCountdownSeconds, readTextPrompt, readTextTimeoutDurationMs, readTextMinReadingMs, disableFaceDetectionWhileAudioCapture, disableFaceDetectionWhileAudioCaptureMsDelay, mergeAVStreams, assets, classNames, colors, verbiage: rawVerbiage, debugMode, }: IdVideoCaptureProps) => ReactElement;
@@ -65,10 +65,11 @@ export type VideoIdWizardProps = {
65
65
  disableFaceDetectionWhileAudioCapture?: boolean;
66
66
  disableFaceDetectionWhileAudioCaptureMsDelay?: number;
67
67
  silentFallback?: boolean;
68
+ mergeAVStreams?: boolean;
68
69
  assets?: VideoIdWizardAssets;
69
70
  classNames?: VideoIdWizardClassNames;
70
71
  colors?: VideoIdWizardColors;
71
72
  verbiage?: VideoIdWizardVerbiage;
72
73
  debugMode?: boolean;
73
74
  };
74
- export declare const VideoIdWizard: ({ onComplete, onExitCapture, onExitAfterFailure, onUserCancel, onIdCaptureModelError, onCameraAccessDenied, onMicrophoneAccessDenied, idCaptureProps, faceLivenessProps, idCaptureModelsEnabled, idCardFrontDetectionThreshold, idCardBackDetectionThreshold, idCardFrontFocusThreshold, idCardBackFocusThreshold, goodIdCardFrontFramesThreshold, goodIdCardBackFramesThreshold, readTextPrompt, readTextTimeoutDurationMs, readTextMinReadingMs, skipIdCapture, skipShowIdCardBack, skipSuccessScreen, idCaptureLoadingOverlayMode, idCaptureGuideType, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, faceLivenessLoadingOverlayMode, disableFaceDetectionWhileAudioCapture, disableFaceDetectionWhileAudioCaptureMsDelay, silentFallback, assets, classNames, colors, verbiage, debugMode, }: VideoIdWizardProps) => ReactElement;
75
+ export declare const VideoIdWizard: ({ onComplete, onExitCapture, onExitAfterFailure, onUserCancel, onIdCaptureModelError, onCameraAccessDenied, onMicrophoneAccessDenied, idCaptureProps, faceLivenessProps, idCaptureModelsEnabled, idCardFrontDetectionThreshold, idCardBackDetectionThreshold, idCardFrontFocusThreshold, idCardBackFocusThreshold, goodIdCardFrontFramesThreshold, goodIdCardBackFramesThreshold, readTextPrompt, readTextTimeoutDurationMs, readTextMinReadingMs, skipIdCapture, skipShowIdCardBack, skipSuccessScreen, idCaptureLoadingOverlayMode, idCaptureGuideType, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, faceLivenessLoadingOverlayMode, disableFaceDetectionWhileAudioCapture, disableFaceDetectionWhileAudioCaptureMsDelay, silentFallback, mergeAVStreams, assets, classNames, colors, verbiage, debugMode, }: VideoIdWizardProps) => ReactElement;
@@ -39,4 +39,4 @@ export type VideoSignatureWizardProps = {
39
39
  verbiage?: VideoSignatureVerbiage;
40
40
  debugMode?: boolean;
41
41
  };
42
- export declare const VideoSignatureWizard: ({ onComplete, onVideoCaptured, onRetryClicked, onExitCapture, onUserCancel, onModelError, loadingOverlayMode, modelLoadTimeoutMs, skipSuccessScreen, assets, classNames, colors, verbiage, debugMode, }: VideoSignatureWizardProps) => ReactElement;
42
+ export declare const VideoSignatureWizard: ({ onComplete, onVideoCaptured, onRetryClicked, onExitCapture, onUserCancel, loadingOverlayMode, skipSuccessScreen, assets, classNames, colors, verbiage, debugMode, }: VideoSignatureWizardProps) => ReactElement;
@@ -1,5 +1,5 @@
1
1
  import { Camera } from './Camera';
2
- export declare const useVideoRecorder: (camera: Camera | null, audioStream?: MediaStream | null) => {
2
+ export declare const useVideoRecorder: (camera: Camera | null, audioStream?: MediaStream | null, mergeAVStreams?: boolean) => {
3
3
  isRecordingVideo: boolean;
4
4
  isRecordingAudio: boolean;
5
5
  startRecordingVideo: () => void;