- Docker: remove default passwords from prod compose (required env vars) - CSRF: validate antiforgery tokens on /_auth/signin and /_auth/signout - EventsHub: broadcast to site-scoped Group() instead of Clients.All - SettingsController: redact secret values in logs - Create SetAgentSettingValidator + UpdateAppSettingValidator classes - Replace 3 placeholder test projects with meaningful tests - Remove FluentValidation auto-validation (incompatible with .NET 10)
36 lines
746 B
C#
36 lines
746 B
C#
using Heimdall.Domain.Enums;
|
|
|
|
namespace Heimdall.Application.DTOs;
|
|
|
|
public record CameraEventResponse(
|
|
Guid Id,
|
|
Guid CameraId,
|
|
Guid SiteId,
|
|
Guid? AgentId,
|
|
EventType Type,
|
|
double Confidence,
|
|
string? Label,
|
|
string? SnapshotUrl,
|
|
string? SnapshotThumbUrl,
|
|
string? MetadataJson,
|
|
DateTime OccurredAt,
|
|
DateTime CreatedAt);
|
|
|
|
public record CreateCameraEventRequest(
|
|
Guid CameraId,
|
|
EventType Type,
|
|
double Confidence,
|
|
string? Label,
|
|
string? MetadataJson,
|
|
DateTime? OccurredAt);
|
|
|
|
public record CameraEventFilterRequest(
|
|
Guid? CameraId,
|
|
Guid? SiteId,
|
|
EventType? Type,
|
|
DateTime? From,
|
|
DateTime? To,
|
|
double? MinConfidence,
|
|
int Page = 1,
|
|
int PageSize = 50);
|