@langchain/langgraph-sdk 0.0.95 → 0.0.97

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @langchain/langgraph-sdk
2
2
 
3
+ ## 0.0.97
4
+
5
+ ### Patch Changes
6
+
7
+ - ac7b067: fix(sdk): use `kind` when checking for Studio user
8
+
9
+ ## 0.0.96
10
+
11
+ ### Patch Changes
12
+
13
+ - 53b8c30: fix(sdk): `runs.join()` returns the thread values
14
+
3
15
  ## 0.0.95
4
16
 
5
17
  ### Patch Changes
@@ -39,6 +39,8 @@ exports.Auth = Auth;
39
39
  * @returns True if the user is a studio user, false otherwise
40
40
  */
41
41
  function isStudioUser(user) {
42
+ if ("kind" in user && user.kind === "StudioUser")
43
+ return true;
42
44
  return user.identity === "langgraph-studio-user";
43
45
  }
44
46
  var error_js_1 = require("./error.cjs");
@@ -34,6 +34,8 @@ export class Auth {
34
34
  * @returns True if the user is a studio user, false otherwise
35
35
  */
36
36
  export function isStudioUser(user) {
37
+ if ("kind" in user && user.kind === "StudioUser")
38
+ return true;
37
39
  return user.identity === "langgraph-studio-user";
38
40
  }
39
41
  export { HTTPException } from "./error.js";
package/dist/client.d.ts CHANGED
@@ -409,7 +409,7 @@ export declare class RunsClient<TStateType = DefaultValues, TUpdateType = TState
409
409
  */
410
410
  join(threadId: string, runId: string, options?: {
411
411
  signal?: AbortSignal;
412
- }): Promise<void>;
412
+ }): Promise<TStateType>;
413
413
  /**
414
414
  * Stream output from a run in real-time, until the run is done.
415
415
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/langgraph-sdk",
3
- "version": "0.0.95",
3
+ "version": "0.0.97",
4
4
  "description": "Client library for interacting with the LangGraph API",
5
5
  "type": "module",
6
6
  "scripts": {