import * as Schema from "effect/Schema";
import { API } from "../../client.js";
import * as T from "../../traits.js";
import { Forbidden, NotFound } from "../../errors.js";
// Input Schema
export const ProductToursDraftStatusRetrieveInput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    id: Schema.String.pipe(T.PathParam()),
    project_id: Schema.String.pipe(T.PathParam()),
}).pipe(T.Http({
    method: "GET",
    path: "/api/projects/{project_id}/product_tours/{id}/draft_status/",
}));
// Output Schema
export const ProductToursDraftStatusRetrieveOutput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    updated_at: Schema.optional(Schema.String),
    has_draft: Schema.optional(Schema.Boolean),
});
// The operation
/**
 * Lightweight polling endpoint for draft change detection.
 *
 * @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 productToursDraftStatusRetrieve = 
/*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    inputSchema: ProductToursDraftStatusRetrieveInput,
    outputSchema: ProductToursDraftStatusRetrieveOutput,
    errors: [Forbidden, NotFound],
}));
//# sourceMappingURL=productToursDraftStatusRetrieve.js.map