feat: extend use envelope response (#2192)

This commit is contained in:
David Nguyen
2025-11-14 13:52:19 +11:00
committed by GitHub
parent 6ec1c3a3fb
commit 56526f9448
10 changed files with 158 additions and 14 deletions

View File

@ -0,0 +1,16 @@
import { z } from 'zod';
import RecipientSchema from '@documenso/prisma/generated/zod/modelSchema/RecipientSchema';
// Common schemas between envelope routes.
export const ZRecipientWithSigningUrlSchema = RecipientSchema.pick({
id: true,
name: true,
email: true,
token: true,
role: true,
signingOrder: true,
}).extend({
signingUrl: z.string().describe('The URL which the recipient uses to sign the document.'),
});