mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
27 lines
969 B
TypeScript
27 lines
969 B
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 KmsKeysSchema = z.object({
|
|
id: z.string().uuid(),
|
|
encryptedKey: zodBuffer,
|
|
encryptionAlgorithm: z.string(),
|
|
version: z.number().default(1),
|
|
description: z.string().nullable().optional(),
|
|
isDisabled: z.boolean().default(false).nullable().optional(),
|
|
isReserved: z.boolean().default(true).nullable().optional(),
|
|
projectId: z.string().nullable().optional(),
|
|
orgId: z.string().uuid().nullable().optional()
|
|
});
|
|
|
|
export type TKmsKeys = z.infer<typeof KmsKeysSchema>;
|
|
export type TKmsKeysInsert = Omit<z.input<typeof KmsKeysSchema>, TImmutableDBKeys>;
|
|
export type TKmsKeysUpdate = Partial<Omit<z.input<typeof KmsKeysSchema>, TImmutableDBKeys>>;
|