The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
rearrange
Steven Tey5f8402c1af99
diff --git a/apps/web/lib/zod/schemas/links.ts b/apps/web/lib/zod/schemas/links.tsindex 2b85e11edc..4f53242054 100644--- a/apps/web/lib/zod/schemas/links.ts+++ b/apps/web/lib/zod/schemas/links.ts@@ -135,6 +135,24 @@ export const createLinkBodySchema = z.object({.optional().default(false).describe("Whether the short link is archived."),+ publicStats: z+ .boolean()+ .optional()+ .default(false)+ .describe("Whether the short link's stats are publicly accessible."),+ tagId: z+ .string()+ .nullish()+ .describe(+ "[DEPRECATED] (use tagIds instead): The unique ID of the tag assigned to the short link.",+ )+ .openapi({ deprecated: true }),+ tagIds: z+ .union([z.string(), z.array(z.string())])+ .transform((v) => (Array.isArray(v) ? v : v.split(",")))+ .optional()+ .describe("The unique IDs of the tags assigned to the short link."),+ comments: z.string().nullish().describe("The comments for the short link."),expiresAt: z.string().nullish()@@ -192,24 +210,6 @@ export const createLinkBodySchema = z.object({.describe("Geo targeting information for the short link in JSON format `{[COUNTRY]: https://example.com }`.",),- publicStats: z- .boolean()- .optional()- .default(false)- .describe("Whether the short link's stats are publicly accessible."),- tagId: z- .string()- .nullish()- .describe(- "[DEPRECATED] (use tagIds instead): The unique ID of the tag assigned to the short link.",- )- .openapi({ deprecated: true }),- tagIds: z- .union([z.string(), z.array(z.string())])- .transform((v) => (Array.isArray(v) ? v : v.split(",")))- .optional()- .describe("The unique IDs of the tags assigned to the short link."),- comments: z.string().nullish().describe("The comments for the short link."),});export const updateLinkBodySchema = createLinkBodySchema.partial();