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 ConversationsItemsCreateRequest = { conversationId: string; /** * Optional external end-user identifier forwarded by the API gateway. */ xOnBehalfOf?: string | undefined; createItemsRequest: components.CreateItemsRequest; }; /** * The role of the message sender (user, assistant, system, or developer). */ export declare const DataRole: { 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 DataRole = ClosedEnum; /** * The message content. Can be a simple text string or an array of multimodal content items (text, images, files, audio). */ export type DataContent = 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 DataInputMessageItem = { /** * The item type identifier. Always 'message' for message items. */ type?: "message" | undefined; /** * The role of the message sender (user, assistant, system, or developer). */ role: DataRole; /** * 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 ConversationsItemsCreateData = 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 | DataInputMessageItem | components.ReasoningWithId | components.LocalShellCallOutputWithId | components.ResponseCompactionItemWithId | components.ItemReferenceWithId; /** * OK */ export type ConversationsItemsCreateResponseBody = { 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 ConversationsItemsCreateRequest$inboundSchema: z.ZodType; /** @internal */ export type ConversationsItemsCreateRequest$Outbound = { conversation_id: string; "X-On-Behalf-Of"?: string | undefined; CreateItemsRequest: components.CreateItemsRequest$Outbound; }; /** @internal */ export declare const ConversationsItemsCreateRequest$outboundSchema: z.ZodType; export declare function conversationsItemsCreateRequestToJSON(conversationsItemsCreateRequest: ConversationsItemsCreateRequest): string; export declare function conversationsItemsCreateRequestFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const DataRole$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const DataRole$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const DataContent$inboundSchema: z.ZodType; /** @internal */ export type DataContent$Outbound = string | Array; /** @internal */ export declare const DataContent$outboundSchema: z.ZodType; export declare function dataContentToJSON(dataContent: DataContent): string; export declare function dataContentFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const DataInputMessageItem$inboundSchema: z.ZodType; /** @internal */ export type DataInputMessageItem$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 DataInputMessageItem$outboundSchema: z.ZodType; export declare function dataInputMessageItemToJSON(dataInputMessageItem: DataInputMessageItem): string; export declare function dataInputMessageItemFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ConversationsItemsCreateData$inboundSchema: z.ZodType; /** @internal */ export type ConversationsItemsCreateData$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 | DataInputMessageItem$Outbound | components.ReasoningWithId$Outbound | components.LocalShellCallOutputWithId$Outbound | components.ResponseCompactionItemWithId$Outbound | components.ItemReferenceWithId$Outbound; /** @internal */ export declare const ConversationsItemsCreateData$outboundSchema: z.ZodType; export declare function conversationsItemsCreateDataToJSON(conversationsItemsCreateData: ConversationsItemsCreateData): string; export declare function conversationsItemsCreateDataFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ConversationsItemsCreateResponseBody$inboundSchema: z.ZodType; /** @internal */ export type ConversationsItemsCreateResponseBody$Outbound = { object?: "list" | undefined; data: Array; has_more: boolean; last_id: string; }; /** @internal */ export declare const ConversationsItemsCreateResponseBody$outboundSchema: z.ZodType; export declare function conversationsItemsCreateResponseBodyToJSON(conversationsItemsCreateResponseBody: ConversationsItemsCreateResponseBody): string; export declare function conversationsItemsCreateResponseBodyFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=conversationsitemscreate.d.ts.map