polyv-live-cli
Version:
CLI tool for managing PolyV live streaming services.
82 lines • 1.9 kB
TypeScript
export type OutputFormat = 'table' | 'json';
export interface ChatServiceConfig {
baseUrl?: string;
timeout?: number;
debug?: boolean;
}
export interface ChatSendOptions {
channelId: string;
msg?: string;
imgUrl?: string;
pic?: string;
nickName?: string;
actor?: string;
adminIndex?: number;
freeReview?: boolean;
output?: OutputFormat;
}
export interface ChatListOptions {
channelId: string;
startDay?: string;
endDay?: string;
page?: number;
size?: number;
userType?: string;
status?: string;
output?: OutputFormat;
}
export interface ChatDeleteOptions {
channelId: string;
messageId?: string;
clear?: boolean;
force?: boolean;
output?: OutputFormat;
}
export interface ChatBanOptions {
channelId?: string;
userIds: string[];
global?: boolean;
output?: OutputFormat;
}
export interface ChatUnbanOptions {
channelId?: string;
userIds: string[];
global?: boolean;
output?: OutputFormat;
}
export interface ChatKickOptions {
channelId?: string;
viewerIds?: string[];
nickNames?: string[];
global?: boolean;
output?: OutputFormat;
}
export interface ChatUnkickOptions {
channelId?: string;
viewerIds?: string[];
nickNames?: string[];
global?: boolean;
output?: OutputFormat;
}
export interface ChatBannedListOptions {
channelId: string;
type: 'userId' | 'ip' | 'badword';
output?: OutputFormat;
}
export interface ChatKickedListOptions {
channelId: string;
output?: OutputFormat;
}
export interface ChatDangerousOptions {
force?: boolean;
output?: OutputFormat;
}
export interface ChatChannelOptions {
channelId: string;
output?: OutputFormat;
}
export interface ChatPaginationOptions extends ChatChannelOptions {
pageNumber?: number;
pageSize?: number;
}
//# sourceMappingURL=chat.d.ts.map