"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getStepJsonSchema = getStepJsonSchema;
exports.getAllStepJsonSchemas = getAllStepJsonSchemas;
const step_registry_1 = require("./schemas/step-registry");
const zod_1 = require("zod");
function getStepJsonSchema(stepTypeName, testType) {
    const zodSchema = (0, step_registry_1.getStepSchema)(stepTypeName, testType);
    if (!zodSchema) {
        return undefined;
    }
    return zod_1.z.toJSONSchema(zodSchema);
}
function getAllStepJsonSchemas(testType) {
    const names = (0, step_registry_1.getStepTypeNames)(testType);
    const schemas = {};
    for (const name of names) {
        const schema = getStepJsonSchema(name, testType);
        if (schema) {
            schemas[name] = schema;
        }
    }
    return schemas;
}
