langgraph-api 0.0.12__py3-none-any.whl → 0.0.13__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.
@@ -92,12 +92,23 @@ async def handle_event(
92
92
  handler = _get_handler(auth, ctx)
93
93
  if not handler:
94
94
  return
95
-
96
- result = await handler(ctx=ctx, value=value)
95
+ try:
96
+ result = await handler(ctx=ctx, value=value)
97
+ except Auth.exceptions.HTTPException as e:
98
+ raise HTTPException(
99
+ status_code=e.status_code,
100
+ detail=e.detail,
101
+ headers=dict(e.headers) if e.headers else None,
102
+ ) from e
103
+ except AssertionError as e:
104
+ raise HTTPException(
105
+ status_code=403,
106
+ detail=str(e),
107
+ ) from e
97
108
 
98
109
  if result in (None, True):
99
110
  return
100
- if result is True:
111
+ if result is False:
101
112
  raise HTTPException(403, "Forbidden")
102
113
 
103
114
  if not isinstance(result, dict):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: langgraph-api
3
- Version: 0.0.12
3
+ Version: 0.0.13
4
4
  Summary:
5
5
  License: Elastic-2.0
6
6
  Author: Nuno Campos
@@ -9,7 +9,7 @@ langgraph_api/api/store.py,sha256=y7VIejpsE7rpPF-tiMGBqqBwWPZ1wb3o48th6NUvb5I,38
9
9
  langgraph_api/api/threads.py,sha256=taU61XPcCEhBPCYPZcMDsgVDwwWUWJs8p-PrXFXWY48,8661
10
10
  langgraph_api/asyncio.py,sha256=XiFEllu-Kg4zAO084npHPYOPnLQRire3V75XrVQYMxE,6023
11
11
  langgraph_api/auth/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
- langgraph_api/auth/custom.py,sha256=REeSRhW8_1HFNrgQ5eGwLjOZpuqZZsoFc1m80TscjSo,20159
12
+ langgraph_api/auth/custom.py,sha256=_BlII18X8ji_t8qA9FIUq_ip99dMQGkNscjsuEiLHus,20527
13
13
  langgraph_api/auth/langsmith/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
14
  langgraph_api/auth/langsmith/backend.py,sha256=InScaL-HYCnxYEauhxU198gRZV9pJn9SzzBoR9Edn7g,2654
15
15
  langgraph_api/auth/langsmith/client.py,sha256=eKchvAom7hdkUXauD8vHNceBDDUijrFgdTV8bKd7x4Q,3998
@@ -81,8 +81,8 @@ langgraph_storage/store.py,sha256=D-p3cWc_umamkKp-6Cz3cAriSACpvM5nxUIvND6PuxE,27
81
81
  langgraph_storage/ttl_dict.py,sha256=FlpEY8EANeXWKo_G5nmIotPquABZGyIJyk6HD9u6vqY,1533
82
82
  logging.json,sha256=3RNjSADZmDq38eHePMm1CbP6qZ71AmpBtLwCmKU9Zgo,379
83
83
  openapi.json,sha256=gh6FxpyQqspAuQQH3O22qqGW5owtFj45gyR15QAcS9k,124729
84
- langgraph_api-0.0.12.dist-info/LICENSE,sha256=ZPwVR73Biwm3sK6vR54djCrhaRiM4cAD2zvOQZV8Xis,3859
85
- langgraph_api-0.0.12.dist-info/METADATA,sha256=abjFOn2Zl5wvBIx7VdMgRqWNxYa4wczz_4xc_8B84z8,4041
86
- langgraph_api-0.0.12.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
87
- langgraph_api-0.0.12.dist-info/entry_points.txt,sha256=3EYLgj89DfzqJHHYGxPH4A_fEtClvlRbWRUHaXO7hj4,77
88
- langgraph_api-0.0.12.dist-info/RECORD,,
84
+ langgraph_api-0.0.13.dist-info/LICENSE,sha256=ZPwVR73Biwm3sK6vR54djCrhaRiM4cAD2zvOQZV8Xis,3859
85
+ langgraph_api-0.0.13.dist-info/METADATA,sha256=F_D67LIP0IP8jFVJ5wUwieyIqFuAP_mtrDNe8uZS8Rs,4041
86
+ langgraph_api-0.0.13.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
87
+ langgraph_api-0.0.13.dist-info/entry_points.txt,sha256=3EYLgj89DfzqJHHYGxPH4A_fEtClvlRbWRUHaXO7hj4,77
88
+ langgraph_api-0.0.13.dist-info/RECORD,,