polyv-live-cli
Version:
CLI tool for managing PolyV live streaming services.
82 lines • 3.04 kB
TypeScript
import { RecordServiceConfig, RecordSettingDisplayItem, RecordSettingSetOptions, RecordConvertOptions, RecordConvertResult } from '../types/record';
import { AuthConfig } from '../types/auth';
export declare class RecordServiceSdk {
private readonly config;
private readonly authConfig;
constructor(authConfig: AuthConfig, serviceConfig: RecordServiceConfig);
getPlaybackSetting(channelId: string): Promise<RecordSettingDisplayItem>;
setPlaybackSetting(channelId: string, options: RecordSettingSetOptions): Promise<boolean>;
recordConvert(channelId: string, options: RecordConvertOptions): Promise<RecordConvertResult>;
recordConvertAsync(channelId: string, options: RecordConvertOptions): Promise<RecordConvertResult>;
setRecordDefault(channelId: string, videoId: string, listType?: 'playback' | 'vod'): Promise<boolean>;
getRecordFile(channelId: string, fileId: string): Promise<any>;
listRecordFiles(params: {
channelId: string;
userId?: string;
startDate?: string;
endDate?: string;
sessionIds?: string;
}): Promise<any>;
listMaterialRecordFiles(params: {
channelId: string;
page?: number;
pageSize?: number;
}): Promise<any>;
clipRecordFile(channelId: string, options: {
fileId: string;
startTime: number;
endTime: number;
fileName?: string;
callbackUrl?: string;
}): Promise<any>;
mergeRecordFiles(params: {
channelId: string;
urls?: string;
fileIds?: string;
fileName?: string;
}): Promise<any>;
recordMergeMp4(channelId: string, options: {
startTime: string;
endTime: string;
fileName?: string;
callbackUrl?: string;
}): Promise<any>;
recordMergeMp4Start(channelId: string, options: {
startTime: string;
endTime: string;
fileName?: string;
callbackUrl?: string;
}): Promise<boolean>;
deleteRecordFile(params: {
channelId: string;
sessionId?: string;
startTime?: string;
}): Promise<void>;
convertRecordFileToVod(params: {
channelId: string;
userId: string;
fileName: string;
fileUrl?: string;
sessionId?: string;
cataid?: string;
cataname?: string;
toPlayList?: 'Y' | 'N';
setAsDefault?: 'Y' | 'N';
}): Promise<any>;
recordAddBreakpoint(channelId: string, options: {
type: 'pause' | 'resume';
fromStartStop?: 'Y' | 'N';
}): Promise<boolean>;
createRecordFileOutline(params: {
fileId: string;
aiKnowledgeQuizEnabled?: 'Y' | 'N';
aiSummaryAuditEnabled?: 'Y' | 'N';
syncToPlaybackDotEnabled?: 'Y' | 'N';
}): Promise<any>;
getRecordFileOutline(channelId: string, fileId: string): Promise<any>;
batchPublishRecordFileSubtitles(subtitles: Array<{
id: string | number;
status: string;
}>): Promise<void>;
}
//# sourceMappingURL=record.service.sdk.d.ts.map