Skip to content

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

1.1 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 CertificateCleanupConfigsSchema = z.object({
  id: z.string().uuid(),
  projectId: z.string(),
  isEnabled: z.boolean().default(false),
  postExpiryRetentionDays: z.number().default(3),
  skipCertsWithActiveSyncs: z.boolean().default(true),
  lastRunStatus: z.string().nullable().optional(),
  lastRunAt: z.date().nullable().optional(),
  lastRunCertsDeleted: z.number().default(0),
  lastRunMessage: z.string().nullable().optional(),
  createdAt: z.date(),
  updatedAt: z.date()
});

export type TCertificateCleanupConfigs = z.infer<typeof CertificateCleanupConfigsSchema>;
export type TCertificateCleanupConfigsInsert = Omit<z.input<typeof CertificateCleanupConfigsSchema>, TImmutableDBKeys>;
export type TCertificateCleanupConfigsUpdate = Partial<
  Omit<z.input<typeof CertificateCleanupConfigsSchema>, TImmutableDBKeys>
>;