Add OBS podcast ingestion and account withdrawal privacy controls

Support scoped RTMPS publishing through MediaMTX, authenticated replay, resource accounting and PostIt activation/revocation. Close withdrawn accounts, erase managed files and purge eligible payment residues after one year. Include migrations, documentation and regression tests.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Paul Schneider 2026-11-08 07:43:15 +00:00
commit b157dce4e4
Signed by: notazof
GPG key ID: AD4B9B545FBD7D12
54 changed files with 12996 additions and 50 deletions

View file

@ -0,0 +1,5 @@
namespace Yavsc.Abstract.Administration;
/// <summary>Reports technical subscription records purged for withdrawn accounts.</summary>
/// <summary>Counts accounts and technical payment records erased by the retention purge, excluding accounting documents.</summary>
public sealed record PaymentResiduePurgeResult(int Users, int Subscriptions, int Payments, int Donations = 0, int LegacyPayments = 0);

View file

@ -57,3 +57,24 @@ public sealed record PodcastSegmentResponse(int Sequence, double DurationSeconds
/// <summary>The ordered, committed segments of a live broadcast or replay.</summary>
public sealed record PodcastManifestResponse(
PodcastResponse Podcast, IReadOnlyList<PodcastSegmentResponse> Segments);
/// <summary>One-time OBS connection credentials for an activated planned emission.</summary>
public sealed record PodcastObsCredentials(string ServerUrl, string StreamKey, DateTimeOffset ExpiresAt);
/// <summary>Owner-only state of the external broadcasting activation.</summary>
public sealed record PodcastObsStatus(bool Enabled, DateTimeOffset? ExpiresAt, string? Error);
/// <summary>MediaMTX external authentication request; credentials are never logged or echoed.</summary>
public sealed record PodcastRelayAuthentication
{
public string User { get; init; } = "";
public string Password { get; init; } = "";
public string Action { get; init; } = "";
public string Path { get; init; } = "";
public string Protocol { get; init; } = "";
public string Query { get; init; } = "";
public string Id { get; init; } = "";
}
/// <summary>Maximum lifetime of an authenticated media relay session.</summary>
public sealed record PodcastRelayAuthorization(DateTimeOffset? ExpireAt);