explore.ts 797 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import type { AppIconType, AppMode } from '@/types/app'
  2. export type AppBasicInfo = {
  3. id: string
  4. mode: AppMode
  5. icon_type: AppIconType | null
  6. icon: string
  7. icon_background: string
  8. icon_url: string
  9. name: string
  10. description: string
  11. use_icon_as_answer_icon: boolean
  12. }
  13. export type AppCategory = 'Writing' | 'Translate' | 'HR' | 'Programming' | 'Assistant'
  14. export type App = {
  15. app: AppBasicInfo
  16. app_id: string
  17. description: string
  18. copyright: string
  19. privacy_policy: string | null
  20. custom_disclaimer: string | null
  21. category: AppCategory
  22. position: number
  23. is_listed: boolean
  24. install_count: number
  25. installed: boolean
  26. editable: boolean
  27. is_agent: boolean
  28. }
  29. export type InstalledApp = {
  30. app: AppBasicInfo
  31. id: string
  32. uninstallable: boolean
  33. is_pinned: boolean
  34. }