Skip to content

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

1.1 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 PamAccountDependenciesSchema = z.object({
  id: z.string().uuid(),
  projectId: z.string(),
  fingerprint: z.string(),
  accountId: z.string().uuid().nullable().optional(),
  discoveredAccountId: z.string().uuid().nullable().optional(),
  type: z.string(),
  name: z.string(),
  machine: z.string(),
  data: z.unknown(),
  rotationStatus: z.string().nullable().optional(),
  lastRotatedAt: z.date().nullable().optional(),
  encryptedLastRotationMessage: zodBuffer.nullable().optional(),
  createdAt: z.date(),
  updatedAt: z.date()
});

export type TPamAccountDependencies = z.infer<typeof PamAccountDependenciesSchema>;
export type TPamAccountDependenciesInsert = Omit<z.input<typeof PamAccountDependenciesSchema>, TImmutableDBKeys>;
export type TPamAccountDependenciesUpdate = Partial<
  Omit<z.input<typeof PamAccountDependenciesSchema>, TImmutableDBKeys>
>;