@tmlmobilidade/types
Version:
17 lines (16 loc) • 344 B
JavaScript
/* * */
import { z } from 'zod';
/* * */
export const VehiclesPermissionSchema = z.object({
action: z.enum([
'create',
'delete',
'read',
'lock',
'update',
]),
resources: z.object({
agency_ids: z.array(z.string()).default([]),
}).default({}),
scope: z.literal('vehicles'),
});