share.ts 807 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. icon?: string
  12. icon_background?: string
  13. description?: string
  14. default_language?: Locale
  15. prompt_public?: boolean
  16. copyright?: string
  17. privacy_policy?: string
  18. custom_disclaimer?: string
  19. show_workflow_steps?: boolean
  20. }
  21. export type AppMeta = {
  22. tool_icons: Record<string, string>
  23. }
  24. export type AppData = {
  25. app_id: string
  26. can_replace_logo?: boolean
  27. custom_config?: Record<string, any>
  28. enable_site?: boolean
  29. end_user_id?: string
  30. site: SiteInfo
  31. }
  32. export type AppConversationData = {
  33. data: ConversationItem[]
  34. has_more: boolean
  35. limit: number
  36. }