Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Merge branch 'main' into eng-260

Steven Tey170956c19d6f
diff --cc apps/web/lib/zod/schemas/links.ts
index 22203a6a41,4f53242054..e0a12d8f03
--- a/apps/web/lib/zod/schemas/links.ts
+++ b/apps/web/lib/zod/schemas/links.ts
@@@ -126,6 -135,24 +133,24 @@@ export const createLinkBodySchema = z.o
.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.",
++ "The unique ID of the tag assigned to the short link. This field is deprecated – use `tagIds` instead.",
+ )
+ .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()