// 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; export type TKmipOrgConfigsInsert = Omit, TImmutableDBKeys>; export type TKmipOrgConfigsUpdate = Partial, TImmutableDBKeys>>;