From a1713f40289e3922c1d2e3da397bf23fdfc98691 Mon Sep 17 00:00:00 2001 From: "Garen J. Torikian" Date: Mon, 1 Jun 2026 15:55:30 -0400 Subject: [PATCH 1/2] fix(connect): Serialize pagination options for auto-pagination MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `listApplications` passed raw camelCase options to `AutoPaginatable`, so `generatePages` sent `organizationId` instead of `organization_id` on re-fetch — the API rejected it with a 422. Same regression as #1459, reintroduced when the Connect module was generated. Fixes #1600 --- src/connect/connect.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/connect/connect.ts b/src/connect/connect.ts index dd5c83d31..3258a42c6 100644 --- a/src/connect/connect.ts +++ b/src/connect/connect.ts @@ -107,7 +107,6 @@ export class Connect { async listApplications( options?: ListApplicationsOptions, ): Promise> { - const paginationOptions = options; return new AutoPaginatable( await fetchAndDeserialize( this.workos, @@ -122,7 +121,7 @@ export class Connect { deserializeConnectApplication, params, ), - paginationOptions, + options ? serializeListApplicationsOptions(options) : undefined, ); } From c205c69bb9ab8967a43520cbdb280f50e50ad053 Mon Sep 17 00:00:00 2001 From: "Garen J. Torikian" Date: Mon, 1 Jun 2026 16:36:16 -0400 Subject: [PATCH 2/2] appease greptile --- src/connect/connect.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connect/connect.ts b/src/connect/connect.ts index 3258a42c6..8c9f1c6c2 100644 --- a/src/connect/connect.ts +++ b/src/connect/connect.ts @@ -106,7 +106,7 @@ export class Connect { */ async listApplications( options?: ListApplicationsOptions, - ): Promise> { + ): Promise> { return new AutoPaginatable( await fetchAndDeserialize( this.workos,