src/session/dto/session-log-entry-response.dto.ts
Properties |
| Optional detail |
Type : Record<string | unknown>
|
Decorators :
@ApiPropertyOptional({description: 'Additional structured detail'})
|
| id |
Type : string
|
Decorators :
@ApiProperty({description: 'Log entry ID'})
|
| level |
Type : string
|
Decorators :
@ApiProperty({description: 'Log level', enum: undefined})
|
| message |
Type : string
|
Decorators :
@ApiProperty({description: 'Log message'})
|
| sessionId |
Type : string
|
Decorators :
@ApiProperty({description: 'Session ID'})
|
| Optional stage |
Type : string
|
Decorators :
@ApiPropertyOptional({description: 'Flow stage'})
|
| timestamp |
Type : Date
|
Decorators :
@ApiProperty({description: 'Timestamp of the log entry'})
|
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
export class SessionLogEntryResponseDto {
@ApiProperty({ description: "Log entry ID" })
id!: string;
@ApiProperty({ description: "Session ID" })
sessionId!: string;
@ApiProperty({ description: "Timestamp of the log entry" })
timestamp!: Date;
@ApiProperty({
description: "Log level",
enum: ["info", "warn", "error"],
})
level!: string;
@ApiPropertyOptional({ description: "Flow stage" })
stage?: string;
@ApiProperty({ description: "Log message" })
message!: string;
@ApiPropertyOptional({ description: "Additional structured detail" })
detail?: Record<string, unknown>;
}