scheduled prompts: edit existing schedule (closes #474)
This commit is contained in:
parent
0072946ea3
commit
9fee1a1e56
6 changed files with 428 additions and 0 deletions
|
|
@ -948,6 +948,25 @@ pub enum ManagerRequest {
|
|||
/// + any owned by a sub-agent in its subtree per topology.json;
|
||||
/// the operator surface bypasses the check.
|
||||
FireScheduleNow { id: i64 },
|
||||
/// Edit an existing schedule's mutable fields (#474). Partial
|
||||
/// PATCH semantics: `None` / missing JSON key = leave alone,
|
||||
/// `Some(_)` = set. `interval_seconds` and `description` are
|
||||
/// doubly-wrapped so `Some(None)` (set explicit null) can flip
|
||||
/// a recurring schedule back to one-shot / clear the
|
||||
/// description, while plain `None` keeps the current value.
|
||||
/// Targets stay immutable. Refuses cancelled rows.
|
||||
/// Authorization mirrors `CancelSchedule`.
|
||||
EditSchedule {
|
||||
id: i64,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
body: Option<String>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
description: Option<Option<String>>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
interval_seconds: Option<Option<u64>>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
next_fire_at_unix: Option<i64>,
|
||||
},
|
||||
}
|
||||
|
||||
/// Submission payload for `RequestSchedulePrompt`. Lives outside the
|
||||
|
|
|
|||
Loading…
Reference in a new issue