dify/web/models/share.ts
Joel 52428df1bd
feat: add amptitude to new agent (#39608)
Co-authored-by: 林玮 (Jade Lin) <linw1995@icloud.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-07-27 05:54:45 +00:00

53 lines
1.2 KiB
TypeScript

import type { AppMode } from '@dify/contracts/api/web/types.gen'
import type { Locale } from '@/i18n-config'
import type { AppIconType } from '@/types/app'
export type ConversationItem = {
id: string
name: string
inputs: Record<string, any> | null
introduction: string
}
export type SiteInfo = {
title: string
chat_color_theme?: string
chat_color_theme_inverted?: boolean
icon_type?: AppIconType | null
icon?: string
icon_background?: string | null
icon_url?: string | null
description?: string
default_language?: Locale
prompt_public?: boolean
copyright?: string
privacy_policy?: string
custom_disclaimer?: string
input_placeholder?: string
show_workflow_steps?: boolean
use_icon_as_answer_icon?: boolean
}
export type ToolIcon = string | Record<string, unknown>
export type AppMeta = {
tool_icons: Record<string, ToolIcon>
}
export type CustomConfigValueType = string | number | boolean | null | undefined
export type AppData = {
app_id: string
mode?: AppMode
can_replace_logo?: boolean
custom_config: Record<string, CustomConfigValueType> | null
enable_site?: boolean
end_user_id?: string
site: SiteInfo
}
export type AppConversationData = {
data: ConversationItem[]
has_more: boolean
limit: number
}