fix: make max_participants optional (#15920)

This commit is contained in:
Udit Takkar authored and GitHub committed 2024-07-26 07:08:05 +00:00
1 parent e16662e655
commit ba61731689
1 file changed
+11 -9
+11 -9
View File
@@ -417,15 +417,17 @@ export const customInputSchema = z.object({
export type CustomInputSchema = z.infer<typeof customInputSchema>; export type CustomInputSchema = z.infer<typeof customInputSchema>;
export const recordingItemSchema = z.object({ export const recordingItemSchema = z
id: z.string(), .object({
room_name: z.string(), id: z.string(),
start_ts: z.number(), room_name: z.string(),
status: z.string(), start_ts: z.number(),
max_participants: z.number(), status: z.string(),
duration: z.number(), max_participants: z.number().optional(),
share_token: z.string(), duration: z.number(),
}); share_token: z.string(),
})
.passthrough();
export const recordingItemsSchema = z.array(recordingItemSchema); export const recordingItemsSchema = z.array(recordingItemSchema);