14 lines
No EOL
415 B
TypeScript
14 lines
No EOL
415 B
TypeScript
import z from 'zod';
|
|
|
|
const groupRelationshipSchema = z.object({
|
|
id: z.string(),
|
|
member: z.boolean().catch(false),
|
|
requested: z.boolean().catch(false),
|
|
role: z.string().nullish().catch(null),
|
|
blocked_by: z.boolean().catch(false),
|
|
notifying: z.boolean().nullable().catch(null),
|
|
});
|
|
|
|
type GroupRelationship = z.infer<typeof groupRelationshipSchema>;
|
|
|
|
export { groupRelationshipSchema, GroupRelationship }; |