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

import Foundation
import Get
import URLQueryEncoder

extension Paths.Generate {
    public var v2Web: V2Web {
        V2Web(path: path + "/v2-web")
    }

    public struct V2Web {
        /// Path: `/api/generate/v2-web`
        public let path: String

        /// Run Generation V2 Web
        ///
        /// The entrypoint for newer web clients
        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_web")
        }
    }
}
