32 lines
998 B
TypeScript
32 lines
998 B
TypeScript
import z from "zod"
|
|
|
|
export const createMusicInputSchema = z.object({
|
|
id: z.string().uuid(),
|
|
title: z.string().min(1).max(100),
|
|
description: z.string().optional(),
|
|
fileUrl: z.string(),
|
|
fileKey: z.string(),
|
|
fileName: z.string(),
|
|
streamUrl: z.string().optional().nullable(),
|
|
streamKey: z.string().optional().nullable(),
|
|
streamName: z.string().optional().nullable(),
|
|
})
|
|
export const updateMusicInputSchema = z.object({
|
|
id: z.string().uuid(),
|
|
title: z.string().min(1).max(100).optional(),
|
|
description: z.string().optional(),
|
|
fileUrl: z.string().optional(),
|
|
fileKey: z.string().optional(),
|
|
fileName: z.string().optional(),
|
|
streamUrl: z.string().optional().nullable(),
|
|
streamKey: z.string().optional().nullable(),
|
|
streamName: z.string().optional().nullable(),
|
|
})
|
|
|
|
export const setStreamInputSchema = z.object({
|
|
id: z.string().uuid(),
|
|
streamUrl: z.string(),
|
|
streamKey: z.string(),
|
|
streamName: z.string(),
|
|
})
|