You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-26 17:03:12 +03:00
44 lines
924 B
TypeScript
44 lines
924 B
TypeScript
// allow camelcase as these are events type that go onto the wire
|
|
/* eslint-disable camelcase */
|
|
|
|
export enum SDPStreamMetadataPurpose {
|
|
Usermedia = "m.usermedia",
|
|
Screenshare = "m.screenshare",
|
|
}
|
|
|
|
interface CallOfferAnswer {
|
|
type: string;
|
|
sdp: string;
|
|
}
|
|
|
|
export interface CallCapabilities {
|
|
'm.call.transferee': boolean;
|
|
}
|
|
|
|
export interface MCallAnswer {
|
|
answer: CallOfferAnswer;
|
|
capabilities: CallCapabilities;
|
|
}
|
|
|
|
export interface MCallOfferNegotiate {
|
|
offer: CallOfferAnswer;
|
|
description: CallOfferAnswer;
|
|
lifetime: number;
|
|
capabilities: CallCapabilities;
|
|
}
|
|
|
|
export interface MCallReplacesTarget {
|
|
id: string;
|
|
display_name: string;
|
|
avatar_url: string;
|
|
}
|
|
|
|
export interface MCallReplacesEvent {
|
|
replacement_id: string;
|
|
target_user: MCallReplacesTarget;
|
|
create_call: string;
|
|
await_call: string;
|
|
target_room: string;
|
|
}
|
|
/* eslint-enable camelcase */
|