explore.ts 698 B

12345678910111213141516171819202122232425262728293031323334
  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. custom_disclaimer: string | null
  18. category: AppCategory
  19. position: number
  20. is_listed: boolean
  21. install_count: number
  22. installed: boolean
  23. editable: boolean
  24. is_agent: boolean
  25. }
  26. export type InstalledApp = {
  27. app: AppBasicInfo
  28. id: string
  29. uninstallable: boolean
  30. is_pinned: boolean
  31. }