'use strict';

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

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

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

var storedPromptBlockIdPathParams = z__default.default.object({
  storedPromptBlockId: z__default.default.string().describe("Unique identifier for the stored prompt block")
});
var storageOrderBySchema = z__default.default.object({
  field: z__default.default.enum(["createdAt", "updatedAt"]).optional(),
  direction: z__default.default.enum(["ASC", "DESC"]).optional()
});
var listStoredPromptBlocksQuerySchema = chunkZYXDUS6Q_cjs.createPagePaginationSchema(100).extend({
  orderBy: storageOrderBySchema.optional(),
  status: z__default.default.enum(["draft", "published", "archived"]).optional().describe("Filter prompt blocks by status. When omitted, returns all prompt blocks regardless of status"),
  authorId: z__default.default.string().optional().describe("Filter prompt blocks by author identifier"),
  metadata: z__default.default.record(z__default.default.string(), z__default.default.unknown()).optional().describe("Filter prompt blocks by metadata key-value pairs")
});
var snapshotConfigSchema = z__default.default.object({
  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")
});
var createStoredPromptBlockBodySchema = z__default.default.object({
  id: z__default.default.string().optional().describe("Unique identifier. If not provided, derived from name."),
  authorId: z__default.default.string().optional().describe("Author identifier for multi-tenant filtering"),
  metadata: z__default.default.record(z__default.default.string(), z__default.default.unknown()).optional().describe("Additional metadata for the prompt block")
}).merge(snapshotConfigSchema);
var updateStoredPromptBlockBodySchema = z__default.default.object({
  authorId: z__default.default.string().optional(),
  metadata: z__default.default.record(z__default.default.string(), z__default.default.unknown()).optional()
}).merge(snapshotConfigSchema.partial());
var storedPromptBlockSchema = z__default.default.object({
  id: z__default.default.string(),
  status: z__default.default.string().describe("Prompt block status: draft, published, or archived"),
  activeVersionId: z__default.default.string().optional(),
  hasDraft: z__default.default.boolean().optional().describe("Whether the prompt block has unpublished draft changes"),
  authorId: z__default.default.string().optional(),
  metadata: z__default.default.record(z__default.default.string(), z__default.default.unknown()).optional(),
  createdAt: z__default.default.coerce.date(),
  updatedAt: z__default.default.coerce.date(),
  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")
});
var listStoredPromptBlocksResponseSchema = chunkZYXDUS6Q_cjs.paginationInfoSchema.extend({
  promptBlocks: z__default.default.array(storedPromptBlockSchema)
});
var getStoredPromptBlockResponseSchema = storedPromptBlockSchema;
var createStoredPromptBlockResponseSchema = storedPromptBlockSchema;
var updateStoredPromptBlockResponseSchema = z__default.default.union([
  z__default.default.object({
    id: z__default.default.string(),
    status: z__default.default.string(),
    activeVersionId: z__default.default.string().optional(),
    authorId: z__default.default.string().optional(),
    metadata: z__default.default.record(z__default.default.string(), z__default.default.unknown()).optional(),
    createdAt: z__default.default.coerce.date(),
    updatedAt: z__default.default.coerce.date()
  }),
  storedPromptBlockSchema
]);
var deleteStoredPromptBlockResponseSchema = z__default.default.object({
  success: z__default.default.boolean(),
  message: z__default.default.string()
});

exports.createStoredPromptBlockBodySchema = createStoredPromptBlockBodySchema;
exports.createStoredPromptBlockResponseSchema = createStoredPromptBlockResponseSchema;
exports.deleteStoredPromptBlockResponseSchema = deleteStoredPromptBlockResponseSchema;
exports.getStoredPromptBlockResponseSchema = getStoredPromptBlockResponseSchema;
exports.listStoredPromptBlocksQuerySchema = listStoredPromptBlocksQuerySchema;
exports.listStoredPromptBlocksResponseSchema = listStoredPromptBlocksResponseSchema;
exports.storedPromptBlockIdPathParams = storedPromptBlockIdPathParams;
exports.storedPromptBlockSchema = storedPromptBlockSchema;
exports.updateStoredPromptBlockBodySchema = updateStoredPromptBlockBodySchema;
exports.updateStoredPromptBlockResponseSchema = updateStoredPromptBlockResponseSchema;
//# sourceMappingURL=chunk-CWPZX27X.cjs.map
//# sourceMappingURL=chunk-CWPZX27X.cjs.map