Skip to content

feat: ring individual members #1755

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
14 changes: 11 additions & 3 deletions packages/client/src/Call.ts
Original file line number Diff line number Diff line change
Expand Up @@ -706,12 +706,16 @@ export class Call {
* @param params.ring if set to true, a `call.ring` event will be sent to the call members.
* @param params.notify if set to true, a `call.notification` event will be sent to the call members.
* @param params.members_limit the total number of members to return as part of the response.
* @param params.video if set to true, the call will be created as a video call.
* @param params.member_ids the list of members to ring. Limited to 100 members per request.
*/
get = async (params?: {
ring?: boolean;
notify?: boolean;
members_limit?: number;
}) => {
video?: boolean;
member_ids?: string[];
}): Promise<GetCallResponse> => {
await this.setup();
const response = await this.streamClient.get<GetCallResponse>(
this.streamClientBasePath,
Expand Down Expand Up @@ -790,9 +794,13 @@ export class Call {
/**
* A shortcut for {@link Call.get} with `ring` parameter set to `true`.
* Will send a `call.ring` event to the call members.
*
* @param params.member_ids the list of members to ring. Limited to 100 members per request.
*/
ring = async (): Promise<GetCallResponse> => {
return await this.get({ ring: true });
ring = async (params: {
member_ids?: string[];
}): Promise<GetCallResponse> => {
return await this.get({ ...params, ring: true });
};

/**
Expand Down
6 changes: 6 additions & 0 deletions packages/client/src/gen/coordinator/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2118,6 +2118,12 @@ export interface CallSessionResponse {
* @memberof CallSessionResponse
*/
anonymous_participant_count: number;
/**
*
* @type {string}
* @memberof CallSessionResponse
*/
created_at: string;
/**
*
* @type {string}
Expand Down
Loading