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.

update LinkSchema

Steven Teycfd9ffe188d3
diff --git a/apps/web/lib/zod/schemas/links.ts b/apps/web/lib/zod/schemas/links.ts
index 39f5c926cd..0446347b62 100644
--- a/apps/web/lib/zod/schemas/links.ts
+++ b/apps/web/lib/zod/schemas/links.ts
@@ -367,17 +367,22 @@ export const LinkSchema = z
.describe(
"The short link slug. If not provided, a random 7-character slug will be generated.",
),
- externalId: z
- .string()
- .nullable()
- .describe(
- "This is the ID of the link in your database. If set, it can be used to identify the link in the future. Must be prefixed with 'ext_' when passed as a query parameter.",
- ),
url: z.string().url().describe("The destination URL of the short link."),
trackConversion: z
.boolean()
.default(false)
.describe("[BETA] Whether to track conversions for the short link."),
+ externalId: z
+ .string()
+ .nullable()
+ .describe(
+ "This is the ID of the link in your database that is unique across your workspace. If set, it can be used to identify the link in future API requests. Must be prefixed with 'ext_' when passed as a query parameter.",
+ ),
+ identifier: z
+ .string()
+ .describe(
+ "The identifier of the short link that is unique across your workspace. If set, it can be used to identify your short link for client-side click tracking.",
+ ),
archived: z
.boolean()
.default(false)