mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-08-04 14:57:42 +00:00
# Conflicts: # client/src/components/Chat/Messages/Content/ToolCall.tsx # client/src/components/Chat/Messages/Content/__tests__/ToolCall.test.tsx # package-lock.json # packages/api/jest.config.mjs # packages/api/src/mcp/registry/MCPServerInspector.ts # packages/api/src/mcp/tools.ts # packages/data-schemas/src/methods/share.test.ts
136 lines
4.4 KiB
TypeScript
136 lines
4.4 KiB
TypeScript
export enum QueryKeys {
|
|
messages = 'messages',
|
|
sharedMessages = 'sharedMessages',
|
|
sharedStartupConfig = 'sharedStartupConfig',
|
|
sharedLinks = 'sharedLinks',
|
|
allConversations = 'allConversations',
|
|
archivedConversations = 'archivedConversations',
|
|
searchConversations = 'searchConversations',
|
|
conversation = 'conversation',
|
|
searchEnabled = 'searchEnabled',
|
|
langfuseConnection = 'langfuseConnection',
|
|
user = 'user',
|
|
name = 'name', // user key name
|
|
models = 'models',
|
|
balance = 'balance',
|
|
endpoints = 'endpoints',
|
|
tokenConfig = 'tokenConfig',
|
|
presets = 'presets',
|
|
searchResults = 'searchResults',
|
|
tokenCount = 'tokenCount',
|
|
availablePlugins = 'availablePlugins',
|
|
startupConfig = 'startupConfig',
|
|
assistants = 'assistants',
|
|
assistant = 'assistant',
|
|
agents = 'agents',
|
|
agent = 'agent',
|
|
files = 'files',
|
|
fileConfig = 'fileConfig',
|
|
tools = 'tools',
|
|
toolAuth = 'toolAuth',
|
|
toolCalls = 'toolCalls',
|
|
mcpTools = 'mcpTools',
|
|
mcpConnectionStatus = 'mcpConnectionStatus',
|
|
mcpAuthValues = 'mcpAuthValues',
|
|
mcpAppResourceHtml = 'mcpAppResourceHtml',
|
|
agentTools = 'agentTools',
|
|
actions = 'actions',
|
|
assistantDocs = 'assistantDocs',
|
|
agentDocs = 'agentDocs',
|
|
fileDownload = 'fileDownload',
|
|
filePreview = 'filePreview',
|
|
voices = 'voices',
|
|
customConfigSpeech = 'customConfigSpeech',
|
|
prompts = 'prompts',
|
|
prompt = 'prompt',
|
|
promptGroups = 'promptGroups',
|
|
allPromptGroups = 'allPromptGroups',
|
|
promptGroup = 'promptGroup',
|
|
projects = 'projects',
|
|
project = 'project',
|
|
projectConversations = 'projectConversations',
|
|
categories = 'categories',
|
|
randomPrompts = 'randomPrompts',
|
|
agentCategories = 'agentCategories',
|
|
marketplaceAgents = 'marketplaceAgents',
|
|
roles = 'roles',
|
|
rolesList = 'rolesList',
|
|
conversationTags = 'conversationTags',
|
|
health = 'health',
|
|
userTerms = 'userTerms',
|
|
banner = 'banner',
|
|
/* Memories */
|
|
memories = 'memories',
|
|
principalSearch = 'principalSearch',
|
|
accessRoles = 'accessRoles',
|
|
resourcePermissions = 'resourcePermissions',
|
|
effectivePermissions = 'effectivePermissions',
|
|
graphToken = 'graphToken',
|
|
/* MCP Servers */
|
|
mcpServers = 'mcpServers',
|
|
mcpServer = 'mcpServer',
|
|
/* Active Jobs */
|
|
activeJobs = 'activeJobs',
|
|
/* Agent API Keys */
|
|
agentApiKeys = 'agentApiKeys',
|
|
/* Skills */
|
|
skills = 'skills',
|
|
skill = 'skill',
|
|
skillFiles = 'skillFiles',
|
|
skillFileContent = 'skillFileContent',
|
|
/* Skill tree (phase 2 — filesystem-style node view) */
|
|
skillTree = 'skillTree',
|
|
skillNodeContent = 'skillNodeContent',
|
|
/* Tool favorites (starred marketplace items) */
|
|
toolFavorites = 'toolFavorites',
|
|
/* Per-user skill active/inactive overrides */
|
|
skillStates = 'skillStates',
|
|
/* General user favorites */
|
|
favorites = 'favorites',
|
|
}
|
|
|
|
// Dynamic query keys that require parameters
|
|
export const DynamicQueryKeys = {
|
|
agentFiles: (agentId: string) => ['agentFiles', agentId] as const,
|
|
} as const;
|
|
|
|
export enum MutationKeys {
|
|
updateLangfuseConnection = 'updateLangfuseConnection',
|
|
testLangfuseConnection = 'testLangfuseConnection',
|
|
createAgentApiKey = 'createAgentApiKey',
|
|
deleteAgentApiKey = 'deleteAgentApiKey',
|
|
fileUpload = 'fileUpload',
|
|
fileDelete = 'fileDelete',
|
|
fileUsage = 'fileUsage',
|
|
updatePreset = 'updatePreset',
|
|
deletePreset = 'deletePreset',
|
|
loginUser = 'loginUser',
|
|
logoutUser = 'logoutUser',
|
|
refreshToken = 'refreshToken',
|
|
avatarUpload = 'avatarUpload',
|
|
speechToText = 'speechToText',
|
|
textToSpeech = 'textToSpeech',
|
|
assistantAvatarUpload = 'assistantAvatarUpload',
|
|
agentAvatarUpload = 'agentAvatarUpload',
|
|
updateAction = 'updateAction',
|
|
updateAgentAction = 'updateAgentAction',
|
|
deleteAction = 'deleteAction',
|
|
deleteAgentAction = 'deleteAgentAction',
|
|
revertAgentVersion = 'revertAgentVersion',
|
|
deleteUser = 'deleteUser',
|
|
updateRole = 'updateRole',
|
|
enableTwoFactor = 'enableTwoFactor',
|
|
verifyTwoFactor = 'verifyTwoFactor',
|
|
updateMemoryPreferences = 'updateMemoryPreferences',
|
|
createProject = 'createProject',
|
|
updateProject = 'updateProject',
|
|
deleteProject = 'deleteProject',
|
|
assignConversationToProject = 'assignConversationToProject',
|
|
/* Skill mutations from the original UI PR — tree/node operations are
|
|
* phase 2 and currently stubbed in the data-service layer. */
|
|
createSkillNode = 'createSkillNode',
|
|
updateSkillNode = 'updateSkillNode',
|
|
deleteSkillNode = 'deleteSkillNode',
|
|
updateSkillNodeContent = 'updateSkillNodeContent',
|
|
convoPin = 'convoPin',
|
|
}
|