UNPKG

@tmlmobilidade/types

Version:
26 lines (25 loc) 971 B
import { z } from 'zod'; export declare const GtfsValidationsPermissionSchema: z.ZodObject<{ action: z.ZodEnum<["create", "read", "lock", "request_approval", "update_processing_status"]>; 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<"gtfs_validations">; }, "strip", z.ZodTypeAny, { scope: "gtfs_validations"; action: "create" | "read" | "lock" | "request_approval" | "update_processing_status"; resources: { agency_ids: string[]; }; }, { scope: "gtfs_validations"; action: "create" | "read" | "lock" | "request_approval" | "update_processing_status"; resources?: { agency_ids?: string[] | undefined; } | undefined; }>; export type GtfsValidationsPermission = z.infer<typeof GtfsValidationsPermissionSchema>;