refact: cleanup
This commit is contained in:
11
src/auth/auth.schemas.ts
Normal file
11
src/auth/auth.schemas.ts
Normal 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 };
|
||||
Reference in New Issue
Block a user