Skip to content

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

910 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 { TImmutableDBKeys } from "./models";

export const FolderCommitChangesSchema = z.object({
  id: z.string().uuid(),
  folderCommitId: z.string().uuid(),
  changeType: z.string(),
  isUpdate: z.boolean().default(false),
  secretVersionId: z.string().uuid().nullable().optional(),
  folderVersionId: z.string().uuid().nullable().optional(),
  createdAt: z.date(),
  updatedAt: z.date()
});

export type TFolderCommitChanges = z.infer<typeof FolderCommitChangesSchema>;
export type TFolderCommitChangesInsert = Omit<z.input<typeof FolderCommitChangesSchema>, TImmutableDBKeys>;
export type TFolderCommitChangesUpdate = Partial<Omit<z.input<typeof FolderCommitChangesSchema>, TImmutableDBKeys>>;