mirror of
https://github.com/Infisical/infisical.git
synced 2026-01-07 22:53:55 -05:00
27 lines
976 B
TypeScript
27 lines
976 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 { TImmutableDBKeys } from "./models";
|
|
|
|
export const KmsKeysSchema = z.object({
|
|
id: z.string().uuid(),
|
|
description: z.string().nullable().optional(),
|
|
isDisabled: z.boolean().default(false).nullable().optional(),
|
|
isReserved: z.boolean().default(true).nullable().optional(),
|
|
orgId: z.string().uuid(),
|
|
name: z.string(),
|
|
createdAt: z.date(),
|
|
updatedAt: z.date(),
|
|
projectId: z.string().nullable().optional(),
|
|
keyUsage: z.string().default("encrypt-decrypt"),
|
|
kmipMetadata: z.unknown().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>>;
|