explore.ts 663 B

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