mirror of https://github.com/buster-so/buster.git
14 lines
367 B
TypeScript
14 lines
367 B
TypeScript
|
import { z } from 'zod';
|
||
|
import { ShareRoleSchema } from './share-interfaces.types';
|
||
|
|
||
|
export const SharePostRequestSchema = z.array(
|
||
|
z.object({
|
||
|
email: z.string().email(),
|
||
|
role: ShareRoleSchema,
|
||
|
avatar_url: z.string().nullable().optional(),
|
||
|
name: z.string().optional(),
|
||
|
})
|
||
|
);
|
||
|
|
||
|
export type SharePostRequest = z.infer<typeof SharePostRequestSchema>;
|