feat: queue codex remote control actions
This commit is contained in:
@@ -133,6 +133,22 @@ export async function postSkillLifecycleRequest(payload: Record<string, unknown>
|
||||
});
|
||||
}
|
||||
|
||||
export async function postDeviceCodexRemoteControl(
|
||||
deviceId: string,
|
||||
payload: { action: "start" | "stop"; reason?: string },
|
||||
) {
|
||||
return requestJson<Record<string, unknown>>(
|
||||
`/api/v1/devices/${encodeURIComponent(deviceId)}/codex-remote-control`,
|
||||
{
|
||||
method: "POST",
|
||||
body: JSON.stringify({
|
||||
...payload,
|
||||
confirmed: true,
|
||||
}),
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
export async function fetchAdminBackups(): Promise<BossAdminBackupsPayload> {
|
||||
return requestJson<BossAdminBackupsPayload>("/api/v1/admin/backups");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user