"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.UpdateSystemPromptDto = exports.PreviewSystemPromptResponseDto = exports.PreviewSystemPromptDto = exports.CreateSystemPromptDto = void 0;
const class_validator_1 = require("class-validator");
const class_transformer_1 = require("class-transformer");
const swagger_1 = require("@nestjs/swagger");
class CreateSystemPromptDto {
}
exports.CreateSystemPromptDto = CreateSystemPromptDto;
__decorate([
    (0, swagger_1.ApiProperty)({
        description: 'Name of the system prompt',
        example: 'Default Assistant',
    }),
    (0, class_validator_1.IsString)(),
    (0, class_validator_1.IsNotEmpty)(),
    __metadata("design:type", String)
], CreateSystemPromptDto.prototype, "prompt_name", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        description: 'Content of the system prompt (Eta template syntax supported)',
    }),
    (0, class_validator_1.IsString)(),
    (0, class_validator_1.IsNotEmpty)(),
    __metadata("design:type", String)
], CreateSystemPromptDto.prototype, "prompt_content", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({
        description: 'URL associated with this prompt',
        example: 'https://claude.ai',
    }),
    (0, class_validator_1.IsOptional)(),
    (0, class_transformer_1.Transform)(({ value }) => (value === '' ? null : value)),
    (0, class_validator_1.IsUrl)(),
    __metadata("design:type", String)
], CreateSystemPromptDto.prototype, "url", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({
        description: 'Token limit for follow-up context generation',
        minimum: 1,
    }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsNumber)(),
    (0, class_transformer_1.Transform)(({ value }) => value === '' || value === null ? null : Number(value)),
    __metadata("design:type", Number)
], CreateSystemPromptDto.prototype, "followup_token_limit", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({
        description: 'Enabled tools: "all" or array of tool names',
        example: 'all',
    }),
    (0, class_validator_1.IsOptional)(),
    __metadata("design:type", Object)
], CreateSystemPromptDto.prototype, "enabledTools", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({
        description: 'Enabled MCP tools: "all" or array of serverName__toolName identifiers',
        example: 'all',
    }),
    (0, class_validator_1.IsOptional)(),
    __metadata("design:type", Object)
], CreateSystemPromptDto.prototype, "enabledMcpTools", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({
        description: 'Whether this is a built-in prompt (only used by seeding)',
        example: false,
    }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsBoolean)(),
    __metadata("design:type", Boolean)
], CreateSystemPromptDto.prototype, "is_builtin", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({
        description: 'Unique key for built-in prompts (only used by seeding)',
        example: 'default-native-tool-agent',
    }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], CreateSystemPromptDto.prototype, "builtin_key", void 0);
class PreviewSystemPromptDto {
}
exports.PreviewSystemPromptDto = PreviewSystemPromptDto;
__decorate([
    (0, swagger_1.ApiProperty)({
        description: 'Prompt content to preview (Eta template will be rendered)',
    }),
    (0, class_validator_1.IsString)(),
    (0, class_validator_1.IsNotEmpty)(),
    __metadata("design:type", String)
], PreviewSystemPromptDto.prototype, "prompt_content", void 0);
class PreviewSystemPromptResponseDto {
}
exports.PreviewSystemPromptResponseDto = PreviewSystemPromptResponseDto;
__decorate([
    (0, swagger_1.ApiProperty)({
        description: 'Rendered prompt content with tool definitions injected',
    }),
    __metadata("design:type", String)
], PreviewSystemPromptResponseDto.prototype, "rendered_content", void 0);
class UpdateSystemPromptDto {
}
exports.UpdateSystemPromptDto = UpdateSystemPromptDto;
__decorate([
    (0, swagger_1.ApiPropertyOptional)({
        description: 'Name of the system prompt',
        example: 'Updated Assistant',
    }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    (0, class_validator_1.IsNotEmpty)(),
    __metadata("design:type", String)
], UpdateSystemPromptDto.prototype, "prompt_name", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ description: 'Content of the system prompt' }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    (0, class_validator_1.IsNotEmpty)(),
    __metadata("design:type", String)
], UpdateSystemPromptDto.prototype, "prompt_content", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ description: 'Set as default system prompt' }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsBoolean)(),
    __metadata("design:type", Boolean)
], UpdateSystemPromptDto.prototype, "is_default", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({
        description: 'URL associated with this prompt',
        example: 'https://claude.ai',
    }),
    (0, class_validator_1.IsOptional)(),
    (0, class_transformer_1.Transform)(({ value }) => (value === '' ? null : value)),
    (0, class_validator_1.IsUrl)(),
    __metadata("design:type", String)
], UpdateSystemPromptDto.prototype, "url", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({
        description: 'Token limit for follow-up context',
        minimum: 1,
    }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsNumber)(),
    (0, class_transformer_1.Transform)(({ value }) => value === '' || value === null ? null : Number(value)),
    __metadata("design:type", Number)
], UpdateSystemPromptDto.prototype, "followup_token_limit", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({
        description: 'Enabled MCP tools: "all" or array of serverName__toolName identifiers',
        example: 'all',
    }),
    (0, class_validator_1.IsOptional)(),
    __metadata("design:type", Object)
], UpdateSystemPromptDto.prototype, "enabledMcpTools", void 0);
//# sourceMappingURL=system-prompt.dto.js.map