dify/web/models/share.ts

43 lines
807 B
TypeScript
Raw Normal View History

import type { Locale } from '@/i18n'
2023-05-15 08:51:32 +08:00
export type ResponseHolder = {}
export type ConversationItem = {
id: string
name: string
inputs: Record<string, any> | null
introduction: string
2023-05-15 08:51:32 +08:00
}
export type SiteInfo = {
title: string
2024-02-04 16:10:46 +08:00
icon?: string
icon_background?: string
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
show_workflow_steps?: boolean
}
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
}