"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.RegenerateMessageRespDto = exports.MessageFeedbackRespDto = exports.MessageFeedbackReqDto = exports.ClearSessionHistoryRespDto = exports.SessionHistoryPageRespDto = exports.SessionChatRecordItemDto = exports.SessionHistoryQueryDto = void 0;
const swagger_1 = require("@nestjs/swagger");
class SessionHistoryQueryDto {
    limit;
    beforeId;
}
exports.SessionHistoryQueryDto = SessionHistoryQueryDto;
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ description: '分页大小' }),
    __metadata("design:type", String)
], SessionHistoryQueryDto.prototype, "limit", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ description: '向前翻页的起始消息 ID' }),
    __metadata("design:type", String)
], SessionHistoryQueryDto.prototype, "beforeId", void 0);
class SessionChatRecordItemDto {
    messageId;
    role;
    content;
    timestamp;
    feedback;
}
exports.SessionChatRecordItemDto = SessionChatRecordItemDto;
__decorate([
    (0, swagger_1.ApiProperty)({ description: '消息 ID' }),
    __metadata("design:type", Number)
], SessionChatRecordItemDto.prototype, "messageId", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ description: '消息角色' }),
    __metadata("design:type", String)
], SessionChatRecordItemDto.prototype, "role", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ description: '消息内容' }),
    __metadata("design:type", String)
], SessionChatRecordItemDto.prototype, "content", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ description: '消息时间戳（ISO）' }),
    __metadata("design:type", String)
], SessionChatRecordItemDto.prototype, "timestamp", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ description: '用户反馈（like/dislike）', enum: ['like', 'dislike'] }),
    __metadata("design:type", String)
], SessionChatRecordItemDto.prototype, "feedback", void 0);
class SessionHistoryPageRespDto {
    records;
    hasMore;
    nextBeforeId;
}
exports.SessionHistoryPageRespDto = SessionHistoryPageRespDto;
__decorate([
    (0, swagger_1.ApiProperty)({ description: '聊天记录列表', type: [SessionChatRecordItemDto] }),
    __metadata("design:type", Array)
], SessionHistoryPageRespDto.prototype, "records", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ description: '是否还有更多历史记录' }),
    __metadata("design:type", Boolean)
], SessionHistoryPageRespDto.prototype, "hasMore", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ description: '下一页的 beforeId' }),
    __metadata("design:type", Number)
], SessionHistoryPageRespDto.prototype, "nextBeforeId", void 0);
class ClearSessionHistoryRespDto {
    accepted;
    cleared;
}
exports.ClearSessionHistoryRespDto = ClearSessionHistoryRespDto;
__decorate([
    (0, swagger_1.ApiProperty)({ description: '是否接受清理请求' }),
    __metadata("design:type", Boolean)
], ClearSessionHistoryRespDto.prototype, "accepted", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ description: '清理记录条数' }),
    __metadata("design:type", Number)
], ClearSessionHistoryRespDto.prototype, "cleared", void 0);
class MessageFeedbackReqDto {
    feedback;
}
exports.MessageFeedbackReqDto = MessageFeedbackReqDto;
__decorate([
    (0, swagger_1.ApiProperty)({ description: '反馈类型', enum: ['like', 'dislike'] }),
    __metadata("design:type", String)
], MessageFeedbackReqDto.prototype, "feedback", void 0);
class MessageFeedbackRespDto {
    accepted;
    messageId;
    feedback;
}
exports.MessageFeedbackRespDto = MessageFeedbackRespDto;
__decorate([
    (0, swagger_1.ApiProperty)({ description: '是否提交成功' }),
    __metadata("design:type", Boolean)
], MessageFeedbackRespDto.prototype, "accepted", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ description: '消息 ID' }),
    __metadata("design:type", Number)
], MessageFeedbackRespDto.prototype, "messageId", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ description: '反馈类型', enum: ['like', 'dislike'] }),
    __metadata("design:type", String)
], MessageFeedbackRespDto.prototype, "feedback", void 0);
class RegenerateMessageRespDto {
    accepted;
    text;
    messageId;
    timestamp;
}
exports.RegenerateMessageRespDto = RegenerateMessageRespDto;
__decorate([
    (0, swagger_1.ApiProperty)({ description: '是否成功生成答案' }),
    __metadata("design:type", Boolean)
], RegenerateMessageRespDto.prototype, "accepted", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ description: '生成的答案文本' }),
    __metadata("design:type", String)
], RegenerateMessageRespDto.prototype, "text", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ description: '生成后的助手消息 ID' }),
    __metadata("design:type", Number)
], RegenerateMessageRespDto.prototype, "messageId", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ description: '生成时间戳（ISO）' }),
    __metadata("design:type", String)
], RegenerateMessageRespDto.prototype, "timestamp", void 0);
//# sourceMappingURL=index.js.map