chore: auto-commit 2026-08-11 22:57 [Heimdall] src/Heimdall.Agent/Services/NetworkCameraScanner.cs, src/Heimdall.Application/DTOs/SiteCredentialDto.cs, src/Heimdall.Application/Services/ICameraDiscoveryService.cs, src/Heimdall.Infrastructure/Services/Discovery/CameraDiscoveryService.cs, src/Heimdall.Infrastructure/Services/Discovery/StreamTesterService.cs…
This commit is contained in:
1 parent
ac1871e8d9
commit
6df44cb9e0
6 files changed
+444
-9
No files matched your search
@@ -57,7 +57,8 @@ public record AgentDiscoveredDevice(
|
||||
string? HomeKitDeviceId,
|
||||
string? HomeKitModel,
|
||||
string? CredentialLabel = null,
|
||||
string[]? StreamUrls = null);
|
||||
string[]? StreamUrls = null,
|
||||
string? ScreenshotBase64 = null);
|
||||
|
||||
/// <summary>Response to an agent's discovery submission.</summary>
|
||||
public record AgentDiscoverySubmitResponse(
|
||||
@@ -90,7 +91,8 @@ public record PendingDiscoveryResponse(
|
||||
int? HttpPort,
|
||||
DateTime ProbedAt,
|
||||
bool IsProcessed,
|
||||
string[] StreamUrls);
|
||||
string[] StreamUrls,
|
||||
bool HasScreenshot = false);
|
||||
|
||||
/// <summary>Request to reject (ignore) a pending discovery result.</summary>
|
||||
public record RejectDiscoveryRequest(Guid ResultId);
|
||||
|
||||
@@ -101,4 +101,10 @@ public interface ICameraDiscoveryService
|
||||
/// in the pending list. Does not delete the row.
|
||||
/// </summary>
|
||||
Task<ServiceResult> RejectDiscoveryAsync(Guid resultId, CancellationToken ct);
|
||||
|
||||
/// <summary>
|
||||
/// Get the in-memory screenshot (agent-captured JPEG) for a discovery
|
||||
/// result. Returns null when absent or expired (TTL 10 min).
|
||||
/// </summary>
|
||||
byte[]? GetDiscoveryScreenshot(Guid resultId);
|
||||
}
|
||||
Reference in new issue
Block a user