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 ProductToursGenerateCreateInput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    id: Schema.String.pipe(T.PathParam()),
    project_id: Schema.String.pipe(T.PathParam()),
    title: Schema.optional(Schema.String),
    goal: Schema.optional(Schema.String),
    steps: Schema.optional(Schema.Array(Schema.Record(Schema.String, Schema.Unknown))),
}).pipe(T.Http({
    method: "POST",
    path: "/api/projects/{project_id}/product_tours/{id}/generate/",
}));
// Output Schema
export const ProductToursGenerateCreateOutput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    steps: Schema.optional(Schema.Array(Schema.Struct({
        step_id: Schema.optional(Schema.String),
        title: Schema.optional(Schema.String),
        description: Schema.optional(Schema.String),
    }))),
});
// The operation
/**
 * Generate tour step content using AI.
 *
 * @param id - A UUID string identifying this product tour.
 * @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 productToursGenerateCreate = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    inputSchema: ProductToursGenerateCreateInput,
    outputSchema: ProductToursGenerateCreateOutput,
    errors: [BadRequest, Forbidden, NotFound],
}));
//# sourceMappingURL=productToursGenerateCreate.js.map