-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: reduce cal recording bitrate (#15588)
* fix: reduce cal recording bitrate * chore: bitrate * chore: add enable recording ui * fix: genereate meeting token * chore: add wait for recording
- Loading branch information
1 parent
e5816d6
commit 652c3d1
Showing
8 changed files
with
211 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
import { z } from "zod"; | ||
|
||
/** @link https://docs.daily.co/reference/rest-api/rooms/create-room */ | ||
export const dailyReturnTypeSchema = z.object({ | ||
/** Long UID string ie: 987b5eb5-d116-4a4e-8e2c-14fcb5710966 */ | ||
id: z.string(), | ||
/** Not a real name, just a random generated string ie: "ePR84NQ1bPigp79dDezz" */ | ||
name: z.string(), | ||
api_created: z.boolean(), | ||
privacy: z.union([z.literal("private"), z.literal("public")]), | ||
/** https://api-demo.daily.co/ePR84NQ1bPigp79dDezz */ | ||
url: z.string(), | ||
created_at: z.string(), | ||
config: z.object({ | ||
/** Timestamps expressed in seconds, not in milliseconds */ | ||
nbf: z.number().optional(), | ||
/** Timestamps expressed in seconds, not in milliseconds */ | ||
exp: z.number(), | ||
enable_chat: z.boolean(), | ||
enable_knocking: z.boolean(), | ||
enable_prejoin_ui: z.boolean(), | ||
enable_transcription_storage: z.boolean().default(false), | ||
}), | ||
}); | ||
|
||
export const getTranscripts = z.object({ | ||
total_count: z.number(), | ||
data: z.array( | ||
z.object({ | ||
transcriptId: z.string(), | ||
domainId: z.string(), | ||
roomId: z.string(), | ||
mtgSessionId: z.string(), | ||
duration: z.number(), | ||
status: z.string(), | ||
}) | ||
), | ||
}); | ||
|
||
export const getBatchProcessJobs = z.object({ | ||
total_count: z.number(), | ||
data: z.array( | ||
z.object({ | ||
id: z.string(), | ||
preset: z.string(), | ||
status: z.string(), | ||
}) | ||
), | ||
}); | ||
|
||
export const getRooms = z | ||
.object({ | ||
id: z.string(), | ||
}) | ||
.passthrough(); | ||
|
||
export const meetingTokenSchema = z.object({ | ||
token: z.string(), | ||
}); | ||
|
||
export const ZGetMeetingTokenResponseSchema = z | ||
.object({ | ||
room_name: z.string(), | ||
exp: z.number(), | ||
}) | ||
.passthrough(); |
Oops, something went wrong.