35 lines
1.4 KiB
Go
35 lines
1.4 KiB
Go
package protocol
|
|
|
|
const (
|
|
ListSchedules = "list_schedules"
|
|
Schedules = "schedules"
|
|
SaveSchedule = "save_schedule"
|
|
SavedScheduleReply = "schedule"
|
|
DeleteSchedule = "delete_schedule"
|
|
ScheduleDeleted = "schedule_deleted"
|
|
)
|
|
|
|
// SavedSchedule pairs an immutable pipeline version with a complete run request.
|
|
// Revision is the compare-and-swap token for edits and deletion; zero creates.
|
|
type SavedSchedule struct {
|
|
ID int64 `json:"id"`
|
|
Revision int64 `json:"revision"`
|
|
Name string `json:"name"`
|
|
PipelineID int64 `json:"pipeline_id"`
|
|
Version int `json:"version"`
|
|
Enabled bool `json:"enabled"`
|
|
Input map[string]any `json:"input"`
|
|
Workspace string `json:"workspace"`
|
|
WritePaths []string `json:"write_paths,omitempty"`
|
|
AllowTools bool `json:"allow_tools,omitempty"`
|
|
Model string `json:"model,omitempty"`
|
|
StageModels map[string]string `json:"stage_models,omitempty"`
|
|
NotifyMode string `json:"notify_mode,omitempty"`
|
|
Title string `json:"title,omitempty"`
|
|
OutputFormat string `json:"output_format,omitempty"`
|
|
Rule Schedule `json:"rule"`
|
|
NextDue string `json:"next_due"`
|
|
CreatedAt string `json:"created_at"`
|
|
UpdatedAt string `json:"updated_at"`
|
|
}
|