UNPKG

polyv-live-cli

Version:

CLI tool for managing PolyV live streaming services.

58 lines 3.15 kB
import { AuthConfig } from '../types/auth'; import { PlatformServiceConfig, EnabledValue } from '../types/platform'; import { GetUserInfoResponse, SwitchGetResponse, SwitchUpdateResponse, CallbackSettings, CreateAnchorParams, ListAnchorsParams, ListAnchorRelationsParams, UpdateAnchorParams, UpdateAnchorStatusParams, SearchCouponViewersParams, UpdateCouponParams, UpdateCouponsStatusBatchParams } from 'polyv-live-api-sdk'; export declare class PlatformServiceSdk { private readonly config; private readonly authConfig; constructor(authConfig: AuthConfig, serviceConfig: PlatformServiceConfig); getUserInfo(): Promise<GetUserInfoResponse>; getSwitchConfig(): Promise<SwitchGetResponse>; updateSwitchConfig(params: { param: string; enabled: EnabledValue; }): Promise<SwitchUpdateResponse>; private validateUpdateParams; getCallbackSettings(): Promise<CallbackSettings>; updateCallbackSettings(params: { url?: string; enabled?: boolean; }): Promise<{ success: boolean; }>; private validateCallbackParams; getGlobalChannelSettings(): Promise<GlobalChannelSettingsResponse>; updateGlobalChannelSettings(params: GlobalChannelSettingsUpdateParams): Promise<void>; createAnchor(params: CreateAnchorParams): Promise<number>; getAnchor(anchorId: number): Promise<import("polyv-live-api-sdk").AnchorDetail>; listAnchors(params?: ListAnchorsParams): Promise<import("polyv-live-api-sdk").ListAnchorsResponse>; listAnchorRelations(params: ListAnchorRelationsParams): Promise<import("polyv-live-api-sdk").PaginationResponse<import("polyv-live-api-sdk").AnchorRelationItem>>; listAnchorUnrelations(params: ListAnchorRelationsParams): Promise<import("polyv-live-api-sdk").PaginationResponse<import("polyv-live-api-sdk").AnchorRelationItem>>; updateAnchor(params: UpdateAnchorParams): Promise<void>; updateAnchorStatus(params: UpdateAnchorStatusParams): Promise<void>; listContentGroups(type: 'script' | 'robot'): Promise<import("polyv-live-api-sdk").ContentGroupItem[]>; searchCouponViewers(params: SearchCouponViewersParams): Promise<import("polyv-live-api-sdk").SearchCouponViewersResponse>; updateCoupon(params: UpdateCouponParams): Promise<void>; updateCouponsStatusBatch(params: UpdateCouponsStatusBatchParams): Promise<void>; private validateGlobalSettingsParams; } export interface GlobalChannelSettingsResponse { channelConcurrencesEnabled?: string; timelyConvertEnabled?: string; donateEnabled?: string; rebirthAutoUploadEnabled?: string; rebirthAutoConvertEnabled?: string; pptCoveredEnabled?: string; coverImgType?: string; testModeButtonEnabled?: string; } export interface GlobalChannelSettingsUpdateParams { channelConcurrencesEnabled?: 'Y' | 'N'; timelyConvertEnabled?: 'Y' | 'N'; donateEnabled?: 'Y' | 'N'; rebirthAutoUploadEnabled?: 'Y' | 'N'; rebirthAutoConvertEnabled?: 'Y' | 'N'; pptCoveredEnabled?: 'Y' | 'N'; coverImgType?: 'contain' | 'cover'; testModeButtonEnabled?: 'Y' | 'N'; } //# sourceMappingURL=platform-service.d.ts.map