From 3628572aea554976abe00019f9bbcdb6232c1112 Mon Sep 17 00:00:00 2001 From: Ruben Talstra Date: Mon, 24 Mar 2025 09:31:41 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20feat:=20Update=20package=20versi?= =?UTF-8?q?on=20to=200.0.6=20and=20add=20Microsoft=20Graph=20client=20depe?= =?UTF-8?q?ndency?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/package.json | 1 + package-lock.json | 30 +++++++++++++++++++++++- packages/data-schemas/package.json | 2 +- packages/data-schemas/src/schema/user.ts | 5 ++++ 4 files changed, 36 insertions(+), 2 deletions(-) diff --git a/api/package.json b/api/package.json index 9a6eb3688d..6ea217036b 100644 --- a/api/package.json +++ b/api/package.json @@ -52,6 +52,7 @@ "@librechat/agents": "^2.3.94", "@librechat/data-schemas": "*", "@waylaidwanderer/fetch-event-source": "^3.0.1", + "@microsoft/microsoft-graph-client": "^3.0.7", "axios": "^1.8.2", "bcryptjs": "^2.4.3", "cohere-ai": "^7.9.1", diff --git a/package-lock.json b/package-lock.json index fcb7d4dc8b..dee45318fc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -67,6 +67,7 @@ "@langchain/textsplitters": "^0.1.0", "@librechat/agents": "^2.3.94", "@librechat/data-schemas": "*", + "@microsoft/microsoft-graph-client": "^3.0.7", "@waylaidwanderer/fetch-event-source": "^3.0.1", "axios": "^1.8.2", "bcryptjs": "^2.4.3", @@ -19129,6 +19130,33 @@ "dev": true, "license": "MIT" }, + "node_modules/@microsoft/microsoft-graph-client": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/@microsoft/microsoft-graph-client/-/microsoft-graph-client-3.0.7.tgz", + "integrity": "sha512-/AazAV/F+HK4LIywF9C+NYHcJo038zEnWkteilcxC1FM/uK/4NVGDKGrxx7nNq1ybspAroRKT4I1FHfxQzxkUw==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.12.5", + "tslib": "^2.2.0" + }, + "engines": { + "node": ">=12.0.0" + }, + "peerDependenciesMeta": { + "@azure/identity": { + "optional": true + }, + "@azure/msal-browser": { + "optional": true + }, + "buffer": { + "optional": true + }, + "stream-browserify": { + "optional": true + } + } + }, "node_modules/@mistralai/mistralai": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/@mistralai/mistralai/-/mistralai-0.4.0.tgz", @@ -44170,7 +44198,7 @@ }, "packages/data-schemas": { "name": "@librechat/data-schemas", - "version": "0.0.5", + "version": "0.0.6", "license": "MIT", "dependencies": { "mongoose": "^8.12.1" diff --git a/packages/data-schemas/package.json b/packages/data-schemas/package.json index 3add216e47..51f77aa9fe 100644 --- a/packages/data-schemas/package.json +++ b/packages/data-schemas/package.json @@ -1,6 +1,6 @@ { "name": "@librechat/data-schemas", - "version": "0.0.5", + "version": "0.0.6", "description": "Mongoose schemas and models for LibreChat", "type": "module", "main": "dist/index.cjs", diff --git a/packages/data-schemas/src/schema/user.ts b/packages/data-schemas/src/schema/user.ts index eb25b735ab..dd51bdb506 100644 --- a/packages/data-schemas/src/schema/user.ts +++ b/packages/data-schemas/src/schema/user.ts @@ -13,6 +13,7 @@ export interface IUser extends Document { googleId?: string; facebookId?: string; openidId?: string; + customOpenIdData?: Record; ldapId?: string; githubId?: string; discordId?: string; @@ -112,6 +113,10 @@ const User = new Schema( unique: true, sparse: true, }, + customOpenIdData: { + type: Schema.Types.Mixed, + default: undefined, + }, ldapId: { type: String, unique: true,