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.

add pagination to the SDK

Kiran K1d423163c622
diff --git a/apps/web/lib/openapi/domains/list-domains.ts b/apps/web/lib/openapi/domains/list-domains.ts
index 8ba88e11c7..9a4c8233e9 100644
--- a/apps/web/lib/openapi/domains/list-domains.ts
+++ b/apps/web/lib/openapi/domains/list-domains.ts
@@ -6,6 +6,19 @@ import { ZodOpenApiOperationObject } from "zod-openapi";
export const listDomains: ZodOpenApiOperationObject = {
operationId: "listDomains",
"x-speakeasy-name-override": "list",
+ "x-speakeasy-pagination": {
+ type: "offsetLimit",
+ inputs: [
+ {
+ name: "page",
+ in: "parameters",
+ type: "page",
+ },
+ ],
+ outputs: {
+ results: "$",
+ },
+ },
summary: "Retrieve a list of domains",
description:
"Retrieve a list of domains associated with the authenticated workspace.",
diff --git a/apps/web/lib/openapi/links/get-links.ts b/apps/web/lib/openapi/links/get-links.ts
index 6977c45d97..7d1e065675 100644
--- a/apps/web/lib/openapi/links/get-links.ts
+++ b/apps/web/lib/openapi/links/get-links.ts
@@ -6,6 +6,19 @@ import { ZodOpenApiOperationObject } from "zod-openapi";
export const getLinks: ZodOpenApiOperationObject = {
operationId: "getLinks",
"x-speakeasy-name-override": "list",
+ "x-speakeasy-pagination": {
+ type: "offsetLimit",
+ inputs: [
+ {
+ name: "page",
+ in: "parameters",
+ type: "page",
+ },
+ ],
+ outputs: {
+ results: "$",
+ },
+ },
summary: "Retrieve a list of links",
description:
"Retrieve a paginated list of links for the authenticated workspace.",