2024-08-19 09:16:33 +08:00
|
|
|
import type { AppIconType, AppMode } from '@/types/app'
|
2023-05-25 16:59:47 +08:00
|
|
|
export type AppBasicInfo = {
|
2023-06-01 23:19:36 +08:00
|
|
|
id: string
|
|
|
|
mode: AppMode
|
2024-08-19 09:16:33 +08:00
|
|
|
icon_type: AppIconType | null
|
2023-06-01 23:19:36 +08:00
|
|
|
icon: string
|
|
|
|
icon_background: string
|
2024-08-19 09:16:33 +08:00
|
|
|
icon_url: string
|
2024-04-08 18:51:46 +08:00
|
|
|
name: string
|
|
|
|
description: string
|
2024-09-02 20:00:41 +08:00
|
|
|
use_icon_as_answer_icon: boolean
|
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 = {
|
2023-06-01 23:19:36 +08:00
|
|
|
app: AppBasicInfo
|
|
|
|
app_id: string
|
|
|
|
description: string
|
|
|
|
copyright: string
|
2024-02-27 19:16:22 +08:00
|
|
|
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
|
2023-06-01 23:19:36 +08:00
|
|
|
position: number
|
|
|
|
is_listed: boolean
|
|
|
|
install_count: number
|
|
|
|
installed: boolean
|
|
|
|
editable: boolean
|
2024-01-23 19:31:56 +08:00
|
|
|
is_agent: boolean
|
2023-05-25 16:59:47 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
export type InstalledApp = {
|
2023-06-01 23:19:36 +08:00
|
|
|
app: AppBasicInfo
|
|
|
|
id: string
|
2023-05-25 16:59:47 +08:00
|
|
|
uninstallable: boolean
|
|
|
|
is_pinned: boolean
|
2023-06-01 23:19:36 +08:00
|
|
|
}
|