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

export const PkiDiscoveryConfigsSchema = z.object({
  id: z.string().uuid(),
  projectId: z.string(),
  name: z.string(),
  description: z.string().nullable().optional(),
  discoveryType: z.string().default("network"),
  targetConfig: z.unknown(),
  isAutoScanEnabled: z.boolean().default(false),
  scanIntervalDays: z.number().nullable().optional(),
  gatewayId: z.string().uuid().nullable().optional(),
  isActive: z.boolean().default(true),
  lastScanStatus: z.string().nullable().optional(),
  lastScanJobId: z.string().nullable().optional(),
  lastScanMessage: z.string().nullable().optional(),
  lastScannedAt: z.date().nullable().optional(),
  createdAt: z.date(),
  updatedAt: z.date(),
  gatewayPoolId: z.string().uuid().nullable().optional()
});

export type TPkiDiscoveryConfigs = z.infer<typeof PkiDiscoveryConfigsSchema>;
export type TPkiDiscoveryConfigsInsert = Omit<z.input<typeof PkiDiscoveryConfigsSchema>, TImmutableDBKeys>;
export type TPkiDiscoveryConfigsUpdate = Partial<Omit<z.input<typeof PkiDiscoveryConfigsSchema>, TImmutableDBKeys>>;