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.

support projectSlug

Kiran K514b33f95b3a
diff --git a/apps/web/lib/openapi/analytics/browser.ts b/apps/web/lib/openapi/analytics/browser.ts
index 4fc45b9ce2..9e01730b73 100644
--- a/apps/web/lib/openapi/analytics/browser.ts
+++ b/apps/web/lib/openapi/analytics/browser.ts
@@ -2,6 +2,7 @@ import { openApiErrorResponses } from "@/lib/openapi/responses";
import z from "@/lib/zod";
import { getAnalyticsQuerySchema } from "@/lib/zod/schemas/analytics";
import { ZodOpenApiOperationObject } from "zod-openapi";
+import { requestParamsSchema } from "../request";
export const getBrowserAnalytics: ZodOpenApiOperationObject = {
operationId: "getBrowserAnalytics",
@@ -10,13 +11,7 @@ export const getBrowserAnalytics: ZodOpenApiOperationObject = {
description:
"Retrieve the top browsers by number of clicks for a link, a domain, or the authenticated workspace.",
requestParams: {
- query: z
- .object({
- workspaceId: z
- .string()
- .describe("The ID of the workspace the link belongs to."),
- })
- .merge(getAnalyticsQuerySchema),
+ query: requestParamsSchema.merge(getAnalyticsQuerySchema),
},
responses: {
"200": {
diff --git a/apps/web/lib/openapi/analytics/city.ts b/apps/web/lib/openapi/analytics/city.ts
index d93a58067e..9a9f0a5f23 100644
--- a/apps/web/lib/openapi/analytics/city.ts
+++ b/apps/web/lib/openapi/analytics/city.ts
@@ -3,6 +3,7 @@ import z from "@/lib/zod";
import { getAnalyticsQuerySchema } from "@/lib/zod/schemas/analytics";
import { COUNTRY_CODES } from "@dub/utils";
import { ZodOpenApiOperationObject } from "zod-openapi";
+import { requestParamsSchema } from "../request";
export const getCityAnalytics: ZodOpenApiOperationObject = {
operationId: "getCityAnalytics",
@@ -11,13 +12,7 @@ export const getCityAnalytics: ZodOpenApiOperationObject = {
description:
"Retrieve the top countries by number of clicks for a link, a domain, or the authenticated workspace.",
requestParams: {
- query: z
- .object({
- workspaceId: z
- .string()
- .describe("The ID of the workspace the link belongs to."),
- })
- .merge(getAnalyticsQuerySchema),
+ query: requestParamsSchema.merge(getAnalyticsQuerySchema),
},
responses: {
"200": {
diff --git a/apps/web/lib/openapi/analytics/clicks.ts b/apps/web/lib/openapi/analytics/clicks.ts
index c00f6eaf84..4d34e97121 100644
--- a/apps/web/lib/openapi/analytics/clicks.ts
+++ b/apps/web/lib/openapi/analytics/clicks.ts
@@ -1,7 +1,7 @@
import { openApiErrorResponses } from "@/lib/openapi/responses";
-import z from "@/lib/zod";
import { getAnalyticsQuerySchema } from "@/lib/zod/schemas/analytics";
import { ZodOpenApiOperationObject } from "zod-openapi";
+import { requestParamsSchema } from "../request";
export const getClicksAnalytics: ZodOpenApiOperationObject = {
operationId: "getClicksAnalytics",
@@ -10,13 +10,7 @@ export const getClicksAnalytics: ZodOpenApiOperationObject = {
description:
"Retrieve the number of clicks for a link, a domain, or the authenticated workspace.",
requestParams: {
- query: z
- .object({
- workspaceId: z
- .string()
- .describe("The ID of the workspace the link belongs to."),
- })
- .merge(getAnalyticsQuerySchema),
+ query: requestParamsSchema.merge(getAnalyticsQuerySchema),
},
responses: {
"200": {
diff --git a/apps/web/lib/openapi/analytics/country.ts b/apps/web/lib/openapi/analytics/country.ts
index 204afbb9c7..b955742b5f 100644
--- a/apps/web/lib/openapi/analytics/country.ts
+++ b/apps/web/lib/openapi/analytics/country.ts
@@ -3,6 +3,7 @@ import z from "@/lib/zod";
import { getAnalyticsQuerySchema } from "@/lib/zod/schemas/analytics";
import { COUNTRY_CODES } from "@dub/utils";
import { ZodOpenApiOperationObject } from "zod-openapi";
+import { requestParamsSchema } from "../request";
export const getCountryAnalytics: ZodOpenApiOperationObject = {
operationId: "getCountryAnalytics",
@@ -11,13 +12,7 @@ export const getCountryAnalytics: ZodOpenApiOperationObject = {
description:
"Retrieve the top countries by number of clicks for a link, a domain, or the authenticated workspace.",
requestParams: {
- query: z
- .object({
- workspaceId: z
- .string()
- .describe("The ID of the workspace the link belongs to."),
- })
- .merge(getAnalyticsQuerySchema),
+ query: requestParamsSchema.merge(getAnalyticsQuerySchema),
},
responses: {
"200": {
diff --git a/apps/web/lib/openapi/analytics/device.ts b/apps/web/lib/openapi/analytics/device.ts
index 4520f26d95..56de0b48c5 100644
--- a/apps/web/lib/openapi/analytics/device.ts
+++ b/apps/web/lib/openapi/analytics/device.ts
@@ -2,6 +2,7 @@ import { openApiErrorResponses } from "@/lib/openapi/responses";
import z from "@/lib/zod";
import { getAnalyticsQuerySchema } from "@/lib/zod/schemas/analytics";
import { ZodOpenApiOperationObject } from "zod-openapi";
+import { requestParamsSchema } from "../request";
export const getDeviceAnalytics: ZodOpenApiOperationObject = {
operationId: "getDeviceAnalytics",
@@ -10,13 +11,7 @@ export const getDeviceAnalytics: ZodOpenApiOperationObject = {
description:
"Retrieve the top devices by number of clicks for a link, a domain, or the authenticated workspace.",
requestParams: {
- query: z
- .object({
- workspaceId: z
- .string()
- .describe("The ID of the workspace the link belongs to."),
- })
- .merge(getAnalyticsQuerySchema),
+ query: requestParamsSchema.merge(getAnalyticsQuerySchema),
},
responses: {
"200": {
diff --git a/apps/web/lib/openapi/analytics/index.ts b/apps/web/lib/openapi/analytics/index.ts
index fa1b75d8eb..2f1a516701 100644
--- a/apps/web/lib/openapi/analytics/index.ts
+++ b/apps/web/lib/openapi/analytics/index.ts
@@ -1,5 +1,4 @@
import { ZodOpenApiPathsObject } from "zod-openapi";
-
import { getBrowserAnalytics } from "./browser";
import { getCityAnalytics } from "./city";
import { getClicksAnalytics } from "./clicks";
diff --git a/apps/web/lib/openapi/analytics/os.ts b/apps/web/lib/openapi/analytics/os.ts
index a43f580d53..15f717b8a8 100644
--- a/apps/web/lib/openapi/analytics/os.ts
+++ b/apps/web/lib/openapi/analytics/os.ts
@@ -2,6 +2,7 @@ import { openApiErrorResponses } from "@/lib/openapi/responses";
import z from "@/lib/zod";
import { getAnalyticsQuerySchema } from "@/lib/zod/schemas/analytics";
import { ZodOpenApiOperationObject } from "zod-openapi";
+import { requestParamsSchema } from "../request";
export const getOSAnalytics: ZodOpenApiOperationObject = {
operationId: "getOSAnalytics",
@@ -10,13 +11,7 @@ export const getOSAnalytics: ZodOpenApiOperationObject = {
description:
"Retrieve the top OS by number of clicks for a link, a domain, or the authenticated workspace.",
requestParams: {
- query: z
- .object({
- workspaceId: z
- .string()
- .describe("The ID of the workspace the link belongs to."),
- })
- .merge(getAnalyticsQuerySchema),
+ query: requestParamsSchema.merge(getAnalyticsQuerySchema),
},
responses: {
"200": {
diff --git a/apps/web/lib/openapi/analytics/referer.ts b/apps/web/lib/openapi/analytics/referer.ts
index ede8700006..d57e3312b1 100644
--- a/apps/web/lib/openapi/analytics/referer.ts
+++ b/apps/web/lib/openapi/analytics/referer.ts
@@ -2,6 +2,7 @@ import { openApiErrorResponses } from "@/lib/openapi/responses";
import z from "@/lib/zod";
import { getAnalyticsQuerySchema } from "@/lib/zod/schemas/analytics";
import { ZodOpenApiOperationObject } from "zod-openapi";
+import { requestParamsSchema } from "../request";
export const getRefererAnalytics: ZodOpenApiOperationObject = {
operationId: "getRefererAnalytics",
@@ -10,13 +11,7 @@ export const getRefererAnalytics: ZodOpenApiOperationObject = {
description:
"Retrieve the top referers by number of clicks for a link, a domain, or the authenticated workspace.",
requestParams: {
- query: z
- .object({
- workspaceId: z
- .string()
- .describe("The ID of the workspace the link belongs to."),
- })
- .merge(getAnalyticsQuerySchema),
+ query: requestParamsSchema.merge(getAnalyticsQuerySchema),
},
responses: {
"200": {
diff --git a/apps/web/lib/openapi/analytics/timeseries.ts b/apps/web/lib/openapi/analytics/timeseries.ts
index 9ee4338d55..92c964d625 100644
--- a/apps/web/lib/openapi/analytics/timeseries.ts
+++ b/apps/web/lib/openapi/analytics/timeseries.ts
@@ -2,6 +2,7 @@ import { openApiErrorResponses } from "@/lib/openapi/responses";
import z from "@/lib/zod";
import { getAnalyticsQuerySchema } from "@/lib/zod/schemas/analytics";
import { ZodOpenApiOperationObject } from "zod-openapi";
+import { requestParamsSchema } from "../request";
export const getTimeseriesAnalytics: ZodOpenApiOperationObject = {
operationId: "getTimeseriesAnalytics",
@@ -10,13 +11,7 @@ export const getTimeseriesAnalytics: ZodOpenApiOperationObject = {
description:
"Retrieve the number of clicks for a link, a domain, or the authenticated workspace over a period of time.",
requestParams: {
- query: z
- .object({
- workspaceId: z
- .string()
- .describe("The ID of the workspace the link belongs to."),
- })
- .merge(getAnalyticsQuerySchema),
+ query: requestParamsSchema.merge(getAnalyticsQuerySchema),
},
responses: {
"200": {
diff --git a/apps/web/lib/openapi/analytics/top-links.ts b/apps/web/lib/openapi/analytics/top-links.ts
index 6e8f8c21c5..cae96360e4 100644
--- a/apps/web/lib/openapi/analytics/top-links.ts
+++ b/apps/web/lib/openapi/analytics/top-links.ts
@@ -2,6 +2,7 @@ import { openApiErrorResponses } from "@/lib/openapi/responses";
import z from "@/lib/zod";
import { getAnalyticsQuerySchema } from "@/lib/zod/schemas/analytics";
import { ZodOpenApiOperationObject } from "zod-openapi";
+import { requestParamsSchema } from "../request";
export const getTopLinks: ZodOpenApiOperationObject = {
operationId: "getTopLinks",
@@ -10,13 +11,7 @@ export const getTopLinks: ZodOpenApiOperationObject = {
description:
"Retrieve the top links by number of clicks for a domain or the authenticated workspace.",
requestParams: {
- query: z
- .object({
- workspaceId: z
- .string()
- .describe("The ID of the workspace the link belongs to."),
- })
- .merge(getAnalyticsQuerySchema),
+ query: requestParamsSchema.merge(getAnalyticsQuerySchema),
},
responses: {
"200": {
diff --git a/apps/web/lib/openapi/analytics/top-urls.ts b/apps/web/lib/openapi/analytics/top-urls.ts
index f81706fcd8..308184d67b 100644
--- a/apps/web/lib/openapi/analytics/top-urls.ts
+++ b/apps/web/lib/openapi/analytics/top-urls.ts
@@ -2,6 +2,7 @@ import { openApiErrorResponses } from "@/lib/openapi/responses";
import z from "@/lib/zod";
import { getAnalyticsQuerySchema } from "@/lib/zod/schemas/analytics";
import { ZodOpenApiOperationObject } from "zod-openapi";
+import { requestParamsSchema } from "../request";
export const getTopURLs: ZodOpenApiOperationObject = {
operationId: "getTopURLs",
@@ -10,13 +11,7 @@ export const getTopURLs: ZodOpenApiOperationObject = {
description:
"Retrieve the top URLs by number of clicks for a given short link.",
requestParams: {
- query: z
- .object({
- workspaceId: z
- .string()
- .describe("The ID of the workspace the link belongs to."),
- })
- .merge(getAnalyticsQuerySchema),
+ query: requestParamsSchema.merge(getAnalyticsQuerySchema),
},
responses: {
"200": {
diff --git a/apps/web/lib/openapi/links/create-bulk-link.ts b/apps/web/lib/openapi/links/create-bulk-link.ts
index d4346b44fa..f50d1ee005 100644
--- a/apps/web/lib/openapi/links/create-bulk-link.ts
+++ b/apps/web/lib/openapi/links/create-bulk-link.ts
@@ -1,8 +1,8 @@
-import { ZodOpenApiOperationObject } from "zod-openapi";
-
import { openApiErrorResponses } from "@/lib/openapi/responses";
import z from "@/lib/zod";
import { LinkSchema, createLinkBodySchema } from "@/lib/zod/schemas/links";
+import { ZodOpenApiOperationObject } from "zod-openapi";
+import { requestParamsSchema } from "../request";
export const createBulkLink: ZodOpenApiOperationObject = {
operationId: "bulkCreateLinks",
@@ -10,11 +10,7 @@ export const createBulkLink: ZodOpenApiOperationObject = {
summary: "Bulk create links",
description: "Bulk create up to 100 links for the authenticated workspace.",
requestParams: {
- query: z.object({
- workspaceId: z
- .string()
- .describe("The ID of the workspace to create the link for."),
- }),
+ query: requestParamsSchema,
},
requestBody: {
content: {
diff --git a/apps/web/lib/openapi/links/create-link.ts b/apps/web/lib/openapi/links/create-link.ts
index 0c18cb761f..e2f98fb641 100644
--- a/apps/web/lib/openapi/links/create-link.ts
+++ b/apps/web/lib/openapi/links/create-link.ts
@@ -1,7 +1,7 @@
import { openApiErrorResponses } from "@/lib/openapi/responses";
-import z from "@/lib/zod";
import { LinkSchema, createLinkBodySchema } from "@/lib/zod/schemas/links";
import { ZodOpenApiOperationObject } from "zod-openapi";
+import { requestParamsSchema } from "../request";
export const createLink: ZodOpenApiOperationObject = {
operationId: "createLink",
@@ -9,11 +9,7 @@ export const createLink: ZodOpenApiOperationObject = {
summary: "Create a new link",
description: "Create a new link for the authenticated workspace.",
requestParams: {
- query: z.object({
- workspaceId: z
- .string()
- .describe("The ID of the workspace to create the link for."),
- }),
+ query: requestParamsSchema,
},
requestBody: {
content: {
diff --git a/apps/web/lib/openapi/links/delete-link.ts b/apps/web/lib/openapi/links/delete-link.ts
index 32927774ef..852ec956f5 100644
--- a/apps/web/lib/openapi/links/delete-link.ts
+++ b/apps/web/lib/openapi/links/delete-link.ts
@@ -1,7 +1,7 @@
-import { ZodOpenApiOperationObject } from "zod-openapi";
-
import { openApiErrorResponses } from "@/lib/openapi/responses";
import z from "@/lib/zod";
+import { ZodOpenApiOperationObject } from "zod-openapi";
+import { requestParamsSchema } from "../request";
export const deleteLink: ZodOpenApiOperationObject = {
operationId: "deleteLink",
@@ -10,11 +10,7 @@ export const deleteLink: ZodOpenApiOperationObject = {
summary: "Delete a link",
description: "Delete a link for the authenticated workspace.",
requestParams: {
- query: z.object({
- workspaceId: z
- .string()
- .describe("The ID of the workspace the link belongs to."),
- }),
+ query: requestParamsSchema,
path: z.object({
linkId: z.string().openapi({
description:
diff --git a/apps/web/lib/openapi/links/edit-link.ts b/apps/web/lib/openapi/links/edit-link.ts
index 353fd51ffb..b8e76c626e 100644
--- a/apps/web/lib/openapi/links/edit-link.ts
+++ b/apps/web/lib/openapi/links/edit-link.ts
@@ -1,8 +1,8 @@
-import { ZodOpenApiOperationObject } from "zod-openapi";
-
import { openApiErrorResponses } from "@/lib/openapi/responses";
import z from "@/lib/zod";
import { LinkSchema, createLinkBodySchema } from "@/lib/zod/schemas/links";
+import { ZodOpenApiOperationObject } from "zod-openapi";
+import { requestParamsSchema } from "../request";
export const editLink: ZodOpenApiOperationObject = {
operationId: "editLink",
@@ -11,11 +11,7 @@ export const editLink: ZodOpenApiOperationObject = {
summary: "Edit a link",
description: "Edit a link for the authenticated workspace.",
requestParams: {
- query: z.object({
- workspaceId: z
- .string()
- .describe("The ID of the workspace the link belongs to."),
- }),
+ query: requestParamsSchema,
path: z.object({
linkId: z.string().openapi({
description:
diff --git a/apps/web/lib/openapi/links/get-link-info.ts b/apps/web/lib/openapi/links/get-link-info.ts
index 1d6196de9f..dc367889b1 100644
--- a/apps/web/lib/openapi/links/get-link-info.ts
+++ b/apps/web/lib/openapi/links/get-link-info.ts
@@ -1,8 +1,7 @@
-import { ZodOpenApiOperationObject } from "zod-openapi";
-
import { openApiErrorResponses } from "@/lib/openapi/responses";
-import z from "@/lib/zod";
import { getLinkInfoQuerySchema, LinkSchema } from "@/lib/zod/schemas/links";
+import { ZodOpenApiOperationObject } from "zod-openapi";
+import { requestParamsSchema } from "../request";
export const getLinkInfo: ZodOpenApiOperationObject = {
operationId: "getLinkInfo",
@@ -10,13 +9,7 @@ export const getLinkInfo: ZodOpenApiOperationObject = {
summary: "Retrieve a link",
description: "Retrieve the info for a link from their domain and key.",
requestParams: {
- query: z
- .object({
- workspaceId: z
- .string()
- .describe("The ID of the workspace the link belongs to."),
- })
- .merge(getLinkInfoQuerySchema),
+ query: requestParamsSchema.merge(getLinkInfoQuerySchema),
},
responses: {
"200": {
diff --git a/apps/web/lib/openapi/links/get-links-count.ts b/apps/web/lib/openapi/links/get-links-count.ts
index ac1d3a5376..f177a26ee6 100644
--- a/apps/web/lib/openapi/links/get-links-count.ts
+++ b/apps/web/lib/openapi/links/get-links-count.ts
@@ -2,6 +2,7 @@ import { openApiErrorResponses } from "@/lib/openapi/responses";
import z from "@/lib/zod";
import { getLinksCountQuerySchema } from "@/lib/zod/schemas/links";
import { ZodOpenApiOperationObject } from "zod-openapi";
+import { requestParamsSchema } from "../request";
export const getLinksCount: ZodOpenApiOperationObject = {
operationId: "getLinksCount",
@@ -10,13 +11,7 @@ export const getLinksCount: ZodOpenApiOperationObject = {
description:
"Retrieve the number of links for the authenticated workspace. The provided query parameters allow filtering the returned links.",
requestParams: {
- query: z
- .object({
- workspaceId: z
- .string()
- .describe("The ID of the workspace the link belongs to."),
- })
- .merge(getLinksCountQuerySchema),
+ query: requestParamsSchema.merge(getLinksCountQuerySchema),
},
responses: {
"200": {
diff --git a/apps/web/lib/openapi/links/get-links.ts b/apps/web/lib/openapi/links/get-links.ts
index ce36582050..5ca19668de 100644
--- a/apps/web/lib/openapi/links/get-links.ts
+++ b/apps/web/lib/openapi/links/get-links.ts
@@ -2,6 +2,7 @@ import { openApiErrorResponses } from "@/lib/openapi/responses";
import z from "@/lib/zod";
import { getLinksQuerySchema, LinkSchema } from "@/lib/zod/schemas/links";
import { ZodOpenApiOperationObject } from "zod-openapi";
+import { requestParamsSchema } from "../request";
export const getLinks: ZodOpenApiOperationObject = {
operationId: "getLinks",
@@ -10,13 +11,7 @@ export const getLinks: ZodOpenApiOperationObject = {
description:
"Retrieve a list of links for the authenticated workspace. The list will be paginated and the provided query parameters allow filtering the returned links.",
requestParams: {
- query: z
- .object({
- workspaceId: z
- .string()
- .describe("The ID of the workspace the link belongs to."),
- })
- .merge(getLinksQuerySchema),
+ query: requestParamsSchema.merge(getLinksQuerySchema),
},
responses: {
"200": {
diff --git a/apps/web/lib/openapi/request.ts b/apps/web/lib/openapi/request.ts
new file mode 100644
index 0000000000..8975e2107a
--- /dev/null
+++ b/apps/web/lib/openapi/request.ts
@@ -0,0 +1,12 @@
+import z from "../zod";
+
+export const requestParamsSchema = z.object({
+ workspaceId: z.string().describe("The ID of the workspace."),
+ projectSlug: z
+ .string()
+ .optional()
+ .describe(
+ "[DEPRECATED] (use `workspaceId` instead) The slug of the project.",
+ )
+ .openapi({ deprecated: true }),
+});
diff --git a/apps/web/lib/openapi/tags/create-tag.ts b/apps/web/lib/openapi/tags/create-tag.ts
index 8d51787ea3..a48270e7ca 100644
--- a/apps/web/lib/openapi/tags/create-tag.ts
+++ b/apps/web/lib/openapi/tags/create-tag.ts
@@ -1,8 +1,7 @@
-import { ZodOpenApiOperationObject } from "zod-openapi";
-
import { openApiErrorResponses } from "@/lib/openapi/responses";
-import z from "@/lib/zod";
import { createTagBodySchema, TagSchema } from "@/lib/zod/schemas/tags";
+import { ZodOpenApiOperationObject } from "zod-openapi";
+import { requestParamsSchema } from "../request";
export const createTag: ZodOpenApiOperationObject = {
operationId: "createTag",
@@ -10,11 +9,7 @@ export const createTag: ZodOpenApiOperationObject = {
summary: "Create a new tag",
description: "Create a new tag for the authenticated workspace.",
requestParams: {
- query: z.object({
- workspaceId: z
- .string()
- .describe("The ID of the workspace to create the tag for."),
- }),
+ query: requestParamsSchema,
},
requestBody: {
content: {
diff --git a/apps/web/lib/openapi/tags/get-tags.ts b/apps/web/lib/openapi/tags/get-tags.ts
index 4b644f10ae..138bc55c58 100644
--- a/apps/web/lib/openapi/tags/get-tags.ts
+++ b/apps/web/lib/openapi/tags/get-tags.ts
@@ -1,8 +1,8 @@
-import { ZodOpenApiOperationObject } from "zod-openapi";
-
import { openApiErrorResponses } from "@/lib/openapi/responses";
import z from "@/lib/zod";
import { TagSchema } from "@/lib/zod/schemas/tags";
+import { ZodOpenApiOperationObject } from "zod-openapi";
+import { requestParamsSchema } from "../request";
export const getTags: ZodOpenApiOperationObject = {
operationId: "getTags",
@@ -10,11 +10,7 @@ export const getTags: ZodOpenApiOperationObject = {
summary: "Retrieve a list of tags",
description: "Retrieve a list of tags for the authenticated workspace.",
requestParams: {
- query: z.object({
- workspaceId: z
- .string()
- .describe("The ID of the workspace to retrieve the tags for."),
- }),
+ query: requestParamsSchema,
},
responses: {
"200": {
diff --git a/apps/web/lib/openapi/workspaces/get-workspace-info.ts b/apps/web/lib/openapi/workspaces/get-workspace-info.ts
index c599a533df..894a6af473 100644
--- a/apps/web/lib/openapi/workspaces/get-workspace-info.ts
+++ b/apps/web/lib/openapi/workspaces/get-workspace-info.ts
@@ -1,8 +1,7 @@
-import { ZodOpenApiOperationObject } from "zod-openapi";
-
import { openApiErrorResponses } from "@/lib/openapi/responses";
import z from "@/lib/zod";
import { WorkspaceSchema } from "@/lib/zod/schemas/workspaces";
+import { ZodOpenApiOperationObject } from "zod-openapi";
export const getWorkspaceInfo: ZodOpenApiOperationObject = {
operationId: "getWorkspace",
diff --git a/apps/web/lib/openapi/workspaces/get-workspaces.ts b/apps/web/lib/openapi/workspaces/get-workspaces.ts
index ca43f58b7e..bb1a011e61 100644
--- a/apps/web/lib/openapi/workspaces/get-workspaces.ts
+++ b/apps/web/lib/openapi/workspaces/get-workspaces.ts
@@ -1,8 +1,7 @@
-import { ZodOpenApiOperationObject } from "zod-openapi";
-
import { openApiErrorResponses } from "@/lib/openapi/responses";
import z from "@/lib/zod";
import { WorkspaceSchema } from "@/lib/zod/schemas/workspaces";
+import { ZodOpenApiOperationObject } from "zod-openapi";
export const getWorkspaces: ZodOpenApiOperationObject = {
operationId: "getWorkspaces",
diff --git a/apps/web/lib/zod/index.ts b/apps/web/lib/zod/index.ts
index 66105b0c43..e1c59a9f66 100644
--- a/apps/web/lib/zod/index.ts
+++ b/apps/web/lib/zod/index.ts
@@ -18,4 +18,4 @@ export const workspaceIdSchema = z.object({
.string()
.min(1, "Workspace ID is required.")
.describe("The ID of the workspace the link belongs to."),
-});
+});
\ No newline at end of file