mirror of
https://github.com/diced/zipline.git
synced 2026-03-12 21:22:49 -07:00
* feat: add response schemas (WIP, hella unstable!!) * refactor: models to zod * feat: descriptions for api routes * fix: finish up api refactor * refactor: generalized error codes * fix: responses + add descriptions * fix: more * fix: lint * fix: settings errors * fix: add errors to spec
15 lines
269 B
TypeScript
15 lines
269 B
TypeScript
import z from 'zod';
|
|
|
|
export const exportSchema = z.object({
|
|
id: z.string(),
|
|
createdAt: z.date(),
|
|
updatedAt: z.date(),
|
|
|
|
completed: z.boolean(),
|
|
path: z.string(),
|
|
files: z.number(),
|
|
size: z.string(),
|
|
});
|
|
|
|
export type Export = z.infer<typeof exportSchema>;
|