'use strict';

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

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

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

var listPromptBlockVersionsQuerySchema = chunkVTHT3PPM_cjs.listVersionsQuerySchema;
var comparePromptBlockVersionsQuerySchema = chunkVTHT3PPM_cjs.compareVersionsQuerySchema;
var createPromptBlockVersionBodySchema = chunkVTHT3PPM_cjs.createVersionBodySchema;
var promptBlockVersionPathParams = z__default.default.object({
  promptBlockId: z__default.default.string().describe("Unique identifier for the stored prompt block")
});
var promptBlockVersionIdPathParams = z__default.default.object({
  promptBlockId: z__default.default.string().describe("Unique identifier for the stored prompt block"),
  versionId: z__default.default.string().describe("Unique identifier for the version (UUID)")
});
var promptBlockVersionSchema = z__default.default.object({
  id: z__default.default.string().describe("Unique identifier for the version (UUID)"),
  blockId: z__default.default.string().describe("ID of the prompt block 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("Display name of the prompt block"),
  description: z__default.default.string().optional().describe("Purpose description"),
  content: z__default.default.string().describe("Template content with {{variable}} interpolation"),
  rules: chunkRCSPGNEZ_cjs.ruleGroupSchema.optional().describe("Rules for conditional inclusion"),
  requestContextSchema: z__default.default.record(z__default.default.string(), z__default.default.unknown()).optional().describe("JSON Schema defining available variables for {{variableName}} interpolation and conditions"),
  // 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 listPromptBlockVersionsResponseSchema = chunkVTHT3PPM_cjs.createListVersionsResponseSchema(promptBlockVersionSchema);
var getPromptBlockVersionResponseSchema = promptBlockVersionSchema;
var createPromptBlockVersionResponseSchema = promptBlockVersionSchema.partial().merge(
  z__default.default.object({
    id: z__default.default.string(),
    blockId: z__default.default.string(),
    versionNumber: z__default.default.number(),
    createdAt: z__default.default.coerce.date()
  })
);
var activatePromptBlockVersionResponseSchema = chunkVTHT3PPM_cjs.activateVersionResponseSchema;
var restorePromptBlockVersionResponseSchema = promptBlockVersionSchema;
var deletePromptBlockVersionResponseSchema = chunkVTHT3PPM_cjs.deleteVersionResponseSchema;
var comparePromptBlockVersionsResponseSchema = chunkVTHT3PPM_cjs.createCompareVersionsResponseSchema(promptBlockVersionSchema);

exports.activatePromptBlockVersionResponseSchema = activatePromptBlockVersionResponseSchema;
exports.comparePromptBlockVersionsQuerySchema = comparePromptBlockVersionsQuerySchema;
exports.comparePromptBlockVersionsResponseSchema = comparePromptBlockVersionsResponseSchema;
exports.createPromptBlockVersionBodySchema = createPromptBlockVersionBodySchema;
exports.createPromptBlockVersionResponseSchema = createPromptBlockVersionResponseSchema;
exports.deletePromptBlockVersionResponseSchema = deletePromptBlockVersionResponseSchema;
exports.getPromptBlockVersionResponseSchema = getPromptBlockVersionResponseSchema;
exports.listPromptBlockVersionsQuerySchema = listPromptBlockVersionsQuerySchema;
exports.listPromptBlockVersionsResponseSchema = listPromptBlockVersionsResponseSchema;
exports.promptBlockVersionIdPathParams = promptBlockVersionIdPathParams;
exports.promptBlockVersionPathParams = promptBlockVersionPathParams;
exports.promptBlockVersionSchema = promptBlockVersionSchema;
exports.restorePromptBlockVersionResponseSchema = restorePromptBlockVersionResponseSchema;
//# sourceMappingURL=chunk-LU7HU7KW.cjs.map
//# sourceMappingURL=chunk-LU7HU7KW.cjs.map