refact: cleanup

This commit is contained in:
Morten Olsen
2025-10-16 16:43:44 +02:00
parent 7c30e43ef7
commit 9ba5788d20
19 changed files with 61 additions and 65 deletions

11
src/auth/auth.schemas.ts Normal file
View File

@@ -0,0 +1,11 @@
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 };