import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ConversationsItemsRetrieveRequest = { conversationId: string; itemId: string; /** * Optional external end-user identifier forwarded by the API gateway. */ xOnBehalfOf?: string | undefined; }; /** * The role of the message sender (user, assistant, system, or developer). */ export declare const Role: { readonly User: "user"; readonly Assistant: "assistant"; readonly System: "system"; readonly Developer: "developer"; }; /** * The role of the message sender (user, assistant, system, or developer). */ export type Role = ClosedEnum; /** * The message content. Can be a simple text string or an array of multimodal content items (text, images, files, audio). */ export type Content = string | Array; /** * Input message item: A message with role and content. Use this for user, assistant, system, or developer turns in structured inputs. */ export type InputMessageItem = { /** * The item type identifier. Always 'message' for message items. */ type?: "message" | undefined; /** * The role of the message sender (user, assistant, system, or developer). */ role: Role; /** * The message content. Can be a simple text string or an array of multimodal content items (text, images, files, audio). */ content: string | Array; /** * The processing status of an individual item. 'in_progress' means currently processing, 'completed' means finished successfully, 'incomplete' means processing stopped before completion. */ status?: components.Status | undefined; /** * The unique ID of the message. */ id: string; /** * 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; }; /** * OK */ export type ConversationsItemsRetrieveResponseBody = components.ComputerToolCallWithId | components.CodeInterpreterToolCallWithId | components.OutputMessageWithId | components.OutputAudioItemWithId | components.FunctionToolCallWithId | components.LocalShellCallWithId | components.ShellCallWithId | components.MCPApprovalRequestWithId | components.MCPToolCallWithId | components.CustomToolCallWithId | components.FileSearchToolCallWithId | components.ComputerToolCallOutputWithId | components.WebSearchToolCallWithId | components.FunctionToolCallOutputWithId | components.ImageGenerationCallWithId | components.ShellCallOutputWithId | components.MCPListToolsWithId | components.MCPApprovalResponseWithId | components.CustomToolCallOutputWithId | InputMessageItem | components.ReasoningWithId | components.LocalShellCallOutputWithId | components.ResponseCompactionItemWithId | components.ItemReferenceWithId; /** @internal */ export declare const ConversationsItemsRetrieveRequest$inboundSchema: z.ZodType; /** @internal */ export type ConversationsItemsRetrieveRequest$Outbound = { conversation_id: string; item_id: string; "X-On-Behalf-Of"?: string | undefined; }; /** @internal */ export declare const ConversationsItemsRetrieveRequest$outboundSchema: z.ZodType; export declare function conversationsItemsRetrieveRequestToJSON(conversationsItemsRetrieveRequest: ConversationsItemsRetrieveRequest): string; export declare function conversationsItemsRetrieveRequestFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Role$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Role$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Content$inboundSchema: z.ZodType; /** @internal */ export type Content$Outbound = string | Array; /** @internal */ export declare const Content$outboundSchema: z.ZodType; export declare function contentToJSON(content: Content): string; export declare function contentFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const InputMessageItem$inboundSchema: z.ZodType; /** @internal */ export type InputMessageItem$Outbound = { type?: "message" | undefined; role: string; content: string | Array; status?: string | undefined; id: string; response_id?: string | null | undefined; metadata?: { [k: string]: string; } | null | undefined; }; /** @internal */ export declare const InputMessageItem$outboundSchema: z.ZodType; export declare function inputMessageItemToJSON(inputMessageItem: InputMessageItem): string; export declare function inputMessageItemFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ConversationsItemsRetrieveResponseBody$inboundSchema: z.ZodType; /** @internal */ export type ConversationsItemsRetrieveResponseBody$Outbound = components.ComputerToolCallWithId$Outbound | components.CodeInterpreterToolCallWithId$Outbound | components.OutputMessageWithId$Outbound | components.OutputAudioItemWithId$Outbound | components.FunctionToolCallWithId$Outbound | components.LocalShellCallWithId$Outbound | components.ShellCallWithId$Outbound | components.MCPApprovalRequestWithId$Outbound | components.MCPToolCallWithId$Outbound | components.CustomToolCallWithId$Outbound | components.FileSearchToolCallWithId$Outbound | components.ComputerToolCallOutputWithId$Outbound | components.WebSearchToolCallWithId$Outbound | components.FunctionToolCallOutputWithId$Outbound | components.ImageGenerationCallWithId$Outbound | components.ShellCallOutputWithId$Outbound | components.MCPListToolsWithId$Outbound | components.MCPApprovalResponseWithId$Outbound | components.CustomToolCallOutputWithId$Outbound | InputMessageItem$Outbound | components.ReasoningWithId$Outbound | components.LocalShellCallOutputWithId$Outbound | components.ResponseCompactionItemWithId$Outbound | components.ItemReferenceWithId$Outbound; /** @internal */ export declare const ConversationsItemsRetrieveResponseBody$outboundSchema: z.ZodType; export declare function conversationsItemsRetrieveResponseBodyToJSON(conversationsItemsRetrieveResponseBody: ConversationsItemsRetrieveResponseBody): string; export declare function conversationsItemsRetrieveResponseBodyFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=conversationsitemsretrieve.d.ts.map