* chore: transcribe * chore: provider * chore: use daily provider * chore: rebase * chore: remove types file * chore: remove recoil * chore: progress * chore: add recoil * chore: save progress * chore: save progress * fix: type err * fix: err * fix: save progress * feat: finish emails * chore: add new env variable * chore: fix type err * chore: turbo * chore: improvements --------- Co-authored-by: Udit Takkar <udit222001@gmail.com> Co-authored-by: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com> Co-authored-by: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com> Co-authored-by: Peer Richelsen <peeroke@gmail.com> Co-authored-by: Carina Wollendorfer <30310907+CarinaWolli@users.noreply.github.com>
35 lines
1.2 KiB
TypeScript
35 lines
1.2 KiB
TypeScript
import type { GetRecordingsResponseSchema, GetAccessLinkResponseSchema } from "@calcom/prisma/zod-utils";
|
|
|
|
import type { EventBusyDate } from "./Calendar";
|
|
import type { CredentialPayload } from "./Credential";
|
|
|
|
export interface VideoCallData {
|
|
type: string;
|
|
id: string;
|
|
password: string;
|
|
url: string;
|
|
}
|
|
|
|
// VideoApiAdapter is defined by the Video App. The App currently can choose to not define it. So, consider in type that VideoApiAdapter can be undefined.
|
|
export type VideoApiAdapter =
|
|
| {
|
|
createMeeting(event: CalendarEvent): Promise<VideoCallData>;
|
|
|
|
updateMeeting(bookingRef: PartialReference, event: CalendarEvent): Promise<VideoCallData>;
|
|
|
|
deleteMeeting(uid: string): Promise<unknown>;
|
|
|
|
getAvailability(dateFrom?: string, dateTo?: string): Promise<EventBusyDate[]>;
|
|
|
|
getRecordings?(roomName: string): Promise<GetRecordingsResponseSchema>;
|
|
|
|
getRecordingDownloadLink?(recordingId: string): Promise<GetAccessLinkResponseSchema>;
|
|
|
|
createInstantCalVideoRoom?(endTime: string): Promise<VideoCallData>;
|
|
|
|
getAllTranscriptsAccessLinkFromRoomName?(roomName: string): Promise<Array<string>>;
|
|
}
|
|
| undefined;
|
|
|
|
export type VideoApiAdapterFactory = (credential: CredentialPayload) => VideoApiAdapter;
|