Skip to content

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

834 B
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 TotpConfigsSchema = z.object({
  id: z.string().uuid(),
  userId: z.string().uuid(),
  isVerified: z.boolean().default(false),
  encryptedRecoveryCodes: zodBuffer.nullable().optional(),
  encryptedSecret: zodBuffer,
  createdAt: z.date(),
  updatedAt: z.date()
});

export type TTotpConfigs = z.infer<typeof TotpConfigsSchema>;
export type TTotpConfigsInsert = Omit<z.input<typeof TotpConfigsSchema>, TImmutableDBKeys>;
export type TTotpConfigsUpdate = Partial<Omit<z.input<typeof TotpConfigsSchema>, TImmutableDBKeys>>;