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

import Foundation
import Get
import URLQueryEncoder

extension Paths.Generate {
    public var v2: V2 {
        V2(path: path + "/v2")
    }

    public struct V2 {
        /// Path: `/api/generate/v2`
        public let path: String

        /// Run Generation V2
        ///
        /// The entrypoint for older web clients and also mobile
        public func post(_ body: GenAPI.GenParamsSpec) -> Request<GenAPI.GenerationRequestSchema> {
            Request(path: path, method: "POST", body: body, id: "studio_api_bots_generate_api_run_generation_v2")
        }
    }
}
