livelists-node-js
Version:
node.js server sdk for livelists
11 lines (10 loc) • 756 B
TypeScript
import { IAddParticipantToChannelArgs, IGetChannelAccessTokenArgs } from '../types/participant.types';
import { IClientArgs, ServiceResponse } from '../types/common.types';
import { AddParticipantToChannelRes, GetParticipantAccessTokenRes } from '../proto/participant';
import BaseService from './BaseService';
export declare class ParticipantClient extends BaseService {
private readonly rpc;
constructor({ apiHost, apiKey, secretKey, }: IClientArgs);
addParticipantToChannel({ identifier, channelId, grants, customData, }: IAddParticipantToChannelArgs): Promise<ServiceResponse<AddParticipantToChannelRes>>;
getAccessToken({ identifier, channelId, }: IGetChannelAccessTokenArgs): Promise<ServiceResponse<GetParticipantAccessTokenRes>>;
}