feat: 扩展 Skill 支持定时日报操作

This commit is contained in:
Wxw-Gu committed 2026-08-27 20:27:51 +08:00
1 parent 7cf043e3c3
commit a007e110ac
9 files changed
+1233 -16

No files matched your search

+10
View File
@@ -11,6 +11,16 @@ export const LOCAL_API_ENDPOINTS = {
},
'group-snapshot': { method: 'GET', path: '/api/v1/group_snapshot', queryKeys: ['md5'] },
resolve: { method: 'GET', path: '/api/v1/resolve', queryKeys: ['q'] },
'wechat-send-capability': {
method: 'GET',
path: '/api/v1/wechat-personal/send-capability',
queryKeys: []
},
'scheduled-reports': {
method: 'GET',
path: '/api/v1/scheduled-reports',
queryKeys: []
},
report: { method: 'POST', path: '/api/v1/report', queryKeys: [] },
'agent-status': { method: 'GET', path: '/api/v1/agent/status', queryKeys: [] },
'agent-group-report': { method: 'POST', path: '/api/v1/agent/group-report', queryKeys: [] },
+67
View File
@@ -0,0 +1,67 @@
import type { ScheduledReportRange, ScheduledReportExecutionStatus } from './scheduled-report'
export type ScheduledReportApiSchedule = {
type: 'daily'
time: string
}
export interface ScheduledReportApiGroupRef {
talker?: string
name?: string
}
export interface ScheduledReportApiTargetRef {
type: 'wechat_group'
talker?: string
name?: string
}
export interface ScheduledReportApiTask {
id: string
name: string
group: {
talker: string
name: string
}
schedule: ScheduledReportApiSchedule
reportRange: ScheduledReportRange
target: {
type: 'wechat_group'
talker: string
name: string
}
enabled: boolean
createdAt: string
updatedAt: string
lastRunAt?: string
nextRunAt: string
}
export interface ScheduledReportApiCreateRequest {
name?: string
group: ScheduledReportApiGroupRef | string
schedule: ScheduledReportApiSchedule
reportRange?: ScheduledReportRange
target?: ScheduledReportApiTargetRef
enabled?: boolean
}
export interface ScheduledReportApiUpdateRequest {
name?: string
group?: ScheduledReportApiGroupRef | string
schedule?: ScheduledReportApiSchedule
reportRange?: ScheduledReportRange
target?: ScheduledReportApiTargetRef
enabled?: boolean
}
export interface ScheduledReportApiExecution {
id: string
taskId: string
startedAt: string
finishedAt?: string
status: ScheduledReportExecutionStatus
error?: string
message?: string
scheduledSlot?: string
}