feat(auth): bind binders accept (realtime, realtimeRegistry) params

Extend bindProductionAuth and bindDevSeedAuth to 7-arg signatures.
Fix RecordingRealtimeBroadcaster scope type to structurally match ChannelScope.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-08 22:41:04 +02:00
parent 71c1a6c216
commit 7e1d2d5c4b
6 changed files with 33 additions and 6 deletions

View File

@@ -6,7 +6,7 @@ import type { z } from "zod";
type RealtimeChannelDescriptor<TName extends string, TSchema extends z.ZodType> = {
readonly name: TName;
readonly schema: TSchema;
readonly scope?: string;
readonly scope: string | { role: string } | { userScoped: true; template: string };
};
interface IRealtimeBroadcaster {