UNPKG

@tmlmobilidade/types

Version:
26 lines (25 loc) 824 B
import { z } from 'zod'; export declare const LinesPermissionSchema: z.ZodObject<{ action: z.ZodEnum<["create", "delete", "read", "lock", "update"]>; resources: z.ZodDefault<z.ZodObject<{ agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { agency_ids: string[]; }, { agency_ids?: string[] | undefined; }>>; scope: z.ZodLiteral<"lines">; }, "strip", z.ZodTypeAny, { scope: "lines"; action: "create" | "delete" | "read" | "lock" | "update"; resources: { agency_ids: string[]; }; }, { scope: "lines"; action: "create" | "delete" | "read" | "lock" | "update"; resources?: { agency_ids?: string[] | undefined; } | undefined; }>; export type LinesPermission = z.infer<typeof LinesPermissionSchema>;