import { z } from "zod"; import type { DurationString } from "../../automation/signal-protocol.js"; /** States returned for Codex cloud tasks. */ export declare const CODEX_CLOUD_TASK_STATUS_SCHEMA: z.ZodEnum<{ pending: "pending"; unknown: "unknown"; error: "error"; ready: "ready"; applied: "applied"; }>; /** States returned for one Codex cloud task attempt. */ export declare const CODEX_CLOUD_TURN_STATUS_SCHEMA: z.ZodEnum<{ failed: "failed"; pending: "pending"; unknown: "unknown"; completed: "completed"; cancelled: "cancelled"; inProgress: "inProgress"; }>; /** Latest-attempt diff summary reported for a Codex cloud task. */ export declare const CODEX_CLOUD_DIFF_SUMMARY_SCHEMA: z.ZodObject<{ filesChanged: z.ZodNumber; linesAdded: z.ZodNumber; linesRemoved: z.ZodNumber; }, z.core.$strip>; /** GitHub user attached to a Codex-created pull request. */ export declare const CODEX_CLOUD_PULL_REQUEST_AUTHOR_SCHEMA: z.ZodObject<{ avatarUrl: z.ZodNullable; email: z.ZodNullable; login: z.ZodString; name: z.ZodNullable; }, z.core.$strip>; /** Pull request created from a Codex cloud task. */ export declare const CODEX_CLOUD_PULL_REQUEST_SCHEMA: z.ZodObject<{ additions: z.ZodNullable; author: z.ZodNullable; email: z.ZodNullable; login: z.ZodString; name: z.ZodNullable; }, z.core.$strip>>; baseBranch: z.ZodString; baseSha: z.ZodNullable; body: z.ZodNullable; changedFiles: z.ZodNullable; codexUpdatedSha: z.ZodNullable; commits: z.ZodNullable; deletions: z.ZodNullable; draft: z.ZodBoolean; headBranch: z.ZodString; headSha: z.ZodNullable; id: z.ZodString; mergeCommitSha: z.ZodNullable; mergeable: z.ZodNullable; merged: z.ZodBoolean; number: z.ZodNumber; state: z.ZodString; title: z.ZodString; turnId: z.ZodString; url: z.ZodURL; }, z.core.$strip>; /** Codex cloud task returned by the remote task service. */ export declare const CODEX_CLOUD_TASK_SCHEMA: z.ZodObject<{ archived: z.ZodBoolean; attemptTotal: z.ZodNullable; branch: z.ZodNullable; environmentId: z.ZodNullable; environmentLabel: z.ZodNullable; id: z.ZodString; isReview: z.ZodBoolean; pullRequests: z.ZodArray; author: z.ZodNullable; email: z.ZodNullable; login: z.ZodString; name: z.ZodNullable; }, z.core.$strip>>; baseBranch: z.ZodString; baseSha: z.ZodNullable; body: z.ZodNullable; changedFiles: z.ZodNullable; codexUpdatedSha: z.ZodNullable; commits: z.ZodNullable; deletions: z.ZodNullable; draft: z.ZodBoolean; headBranch: z.ZodString; headSha: z.ZodNullable; id: z.ZodString; mergeCommitSha: z.ZodNullable; mergeable: z.ZodNullable; merged: z.ZodBoolean; number: z.ZodNumber; state: z.ZodString; title: z.ZodString; turnId: z.ZodString; url: z.ZodURL; }, z.core.$strip>>; status: z.ZodEnum<{ pending: "pending"; unknown: "unknown"; error: "error"; ready: "ready"; applied: "applied"; }>; summary: z.ZodObject<{ filesChanged: z.ZodNumber; linesAdded: z.ZodNumber; linesRemoved: z.ZodNumber; }, z.core.$strip>; title: z.ZodString; updatedAt: z.ZodNullable; url: z.ZodURL; }, z.core.$strip>; /** One assistant attempt within a Codex cloud task. */ export declare const CODEX_CLOUD_TASK_ATTEMPT_SCHEMA: z.ZodObject<{ attemptNumber: z.ZodNullable; createdAt: z.ZodNullable; diff: z.ZodNullable; error: z.ZodNullable; messages: z.ZodArray; status: z.ZodEnum<{ failed: "failed"; pending: "pending"; unknown: "unknown"; completed: "completed"; cancelled: "cancelled"; inProgress: "inProgress"; }>; turnId: z.ZodString; }, z.core.$strip>; /** One user instruction and its assistant attempts in a Codex cloud task. */ export declare const CODEX_CLOUD_TASK_TURN_SCHEMA: z.ZodObject<{ createdAt: z.ZodNullable; id: z.ZodString; prompt: z.ZodNullable; attempts: z.ZodArray; createdAt: z.ZodNullable; diff: z.ZodNullable; error: z.ZodNullable; messages: z.ZodArray; status: z.ZodEnum<{ failed: "failed"; pending: "pending"; unknown: "unknown"; completed: "completed"; cancelled: "cancelled"; inProgress: "inProgress"; }>; turnId: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>; /** Detailed Codex cloud task including its latest prompt, output, and diff. */ export declare const CODEX_CLOUD_TASK_DETAILS_SCHEMA: z.ZodObject<{ archived: z.ZodBoolean; attemptTotal: z.ZodNullable; branch: z.ZodNullable; environmentId: z.ZodNullable; environmentLabel: z.ZodNullable; id: z.ZodString; isReview: z.ZodBoolean; pullRequests: z.ZodArray; author: z.ZodNullable; email: z.ZodNullable; login: z.ZodString; name: z.ZodNullable; }, z.core.$strip>>; baseBranch: z.ZodString; baseSha: z.ZodNullable; body: z.ZodNullable; changedFiles: z.ZodNullable; codexUpdatedSha: z.ZodNullable; commits: z.ZodNullable; deletions: z.ZodNullable; draft: z.ZodBoolean; headBranch: z.ZodString; headSha: z.ZodNullable; id: z.ZodString; mergeCommitSha: z.ZodNullable; mergeable: z.ZodNullable; merged: z.ZodBoolean; number: z.ZodNumber; state: z.ZodString; title: z.ZodString; turnId: z.ZodString; url: z.ZodURL; }, z.core.$strip>>; status: z.ZodEnum<{ pending: "pending"; unknown: "unknown"; error: "error"; ready: "ready"; applied: "applied"; }>; summary: z.ZodObject<{ filesChanged: z.ZodNumber; linesAdded: z.ZodNumber; linesRemoved: z.ZodNumber; }, z.core.$strip>; title: z.ZodString; updatedAt: z.ZodNullable; url: z.ZodURL; attempts: z.ZodArray; createdAt: z.ZodNullable; diff: z.ZodNullable; error: z.ZodNullable; messages: z.ZodArray; status: z.ZodEnum<{ failed: "failed"; pending: "pending"; unknown: "unknown"; completed: "completed"; cancelled: "cancelled"; inProgress: "inProgress"; }>; turnId: z.ZodString; }, z.core.$strip>>; currentTurnId: z.ZodNullable; prompt: z.ZodNullable; turns: z.ZodArray; id: z.ZodString; prompt: z.ZodNullable; attempts: z.ZodArray; createdAt: z.ZodNullable; diff: z.ZodNullable; error: z.ZodNullable; messages: z.ZodArray; status: z.ZodEnum<{ failed: "failed"; pending: "pending"; unknown: "unknown"; completed: "completed"; cancelled: "cancelled"; inProgress: "inProgress"; }>; turnId: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>; /** Paginated result returned when listing Codex cloud tasks. */ export declare const CODEX_CLOUD_TASK_PAGE_SCHEMA: z.ZodObject<{ cursor: z.ZodNullable; tasks: z.ZodArray; branch: z.ZodNullable; environmentId: z.ZodNullable; environmentLabel: z.ZodNullable; id: z.ZodString; isReview: z.ZodBoolean; pullRequests: z.ZodArray; author: z.ZodNullable; email: z.ZodNullable; login: z.ZodString; name: z.ZodNullable; }, z.core.$strip>>; baseBranch: z.ZodString; baseSha: z.ZodNullable; body: z.ZodNullable; changedFiles: z.ZodNullable; codexUpdatedSha: z.ZodNullable; commits: z.ZodNullable; deletions: z.ZodNullable; draft: z.ZodBoolean; headBranch: z.ZodString; headSha: z.ZodNullable; id: z.ZodString; mergeCommitSha: z.ZodNullable; mergeable: z.ZodNullable; merged: z.ZodBoolean; number: z.ZodNumber; state: z.ZodString; title: z.ZodString; turnId: z.ZodString; url: z.ZodURL; }, z.core.$strip>>; status: z.ZodEnum<{ pending: "pending"; unknown: "unknown"; error: "error"; ready: "ready"; applied: "applied"; }>; summary: z.ZodObject<{ filesChanged: z.ZodNumber; linesAdded: z.ZodNumber; linesRemoved: z.ZodNumber; }, z.core.$strip>; title: z.ZodString; updatedAt: z.ZodNullable; url: z.ZodURL; }, z.core.$strip>>; }, z.core.$strip>; /** One preconfigured Codex cloud environment. */ export declare const CODEX_CLOUD_ENVIRONMENT_SCHEMA: z.ZodObject<{ id: z.ZodString; isPinned: z.ZodBoolean; label: z.ZodNullable; taskCount: z.ZodNumber; }, z.core.$strip>; /** Paginated result returned when listing Codex cloud environments. */ export declare const CODEX_CLOUD_ENVIRONMENT_PAGE_SCHEMA: z.ZodObject<{ cursor: z.ZodNullable; environments: z.ZodArray; taskCount: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>; /** Result returned after Codex accepts a cloud task. */ export declare const CODEX_CLOUD_TASK_SUBMISSION_SCHEMA: z.ZodObject<{ id: z.ZodString; url: z.ZodURL; }, z.core.$strip>; /** Result returned after Codex accepts a follow-up or PR request. */ export declare const CODEX_CLOUD_TASK_TURN_REFERENCE_SCHEMA: z.ZodObject<{ taskId: z.ZodString; turnId: z.ZodString; url: z.ZodURL; }, z.core.$strip>; /** Lists preconfigured remote Codex cloud environments. */ export declare const listCodexCloudEnvironments: import("../..").DefinedAction; limit: z.ZodDefault; }, z.core.$strip>, z.ZodObject<{ cursor: z.ZodNullable; environments: z.ZodArray; taskCount: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>, "codex", false, never>; /** * Starts a remote task in a preconfigured Codex cloud environment. * * Automate.ax only submits the task. Codex performs the coding work in its * OpenAI-hosted cloud environment. */ export declare const startCodexCloudTask: import("../..").DefinedAction; branch: z.ZodString; environmentId: z.ZodString; mode: z.ZodDefault>; prompt: z.ZodString; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; url: z.ZodURL; }, z.core.$strip>, "codex", false, never>; /** Lists recent Codex cloud tasks. */ export declare const listCodexCloudTasks: import("../..").DefinedAction; environmentId: z.ZodOptional; filter: z.ZodDefault>; limit: z.ZodDefault; }, z.core.$strip>, z.ZodObject<{ cursor: z.ZodNullable; tasks: z.ZodArray; branch: z.ZodNullable; environmentId: z.ZodNullable; environmentLabel: z.ZodNullable; id: z.ZodString; isReview: z.ZodBoolean; pullRequests: z.ZodArray; author: z.ZodNullable; email: z.ZodNullable; login: z.ZodString; name: z.ZodNullable; }, z.core.$strip>>; baseBranch: z.ZodString; baseSha: z.ZodNullable; body: z.ZodNullable; changedFiles: z.ZodNullable; codexUpdatedSha: z.ZodNullable; commits: z.ZodNullable; deletions: z.ZodNullable; draft: z.ZodBoolean; headBranch: z.ZodString; headSha: z.ZodNullable; id: z.ZodString; mergeCommitSha: z.ZodNullable; mergeable: z.ZodNullable; merged: z.ZodBoolean; number: z.ZodNumber; state: z.ZodString; title: z.ZodString; turnId: z.ZodString; url: z.ZodURL; }, z.core.$strip>>; status: z.ZodEnum<{ pending: "pending"; unknown: "unknown"; error: "error"; ready: "ready"; applied: "applied"; }>; summary: z.ZodObject<{ filesChanged: z.ZodNumber; linesAdded: z.ZodNumber; linesRemoved: z.ZodNumber; }, z.core.$strip>; title: z.ZodString; updatedAt: z.ZodNullable; url: z.ZodURL; }, z.core.$strip>>; }, z.core.$strip>, "codex", false, never>; /** Gets one Codex cloud task with its latest output, diff, attempts, and PRs. */ export declare const getCodexCloudTask: import("../..").DefinedAction, z.ZodObject<{ archived: z.ZodBoolean; attemptTotal: z.ZodNullable; branch: z.ZodNullable; environmentId: z.ZodNullable; environmentLabel: z.ZodNullable; id: z.ZodString; isReview: z.ZodBoolean; pullRequests: z.ZodArray; author: z.ZodNullable; email: z.ZodNullable; login: z.ZodString; name: z.ZodNullable; }, z.core.$strip>>; baseBranch: z.ZodString; baseSha: z.ZodNullable; body: z.ZodNullable; changedFiles: z.ZodNullable; codexUpdatedSha: z.ZodNullable; commits: z.ZodNullable; deletions: z.ZodNullable; draft: z.ZodBoolean; headBranch: z.ZodString; headSha: z.ZodNullable; id: z.ZodString; mergeCommitSha: z.ZodNullable; mergeable: z.ZodNullable; merged: z.ZodBoolean; number: z.ZodNumber; state: z.ZodString; title: z.ZodString; turnId: z.ZodString; url: z.ZodURL; }, z.core.$strip>>; status: z.ZodEnum<{ pending: "pending"; unknown: "unknown"; error: "error"; ready: "ready"; applied: "applied"; }>; summary: z.ZodObject<{ filesChanged: z.ZodNumber; linesAdded: z.ZodNumber; linesRemoved: z.ZodNumber; }, z.core.$strip>; title: z.ZodString; updatedAt: z.ZodNullable; url: z.ZodURL; attempts: z.ZodArray; createdAt: z.ZodNullable; diff: z.ZodNullable; error: z.ZodNullable; messages: z.ZodArray; status: z.ZodEnum<{ failed: "failed"; pending: "pending"; unknown: "unknown"; completed: "completed"; cancelled: "cancelled"; inProgress: "inProgress"; }>; turnId: z.ZodString; }, z.core.$strip>>; currentTurnId: z.ZodNullable; prompt: z.ZodNullable; turns: z.ZodArray; id: z.ZodString; prompt: z.ZodNullable; attempts: z.ZodArray; createdAt: z.ZodNullable; diff: z.ZodNullable; error: z.ZodNullable; messages: z.ZodArray; status: z.ZodEnum<{ failed: "failed"; pending: "pending"; unknown: "unknown"; completed: "completed"; cancelled: "cancelled"; inProgress: "inProgress"; }>; turnId: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>, "codex", false, never>; /** Continues an existing Codex cloud task with another remote turn. */ export declare const continueCodexCloudTask: import("../..").DefinedAction>; prompt: z.ZodString; taskId: z.ZodString; turnId: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ taskId: z.ZodString; turnId: z.ZodString; url: z.ZodURL; }, z.core.$strip>, "codex", false, never>; /** Cancels the active turn for one Codex cloud task. */ export declare const cancelCodexCloudTask: import("../..").DefinedAction, z.ZodVoid, "codex", false, never>; /** Archives one Codex cloud task. */ export declare const archiveCodexCloudTask: import("../..").DefinedAction, z.ZodVoid, "codex", false, never>; /** Restores one archived Codex cloud task. */ export declare const unarchiveCodexCloudTask: import("../..").DefinedAction, z.ZodVoid, "codex", false, never>; /** Starts pull-request creation for a completed Codex cloud task turn. */ export declare const createCodexCloudPullRequest: import("../..").DefinedAction; taskId: z.ZodString; turnId: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ taskId: z.ZodString; turnId: z.ZodString; url: z.ZodURL; }, z.core.$strip>, "codex", false, never>; /** Input for waiting on a previously submitted Codex cloud task. */ export interface CodexCloudTaskWaitInput { /** Maximum number of status checks before the wait fails. Defaults to 36. */ maxPolls?: number; /** Durable delay between status checks. Defaults to `"5m"`. */ pollInterval?: DurationString | number; /** Stable task ID or compatible task signal. */ taskId: Extract[0], { taskId: unknown; }>["taskId"]; } /** Input for starting and durably waiting on a Codex cloud task. */ export type RunCodexCloudTaskInput = Extract[0], { prompt: unknown; }> & Pick; /** Account selection for composed Codex cloud task helpers. */ export type CodexCloudTaskAccountOptions = NonNullable[1]>; /** * Waits for a Codex cloud task through bounded, durable status checks. * * No action invocation remains open between checks. Each interval uses a * durable delivery root and a correlated child context. The returned signal * emits the first non-pending task. * * @param input - Task identity, interval, and polling budget. * @param options - Optional Codex account selection. */ export declare function waitForCodexCloudTask(input: CodexCloudTaskWaitInput, options?: CodexCloudTaskAccountOptions): import("../..").Signal<{ archived: boolean; attemptTotal: number | null; branch: string | null; environmentId: string | null; environmentLabel: string | null; id: string; isReview: boolean; pullRequests: { additions: number | null; author: { avatarUrl: string | null; email: string | null; login: string; name: string | null; } | null; baseBranch: string; baseSha: string | null; body: string | null; changedFiles: number | null; codexUpdatedSha: string | null; commits: number | null; deletions: number | null; draft: boolean; headBranch: string; headSha: string | null; id: string; mergeCommitSha: string | null; mergeable: boolean | null; merged: boolean; number: number; state: string; title: string; turnId: string; url: string; }[]; status: "pending" | "unknown" | "error" | "ready" | "applied"; summary: { filesChanged: number; linesAdded: number; linesRemoved: number; }; title: string; updatedAt: Date | null; url: string; attempts: { attemptNumber: number | null; createdAt: Date | null; diff: string | null; error: string | null; messages: string[]; status: "failed" | "pending" | "unknown" | "completed" | "cancelled" | "inProgress"; turnId: string; }[]; currentTurnId: string | null; prompt: string | null; turns: { createdAt: Date | null; id: string; prompt: string | null; attempts: { attemptNumber: number | null; createdAt: Date | null; diff: string | null; error: string | null; messages: string[]; status: "failed" | "pending" | "unknown" | "completed" | "cancelled" | "inProgress"; turnId: string; }[]; }[]; }>; /** * Starts a Codex cloud task and continues after it reaches a terminal state. * * @param input - Task submission fields and durable polling configuration. * @param options - Optional Codex account selection. */ export declare function runCodexCloudTask(input: RunCodexCloudTaskInput, options?: CodexCloudTaskAccountOptions): import("../..").Signal<{ archived: boolean; attemptTotal: number | null; branch: string | null; environmentId: string | null; environmentLabel: string | null; id: string; isReview: boolean; pullRequests: { additions: number | null; author: { avatarUrl: string | null; email: string | null; login: string; name: string | null; } | null; baseBranch: string; baseSha: string | null; body: string | null; changedFiles: number | null; codexUpdatedSha: string | null; commits: number | null; deletions: number | null; draft: boolean; headBranch: string; headSha: string | null; id: string; mergeCommitSha: string | null; mergeable: boolean | null; merged: boolean; number: number; state: string; title: string; turnId: string; url: string; }[]; status: "pending" | "unknown" | "error" | "ready" | "applied"; summary: { filesChanged: number; linesAdded: number; linesRemoved: number; }; title: string; updatedAt: Date | null; url: string; attempts: { attemptNumber: number | null; createdAt: Date | null; diff: string | null; error: string | null; messages: string[]; status: "failed" | "pending" | "unknown" | "completed" | "cancelled" | "inProgress"; turnId: string; }[]; currentTurnId: string | null; prompt: string | null; turns: { createdAt: Date | null; id: string; prompt: string | null; attempts: { attemptNumber: number | null; createdAt: Date | null; diff: string | null; error: string | null; messages: string[]; status: "failed" | "pending" | "unknown" | "completed" | "cancelled" | "inProgress"; turnId: string; }[]; }[]; }>; //# sourceMappingURL=actions.d.ts.map