Skip to content

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

1020 B
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 PkiAlertsV2Schema = z.object({
  id: z.string().uuid(),
  name: z.string(),
  description: z.string().nullable().optional(),
  eventType: z.string(),
  alertBefore: z.string().nullable().optional(),
  filters: z.unknown().nullable().optional(),
  enabled: z.boolean().default(true).nullable().optional(),
  projectId: z.string(),
  createdAt: z.date(),
  updatedAt: z.date(),
  notificationConfig: z.unknown().nullable().optional(),
  applicationId: z.string().uuid().nullable().optional()
});

export type TPkiAlertsV2 = z.infer<typeof PkiAlertsV2Schema>;
export type TPkiAlertsV2Insert = Omit<z.input<typeof PkiAlertsV2Schema>, TImmutableDBKeys>;
export type TPkiAlertsV2Update = Partial<Omit<z.input<typeof PkiAlertsV2Schema>, TImmutableDBKeys>>;