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 PkiCertificateTemplatesV2Schema = z.object({
  id: z.string().uuid(),
  projectId: z.string(),
  name: z.string(),
  description: z.string().nullable().optional(),
  subject: z.unknown().nullable().optional(),
  sans: z.unknown().nullable().optional(),
  keyUsages: z.unknown().nullable().optional(),
  extendedKeyUsages: z.unknown().nullable().optional(),
  algorithms: z.unknown().nullable().optional(),
  validity: z.unknown().nullable().optional(),
  createdAt: z.date(),
  updatedAt: z.date(),
  basicConstraints: z.unknown().nullable().optional()
});

export type TPkiCertificateTemplatesV2 = z.infer<typeof PkiCertificateTemplatesV2Schema>;
export type TPkiCertificateTemplatesV2Insert = Omit<z.input<typeof PkiCertificateTemplatesV2Schema>, TImmutableDBKeys>;
export type TPkiCertificateTemplatesV2Update = Partial<
  Omit<z.input<typeof PkiCertificateTemplatesV2Schema>, TImmutableDBKeys>
>;