The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
update schema
Kiran K511d0ed96cfd
diff --git a/apps/web/lib/zod/schemas/links.ts b/apps/web/lib/zod/schemas/links.tsindex ab33d17be0..7000f5bbcb 100644--- a/apps/web/lib/zod/schemas/links.ts+++ b/apps/web/lib/zod/schemas/links.ts@@ -12,6 +12,7 @@ import {parseUrlSchema,parseUrlSchemaAllowEmpty,} from "./utils";+import { webhookSchema } from "./webhooks";export const getUrlQuerySchema = z.object({url: parseUrlSchema,@@ -490,6 +491,11 @@ export const LinkSchema = ztags: TagSchema.array().nullable().describe("The tags assigned to the short link."),+ webhooks: webhookSchema+ .pick({ id: true, name: true, url: true })+ .array()+ .nullable()+ .describe("The webhooks assigned to the short link."),comments: z.string().nullable()