import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type CreateChatCompletionStreamRequest = { /** * Optional external end-user identifier forwarded by the API gateway. */ xOnBehalfOf?: string | undefined; openAIChatCompletionRequestParams: components.OpenAIChatCompletionRequestParams; }; export type Three = { event: "error"; data?: string | null | undefined; id?: string | undefined; retry?: number | undefined; }; export type Two = { event: "done"; data?: string | null | undefined; id?: string | undefined; retry?: number | undefined; }; export type One = { event: "message"; /** * Represents a streamed chunk of a chat completion response */ data: components.OpenAIChatCompletionChunk; id?: string | undefined; retry?: number | undefined; }; /** * OK */ export type CreateChatCompletionStreamResponseBody = One | Two | Three; /** @internal */ export declare const CreateChatCompletionStreamRequest$inboundSchema: z.ZodType; /** @internal */ export type CreateChatCompletionStreamRequest$Outbound = { "X-On-Behalf-Of"?: string | undefined; OpenAIChatCompletionRequestParams: components.OpenAIChatCompletionRequestParams$Outbound; }; /** @internal */ export declare const CreateChatCompletionStreamRequest$outboundSchema: z.ZodType; export declare function createChatCompletionStreamRequestToJSON(createChatCompletionStreamRequest: CreateChatCompletionStreamRequest): string; export declare function createChatCompletionStreamRequestFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Three$inboundSchema: z.ZodType; /** @internal */ export type Three$Outbound = { event: "error"; data?: string | null | undefined; id?: string | undefined; retry?: number | undefined; }; /** @internal */ export declare const Three$outboundSchema: z.ZodType; export declare function threeToJSON(three: Three): string; export declare function threeFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Two$inboundSchema: z.ZodType; /** @internal */ export type Two$Outbound = { event: "done"; data?: string | null | undefined; id?: string | undefined; retry?: number | undefined; }; /** @internal */ export declare const Two$outboundSchema: z.ZodType; export declare function twoToJSON(two: Two): string; export declare function twoFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const One$inboundSchema: z.ZodType; /** @internal */ export type One$Outbound = { event: "message"; data: components.OpenAIChatCompletionChunk$Outbound; id?: string | undefined; retry?: number | undefined; }; /** @internal */ export declare const One$outboundSchema: z.ZodType; export declare function oneToJSON(one: One): string; export declare function oneFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const CreateChatCompletionStreamResponseBody$inboundSchema: z.ZodType; /** @internal */ export type CreateChatCompletionStreamResponseBody$Outbound = One$Outbound | Two$Outbound | Three$Outbound; /** @internal */ export declare const CreateChatCompletionStreamResponseBody$outboundSchema: z.ZodType; export declare function createChatCompletionStreamResponseBodyToJSON(createChatCompletionStreamResponseBody: CreateChatCompletionStreamResponseBody): string; export declare function createChatCompletionStreamResponseBodyFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=createchatcompletionstream.d.ts.map