mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 19:59:50 +08:00
7753ba2d37
Co-authored-by: Joel <iamjoel007@gmail.com> Co-authored-by: Yeuoly <admin@srmxy.cn> Co-authored-by: JzoNg <jzongcode@gmail.com> Co-authored-by: StyleZhang <jasonapring2015@outlook.com> Co-authored-by: jyong <jyong@dify.ai> Co-authored-by: nite-knite <nkCoding@gmail.com> Co-authored-by: jyong <718720800@qq.com>
34 lines
663 B
TypeScript
34 lines
663 B
TypeScript
import type { AppMode } from '@/types/app'
|
|
export type AppBasicInfo = {
|
|
id: string
|
|
mode: AppMode
|
|
icon: string
|
|
icon_background: string
|
|
name: string
|
|
description: string
|
|
}
|
|
|
|
export type AppCategory = 'Writing' | 'Translate' | 'HR' | 'Programming' | 'Assistant'
|
|
|
|
export type App = {
|
|
app: AppBasicInfo
|
|
app_id: string
|
|
description: string
|
|
copyright: string
|
|
privacy_policy: string | null
|
|
category: AppCategory
|
|
position: number
|
|
is_listed: boolean
|
|
install_count: number
|
|
installed: boolean
|
|
editable: boolean
|
|
is_agent: boolean
|
|
}
|
|
|
|
export type InstalledApp = {
|
|
app: AppBasicInfo
|
|
id: string
|
|
uninstallable: boolean
|
|
is_pinned: boolean
|
|
}
|