feat: update type resolvers to include password

This commit is contained in:
lemmyMwaura
2024-08-06 12:27:16 +03:00
parent 0321ec32fb
commit ecdbb3eb53
3 changed files with 5 additions and 0 deletions
@@ -101,6 +101,7 @@ export const registerSecretSharingRouter = async (server: FastifyZodProvider) =>
schema: {
body: z.object({
encryptedValue: z.string(),
password: z.string().optional(),
hashedHex: z.string(),
iv: z.string(),
tag: z.string(),
@@ -131,6 +132,7 @@ export const registerSecretSharingRouter = async (server: FastifyZodProvider) =>
schema: {
body: z.object({
name: z.string().max(50).optional(),
password: z.string().optional(),
encryptedValue: z.string(),
hashedHex: z.string(),
iv: z.string(),