Skip to content

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

1.3 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 AgentVaultSessionInlineServicesSchema = z.object({
  id: z.string().uuid(),
  sessionId: z.string().uuid(),
  position: z.number(),
  name: z.string().nullable().optional(),
  type: z.string(),
  config: z.unknown().nullable().optional(),
  hostPattern: z.string(),
  allowedMethods: z.string().array().nullable().optional(),
  allowedPathPrefixes: z.string().array().nullable().optional(),
  credentialType: z.string(),
  credentialConfig: z.unknown(),
  customHeaders: z.unknown(),
  substitutions: z.unknown(),
  encryptedSecrets: zodBuffer.nullable().optional(),
  createdAt: z.date(),
  updatedAt: z.date()
});

export type TAgentVaultSessionInlineServices = z.infer<typeof AgentVaultSessionInlineServicesSchema>;
export type TAgentVaultSessionInlineServicesInsert = Omit<
  z.input<typeof AgentVaultSessionInlineServicesSchema>,
  TImmutableDBKeys
>;
export type TAgentVaultSessionInlineServicesUpdate = Partial<
  Omit<z.input<typeof AgentVaultSessionInlineServicesSchema>, TImmutableDBKeys>
>;