import * as z from "zod/v4"; import { ClosedEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; import { FailableToolCallStatus } from "./failabletoolcallstatus.js"; export declare const OutputBashServerToolItemTypeContainerFileCitation: { readonly ContainerFileCitation: "container_file_citation"; }; export type OutputBashServerToolItemTypeContainerFileCitation = ClosedEnum; export type OutputBashServerToolItemFile = { containerId: string; endIndex: number; fileId: string; filename: string; startIndex: number; type: OutputBashServerToolItemTypeContainerFileCitation; }; export declare const OutputBashServerToolItemTypeOpenrouterBash: { readonly OpenrouterBash: "openrouter:bash"; }; export type OutputBashServerToolItemTypeOpenrouterBash = ClosedEnum; /** * An openrouter:bash server tool output item */ export type OutputBashServerToolItem = { /** * The raw tool-call arguments string as emitted by the model. */ arguments?: string | null | undefined; /** * The model-generated tool call id from the originating turn. */ callId?: string | null | undefined; command?: string | undefined; /** * The canonical container id the command ran under — the `{container_id}` for the Container Files API, reusable as a `container_reference` in later requests. Present on every sandbox-executed call, even when no files changed. */ containerId?: string | undefined; /** * The error message when the sandbox call failed before producing a result (for example, the per-user container limit was reached). Set together with `status: 'failed'`; absent on a successful call. A non-zero `exitCode` is a command failure, not a tool failure. */ error?: string | undefined; exitCode?: number | undefined; /** * Citations for the files the sandbox command created or modified, most-recently-touched first (at most 10). Retrieve them via the Container Files API. */ files?: Array | undefined; id?: string | undefined; status: FailableToolCallStatus; stderr?: string | undefined; stdout?: string | undefined; type: OutputBashServerToolItemTypeOpenrouterBash; }; /** @internal */ export declare const OutputBashServerToolItemTypeContainerFileCitation$inboundSchema: z.ZodEnum; /** @internal */ export declare const OutputBashServerToolItemTypeContainerFileCitation$outboundSchema: z.ZodEnum; /** @internal */ export declare const OutputBashServerToolItemFile$inboundSchema: z.ZodType; /** @internal */ export type OutputBashServerToolItemFile$Outbound = { container_id: string; end_index: number; file_id: string; filename: string; start_index: number; type: string; }; /** @internal */ export declare const OutputBashServerToolItemFile$outboundSchema: z.ZodType; export declare function outputBashServerToolItemFileToJSON(outputBashServerToolItemFile: OutputBashServerToolItemFile): string; export declare function outputBashServerToolItemFileFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const OutputBashServerToolItemTypeOpenrouterBash$inboundSchema: z.ZodEnum; /** @internal */ export declare const OutputBashServerToolItemTypeOpenrouterBash$outboundSchema: z.ZodEnum; /** @internal */ export declare const OutputBashServerToolItem$inboundSchema: z.ZodType; /** @internal */ export type OutputBashServerToolItem$Outbound = { arguments?: string | null | undefined; call_id?: string | null | undefined; command?: string | undefined; container_id?: string | undefined; error?: string | undefined; exitCode?: number | undefined; files?: Array | undefined; id?: string | undefined; status: string; stderr?: string | undefined; stdout?: string | undefined; type: string; }; /** @internal */ export declare const OutputBashServerToolItem$outboundSchema: z.ZodType; export declare function outputBashServerToolItemToJSON(outputBashServerToolItem: OutputBashServerToolItem): string; export declare function outputBashServerToolItemFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=outputbashservertoolitem.d.ts.map