From 00b5af95313ba8259a9c5b3abd1385db453ecdb3 Mon Sep 17 00:00:00 2001 From: Evan Sosenko Date: Thu, 10 Jul 2025 09:57:06 -0700 Subject: [PATCH 1/2] fix: Pass clientOptions to all clients --- src/lib/use-seam-client.ts | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/src/lib/use-seam-client.ts b/src/lib/use-seam-client.ts index 34f3c62..b5304c7 100644 --- a/src/lib/use-seam-client.ts +++ b/src/lib/use-seam-client.ts @@ -55,7 +55,10 @@ export function useSeamClient(): { if (client != null) return { client, - endpointClient: SeamHttpEndpoints.fromClient(client.client), + endpointClient: SeamHttpEndpoints.fromClient( + client.client, + clientOptions, + ), clientWithoutWorkspace: null, endpointClientWithoutWorkspace: null, } @@ -68,7 +71,10 @@ export function useSeamClient(): { return { client: seam, - endpointClient: SeamHttpEndpoints.fromClient(seam.client), + endpointClient: SeamHttpEndpoints.fromClient( + seam.client, + clientOptions, + ), clientWithoutWorkspace: null, endpointClientWithoutWorkspace: null, } @@ -83,7 +89,10 @@ export function useSeamClient(): { return { client: seam, - endpointClient: SeamHttpEndpoints.fromClient(seam.client), + endpointClient: SeamHttpEndpoints.fromClient( + seam.client, + clientOptions, + ), clientWithoutWorkspace: null, endpointClientWithoutWorkspace: null, } @@ -91,11 +100,15 @@ export function useSeamClient(): { if (consoleSessionToken != null) { const clientWithoutWorkspace = - SeamHttpWithoutWorkspace.fromConsoleSessionToken(consoleSessionToken) + SeamHttpWithoutWorkspace.fromConsoleSessionToken( + consoleSessionToken, + clientOptions, + ) const endpointClientWithoutWorkspace = SeamHttpEndpointsWithoutWorkspace.fromClient( clientWithoutWorkspace.client, + clientOptions, ) if (workspaceId == null) { @@ -115,7 +128,10 @@ export function useSeamClient(): { return { client: seam, - endpointClient: SeamHttpEndpoints.fromClient(seam.client), + endpointClient: SeamHttpEndpoints.fromClient( + seam.client, + clientOptions, + ), clientWithoutWorkspace, endpointClientWithoutWorkspace, } From 6860a838f226aa7d71fef5665bbb51a5c2d6fd03 Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Thu, 10 Jul 2025 16:57:36 +0000 Subject: [PATCH 2/2] ci: Generate code --- package-lock.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index 91c41eb..df3d619 100644 --- a/package-lock.json +++ b/package-lock.json @@ -51,7 +51,7 @@ "npm": ">=10.1.0" }, "peerDependencies": { - "@seamapi/http": "^1.44.0", + "@seamapi/http": "^1.45.0", "@seamapi/types": "^1.441.1", "@tanstack/react-query": "^5.27.5", "@types/react": "^18.0.0 || ^19.0.0",