Merge pull request #15097 from silentoplayz/index-update

Refactor: Add missing Type definitions
This commit is contained in:
Tim Jaeryang Baek 2025-06-18 10:55:44 +04:00 committed by GitHub
commit 58b5d2b727
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 43 additions and 2 deletions

View File

@ -1587,12 +1587,13 @@ export interface ModelConfig {
}
export interface ModelMeta {
toolIds: never[];
description?: string;
capabilities?: object;
profile_image_url?: string;
}
export interface ModelParams {}
export interface ModelParams { }
export type GlobalModelConfig = ModelConfig[];

View File

@ -135,6 +135,42 @@ type OllamaModelDetails = {
};
type Settings = {
pinnedModels?: never[];
toolServers?: never[];
detectArtifacts?: boolean;
showUpdateToast?: boolean;
showChangelog?: boolean;
showEmojiInCall?: boolean;
voiceInterruption?: boolean;
collapseCodeBlocks?: boolean;
expandDetails?: boolean;
notificationSound?: boolean;
notificationSoundAlways?: boolean;
stylizedPdfExport?: boolean;
notifications?: any;
imageCompression?: boolean;
imageCompressionSize?: any;
widescreenMode?: null;
largeTextAsFile?: boolean;
promptAutocomplete?: boolean;
hapticFeedback?: boolean;
responseAutoCopy?: any;
richTextInput?: boolean;
params?: any;
userLocation?: any;
webSearch?: boolean;
memory?: boolean;
autoTags?: boolean;
autoFollowUps?: boolean;
splitLargeChunks?(body: any, splitLargeChunks: any): unknown;
backgroundImageUrl?: null;
landingPageMode?: string;
iframeSandboxAllowForms?: boolean;
iframeSandboxAllowSameOrigin?: boolean;
scrollOnBranchChange?: boolean;
directConnections?: null;
chatBubble?: boolean;
copyFormatted?: boolean;
models?: string[];
conversationMode?: boolean;
speechAutoSend?: boolean;
@ -145,7 +181,7 @@ type Settings = {
highContrastMode?: boolean;
title?: TitleSettings;
splitLargeDeltas?: boolean;
chatDirection: 'LTR' | 'RTL' | 'auto';
chatDirection?: 'LTR' | 'RTL' | 'auto';
ctrlEnterToSend?: boolean;
system?: string;
@ -165,6 +201,8 @@ type ModelOptions = {
};
type AudioSettings = {
stt: any;
tts: any;
STTEngine?: string;
TTSEngine?: string;
speaker?: string;
@ -195,6 +233,7 @@ type Document = {
};
type Config = {
license_metadata: any;
status: boolean;
name: string;
version: string;
@ -234,6 +273,7 @@ type PromptSuggestion = {
};
type SessionUser = {
permissions: any;
id: string;
email: string;
name: string;