Add user_id in TS OSS SDK (#2514)

This commit is contained in:
Saket Aryan
2025-04-09 22:54:56 +05:30
committed by GitHub
parent f4d8647264
commit 309c8c18a6
14 changed files with 819 additions and 166 deletions

187
mem0-ts/pnpm-lock.yaml generated
View File

@@ -10,6 +10,9 @@ importers:
"@anthropic-ai/sdk":
specifier: 0.18.0
version: 0.18.0(encoding@0.1.13)
"@google/genai":
specifier: ^0.7.0
version: 0.7.0(encoding@0.1.13)
"@qdrant/js-client-rest":
specifier: 1.13.0
version: 1.13.0(typescript@5.5.4)
@@ -615,6 +618,13 @@ packages:
integrity: sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw==,
}
"@google/genai@0.7.0":
resolution:
{
integrity: sha512-r+Fwj/emnXZN5R+4JCxDXboY4AGTmTn7+Wnori5dgyJiStP0P82f9YYL0CVsCnDIumNY2i0UIcZ1zGZdtHJ34w==,
}
engines: { node: ">=18.0.0" }
"@isaacs/cliui@8.0.2":
resolution:
{
@@ -1313,6 +1323,13 @@ packages:
}
engines: { node: ">= 6.0.0" }
agent-base@7.1.3:
resolution:
{
integrity: sha512-jRR5wdylq8CkOe6hei19GGZnxM6rBGwFl3Bg0YItGDimvjGtAvdZk4Pu6Cl4u4Igsws4a1fd1Vq3ezrhn4KmFw==,
}
engines: { node: ">= 14" }
agentkeepalive@4.6.0:
resolution:
{
@@ -1484,6 +1501,12 @@ packages:
integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==,
}
bignumber.js@9.2.0:
resolution:
{
integrity: sha512-JocpCSOixzy5XFJi2ub6IMmV/G9i8Lrm2lZvwBv9xPdglmZM0ufDVBbjbrfU/zuLvBfD7Bv2eYxz9i+OHTgkew==,
}
binary-extensions@2.3.0:
resolution:
{
@@ -1543,6 +1566,12 @@ packages:
integrity: sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==,
}
buffer-equal-constant-time@1.0.1:
resolution:
{
integrity: sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==,
}
buffer-from@1.1.2:
resolution:
{
@@ -1916,6 +1945,12 @@ packages:
integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==,
}
ecdsa-sig-formatter@1.0.11:
resolution:
{
integrity: sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==,
}
ejs@3.1.10:
resolution:
{
@@ -2073,6 +2108,12 @@ packages:
}
engines: { node: ^14.15.0 || ^16.10.0 || >=18.0.0 }
extend@3.0.2:
resolution:
{
integrity: sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==,
}
fast-glob@3.3.3:
resolution:
{
@@ -2222,6 +2263,20 @@ packages:
engines: { node: ^12.13.0 || ^14.15.0 || >=16.0.0 }
deprecated: This package is no longer supported.
gaxios@6.7.1:
resolution:
{
integrity: sha512-LDODD4TMYx7XXdpwxAVRAIAuB0bzv0s+ywFonY46k126qzQHT9ygyoa9tncmOiQmmDrik65UYsEkv3lbfqQ3yQ==,
}
engines: { node: ">=14" }
gcp-metadata@6.1.1:
resolution:
{
integrity: sha512-a4tiq7E0/5fTjxPAaH4jpjkSv/uCaU2p5KC6HVGrvl0cDjA8iBZv4vv1gyzlmK0ZUKqwpOyQMKzZQe3lTit77A==,
}
engines: { node: ">=14" }
generic-pool@3.9.0:
resolution:
{
@@ -2305,6 +2360,20 @@ packages:
}
engines: { node: ">=4" }
google-auth-library@9.15.1:
resolution:
{
integrity: sha512-Jb6Z0+nvECVz+2lzSMt9u98UsoakXxA2HGHMCxh+so3n90XgYWkq5dur19JAJV7ONiJY22yBTyJB1TSkvPq9Ng==,
}
engines: { node: ">=14" }
google-logging-utils@0.0.2:
resolution:
{
integrity: sha512-NEgUnEcBiP5HrPzufUkBzJOD/Sxsco3rLNo1F1TNf7ieU8ryUzBhqba8r756CjLX7rn3fHl6iLEwPYuqpoKgQQ==,
}
engines: { node: ">=14" }
gopd@1.2.0:
resolution:
{
@@ -2324,6 +2393,13 @@ packages:
integrity: sha512-Cdgjh4YoSBE2X4S9sxPGXaAy1dlN4bRtAaDZ3cnq+XsxhhN9WSBeHF64l7LWwuD5ntmw7YC5Vf4Ff1oHCg1LOg==,
}
gtoken@7.1.0:
resolution:
{
integrity: sha512-pCcEwRi+TKpMlxAQObHDQ56KawURgyAf6jtIY046fJ5tIv3zDe/LEIubckAO8fj6JnAxLdmWkUfNyulQ2iKdEw==,
}
engines: { node: ">=14.0.0" }
has-flag@3.0.0:
resolution:
{
@@ -2398,6 +2474,13 @@ packages:
}
engines: { node: ">= 6" }
https-proxy-agent@7.0.6:
resolution:
{
integrity: sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==,
}
engines: { node: ">= 14" }
human-signals@2.1.0:
resolution:
{
@@ -2861,6 +2944,12 @@ packages:
engines: { node: ">=6" }
hasBin: true
json-bigint@1.0.0:
resolution:
{
integrity: sha512-SiPv/8VpZuWbvLSMtTDU8hEfrZWg/mH/nV/b4o0CYbSxu1UIQPLdwKOCIyLQX+VIPO5vrLX3i8qtqFyhdPSUSQ==,
}
json-parse-even-better-errors@2.3.1:
resolution:
{
@@ -2882,6 +2971,18 @@ packages:
engines: { node: ">=6" }
hasBin: true
jwa@2.0.0:
resolution:
{
integrity: sha512-jrZ2Qx916EA+fq9cEAeCROWPTfCwi1IVHqT2tapuqLEVVDKFDENFw1oL+MwrTvH6msKxsd1YTDVw6uKEcsrLEA==,
}
jws@4.0.0:
resolution:
{
integrity: sha512-KDncfTmOZoOMTFG4mBlG0qUIOlc03fmzH+ru6RgYVZhPkyiy/92Owlt/8UEN+a4TXR1FQetfIpJE8ApdvdVxTg==,
}
kleur@3.0.3:
resolution:
{
@@ -4913,6 +5014,16 @@ snapshots:
"@gar/promisify@1.1.3":
optional: true
"@google/genai@0.7.0(encoding@0.1.13)":
dependencies:
google-auth-library: 9.15.1(encoding@0.1.13)
ws: 8.18.1
transitivePeerDependencies:
- bufferutil
- encoding
- supports-color
- utf-8-validate
"@isaacs/cliui@8.0.2":
dependencies:
string-width: 5.1.2
@@ -5406,6 +5517,8 @@ snapshots:
- supports-color
optional: true
agent-base@7.1.3: {}
agentkeepalive@4.6.0:
dependencies:
humanize-ms: 1.2.1
@@ -5527,6 +5640,8 @@ snapshots:
base64-js@1.5.1: {}
bignumber.js@9.2.0: {}
binary-extensions@2.3.0: {}
bindings@1.5.0:
@@ -5567,6 +5682,8 @@ snapshots:
dependencies:
node-int64: 0.4.0
buffer-equal-constant-time@1.0.1: {}
buffer-from@1.1.2: {}
buffer-writer@2.0.0: {}
@@ -5766,6 +5883,10 @@ snapshots:
eastasianwidth@0.2.0: {}
ecdsa-sig-formatter@1.0.11:
dependencies:
safe-buffer: 5.2.1
ejs@3.1.10:
dependencies:
jake: 10.9.2
@@ -5872,6 +5993,8 @@ snapshots:
jest-message-util: 29.7.0
jest-util: 29.7.0
extend@3.0.2: {}
fast-glob@3.3.3:
dependencies:
"@nodelib/fs.stat": 2.0.5
@@ -5962,6 +6085,26 @@ snapshots:
wide-align: 1.1.5
optional: true
gaxios@6.7.1(encoding@0.1.13):
dependencies:
extend: 3.0.2
https-proxy-agent: 7.0.6
is-stream: 2.0.1
node-fetch: 2.7.0(encoding@0.1.13)
uuid: 9.0.1
transitivePeerDependencies:
- encoding
- supports-color
gcp-metadata@6.1.1(encoding@0.1.13):
dependencies:
gaxios: 6.7.1(encoding@0.1.13)
google-logging-utils: 0.0.2
json-bigint: 1.0.0
transitivePeerDependencies:
- encoding
- supports-color
generic-pool@3.9.0: {}
gensync@1.0.0-beta.2: {}
@@ -6016,6 +6159,20 @@ snapshots:
globals@11.12.0: {}
google-auth-library@9.15.1(encoding@0.1.13):
dependencies:
base64-js: 1.5.1
ecdsa-sig-formatter: 1.0.11
gaxios: 6.7.1(encoding@0.1.13)
gcp-metadata: 6.1.1(encoding@0.1.13)
gtoken: 7.1.0(encoding@0.1.13)
jws: 4.0.0
transitivePeerDependencies:
- encoding
- supports-color
google-logging-utils@0.0.2: {}
gopd@1.2.0: {}
graceful-fs@4.2.11: {}
@@ -6034,6 +6191,14 @@ snapshots:
transitivePeerDependencies:
- encoding
gtoken@7.1.0(encoding@0.1.13):
dependencies:
gaxios: 6.7.1(encoding@0.1.13)
jws: 4.0.0
transitivePeerDependencies:
- encoding
- supports-color
has-flag@3.0.0: {}
has-flag@4.0.0: {}
@@ -6077,6 +6242,13 @@ snapshots:
- supports-color
optional: true
https-proxy-agent@7.0.6:
dependencies:
agent-base: 7.1.3
debug: 4.4.0(supports-color@5.5.0)
transitivePeerDependencies:
- supports-color
human-signals@2.1.0: {}
humanize-ms@1.2.1:
@@ -6528,12 +6700,27 @@ snapshots:
jsesc@3.1.0: {}
json-bigint@1.0.0:
dependencies:
bignumber.js: 9.2.0
json-parse-even-better-errors@2.3.1: {}
json-parse-even-better-errors@3.0.2: {}
json5@2.2.3: {}
jwa@2.0.0:
dependencies:
buffer-equal-constant-time: 1.0.1
ecdsa-sig-formatter: 1.0.11
safe-buffer: 5.2.1
jws@4.0.0:
dependencies:
jwa: 2.0.0
safe-buffer: 5.2.1
kleur@3.0.3: {}
kolorist@1.8.0: {}