@langchain/langgraph-api 0.0.68 → 0.0.69
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 +7 -0
- package/dist/auth/index.d.mts +1 -1
- package/dist/auth/index.mjs +12 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
package/dist/auth/index.d.mts
CHANGED
|
@@ -3,7 +3,7 @@ export declare const isAuthRegistered: () => boolean;
|
|
|
3
3
|
export declare const isStudioAuthDisabled: () => boolean;
|
|
4
4
|
export type AuthFilters = Record<string, string | {
|
|
5
5
|
$eq?: string;
|
|
6
|
-
$contains?: string;
|
|
6
|
+
$contains?: string | string[];
|
|
7
7
|
}> | undefined;
|
|
8
8
|
export interface AuthContext {
|
|
9
9
|
user: {
|
package/dist/auth/index.mjs
CHANGED
|
@@ -138,10 +138,20 @@ export function isAuthMatching(metadata, filters) {
|
|
|
138
138
|
return false;
|
|
139
139
|
}
|
|
140
140
|
else if (value.$contains) {
|
|
141
|
-
if (!Array.isArray(metadata?.[key])
|
|
142
|
-
!metadata?.[key].includes(value.$contains)) {
|
|
141
|
+
if (!Array.isArray(metadata?.[key])) {
|
|
143
142
|
return false;
|
|
144
143
|
}
|
|
144
|
+
if (Array.isArray(value.$contains)) {
|
|
145
|
+
// Match Postgres list containment semantics (at the top level).
|
|
146
|
+
if (!value.$contains.every((v) => (metadata?.[key]).includes(v))) {
|
|
147
|
+
return false;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
else {
|
|
151
|
+
if (!metadata?.[key].includes(value.$contains)) {
|
|
152
|
+
return false;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
145
155
|
}
|
|
146
156
|
}
|
|
147
157
|
else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@langchain/langgraph-api",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.69",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": "^18.19.0 || >=20.16.0"
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@babel/code-frame": "^7.26.2",
|
|
65
65
|
"@hono/node-server": "^1.12.0",
|
|
66
66
|
"@hono/zod-validator": "^0.2.2",
|
|
67
|
-
"@langchain/langgraph-ui": "0.0.
|
|
67
|
+
"@langchain/langgraph-ui": "0.0.69",
|
|
68
68
|
"@types/json-schema": "^7.0.15",
|
|
69
69
|
"@typescript/vfs": "^1.6.0",
|
|
70
70
|
"dedent": "^1.5.3",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"@langchain/core": "^0.3.59",
|
|
99
99
|
"@langchain/langgraph": "0.4.9",
|
|
100
100
|
"@langchain/langgraph-checkpoint": "0.1.1",
|
|
101
|
-
"@langchain/langgraph-sdk": "0.1.
|
|
101
|
+
"@langchain/langgraph-sdk": "0.1.7",
|
|
102
102
|
"@types/babel__code-frame": "^7.0.6",
|
|
103
103
|
"@types/node": "^18.15.11",
|
|
104
104
|
"@types/react": "^19.0.8",
|