UNPKG

polyv-live-cli

Version:

CLI tool for managing PolyV live streaming services.

53 lines 1.98 kB
import { SessionListOptions, SessionServiceConfig, SessionDisplayItem } from '../types/session'; import { AuthConfig } from '../types/auth'; export declare class SessionServiceSdk { private readonly config; private readonly authConfig; constructor(authConfig: AuthConfig, serviceConfig: SessionServiceConfig); getSessionList(options: SessionListOptions): Promise<{ contents: SessionDisplayItem[]; pageNumber: number; pageSize: number; totalItems: number; totalPages: number; }>; getSession(channelId: string, sessionId: string): Promise<SessionDisplayItem>; listLegacyChannelSessions(options: { channelId: string; startDate?: string; endDate?: string; page?: number; pageSize?: number; }): Promise<any>; getSessionDataList(options: { channelId: string; startDate?: string; endDate?: string; page?: number; pageSize?: number; }): Promise<any>; getSessionExternalBySession(channelId: string, sessionId: string): Promise<any>; createSession(options: { channelId: string; name: string; planStartTime?: number; planEndTime?: number; splashImg?: string; }): Promise<any>; updateSession(options: { channelId: string; sessionId: string; name?: string; planStartTime?: number; planEndTime?: number; splashImg?: string; }): Promise<void>; deleteSession(channelId: string, sessionId: string): Promise<void>; getSessionByExternal(channelId: string, externalSessionId: string): Promise<any>; listFileIdByExternal(channelId: string, externalSessionId: string): Promise<any>; relevanceSession(channelId: string, externalSessionId: string): Promise<string>; private transformToDisplayItem; private validateListOptions; private validateGetParams; } //# sourceMappingURL=session.service.sdk.d.ts.map