'use strict';

var chunkVTHT3PPM_cjs = require('./chunk-VTHT3PPM.cjs');
var chunkUSD6C4ZL_cjs = require('./chunk-USD6C4ZL.cjs');
var z = require('zod');

function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }

var z__default = /*#__PURE__*/_interopDefault(z);

var listScorerVersionsQuerySchema = chunkVTHT3PPM_cjs.listVersionsQuerySchema;
var compareScorerVersionsQuerySchema = chunkVTHT3PPM_cjs.compareVersionsQuerySchema;
var createScorerVersionBodySchema = chunkVTHT3PPM_cjs.createVersionBodySchema;
var scorerVersionPathParams = z__default.default.object({
  scorerId: z__default.default.string().describe("Unique identifier for the stored scorer definition")
});
var scorerVersionIdPathParams = z__default.default.object({
  scorerId: z__default.default.string().describe("Unique identifier for the stored scorer definition"),
  versionId: z__default.default.string().describe("Unique identifier for the version (UUID)")
});
var samplingConfigSchema = z__default.default.union([
  z__default.default.object({ type: z__default.default.literal("none") }),
  z__default.default.object({ type: z__default.default.literal("ratio"), rate: z__default.default.number().min(0).max(1) })
]);
var scorerTypeEnum = z__default.default.enum([
  "llm-judge",
  "answer-relevancy",
  "answer-similarity",
  "bias",
  "context-precision",
  "context-relevance",
  "faithfulness",
  "hallucination",
  "noise-sensitivity",
  "prompt-alignment",
  "tool-call-accuracy",
  "toxicity"
]);
var scorerVersionSchema = z__default.default.object({
  id: z__default.default.string().describe("Unique identifier for the version (UUID)"),
  scorerDefinitionId: z__default.default.string().describe("ID of the scorer this version belongs to"),
  versionNumber: z__default.default.number().describe("Sequential version number (1, 2, 3, ...)"),
  // Snapshot config fields
  name: z__default.default.string().describe("Name of the scorer"),
  description: z__default.default.string().optional().describe("Description of the scorer"),
  type: scorerTypeEnum,
  model: chunkUSD6C4ZL_cjs.modelConfigSchema.optional(),
  instructions: z__default.default.string().optional(),
  scoreRange: z__default.default.object({
    min: z__default.default.number().optional(),
    max: z__default.default.number().optional()
  }).optional(),
  presetConfig: z__default.default.record(z__default.default.string(), z__default.default.unknown()).optional(),
  defaultSampling: samplingConfigSchema.optional(),
  // Version metadata
  changedFields: z__default.default.array(z__default.default.string()).optional().describe("Array of field names that changed from the previous version"),
  changeMessage: z__default.default.string().optional().describe("Optional message describing the changes"),
  createdAt: z__default.default.coerce.date().describe("When this version was created")
});
var listScorerVersionsResponseSchema = chunkVTHT3PPM_cjs.createListVersionsResponseSchema(scorerVersionSchema);
var getScorerVersionResponseSchema = scorerVersionSchema;
var createScorerVersionResponseSchema = scorerVersionSchema.partial().merge(
  z__default.default.object({
    id: z__default.default.string(),
    scorerDefinitionId: z__default.default.string(),
    versionNumber: z__default.default.number(),
    createdAt: z__default.default.coerce.date()
  })
);
var activateScorerVersionResponseSchema = chunkVTHT3PPM_cjs.activateVersionResponseSchema;
var restoreScorerVersionResponseSchema = scorerVersionSchema;
var deleteScorerVersionResponseSchema = chunkVTHT3PPM_cjs.deleteVersionResponseSchema;
var compareScorerVersionsResponseSchema = chunkVTHT3PPM_cjs.createCompareVersionsResponseSchema(scorerVersionSchema);

exports.activateScorerVersionResponseSchema = activateScorerVersionResponseSchema;
exports.compareScorerVersionsQuerySchema = compareScorerVersionsQuerySchema;
exports.compareScorerVersionsResponseSchema = compareScorerVersionsResponseSchema;
exports.createScorerVersionBodySchema = createScorerVersionBodySchema;
exports.createScorerVersionResponseSchema = createScorerVersionResponseSchema;
exports.deleteScorerVersionResponseSchema = deleteScorerVersionResponseSchema;
exports.getScorerVersionResponseSchema = getScorerVersionResponseSchema;
exports.listScorerVersionsQuerySchema = listScorerVersionsQuerySchema;
exports.listScorerVersionsResponseSchema = listScorerVersionsResponseSchema;
exports.restoreScorerVersionResponseSchema = restoreScorerVersionResponseSchema;
exports.scorerVersionIdPathParams = scorerVersionIdPathParams;
exports.scorerVersionPathParams = scorerVersionPathParams;
exports.scorerVersionSchema = scorerVersionSchema;
//# sourceMappingURL=chunk-BNJI7YMJ.cjs.map
//# sourceMappingURL=chunk-BNJI7YMJ.cjs.map