(
path: string,
body: AutomationRunRequest = {},
)
| 57 | } |
| 58 | |
| 59 | function postAutomationRun<TReport = Record<string, unknown>>( |
| 60 | path: string, |
| 61 | body: AutomationRunRequest = {}, |
| 62 | ) { |
| 63 | return fetchJSON<MemoryAutomationRunResponse<TReport>>(`${AUTOMATION_BASE}/run/${path}`, { |
| 64 | method: "POST", |
| 65 | headers: { "Content-Type": "application/json" }, |
| 66 | body: JSON.stringify({ dry_run: true, ...body }), |
| 67 | }); |
| 68 | } |
| 69 | |
| 70 | function postManagedSkillAction(id: string, action: string) { |
| 71 | return fetchJSON<ManagedSkillResponse>(managedSkillPath(id, action), { |