share.ts 746 B

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