mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-18 17:41:16 +00:00
40 lines
1.5 KiB
TypeScript
40 lines
1.5 KiB
TypeScript
// 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>>;
|