diff --git a/packages/client/src/events/call.ts b/packages/client/src/events/call.ts index 0227c88e10..15ee93b7ab 100644 --- a/packages/client/src/events/call.ts +++ b/packages/client/src/events/call.ts @@ -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(); } }; diff --git a/packages/client/src/gen/coordinator/index.ts b/packages/client/src/gen/coordinator/index.ts index 506f57bab1..2002e0b84f 100644 --- a/packages/client/src/gen/coordinator/index.ts +++ b/packages/client/src/gen/coordinator/index.ts @@ -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 @@ -454,6 +473,12 @@ export interface CallCreatedEvent { * @interface CallEndedEvent */ export interface CallEndedEvent { + /** + * + * @type {CallResponse} + * @memberof CallEndedEvent + */ + call: CallResponse; /** * * @type {string} @@ -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} @@ -1340,6 +1377,12 @@ export interface CallSettingsRequest { * @memberof CallSettingsRequest */ backstage?: BackstageSettingsRequest; + /** + * + * @type {BroadcastSettingsRequest} + * @memberof CallSettingsRequest + */ + broadcasting?: BroadcastSettingsRequest; /** * * @type {GeofenceSettingsRequest} @@ -2413,6 +2456,31 @@ export interface HLSSettings { */ quality_tracks: Array; } +/** + * + * @export + * @interface HLSSettingsRequest + */ +export interface HLSSettingsRequest { + /** + * + * @type {boolean} + * @memberof HLSSettingsRequest + */ + auto_on?: boolean; + /** + * + * @type {boolean} + * @memberof HLSSettingsRequest + */ + enabled?: boolean; + /** + * + * @type {Array} + * @memberof HLSSettingsRequest + */ + quality_tracks?: Array; +} /** * * @export @@ -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', @@ -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 @@ -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