ФУНКЦИИ - МЕЖПРОЕКТНАЯ КОММУНИКАЦИЯ: OpenAI pipeline и voice sessions

This commit is contained in:
DCCONSTRUCTIONS
2026-04-24 17:53:26 +03:00
parent 3c19c3175f
commit 1a20e19a93
7 changed files with 823 additions and 33 deletions
+36 -2
View File
@@ -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;