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"; /** * The order to return the input items in. Default is `asc`. */ export declare const QueryParamOrder: { readonly Asc: "asc"; readonly Desc: "desc"; }; /** * The order to return the input items in. Default is `asc`. */ export type QueryParamOrder = ClosedEnum; export type ConversationsItemsListRequest = { conversationId: string; after?: string | undefined; include?: Array | undefined; limit?: number | undefined; /** * The order to return the input items in. Default is `asc`. */ order?: QueryParamOrder | undefined; /** * 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 ConversationsItemsListDataRole: { 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 ConversationsItemsListDataRole = ClosedEnum; /** * The message content. Can be a simple text string or an array of multimodal content items (text, images, files, audio). */ export type ConversationsItemsListDataContent = 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 ConversationsItemsListDataInputMessageItem = { /** * The item type identifier. Always 'message' for message items. */ type?: "message" | undefined; /** * The role of the message sender (user, assistant, system, or developer). */ role: ConversationsItemsListDataRole; /** * 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; }; export type Data = 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 | ConversationsItemsListDataInputMessageItem | components.ReasoningWithId | components.LocalShellCallOutputWithId | components.ResponseCompactionItemWithId | components.ItemReferenceWithId; /** * OK */ export type ConversationsItemsListResponseBody = { object?: "list" | undefined; /** * A list of conversation items. */ data: Array; /** * Whether there are more items */ hasMore: boolean; /** * ID of the last item in the current page */ lastId: string; }; /** @internal */ export declare const QueryParamOrder$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const QueryParamOrder$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ConversationsItemsListRequest$inboundSchema: z.ZodType; /** @internal */ export type ConversationsItemsListRequest$Outbound = { conversation_id: string; after?: string | undefined; include?: Array | undefined; limit: number; order: string; "X-On-Behalf-Of"?: string | undefined; }; /** @internal */ export declare const ConversationsItemsListRequest$outboundSchema: z.ZodType; export declare function conversationsItemsListRequestToJSON(conversationsItemsListRequest: ConversationsItemsListRequest): string; export declare function conversationsItemsListRequestFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ConversationsItemsListDataRole$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ConversationsItemsListDataRole$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ConversationsItemsListDataContent$inboundSchema: z.ZodType; /** @internal */ export type ConversationsItemsListDataContent$Outbound = string | Array; /** @internal */ export declare const ConversationsItemsListDataContent$outboundSchema: z.ZodType; export declare function conversationsItemsListDataContentToJSON(conversationsItemsListDataContent: ConversationsItemsListDataContent): string; export declare function conversationsItemsListDataContentFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ConversationsItemsListDataInputMessageItem$inboundSchema: z.ZodType; /** @internal */ export type ConversationsItemsListDataInputMessageItem$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 ConversationsItemsListDataInputMessageItem$outboundSchema: z.ZodType; export declare function conversationsItemsListDataInputMessageItemToJSON(conversationsItemsListDataInputMessageItem: ConversationsItemsListDataInputMessageItem): string; export declare function conversationsItemsListDataInputMessageItemFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Data$inboundSchema: z.ZodType; /** @internal */ export type Data$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 | ConversationsItemsListDataInputMessageItem$Outbound | components.ReasoningWithId$Outbound | components.LocalShellCallOutputWithId$Outbound | components.ResponseCompactionItemWithId$Outbound | components.ItemReferenceWithId$Outbound; /** @internal */ export declare const Data$outboundSchema: z.ZodType; export declare function dataToJSON(data: Data): string; export declare function dataFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ConversationsItemsListResponseBody$inboundSchema: z.ZodType; /** @internal */ export type ConversationsItemsListResponseBody$Outbound = { object?: "list" | undefined; data: Array; has_more: boolean; last_id: string; }; /** @internal */ export declare const ConversationsItemsListResponseBody$outboundSchema: z.ZodType; export declare function conversationsItemsListResponseBodyToJSON(conversationsItemsListResponseBody: ConversationsItemsListResponseBody): string; export declare function conversationsItemsListResponseBodyFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=conversationsitemslist.d.ts.map