mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-15 15:41:27 +00:00
24 lines
816 B
TypeScript
24 lines
816 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 ExternalKmsSchema = z.object({
|
|
id: z.string().uuid(),
|
|
provider: z.string(),
|
|
encryptedProviderInputs: zodBuffer,
|
|
status: z.string().nullable().optional(),
|
|
statusDetails: z.string().nullable().optional(),
|
|
kmsKeyId: z.string().uuid()
|
|
});
|
|
|
|
export type TExternalKms = z.infer<typeof ExternalKmsSchema>;
|
|
export type TExternalKmsInsert = Omit<z.input<typeof ExternalKmsSchema>, TImmutableDBKeys>;
|
|
export type TExternalKmsUpdate = Partial<Omit<z.input<typeof ExternalKmsSchema>, TImmutableDBKeys>>;
|