mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-15 16:52:38 +00:00
22 lines
730 B
TypeScript
22 lines
730 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 KmsKeyVersionsSchema = z.object({
|
|
id: z.string().uuid(),
|
|
encryptedKey: zodBuffer,
|
|
version: z.number(),
|
|
kmsKeyId: z.string().uuid()
|
|
});
|
|
|
|
export type TKmsKeyVersions = z.infer<typeof KmsKeyVersionsSchema>;
|
|
export type TKmsKeyVersionsInsert = Omit<z.input<typeof KmsKeyVersionsSchema>, TImmutableDBKeys>;
|
|
export type TKmsKeyVersionsUpdate = Partial<Omit<z.input<typeof KmsKeyVersionsSchema>, TImmutableDBKeys>>;
|