Skip to content

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

1.0 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 PkiScepTransactionsSchema = z.object({
  id: z.string().uuid(),
  profileId: z.string().uuid(),
  transactionId: z.string(),
  senderNonce: zodBuffer,
  signerCertDer: zodBuffer,
  certificateRequestId: z.string().uuid().nullable().optional(),
  clientCipherOid: z.string().nullable().optional(),
  expiresAt: z.date(),
  createdAt: z.date(),
  updatedAt: z.date(),
  applicationId: z.string().uuid().nullable().optional()
});

export type TPkiScepTransactions = z.infer<typeof PkiScepTransactionsSchema>;
export type TPkiScepTransactionsInsert = Omit<z.input<typeof PkiScepTransactionsSchema>, TImmutableDBKeys>;
export type TPkiScepTransactionsUpdate = Partial<Omit<z.input<typeof PkiScepTransactionsSchema>, TImmutableDBKeys>>;