Skip to content

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

1.2 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 SecretRotationsSchema = z.object({
  id: z.string().uuid(),
  provider: z.string(),
  secretPath: z.string(),
  interval: z.number(),
  lastRotatedAt: z.date().nullable().optional(),
  status: z.string().nullable().optional(),
  statusMessage: z.string().nullable().optional(),
  encryptedData: z.string().nullable().optional(),
  encryptedDataIV: z.string().nullable().optional(),
  encryptedDataTag: z.string().nullable().optional(),
  algorithm: z.string().nullable().optional(),
  keyEncoding: z.string().nullable().optional(),
  envId: z.string().uuid(),
  createdAt: z.date(),
  updatedAt: z.date(),
  encryptedRotationData: zodBuffer
});

export type TSecretRotations = z.infer<typeof SecretRotationsSchema>;
export type TSecretRotationsInsert = Omit<z.input<typeof SecretRotationsSchema>, TImmutableDBKeys>;
export type TSecretRotationsUpdate = Partial<Omit<z.input<typeof SecretRotationsSchema>, TImmutableDBKeys>>;