Skip to content

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

798 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 SecretReferencesV2Schema = z.object({
  id: z.string().uuid(),
  environment: z.string(),
  secretPath: z.string(),
  secretKey: z.string(),
  secretId: z.string().uuid(),
  targetProjectSlug: z.string().nullable().optional()
});

export type TSecretReferencesV2 = z.infer<typeof SecretReferencesV2Schema>;
export type TSecretReferencesV2Insert = Omit<z.input<typeof SecretReferencesV2Schema>, TImmutableDBKeys>;
export type TSecretReferencesV2Update = Partial<Omit<z.input<typeof SecretReferencesV2Schema>, TImmutableDBKeys>>;