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", 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, }