share.ts 1023 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. import type { Locale } from '@/i18n'
  2. import type { AppIconType } from '@/types/app'
  3. export type ResponseHolder = {}
  4. export type ConversationItem = {
  5. id: string
  6. name: string
  7. inputs: Record<string, any> | null
  8. introduction: string
  9. }
  10. export type SiteInfo = {
  11. title: string
  12. chat_color_theme?: string
  13. chat_color_theme_inverted?: boolean
  14. icon_type?: AppIconType | null
  15. icon?: string
  16. icon_background?: string | null
  17. icon_url?: string | null
  18. description?: string
  19. default_language?: Locale
  20. prompt_public?: boolean
  21. copyright?: string
  22. privacy_policy?: string
  23. custom_disclaimer?: string
  24. show_workflow_steps?: boolean
  25. use_icon_as_answer_icon?: boolean
  26. }
  27. export type AppMeta = {
  28. tool_icons: Record<string, string>
  29. }
  30. export type AppData = {
  31. app_id: string
  32. can_replace_logo?: boolean
  33. custom_config?: Record<string, any>
  34. enable_site?: boolean
  35. end_user_id?: string
  36. site: SiteInfo
  37. }
  38. export type AppConversationData = {
  39. data: ConversationItem[]
  40. has_more: boolean
  41. limit: number
  42. }