import type { Component } from 'vue' export type Portal = 'user' | 'admin' export type ModelType = '文本' | '多模态' | '图像' | '3D' | '视频' | '音频' export type CallMode = '同步' | '流式' | '异步' export type TaskStatus = '排队中' | '执行中' | '已完成' | '失败' export interface NavItem { id: string label: string icon: Component badge?: string } export interface NavGroup { label: string items: NavItem[] } export interface ModelItem { id: string name: string provider: string type: ModelType mode: CallMode description: string latency: string specification: string availability: string accent: string icon: Component } export interface ApiKeyItem { id: number name: string value: string scope: string createdAt: string lastUsed: string status: '正常' | '已停用' } export interface TaskItem { id: string name: string model: string status: TaskStatus progress: number createdAt: string duration: string result: string } export interface AdminUser { id: string name: string email: string role: string balance: number usage: string lastActive: string status: '正常' | '待激活' | '已停用' } export interface ProviderItem { id: string name: string capability: string models: number latency: string successRate: string status: '健康' | '波动' | '维护中' enabled: boolean } export interface RouteItem { id: string model: string capability: string primary: string fallback: string policy: string health: string enabled: boolean }