import * as z from "zod/v3"; import { EventStream } from "../../lib/event-streams.js"; 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 declare const Include: { readonly WebSearchCallActionSources: "web_search_call.action.sources"; readonly CodeInterpreterCallOutputs: "code_interpreter_call.outputs"; readonly ComputerCallOutputOutputImageUrl: "computer_call_output.output.image_url"; readonly FileSearchCallResults: "file_search_call.results"; readonly MessageInputImageImageUrl: "message.input_image.image_url"; readonly MessageOutputTextLogprobs: "message.output_text.logprobs"; readonly ReasoningEncryptedContent: "reasoning.encrypted_content"; }; export type Include = ClosedEnum; export type GetResponseRequest = { responseId: string; include?: Array | undefined; includeObfuscation?: boolean | undefined; startingAfter?: number | undefined; stream?: boolean | undefined; /** * Optional external end-user identifier forwarded by the API gateway. */ xOnBehalfOf?: string | undefined; }; /** * Successful response - returns either streaming events (SSE) when stream=true or a complete response object (JSON) when stream=false or omitted */ export type GetResponseResponseBody = { /** * 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 GetResponseResponse = components.ResponseObject | EventStream; /** @internal */ export declare const Include$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Include$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const GetResponseRequest$inboundSchema: z.ZodType; /** @internal */ export type GetResponseRequest$Outbound = { response_id: string; include?: Array | undefined; include_obfuscation?: boolean | undefined; starting_after?: number | undefined; stream?: boolean | undefined; "X-On-Behalf-Of"?: string | undefined; }; /** @internal */ export declare const GetResponseRequest$outboundSchema: z.ZodType; export declare function getResponseRequestToJSON(getResponseRequest: GetResponseRequest): string; export declare function getResponseRequestFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const GetResponseResponseBody$inboundSchema: z.ZodType; /** @internal */ export type GetResponseResponseBody$Outbound = { event?: string | undefined; data: components.ResponseStreamingEvent$Outbound; id?: string | undefined; retry?: number | undefined; }; /** @internal */ export declare const GetResponseResponseBody$outboundSchema: z.ZodType; export declare function getResponseResponseBodyToJSON(getResponseResponseBody: GetResponseResponseBody): string; export declare function getResponseResponseBodyFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const GetResponseResponse$inboundSchema: z.ZodType; /** @internal */ export type GetResponseResponse$Outbound = components.ResponseObject$Outbound | never; /** @internal */ export declare const GetResponseResponse$outboundSchema: z.ZodType; export declare function getResponseResponseToJSON(getResponseResponse: GetResponseResponse): string; export declare function getResponseResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=getresponse.d.ts.map