dify/web/models/explore.ts

35 lines
698 B
TypeScript
Raw Normal View History

import type { AppMode } from '@/types/app'
2023-05-25 16:59:47 +08:00
export type AppBasicInfo = {
id: string
mode: AppMode
icon: string
icon_background: string
name: string
description: string
2023-05-25 16:59:47 +08:00
}
2023-08-28 19:48:53 +08:00
export type AppCategory = 'Writing' | 'Translate' | 'HR' | 'Programming' | 'Assistant'
2023-05-25 16:59:47 +08:00
export type App = {
app: AppBasicInfo
app_id: string
description: string
copyright: string
privacy_policy: string | null
2024-05-18 10:52:48 +08:00
custom_disclaimer: string | null
2023-08-28 19:48:53 +08:00
category: AppCategory
position: number
is_listed: boolean
install_count: number
installed: boolean
editable: boolean
is_agent: boolean
2023-05-25 16:59:47 +08:00
}
export type InstalledApp = {
app: AppBasicInfo
id: string
2023-05-25 16:59:47 +08:00
uninstallable: boolean
is_pinned: boolean
}