@tmlmobilidade/types
Version:
37 lines (36 loc) • 1.38 kB
TypeScript
import { z } from 'zod';
export declare const AlertsScheduledPermissionSchema: z.ZodObject<{
action: z.ZodEnum<["create", "delete", "read", "lock", "update"]>;
scope: z.ZodLiteral<"alerts_scheduled">;
}, "strip", z.ZodTypeAny, {
scope: "alerts_scheduled";
action: "create" | "update" | "delete" | "read" | "lock";
}, {
scope: "alerts_scheduled";
action: "create" | "update" | "delete" | "read" | "lock";
}>;
export type AlertsScheduledPermission = z.infer<typeof AlertsScheduledPermissionSchema>;
export declare const AlertsRealtimePermissionSchema: 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<"alerts_realtime">;
}, "strip", z.ZodTypeAny, {
scope: "alerts_realtime";
action: "create" | "update" | "delete" | "read" | "lock";
resources: {
agency_ids: string[];
};
}, {
scope: "alerts_realtime";
action: "create" | "update" | "delete" | "read" | "lock";
resources?: {
agency_ids?: string[] | undefined;
} | undefined;
}>;
export type AlertsRealtimePermission = z.infer<typeof AlertsRealtimePermissionSchema>;