import * as z from "zod/v3"; import { EventStream } from "../../lib/event-streams.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type CreateResponseRequest = { /** * Optional external end-user identifier forwarded by the API gateway. */ xOnBehalfOf?: string | undefined; responsesCreateRequest: components.ResponsesCreateRequest; }; /** * Successful response - returns either streaming events (SSE) or a complete response object (JSON) depending on the stream parameter */ export type CreateResponseResponseBody = { /** * The event type (optional in SSE) */ event?: string | undefined; data: components.ResponseStreamingEvent; /** * Optional event ID for reconnection */ id?: string | undefined; /** * Optional reconnection time in milliseconds */ retry?: number | undefined; }; export type CreateResponseResponse = components.ResponseObject | EventStream; /** @internal */ export declare const CreateResponseRequest$inboundSchema: z.ZodType; /** @internal */ export type CreateResponseRequest$Outbound = { "X-On-Behalf-Of"?: string | undefined; ResponsesCreateRequest: components.ResponsesCreateRequest$Outbound; }; /** @internal */ export declare const CreateResponseRequest$outboundSchema: z.ZodType; export declare function createResponseRequestToJSON(createResponseRequest: CreateResponseRequest): string; export declare function createResponseRequestFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const CreateResponseResponseBody$inboundSchema: z.ZodType; /** @internal */ export type CreateResponseResponseBody$Outbound = { event?: string | undefined; data: components.ResponseStreamingEvent$Outbound; id?: string | undefined; retry?: number | undefined; }; /** @internal */ export declare const CreateResponseResponseBody$outboundSchema: z.ZodType; export declare function createResponseResponseBodyToJSON(createResponseResponseBody: CreateResponseResponseBody): string; export declare function createResponseResponseBodyFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const CreateResponseResponse$inboundSchema: z.ZodType; /** @internal */ export type CreateResponseResponse$Outbound = components.ResponseObject$Outbound | never; /** @internal */ export declare const CreateResponseResponse$outboundSchema: z.ZodType; export declare function createResponseResponseToJSON(createResponseResponse: CreateResponseResponse): string; export declare function createResponseResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=createresponse.d.ts.map