import * as Schema from "effect/Schema";
import { API } from "../../client.js";
import * as T from "../../traits.js";
import { BadRequest, Forbidden, NotFound } from "../../errors.js";
// Input Schema
export const EndpointsMaterializationPreviewCreateInput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    name: Schema.String.pipe(T.PathParam()),
    project_id: Schema.String.pipe(T.PathParam()),
    version: Schema.optional(Schema.Number),
    bucket_overrides: Schema.optional(Schema.NullOr(Schema.Record(Schema.String, Schema.String))),
}).pipe(T.Http({
    method: "POST",
    path: "/api/projects/{project_id}/endpoints/{name}/materialization_preview/",
}));
// Output Schema
export const EndpointsMaterializationPreviewCreateOutput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Void;
// The operation
/**
 * Preview the materialization transform for an endpoint. Shows what the query will look like after materialization, including range pair detection and bucket functions.
 *
 * @param project_id - Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
 */
export const endpointsMaterializationPreviewCreate = 
/*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    inputSchema: EndpointsMaterializationPreviewCreateInput,
    outputSchema: EndpointsMaterializationPreviewCreateOutput,
    errors: [BadRequest, Forbidden, NotFound],
}));
//# sourceMappingURL=endpointsMaterializationPreviewCreate.js.map