mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-15 22:46:24 +00:00
27 lines
1002 B
TypeScript
27 lines
1002 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 CertificateTemplatesSchema = z.object({
|
|
id: z.string().uuid(),
|
|
caId: z.string().uuid(),
|
|
pkiCollectionId: z.string().uuid().nullable().optional(),
|
|
name: z.string(),
|
|
commonName: z.string(),
|
|
subjectAlternativeName: z.string(),
|
|
ttl: z.string(),
|
|
createdAt: z.date(),
|
|
updatedAt: z.date(),
|
|
keyUsages: z.string().array().nullable().optional(),
|
|
extendedKeyUsages: z.string().array().nullable().optional()
|
|
});
|
|
|
|
export type TCertificateTemplates = z.infer<typeof CertificateTemplatesSchema>;
|
|
export type TCertificateTemplatesInsert = Omit<z.input<typeof CertificateTemplatesSchema>, TImmutableDBKeys>;
|
|
export type TCertificateTemplatesUpdate = Partial<Omit<z.input<typeof CertificateTemplatesSchema>, TImmutableDBKeys>>;
|