Skip to content

PluginMethods

PluginMethods = object

Defined in: packages/core/src/plugin.ts:91

Platform-specific data access methods. Separated from PluginDefinition because they need access to the constructed RestManager. Methods receive rest as the first argument — pure functions that are easier to test and compose.

optional batchGetBroadcasts: (rest, channelIds) => Promise<BatchResult<Broadcast[]>>

Defined in: packages/core/src/plugin.ts:117

Batch-retrieve broadcasts by channel IDs (optional).

RestManager

string[]

Promise<BatchResult<Broadcast[]>>


optional batchGetChannels: (rest, ids) => Promise<BatchResult<Channel>>

Defined in: packages/core/src/plugin.ts:132

Batch-retrieve channels by IDs (optional).

RestManager

string[]

Promise<BatchResult<Channel>>


optional batchGetClips: (rest, ids) => Promise<BatchResult<Clip>>

Defined in: packages/core/src/plugin.ts:129

Batch-retrieve clips by IDs (optional).

RestManager

string[]

Promise<BatchResult<Clip>>


optional batchGetContents: (rest, ids) => Promise<BatchResult<Content>>

Defined in: packages/core/src/plugin.ts:114

Batch-retrieve content by IDs (optional).

RestManager

string[]

Promise<BatchResult<Content>>


getChannel: (rest, id) => Promise<Channel>

Defined in: packages/core/src/plugin.ts:96

Retrieve channel by ID.

RestManager

string

Promise<Channel>


getContent: (rest, id) => Promise<Content>

Defined in: packages/core/src/plugin.ts:93

Retrieve content by ID.

RestManager

string

Promise<Content>


listArchives: (rest, channelId, cursor?, pageSize?, options?) => Promise<Page<Archive>>

Defined in: packages/core/src/plugin.ts:102

List archives for a channel with pagination.

RestManager

string

string

number

ArchiveListOptions

Promise<Page<Archive>>


listBroadcasts: (rest, channelId) => Promise<Broadcast[]>

Defined in: packages/core/src/plugin.ts:99

List currently active broadcasts for a channel.

RestManager

string

Promise<Broadcast[]>


optional listClips: (rest, channelId, options?) => Promise<Page<Clip>>

Defined in: packages/core/src/plugin.ts:126

List clips for a channel (optional).

RestManager

string

ClipOptions

Promise<Page<Clip>>


optional resolveArchive: (rest, live) => Promise<Archive | null>

Defined in: packages/core/src/plugin.ts:111

Resolve the archive for a broadcast (optional).

RestManager

Broadcast

Promise<Archive | null>


optional search: (rest, options) => Promise<Page<Content>>

Defined in: packages/core/src/plugin.ts:123

Search for content (optional).

RestManager

SearchOptions

Promise<Page<Content>>