From 097537712681c0bf0c6cdc75887875afbf5aff83 Mon Sep 17 00:00:00 2001 From: Julius Marminge <51714798+juliusmarminge@users.noreply.github.com> Date: Fri, 11 Sep 2026 13:48:36 -0700 Subject: [PATCH] fix(client-runtime): typecheck device hub ticket request on main #10677 and #11029 merged in succession without a textual conflict, but #11029 changed executeAuthenticatedEnvironmentHttpRequest to require a group and hand back a group-scoped client, while #10677's new deviceHubAccess.ts still called the full-API client. Pass the auth group and call webSocketTicket on the group client. Co-Authored-By: Claude Fable 5 --- packages/client-runtime/src/state/deviceHubAccess.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/client-runtime/src/state/deviceHubAccess.ts b/packages/client-runtime/src/state/deviceHubAccess.ts index 328dea83ce7a..4c87aa538ac1 100644 --- a/packages/client-runtime/src/state/deviceHubAccess.ts +++ b/packages/client-runtime/src/state/deviceHubAccess.ts @@ -50,10 +50,11 @@ export const resolveDeviceHubAccess = Effect.fn("clientRuntime.state.resolveDevi prepared: input.prepared, signer, remoteAuthorization, + group: "auth", method: "POST", url: (httpBaseUrl) => environmentEndpointUrl(httpBaseUrl, "/api/auth/websocket-ticket"), timeoutMs: TICKET_TIMEOUT_MS, - request: ({ client, headers }) => client.auth.webSocketTicket({ headers }), + request: ({ client, headers }) => client.webSocketTicket({ headers }), }); return { httpBase,