LibreChat/api/server/routes
Danny Avila a2fc7d312a
🏗️ refactor: Extract DB layers to data-schemas for shared use (#7650)
* refactor: move model definitions and database-related methods to packages/data-schemas

* ci: update tests due to new DB structure

fix: disable mocking `librechat-data-provider`

feat: Add schema exports to data-schemas package

- Introduced a new schema module that exports various schemas including action, agent, and user schemas.
- Updated index.ts to include the new schema exports for better modularity and organization.

ci: fix appleStrategy tests

fix: Agent.spec.js

ci: refactor handleTools tests to use MongoMemoryServer for in-memory database

fix: getLogStores imports

ci: update banViolation tests to use MongoMemoryServer and improve session mocking

test: refactor samlStrategy tests to improve mock configurations and user handling

ci: fix crypto mock in handleText tests for improved accuracy

ci: refactor spendTokens tests to improve model imports and setup

ci: refactor Message model tests to use MongoMemoryServer and improve database interactions

* refactor: streamline IMessage interface and move feedback properties to types/message.ts

* refactor: use exported initializeRoles from `data-schemas`, remove api workspace version (this serves as an example of future migrations that still need to happen)

* refactor: update model imports to use destructuring from `~/db/models` for consistency and clarity

* refactor: remove unused mongoose imports from model files for cleaner code

* refactor: remove unused mongoose imports from Share, Prompt, and Transaction model files for cleaner code

* refactor: remove unused import in Transaction model for cleaner code

* ci: update deploy workflow to reference new Docker Dev Branch Images Build and add new workflow for building Docker images on dev branch

* chore: cleanup imports
2025-05-30 22:18:13 -04:00
..
__tests__ 🔑 feat: SAML authentication (#6169) 2025-05-29 11:00:58 -04:00
agents 🔧 fix: Agent Versioning with Action Hashing and OAuth Redirect (#7627) 2025-05-29 10:30:35 -04:00
ask 🤖 refactor: Improve Agents Memory Usage, Bump Keyv, Grok 3 (#6850) 2025-04-12 18:46:36 -04:00
assistants 🤖 refactor: Improve Agents Memory Usage, Bump Keyv, Grok 3 (#6850) 2025-04-12 18:46:36 -04:00
bedrock 🤖 refactor: Improve Agents Memory Usage, Bump Keyv, Grok 3 (#6850) 2025-04-12 18:46:36 -04:00
edit 🤖 refactor: Improve Agents Memory Usage, Bump Keyv, Grok 3 (#6850) 2025-04-12 18:46:36 -04:00
files 🔧 refactor: Centralize Default Agent Capabilities and Better Logging (#7598) 2025-05-27 15:48:43 -04:00
types WIP: Update UI to match Official Style; Vision and Assistants 👷🏽 (#1190) 2023-11-16 10:42:24 -05:00
actions.js 🔧 fix: Keyv and Proxy Issues, and More Memory Optimizations (#6867) 2025-04-13 23:01:55 -04:00
auth.js 🪙 feat: Sync Balance Config on Login (#6671) 2025-04-01 21:19:42 -04:00
balance.js feat: Accurate Token Usage Tracking & Optional Balance (#1018) 2023-10-05 18:34:10 -04:00
banner.js 🚀 feat: Banner (#3952) 2024-09-11 09:34:25 -04:00
categories.js 🗨️ feat: Prompts (#3131) 2024-06-20 20:24:32 -04:00
config.js 🔑 feat: SAML authentication (#6169) 2025-05-29 11:00:58 -04:00
convos.js 🧩 feat: Web Search Config Validations & Clipboard Citation Processing (#7530) 2025-05-24 10:23:17 -04:00
endpoints.js refactor: Speed up Config fetching and Setup Config Groundwork 👷🚧 (#1297) 2023-12-06 19:36:57 -05:00
index.js 🔍 refactor: Search & Message Retrieval (#6903) 2025-04-16 21:07:43 -04:00
keys.js refactor: Encrypt & Expire User Provided Keys, feat: Rate Limiting (#874) 2023-09-06 10:46:27 -04:00
messages.js 🏗️ refactor: Extract DB layers to data-schemas for shared use (#7650) 2025-05-30 22:18:13 -04:00
models.js 🛠️ refactor: Model Loading and Custom Endpoint Error Handling (#1849) 2024-02-20 12:57:58 -05:00
oauth.js 🔑 feat: SAML authentication (#6169) 2025-05-29 11:00:58 -04:00
plugins.js feat(GPT/Anthropic): Continue Regenerating & Generation Buttons (#808) 2023-08-17 12:50:05 -04:00
presets.js 🛡️ : Security Enhancements (#1681) 2024-01-30 14:34:02 -05:00
prompts.js 🐛 fix: Update deletePromptController to include user role in query (#5488) 2025-01-26 19:03:12 -05:00
roles.js 🪺 fix: Update Role Handling due to New Schema Shape (#6774) 2025-04-07 14:48:11 -04:00
search.js 🔃 refactor: Streamline Navigation, Message Loading UX (#7118) 2025-04-28 18:18:13 -04:00
share.js 🔗 feat: Enhance Share Functionality, Optimize DataTable & Fix Critical Bugs (#5220) 2025-01-21 09:31:05 -05:00
static.js feat: Static File Caching (#3455) 2024-08-04 21:17:59 -04:00
tags.js 🔖 fix: URI Encoding for Bookmarks (#4172) 2024-09-21 09:06:02 -04:00
tokenizer.js 🛡️ : Security Enhancements (#1681) 2024-01-30 14:34:02 -05:00
user.js ⚖️ feat: Terms and Conditions Dialog (#3712) 2024-08-31 16:08:04 -04:00