Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

1.4 KB
Raw Blame
// 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 PkiScepEnrollmentConfigsSchema = z.object({
  id: z.string().uuid(),
  encryptedRaPrivateKey: zodBuffer,
  raCertificate: z.string(),
  raCertExpiresAt: z.date(),
  hashedChallengePassword: z.string().nullable().optional(),
  includeCaCertInResponse: z.boolean().default(true),
  allowCertBasedRenewal: z.boolean().default(true),
  createdAt: z.date(),
  updatedAt: z.date(),
  challengeType: z.string().default("static"),
  dynamicChallengeExpiryMinutes: z.number().nullable().optional(),
  dynamicChallengeMaxPending: z.number().nullable().optional(),
  applicationProfileId: z.string().uuid().nullable().optional(),
  validationConnectionId: z.string().uuid().nullable().optional(),
  signRaWithCa: z.boolean().default(false)
});

export type TPkiScepEnrollmentConfigs = z.infer<typeof PkiScepEnrollmentConfigsSchema>;
export type TPkiScepEnrollmentConfigsInsert = Omit<z.input<typeof PkiScepEnrollmentConfigsSchema>, TImmutableDBKeys>;
export type TPkiScepEnrollmentConfigsUpdate = Partial<
  Omit<z.input<typeof PkiScepEnrollmentConfigsSchema>, TImmutableDBKeys>
>;