Nostr streaming provider topup

This commit is contained in:
2023-07-04 14:12:49 +01:00
parent 7cc613646c
commit 552a6744a8
9 changed files with 148 additions and 65 deletions

View File

@ -8,6 +8,7 @@ import { OwncastProvider } from "./owncast";
export interface StreamProvider {
get name(): string
get type(): StreamProviders
/**
* Get general info about connected provider to test everything is working
@ -22,7 +23,12 @@ export interface StreamProvider {
/**
* Update stream info event
*/
updateStreamInfo(ev: NostrEvent): Promise<void>;
updateStreamInfo(ev: NostrEvent): Promise<void>
/**
* Top-up balance with provider
*/
topup(amount: number): Promise<string>
}
export enum StreamProviders {
@ -33,7 +39,6 @@ export enum StreamProviders {
}
export interface StreamProviderInfo {
type: StreamProviders
name: string
summary?: string
version?: string