import * as z from "zod/v4"; import { OpenEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; import { VideoGenerationUsage } from "./videogenerationusage.js"; export declare const VideoGenerationResponseStatus: { readonly Pending: "pending"; readonly InProgress: "in_progress"; readonly Completed: "completed"; readonly Failed: "failed"; readonly Cancelled: "cancelled"; readonly Expired: "expired"; }; export type VideoGenerationResponseStatus = OpenEnum; /** * The step within `status` for a job that is not finished: `submitting` and `queued_at_provider` under `pending`, `generating` and `finalizing` under `in_progress`. When present, it only moves forward, and steps may be skipped between polls. It is absent once the job is finished and can also be absent mid-job when the step is unknown, so use `status` to tell whether the job is finished. */ export declare const StatusDetail: { readonly Submitting: "submitting"; readonly QueuedAtProvider: "queued_at_provider"; readonly Generating: "generating"; readonly Finalizing: "finalizing"; }; /** * The step within `status` for a job that is not finished: `submitting` and `queued_at_provider` under `pending`, `generating` and `finalizing` under `in_progress`. When present, it only moves forward, and steps may be skipped between polls. It is absent once the job is finished and can also be absent mid-job when the step is unknown, so use `status` to tell whether the job is finished. */ export type StatusDetail = OpenEnum; export type VideoGenerationResponse = { error?: string | undefined; /** * Unix timestamp in seconds when OpenRouter's stored copy of the outputs stops being available. Present only when that copy exists. */ expiresAt?: number | undefined; /** * The generation ID associated with this video generation job. Available once the job has been processed. */ generationId?: string | undefined; /** * The video job ID, in the `gen-vid--<20 alphanumerics>` generation ID format. Pass it as `previous_job_id` to continue the generation. */ id: string; pollingUrl: string; /** * Percent complete, from 0 to 100 and possibly fractional, reported by the provider while `status_detail` is `generating`. Present only for providers that report it, and absent once the job moves to `finalizing`. */ progress?: number | undefined; status: VideoGenerationResponseStatus; /** * The step within `status` for a job that is not finished: `submitting` and `queued_at_provider` under `pending`, `generating` and `finalizing` under `in_progress`. When present, it only moves forward, and steps may be skipped between polls. It is absent once the job is finished and can also be absent mid-job when the step is unknown, so use `status` to tell whether the job is finished. */ statusDetail?: StatusDetail | undefined; /** * OpenRouter content URLs for each output. They need your API key in the `Authorization` header and keep working for as long as the output is available. */ unsignedUrls?: Array | undefined; /** * Signed download URLs for OpenRouter's stored copy of each output, usable without an API key until `expires_at`. Anyone holding a URL can download that output until it expires, so treat it like a secret. Present only when the stored copy exists. */ urls?: Array | undefined; /** * Usage and cost information for the video generation. Available once the job has completed. */ usage?: VideoGenerationUsage | undefined; }; /** @internal */ export declare const VideoGenerationResponseStatus$inboundSchema: z.ZodType; /** @internal */ export declare const StatusDetail$inboundSchema: z.ZodType; /** @internal */ export declare const VideoGenerationResponse$inboundSchema: z.ZodType; export declare function videoGenerationResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=videogenerationresponse.d.ts.map