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 OpenAPI spec

Steven Tey1fa5063689e1
diff --git a/apps/web/lib/openapi/links/get-links-count.ts b/apps/web/lib/openapi/links/get-links-count.ts
index 94fb1e14cb..ddb173d446 100644
--- a/apps/web/lib/openapi/links/get-links-count.ts
+++ b/apps/web/lib/openapi/links/get-links-count.ts
@@ -7,9 +7,8 @@ import { workspaceParamsSchema } from "../request";
export const getLinksCount: ZodOpenApiOperationObject = {
operationId: "getLinksCount",
"x-speakeasy-name-override": "count",
- summary: "Retrieve the number of links",
- description:
- "Retrieve the number of links for the authenticated workspace. The provided query parameters allow filtering the returned links.",
+ summary: "Retrieve links count",
+ description: "Retrieve the number of links for the authenticated workspace.",
requestParams: {
query: workspaceParamsSchema.merge(getLinksCountQuerySchema),
},
diff --git a/apps/web/lib/openapi/links/get-links.ts b/apps/web/lib/openapi/links/get-links.ts
index 2ab6c50b6d..253945077f 100644
--- a/apps/web/lib/openapi/links/get-links.ts
+++ b/apps/web/lib/openapi/links/get-links.ts
@@ -9,7 +9,7 @@ export const getLinks: ZodOpenApiOperationObject = {
"x-speakeasy-name-override": "list",
summary: "Retrieve a list of links",
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.",
+ "Retrieve a paginated list of links for the authenticated workspace.",
requestParams: {
query: workspaceParamsSchema.merge(getLinksQuerySchema),
},
diff --git a/apps/web/lib/openapi/request.ts b/apps/web/lib/openapi/request.ts
index dd377cdf02..e9fea10c33 100644
--- a/apps/web/lib/openapi/request.ts
+++ b/apps/web/lib/openapi/request.ts
@@ -6,11 +6,4 @@ export const workspaceParamsSchema = z.object({
.optional()
.describe("The ID of the workspace.")
.openapi({ deprecated: true }),
- projectSlug: z
- .string()
- .optional()
- .describe(
- "The slug of the project. This field is deprecated – use `workspaceId` instead.",
- )
- .openapi({ deprecated: true }),
});