interview-widget 3.2.22 → 3.3.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.
@@ -1,3 +1,4 @@
1
1
  export declare const useCameraSetup: (videoRef: React.RefObject<HTMLVideoElement | null>, isModelLoaded: boolean, renderLoop: () => void, setStatusMessage: (message: string) => void) => {
2
2
  animationFrameRef: import('react').RefObject<number | null>;
3
+ stream: MediaStream | null;
3
4
  };
@@ -3,6 +3,8 @@ export interface VideoFeedHandle {
3
3
  setReference: () => void;
4
4
  resetReference: () => void;
5
5
  stopCamera: () => void;
6
+ startRecording: () => void;
7
+ stopRecording: () => void;
6
8
  }
7
9
  interface VideoFeedProps {
8
10
  className?: string;
@@ -0,0 +1,6 @@
1
+ export declare function useVideoRecordingStream(interviewId: string): {
2
+ startRecording: (stream: MediaStream) => void;
3
+ stopRecording: () => void;
4
+ isRecording: boolean;
5
+ isUploading: boolean;
6
+ };
@@ -31,17 +31,17 @@ declare class InterviewAPI {
31
31
  */
32
32
  getInterviewConfig(interviewId: string): Promise<InterviewConfigResponse>;
33
33
  /**
34
- * Request a signed URL for uploading a screenshot
34
+ * Request a signed URL for uploading an asset
35
35
  */
36
- requestScreenshotUploadUrl(interviewId: string, filename?: string): Promise<ScreenshotUploadRequestResponse>;
36
+ requestUploadUrl(interviewId: string, filename: string | undefined, mimeType: string, assetType: string): Promise<ScreenshotUploadRequestResponse>;
37
37
  /**
38
- * Upload screenshot to the provided signed URL
38
+ * Upload asset to the provided signed URL
39
39
  */
40
- uploadScreenshot(uploadUrl: string, imageBlob: Blob): Promise<void>;
40
+ uploadAsset(uploadUrl: string, blob: Blob, mimeType: string): Promise<void>;
41
41
  /**
42
- * Confirm screenshot upload
42
+ * Confirm asset upload
43
43
  */
44
- confirmScreenshotUpload(assetId: string): Promise<void>;
44
+ confirmAssetUpload(assetId: string): Promise<void>;
45
45
  /**
46
46
  * Get interview transcription
47
47
  */