librechat-data-provider 0.8.521 → 0.8.523
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{data-service-pwrlWjJs.mjs → data-service-Bx6IFaSa.mjs} +1770 -51
- package/dist/data-service-Bx6IFaSa.mjs.map +1 -0
- package/dist/{data-service-DOIF4BkW.js → data-service-CTX0tVO5.js} +2509 -112
- package/dist/data-service-CTX0tVO5.js.map +1 -0
- package/dist/index.js +1503 -54
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1314 -55
- package/dist/index.mjs.map +1 -1
- package/dist/react-query/index.js +2 -1
- package/dist/react-query/index.js.map +1 -1
- package/dist/react-query/index.mjs +2 -1
- package/dist/react-query/index.mjs.map +1 -1
- package/dist/types/accessPermissions.d.ts +58 -1
- package/dist/types/actions.d.ts +2 -2
- package/dist/types/agentToolOptions.d.ts +11 -0
- package/dist/types/api-endpoints.d.ts +24 -0
- package/dist/types/bedrock.d.ts +238 -10
- package/dist/types/cadence.d.ts +33 -0
- package/dist/types/code/approval.d.ts +26 -0
- package/dist/types/code/worker.d.ts +10 -0
- package/dist/types/code/workspace.d.ts +28 -0
- package/dist/types/codeEnvRef.d.ts +26 -0
- package/dist/types/config.d.ts +13180 -3021
- package/dist/types/data-service.d.ts +48 -2
- package/dist/types/errors.d.ts +2 -0
- package/dist/types/file-config.d.ts +138 -9
- package/dist/types/filters.d.ts +1422 -0
- package/dist/types/generate.d.ts +103 -1
- package/dist/types/index.d.ts +17 -0
- package/dist/types/keys.d.ts +33 -2
- package/dist/types/langchain.d.ts +4 -0
- package/dist/types/limits.d.ts +13 -0
- package/dist/types/mcp.d.ts +555 -460
- package/dist/types/messages.d.ts +24 -0
- package/dist/types/models.d.ts +1112 -319
- package/dist/types/parameterSettings.d.ts +13 -1
- package/dist/types/parsers.d.ts +10 -0
- package/dist/types/permissions.d.ts +42 -1
- package/dist/types/providers.d.ts +37 -0
- package/dist/types/request.d.ts +2 -2
- package/dist/types/resolve-llm-delivery-path.d.ts +68 -0
- package/dist/types/roles.d.ts +34 -0
- package/dist/types/runSteps.d.ts +59 -0
- package/dist/types/schemas.d.ts +1724 -248
- package/dist/types/stateful-code.d.ts +7 -0
- package/dist/types/svg.d.ts +34 -0
- package/dist/types/types/agents.d.ts +116 -7
- package/dist/types/types/assistants.d.ts +121 -6
- package/dist/types/types/files.d.ts +46 -2
- package/dist/types/types/index.d.ts +2 -0
- package/dist/types/types/insights.d.ts +71 -0
- package/dist/types/types/mutations.d.ts +1 -0
- package/dist/types/types/queries.d.ts +37 -2
- package/dist/types/types/queuedTurns.d.ts +870 -0
- package/dist/types/types/runs.d.ts +119 -9
- package/dist/types/types/schedules.d.ts +339 -0
- package/dist/types/types/skills.d.ts +9 -0
- package/dist/types/types/subagents.d.ts +159 -0
- package/dist/types/types/traces.d.ts +85 -0
- package/dist/types/types/web.d.ts +12 -2
- package/dist/types/types.d.ts +101 -1
- package/package.json +5 -3
- package/dist/data-service-DOIF4BkW.js.map +0 -1
- package/dist/data-service-pwrlWjJs.mjs.map +0 -1
|
@@ -119,6 +119,7 @@ export type CreateSharedLinkOptions = MutationOptions<types.TSharedLink, Partial
|
|
|
119
119
|
export type updateTagsInConvoOptions = MutationOptions<types.TTagConversationResponse, types.TTagConversationRequest>;
|
|
120
120
|
export type UpdateSharedLinkOptions = MutationOptions<types.TSharedLink, Partial<types.TSharedLink>>;
|
|
121
121
|
export type ArchiveConvoOptions = MutationOptions<types.TArchiveConversationResponse, types.TArchiveConversationRequest>;
|
|
122
|
+
export type ArchiveAllConversationsOptions = MutationOptions<types.TArchiveAllConversationsResponse, void>;
|
|
122
123
|
export type DeleteSharedLinkContext = {
|
|
123
124
|
previousQueries?: Map<string, TDeleteSharedLinkResponse>;
|
|
124
125
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { InfiniteData } from '@tanstack/react-query';
|
|
2
|
+
import type { RerankerTypes, SearchProviders, ScraperProviders } from '../config';
|
|
2
3
|
import type * as p from '../accessPermissions';
|
|
3
4
|
import type * as a from '../types/agents';
|
|
4
5
|
import type * as s from '../schemas';
|
|
@@ -12,14 +13,16 @@ export type Conversation = {
|
|
|
12
13
|
};
|
|
13
14
|
export type ConversationListParams = {
|
|
14
15
|
cursor?: string;
|
|
16
|
+
limit?: number;
|
|
15
17
|
isArchived?: boolean;
|
|
16
|
-
|
|
18
|
+
pinned?: boolean;
|
|
19
|
+
sortBy?: 'title' | 'createdAt' | 'updatedAt' | 'archivedAt';
|
|
17
20
|
sortDirection?: 'asc' | 'desc';
|
|
18
21
|
tags?: string[];
|
|
19
22
|
search?: string;
|
|
20
23
|
projectId?: string;
|
|
21
24
|
};
|
|
22
|
-
export type MinimalConversation = Pick<s.TConversation, 'conversationId' | 'endpoint' | 'title' | 'createdAt' | 'updatedAt' | 'user' | 'chatProjectId'>;
|
|
25
|
+
export type MinimalConversation = Pick<s.TConversation, 'conversationId' | 'endpoint' | 'title' | 'createdAt' | 'updatedAt' | 'archivedAt' | 'isArchived' | 'user' | 'chatProjectId' | 'pinned'>;
|
|
23
26
|
export type ConversationListResponse = {
|
|
24
27
|
conversations: MinimalConversation[];
|
|
25
28
|
nextCursor: string | null;
|
|
@@ -92,11 +95,18 @@ export type MCPTool = {
|
|
|
92
95
|
name: string;
|
|
93
96
|
pluginKey: string;
|
|
94
97
|
description: string;
|
|
98
|
+
/** Raw upstream tool name when the model-facing key stripped a redundant
|
|
99
|
+
* server-name prefix — gates the agent editor's legacy id migration. */
|
|
100
|
+
serverToolName?: string;
|
|
95
101
|
};
|
|
96
102
|
export type MCPServer = {
|
|
97
103
|
name: string;
|
|
98
104
|
icon: string;
|
|
99
105
|
authenticated: boolean;
|
|
106
|
+
/** Passive discovery found that stored OAuth authorization must be renewed. */
|
|
107
|
+
authorizationState?: 'reauth_required';
|
|
108
|
+
/** Shared credential/catalog generation observed by passive discovery. */
|
|
109
|
+
authorizationGeneration?: string;
|
|
100
110
|
authConfig: s.TPluginAuthConfig[];
|
|
101
111
|
tools: MCPTool[];
|
|
102
112
|
};
|
|
@@ -110,20 +120,29 @@ export type VerifyToolAuthResponse = {
|
|
|
110
120
|
authenticated: boolean;
|
|
111
121
|
message?: string | s.AuthType;
|
|
112
122
|
authTypes?: [string, s.AuthType][];
|
|
123
|
+
searchProvider?: SearchProviders;
|
|
124
|
+
scraperProvider?: ScraperProviders;
|
|
125
|
+
rerankerType?: RerankerTypes;
|
|
113
126
|
};
|
|
114
127
|
export type GetToolCallParams = {
|
|
115
128
|
conversationId: string;
|
|
116
129
|
};
|
|
117
130
|
export type ToolCallResults = a.ToolCallResult[];
|
|
118
131
|
export type TUserMemory = {
|
|
132
|
+
/** Stable stored record identifier retained when content fields are redacted. */
|
|
133
|
+
_id?: string;
|
|
119
134
|
key: string;
|
|
120
135
|
value: string;
|
|
136
|
+
/** Optional generated or legacy summary content. */
|
|
137
|
+
summary?: string;
|
|
121
138
|
updated_at: string;
|
|
122
139
|
tokenCount?: number;
|
|
123
140
|
/** Agent partition this memory belongs to; absent = shared personal pool */
|
|
124
141
|
agentId?: string;
|
|
125
142
|
/** Display name of the partition's agent, resolved server-side when available */
|
|
126
143
|
agentName?: string;
|
|
144
|
+
/** Current policy removed one or more memory content fields from this response. */
|
|
145
|
+
contentFilterBlocked?: boolean;
|
|
127
146
|
};
|
|
128
147
|
export type MemoriesResponse = {
|
|
129
148
|
memories: TUserMemory[];
|
|
@@ -131,6 +150,13 @@ export type MemoriesResponse = {
|
|
|
131
150
|
tokenLimit: number | null;
|
|
132
151
|
usagePercentage: number | null;
|
|
133
152
|
};
|
|
153
|
+
export type UpdateMemoryResponse = {
|
|
154
|
+
updated: boolean;
|
|
155
|
+
memory: TUserMemory;
|
|
156
|
+
};
|
|
157
|
+
export type DeleteMemoryResponse = {
|
|
158
|
+
deleted: boolean;
|
|
159
|
+
};
|
|
134
160
|
export type PrincipalSearchParams = {
|
|
135
161
|
q: string;
|
|
136
162
|
limit?: number;
|
|
@@ -166,8 +192,14 @@ export type ListRolesResponse = {
|
|
|
166
192
|
};
|
|
167
193
|
export interface MCPServerStatus {
|
|
168
194
|
requiresOAuth: boolean;
|
|
195
|
+
/** The server connects only inside a chat request because its config reads BODY placeholders. */
|
|
196
|
+
requestScoped?: boolean;
|
|
197
|
+
/** Whether all declared per-user variables are present for an on-demand connection. */
|
|
198
|
+
configurationState?: 'configured' | 'needs_configuration';
|
|
169
199
|
connectionState: 'disconnected' | 'connecting' | 'connected' | 'error';
|
|
170
200
|
authorizationState?: 'not_required' | 'authorizing' | 'authorized' | 'needs_authorization' | 'error';
|
|
201
|
+
/** Shared credential/catalog generation observed by the status endpoint. */
|
|
202
|
+
authorizationGeneration?: string;
|
|
171
203
|
}
|
|
172
204
|
export interface MCPConnectionStatusResponse {
|
|
173
205
|
success: boolean;
|
|
@@ -179,8 +211,11 @@ export interface MCPServerConnectionStatusResponse {
|
|
|
179
211
|
success: boolean;
|
|
180
212
|
serverName: string;
|
|
181
213
|
requiresOAuth: boolean;
|
|
214
|
+
requestScoped?: boolean;
|
|
215
|
+
configurationState?: MCPServerStatus['configurationState'];
|
|
182
216
|
connectionStatus: 'disconnected' | 'connecting' | 'connected' | 'error';
|
|
183
217
|
authorizationState?: MCPServerStatus['authorizationState'];
|
|
218
|
+
authorizationGeneration?: string;
|
|
184
219
|
}
|
|
185
220
|
export interface MCPAuthValuesResponse {
|
|
186
221
|
success: boolean;
|