import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * An individual image object in the response. */ export type ImageGenerationResponseData = { /** * The URL of the generated image, if response_format is 'url' (default). The URL is valid for 1 hour. */ url?: string | undefined; /** * The base64-encoded JSON of the generated image, if response_format is 'b64_json'. */ b64Json?: string | undefined; /** * The prompt that was used to generate the image, if there was any revision to the prompt. */ revisedPrompt?: string | undefined; }; /** * Response from the image generation endpoint containing the generated images and metadata. */ export type ImageGenerationResponse = { /** * The Unix timestamp (in seconds) of when the image generation was completed. */ created: number; /** * A list of image objects containing the generated image data. */ data: Array; }; /** @internal */ export declare const ImageGenerationResponseData$inboundSchema: z.ZodType; /** @internal */ export type ImageGenerationResponseData$Outbound = { url?: string | undefined; b64_json?: string | undefined; revised_prompt?: string | undefined; }; /** @internal */ export declare const ImageGenerationResponseData$outboundSchema: z.ZodType; export declare function imageGenerationResponseDataToJSON(imageGenerationResponseData: ImageGenerationResponseData): string; export declare function imageGenerationResponseDataFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ImageGenerationResponse$inboundSchema: z.ZodType; /** @internal */ export type ImageGenerationResponse$Outbound = { created: number; data: Array; }; /** @internal */ export declare const ImageGenerationResponse$outboundSchema: z.ZodType; export declare function imageGenerationResponseToJSON(imageGenerationResponse: ImageGenerationResponse): string; export declare function imageGenerationResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=imagegenerationresponse.d.ts.map