ФУНКЦИИ - МЕЖПРОЕКТНАЯ КОММУНИКАЦИЯ: resolver, commit и обновление доски Voice Tasker
This commit is contained in:
@@ -82,6 +82,7 @@ export type TVoiceTaskPriority = "none" | "low" | "medium" | "high" | "urgent" |
|
||||
export type TVoiceTaskDraft = {
|
||||
intent: TVoiceTaskIntent;
|
||||
target_memory_ref: string | null;
|
||||
project_id?: string | null;
|
||||
project_hint: string | null;
|
||||
assignee_hint: string | null;
|
||||
title: string | null;
|
||||
@@ -100,6 +101,29 @@ export type TVoiceTaskDraft = {
|
||||
questions: string[];
|
||||
};
|
||||
|
||||
export type TVoiceTaskResolution = {
|
||||
project: {
|
||||
id: string;
|
||||
name: string;
|
||||
identifier: string;
|
||||
confidence: number;
|
||||
source: string | null;
|
||||
} | null;
|
||||
assignee: {
|
||||
id: string;
|
||||
name: string;
|
||||
email: string | null;
|
||||
confidence: number;
|
||||
source: string | null;
|
||||
} | null;
|
||||
labels: {
|
||||
id: string;
|
||||
name: string;
|
||||
}[];
|
||||
warnings: string[];
|
||||
can_commit: boolean;
|
||||
};
|
||||
|
||||
export type TVoiceTaskUploadResult = {
|
||||
ok: boolean;
|
||||
status?: "uploaded" | "parsed";
|
||||
@@ -108,6 +132,7 @@ export type TVoiceTaskUploadResult = {
|
||||
transcript?: string;
|
||||
intent?: TVoiceTaskIntent;
|
||||
draft?: TVoiceTaskDraft;
|
||||
resolution?: TVoiceTaskResolution;
|
||||
warnings?: string[];
|
||||
requires_confirmation?: boolean;
|
||||
models?: {
|
||||
@@ -123,3 +148,17 @@ export type TVoiceTaskUploadResult = {
|
||||
code?: string;
|
||||
error?: string;
|
||||
};
|
||||
|
||||
export type TVoiceTaskCommitResult = {
|
||||
ok: boolean;
|
||||
status?: "created";
|
||||
voice_session_id?: string;
|
||||
task_id?: string;
|
||||
task_key?: string;
|
||||
task_url?: string;
|
||||
project_id?: string;
|
||||
sequence_id?: number;
|
||||
resolution?: TVoiceTaskResolution;
|
||||
code?: string;
|
||||
error?: string;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user