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

export const ProxiedServiceCredentialsSchema = z.object({
  id: z.string().uuid(),
  serviceId: z.string().uuid(),
  secretKey: z.string().nullable().optional(),
  role: z.string(),
  headerName: z.string().nullable().optional(),
  headerPrefix: z.string().nullable().optional(),
  headerPurpose: z.string().nullable().optional(),
  placeholderKey: z.string().nullable().optional(),
  placeholderValue: z.string().nullable().optional(),
  substitutionSurfaces: z.string().array().nullable().optional(),
  createdAt: z.date(),
  updatedAt: z.date(),
  dynamicSecretName: z.string().nullable().optional(),
  dynamicSecretField: z.string().nullable().optional()
});

export type TProxiedServiceCredentials = z.infer<typeof ProxiedServiceCredentialsSchema>;
export type TProxiedServiceCredentialsInsert = Omit<z.input<typeof ProxiedServiceCredentialsSchema>, TImmutableDBKeys>;
export type TProxiedServiceCredentialsUpdate = Partial<
  Omit<z.input<typeof ProxiedServiceCredentialsSchema>, TImmutableDBKeys>
>;