package com.cameleer.server.app.dto;

import io.swagger.v3.oas.annotations.media.Schema;

import java.util.List;
import java.util.Map;

@Schema(description = "Log search response with cursor pagination and level counts")
public record LogSearchPageResponse(
        @Schema(description = "Log entries for the current page") List<LogEntryResponse> data,
        @Schema(description = "Cursor for next page (null if no more results)") String nextCursor,
        @Schema(description = "Whether more results exist beyond this page") boolean hasMore,
        @Schema(description = "Count of logs per level (unaffected by level filter)") Map<String, Long> levelCounts
) {}
