ФУНКЦИИ - МЕЖПРОЕКТНАЯ КОММУНИКАЦИЯ: OpenAI pipeline и voice sessions
This commit is contained in:
@@ -76,10 +76,44 @@ export type TVoiceTaskPreflight = {
|
||||
access_mode: TWorkspaceAIAccessMode;
|
||||
};
|
||||
|
||||
export type TVoiceTaskIntent = "create_task" | "update_task" | "delete_task" | "unknown";
|
||||
export type TVoiceTaskPriority = "none" | "low" | "medium" | "high" | "urgent" | null;
|
||||
|
||||
export type TVoiceTaskDraft = {
|
||||
intent: TVoiceTaskIntent;
|
||||
target_memory_ref: string | null;
|
||||
project_hint: string | null;
|
||||
assignee_hint: string | null;
|
||||
title: string | null;
|
||||
description: string | null;
|
||||
due_date: string | null;
|
||||
due_time: string | null;
|
||||
priority: TVoiceTaskPriority;
|
||||
labels: string[];
|
||||
checklist: string[];
|
||||
confidence: {
|
||||
intent: number;
|
||||
project: number;
|
||||
assignee: number;
|
||||
task: number;
|
||||
};
|
||||
questions: string[];
|
||||
};
|
||||
|
||||
export type TVoiceTaskUploadResult = {
|
||||
ok: boolean;
|
||||
status?: "uploaded";
|
||||
pipeline_status?: "pending_openai_pipeline";
|
||||
status?: "uploaded" | "parsed";
|
||||
pipeline_status?: "pending_openai_pipeline" | "parsed";
|
||||
voice_session_id?: string;
|
||||
transcript?: string;
|
||||
intent?: TVoiceTaskIntent;
|
||||
draft?: TVoiceTaskDraft;
|
||||
warnings?: string[];
|
||||
requires_confirmation?: boolean;
|
||||
models?: {
|
||||
transcription: string;
|
||||
structuring: string;
|
||||
};
|
||||
audio?: {
|
||||
content_type: string;
|
||||
duration_seconds: number;
|
||||
|
||||
Reference in New Issue
Block a user