share.ts 775 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. }
  20. export type AppMeta = {
  21. tool_icons: Record<string, string>
  22. }
  23. export type AppData = {
  24. app_id: string
  25. can_replace_logo?: boolean
  26. custom_config?: Record<string, any>
  27. enable_site?: boolean
  28. end_user_id?: string
  29. site: SiteInfo
  30. }
  31. export type AppConversationData = {
  32. data: ConversationItem[]
  33. has_more: boolean
  34. limit: number
  35. }