"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.UpdateSessionInputContentDto = exports.BatchToggleDiscardedDto = exports.ToolResultUpdateDto = exports.UpdateSessionInputDto = exports.CreateSessionInputDto = void 0;
const class_validator_1 = require("class-validator");
const swagger_1 = require("@nestjs/swagger");
const class_transformer_1 = require("class-transformer");
class CreateSessionInputDto {
}
exports.CreateSessionInputDto = CreateSessionInputDto;
__decorate([
    (0, swagger_1.ApiProperty)({
        description: 'User prompt text to send to LLM',
        example: 'Create a new authentication module',
    }),
    (0, class_validator_1.IsString)(),
    (0, class_validator_1.IsNotEmpty)(),
    __metadata("design:type", String)
], CreateSessionInputDto.prototype, "user_prompt", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({
        description: 'UUID of context template to use for generating context',
        format: 'uuid',
    }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsUUID)(),
    __metadata("design:type", String)
], CreateSessionInputDto.prototype, "context_template_id", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({
        description: 'Ad-hoc context definition (JSON or TEXT) for custom file/folder selection',
    }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], CreateSessionInputDto.prototype, "ad_hoc_context_definition", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        description: 'Execution strategy for AI actions',
        enum: ['review_first', 'apply_revert'],
        example: 'review_first',
    }),
    (0, class_validator_1.IsString)(),
    (0, class_validator_1.IsNotEmpty)(),
    __metadata("design:type", String)
], CreateSessionInputDto.prototype, "execution_strategy", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({
        description: 'Skip creating SessionInput entity in database (used for native tool calling follow-ups)',
    }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsBoolean)(),
    __metadata("design:type", Boolean)
], CreateSessionInputDto.prototype, "skip_persistence", void 0);
class UpdateSessionInputDto {
}
exports.UpdateSessionInputDto = UpdateSessionInputDto;
__decorate([
    (0, swagger_1.ApiProperty)({
        description: 'Modified user prompt text',
        example: 'Create a new authentication module with OAuth2 support',
    }),
    (0, class_validator_1.IsString)(),
    (0, class_validator_1.IsNotEmpty)(),
    __metadata("design:type", String)
], UpdateSessionInputDto.prototype, "user_prompt", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({
        description: 'UUID of context template to use',
        format: 'uuid',
    }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsUUID)(),
    __metadata("design:type", String)
], UpdateSessionInputDto.prototype, "context_template_id", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({
        description: 'Ad-hoc context definition (JSON or TEXT)',
    }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], UpdateSessionInputDto.prototype, "ad_hoc_context_definition", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({
        description: 'Execution strategy for AI actions',
        enum: ['review_first', 'apply_revert'],
    }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], UpdateSessionInputDto.prototype, "execution_strategy", void 0);
class ToolResultUpdateDto {
}
exports.ToolResultUpdateDto = ToolResultUpdateDto;
__decorate([
    (0, swagger_1.ApiProperty)({
        description: 'Tool call ID to update (from AIAction.tool_call_id)',
    }),
    (0, class_validator_1.IsString)(),
    (0, class_validator_1.IsNotEmpty)(),
    __metadata("design:type", String)
], ToolResultUpdateDto.prototype, "tool_call_id", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        description: 'New output content (replaces execution log output)',
    }),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], ToolResultUpdateDto.prototype, "output", void 0);
class BatchToggleDiscardedDto {
}
exports.BatchToggleDiscardedDto = BatchToggleDiscardedDto;
__decorate([
    (0, swagger_1.ApiProperty)({
        description: 'Array of input UUIDs to toggle',
        type: [String],
        format: 'uuid',
    }),
    (0, class_validator_1.IsArray)(),
    (0, class_validator_1.ArrayNotEmpty)(),
    (0, class_validator_1.IsUUID)('4', { each: true }),
    __metadata("design:type", Array)
], BatchToggleDiscardedDto.prototype, "input_ids", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        description: 'Whether to discard (true) or restore (false) the inputs',
        example: true,
    }),
    (0, class_validator_1.IsBoolean)(),
    __metadata("design:type", Boolean)
], BatchToggleDiscardedDto.prototype, "is_discarded", void 0);
class UpdateSessionInputContentDto {
}
exports.UpdateSessionInputContentDto = UpdateSessionInputContentDto;
__decorate([
    (0, swagger_1.ApiPropertyOptional)({
        description: 'Updated user prompt text (display only, not sent to LLM)',
    }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], UpdateSessionInputContentDto.prototype, "user_prompt", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ description: 'Updated LLM response text' }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], UpdateSessionInputContentDto.prototype, "raw_llm_response", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ description: 'Updated explanation text' }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], UpdateSessionInputContentDto.prototype, "llm_response_explanation", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({
        description: 'Updated generated context (this is what LLM sees for user turns)',
    }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], UpdateSessionInputContentDto.prototype, "generated_context_string", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ description: 'Updated thoughts/reasoning content' }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], UpdateSessionInputContentDto.prototype, "thoughts", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({
        description: 'Tool results to redact (updates execution logs)',
        type: [ToolResultUpdateDto],
    }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsArray)(),
    (0, class_validator_1.ValidateNested)({ each: true }),
    (0, class_transformer_1.Type)(() => ToolResultUpdateDto),
    __metadata("design:type", Array)
], UpdateSessionInputContentDto.prototype, "tool_results", void 0);
//# sourceMappingURL=session-input.dto.js.map