mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-18 06:58:36 +00:00
30 lines
996 B
TypeScript
30 lines
996 B
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 KmipOrgServerCertificatesSchema = z.object({
|
|
id: z.string().uuid(),
|
|
orgId: z.string().uuid(),
|
|
commonName: z.string(),
|
|
altNames: z.string().nullable().optional(),
|
|
serialNumber: z.string(),
|
|
keyAlgorithm: z.string(),
|
|
issuedAt: z.date(),
|
|
expiration: z.date(),
|
|
encryptedCertificate: zodBuffer,
|
|
encryptedChain: zodBuffer
|
|
});
|
|
|
|
export type TKmipOrgServerCertificates = z.infer<typeof KmipOrgServerCertificatesSchema>;
|
|
export type TKmipOrgServerCertificatesInsert = Omit<z.input<typeof KmipOrgServerCertificatesSchema>, TImmutableDBKeys>;
|
|
export type TKmipOrgServerCertificatesUpdate = Partial<
|
|
Omit<z.input<typeof KmipOrgServerCertificatesSchema>, TImmutableDBKeys>
|
|
>;
|