2023-03-01 18:26:56 +00:00
|
|
|
import {
|
|
|
|
VideoConfCancelProps,
|
|
|
|
VideoConference,
|
|
|
|
VideoConferenceCapabilities,
|
|
|
|
VideoConferenceInstructions,
|
|
|
|
VideoConfInfoProps,
|
|
|
|
VideoConfJoinProps,
|
|
|
|
VideoConfListProps,
|
|
|
|
VideoConfStartProps
|
|
|
|
} from '../../IVideoConference';
|
|
|
|
import { PaginatedResult } from '../helpers/PaginatedResult';
|
2022-11-24 11:37:08 +00:00
|
|
|
|
2022-03-05 02:29:12 +00:00
|
|
|
export type VideoConferenceEndpoints = {
|
2023-03-01 18:26:56 +00:00
|
|
|
'video-conference.start': {
|
|
|
|
POST: (params: VideoConfStartProps) => { data: VideoConferenceInstructions & { providerName: string } };
|
2022-03-05 02:29:12 +00:00
|
|
|
};
|
2023-03-01 18:26:56 +00:00
|
|
|
|
2022-06-27 18:04:20 +00:00
|
|
|
'video-conference.join': {
|
2023-03-01 18:26:56 +00:00
|
|
|
POST: (params: VideoConfJoinProps) => { url: string; providerName: string };
|
2022-06-27 18:04:20 +00:00
|
|
|
};
|
2022-11-24 11:37:08 +00:00
|
|
|
|
|
|
|
'video-conference.cancel': {
|
2023-03-01 18:26:56 +00:00
|
|
|
POST: (params: VideoConfCancelProps) => void;
|
2022-11-24 11:37:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
'video-conference.info': {
|
2023-03-01 18:26:56 +00:00
|
|
|
GET: (params: VideoConfInfoProps) => VideoConference & { capabilities: VideoConferenceCapabilities };
|
|
|
|
};
|
|
|
|
|
|
|
|
'video-conference.list': {
|
|
|
|
GET: (params: VideoConfListProps) => PaginatedResult<{ data: VideoConference[] }>;
|
|
|
|
};
|
|
|
|
|
|
|
|
'video-conference.capabilities': {
|
|
|
|
GET: () => { providerName: string; capabilities: VideoConferenceCapabilities };
|
|
|
|
};
|
|
|
|
|
|
|
|
'video-conference.providers': {
|
|
|
|
GET: () => { data: { key: string; label: string }[] };
|
|
|
|
};
|
|
|
|
|
|
|
|
'video-conference/jitsi.update-timeout': {
|
|
|
|
POST: (params: { roomId: string }) => void;
|
2022-11-24 11:37:08 +00:00
|
|
|
};
|
2022-03-05 02:29:12 +00:00
|
|
|
};
|