explore.ts 762 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. }
  12. export type AppCategory = 'Writing' | 'Translate' | 'HR' | 'Programming' | 'Assistant'
  13. export type App = {
  14. app: AppBasicInfo
  15. app_id: string
  16. description: string
  17. copyright: string
  18. privacy_policy: string | null
  19. custom_disclaimer: string | null
  20. category: AppCategory
  21. position: number
  22. is_listed: boolean
  23. install_count: number
  24. installed: boolean
  25. editable: boolean
  26. is_agent: boolean
  27. }
  28. export type InstalledApp = {
  29. app: AppBasicInfo
  30. id: string
  31. uninstallable: boolean
  32. is_pinned: boolean
  33. }