mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-27 07:16:19 +09:00
feat: heartbeat (#108)
* feat: heartbeat * feat: independent heartbeat model
This commit is contained in:
@@ -47,6 +47,10 @@ export const ScheduleModel = z.object({
|
||||
command: z.string().min(1, 'Schedule command is required'),
|
||||
})
|
||||
|
||||
export const HeartbeatModel = z.object({
|
||||
interval: z.number().int().positive().default(30),
|
||||
})
|
||||
|
||||
export const AttachmentModel = z.object({
|
||||
contentHash: z.string().optional(),
|
||||
type: z.string().min(1, 'Attachment type is required'),
|
||||
|
||||
Reference in New Issue
Block a user