Skip to content
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

feat: enhanced call session #900

Merged
merged 1 commit into from
Aug 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/client/src/events/call.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export const watchCallEnded = (call: Call) => {
call.state.callingState === CallingState.JOINED ||
call.state.callingState === CallingState.JOINING
) {
call.state.setMetadata(event.call);
await call.leave();
}
};
Expand Down
133 changes: 133 additions & 0 deletions packages/client/src/gen/coordinator/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,25 @@ export interface BroadcastSettings {
*/
hls: HLSSettings;
}
/**
*
* @export
* @interface BroadcastSettingsRequest
*/
export interface BroadcastSettingsRequest {
/**
*
* @type {boolean}
* @memberof BroadcastSettingsRequest
*/
enabled?: boolean;
/**
*
* @type {HLSSettingsRequest}
* @memberof BroadcastSettingsRequest
*/
hls?: HLSSettingsRequest;
}
/**
* This event is sent when a user accepts a notification to join a call.
* @export
Expand Down Expand Up @@ -454,6 +473,12 @@ export interface CallCreatedEvent {
* @interface CallEndedEvent
*/
export interface CallEndedEvent {
/**
*
* @type {CallResponse}
* @memberof CallEndedEvent
*/
call: CallResponse;
/**
*
* @type {string}
Expand Down Expand Up @@ -1260,6 +1285,18 @@ export interface CallSessionResponse {
* @memberof CallSessionResponse
*/
id: string;
/**
*
* @type {string}
* @memberof CallSessionResponse
*/
live_ended_at?: string;
/**
*
* @type {string}
* @memberof CallSessionResponse
*/
live_started_at?: string;
/**
*
* @type {Array<CallParticipantResponse>}
Expand Down Expand Up @@ -1340,6 +1377,12 @@ export interface CallSettingsRequest {
* @memberof CallSettingsRequest
*/
backstage?: BackstageSettingsRequest;
/**
*
* @type {BroadcastSettingsRequest}
* @memberof CallSettingsRequest
*/
broadcasting?: BroadcastSettingsRequest;
/**
*
* @type {GeofenceSettingsRequest}
Expand Down Expand Up @@ -2413,6 +2456,31 @@ export interface HLSSettings {
*/
quality_tracks: Array<string>;
}
/**
*
* @export
* @interface HLSSettingsRequest
*/
export interface HLSSettingsRequest {
/**
*
* @type {boolean}
* @memberof HLSSettingsRequest
*/
auto_on?: boolean;
/**
*
* @type {boolean}
* @memberof HLSSettingsRequest
*/
enabled?: boolean;
/**
*
* @type {Array<string>}
* @memberof HLSSettingsRequest
*/
quality_tracks?: Array<string>;
}
/**
*
* @export
Expand Down Expand Up @@ -2836,6 +2904,7 @@ export const OwnCapability = {
JOIN_CALL: 'join-call',
JOIN_ENDED_CALL: 'join-ended-call',
MUTE_USERS: 'mute-users',
PIN_FOR_EVERYONE: 'pin-for-everyone',
READ_CALL: 'read-call',
REMOVE_CALL_MEMBER: 'remove-call-member',
SCREENSHARE: 'screenshare',
Expand Down Expand Up @@ -2959,6 +3028,38 @@ export interface PermissionRequestEvent {
*/
user: UserResponse;
}
/**
*
* @export
* @interface PinRequest
*/
export interface PinRequest {
/**
*
* @type {string}
* @memberof PinRequest
*/
session_id: string;
/**
*
* @type {string}
* @memberof PinRequest
*/
user_id: string;
}
/**
*
* @export
* @interface PinResponse
*/
export interface PinResponse {
/**
* Duration of the request in human-readable format
* @type {string}
* @memberof PinResponse
*/
duration: string;
}
/**
*
* @export
Expand Down Expand Up @@ -3774,6 +3875,38 @@ export interface UnblockedUserEvent {
*/
user: UserResponse;
}
/**
*
* @export
* @interface UnpinRequest
*/
export interface UnpinRequest {
/**
*
* @type {string}
* @memberof UnpinRequest
*/
session_id: string;
/**
*
* @type {string}
* @memberof UnpinRequest
*/
user_id: string;
}
/**
*
* @export
* @interface UnpinResponse
*/
export interface UnpinResponse {
/**
* Duration of the request in human-readable format
* @type {string}
* @memberof UnpinResponse
*/
duration: string;
}
/**
*
* @export
Expand Down
Loading