// Generated by Create API
// https://github.com/CreateAPI/CreateAPI

import Foundation
import Get
import URLQueryEncoder

extension Paths.VideoGen {
    public var pollBatches: PollBatches {
        PollBatches(path: path + "/poll_batches")
    }

    public struct PollBatches {
        /// Path: `/api/video_gen/poll_batches`
        public let path: String

        /// Poll Batches
        ///
        /// Poll multiple batch IDs to check if they've completed.
        /// Only returns batches that are complete (not processing).
        public func post(_ body: GenAPI.PollBatchesRequest) -> Request<GenAPI.PollBatchesResponse> {
            Request(path: path, method: "POST", body: body, id: "studio_api_video_generation_api_poll_batches")
        }
    }
}
