mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
26 lines
596 B
TypeScript
26 lines
596 B
TypeScript
import { z } from "zod";
|
|
|
|
import { PkiSubscribersSchema } from "@app/db/schemas";
|
|
|
|
export const sanitizedPkiSubscriber = PkiSubscribersSchema.pick({
|
|
id: true,
|
|
projectId: true,
|
|
caId: true,
|
|
name: true,
|
|
commonName: true,
|
|
status: true,
|
|
subjectAlternativeNames: true,
|
|
ttl: true,
|
|
keyUsages: true,
|
|
extendedKeyUsages: true,
|
|
lastOperationStatus: true,
|
|
lastOperationMessage: true,
|
|
lastOperationAt: true,
|
|
enableAutoRenewal: true,
|
|
autoRenewalPeriodInDays: true,
|
|
lastAutoRenewAt: true,
|
|
properties: true
|
|
}).extend({
|
|
supportsImmediateCertIssuance: z.boolean().optional()
|
|
});
|