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 { OutputText, OutputText$Outbound } from "./outputtext.js"; import { Refusal, Refusal$Outbound } from "./refusal.js"; export type OutputMessageWithIdContent = (OutputText & { type: "output_text"; }) | (Refusal & { type: "refusal"; }); /** * The processing status of this message (in_progress, completed, or incomplete). */ export declare const OutputMessageWithIdStatus: { readonly InProgress: "in_progress"; readonly Completed: "completed"; readonly Incomplete: "incomplete"; }; /** * The processing status of this message (in_progress, completed, or incomplete). */ export type OutputMessageWithIdStatus = ClosedEnum; /** * Labels an assistant message as intermediate commentary or the final answer. */ export declare const OutputMessageWithIdPhase: { readonly Commentary: "commentary"; readonly FinalAnswer: "final_answer"; }; /** * Labels an assistant message as intermediate commentary or the final answer. */ export type OutputMessageWithIdPhase = ClosedEnum; /** * Output message item: An assistant message containing generated text content or refusal content. */ export type OutputMessageWithId = { /** * The item type identifier for message outputs. */ type: "message"; /** * The unique ID of the message. */ id: string; /** * The role of the message sender. Always 'assistant' for model-generated messages. */ role: "assistant"; /** * Array of content items in the assistant's response. Can contain text outputs or refusal messages. */ content: Array<(OutputText & { type: "output_text"; }) | (Refusal & { type: "refusal"; })>; /** * The processing status of this message (in_progress, completed, or incomplete). */ status: OutputMessageWithIdStatus; /** * Labels an assistant message as intermediate commentary or the final answer. */ phase?: OutputMessageWithIdPhase | 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 OutputMessageWithIdContent$inboundSchema: z.ZodType; /** @internal */ export type OutputMessageWithIdContent$Outbound = (OutputText$Outbound & { type: "output_text"; }) | (Refusal$Outbound & { type: "refusal"; }); /** @internal */ export declare const OutputMessageWithIdContent$outboundSchema: z.ZodType; export declare function outputMessageWithIdContentToJSON(outputMessageWithIdContent: OutputMessageWithIdContent): string; export declare function outputMessageWithIdContentFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const OutputMessageWithIdStatus$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const OutputMessageWithIdStatus$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const OutputMessageWithIdPhase$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const OutputMessageWithIdPhase$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const OutputMessageWithId$inboundSchema: z.ZodType; /** @internal */ export type OutputMessageWithId$Outbound = { type: "message"; id: string; role: "assistant"; content: Array<(OutputText$Outbound & { type: "output_text"; }) | (Refusal$Outbound & { type: "refusal"; })>; status: string; phase?: string | undefined; response_id?: string | null | undefined; metadata?: { [k: string]: string; } | null | undefined; }; /** @internal */ export declare const OutputMessageWithId$outboundSchema: z.ZodType; export declare function outputMessageWithIdToJSON(outputMessageWithId: OutputMessageWithId): string; export declare function outputMessageWithIdFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=outputmessagewithid.d.ts.map