import type { z } from "zod"; import type { BrowserActionRecord } from "../../types"; import type { automationRuleInputSchema, toggleAutomationRuleSchema } from "../schemas-automation"; import type { browserActionQuerySchema, cancelBrowserActionSchema, openTerminalCommandSchema, runWorkflowSchema, triggerBrowserLoginSchema, workflowInputSchema } from "../schemas-execution"; import type { socialAccountInputSchema } from "../schemas-company"; import type { deleteEntitySchema } from "../schemas-badges"; import type { wakeupQuerySchema, WakeupRequestRecord } from "../schemas-wakeup"; import type { DesktopResult } from "./common"; export type AutomationApi = { saveAutomationRule: (input: z.infer) => Promise>; deleteAutomationRule: (input: z.infer) => Promise>; toggleAutomationRule: (input: z.infer) => Promise>; getAutomationLog: (companyId: string) => Promise>>; saveWorkflow: (input: z.infer) => Promise>; deleteWorkflow: (input: z.infer) => Promise>; runWorkflow: (input: z.infer) => Promise>; listWakeupRequests: (input: z.infer) => Promise>; saveSocialAccount: (input: z.infer) => Promise>; deleteSocialAccount: (input: z.infer) => Promise>; listBrowserActions: (input: z.infer) => Promise>; cancelBrowserAction: (input: z.infer) => Promise>; triggerBrowserLogin: (input: z.infer) => Promise>; openTerminalCommand: (input: z.infer) => Promise>; };