share.ts 987 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. }
  26. export type AppMeta = {
  27. tool_icons: Record<string, string>
  28. }
  29. export type AppData = {
  30. app_id: string
  31. can_replace_logo?: boolean
  32. custom_config?: Record<string, any>
  33. enable_site?: boolean
  34. end_user_id?: string
  35. site: SiteInfo
  36. }
  37. export type AppConversationData = {
  38. data: ConversationItem[]
  39. has_more: boolean
  40. limit: number
  41. }