🔧(frontend) get configs related to the recording feature

Get optional config related to the recording feature. RecordingMode will
be refactored as soon I start working on the recording feature.
This commit is contained in:
lebaudantoine
2024-11-13 19:14:59 +01:00
committed by aleb_the_flash
parent 28ca2d6c37
commit 840033fcbc

View File

@@ -2,6 +2,12 @@ import { fetchApi } from './fetchApi'
import { keys } from './queryKeys'
import { useQuery } from '@tanstack/react-query'
// todo - refactor it in a proper place
export enum RecordingMode {
Transcript = 'transcript',
ScreenRecording = 'screen_recording',
}
export interface ApiConfig {
analytics?: {
id: string
@@ -11,6 +17,10 @@ export interface ApiConfig {
id: string
}
silence_livekit_debug_logs?: boolean
recording?: {
is_enabled?: boolean
available_modes?: RecordingMode[]
}
}
const fetchConfig = (): Promise<ApiConfig> => {