mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-11-23 16:34:27 +00:00
* 📔 feat: Preserve Owner Text During PII Redaction * 🧵 fix: Keep Ordinary Chat Views Outside Private Text Provider * 🧷 fix: Preserve Owner Text Across Copy and Edit Paths * 🔏 fix: Protect PII on Denial and Abort Paths * fix: preserve protected text through denial, stop, and owner reload * test: cover preliminary private metadata in disconnect fixture * test: carry preliminary metadata in resume controller fixture * test: preserve Stop prerequisite identity in tenant fixture * fix: keep protected owner text out of search and exports * fix: preserve trusted PII placeholders through provider inspection * fix: coordinate protected turns across Stop and native sharing * fix: Preserve Private Text Admission and Query Lifecycles * fix: Track Private Query Effect Dependencies * fix: Fence Protected Admission and Screenshot Targets * fix: Share Protected Admission and Preserve Native Token Trust * test: Wait for Private Message Concurrency Indexes * fix: Preserve Protected Admission Across Recovery and Titles * fix: Coordinate Protected Root Admission and Early Stop --------- Co-authored-by: Lia <lia@librechat.ai>
194 lines
7.1 KiB
TypeScript
194 lines
7.1 KiB
TypeScript
export enum QueryKeys {
|
|
messages = 'messages',
|
|
ownerMessageTexts = 'ownerMessageTexts',
|
|
sharedMessages = 'sharedMessages',
|
|
sharedStartupConfig = 'sharedStartupConfig',
|
|
sharedLinks = 'sharedLinks',
|
|
allConversations = 'allConversations',
|
|
archivedConversations = 'archivedConversations',
|
|
pinnedConversations = 'pinnedConversations',
|
|
searchConversations = 'searchConversations',
|
|
conversation = 'conversation',
|
|
searchEnabled = 'searchEnabled',
|
|
langfuseConnection = 'langfuseConnection',
|
|
langfuseSessionLink = 'langfuseSessionLink',
|
|
conversationTraceAvailability = 'conversationTraceAvailability',
|
|
conversationTraceRecords = 'conversationTraceRecords',
|
|
conversationTraceRecord = 'conversationTraceRecord',
|
|
user = 'user',
|
|
passkeys = 'passkeys',
|
|
name = 'name', // user key name
|
|
models = 'models',
|
|
balance = 'balance',
|
|
endpoints = 'endpoints',
|
|
tokenConfig = 'tokenConfig',
|
|
presets = 'presets',
|
|
searchResults = 'searchResults',
|
|
tokenCount = 'tokenCount',
|
|
availablePlugins = 'availablePlugins',
|
|
startupConfig = 'startupConfig',
|
|
insights = 'insights',
|
|
insightsAccess = 'insightsAccess',
|
|
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',
|
|
projectFiles = 'projectFiles',
|
|
projectAvailableFiles = 'projectAvailableFiles',
|
|
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',
|
|
/* Scheduled chats */
|
|
schedules = 'schedules',
|
|
scheduleMCPConsent = 'scheduleMCPConsent',
|
|
schedule = 'schedule',
|
|
parentSubagents = 'parentSubagents',
|
|
subagentThread = 'subagentThread',
|
|
backgroundTasks = 'backgroundTasks',
|
|
codeEnvironments = 'codeEnvironments',
|
|
agentQueuedTurns = 'agentQueuedTurns',
|
|
/* Combined Pinned-section display order (favorites + pinned chats) */
|
|
pinnedOrder = 'pinnedOrder',
|
|
}
|
|
|
|
// Dynamic query keys that require parameters
|
|
export const DynamicQueryKeys = {
|
|
agentFiles: (agentId: string) => ['agentFiles', agentId] as const,
|
|
projectFiles: (projectId: string) => [QueryKeys.projectFiles, projectId] as const,
|
|
projectAvailableFiles: (projectId: string) =>
|
|
[QueryKeys.projectAvailableFiles, projectId] as const,
|
|
codeEnvironmentStatus: (id: string) => [QueryKeys.codeEnvironments, id, 'status'] as const,
|
|
} as const;
|
|
|
|
export enum MutationKeys {
|
|
subagentControl = 'subagentControl',
|
|
cancelBackgroundTasks = 'cancelBackgroundTasks',
|
|
enqueueAgentQueuedTurn = 'enqueueAgentQueuedTurn',
|
|
cancelAgentQueuedTurn = 'cancelAgentQueuedTurn',
|
|
/** Whole-array favorites write, keyed so every hook instance's write is
|
|
* visible to the others through the query client. */
|
|
updateFavorites = 'updateFavorites',
|
|
/** Pinned-section display order write, keyed for the same reason. */
|
|
updatePinnedOrder = 'updatePinnedOrder',
|
|
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',
|
|
updateUserPreferences = 'updateUserPreferences',
|
|
updateRole = 'updateRole',
|
|
enableTwoFactor = 'enableTwoFactor',
|
|
verifyTwoFactor = 'verifyTwoFactor',
|
|
registerPasskey = 'registerPasskey',
|
|
renamePasskey = 'renamePasskey',
|
|
deletePasskey = 'deletePasskey',
|
|
passkeyLogin = 'passkeyLogin',
|
|
updateMemoryPreferences = 'updateMemoryPreferences',
|
|
createProject = 'createProject',
|
|
updateProject = 'updateProject',
|
|
deleteProject = 'deleteProject',
|
|
assignConversationToProject = 'assignConversationToProject',
|
|
addProjectFile = 'addProjectFile',
|
|
removeProjectFile = 'removeProjectFile',
|
|
/* 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',
|
|
/** Artifact code save, keyed so the editor pane can see a save started by
|
|
* another instance of itself — the pane is remounted when it changes hosts. */
|
|
editArtifact = 'editArtifact',
|
|
convoPin = 'convoPin',
|
|
archiveAllConversations = 'archiveAllConversations',
|
|
createSchedule = 'createSchedule',
|
|
updateSchedule = 'updateSchedule',
|
|
deleteSchedule = 'deleteSchedule',
|
|
runSchedule = 'runSchedule',
|
|
confirmScheduleMCPConsent = 'confirmScheduleMCPConsent',
|
|
revokeScheduleMCPConsent = 'revokeScheduleMCPConsent',
|
|
pairCodeEnvironment = 'pairCodeEnvironment',
|
|
updateCodeEnvironmentSettings = 'updateCodeEnvironmentSettings',
|
|
deleteCodeEnvironment = 'deleteCodeEnvironment',
|
|
moveConversationCodeEnvironment = 'moveConversationCodeEnvironment',
|
|
convoSeen = 'convoSeen',
|
|
convoUnread = 'convoUnread',
|
|
}
|