share.ts 873 B

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