Skip to content

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

1.3 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 PkiCertificateProfilesSchema = z.object({
  id: z.string().uuid(),
  projectId: z.string(),
  caId: z.string().uuid().nullable().optional(),
  certificatePolicyId: z.string().uuid(),
  slug: z.string(),
  description: z.string().nullable().optional(),
  enrollmentType: z.string(),
  estConfigId: z.string().uuid().nullable().optional(),
  apiConfigId: z.string().uuid().nullable().optional(),
  createdAt: z.date(),
  updatedAt: z.date(),
  acmeConfigId: z.string().uuid().nullable().optional(),
  issuerType: z.string().default("ca"),
  externalConfigs: z.string().nullable().optional(),
  defaults: z.unknown().nullable().optional(),
  scepConfigId: z.string().uuid().nullable().optional()
});

export type TPkiCertificateProfiles = z.infer<typeof PkiCertificateProfilesSchema>;
export type TPkiCertificateProfilesInsert = Omit<z.input<typeof PkiCertificateProfilesSchema>, TImmutableDBKeys>;
export type TPkiCertificateProfilesUpdate = Partial<
  Omit<z.input<typeof PkiCertificateProfilesSchema>, TImmutableDBKeys>
>;