mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-17 18:19:50 +00:00
33 lines
1.2 KiB
TypeScript
33 lines
1.2 KiB
TypeScript
// 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 SecretScanningDataSourcesSchema = z.object({
|
|
id: z.string().uuid(),
|
|
externalId: z.string().nullable().optional(),
|
|
name: z.string(),
|
|
description: z.string().nullable().optional(),
|
|
type: z.string(),
|
|
config: z.unknown(),
|
|
encryptedCredentials: zodBuffer.nullable().optional(),
|
|
connectionId: z.string().uuid().nullable().optional(),
|
|
isAutoScanEnabled: z.boolean().default(true).nullable().optional(),
|
|
projectId: z.string(),
|
|
createdAt: z.date(),
|
|
updatedAt: z.date(),
|
|
isDisconnected: z.boolean().default(false)
|
|
});
|
|
|
|
export type TSecretScanningDataSources = z.infer<typeof SecretScanningDataSourcesSchema>;
|
|
export type TSecretScanningDataSourcesInsert = Omit<z.input<typeof SecretScanningDataSourcesSchema>, TImmutableDBKeys>;
|
|
export type TSecretScanningDataSourcesUpdate = Partial<
|
|
Omit<z.input<typeof SecretScanningDataSourcesSchema>, TImmutableDBKeys>
|
|
>;
|