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 ShellCallOutputWithIdType: { readonly Exit: "exit"; readonly Timeout: "timeout"; }; /** * Whether the command exited normally or timed out. */ export type ShellCallOutputWithIdType = ClosedEnum; export type ShellCallOutputWithIdOutcome = { /** * Whether the command exited normally or timed out. */ type: ShellCallOutputWithIdType; /** * Exit code of the command, or null if timed out. */ exitCode: number | null; }; /** * Result of the executed command. */ export type ShellCallOutputWithIdOutput = { /** * Standard output from the command. */ stdout: string; /** * Standard error from the command. */ stderr: string; outcome: ShellCallOutputWithIdOutcome; }; /** * Shell call output item: The captured output from a hosted-container shell tool call. */ export type ShellCallOutputWithId = { type: "shell_call_output"; /** * The unique ID of the message. */ id: string; callId: string; /** * Result of the executed command. */ output: ShellCallOutputWithIdOutput; /** * 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; /** * The ID of the response that created this item, if any. */ responseId?: string | null | undefined; /** * Metadata from the response that created this item, if any. */ metadata?: { [k: string]: string; } | null | undefined; }; /** @internal */ export declare const ShellCallOutputWithIdType$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ShellCallOutputWithIdType$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ShellCallOutputWithIdOutcome$inboundSchema: z.ZodType; /** @internal */ export type ShellCallOutputWithIdOutcome$Outbound = { type: string; exit_code: number | null; }; /** @internal */ export declare const ShellCallOutputWithIdOutcome$outboundSchema: z.ZodType; export declare function shellCallOutputWithIdOutcomeToJSON(shellCallOutputWithIdOutcome: ShellCallOutputWithIdOutcome): string; export declare function shellCallOutputWithIdOutcomeFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ShellCallOutputWithIdOutput$inboundSchema: z.ZodType; /** @internal */ export type ShellCallOutputWithIdOutput$Outbound = { stdout: string; stderr: string; outcome: ShellCallOutputWithIdOutcome$Outbound; }; /** @internal */ export declare const ShellCallOutputWithIdOutput$outboundSchema: z.ZodType; export declare function shellCallOutputWithIdOutputToJSON(shellCallOutputWithIdOutput: ShellCallOutputWithIdOutput): string; export declare function shellCallOutputWithIdOutputFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ShellCallOutputWithId$inboundSchema: z.ZodType; /** @internal */ export type ShellCallOutputWithId$Outbound = { type: "shell_call_output"; id: string; call_id: string; output: ShellCallOutputWithIdOutput$Outbound; status?: string | undefined; response_id?: string | null | undefined; metadata?: { [k: string]: string; } | null | undefined; }; /** @internal */ export declare const ShellCallOutputWithId$outboundSchema: z.ZodType; export declare function shellCallOutputWithIdToJSON(shellCallOutputWithId: ShellCallOutputWithId): string; export declare function shellCallOutputWithIdFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=shellcalloutputwithid.d.ts.map