changemaker.lite/api/dist/modules/media/schemas/public-media.schemas.d.ts

49 lines
1.7 KiB
TypeScript

import { z } from 'zod';
/**
* Validation schemas for public media endpoints
*/
export declare const listPublicMediaSchema: z.ZodObject<{
limit: z.ZodDefault<z.ZodNumber>;
offset: z.ZodDefault<z.ZodNumber>;
sort: z.ZodDefault<z.ZodEnum<["recent", "popular", "most_viewed"]>>;
search: z.ZodOptional<z.ZodString>;
category: z.ZodOptional<z.ZodEnum<["videos", "curated", "compilations", "playback", "highlights"]>>;
}, "strip", z.ZodTypeAny, {
sort: "recent" | "popular" | "most_viewed";
limit: number;
offset: number;
search?: string | undefined;
category?: "videos" | "curated" | "playback" | "compilations" | "highlights" | undefined;
}, {
sort?: "recent" | "popular" | "most_viewed" | undefined;
search?: string | undefined;
limit?: number | undefined;
offset?: number | undefined;
category?: "videos" | "curated" | "playback" | "compilations" | "highlights" | undefined;
}>;
export declare const bulkLockSchema: z.ZodObject<{
ids: z.ZodArray<z.ZodNumber, "many">;
}, "strip", z.ZodTypeAny, {
ids: number[];
}, {
ids: number[];
}>;
export declare const bulkUnlockSchema: z.ZodObject<{
ids: z.ZodArray<z.ZodNumber, "many">;
}, "strip", z.ZodTypeAny, {
ids: number[];
}, {
ids: number[];
}>;
export declare const addCommentSchema: z.ZodObject<{
content: z.ZodString;
}, "strip", z.ZodTypeAny, {
content: string;
}, {
content: string;
}>;
export type ListPublicMediaQuery = z.infer<typeof listPublicMediaSchema>;
export type BulkLockBody = z.infer<typeof bulkLockSchema>;
export type BulkUnlockBody = z.infer<typeof bulkUnlockSchema>;
export type AddCommentBody = z.infer<typeof addCommentSchema>;
//# sourceMappingURL=public-media.schemas.d.ts.map