import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Status } from "./status.js"; /** * Whether the command exited normally or timed out. */ export declare const ShellCallOutputType: { readonly Exit: "exit"; readonly Timeout: "timeout"; }; /** * Whether the command exited normally or timed out. */ export type ShellCallOutputType = ClosedEnum; export type Outcome = { /** * Whether the command exited normally or timed out. */ type: ShellCallOutputType; /** * Exit code of the command, or null if timed out. */ exitCode: number | null; }; /** * Result of the executed command. */ export type Output = { /** * Standard output from the command. */ stdout: string; /** * Standard error from the command. */ stderr: string; outcome: Outcome; }; /** * Shell call output item: The captured output from a hosted-container shell tool call. */ export type ShellCallOutput = { type: "shell_call_output"; id: string; callId: string; /** * Result of the executed command. */ output: Output; /** * The processing status of an individual item. 'in_progress' means currently processing, 'completed' means finished successfully, 'incomplete' means processing stopped before completion. */ status?: Status | undefined; }; /** @internal */ export declare const ShellCallOutputType$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ShellCallOutputType$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Outcome$inboundSchema: z.ZodType; /** @internal */ export type Outcome$Outbound = { type: string; exit_code: number | null; }; /** @internal */ export declare const Outcome$outboundSchema: z.ZodType; export declare function outcomeToJSON(outcome: Outcome): string; export declare function outcomeFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Output$inboundSchema: z.ZodType; /** @internal */ export type Output$Outbound = { stdout: string; stderr: string; outcome: Outcome$Outbound; }; /** @internal */ export declare const Output$outboundSchema: z.ZodType; export declare function outputToJSON(output: Output): string; export declare function outputFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ShellCallOutput$inboundSchema: z.ZodType; /** @internal */ export type ShellCallOutput$Outbound = { type: "shell_call_output"; id: string; call_id: string; output: Output$Outbound; status?: string | undefined; }; /** @internal */ export declare const ShellCallOutput$outboundSchema: z.ZodType; export declare function shellCallOutputToJSON(shellCallOutput: ShellCallOutput): string; export declare function shellCallOutputFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=shellcalloutput.d.ts.map