efe48f2068
- 合并 DivinationResultPage 和 HistoryResultPage 为统一结果页 - 重写 HistoryFollowUpPage:API 加载历史消息、SSE 流式追问、配额管理 - 追问免费且限一次,输入框 UI 对齐设计稿(圆角容器+配额徽章+圆形发送按钮) - 结果页追问状态根据线程消息数动态判断 - 历史列表筛选改为 9 类独立类型 - 提取 historyMessageToResultData 为共享函数,新增 enqueueFollowUpRun API - 新增 auto_awesome/search/arrow_upward 图标 - 新增三语言 [id].astro、[id]/followup.astro、divination/result.astro 页面
35 lines
1.1 KiB
TypeScript
35 lines
1.1 KiB
TypeScript
export const API_ROUTES = {
|
|
auth: {
|
|
sendOtp: '/api/v1/auth/otp/send',
|
|
emailSession: '/api/v1/auth/email-session',
|
|
refreshSession: '/api/v1/auth/sessions/refresh',
|
|
deleteSession: '/api/v1/auth/sessions',
|
|
},
|
|
users: {
|
|
profile: '/api/v1/users/me/profile',
|
|
updateProfile: '/api/v1/users/me/profile',
|
|
updateSettings: '/api/v1/users/me/settings',
|
|
avatarUploadUrl: '/api/v1/users/me/avatar/upload-url',
|
|
uploadAvatar: '/api/v1/users/me/avatar',
|
|
},
|
|
points: {
|
|
balance: '/api/v1/points/balance',
|
|
packages: '/api/v1/points/packages',
|
|
},
|
|
notifications: {
|
|
list: '/api/v1/notifications',
|
|
unreadCount: '/api/v1/notifications/unread-count',
|
|
markRead: (id: string) => `/api/v1/notifications/${id}/read`,
|
|
markAllRead: '/api/v1/notifications/mark-all-read',
|
|
},
|
|
agent: {
|
|
history: '/api/v1/agent/history',
|
|
historyByThread: (threadId: string) => `/api/v1/agent/history?threadId=${threadId}`,
|
|
runs: '/api/v1/agent/runs',
|
|
runEvents: (threadId: string) => `/api/v1/agent/runs/${threadId}/events`,
|
|
},
|
|
feedback: {
|
|
submit: '/api/v1/feedback',
|
|
},
|
|
} as const;
|