Skip to content

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

1.5 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 { zodBuffer } from "@app/lib/zod";

import { TImmutableDBKeys } from "./models";

export const KmipOrgConfigsSchema = z.object({
  id: z.string().uuid(),
  orgId: z.string().uuid(),
  caKeyAlgorithm: z.string(),
  rootCaIssuedAt: z.date(),
  rootCaExpiration: z.date(),
  rootCaSerialNumber: z.string(),
  encryptedRootCaCertificate: zodBuffer,
  encryptedRootCaPrivateKey: zodBuffer,
  serverIntermediateCaIssuedAt: z.date(),
  serverIntermediateCaExpiration: z.date(),
  serverIntermediateCaSerialNumber: z.string().nullable().optional(),
  encryptedServerIntermediateCaCertificate: zodBuffer,
  encryptedServerIntermediateCaChain: zodBuffer,
  encryptedServerIntermediateCaPrivateKey: zodBuffer,
  clientIntermediateCaIssuedAt: z.date(),
  clientIntermediateCaExpiration: z.date(),
  clientIntermediateCaSerialNumber: z.string(),
  encryptedClientIntermediateCaCertificate: zodBuffer,
  encryptedClientIntermediateCaChain: zodBuffer,
  encryptedClientIntermediateCaPrivateKey: zodBuffer,
  createdAt: z.date(),
  updatedAt: z.date()
});

export type TKmipOrgConfigs = z.infer<typeof KmipOrgConfigsSchema>;
export type TKmipOrgConfigsInsert = Omit<z.input<typeof KmipOrgConfigsSchema>, TImmutableDBKeys>;
export type TKmipOrgConfigsUpdate = Partial<Omit<z.input<typeof KmipOrgConfigsSchema>, TImmutableDBKeys>>;