Files
backbone/src/auth/auth.schemas.ts
2025-10-16 16:43:44 +02:00

12 lines
278 B
TypeScript

import { z } from 'zod';
const statementSchema = z.object({
effect: z.enum(['allow', 'disallow']),
resources: z.array(z.string()),
actions: z.array(z.string()),
});
type Statement = z.infer<typeof statementSchema>;
export type { Statement };
export { statementSchema };