The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update links.ts
Steven Teya0db94f7d148
diff --git a/apps/web/lib/zod/schemas/links.ts b/apps/web/lib/zod/schemas/links.tsindex 3deb4a1ee1..8cd36ac100 100644--- a/apps/web/lib/zod/schemas/links.ts+++ b/apps/web/lib/zod/schemas/links.ts@@ -276,20 +276,33 @@ export const createLinkBodySchema = z.object({utm_source: z.string().nullish()- .describe("The UTM source of the short link."),+ .describe(+ "The UTM source of the short link. If set, this will populate or override the UTM source in the destination URL.",+ ),utm_medium: z.string().nullish()- .describe("The UTM medium of the short link."),+ .describe(+ "The UTM medium of the short link. If set, this will populate or override the UTM medium in the destination URL.",+ ),utm_campaign: z.string().nullish()- .describe("The UTM campaign of the short link."),- utm_term: z.string().nullish().describe("The UTM term of the short link."),+ .describe(+ "The UTM campaign of the short link. If set, this will populate or override the UTM campaign in the destination URL.",+ ),+ utm_term: z+ .string()+ .nullish()+ .describe(+ "The UTM term of the short link. If set, this will populate or override the UTM term in the destination URL.",+ ),utm_content: z.string().nullish()- .describe("The UTM content of the short link."),+ .describe(+ "The UTM content of the short link. If set, this will populate or override the UTM content in the destination URL.",+ ),});export const updateLinkBodySchema = createLinkBodySchema.partial().optional();