ФУНКЦИИ - МЕЖПРОЕКТНАЯ КОММУНИКАЦИЯ: preflight и запись audio для Voice Tasker
This commit is contained in:
@@ -65,3 +65,27 @@ export type TWorkspaceAIConnectionTestResult = {
|
||||
code?: string;
|
||||
error?: string;
|
||||
};
|
||||
|
||||
export type TVoiceTaskPreflightReason = "not_configured" | "disabled" | "missing_api_key" | "role_denied" | null;
|
||||
|
||||
export type TVoiceTaskPreflight = {
|
||||
available: boolean;
|
||||
reason: TVoiceTaskPreflightReason;
|
||||
max_audio_duration_seconds: number;
|
||||
accepted_mime_types: string[];
|
||||
access_mode: TWorkspaceAIAccessMode;
|
||||
};
|
||||
|
||||
export type TVoiceTaskUploadResult = {
|
||||
ok: boolean;
|
||||
status?: "uploaded";
|
||||
pipeline_status?: "pending_openai_pipeline";
|
||||
audio?: {
|
||||
content_type: string;
|
||||
duration_seconds: number;
|
||||
size: number;
|
||||
};
|
||||
client_context?: Record<string, unknown>;
|
||||
code?: string;
|
||||
error?: string;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user