mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-15 18:15:53 +00:00
19 lines
373 B
TypeScript
19 lines
373 B
TypeScript
import z from "zod";
|
|
|
|
import { CertificateTemplatesSchema } from "@app/db/schemas";
|
|
|
|
export const sanitizedCertificateTemplate = CertificateTemplatesSchema.pick({
|
|
id: true,
|
|
caId: true,
|
|
name: true,
|
|
commonName: true,
|
|
subjectAlternativeName: true,
|
|
pkiCollectionId: true,
|
|
ttl: true
|
|
}).merge(
|
|
z.object({
|
|
projectId: z.string(),
|
|
caName: z.string()
|
|
})
|
|
);
|