mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-15 00:52:09 +00:00
25 lines
897 B
TypeScript
25 lines
897 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 DynamicSecretLeasesSchema = z.object({
|
|
id: z.string().uuid(),
|
|
version: z.number(),
|
|
externalEntityId: z.string(),
|
|
expireAt: z.date(),
|
|
status: z.string().nullable().optional(),
|
|
statusDetails: z.string().nullable().optional(),
|
|
dynamicSecretId: z.string().uuid(),
|
|
createdAt: z.date(),
|
|
updatedAt: z.date()
|
|
});
|
|
|
|
export type TDynamicSecretLeases = z.infer<typeof DynamicSecretLeasesSchema>;
|
|
export type TDynamicSecretLeasesInsert = Omit<z.input<typeof DynamicSecretLeasesSchema>, TImmutableDBKeys>;
|
|
export type TDynamicSecretLeasesUpdate = Partial<Omit<z.input<typeof DynamicSecretLeasesSchema>, TImmutableDBKeys>>;
|