Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

1.0 KB
Raw Blame
// Code generated by automation script, DO NOT EDIT.
// Automated by pulling database and generating zod schema
// To update. Just run npm run generate:schema
// Written by akhilmhdh.

import { z } from "zod";

import { TImmutableDBKeys } from "./models";

export const AlertsSchema = z.object({
  id: z.string().uuid(),
  name: z.string(),
  description: z.string().nullable().optional(),
  resourceType: z.string(),
  resourceId: z.string().nullable().optional(),
  eventType: z.string(),
  triggerType: z.string(),
  condition: z.unknown().nullable().optional(),
  enabled: z.boolean().default(true),
  orgId: z.string().uuid(),
  projectId: z.string().nullable().optional(),
  createdByActorId: z.string().uuid().nullable().optional(),
  createdByActorType: z.string(),
  createdAt: z.date(),
  updatedAt: z.date()
});

export type TAlerts = z.infer<typeof AlertsSchema>;
export type TAlertsInsert = Omit<z.input<typeof AlertsSchema>, TImmutableDBKeys>;
export type TAlertsUpdate = Partial<Omit<z.input<typeof AlertsSchema>, TImmutableDBKeys>>;