Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
1.6 kB · 48 lines
TypeScript
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849import { AppBskyActorDefs } from "@atproto/api";import { ChatMessageViewHydrated, LivestreamViewHydrated, PinnedRecordViewHydrated, place,} from "streamplace";
export interface LivestreamState { profile: AppBskyActorDefs.ProfileViewBasic | null; chatIndex: { [key: string]: ChatMessageViewHydrated }; chat: ChatMessageViewHydrated[]; authors: { [key: string]: ChatMessageViewHydrated["chatProfile"] }; livestream: LivestreamViewHydrated | null; viewers: number | null; pendingHides: string[]; segment: place.stream.segment.Main | null; recentSegments: place.stream.segment.Main[]; problems: LivestreamProblem[]; renditions: place.stream.defs.Rendition[]; replyToMessage: ChatMessageViewHydrated | null; chatDraft: string; badgeSlots: { streamer: place.stream.badge.defs.BadgeSlot | null; user: place.stream.badge.defs.BadgeSlot | null; } | null; streamKey: string | null; setStreamKey: (key: string | null) => void; activeTeleport: place.stream.live.teleport.Main | null; activeTeleportUri: string | null; setActiveTeleportUri: (uri: string | null) => void; websocketConnected: boolean; hasReceivedSegment: boolean; pinnedComment: PinnedRecordViewHydrated | null; moderationPermissions: place.stream.moderation.permission.Main[]; setModerationPermissions: ( permissions: place.stream.moderation.permission.Main[], ) => void; localLivestreamURI: string | null; setLocalLivestreamURI: (uri: string | null) => void;}
export interface LivestreamProblem { code: string; message: string; severity: "error" | "warning" | "info"; link?: string;}