fix: added new identifier field for non-uuid IDs

This commit is contained in:
Daniel Hougaard
2024-09-30 22:51:42 +04:00
parent 7e820745a4
commit 1a0896475c
4 changed files with 55 additions and 78 deletions
+2 -1
View File
@@ -10,6 +10,7 @@ import { zodBuffer } from "@app/lib/zod";
import { TImmutableDBKeys } from "./models";
export const SecretSharingSchema = z.object({
id: z.string().uuid(),
encryptedValue: z.string().nullable().optional(),
iv: z.string().nullable().optional(),
tag: z.string().nullable().optional(),
@@ -25,7 +26,7 @@ export const SecretSharingSchema = z.object({
lastViewedAt: z.date().nullable().optional(),
password: z.string().nullable().optional(),
encryptedSecret: zodBuffer.nullable().optional(),
id: z.string()
identifier: z.string().nullable().optional()
});
export type TSecretSharing = z.infer<typeof SecretSharingSchema>;