import {DacastData} from "./dacast-data.js" export namespace Dacast { export interface Paginated { data?: xData[] paging: { self?: string last?: string next?: string previous?: string } totalCount: string } export type EmbedType = | "javascript" | "iframe" export interface Embed { code: string } export interface Client { channels: { get(): Promise> id(channelId: string): { get(): Promise embed(embedType: EmbedType): { get(): Promise } } } vods: { get(): Promise> id(vodId: string): { get(): Promise embed(embedType: EmbedType): { get(): Promise } } } playlists: { get(): Promise> id(playlistId: string): { get(): Promise embed(embedType: EmbedType): { get(): Promise } } } } export interface Headers { "X-Api-Key": string "X-Format": "default" } export interface MakeClient { ({}: { apiKey: string headers?: Partial }): Client } export type GetClient = (apiKey: string) => Client export interface VerifyApiKey { (apiKey: string): Promise } export interface Sdk { getClient: GetClient verifyApiKey: VerifyApiKey } }