langgraph-api 0.4.44__py3-none-any.whl → 0.4.46__py3-none-any.whl

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.

Potentially problematic release.


This version of langgraph-api might be problematic. Click here for more details.

langgraph_api/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.4.44"
1
+ __version__ = "0.4.46"
@@ -25,7 +25,7 @@
25
25
  "typescript": "^5.5.4",
26
26
  "undici": "^6.21.2",
27
27
  "uuid": "^10.0.0",
28
- "vite": "^6.3.6",
28
+ "vite": "^6.4.1",
29
29
  "winston": "^3.17.0",
30
30
  "zod": "^3.25.32"
31
31
  },
@@ -1623,10 +1623,10 @@ vite-node@3.1.4:
1623
1623
  pathe "^2.0.3"
1624
1624
  vite "^5.0.0 || ^6.0.0"
1625
1625
 
1626
- "vite@^5.0.0 || ^6.0.0", vite@^6.1.6, vite@^6.3.6:
1627
- version "6.3.6"
1628
- resolved "https://registry.yarnpkg.com/vite/-/vite-6.3.6.tgz#69a976b64930750d40219fbc68c5200874d315c1"
1629
- integrity sha512-0msEVHJEScQbhkbVTb/4iHZdJ6SXp/AvxL2sjwYQFfBqleHtnCqv1J3sa9zbWz/6kW1m9Tfzn92vW+kZ1WV6QA==
1626
+ "vite@^5.0.0 || ^6.0.0", vite@^6.1.6, vite@^6.4.1:
1627
+ version "6.4.1"
1628
+ resolved "https://registry.yarnpkg.com/vite/-/vite-6.4.1.tgz#afbe14518cdd6887e240a4b0221ab6d0ce733f96"
1629
+ integrity sha512-+Oxm7q9hDoLMyJOYfUYBuHQo+dkAloi33apOPP56pzj+vsdJDzr+j1NISE5pyaAuKL4A3UD34qd0lx5+kfKp2g==
1630
1630
  dependencies:
1631
1631
  esbuild "^0.25.0"
1632
1632
  fdir "^6.4.4"
langgraph_api/metadata.py CHANGED
@@ -61,7 +61,7 @@ NODE_COUNTER = 0
61
61
  FROM_TIMESTAMP = datetime.now(UTC).isoformat()
62
62
 
63
63
  # Beacon endpoint for license key submissions
64
- BEACON_ENDPOINT = "https://api.smith.langchain.com/v1/metadata/submit"
64
+ BEACON_ENDPOINT = "https://beacon.langchain.com/v1/beacon/metadata/submit"
65
65
 
66
66
  # LangChain auth endpoint for API key submissions
67
67
  LANGCHAIN_METADATA_ENDPOINT = None
langgraph_api/server.py CHANGED
@@ -151,6 +151,9 @@ custom_middleware = (
151
151
  auth_before_custom_middleware = (
152
152
  config.HTTP_CONFIG and config.HTTP_CONFIG.get("middleware_order") == "auth_first"
153
153
  )
154
+ enable_auth_on_custom_routes = config.HTTP_CONFIG and config.HTTP_CONFIG.get(
155
+ "enable_custom_route_auth"
156
+ )
154
157
  # Custom middleware to be applied at the route/mount level, not globally (app level).
155
158
  route_level_custom_middleware = (
156
159
  custom_middleware if auth_before_custom_middleware else []
@@ -186,11 +189,22 @@ if user_router:
186
189
  # custom middleware before *or* after authentication middleware,
187
190
  # depending on the `middleware_order` config.
188
191
  user_app = apply_middleware(
189
- routes=app.routes, middleware=route_level_custom_middleware
192
+ routes=app.routes,
193
+ middleware=(
194
+ middleware_for_protected_routes if enable_auth_on_custom_routes else []
195
+ )
196
+ + route_level_custom_middleware,
190
197
  )
191
198
  app.user_middleware = global_middleware
192
199
  else:
193
- user_app = app.routes
200
+ user_app = (
201
+ apply_middleware(
202
+ routes=app.routes,
203
+ middleware=middleware_for_protected_routes,
204
+ )
205
+ if enable_auth_on_custom_routes
206
+ else app.routes
207
+ )
194
208
  app.user_middleware = custom_middleware + global_middleware
195
209
 
196
210
  app.router.routes = (
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: langgraph-api
3
- Version: 0.4.44
3
+ Version: 0.4.46
4
4
  Author-email: Nuno Campos <nuno@langchain.dev>, Will Fu-Hinthorn <will@langchain.dev>
5
5
  License: Elastic-2.0
6
6
  License-File: LICENSE
@@ -1,4 +1,4 @@
1
- langgraph_api/__init__.py,sha256=HQX172g10p9WD42XJIB9IjT_Vkl_Ly1JUl9DZv5XamM,23
1
+ langgraph_api/__init__.py,sha256=RBHbkZYY9arsucptZY4opF-eQHl8XB6Ns-j1hgJBp28,23
2
2
  langgraph_api/asgi_transport.py,sha256=XtiLOu4WWsd-xizagBLzT5xUkxc9ZG9YqwvETBPjBFE,5161
3
3
  langgraph_api/asyncio.py,sha256=FEEkLm_N-15cbElo4vQ309MkDKBZuRqAYV8VJ1DocNw,9860
4
4
  langgraph_api/cli.py,sha256=Yl2GOChDChsoJcYAk8HhkuR1YKTy8rmbYlS5doqWBpk,19671
@@ -13,7 +13,7 @@ langgraph_api/http.py,sha256=fyK-H-0UfNy_BzuVW3aWWGvhRavmGAVMkDwDArryJ_4,5659
13
13
  langgraph_api/http_metrics.py,sha256=vw3UT9uj9qgxQ_DwJq77HGZqh6LHSjyxylWhqkf2jAw,5095
14
14
  langgraph_api/http_metrics_utils.py,sha256=sjxF7SYGTzY0Wz_G0dzatsYNnWr31S6ujej4JmBG2yo,866
15
15
  langgraph_api/logging.py,sha256=o5iVARqtFYKIcRrK2nk1ymcKEiVYKd_dHmhXLF2khFI,6090
16
- langgraph_api/metadata.py,sha256=n_GbdlohRLGQE9KPDzKPAGe6C0eEsvJ-38fzEA8UeTw,8593
16
+ langgraph_api/metadata.py,sha256=Ah5x5TB8O1VAypzDa1UTrsptS1hjy9z-PuNF8WYl3VM,8597
17
17
  langgraph_api/patch.py,sha256=J0MmcfpZG15SUVaVcI0Z4x_c0-0rbbT7Pwh9fDAQOpA,1566
18
18
  langgraph_api/queue_entrypoint.py,sha256=z3ZUBl3CpnMm0KFPqCuGvSohPAmYQbhAdyRizSJSClM,8481
19
19
  langgraph_api/route.py,sha256=EBhELuJ1He-ZYcAnR5YTImcIeDtWthDae5CHELBxPkM,5056
@@ -21,7 +21,7 @@ langgraph_api/schema.py,sha256=spZ_XPT4AMJfw2YatsdnMZZLzgB9Sm3YR8n0SlgGdJ8,8480
21
21
  langgraph_api/self_hosted_logs.py,sha256=9ljOz3KH3O1SwsD7eTKnreyJ80NbeR7nj7SuxBlrmCc,4422
22
22
  langgraph_api/self_hosted_metrics.py,sha256=3FFezxjU0Vs-bsH39f4Dcwn7fporTLHV9REQ3UQ315A,14004
23
23
  langgraph_api/serde.py,sha256=Jkww6ixP5o2YZmnXtM7ihuAYC6YSuNDNPvE-8ILoqVo,5499
24
- langgraph_api/server.py,sha256=h4qeDzcEYF8NFCrTkpL1gsXXFbd7P2JN_wVpmy1Fgwg,9658
24
+ langgraph_api/server.py,sha256=PExNHgem0tY_KkRFiFzj8m8Np6TrP4M0XJsEw6O2SAU,10112
25
25
  langgraph_api/sse.py,sha256=SLdtZmTdh5D8fbWrQjuY9HYLd2dg8Rmi6ZMmFMVc2iE,4204
26
26
  langgraph_api/state.py,sha256=AjkLbUQakIwK7oGzJ8oqubazRsXxG3vDMnRa0s0mzDM,4716
27
27
  langgraph_api/store.py,sha256=NIoNZojs6NbtG3VLBPQEFNttvp7XPkHAfjbQ3gY7aLY,4701
@@ -65,14 +65,14 @@ langgraph_api/js/client.http.mts,sha256=ZnikriJdcRSkBmUTBFMpLB3GKgK4xbiSqtUE-l9n
65
65
  langgraph_api/js/client.mts,sha256=gDvYiW7Qfl4re2YhZ5oNqtuvffnW_Sf7DK5aUbKB3vw,32330
66
66
  langgraph_api/js/errors.py,sha256=Cm1TKWlUCwZReDC5AQ6SgNIVGD27Qov2xcgHyf8-GXo,361
67
67
  langgraph_api/js/global.d.ts,sha256=j4GhgtQSZ5_cHzjSPcHgMJ8tfBThxrH-pUOrrJGteOU,196
68
- langgraph_api/js/package.json,sha256=TLyPB9pZyZ1KQXC08NvbBbf8X5dKAF8WXc5cyjFtWZE,1335
68
+ langgraph_api/js/package.json,sha256=pUKaehPSVNMY3A08GyUpjr-t7FVQ8orp-9pbaiS1OLY,1335
69
69
  langgraph_api/js/remote.py,sha256=gBk273R7esmXg8aR6InxasNFc5E6Qju2bv2DhmmGJyU,38676
70
70
  langgraph_api/js/schema.py,sha256=M4fLtr50O1jck8H1hm_0W4cZOGYGdkrB7riLyCes4oY,438
71
71
  langgraph_api/js/sse.py,sha256=hHkbncnYnXNIbHhAWneGWYkHp4UhhhGB7-MYtDrY264,4141
72
72
  langgraph_api/js/traceblock.mts,sha256=QtGSN5VpzmGqDfbArrGXkMiONY94pMQ5CgzetT_bKYg,761
73
73
  langgraph_api/js/tsconfig.json,sha256=imCYqVnqFpaBoZPx8k1nO4slHIWBFsSlmCYhO73cpBs,341
74
74
  langgraph_api/js/ui.py,sha256=l9regrvKIxLOjH5SIYE2nhr8QCKLK1Q_1pZgxdL71X4,2488
75
- langgraph_api/js/yarn.lock,sha256=FCizZGxfI4SVoeAZWbezvonYBXsuvlWMUHX-1yACFz8,84352
75
+ langgraph_api/js/yarn.lock,sha256=Ag5QPfTsHC5pexEh6ruLb66ExAlguT9shERIKnbnSmU,84352
76
76
  langgraph_api/js/src/graph.mts,sha256=9zTQNdtanI_CFnOwNRoamoCVHHQHGbNlbm91aRxDeOc,2675
77
77
  langgraph_api/js/src/load.hooks.mjs,sha256=xNVHq75W0Lk6MUKl1pQYrx-wtQ8_neiUyI6SO-k0ecM,2235
78
78
  langgraph_api/js/src/preload.mjs,sha256=8m3bYkf9iZLCQzKAYAdU8snxUwAG3dVLwGvAjfGfgIc,959
@@ -110,8 +110,8 @@ langgraph_runtime/store.py,sha256=7mowndlsIroGHv3NpTSOZDJR0lCuaYMBoTnTrewjslw,11
110
110
  LICENSE,sha256=ZPwVR73Biwm3sK6vR54djCrhaRiM4cAD2zvOQZV8Xis,3859
111
111
  logging.json,sha256=3RNjSADZmDq38eHePMm1CbP6qZ71AmpBtLwCmKU9Zgo,379
112
112
  openapi.json,sha256=Oi2tU1b8PsXb-6XNHafQvcZv934vLNQhBNPYXr9e2nU,172620
113
- langgraph_api-0.4.44.dist-info/METADATA,sha256=TM-gvIbIgUXD9vmykCJspniWtUGVs9q-ZZiQQL6mrPE,4156
114
- langgraph_api-0.4.44.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
115
- langgraph_api-0.4.44.dist-info/entry_points.txt,sha256=hGedv8n7cgi41PypMfinwS_HfCwA7xJIfS0jAp8htV8,78
116
- langgraph_api-0.4.44.dist-info/licenses/LICENSE,sha256=ZPwVR73Biwm3sK6vR54djCrhaRiM4cAD2zvOQZV8Xis,3859
117
- langgraph_api-0.4.44.dist-info/RECORD,,
113
+ langgraph_api-0.4.46.dist-info/METADATA,sha256=rgwqpQfC9P8lctPA8hdeBqCoaWfr4MIfv5wh_uKEXwo,4156
114
+ langgraph_api-0.4.46.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
115
+ langgraph_api-0.4.46.dist-info/entry_points.txt,sha256=hGedv8n7cgi41PypMfinwS_HfCwA7xJIfS0jAp8htV8,78
116
+ langgraph_api-0.4.46.dist-info/licenses/LICENSE,sha256=ZPwVR73Biwm3sK6vR54djCrhaRiM4cAD2zvOQZV8Xis,3859
117
+ langgraph_api-0.4.46.dist-info/RECORD,,