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"; import { ShellCallOutputContent, ShellCallOutputContent$Outbound } from "./shellcalloutputcontent.js"; export type OutputShellServerToolItemAction = { commands: Array; maxOutputLength?: number | null | undefined; timeoutMs?: number | null | undefined; }; export declare const OutputShellServerToolItemTypeContainerFileCitation: { readonly ContainerFileCitation: "container_file_citation"; }; export type OutputShellServerToolItemTypeContainerFileCitation = ClosedEnum; export type OutputShellServerToolItemFile = { containerId: string; endIndex: number; fileId: string; filename: string; startIndex: number; type: OutputShellServerToolItemTypeContainerFileCitation; }; export declare const OutputShellServerToolItemTypeOpenrouterShell: { readonly OpenrouterShell: "openrouter:shell"; }; export type OutputShellServerToolItemTypeOpenrouterShell = ClosedEnum; /** * An openrouter:shell server tool output item */ export type OutputShellServerToolItem = { action?: OutputShellServerToolItemAction | undefined; /** * 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; /** * 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. `output` is omitted when `error` is set. */ error?: string | 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; output?: Array | undefined; status: FailableToolCallStatus; type: OutputShellServerToolItemTypeOpenrouterShell; }; /** @internal */ export declare const OutputShellServerToolItemAction$inboundSchema: z.ZodType; /** @internal */ export type OutputShellServerToolItemAction$Outbound = { commands: Array; max_output_length?: number | null | undefined; timeout_ms?: number | null | undefined; }; /** @internal */ export declare const OutputShellServerToolItemAction$outboundSchema: z.ZodType; export declare function outputShellServerToolItemActionToJSON(outputShellServerToolItemAction: OutputShellServerToolItemAction): string; export declare function outputShellServerToolItemActionFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const OutputShellServerToolItemTypeContainerFileCitation$inboundSchema: z.ZodEnum; /** @internal */ export declare const OutputShellServerToolItemTypeContainerFileCitation$outboundSchema: z.ZodEnum; /** @internal */ export declare const OutputShellServerToolItemFile$inboundSchema: z.ZodType; /** @internal */ export type OutputShellServerToolItemFile$Outbound = { container_id: string; end_index: number; file_id: string; filename: string; start_index: number; type: string; }; /** @internal */ export declare const OutputShellServerToolItemFile$outboundSchema: z.ZodType; export declare function outputShellServerToolItemFileToJSON(outputShellServerToolItemFile: OutputShellServerToolItemFile): string; export declare function outputShellServerToolItemFileFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const OutputShellServerToolItemTypeOpenrouterShell$inboundSchema: z.ZodEnum; /** @internal */ export declare const OutputShellServerToolItemTypeOpenrouterShell$outboundSchema: z.ZodEnum; /** @internal */ export declare const OutputShellServerToolItem$inboundSchema: z.ZodType; /** @internal */ export type OutputShellServerToolItem$Outbound = { action?: OutputShellServerToolItemAction$Outbound | undefined; arguments?: string | null | undefined; call_id?: string | null | undefined; container_id?: string | undefined; error?: string | undefined; files?: Array | undefined; id?: string | undefined; output?: Array | undefined; status: string; type: string; }; /** @internal */ export declare const OutputShellServerToolItem$outboundSchema: z.ZodType; export declare function outputShellServerToolItemToJSON(outputShellServerToolItem: OutputShellServerToolItem): string; export declare function outputShellServerToolItemFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=outputshellservertoolitem.d.ts.map