import { IncomingWebhookTrigger, ScheduleTriggerInput } from "../../../types/executor.generated.mjs"; import { JsonObject } from "@bufbuild/protobuf"; import { z } from "zod"; //#region src/cli/commands/executor/trigger.d.ts type ManualTrigger = IncomingWebhookTrigger | ScheduleTriggerInput; type ManualTriggerExecutor = T extends ManualTrigger ? { name: string; trigger: T; } : never; type TriggerExecutorBaseOptions = { executor: E; workspaceId?: string; profile?: string; }; export type TriggerExecutorTypedOptions = E extends ManualTriggerExecutor ? TriggerExecutorBaseOptions & { payload?: JsonObject; } : TriggerExecutorBaseOptions & { payload?: never; }; export interface TriggerExecutorResult { jobId?: string; } /** * Trigger an executor and return the job ID. * @param options - Options for triggering executor * @returns Result containing the job ID if available */ export declare function triggerExecutor(options: TriggerExecutorTypedOptions): Promise; //#endregion