"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.PreviewContextTemplateResponseDto = exports.PreviewContextTemplateDto = exports.UpdateContextTemplateDto = exports.CreateContextTemplateDto = void 0;
const class_validator_1 = require("class-validator");
const class_transformer_1 = require("class-transformer");
const swagger_1 = require("@nestjs/swagger");
const context_template_entity_1 = require("../../core-entities/context-template.entity");
class CreateContextTemplateDto {
}
exports.CreateContextTemplateDto = CreateContextTemplateDto;
__decorate([
    (0, swagger_1.ApiProperty)({
        description: 'Name of the context template',
        example: 'Full Project Context',
    }),
    (0, class_validator_1.IsString)(),
    (0, class_validator_1.IsNotEmpty)(),
    __metadata("design:type", String)
], CreateContextTemplateDto.prototype, "template_name", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'Eta template content for generating context' }),
    (0, class_validator_1.IsString)(),
    (0, class_validator_1.IsNotEmpty)(),
    __metadata("design:type", String)
], CreateContextTemplateDto.prototype, "template_content", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({
        description: 'JSON string defining files/folders to include in context',
    }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], CreateContextTemplateDto.prototype, "context_definition", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ description: 'Type of template', enum: context_template_entity_1.TemplateType }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsEnum)(context_template_entity_1.TemplateType),
    __metadata("design:type", String)
], CreateContextTemplateDto.prototype, "template_type", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({
        description: 'Whether this is a built-in template (only used by seeding)',
        example: false,
    }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsBoolean)(),
    __metadata("design:type", Boolean)
], CreateContextTemplateDto.prototype, "is_builtin", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({
        description: 'Unique key for built-in templates (only used by seeding)',
        example: 'initial-full-project-context',
    }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], CreateContextTemplateDto.prototype, "builtin_key", void 0);
class UpdateContextTemplateDto {
}
exports.UpdateContextTemplateDto = UpdateContextTemplateDto;
__decorate([
    (0, swagger_1.ApiPropertyOptional)({
        description: 'Name of the context template',
        example: 'Updated Context',
    }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    (0, class_validator_1.IsNotEmpty)(),
    __metadata("design:type", String)
], UpdateContextTemplateDto.prototype, "template_name", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ description: 'Eta template content' }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    (0, class_validator_1.IsNotEmpty)(),
    __metadata("design:type", String)
], UpdateContextTemplateDto.prototype, "template_content", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ description: 'JSON string defining files/folders' }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], UpdateContextTemplateDto.prototype, "context_definition", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ description: 'Set as default for initial prompts' }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsBoolean)(),
    __metadata("design:type", Boolean)
], UpdateContextTemplateDto.prototype, "is_default_initial", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ description: 'Set as default for follow-up prompts' }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsBoolean)(),
    __metadata("design:type", Boolean)
], UpdateContextTemplateDto.prototype, "is_default_followup", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ description: 'Set as default for condensed history' }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsBoolean)(),
    __metadata("design:type", Boolean)
], UpdateContextTemplateDto.prototype, "is_default_condensed", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ description: 'Type of template', enum: context_template_entity_1.TemplateType }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsEnum)(context_template_entity_1.TemplateType),
    __metadata("design:type", String)
], UpdateContextTemplateDto.prototype, "template_type", void 0);
class ContextDefinitionDto {
}
__decorate([
    (0, swagger_1.ApiPropertyOptional)({
        description: 'Array of file paths to include',
        example: ['src/index.ts', 'src/utils.ts'],
    }),
    (0, class_validator_1.IsArray)(),
    (0, class_validator_1.IsString)({ each: true }),
    (0, class_validator_1.IsOptional)(),
    __metadata("design:type", Array)
], ContextDefinitionDto.prototype, "files", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({
        description: 'Array of folder paths to include',
        example: ['src/components', 'src/hooks'],
    }),
    (0, class_validator_1.IsArray)(),
    (0, class_validator_1.IsString)({ each: true }),
    (0, class_validator_1.IsOptional)(),
    __metadata("design:type", Array)
], ContextDefinitionDto.prototype, "folders", void 0);
class PreviewContextTemplateDto {
}
exports.PreviewContextTemplateDto = PreviewContextTemplateDto;
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'Eta template content to preview' }),
    (0, class_validator_1.IsString)(),
    (0, class_validator_1.IsNotEmpty)(),
    __metadata("design:type", String)
], PreviewContextTemplateDto.prototype, "template_content", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({
        description: 'Context definition object with files/folders',
    }),
    (0, class_validator_1.IsObject)(),
    (0, class_validator_1.ValidateNested)(),
    (0, class_transformer_1.Type)(() => ContextDefinitionDto),
    (0, class_validator_1.IsOptional)(),
    __metadata("design:type", ContextDefinitionDto)
], PreviewContextTemplateDto.prototype, "context_definition", void 0);
class PreviewContextTemplateResponseDto {
}
exports.PreviewContextTemplateResponseDto = PreviewContextTemplateResponseDto;
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'Rendered context string' }),
    __metadata("design:type", String)
], PreviewContextTemplateResponseDto.prototype, "rendered_context", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'Estimated token count of rendered context' }),
    __metadata("design:type", Number)
], PreviewContextTemplateResponseDto.prototype, "token_count", void 0);
//# sourceMappingURL=context-template.dto.js.map