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 EvaluationsTestHogCreateInput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    project_id: Schema.String.pipe(T.PathParam()),
    source: Schema.optional(Schema.String),
    sample_count: Schema.optional(Schema.Number),
    allows_na: Schema.optional(Schema.Boolean),
    conditions: Schema.optional(Schema.Array(Schema.Record(Schema.String, Schema.Unknown))),
}).pipe(T.Http({
    method: "POST",
    path: "/api/environments/{project_id}/evaluations/test_hog/",
}));
// Output Schema
export const EvaluationsTestHogCreateOutput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    results: Schema.optional(Schema.Array(Schema.Struct({
        event_uuid: Schema.optional(Schema.String),
        trace_id: Schema.optional(Schema.NullOr(Schema.String)),
        input_preview: Schema.optional(Schema.String),
        output_preview: Schema.optional(Schema.String),
        result: Schema.optional(Schema.NullOr(Schema.Boolean)),
        reasoning: Schema.optional(Schema.NullOr(Schema.String)),
        error: Schema.optional(Schema.NullOr(Schema.String)),
    }))),
    message: Schema.optional(Schema.String),
});
// The operation
/**
 * Test Hog evaluation code against sample events without saving.
 *
 * @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 evaluationsTestHogCreate = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    inputSchema: EvaluationsTestHogCreateInput,
    outputSchema: EvaluationsTestHogCreateOutput,
    errors: [BadRequest, Forbidden, NotFound],
}));
//# sourceMappingURL=evaluationsTestHogCreate.js.map