Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
Fix Biome ignore (#951)
Oscar Beaumont40bcdb045f3e
diff --git a/apps/desktop/src/utils/tauri.ts b/apps/desktop/src/utils/tauri.tsindex 5c25224f5..bc97c7a8f 100644--- a/apps/desktop/src/utils/tauri.ts+++ b/apps/desktop/src/utils/tauri.ts@@ -1,816 +1,470 @@+// This file was generated by [tauri-specta](https://github.com/oscartbeaumont/tauri-specta). Do not edit this file manually./** user-defined commands **/+export const commands = {- async setMicInput(label: string | null): Promise<null> {- return await TAURI_INVOKE("set_mic_input", { label });- },- async setCameraInput(id: DeviceOrModelID | null): Promise<null> {- return await TAURI_INVOKE("set_camera_input", { id });- },- async startRecording(inputs: StartRecordingInputs): Promise<null> {- return await TAURI_INVOKE("start_recording", { inputs });- },- async stopRecording(): Promise<null> {- return await TAURI_INVOKE("stop_recording");- },- async pauseRecording(): Promise<null> {- return await TAURI_INVOKE("pause_recording");- },- async resumeRecording(): Promise<null> {- return await TAURI_INVOKE("resume_recording");- },- async restartRecording(): Promise<null> {- return await TAURI_INVOKE("restart_recording");- },- async deleteRecording(): Promise<null> {- return await TAURI_INVOKE("delete_recording");- },- async listCameras(): Promise<CameraInfo[]> {- return await TAURI_INVOKE("list_cameras");- },- async listCaptureWindows(): Promise<CaptureWindow[]> {- return await TAURI_INVOKE("list_capture_windows");- },- async listCaptureDisplays(): Promise<CaptureDisplay[]> {- return await TAURI_INVOKE("list_capture_displays");- },- async takeScreenshot(): Promise<null> {- return await TAURI_INVOKE("take_screenshot");- },- async listAudioDevices(): Promise<string[]> {- return await TAURI_INVOKE("list_audio_devices");- },- async closeRecordingsOverlayWindow(): Promise<void> {- await TAURI_INVOKE("close_recordings_overlay_window");- },- async setFakeWindowBounds(- name: string,- bounds: LogicalBounds,- ): Promise<null> {- return await TAURI_INVOKE("set_fake_window_bounds", { name, bounds });- },- async removeFakeWindow(name: string): Promise<null> {- return await TAURI_INVOKE("remove_fake_window", { name });- },- async focusCapturesPanel(): Promise<void> {- await TAURI_INVOKE("focus_captures_panel");- },- async getCurrentRecording(): Promise<JsonValue<CurrentRecording | null>> {- return await TAURI_INVOKE("get_current_recording");- },- async exportVideo(- projectPath: string,- progress: TAURI_CHANNEL<FramesRendered>,- settings: ExportSettings,- ): Promise<string> {- return await TAURI_INVOKE("export_video", {- projectPath,- progress,- settings,- });- },- async getExportEstimates(- path: string,- resolution: XY<number>,- fps: number,- ): Promise<ExportEstimates> {- return await TAURI_INVOKE("get_export_estimates", {- path,- resolution,- fps,- });- },- async copyFileToPath(src: string, dst: string): Promise<null> {- return await TAURI_INVOKE("copy_file_to_path", { src, dst });- },- async copyVideoToClipboard(path: string): Promise<null> {- return await TAURI_INVOKE("copy_video_to_clipboard", { path });- },- async copyScreenshotToClipboard(path: string): Promise<null> {- return await TAURI_INVOKE("copy_screenshot_to_clipboard", { path });- },- async openFilePath(path: string): Promise<null> {- return await TAURI_INVOKE("open_file_path", { path });- },- async getVideoMetadata(path: string): Promise<VideoRecordingMetadata> {- return await TAURI_INVOKE("get_video_metadata", { path });- },- async createEditorInstance(): Promise<SerializedEditorInstance> {- return await TAURI_INVOKE("create_editor_instance");- },- async getMicWaveforms(): Promise<number[][]> {- return await TAURI_INVOKE("get_mic_waveforms");- },- async getSystemAudioWaveforms(): Promise<number[][]> {- return await TAURI_INVOKE("get_system_audio_waveforms");- },- async startPlayback(fps: number, resolutionBase: XY<number>): Promise<null> {- return await TAURI_INVOKE("start_playback", { fps, resolutionBase });- },- async stopPlayback(): Promise<null> {- return await TAURI_INVOKE("stop_playback");- },- async setPlayheadPosition(frameNumber: number): Promise<null> {- return await TAURI_INVOKE("set_playhead_position", { frameNumber });- },- async setProjectConfig(config: ProjectConfiguration): Promise<null> {- return await TAURI_INVOKE("set_project_config", { config });- },- async generateZoomSegmentsFromClicks(): Promise<ZoomSegment[]> {- return await TAURI_INVOKE("generate_zoom_segments_from_clicks");- },- async openPermissionSettings(permission: OSPermission): Promise<void> {- await TAURI_INVOKE("open_permission_settings", { permission });- },- async doPermissionsCheck(initialCheck: boolean): Promise<OSPermissionsCheck> {- return await TAURI_INVOKE("do_permissions_check", { initialCheck });- },- async requestPermission(permission: OSPermission): Promise<void> {- await TAURI_INVOKE("request_permission", { permission });- },- async uploadExportedVideo(- path: string,- mode: UploadMode,- ): Promise<UploadResult> {- return await TAURI_INVOKE("upload_exported_video", { path, mode });- },- async uploadScreenshot(screenshotPath: string): Promise<UploadResult> {- return await TAURI_INVOKE("upload_screenshot", { screenshotPath });- },- async getRecordingMeta(- path: string,- fileType: FileType,- ): Promise<RecordingMetaWithMode> {- return await TAURI_INVOKE("get_recording_meta", { path, fileType });- },- async saveFileDialog(- fileName: string,- fileType: string,- ): Promise<string | null> {- return await TAURI_INVOKE("save_file_dialog", { fileName, fileType });- },- async listRecordings(): Promise<[string, RecordingMetaWithMode][]> {- return await TAURI_INVOKE("list_recordings");- },- async listScreenshots(): Promise<[string, RecordingMeta][]> {- return await TAURI_INVOKE("list_screenshots");- },- async checkUpgradedAndUpdate(): Promise<boolean> {- return await TAURI_INVOKE("check_upgraded_and_update");- },- async openExternalLink(url: string): Promise<null> {- return await TAURI_INVOKE("open_external_link", { url });- },- async setHotkey(action: HotkeyAction, hotkey: Hotkey | null): Promise<null> {- return await TAURI_INVOKE("set_hotkey", { action, hotkey });- },- async resetCameraPermissions(): Promise<null> {- return await TAURI_INVOKE("reset_camera_permissions");- },- async resetMicrophonePermissions(): Promise<null> {- return await TAURI_INVOKE("reset_microphone_permissions");- },- async isCameraWindowOpen(): Promise<boolean> {- return await TAURI_INVOKE("is_camera_window_open");- },- async seekTo(frameNumber: number): Promise<null> {- return await TAURI_INVOKE("seek_to", { frameNumber });- },- async positionTrafficLights(- controlsInset: [number, number] | null,- ): Promise<void> {- await TAURI_INVOKE("position_traffic_lights", { controlsInset });- },- async setTheme(theme: AppTheme): Promise<void> {- await TAURI_INVOKE("set_theme", { theme });- },- async globalMessageDialog(message: string): Promise<void> {- await TAURI_INVOKE("global_message_dialog", { message });- },- async showWindow(window: ShowCapWindow): Promise<null> {- return await TAURI_INVOKE("show_window", { window });- },- async writeClipboardString(text: string): Promise<null> {- return await TAURI_INVOKE("write_clipboard_string", { text });- },- async performHapticFeedback(- pattern: HapticPattern | null,- time: HapticPerformanceTime | null,- ): Promise<null> {- return await TAURI_INVOKE("perform_haptic_feedback", { pattern, time });- },- async listFails(): Promise<{ [key in string]: boolean }> {- return await TAURI_INVOKE("list_fails");- },- async setFail(name: string, value: boolean): Promise<void> {- await TAURI_INVOKE("set_fail", { name, value });- },- async updateAuthPlan(): Promise<void> {- await TAURI_INVOKE("update_auth_plan");- },- async setWindowTransparent(value: boolean): Promise<void> {- await TAURI_INVOKE("set_window_transparent", { value });- },- async getEditorMeta(): Promise<RecordingMeta> {- return await TAURI_INVOKE("get_editor_meta");- },- async setPrettyName(prettyName: string): Promise<null> {- return await TAURI_INVOKE("set_pretty_name", { prettyName });- },- async setServerUrl(serverUrl: string): Promise<null> {- return await TAURI_INVOKE("set_server_url", { serverUrl });- },- async setCameraPreviewState(state: CameraPreviewState): Promise<null> {- return await TAURI_INVOKE("set_camera_preview_state", { state });- },- async awaitCameraPreviewReady(): Promise<boolean> {- return await TAURI_INVOKE("await_camera_preview_ready");- },- /**- * Function to handle creating directories for the model- */- async createDir(path: string, recursive: boolean): Promise<null> {- return await TAURI_INVOKE("create_dir", { path, recursive });- },- /**- * Function to save the model file- */- async saveModelFile(path: string, data: number[]): Promise<null> {- return await TAURI_INVOKE("save_model_file", { path, data });- },- /**- * Function to transcribe audio from a video file using Whisper- */- async transcribeAudio(- videoPath: string,- modelPath: string,- language: string,- ): Promise<CaptionData> {- return await TAURI_INVOKE("transcribe_audio", {- videoPath,- modelPath,- language,- });- },- /**- * Function to save caption data to a file- */- async saveCaptions(videoId: string, captions: CaptionData): Promise<null> {- return await TAURI_INVOKE("save_captions", { videoId, captions });- },- /**- * Function to load caption data from a file- */- async loadCaptions(videoId: string): Promise<CaptionData | null> {- return await TAURI_INVOKE("load_captions", { videoId });- },- /**- * Helper function to download a Whisper model from Hugging Face Hub- */- async downloadWhisperModel(- modelName: string,- outputPath: string,- ): Promise<null> {- return await TAURI_INVOKE("download_whisper_model", {- modelName,- outputPath,- });- },- /**- * Function to check if a model file exists- */- async checkModelExists(modelPath: string): Promise<boolean> {- return await TAURI_INVOKE("check_model_exists", { modelPath });- },- /**- * Function to delete a downloaded model- */- async deleteWhisperModel(modelPath: string): Promise<null> {- return await TAURI_INVOKE("delete_whisper_model", { modelPath });- },- /**- * Export captions to an SRT file- */- async exportCaptionsSrt(videoId: string): Promise<string | null> {- return await TAURI_INVOKE("export_captions_srt", { videoId });- },- async openTargetSelectOverlays(): Promise<null> {- return await TAURI_INVOKE("open_target_select_overlays");- },- async closeTargetSelectOverlays(): Promise<null> {- return await TAURI_INVOKE("close_target_select_overlays");- },- async displayInformation(displayId: string): Promise<DisplayInformation> {- return await TAURI_INVOKE("display_information", { displayId });- },- async getWindowIcon(windowId: string): Promise<string | null> {- return await TAURI_INVOKE("get_window_icon", { windowId });- },-};+async setMicInput(label: string | null) : Promise<null> {+ return await TAURI_INVOKE("set_mic_input", { label });+},+async setCameraInput(id: DeviceOrModelID | null) : Promise<null> {+ return await TAURI_INVOKE("set_camera_input", { id });+},+async startRecording(inputs: StartRecordingInputs) : Promise<null> {+ return await TAURI_INVOKE("start_recording", { inputs });+},+async stopRecording() : Promise<null> {+ return await TAURI_INVOKE("stop_recording");+},+async pauseRecording() : Promise<null> {+ return await TAURI_INVOKE("pause_recording");+},+async resumeRecording() : Promise<null> {+ return await TAURI_INVOKE("resume_recording");+},+async restartRecording() : Promise<null> {+ return await TAURI_INVOKE("restart_recording");+},+async deleteRecording() : Promise<null> {+ return await TAURI_INVOKE("delete_recording");+},+async listCameras() : Promise<CameraInfo[]> {+ return await TAURI_INVOKE("list_cameras");+},+async listCaptureWindows() : Promise<CaptureWindow[]> {+ return await TAURI_INVOKE("list_capture_windows");+},+async listCaptureDisplays() : Promise<CaptureDisplay[]> {+ return await TAURI_INVOKE("list_capture_displays");+},+async takeScreenshot() : Promise<null> {+ return await TAURI_INVOKE("take_screenshot");+},+async listAudioDevices() : Promise<string[]> {+ return await TAURI_INVOKE("list_audio_devices");+},+async closeRecordingsOverlayWindow() : Promise<void> {+ await TAURI_INVOKE("close_recordings_overlay_window");+},+async setFakeWindowBounds(name: string, bounds: LogicalBounds) : Promise<null> {+ return await TAURI_INVOKE("set_fake_window_bounds", { name, bounds });+},+async removeFakeWindow(name: string) : Promise<null> {+ return await TAURI_INVOKE("remove_fake_window", { name });+},+async focusCapturesPanel() : Promise<void> {+ await TAURI_INVOKE("focus_captures_panel");+},+async getCurrentRecording() : Promise<JsonValue<CurrentRecording | null>> {+ return await TAURI_INVOKE("get_current_recording");+},+async exportVideo(projectPath: string, progress: TAURI_CHANNEL<FramesRendered>, settings: ExportSettings) : Promise<string> {+ return await TAURI_INVOKE("export_video", { projectPath, progress, settings });+},+async getExportEstimates(path: string, resolution: XY<number>, fps: number) : Promise<ExportEstimates> {+ return await TAURI_INVOKE("get_export_estimates", { path, resolution, fps });+},+async copyFileToPath(src: string, dst: string) : Promise<null> {+ return await TAURI_INVOKE("copy_file_to_path", { src, dst });+},+async copyVideoToClipboard(path: string) : Promise<null> {+ return await TAURI_INVOKE("copy_video_to_clipboard", { path });+},+async copyScreenshotToClipboard(path: string) : Promise<null> {+ return await TAURI_INVOKE("copy_screenshot_to_clipboard", { path });+},+async openFilePath(path: string) : Promise<null> {+ return await TAURI_INVOKE("open_file_path", { path });+},+async getVideoMetadata(path: string) : Promise<VideoRecordingMetadata> {+ return await TAURI_INVOKE("get_video_metadata", { path });+},+async createEditorInstance() : Promise<SerializedEditorInstance> {+ return await TAURI_INVOKE("create_editor_instance");+},+async getMicWaveforms() : Promise<number[][]> {+ return await TAURI_INVOKE("get_mic_waveforms");+},+async getSystemAudioWaveforms() : Promise<number[][]> {+ return await TAURI_INVOKE("get_system_audio_waveforms");+},+async startPlayback(fps: number, resolutionBase: XY<number>) : Promise<null> {+ return await TAURI_INVOKE("start_playback", { fps, resolutionBase });+},+async stopPlayback() : Promise<null> {+ return await TAURI_INVOKE("stop_playback");+},+async setPlayheadPosition(frameNumber: number) : Promise<null> {+ return await TAURI_INVOKE("set_playhead_position", { frameNumber });+},+async setProjectConfig(config: ProjectConfiguration) : Promise<null> {+ return await TAURI_INVOKE("set_project_config", { config });+},+async generateZoomSegmentsFromClicks() : Promise<ZoomSegment[]> {+ return await TAURI_INVOKE("generate_zoom_segments_from_clicks");+},+async openPermissionSettings(permission: OSPermission) : Promise<void> {+ await TAURI_INVOKE("open_permission_settings", { permission });+},+async doPermissionsCheck(initialCheck: boolean) : Promise<OSPermissionsCheck> {+ return await TAURI_INVOKE("do_permissions_check", { initialCheck });+},+async requestPermission(permission: OSPermission) : Promise<void> {+ await TAURI_INVOKE("request_permission", { permission });+},+async uploadExportedVideo(path: string, mode: UploadMode) : Promise<UploadResult> {+ return await TAURI_INVOKE("upload_exported_video", { path, mode });+},+async uploadScreenshot(screenshotPath: string) : Promise<UploadResult> {+ return await TAURI_INVOKE("upload_screenshot", { screenshotPath });+},+async getRecordingMeta(path: string, fileType: FileType) : Promise<RecordingMetaWithMode> {+ return await TAURI_INVOKE("get_recording_meta", { path, fileType });+},+async saveFileDialog(fileName: string, fileType: string) : Promise<string | null> {+ return await TAURI_INVOKE("save_file_dialog", { fileName, fileType });+},+async listRecordings() : Promise<([string, RecordingMetaWithMode])[]> {+ return await TAURI_INVOKE("list_recordings");+},+async listScreenshots() : Promise<([string, RecordingMeta])[]> {+ return await TAURI_INVOKE("list_screenshots");+},+async checkUpgradedAndUpdate() : Promise<boolean> {+ return await TAURI_INVOKE("check_upgraded_and_update");+},+async openExternalLink(url: string) : Promise<null> {+ return await TAURI_INVOKE("open_external_link", { url });+},+async setHotkey(action: HotkeyAction, hotkey: Hotkey | null) : Promise<null> {+ return await TAURI_INVOKE("set_hotkey", { action, hotkey });+},+async resetCameraPermissions() : Promise<null> {+ return await TAURI_INVOKE("reset_camera_permissions");+},+async resetMicrophonePermissions() : Promise<null> {+ return await TAURI_INVOKE("reset_microphone_permissions");+},+async isCameraWindowOpen() : Promise<boolean> {+ return await TAURI_INVOKE("is_camera_window_open");+},+async seekTo(frameNumber: number) : Promise<null> {+ return await TAURI_INVOKE("seek_to", { frameNumber });+},+async positionTrafficLights(controlsInset: [number, number] | null) : Promise<void> {+ await TAURI_INVOKE("position_traffic_lights", { controlsInset });+},+async setTheme(theme: AppTheme) : Promise<void> {+ await TAURI_INVOKE("set_theme", { theme });+},+async globalMessageDialog(message: string) : Promise<void> {+ await TAURI_INVOKE("global_message_dialog", { message });+},+async showWindow(window: ShowCapWindow) : Promise<null> {+ return await TAURI_INVOKE("show_window", { window });+},+async writeClipboardString(text: string) : Promise<null> {+ return await TAURI_INVOKE("write_clipboard_string", { text });+},+async performHapticFeedback(pattern: HapticPattern | null, time: HapticPerformanceTime | null) : Promise<null> {+ return await TAURI_INVOKE("perform_haptic_feedback", { pattern, time });+},+async listFails() : Promise<{ [key in string]: boolean }> {+ return await TAURI_INVOKE("list_fails");+},+async setFail(name: string, value: boolean) : Promise<void> {+ await TAURI_INVOKE("set_fail", { name, value });+},+async updateAuthPlan() : Promise<void> {+ await TAURI_INVOKE("update_auth_plan");+},+async setWindowTransparent(value: boolean) : Promise<void> {+ await TAURI_INVOKE("set_window_transparent", { value });+},+async getEditorMeta() : Promise<RecordingMeta> {+ return await TAURI_INVOKE("get_editor_meta");+},+async setPrettyName(prettyName: string) : Promise<null> {+ return await TAURI_INVOKE("set_pretty_name", { prettyName });+},+async setServerUrl(serverUrl: string) : Promise<null> {+ return await TAURI_INVOKE("set_server_url", { serverUrl });+},+async setCameraPreviewState(state: CameraPreviewState) : Promise<null> {+ return await TAURI_INVOKE("set_camera_preview_state", { state });+},+async awaitCameraPreviewReady() : Promise<boolean> {+ return await TAURI_INVOKE("await_camera_preview_ready");+},+/**+ * Function to handle creating directories for the model+ */+async createDir(path: string, recursive: boolean) : Promise<null> {+ return await TAURI_INVOKE("create_dir", { path, recursive });+},+/**+ * Function to save the model file+ */+async saveModelFile(path: string, data: number[]) : Promise<null> {+ return await TAURI_INVOKE("save_model_file", { path, data });+},+/**+ * Function to transcribe audio from a video file using Whisper+ */+async transcribeAudio(videoPath: string, modelPath: string, language: string) : Promise<CaptionData> {+ return await TAURI_INVOKE("transcribe_audio", { videoPath, modelPath, language });+},+/**+ * Function to save caption data to a file+ */+async saveCaptions(videoId: string, captions: CaptionData) : Promise<null> {+ return await TAURI_INVOKE("save_captions", { videoId, captions });+},+/**+ * Function to load caption data from a file+ */+async loadCaptions(videoId: string) : Promise<CaptionData | null> {+ return await TAURI_INVOKE("load_captions", { videoId });+},+/**+ * Helper function to download a Whisper model from Hugging Face Hub+ */+async downloadWhisperModel(modelName: string, outputPath: string) : Promise<null> {+ return await TAURI_INVOKE("download_whisper_model", { modelName, outputPath });+},+/**+ * Function to check if a model file exists+ */+async checkModelExists(modelPath: string) : Promise<boolean> {+ return await TAURI_INVOKE("check_model_exists", { modelPath });+},+/**+ * Function to delete a downloaded model+ */+async deleteWhisperModel(modelPath: string) : Promise<null> {+ return await TAURI_INVOKE("delete_whisper_model", { modelPath });+},+/**+ * Export captions to an SRT file+ */+async exportCaptionsSrt(videoId: string) : Promise<string | null> {+ return await TAURI_INVOKE("export_captions_srt", { videoId });+},+async openTargetSelectOverlays() : Promise<null> {+ return await TAURI_INVOKE("open_target_select_overlays");+},+async closeTargetSelectOverlays() : Promise<null> {+ return await TAURI_INVOKE("close_target_select_overlays");+},+async displayInformation(displayId: string) : Promise<DisplayInformation> {+ return await TAURI_INVOKE("display_information", { displayId });+},+async getWindowIcon(windowId: string) : Promise<string | null> {+ return await TAURI_INVOKE("get_window_icon", { windowId });+}+}/** user-defined events **/+export const events = __makeEvents__<{- audioInputLevelChange: AudioInputLevelChange;- authenticationInvalid: AuthenticationInvalid;- currentRecordingChanged: CurrentRecordingChanged;- downloadProgress: DownloadProgress;- editorStateChanged: EditorStateChanged;- newNotification: NewNotification;- newScreenshotAdded: NewScreenshotAdded;- newStudioRecordingAdded: NewStudioRecordingAdded;- onEscapePress: OnEscapePress;- recordingDeleted: RecordingDeleted;- recordingEvent: RecordingEvent;- recordingOptionsChanged: RecordingOptionsChanged;- recordingStarted: RecordingStarted;- recordingStopped: RecordingStopped;- renderFrameEvent: RenderFrameEvent;- requestNewScreenshot: RequestNewScreenshot;- requestOpenSettings: RequestOpenSettings;- requestStartRecording: RequestStartRecording;- targetUnderCursor: TargetUnderCursor;- uploadProgress: UploadProgress;+audioInputLevelChange: AudioInputLevelChange,+authenticationInvalid: AuthenticationInvalid,+currentRecordingChanged: CurrentRecordingChanged,+downloadProgress: DownloadProgress,+editorStateChanged: EditorStateChanged,+newNotification: NewNotification,+newScreenshotAdded: NewScreenshotAdded,+newStudioRecordingAdded: NewStudioRecordingAdded,+onEscapePress: OnEscapePress,+recordingDeleted: RecordingDeleted,+recordingEvent: RecordingEvent,+recordingOptionsChanged: RecordingOptionsChanged,+recordingStarted: RecordingStarted,+recordingStopped: RecordingStopped,+renderFrameEvent: RenderFrameEvent,+requestNewScreenshot: RequestNewScreenshot,+requestOpenSettings: RequestOpenSettings,+requestStartRecording: RequestStartRecording,+targetUnderCursor: TargetUnderCursor,+uploadProgress: UploadProgress}>({- audioInputLevelChange: "audio-input-level-change",- authenticationInvalid: "authentication-invalid",- currentRecordingChanged: "current-recording-changed",- downloadProgress: "download-progress",- editorStateChanged: "editor-state-changed",- newNotification: "new-notification",- newScreenshotAdded: "new-screenshot-added",- newStudioRecordingAdded: "new-studio-recording-added",- onEscapePress: "on-escape-press",- recordingDeleted: "recording-deleted",- recordingEvent: "recording-event",- recordingOptionsChanged: "recording-options-changed",- recordingStarted: "recording-started",- recordingStopped: "recording-stopped",- renderFrameEvent: "render-frame-event",- requestNewScreenshot: "request-new-screenshot",- requestOpenSettings: "request-open-settings",- requestStartRecording: "request-start-recording",- targetUnderCursor: "target-under-cursor",- uploadProgress: "upload-progress",-});+audioInputLevelChange: "audio-input-level-change",+authenticationInvalid: "authentication-invalid",+currentRecordingChanged: "current-recording-changed",+downloadProgress: "download-progress",+editorStateChanged: "editor-state-changed",+newNotification: "new-notification",+newScreenshotAdded: "new-screenshot-added",+newStudioRecordingAdded: "new-studio-recording-added",+onEscapePress: "on-escape-press",+recordingDeleted: "recording-deleted",+recordingEvent: "recording-event",+recordingOptionsChanged: "recording-options-changed",+recordingStarted: "recording-started",+recordingStopped: "recording-stopped",+renderFrameEvent: "render-frame-event",+requestNewScreenshot: "request-new-screenshot",+requestOpenSettings: "request-open-settings",+requestStartRecording: "request-start-recording",+targetUnderCursor: "target-under-cursor",+uploadProgress: "upload-progress"+})/** user-defined constants **/++/** user-defined types **/-export type AppTheme = "system" | "light" | "dark";-export type AspectRatio = "wide" | "vertical" | "square" | "classic" | "tall";-export type Audio = {- duration: number;- sample_rate: number;- channels: number;- start_time: number;-};-export type AudioConfiguration = {- mute: boolean;- improve: boolean;- micVolumeDb?: number;- micStereoMode?: StereoMode;- systemVolumeDb?: number;-};-export type AudioInputLevelChange = number;-export type AudioMeta = {- path: string;- /**- * unix time of the first frame- */- start_time?: number | null;-};-export type AuthSecret =- | { api_key: string }- | { token: string; expires: number };-export type AuthStore = {- secret: AuthSecret;- user_id: string | null;- plan: Plan | null;- intercom_hash: string | null;-};-export type AuthenticationInvalid = null;-export type BackgroundConfiguration = {- source: BackgroundSource;- blur: number;- padding: number;- rounding: number;- inset: number;- crop: Crop | null;- shadow?: number;- advancedShadow?: ShadowConfiguration | null;-};-export type BackgroundSource =- | { type: "wallpaper"; path: string | null }- | { type: "image"; path: string | null }- | { type: "color"; value: [number, number, number] }- | {- type: "gradient";- from: [number, number, number];- to: [number, number, number];- angle?: number;- };-export type Camera = {- hide: boolean;- mirror: boolean;- position: CameraPosition;- size: number;- zoom_size: number | null;- rounding?: number;- shadow?: number;- advanced_shadow?: ShadowConfiguration | null;- shape?: CameraShape;-};-export type CameraInfo = {- device_id: string;- model_id: ModelIDType | null;- display_name: string;-};-export type CameraPosition = { x: CameraXPosition; y: CameraYPosition };-export type CameraPreviewShape = "round" | "square" | "full";-export type CameraPreviewSize = "sm" | "lg";-export type CameraPreviewState = {- size: CameraPreviewSize;- shape: CameraPreviewShape;- mirrored: boolean;-};-export type CameraShape = "square" | "source";-export type CameraXPosition = "left" | "center" | "right";-export type CameraYPosition = "top" | "bottom";-export type CaptionData = {- segments: CaptionSegment[];- settings: CaptionSettings | null;-};-export type CaptionSegment = {- id: string;- start: number;- end: number;- text: string;-};-export type CaptionSettings = {- enabled: boolean;- font: string;- size: number;- color: string;- backgroundColor: string;- backgroundOpacity: number;- position: string;- bold: boolean;- italic: boolean;- outline: boolean;- outlineColor: string;- exportWithSubtitles: boolean;-};-export type CaptionsData = {- segments: CaptionSegment[];- settings: CaptionSettings;-};-export type CaptureDisplay = {- id: DisplayId;- name: string;- refresh_rate: number;-};-export type CaptureWindow = {- id: WindowId;- owner_name: string;- name: string;- bounds: LogicalBounds;- refresh_rate: number;-};-export type CommercialLicense = {- licenseKey: string;- expiryDate: number | null;- refresh: number;- activatedOn: number;-};-export type Crop = { position: XY<number>; size: XY<number> };-export type CurrentRecording = {- target: CurrentRecordingTarget;- mode: RecordingMode;-};-export type CurrentRecordingChanged = null;-export type CurrentRecordingTarget =- | { window: { id: WindowId; bounds: LogicalBounds } }- | { screen: { id: DisplayId } }- | { area: { screen: DisplayId; bounds: LogicalBounds } };-export type CursorAnimationStyle = "regular" | "slow" | "fast";-export type CursorConfiguration = {- hide?: boolean;- hideWhenIdle: boolean;- size: number;- type: CursorType;- animationStyle: CursorAnimationStyle;- tension: number;- mass: number;- friction: number;- raw?: boolean;- motionBlur?: number;- useSvg?: boolean;-};-export type CursorMeta = {- imagePath: string;- hotspot: XY<number>;- shape?: string | null;-};-export type CursorType = "pointer" | "circle";-export type Cursors =- | { [key in string]: string }- | { [key in string]: CursorMeta };-export type DeviceOrModelID = { DeviceID: string } | { ModelID: ModelIDType };-export type DisplayId = string;-export type DisplayInformation = {- name: string | null;- physical_size: PhysicalSize | null;- refresh_rate: string;-};-export type DownloadProgress = { progress: number; message: string };-export type EditorStateChanged = { playhead_position: number };-export type ExportCompression = "Minimal" | "Social" | "Web" | "Potato";-export type ExportEstimates = {- duration_seconds: number;- estimated_time_seconds: number;- estimated_size_mb: number;-};-export type ExportSettings =- | ({ format: "Mp4" } & Mp4ExportSettings)- | ({ format: "Gif" } & GifExportSettings);-export type FileType = "recording" | "screenshot";-export type Flags = { captions: boolean };-export type FramesRendered = {- renderedCount: number;- totalFrames: number;- type: "FramesRendered";-};-export type GeneralSettingsStore = {- instanceId?: string;- uploadIndividualFiles?: boolean;- hideDockIcon?: boolean;- hapticsEnabled?: boolean;- autoCreateShareableLink?: boolean;- enableNotifications?: boolean;- disableAutoOpenLinks?: boolean;- hasCompletedStartup?: boolean;- theme?: AppTheme;- commercialLicense?: CommercialLicense | null;- lastVersion?: string | null;- windowTransparency?: boolean;- postStudioRecordingBehaviour?: PostStudioRecordingBehaviour;- mainWindowRecordingStartBehaviour?: MainWindowRecordingStartBehaviour;- custom_cursor_capture2?: boolean;- serverUrl?: string;- recordingCountdown?: number | null;- enableNativeCameraPreview: boolean;- autoZoomOnClicks?: boolean;- enableNewRecordingFlow: boolean;- postDeletionBehaviour?: PostDeletionBehaviour;-};-export type GifExportSettings = {- fps: number;- resolution_base: XY<number>;- quality: GifQuality | null;-};-export type GifQuality = {- /**- * Encoding quality from 1-100 (default: 90)- */- quality: number | null;- /**- * Whether to prioritize speed over quality (default: false)- */- fast: boolean | null;-};-export type HapticPattern = "Alignment" | "LevelChange" | "Generic";-export type HapticPerformanceTime = "Default" | "Now" | "DrawCompleted";-export type Hotkey = {- code: string;- meta: boolean;- ctrl: boolean;- alt: boolean;- shift: boolean;-};-export type HotkeyAction =- | "startRecording"- | "stopRecording"- | "restartRecording";-export type HotkeysConfiguration = { show: boolean };-export type HotkeysStore = { hotkeys: { [key in HotkeyAction]: Hotkey } };-export type InstantRecordingMeta = { fps: number; sample_rate: number | null };-export type JsonValue<T> = [T];-export type LayoutMode = "default" | "cameraOnly" | "hideCamera";-export type LayoutSegment = { start: number; end: number; mode?: LayoutMode };-export type LogicalBounds = { position: LogicalPosition; size: LogicalSize };-export type LogicalPosition = { x: number; y: number };-export type LogicalSize = { width: number; height: number };-export type MainWindowRecordingStartBehaviour = "close" | "minimise";-export type ModelIDType = string;-export type Mp4ExportSettings = {- fps: number;- resolution_base: XY<number>;- compression: ExportCompression;-};-export type MultipleSegment = {- display: VideoMeta;- camera?: VideoMeta | null;- mic?: AudioMeta | null;- system_audio?: AudioMeta | null;- cursor?: string | null;-};-export type MultipleSegments = {- segments: MultipleSegment[];- cursors: Cursors;-};-export type NewNotification = {- title: string;- body: string;- is_error: boolean;-};-export type NewScreenshotAdded = { path: string };-export type NewStudioRecordingAdded = { path: string };-export type OSPermission =- | "screenRecording"- | "camera"- | "microphone"- | "accessibility";-export type OSPermissionStatus = "notNeeded" | "empty" | "granted" | "denied";-export type OSPermissionsCheck = {- screenRecording: OSPermissionStatus;- microphone: OSPermissionStatus;- camera: OSPermissionStatus;- accessibility: OSPermissionStatus;-};-export type OnEscapePress = null;-export type PhysicalSize = { width: number; height: number };-export type Plan = { upgraded: boolean; manual: boolean; last_checked: number };-export type Platform = "MacOS" | "Windows";-export type PostDeletionBehaviour = "doNothing" | "reopenRecordingWindow";-export type PostStudioRecordingBehaviour = "openEditor" | "showOverlay";-export type Preset = { name: string; config: ProjectConfiguration };-export type PresetsStore = { presets: Preset[]; default: number | null };-export type ProjectConfiguration = {- aspectRatio: AspectRatio | null;- background: BackgroundConfiguration;- camera: Camera;- audio: AudioConfiguration;- cursor: CursorConfiguration;- hotkeys: HotkeysConfiguration;- timeline?: TimelineConfiguration | null;- captions?: CaptionsData | null;-};-export type ProjectRecordingsMeta = { segments: SegmentRecordings[] };-export type RecordingDeleted = { path: string };-export type RecordingEvent =- | { variant: "Countdown"; value: number }- | { variant: "Started" }- | { variant: "Stopped" }- | { variant: "Failed"; error: string };-export type RecordingMeta = (StudioRecordingMeta | InstantRecordingMeta) & {- platform?: Platform | null;- pretty_name: string;- sharing?: SharingMeta | null;-};-export type RecordingMetaWithMode = ((- | StudioRecordingMeta- | InstantRecordingMeta-) & {- platform?: Platform | null;- pretty_name: string;- sharing?: SharingMeta | null;-}) & { mode: RecordingMode };-export type RecordingMode = "studio" | "instant";-export type RecordingOptionsChanged = null;-export type RecordingStarted = null;-export type RecordingStopped = null;-export type RenderFrameEvent = {- frame_number: number;- fps: number;- resolution_base: XY<number>;-};-export type RequestNewScreenshot = null;-export type RequestOpenSettings = { page: string };-export type RequestStartRecording = null;-export type S3UploadMeta = { id: string };-export type ScreenCaptureTarget =- | { variant: "window"; id: WindowId }- | { variant: "display"; id: DisplayId }- | { variant: "area"; screen: DisplayId; bounds: LogicalBounds };-export type SegmentRecordings = {- display: Video;- camera: Video | null;- mic: Audio | null;- system_audio: Audio | null;-};-export type SerializedEditorInstance = {- framesSocketUrl: string;- recordingDuration: number;- savedProjectConfig: ProjectConfiguration;- recordings: ProjectRecordingsMeta;- path: string;-};-export type ShadowConfiguration = {- size: number;- opacity: number;- blur: number;-};-export type SharingMeta = { id: string; link: string };-export type ShowCapWindow =- | "Setup"- | "Main"- | { Settings: { page: string | null } }- | { Editor: { project_path: string } }- | "RecordingsOverlay"- | { WindowCaptureOccluder: { screen_id: DisplayId } }- | { TargetSelectOverlay: { display_id: DisplayId } }- | { CaptureArea: { screen_id: DisplayId } }- | "Camera"- | { InProgressRecording: { countdown: number | null } }- | "Upgrade"- | "ModeSelect";-export type SingleSegment = {- display: VideoMeta;- camera?: VideoMeta | null;- audio?: AudioMeta | null;- cursor?: string | null;-};-export type StartRecordingInputs = {- capture_target: ScreenCaptureTarget;- capture_system_audio?: boolean;- mode: RecordingMode;-};-export type StereoMode = "stereo" | "monoL" | "monoR";-export type StudioRecordingMeta =- | { segment: SingleSegment }- | { inner: MultipleSegments };-export type TargetUnderCursor = {- display_id: DisplayId | null;- window: WindowUnderCursor | null;-};-export type TimelineConfiguration = {- segments: TimelineSegment[];- zoomSegments: ZoomSegment[];- layoutSegments?: LayoutSegment[];-};-export type TimelineSegment = {- recordingSegment?: number;- timescale: number;- start: number;- end: number;-};-export type UploadMode =- | { Initial: { pre_created_video: VideoUploadInfo | null } }- | "Reupload";-export type UploadProgress = { progress: number };-export type UploadResult =- | { Success: string }- | "NotAuthenticated"- | "PlanCheckFailed"- | "UpgradeRequired";-export type Video = {- duration: number;- width: number;- height: number;- fps: number;- start_time: number;-};-export type VideoMeta = {- path: string;- fps?: number;- /**- * unix time of the first frame- */- start_time?: number | null;-};-export type VideoRecordingMetadata = { duration: number; size: number };-export type VideoUploadInfo = {- id: string;- link: string;- config: S3UploadMeta;-};-export type WindowId = string;-export type WindowUnderCursor = {- id: WindowId;- app_name: string;- bounds: LogicalBounds;-};-export type XY<T> = { x: T; y: T };-export type ZoomMode = "auto" | { manual: { x: number; y: number } };-export type ZoomSegment = {- start: number;- end: number;- amount: number;- mode: ZoomMode;-};+export type AppTheme = "system" | "light" | "dark"+export type AspectRatio = "wide" | "vertical" | "square" | "classic" | "tall"+export type Audio = { duration: number; sample_rate: number; channels: number; start_time: number }+export type AudioConfiguration = { mute: boolean; improve: boolean; micVolumeDb?: number; micStereoMode?: StereoMode; systemVolumeDb?: number }+export type AudioInputLevelChange = number+export type AudioMeta = { path: string;+/**+ * unix time of the first frame+ */+start_time?: number | null }+export type AuthSecret = { api_key: string } | { token: string; expires: number }+export type AuthStore = { secret: AuthSecret; user_id: string | null; plan: Plan | null; intercom_hash: string | null }+export type AuthenticationInvalid = null+export type BackgroundConfiguration = { source: BackgroundSource; blur: number; padding: number; rounding: number; inset: number; crop: Crop | null; shadow?: number; advancedShadow?: ShadowConfiguration | null }+export type BackgroundSource = { type: "wallpaper"; path: string | null } | { type: "image"; path: string | null } | { type: "color"; value: [number, number, number] } | { type: "gradient"; from: [number, number, number]; to: [number, number, number]; angle?: number }+export type Camera = { hide: boolean; mirror: boolean; position: CameraPosition; size: number; zoom_size: number | null; rounding?: number; shadow?: number; advanced_shadow?: ShadowConfiguration | null; shape?: CameraShape }+export type CameraInfo = { device_id: string; model_id: ModelIDType | null; display_name: string }+export type CameraPosition = { x: CameraXPosition; y: CameraYPosition }+export type CameraPreviewShape = "round" | "square" | "full"+export type CameraPreviewSize = "sm" | "lg"+export type CameraPreviewState = { size: CameraPreviewSize; shape: CameraPreviewShape; mirrored: boolean }+export type CameraShape = "square" | "source"+export type CameraXPosition = "left" | "center" | "right"+export type CameraYPosition = "top" | "bottom"+export type CaptionData = { segments: CaptionSegment[]; settings: CaptionSettings | null }+export type CaptionSegment = { id: string; start: number; end: number; text: string }+export type CaptionSettings = { enabled: boolean; font: string; size: number; color: string; backgroundColor: string; backgroundOpacity: number; position: string; bold: boolean; italic: boolean; outline: boolean; outlineColor: string; exportWithSubtitles: boolean }+export type CaptionsData = { segments: CaptionSegment[]; settings: CaptionSettings }+export type CaptureDisplay = { id: DisplayId; name: string; refresh_rate: number }+export type CaptureWindow = { id: WindowId; owner_name: string; name: string; bounds: LogicalBounds; refresh_rate: number }+export type CommercialLicense = { licenseKey: string; expiryDate: number | null; refresh: number; activatedOn: number }+export type Crop = { position: XY<number>; size: XY<number> }+export type CurrentRecording = { target: CurrentRecordingTarget; mode: RecordingMode }+export type CurrentRecordingChanged = null+export type CurrentRecordingTarget = { window: { id: WindowId; bounds: LogicalBounds } } | { screen: { id: DisplayId } } | { area: { screen: DisplayId; bounds: LogicalBounds } }+export type CursorAnimationStyle = "regular" | "slow" | "fast"+export type CursorConfiguration = { hide?: boolean; hideWhenIdle: boolean; size: number; type: CursorType; animationStyle: CursorAnimationStyle; tension: number; mass: number; friction: number; raw?: boolean; motionBlur?: number; useSvg?: boolean }+export type CursorMeta = { imagePath: string; hotspot: XY<number>; shape?: string | null }+export type CursorType = "pointer" | "circle"+export type Cursors = { [key in string]: string } | { [key in string]: CursorMeta }+export type DeviceOrModelID = { DeviceID: string } | { ModelID: ModelIDType }+export type DisplayId = string+export type DisplayInformation = { name: string | null; physical_size: PhysicalSize | null; refresh_rate: string }+export type DownloadProgress = { progress: number; message: string }+export type EditorStateChanged = { playhead_position: number }+export type ExportCompression = "Minimal" | "Social" | "Web" | "Potato"+export type ExportEstimates = { duration_seconds: number; estimated_time_seconds: number; estimated_size_mb: number }+export type ExportSettings = ({ format: "Mp4" } & Mp4ExportSettings) | ({ format: "Gif" } & GifExportSettings)+export type FileType = "recording" | "screenshot"+export type Flags = { captions: boolean }+export type FramesRendered = { renderedCount: number; totalFrames: number; type: "FramesRendered" }+export type GeneralSettingsStore = { instanceId?: string; uploadIndividualFiles?: boolean; hideDockIcon?: boolean; hapticsEnabled?: boolean; autoCreateShareableLink?: boolean; enableNotifications?: boolean; disableAutoOpenLinks?: boolean; hasCompletedStartup?: boolean; theme?: AppTheme; commercialLicense?: CommercialLicense | null; lastVersion?: string | null; windowTransparency?: boolean; postStudioRecordingBehaviour?: PostStudioRecordingBehaviour; mainWindowRecordingStartBehaviour?: MainWindowRecordingStartBehaviour; custom_cursor_capture2?: boolean; serverUrl?: string; recordingCountdown?: number | null; enableNativeCameraPreview: boolean; autoZoomOnClicks?: boolean; enableNewRecordingFlow: boolean; postDeletionBehaviour?: PostDeletionBehaviour }+export type GifExportSettings = { fps: number; resolution_base: XY<number>; quality: GifQuality | null }+export type GifQuality = {+/**+ * Encoding quality from 1-100 (default: 90)+ */+quality: number | null;+/**+ * Whether to prioritize speed over quality (default: false)+ */+fast: boolean | null }+export type HapticPattern = "Alignment" | "LevelChange" | "Generic"+export type HapticPerformanceTime = "Default" | "Now" | "DrawCompleted"+export type Hotkey = { code: string; meta: boolean; ctrl: boolean; alt: boolean; shift: boolean }+export type HotkeyAction = "startRecording" | "stopRecording" | "restartRecording"+export type HotkeysConfiguration = { show: boolean }+export type HotkeysStore = { hotkeys: { [key in HotkeyAction]: Hotkey } }+export type InstantRecordingMeta = { fps: number; sample_rate: number | null }+export type JsonValue<T> = [T]+export type LayoutMode = "default" | "cameraOnly" | "hideCamera"+export type LayoutSegment = { start: number; end: number; mode?: LayoutMode }+export type LogicalBounds = { position: LogicalPosition; size: LogicalSize }+export type LogicalPosition = { x: number; y: number }+export type LogicalSize = { width: number; height: number }+export type MainWindowRecordingStartBehaviour = "close" | "minimise"+export type ModelIDType = string+export type Mp4ExportSettings = { fps: number; resolution_base: XY<number>; compression: ExportCompression }+export type MultipleSegment = { display: VideoMeta; camera?: VideoMeta | null; mic?: AudioMeta | null; system_audio?: AudioMeta | null; cursor?: string | null }+export type MultipleSegments = { segments: MultipleSegment[]; cursors: Cursors }+export type NewNotification = { title: string; body: string; is_error: boolean }+export type NewScreenshotAdded = { path: string }+export type NewStudioRecordingAdded = { path: string }+export type OSPermission = "screenRecording" | "camera" | "microphone" | "accessibility"+export type OSPermissionStatus = "notNeeded" | "empty" | "granted" | "denied"+export type OSPermissionsCheck = { screenRecording: OSPermissionStatus; microphone: OSPermissionStatus; camera: OSPermissionStatus; accessibility: OSPermissionStatus }+export type OnEscapePress = null+export type PhysicalSize = { width: number; height: number }+export type Plan = { upgraded: boolean; manual: boolean; last_checked: number }+export type Platform = "MacOS" | "Windows"+export type PostDeletionBehaviour = "doNothing" | "reopenRecordingWindow"+export type PostStudioRecordingBehaviour = "openEditor" | "showOverlay"+export type Preset = { name: string; config: ProjectConfiguration }+export type PresetsStore = { presets: Preset[]; default: number | null }+export type ProjectConfiguration = { aspectRatio: AspectRatio | null; background: BackgroundConfiguration; camera: Camera; audio: AudioConfiguration; cursor: CursorConfiguration; hotkeys: HotkeysConfiguration; timeline?: TimelineConfiguration | null; captions?: CaptionsData | null }+export type ProjectRecordingsMeta = { segments: SegmentRecordings[] }+export type RecordingDeleted = { path: string }+export type RecordingEvent = { variant: "Countdown"; value: number } | { variant: "Started" } | { variant: "Stopped" } | { variant: "Failed"; error: string }+export type RecordingMeta = (StudioRecordingMeta | InstantRecordingMeta) & { platform?: Platform | null; pretty_name: string; sharing?: SharingMeta | null }+export type RecordingMetaWithMode = ((StudioRecordingMeta | InstantRecordingMeta) & { platform?: Platform | null; pretty_name: string; sharing?: SharingMeta | null }) & { mode: RecordingMode }+export type RecordingMode = "studio" | "instant"+export type RecordingOptionsChanged = null+export type RecordingStarted = null+export type RecordingStopped = null+export type RenderFrameEvent = { frame_number: number; fps: number; resolution_base: XY<number> }+export type RequestNewScreenshot = null+export type RequestOpenSettings = { page: string }+export type RequestStartRecording = null+export type S3UploadMeta = { id: string }+export type ScreenCaptureTarget = { variant: "window"; id: WindowId } | { variant: "display"; id: DisplayId } | { variant: "area"; screen: DisplayId; bounds: LogicalBounds }+export type SegmentRecordings = { display: Video; camera: Video | null; mic: Audio | null; system_audio: Audio | null }+export type SerializedEditorInstance = { framesSocketUrl: string; recordingDuration: number; savedProjectConfig: ProjectConfiguration; recordings: ProjectRecordingsMeta; path: string }+export type ShadowConfiguration = { size: number; opacity: number; blur: number }+export type SharingMeta = { id: string; link: string }+export type ShowCapWindow = "Setup" | "Main" | { Settings: { page: string | null } } | { Editor: { project_path: string } } | "RecordingsOverlay" | { WindowCaptureOccluder: { screen_id: DisplayId } } | { TargetSelectOverlay: { display_id: DisplayId } } | { CaptureArea: { screen_id: DisplayId } } | "Camera" | { InProgressRecording: { countdown: number | null } } | "Upgrade" | "ModeSelect"+export type SingleSegment = { display: VideoMeta; camera?: VideoMeta | null; audio?: AudioMeta | null; cursor?: string | null }+export type StartRecordingInputs = { capture_target: ScreenCaptureTarget; capture_system_audio?: boolean; mode: RecordingMode }+export type StereoMode = "stereo" | "monoL" | "monoR"+export type StudioRecordingMeta = { segment: SingleSegment } | { inner: MultipleSegments }+export type TargetUnderCursor = { display_id: DisplayId | null; window: WindowUnderCursor | null }+export type TimelineConfiguration = { segments: TimelineSegment[]; zoomSegments: ZoomSegment[]; layoutSegments?: LayoutSegment[] }+export type TimelineSegment = { recordingSegment?: number; timescale: number; start: number; end: number }+export type UploadMode = { Initial: { pre_created_video: VideoUploadInfo | null } } | "Reupload"+export type UploadProgress = { progress: number }+export type UploadResult = { Success: string } | "NotAuthenticated" | "PlanCheckFailed" | "UpgradeRequired"+export type Video = { duration: number; width: number; height: number; fps: number; start_time: number }+export type VideoMeta = { path: string; fps?: number;+/**+ * unix time of the first frame+ */+start_time?: number | null }+export type VideoRecordingMetadata = { duration: number; size: number }+export type VideoUploadInfo = { id: string; link: string; config: S3UploadMeta }+export type WindowId = string+export type WindowUnderCursor = { id: WindowId; app_name: string; bounds: LogicalBounds }+export type XY<T> = { x: T; y: T }+export type ZoomMode = "auto" | { manual: { x: number; y: number } }+export type ZoomSegment = { start: number; end: number; amount: number; mode: ZoomMode }/** tauri-specta globals **/import {- type Channel as TAURI_CHANNEL,invoke as TAURI_INVOKE,+ Channel as TAURI_CHANNEL,} from "@tauri-apps/api/core";import * as TAURI_API_EVENT from "@tauri-apps/api/event";-import type { WebviewWindow as __WebviewWindow__ } from "@tauri-apps/api/webviewWindow";+import { type WebviewWindow as __WebviewWindow__ } from "@tauri-apps/api/webviewWindow";type __EventObj__<T> = {listen: (@@ -833,8 +487,9 @@ function __makeEvents__<T extends Record<string, any>>() {return new Proxy({} as unknown as {- [K in keyof T]: __EventObj__<T[K]> &- ((handle: __WebviewWindow__) => __EventObj__<T[K]>);+ [K in keyof T]: __EventObj__<T[K]> & {+ (handle: __WebviewWindow__): __EventObj__<T[K]>;+ };},{get: (_, event) => {diff --git a/biome.json b/biome.jsonindex 550497650..f2a353d51 100644--- a/biome.json+++ b/biome.json@@ -6,6 +6,11 @@"useIgnoreFile": true},"files": {+ "includes": [+ "**",+ "!apps/desktop/src/utils/tauri.ts",+ "!packages/ui-solid/src/auto-imports.d.ts"+ ],"ignoreUnknown": false},"formatter": {diff --git a/packages/ui-solid/src/auto-imports.d.ts b/packages/ui-solid/src/auto-imports.d.tsindex e73ebf83a..d904ed443 100644--- a/packages/ui-solid/src/auto-imports.d.ts+++ b/packages/ui-solid/src/auto-imports.d.ts@@ -4,89 +4,89 @@// noinspection JSUnusedGlobalSymbols// Generated by unplugin-auto-import// biome-ignore lint: disable-export {};+export {}declare global {- const IconCapArrows: typeof import("~icons/cap/arrows.jsx")["default"];- const IconCapAudioOn: typeof import("~icons/cap/audio-on.jsx")["default"];- const IconCapBgBlur: typeof import("~icons/cap/bg-blur.jsx")["default"];- const IconCapCamera: typeof import("~icons/cap/camera.jsx")["default"];- const IconCapCaptions: typeof import("~icons/cap/captions.jsx")["default"];- const IconCapCaretDown: typeof import("~icons/cap/caret-down.jsx")["default"];- const IconCapChevronDown: typeof import("~icons/cap/chevron-down.jsx")["default"];- const IconCapCircle: typeof import("~icons/cap/circle.jsx")["default"];- const IconCapCircleCheck: typeof import("~icons/cap/circle-check.jsx")["default"];- const IconCapCirclePlus: typeof import("~icons/cap/circle-plus.jsx")["default"];- const IconCapCircleX: typeof import("~icons/cap/circle-x.jsx")["default"];- const IconCapCopy: typeof import("~icons/cap/copy.jsx")["default"];- const IconCapCorners: typeof import("~icons/cap/corners.jsx")["default"];- const IconCapCrop: typeof import("~icons/cap/crop.jsx")["default"];- const IconCapCursor: typeof import("~icons/cap/cursor.jsx")["default"];- const IconCapEditor: typeof import("~icons/cap/editor.jsx")["default"];- const IconCapEnlarge: typeof import("~icons/cap/enlarge.jsx")["default"];- const IconCapFile: typeof import("~icons/cap/file.jsx")["default"];- const IconCapFilmCut: typeof import("~icons/cap/film-cut.jsx")["default"];- const IconCapGauge: typeof import("~icons/cap/gauge.jsx")["default"];- const IconCapGear: typeof import("~icons/cap/gear.jsx")["default"];- const IconCapHotkeys: typeof import("~icons/cap/hotkeys.jsx")["default"];- const IconCapImage: typeof import("~icons/cap/image.jsx")["default"];- const IconCapInfo: typeof import("~icons/cap/info.jsx")["default"];- const IconCapInstant: typeof import("~icons/cap/instant.jsx")["default"];- const IconCapLayout: typeof import("~icons/cap/layout.jsx")["default"];- const IconCapLink: typeof import("~icons/cap/link.jsx")["default"];- const IconCapLogo: typeof import("~icons/cap/logo.jsx")["default"];- const IconCapLogoFull: typeof import("~icons/cap/logo-full.jsx")["default"];- const IconCapLogoFullDark: typeof import("~icons/cap/logo-full-dark.jsx")["default"];- const IconCapMessageBubble: typeof import("~icons/cap/message-bubble.jsx")["default"];- const IconCapMicrophone: typeof import("~icons/cap/microphone.jsx")["default"];- const IconCapMoreVertical: typeof import("~icons/cap/more-vertical.jsx")["default"];- const IconCapNext: typeof import("~icons/cap/next.jsx")["default"];- const IconCapPadding: typeof import("~icons/cap/padding.jsx")["default"];- const IconCapPause: typeof import("~icons/cap/pause.jsx")["default"];- const IconCapPauseCircle: typeof import("~icons/cap/pause-circle.jsx")["default"];- const IconCapPlay: typeof import("~icons/cap/play.jsx")["default"];- const IconCapPlayCircle: typeof import("~icons/cap/play-circle.jsx")["default"];- const IconCapPresets: typeof import("~icons/cap/presets.jsx")["default"];- const IconCapPrev: typeof import("~icons/cap/prev.jsx")["default"];- const IconCapRedo: typeof import("~icons/cap/redo.jsx")["default"];- const IconCapRestart: typeof import("~icons/cap/restart.jsx")["default"];- const IconCapScissors: typeof import("~icons/cap/scissors.jsx")["default"];- const IconCapSettings: typeof import("~icons/cap/settings.jsx")["default"];- const IconCapShadow: typeof import("~icons/cap/shadow.jsx")["default"];- const IconCapSquare: typeof import("~icons/cap/square.jsx")["default"];- const IconCapStopCircle: typeof import("~icons/cap/stop-circle.jsx")["default"];- const IconCapTrash: typeof import("~icons/cap/trash.jsx")["default"];- const IconCapUndo: typeof import("~icons/cap/undo.jsx")["default"];- const IconCapUpload: typeof import("~icons/cap/upload.jsx")["default"];- const IconCapX: typeof import("~icons/cap/x.jsx")["default"];- const IconCapZoomIn: typeof import("~icons/cap/zoom-in.jsx")["default"];- const IconCapZoomOut: typeof import("~icons/cap/zoom-out.jsx")["default"];- const IconHugeiconsEaseCurveControlPoints: typeof import("~icons/hugeicons/ease-curve-control-points.jsx")["default"];- const IconLucideAppWindowMac: typeof import("~icons/lucide/app-window-mac.jsx")["default"];- const IconLucideBell: typeof import("~icons/lucide/bell.jsx")["default"];- const IconLucideBug: typeof import("~icons/lucide/bug.jsx")["default"];- const IconLucideCheck: typeof import("~icons/lucide/check.jsx")["default"];- const IconLucideClock: typeof import("~icons/lucide/clock.jsx")["default"];- const IconLucideDatabase: typeof import("~icons/lucide/database.jsx")["default"];- const IconLucideEdit: typeof import("~icons/lucide/edit.jsx")["default"];- const IconLucideEye: typeof import("~icons/lucide/eye.jsx")["default"];- const IconLucideEyeOff: typeof import("~icons/lucide/eye-off.jsx")["default"];- const IconLucideFolder: typeof import("~icons/lucide/folder.jsx")["default"];- const IconLucideGift: typeof import("~icons/lucide/gift.jsx")["default"];- const IconLucideHardDrive: typeof import("~icons/lucide/hard-drive.jsx")["default"];- const IconLucideLayout: typeof import("~icons/lucide/layout.jsx")["default"];- const IconLucideLoaderCircle: typeof import("~icons/lucide/loader-circle.jsx")["default"];- const IconLucideMessageSquarePlus: typeof import("~icons/lucide/message-square-plus.jsx")["default"];- const IconLucideMicOff: typeof import("~icons/lucide/mic-off.jsx")["default"];- const IconLucideMonitor: typeof import("~icons/lucide/monitor.jsx")["default"];- const IconLucideRectangleHorizontal: typeof import("~icons/lucide/rectangle-horizontal.jsx")["default"];- const IconLucideRotateCcw: typeof import("~icons/lucide/rotate-ccw.jsx")["default"];- const IconLucideSearch: typeof import("~icons/lucide/search.jsx")["default"];- const IconLucideSquarePlay: typeof import("~icons/lucide/square-play.jsx")["default"];- const IconLucideUnplug: typeof import("~icons/lucide/unplug.jsx")["default"];- const IconLucideVolume2: typeof import("~icons/lucide/volume2.jsx")["default"];- const IconLucideVolumeX: typeof import("~icons/lucide/volume-x.jsx")["default"];- const IconMaterialSymbolsScreenshotFrame2Rounded: typeof import("~icons/material-symbols/screenshot-frame2-rounded.jsx")["default"];- const IconMdiLoading: typeof import("~icons/mdi/loading.jsx")["default"];- const IconMdiMonitor: typeof import("~icons/mdi/monitor.jsx")["default"];- const IconPhMonitorBold: typeof import("~icons/ph/monitor-bold.jsx")["default"];+ const IconCapArrows: typeof import("~icons/cap/arrows.jsx")["default"]+ const IconCapAudioOn: typeof import("~icons/cap/audio-on.jsx")["default"]+ const IconCapBgBlur: typeof import("~icons/cap/bg-blur.jsx")["default"]+ const IconCapCamera: typeof import('~icons/cap/camera.jsx')['default']+ const IconCapCaptions: typeof import("~icons/cap/captions.jsx")["default"]+ const IconCapCaretDown: typeof import("~icons/cap/caret-down.jsx")["default"]+ const IconCapChevronDown: typeof import("~icons/cap/chevron-down.jsx")["default"]+ const IconCapCircle: typeof import("~icons/cap/circle.jsx")["default"]+ const IconCapCircleCheck: typeof import("~icons/cap/circle-check.jsx")["default"]+ const IconCapCirclePlus: typeof import("~icons/cap/circle-plus.jsx")["default"]+ const IconCapCircleX: typeof import("~icons/cap/circle-x.jsx")["default"]+ const IconCapCopy: typeof import("~icons/cap/copy.jsx")["default"]+ const IconCapCorners: typeof import("~icons/cap/corners.jsx")["default"]+ const IconCapCrop: typeof import("~icons/cap/crop.jsx")["default"]+ const IconCapCursor: typeof import("~icons/cap/cursor.jsx")["default"]+ const IconCapEditor: typeof import("~icons/cap/editor.jsx")["default"]+ const IconCapEnlarge: typeof import("~icons/cap/enlarge.jsx")["default"]+ const IconCapFile: typeof import("~icons/cap/file.jsx")["default"]+ const IconCapFilmCut: typeof import("~icons/cap/film-cut.jsx")["default"]+ const IconCapGauge: typeof import("~icons/cap/gauge.jsx")["default"]+ const IconCapGear: typeof import("~icons/cap/gear.jsx")["default"]+ const IconCapHotkeys: typeof import("~icons/cap/hotkeys.jsx")["default"]+ const IconCapImage: typeof import("~icons/cap/image.jsx")["default"]+ const IconCapInfo: typeof import("~icons/cap/info.jsx")["default"]+ const IconCapInstant: typeof import("~icons/cap/instant.jsx")["default"]+ const IconCapLayout: typeof import("~icons/cap/layout.jsx")["default"]+ const IconCapLink: typeof import("~icons/cap/link.jsx")["default"]+ const IconCapLogo: typeof import('~icons/cap/logo.jsx')['default']+ const IconCapLogoFull: typeof import("~icons/cap/logo-full.jsx")["default"]+ const IconCapLogoFullDark: typeof import("~icons/cap/logo-full-dark.jsx")["default"]+ const IconCapMessageBubble: typeof import("~icons/cap/message-bubble.jsx")["default"]+ const IconCapMicrophone: typeof import('~icons/cap/microphone.jsx')['default']+ const IconCapMoreVertical: typeof import("~icons/cap/more-vertical.jsx")["default"]+ const IconCapNext: typeof import("~icons/cap/next.jsx")["default"]+ const IconCapPadding: typeof import("~icons/cap/padding.jsx")["default"]+ const IconCapPause: typeof import("~icons/cap/pause.jsx")["default"]+ const IconCapPauseCircle: typeof import("~icons/cap/pause-circle.jsx")["default"]+ const IconCapPlay: typeof import("~icons/cap/play.jsx")["default"]+ const IconCapPlayCircle: typeof import("~icons/cap/play-circle.jsx")["default"]+ const IconCapPresets: typeof import("~icons/cap/presets.jsx")["default"]+ const IconCapPrev: typeof import("~icons/cap/prev.jsx")["default"]+ const IconCapRedo: typeof import("~icons/cap/redo.jsx")["default"]+ const IconCapRestart: typeof import("~icons/cap/restart.jsx")["default"]+ const IconCapScissors: typeof import("~icons/cap/scissors.jsx")["default"]+ const IconCapSettings: typeof import('~icons/cap/settings.jsx')['default']+ const IconCapShadow: typeof import("~icons/cap/shadow.jsx")["default"]+ const IconCapSquare: typeof import("~icons/cap/square.jsx")["default"]+ const IconCapStopCircle: typeof import("~icons/cap/stop-circle.jsx")["default"]+ const IconCapTrash: typeof import("~icons/cap/trash.jsx")["default"]+ const IconCapUndo: typeof import("~icons/cap/undo.jsx")["default"]+ const IconCapUpload: typeof import("~icons/cap/upload.jsx")["default"]+ const IconCapX: typeof import("~icons/cap/x.jsx")["default"]+ const IconCapZoomIn: typeof import("~icons/cap/zoom-in.jsx")["default"]+ const IconCapZoomOut: typeof import("~icons/cap/zoom-out.jsx")["default"]+ const IconHugeiconsEaseCurveControlPoints: typeof import("~icons/hugeicons/ease-curve-control-points.jsx")["default"]+ const IconLucideAppWindowMac: typeof import('~icons/lucide/app-window-mac.jsx')['default']+ const IconLucideBell: typeof import('~icons/lucide/bell.jsx')['default']+ const IconLucideBug: typeof import('~icons/lucide/bug.jsx')['default']+ const IconLucideCheck: typeof import("~icons/lucide/check.jsx")["default"]+ const IconLucideClock: typeof import("~icons/lucide/clock.jsx")["default"]+ const IconLucideDatabase: typeof import("~icons/lucide/database.jsx")["default"]+ const IconLucideEdit: typeof import("~icons/lucide/edit.jsx")["default"]+ const IconLucideEye: typeof import("~icons/lucide/eye.jsx")["default"]+ const IconLucideEyeOff: typeof import("~icons/lucide/eye-off.jsx")["default"]+ const IconLucideFolder: typeof import("~icons/lucide/folder.jsx")["default"]+ const IconLucideGift: typeof import("~icons/lucide/gift.jsx")["default"]+ const IconLucideHardDrive: typeof import("~icons/lucide/hard-drive.jsx")["default"]+ const IconLucideLayout: typeof import("~icons/lucide/layout.jsx")["default"]+ const IconLucideLoaderCircle: typeof import("~icons/lucide/loader-circle.jsx")["default"]+ const IconLucideMessageSquarePlus: typeof import("~icons/lucide/message-square-plus.jsx")["default"]+ const IconLucideMicOff: typeof import("~icons/lucide/mic-off.jsx")["default"]+ const IconLucideMonitor: typeof import("~icons/lucide/monitor.jsx")["default"]+ const IconLucideRectangleHorizontal: typeof import("~icons/lucide/rectangle-horizontal.jsx")["default"]+ const IconLucideRotateCcw: typeof import("~icons/lucide/rotate-ccw.jsx")["default"]+ const IconLucideSearch: typeof import("~icons/lucide/search.jsx")["default"]+ const IconLucideSquarePlay: typeof import('~icons/lucide/square-play.jsx')['default']+ const IconLucideUnplug: typeof import("~icons/lucide/unplug.jsx")["default"]+ const IconLucideVolume2: typeof import("~icons/lucide/volume2.jsx")["default"]+ const IconLucideVolumeX: typeof import("~icons/lucide/volume-x.jsx")["default"]+ const IconMaterialSymbolsScreenshotFrame2Rounded: typeof import('~icons/material-symbols/screenshot-frame2-rounded.jsx')['default']+ const IconMdiLoading: typeof import("~icons/mdi/loading.jsx")["default"]+ const IconMdiMonitor: typeof import('~icons/mdi/monitor.jsx')['default']+ const IconPhMonitorBold: typeof import('~icons/ph/monitor-bold.jsx')['default']}