import { z } from "zod"; import { type IntegrationAccountReference } from "../../automation/integrations.js"; import { type DurationString, type Signal } from "../../automation/signal-protocol.js"; /** States returned while a Workspace Agent trigger run is processed. */ export declare const CHATGPT_WORKSPACE_AGENT_RUN_STATUS_SCHEMA: z.ZodEnum<{ failed: "failed"; completed: "completed"; in_progress: "in_progress"; queued: "queued"; suspended: "suspended"; }>; /** Failure categories returned for terminal Workspace Agent runs. */ export declare const CHATGPT_WORKSPACE_AGENT_RUN_ERROR_SCHEMA: z.ZodObject<{ code: z.ZodEnum<{ dispatch_failed: "dispatch_failed"; run_failed: "run_failed"; }>; }, z.core.$strip>; /** Result returned after a Workspace Agent trigger is durably accepted. */ export declare const CHATGPT_WORKSPACE_AGENT_TRIGGER_RESULT_SCHEMA: z.ZodObject<{ conversationUrl: z.ZodURL; runId: z.ZodString; }, z.core.$strip>; /** Current state and identity of one Workspace Agent trigger run. */ export declare const CHATGPT_WORKSPACE_AGENT_RUN_SCHEMA: z.ZodObject<{ agentId: z.ZodString; apiTriggerId: z.ZodString; conversationUrl: z.ZodURL; createdAt: z.ZodDate; error: z.ZodNullable; }, z.core.$strip>>; id: z.ZodString; object: z.ZodLiteral<"workspace_agent.trigger_run">; status: z.ZodEnum<{ failed: "failed"; completed: "completed"; in_progress: "in_progress"; queued: "queued"; suspended: "suspended"; }>; }, z.core.$strip>; type ChatGPTWorkspaceAgentRun = z.output; /** * Triggers a published ChatGPT Workspace Agent through its API channel. * * The action always requests beta run tracking so its result can be passed to * {@link getChatGPTWorkspaceAgentRun}. */ export declare const triggerChatGPTWorkspaceAgent: import("../..").DefinedAction; input: z.ZodString; idempotencyKey: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ conversationUrl: z.ZodURL; runId: z.ZodString; }, z.core.$strip>, "chatgpt", false, never>; /** Gets the current status of a ChatGPT Workspace Agent trigger run. */ export declare const getChatGPTWorkspaceAgentRun: import("../..").DefinedAction, z.ZodObject<{ agentId: z.ZodString; apiTriggerId: z.ZodString; conversationUrl: z.ZodURL; createdAt: z.ZodDate; error: z.ZodNullable; }, z.core.$strip>>; id: z.ZodString; object: z.ZodLiteral<"workspace_agent.trigger_run">; status: z.ZodEnum<{ failed: "failed"; completed: "completed"; in_progress: "in_progress"; queued: "queued"; suspended: "suspended"; }>; }, z.core.$strip>, "chatgpt", false, never>; /** Input for triggering and durably waiting on a Workspace Agent run. */ export type RunChatGPTWorkspaceAgentInput = Extract[0], { apiTriggerId: unknown; }> & { /** Maximum number of status checks before the wait fails. Defaults to 60. */ maxPolls?: number; /** Durable delay between status checks. Defaults to `"30s"`. */ pollInterval?: DurationString | number; }; /** Account selection for composed Workspace Agent helpers. */ export interface ChatGPTWorkspaceAgentAccountOptions { /** Static project account binding reused by every polling root. */ account?: string | IntegrationAccountReference<"chatgpt">; } /** * Triggers a Workspace Agent and continues after it reaches a terminal state. * * No provider invocation remains open between checks. Each interval uses a * durable delivery root and a correlated child context. The returned signal * emits completed or failed run metadata, not the agent's response. * * @param input - Trigger fields and durable polling configuration. * @param options - Optional ChatGPT account selection. */ export declare function runChatGPTWorkspaceAgent(input: RunChatGPTWorkspaceAgentInput, options?: ChatGPTWorkspaceAgentAccountOptions): Signal; export {}; //# sourceMappingURL=actions.d.ts.map