ФУНКЦИИ - МЕЖПРОЕКТНАЯ КОММУНИКАЦИЯ: ручное назначение Voice Tasker
This commit is contained in:
@@ -16,7 +16,11 @@ export interface IGptResponse {
|
||||
}
|
||||
|
||||
export type TWorkspaceAIProvider = "openai";
|
||||
export type TWorkspaceAIAccessMode = "all_workspace_members" | "admins_only";
|
||||
export type TWorkspaceAIAccessMode =
|
||||
| "all_workspace_members"
|
||||
| "admins_only"
|
||||
| "selected_projects"
|
||||
| "selected_members";
|
||||
|
||||
export type TWorkspaceAICredentialStatus = {
|
||||
provider: TWorkspaceAIProvider;
|
||||
@@ -34,6 +38,8 @@ export type TWorkspaceAISettings = {
|
||||
structuring_model: string;
|
||||
default_project_id: string | null;
|
||||
access_mode: TWorkspaceAIAccessMode;
|
||||
enabled_project_ids: string[];
|
||||
enabled_member_ids: string[];
|
||||
max_audio_duration_seconds: number;
|
||||
per_user_hourly_limit: number;
|
||||
workspace_hourly_limit: number;
|
||||
@@ -50,6 +56,8 @@ export type TWorkspaceAISettingsPayload = Partial<
|
||||
| "structuring_model"
|
||||
| "default_project_id"
|
||||
| "access_mode"
|
||||
| "enabled_project_ids"
|
||||
| "enabled_member_ids"
|
||||
| "max_audio_duration_seconds"
|
||||
| "per_user_hourly_limit"
|
||||
| "workspace_hourly_limit"
|
||||
@@ -66,7 +74,13 @@ export type TWorkspaceAIConnectionTestResult = {
|
||||
error?: string;
|
||||
};
|
||||
|
||||
export type TVoiceTaskPreflightReason = "not_configured" | "disabled" | "missing_api_key" | "role_denied" | null;
|
||||
export type TVoiceTaskPreflightReason =
|
||||
| "not_configured"
|
||||
| "disabled"
|
||||
| "missing_api_key"
|
||||
| "role_denied"
|
||||
| "scope_denied"
|
||||
| null;
|
||||
|
||||
export type TVoiceTaskPreflight = {
|
||||
available: boolean;
|
||||
@@ -74,6 +88,8 @@ export type TVoiceTaskPreflight = {
|
||||
max_audio_duration_seconds: number;
|
||||
accepted_mime_types: string[];
|
||||
access_mode: TWorkspaceAIAccessMode;
|
||||
enabled_project_ids: string[];
|
||||
enabled_member_ids: string[];
|
||||
};
|
||||
|
||||
export type TVoiceTaskIntent = "create_task" | "update_task" | "delete_task" | "unknown";
|
||||
|
||||
Reference in New Issue
Block a user