feat: readable download names and PUT /capture-profiles/:id
- downloads are named <orbit>_<time>_<engine>_<id8>.<ext> (schedule zone or UTC), orbit names are reduced to [a-z0-9_-], and the header carries filename and filename* - operators can change a profile's schedule and retention (absent = keep, null = clear), validated like registration, audited, and a changed schedule never replays slots that already passed Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -340,9 +340,9 @@ fn recipe(w: &World, row: &Row) -> (String, Option<Value>) {
|
||||
"/api/v1/orbits/:id/retention"
|
||||
| "/api/v1/orbits/:id/run"
|
||||
| "/api/v1/orbits/:id/outpost" => a.orbit,
|
||||
"/api/v1/capture-profiles/:id/jobs" | "/api/v1/capture-profiles/:id/restore-targets" => {
|
||||
a.application
|
||||
}
|
||||
"/api/v1/capture-profiles/:id"
|
||||
| "/api/v1/capture-profiles/:id/jobs"
|
||||
| "/api/v1/capture-profiles/:id/restore-targets" => a.application,
|
||||
"/api/v1/capture-jobs/:id" | "/api/v1/capture-jobs/:id/events" => a.job,
|
||||
"/api/v1/wormhole/outposts/:id/rotate" | "/api/v1/wormhole/outposts/:id/revoke" => {
|
||||
a.outpost
|
||||
@@ -379,6 +379,7 @@ fn recipe(w: &World, row: &Row) -> (String, Option<Value>) {
|
||||
("POST", "/api/v1/reconstitute") => {
|
||||
Some(json!({"snapshot_id": a.snapshot, "target_path": "out"}))
|
||||
}
|
||||
("PUT", "/api/v1/capture-profiles/:id") => Some(json!({"schedule": null})),
|
||||
("POST", "/api/v1/capture-profiles") => Some(
|
||||
serde_json::to_value(CaptureProfile {
|
||||
application_id: Uuid::new_v4(),
|
||||
|
||||
Reference in New Issue
Block a user