Custom RTMP saved accounts, CUSTOM destination prepare, debug logging

- Add POST /providers/accounts/custom-rtmp endpoint for saved RTMP servers
- Encrypt rtmpUrl/streamKey in accessTokenEnc/refreshTokenEnc fields
- Decrypt and return rtmpUrl/streamKey in GET /providers/accounts for CUSTOM_RTMP
- Skip token revocation on DELETE for CUSTOM_RTMP accounts
- Decrypt CUSTOM_RTMP credentials into CUSTOM destinations on plan create/update
- Handle CUSTOM destinations in prepare lifecycle (already READY, skip provider auth)
- Add debug logging for plan operations and user upsert
This commit is contained in:
2026-03-01 10:50:28 +01:00
parent 02755bd1f0
commit 08cca68086
6 changed files with 239 additions and 46 deletions

View File

@@ -39,6 +39,14 @@ export interface LinkedAccountResponse {
displayName: string;
accountId: string;
avatarUrl: string | null;
rtmpUrl?: string;
streamKey?: string;
}
export interface CreateCustomRtmpBody {
displayName: string;
rtmpUrl: string;
streamKey: string;
}
// ── Streams ──────────────────────────────────────────────
@@ -63,6 +71,8 @@ export interface CreateDestinationBody {
privacyStatus?: string;
gameId?: string;
tags?: string;
rtmpUrl?: string;
streamKey?: string;
}
export interface StreamPlanResponse {