mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-16 03:31:27 +00:00
27 lines
910 B
TypeScript
27 lines
910 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 { TImmutableDBKeys } from "./models";
|
|
|
|
export const SshCertificatesSchema = z.object({
|
|
id: z.string().uuid(),
|
|
createdAt: z.date(),
|
|
updatedAt: z.date(),
|
|
sshCaId: z.string().uuid(),
|
|
sshCertificateTemplateId: z.string().uuid().nullable().optional(),
|
|
serialNumber: z.string(),
|
|
certType: z.string(),
|
|
principals: z.string().array(),
|
|
keyId: z.string(),
|
|
notBefore: z.date(),
|
|
notAfter: z.date()
|
|
});
|
|
|
|
export type TSshCertificates = z.infer<typeof SshCertificatesSchema>;
|
|
export type TSshCertificatesInsert = Omit<z.input<typeof SshCertificatesSchema>, TImmutableDBKeys>;
|
|
export type TSshCertificatesUpdate = Partial<Omit<z.input<typeof SshCertificatesSchema>, TImmutableDBKeys>>;
|