2024-01-08 18:06:23 +08:00
|
|
|
import type { Locale } from '@/i18n'
|
2024-08-19 09:16:33 +08:00
|
|
|
import type { AppIconType } from '@/types/app'
|
2023-05-15 08:51:32 +08:00
|
|
|
|
|
|
|
export type ResponseHolder = {}
|
|
|
|
|
|
|
|
export type ConversationItem = {
|
|
|
|
id: string
|
|
|
|
name: string
|
|
|
|
inputs: Record<string, any> | null
|
2024-01-08 18:06:23 +08:00
|
|
|
introduction: string
|
2023-05-15 08:51:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
export type SiteInfo = {
|
|
|
|
title: string
|
2024-06-26 17:51:00 +08:00
|
|
|
chat_color_theme?: string
|
|
|
|
chat_color_theme_inverted?: boolean
|
2024-08-22 13:32:59 +08:00
|
|
|
icon_type?: AppIconType | null
|
2024-02-04 16:10:46 +08:00
|
|
|
icon?: string
|
2024-08-22 13:32:59 +08:00
|
|
|
icon_background?: string | null
|
|
|
|
icon_url?: string | null
|
2024-02-04 16:10:46 +08:00
|
|
|
description?: string
|
|
|
|
default_language?: Locale
|
|
|
|
prompt_public?: boolean
|
2023-05-15 08:51:32 +08:00
|
|
|
copyright?: string
|
|
|
|
privacy_policy?: string
|
2024-05-18 10:52:48 +08:00
|
|
|
custom_disclaimer?: string
|
2024-06-21 12:51:10 +08:00
|
|
|
show_workflow_steps?: boolean
|
2024-09-02 20:00:41 +08:00
|
|
|
use_icon_as_answer_icon?: boolean
|
2024-01-08 18:06:23 +08:00
|
|
|
}
|
2024-01-23 19:31:56 +08:00
|
|
|
|
|
|
|
export type AppMeta = {
|
|
|
|
tool_icons: Record<string, string>
|
|
|
|
}
|
2024-02-04 16:10:46 +08:00
|
|
|
|
|
|
|
export type AppData = {
|
|
|
|
app_id: string
|
|
|
|
can_replace_logo?: boolean
|
|
|
|
custom_config?: Record<string, any>
|
|
|
|
enable_site?: boolean
|
|
|
|
end_user_id?: string
|
|
|
|
site: SiteInfo
|
|
|
|
}
|
|
|
|
|
|
|
|
export type AppConversationData = {
|
|
|
|
data: ConversationItem[]
|
|
|
|
has_more: boolean
|
|
|
|
limit: number
|
|
|
|
}
|