librechat-data-provider 0.8.521 → 0.8.522
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-CaB7saTP.mjs} +1145 -37
- package/dist/data-service-CaB7saTP.mjs.map +1 -0
- package/dist/{data-service-DOIF4BkW.js → data-service-D5kHzBt-.js} +1588 -36
- package/dist/data-service-D5kHzBt-.js.map +1 -0
- package/dist/index.js +947 -36
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +825 -37
- 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 +4 -0
- package/dist/types/actions.d.ts +2 -2
- package/dist/types/agentToolOptions.d.ts +11 -0
- package/dist/types/api-endpoints.d.ts +18 -0
- package/dist/types/bedrock.d.ts +168 -0
- package/dist/types/cadence.d.ts +33 -0
- package/dist/types/codeEnvRef.d.ts +21 -0
- package/dist/types/config.d.ts +9060 -1135
- package/dist/types/data-service.d.ts +40 -2
- package/dist/types/file-config.d.ts +1 -0
- package/dist/types/filters.d.ts +1422 -0
- package/dist/types/generate.d.ts +79 -1
- package/dist/types/index.d.ts +10 -0
- package/dist/types/keys.d.ts +23 -2
- package/dist/types/langchain.d.ts +4 -0
- package/dist/types/limits.d.ts +13 -0
- package/dist/types/mcp.d.ts +299 -210
- package/dist/types/messages.d.ts +5 -0
- package/dist/types/models.d.ts +732 -68
- package/dist/types/parameterSettings.d.ts +5 -1
- package/dist/types/parsers.d.ts +10 -0
- package/dist/types/permissions.d.ts +42 -1
- package/dist/types/providers.d.ts +36 -0
- package/dist/types/request.d.ts +2 -2
- package/dist/types/roles.d.ts +34 -0
- package/dist/types/runSteps.d.ts +59 -0
- package/dist/types/schemas.d.ts +1191 -26
- package/dist/types/stateful-code.d.ts +7 -0
- package/dist/types/types/agents.d.ts +92 -7
- package/dist/types/types/assistants.d.ts +96 -5
- package/dist/types/types/files.d.ts +12 -2
- package/dist/types/types/index.d.ts +2 -0
- package/dist/types/types/insights.d.ts +62 -0
- package/dist/types/types/mutations.d.ts +1 -0
- package/dist/types/types/queries.d.ts +30 -2
- package/dist/types/types/queuedTurns.d.ts +870 -0
- package/dist/types/types/runs.d.ts +95 -4
- package/dist/types/types/schedules.d.ts +306 -0
- package/dist/types/types/skills.d.ts +9 -0
- package/dist/types/types/subagents.d.ts +159 -0
- package/dist/types/types/web.d.ts +12 -2
- package/dist/types/types.d.ts +61 -1
- package/package.json +4 -2
- package/dist/data-service-DOIF4BkW.js.map +0 -1
- package/dist/data-service-pwrlWjJs.mjs.map +0 -1
package/dist/types/generate.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { googleSettings as google } from './schemas';
|
|
3
2
|
import type { TConversation, TSetOption, TPreset } from './schemas';
|
|
3
|
+
import { googleSettings as google } from './schemas';
|
|
4
4
|
export type GoogleSettings = Partial<typeof google>;
|
|
5
5
|
export type OpenAISettings = Partial<typeof google>;
|
|
6
6
|
export type ComponentType = 'input' | 'textarea' | 'slider' | 'checkbox' | 'switch' | 'dropdown' | 'combobox' | 'tags';
|
|
@@ -78,7 +78,21 @@ export interface SettingRange {
|
|
|
78
78
|
min: number;
|
|
79
79
|
max: number;
|
|
80
80
|
step?: number;
|
|
81
|
+
/**
|
|
82
|
+
* Inclusive floor for non-negative values. Use when `min` is a sentinel
|
|
83
|
+
* (Google thinkingBudget `-1` for auto) and positive values have a higher
|
|
84
|
+
* documented minimum.
|
|
85
|
+
*/
|
|
86
|
+
positiveMin?: number;
|
|
87
|
+
/**
|
|
88
|
+
* Set when this range came from the selected model rather than the shared
|
|
89
|
+
* fallback. Only then is it safe to normalize a stored value against it: a
|
|
90
|
+
* model that does not use the parameter leaves the generic range in place,
|
|
91
|
+
* and clamping to that would discard a value set for another model.
|
|
92
|
+
*/
|
|
93
|
+
modelSpecific?: boolean;
|
|
81
94
|
}
|
|
95
|
+
export declare function clampSettingRange(value: number, range: SettingRange): number;
|
|
82
96
|
export type SettingsConfiguration = SettingDefinition[];
|
|
83
97
|
export declare function generateDynamicSchema(settings: SettingsConfiguration): z.ZodObject<{
|
|
84
98
|
[key: string]: z.ZodTypeAny;
|
|
@@ -97,6 +111,7 @@ export declare const generateOpenAISchema: (customOpenAI: OpenAISettings) => z.Z
|
|
|
97
111
|
endpoint: z.ZodNullable<z.ZodNativeEnum<typeof import("./schemas").EModelEndpoint>>;
|
|
98
112
|
endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("./schemas").EModelEndpoint>>>;
|
|
99
113
|
isArchived: z.ZodOptional<z.ZodBoolean>;
|
|
114
|
+
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
100
115
|
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
101
116
|
isShared: z.ZodOptional<z.ZodBoolean>;
|
|
102
117
|
title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
|
|
@@ -130,6 +145,7 @@ export declare const generateOpenAISchema: (customOpenAI: OpenAISettings) => z.Z
|
|
|
130
145
|
chatMenu: z.ZodOptional<z.ZodBoolean>;
|
|
131
146
|
isButton: z.ZodOptional<z.ZodBoolean>;
|
|
132
147
|
toolkit: z.ZodOptional<z.ZodBoolean>;
|
|
148
|
+
serverToolName: z.ZodOptional<z.ZodString>;
|
|
133
149
|
}, "strip", z.ZodTypeAny, {
|
|
134
150
|
name: string;
|
|
135
151
|
pluginKey: string;
|
|
@@ -146,6 +162,7 @@ export declare const generateOpenAISchema: (customOpenAI: OpenAISettings) => z.Z
|
|
|
146
162
|
chatMenu?: boolean | undefined;
|
|
147
163
|
isButton?: boolean | undefined;
|
|
148
164
|
toolkit?: boolean | undefined;
|
|
165
|
+
serverToolName?: string | undefined;
|
|
149
166
|
}, {
|
|
150
167
|
name: string;
|
|
151
168
|
pluginKey: string;
|
|
@@ -162,6 +179,7 @@ export declare const generateOpenAISchema: (customOpenAI: OpenAISettings) => z.Z
|
|
|
162
179
|
chatMenu?: boolean | undefined;
|
|
163
180
|
isButton?: boolean | undefined;
|
|
164
181
|
toolkit?: boolean | undefined;
|
|
182
|
+
serverToolName?: string | undefined;
|
|
165
183
|
}>, "many">, z.ZodArray<z.ZodString, "many">]>>;
|
|
166
184
|
modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
167
185
|
userLabel: z.ZodOptional<z.ZodString>;
|
|
@@ -236,6 +254,34 @@ export declare const generateOpenAISchema: (customOpenAI: OpenAISettings) => z.Z
|
|
|
236
254
|
disableStreaming: z.ZodOptional<z.ZodBoolean>;
|
|
237
255
|
assistant_id: z.ZodOptional<z.ZodString>;
|
|
238
256
|
agent_id: z.ZodOptional<z.ZodString>;
|
|
257
|
+
subagentThread: z.ZodOptional<z.ZodObject<{
|
|
258
|
+
rootConversationId: z.ZodString;
|
|
259
|
+
parentConversationId: z.ZodString;
|
|
260
|
+
parentMessageId: z.ZodString;
|
|
261
|
+
parentToolCallId: z.ZodString;
|
|
262
|
+
parentAgentId: z.ZodOptional<z.ZodString>;
|
|
263
|
+
subagentType: z.ZodString;
|
|
264
|
+
subagentKind: z.ZodEnum<["agent", "graph"]>;
|
|
265
|
+
depth: z.ZodNumber;
|
|
266
|
+
}, "strip", z.ZodTypeAny, {
|
|
267
|
+
parentMessageId: string;
|
|
268
|
+
rootConversationId: string;
|
|
269
|
+
parentConversationId: string;
|
|
270
|
+
parentToolCallId: string;
|
|
271
|
+
subagentType: string;
|
|
272
|
+
subagentKind: "agent" | "graph";
|
|
273
|
+
depth: number;
|
|
274
|
+
parentAgentId?: string | undefined;
|
|
275
|
+
}, {
|
|
276
|
+
parentMessageId: string;
|
|
277
|
+
rootConversationId: string;
|
|
278
|
+
parentConversationId: string;
|
|
279
|
+
parentToolCallId: string;
|
|
280
|
+
subagentType: string;
|
|
281
|
+
subagentKind: "agent" | "graph";
|
|
282
|
+
depth: number;
|
|
283
|
+
parentAgentId?: string | undefined;
|
|
284
|
+
}>>;
|
|
239
285
|
region: z.ZodOptional<z.ZodString>;
|
|
240
286
|
maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
241
287
|
additionalModelRequestFields: z.ZodOptional<z.ZodType<string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
@@ -350,6 +396,7 @@ export declare const generateGoogleSchema: (customGoogle: GoogleSettings) => z.Z
|
|
|
350
396
|
endpoint: z.ZodNullable<z.ZodNativeEnum<typeof import("./schemas").EModelEndpoint>>;
|
|
351
397
|
endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("./schemas").EModelEndpoint>>>;
|
|
352
398
|
isArchived: z.ZodOptional<z.ZodBoolean>;
|
|
399
|
+
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
353
400
|
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
354
401
|
isShared: z.ZodOptional<z.ZodBoolean>;
|
|
355
402
|
title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
|
|
@@ -383,6 +430,7 @@ export declare const generateGoogleSchema: (customGoogle: GoogleSettings) => z.Z
|
|
|
383
430
|
chatMenu: z.ZodOptional<z.ZodBoolean>;
|
|
384
431
|
isButton: z.ZodOptional<z.ZodBoolean>;
|
|
385
432
|
toolkit: z.ZodOptional<z.ZodBoolean>;
|
|
433
|
+
serverToolName: z.ZodOptional<z.ZodString>;
|
|
386
434
|
}, "strip", z.ZodTypeAny, {
|
|
387
435
|
name: string;
|
|
388
436
|
pluginKey: string;
|
|
@@ -399,6 +447,7 @@ export declare const generateGoogleSchema: (customGoogle: GoogleSettings) => z.Z
|
|
|
399
447
|
chatMenu?: boolean | undefined;
|
|
400
448
|
isButton?: boolean | undefined;
|
|
401
449
|
toolkit?: boolean | undefined;
|
|
450
|
+
serverToolName?: string | undefined;
|
|
402
451
|
}, {
|
|
403
452
|
name: string;
|
|
404
453
|
pluginKey: string;
|
|
@@ -415,6 +464,7 @@ export declare const generateGoogleSchema: (customGoogle: GoogleSettings) => z.Z
|
|
|
415
464
|
chatMenu?: boolean | undefined;
|
|
416
465
|
isButton?: boolean | undefined;
|
|
417
466
|
toolkit?: boolean | undefined;
|
|
467
|
+
serverToolName?: string | undefined;
|
|
418
468
|
}>, "many">, z.ZodArray<z.ZodString, "many">]>>;
|
|
419
469
|
modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
420
470
|
userLabel: z.ZodOptional<z.ZodString>;
|
|
@@ -489,6 +539,34 @@ export declare const generateGoogleSchema: (customGoogle: GoogleSettings) => z.Z
|
|
|
489
539
|
disableStreaming: z.ZodOptional<z.ZodBoolean>;
|
|
490
540
|
assistant_id: z.ZodOptional<z.ZodString>;
|
|
491
541
|
agent_id: z.ZodOptional<z.ZodString>;
|
|
542
|
+
subagentThread: z.ZodOptional<z.ZodObject<{
|
|
543
|
+
rootConversationId: z.ZodString;
|
|
544
|
+
parentConversationId: z.ZodString;
|
|
545
|
+
parentMessageId: z.ZodString;
|
|
546
|
+
parentToolCallId: z.ZodString;
|
|
547
|
+
parentAgentId: z.ZodOptional<z.ZodString>;
|
|
548
|
+
subagentType: z.ZodString;
|
|
549
|
+
subagentKind: z.ZodEnum<["agent", "graph"]>;
|
|
550
|
+
depth: z.ZodNumber;
|
|
551
|
+
}, "strip", z.ZodTypeAny, {
|
|
552
|
+
parentMessageId: string;
|
|
553
|
+
rootConversationId: string;
|
|
554
|
+
parentConversationId: string;
|
|
555
|
+
parentToolCallId: string;
|
|
556
|
+
subagentType: string;
|
|
557
|
+
subagentKind: "agent" | "graph";
|
|
558
|
+
depth: number;
|
|
559
|
+
parentAgentId?: string | undefined;
|
|
560
|
+
}, {
|
|
561
|
+
parentMessageId: string;
|
|
562
|
+
rootConversationId: string;
|
|
563
|
+
parentConversationId: string;
|
|
564
|
+
parentToolCallId: string;
|
|
565
|
+
subagentType: string;
|
|
566
|
+
subagentKind: "agent" | "graph";
|
|
567
|
+
depth: number;
|
|
568
|
+
parentAgentId?: string | undefined;
|
|
569
|
+
}>>;
|
|
492
570
|
region: z.ZodOptional<z.ZodString>;
|
|
493
571
|
maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
494
572
|
additionalModelRequestFields: z.ZodOptional<z.ZodType<string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -2,8 +2,11 @@ export * from './azure';
|
|
|
2
2
|
export * from './bedrock';
|
|
3
3
|
export * from './balance';
|
|
4
4
|
export * from './config';
|
|
5
|
+
export * from './langchain';
|
|
6
|
+
export * from './filters';
|
|
5
7
|
export * from './file-config';
|
|
6
8
|
export * from './messages';
|
|
9
|
+
export * from './runSteps';
|
|
7
10
|
export * from './artifacts';
|
|
8
11
|
export * from './parsers';
|
|
9
12
|
export * from './generate';
|
|
@@ -18,10 +21,15 @@ export * from './types/files';
|
|
|
18
21
|
export * from './types/mcpServers';
|
|
19
22
|
export * from './types/mutations';
|
|
20
23
|
export * from './types/queries';
|
|
24
|
+
export * from './types/schedules';
|
|
25
|
+
export * from './cadence';
|
|
21
26
|
export * from './types/skills';
|
|
22
27
|
export * from './types/runs';
|
|
23
28
|
export * from './types/web';
|
|
24
29
|
export * from './types/graph';
|
|
30
|
+
export * from './types/insights';
|
|
31
|
+
export * from './types/subagents';
|
|
32
|
+
export * from './types/queuedTurns';
|
|
25
33
|
export * from './accessPermissions';
|
|
26
34
|
export * from './keys';
|
|
27
35
|
export * from './headers-helpers';
|
|
@@ -29,9 +37,11 @@ export { loginPage, registerPage, apiBaseUrl, sharedFileDownload, buildLoginRedi
|
|
|
29
37
|
export { default as request } from './request';
|
|
30
38
|
export { dataService };
|
|
31
39
|
import * as dataService from './data-service';
|
|
40
|
+
export * from './providers';
|
|
32
41
|
export * from './utils';
|
|
33
42
|
export * from './actions';
|
|
34
43
|
export { default as createPayload } from './createPayload';
|
|
35
44
|
export * from './feedback';
|
|
36
45
|
export * from './parameterSettings';
|
|
46
|
+
export * from './agentToolOptions';
|
|
37
47
|
export * from './codeEnvRef';
|
package/dist/types/keys.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export declare enum QueryKeys {
|
|
|
5
5
|
sharedLinks = "sharedLinks",
|
|
6
6
|
allConversations = "allConversations",
|
|
7
7
|
archivedConversations = "archivedConversations",
|
|
8
|
+
pinnedConversations = "pinnedConversations",
|
|
8
9
|
searchConversations = "searchConversations",
|
|
9
10
|
conversation = "conversation",
|
|
10
11
|
searchEnabled = "searchEnabled",
|
|
@@ -21,6 +22,8 @@ export declare enum QueryKeys {
|
|
|
21
22
|
tokenCount = "tokenCount",
|
|
22
23
|
availablePlugins = "availablePlugins",
|
|
23
24
|
startupConfig = "startupConfig",
|
|
25
|
+
insights = "insights",
|
|
26
|
+
insightsAccess = "insightsAccess",
|
|
24
27
|
assistants = "assistants",
|
|
25
28
|
assistant = "assistant",
|
|
26
29
|
agents = "agents",
|
|
@@ -77,12 +80,21 @@ export declare enum QueryKeys {
|
|
|
77
80
|
skillNodeContent = "skillNodeContent",
|
|
78
81
|
toolFavorites = "toolFavorites",
|
|
79
82
|
skillStates = "skillStates",
|
|
80
|
-
favorites = "favorites"
|
|
83
|
+
favorites = "favorites",
|
|
84
|
+
schedules = "schedules",
|
|
85
|
+
schedule = "schedule",
|
|
86
|
+
parentSubagents = "parentSubagents",
|
|
87
|
+
subagentThread = "subagentThread",
|
|
88
|
+
codeEnvironments = "codeEnvironments",
|
|
89
|
+
agentQueuedTurns = "agentQueuedTurns"
|
|
81
90
|
}
|
|
82
91
|
export declare const DynamicQueryKeys: {
|
|
83
92
|
readonly agentFiles: (agentId: string) => readonly ["agentFiles", string];
|
|
84
93
|
};
|
|
85
94
|
export declare enum MutationKeys {
|
|
95
|
+
subagentControl = "subagentControl",
|
|
96
|
+
enqueueAgentQueuedTurn = "enqueueAgentQueuedTurn",
|
|
97
|
+
cancelAgentQueuedTurn = "cancelAgentQueuedTurn",
|
|
86
98
|
updateLangfuseConnection = "updateLangfuseConnection",
|
|
87
99
|
testLangfuseConnection = "testLangfuseConnection",
|
|
88
100
|
createAgentApiKey = "createAgentApiKey",
|
|
@@ -106,6 +118,7 @@ export declare enum MutationKeys {
|
|
|
106
118
|
deleteAgentAction = "deleteAgentAction",
|
|
107
119
|
revertAgentVersion = "revertAgentVersion",
|
|
108
120
|
deleteUser = "deleteUser",
|
|
121
|
+
updateUserPreferences = "updateUserPreferences",
|
|
109
122
|
updateRole = "updateRole",
|
|
110
123
|
enableTwoFactor = "enableTwoFactor",
|
|
111
124
|
verifyTwoFactor = "verifyTwoFactor",
|
|
@@ -118,5 +131,13 @@ export declare enum MutationKeys {
|
|
|
118
131
|
updateSkillNode = "updateSkillNode",
|
|
119
132
|
deleteSkillNode = "deleteSkillNode",
|
|
120
133
|
updateSkillNodeContent = "updateSkillNodeContent",
|
|
121
|
-
convoPin = "convoPin"
|
|
134
|
+
convoPin = "convoPin",
|
|
135
|
+
archiveAllConversations = "archiveAllConversations",
|
|
136
|
+
createSchedule = "createSchedule",
|
|
137
|
+
updateSchedule = "updateSchedule",
|
|
138
|
+
deleteSchedule = "deleteSchedule",
|
|
139
|
+
runSchedule = "runSchedule",
|
|
140
|
+
pairCodeEnvironment = "pairCodeEnvironment",
|
|
141
|
+
updateCodeEnvironmentSettings = "updateCodeEnvironmentSettings",
|
|
142
|
+
deleteCodeEnvironment = "deleteCodeEnvironment"
|
|
122
143
|
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** Removes LangChain's appended docs URL so provider text carries no third-party attribution. */
|
|
2
|
+
export declare function stripLangChainTroubleshootingUrl(message: unknown): string;
|
|
3
|
+
/** The classification LangChain encoded in the docs URL it appended, when the text carries one. */
|
|
4
|
+
export declare function parseLangChainErrorCode(message: unknown): string | undefined;
|
package/dist/types/limits.d.ts
CHANGED
|
@@ -1,2 +1,15 @@
|
|
|
1
1
|
/** Maximum number of explicit subagents per parent agent. UI + Zod schema share this. */
|
|
2
2
|
export declare const MAX_SUBAGENTS = 10;
|
|
3
|
+
/** Hard upper bound for `endpoints.agents.maxSubagents`, keeping the request-validation
|
|
4
|
+
* cap bounded no matter what the config file says. */
|
|
5
|
+
export declare const MAX_SUBAGENTS_CEILING = 50;
|
|
6
|
+
/** Effective subagents-per-agent cap; initialized from `endpoints.agents.maxSubagents` at startup. */
|
|
7
|
+
export declare const getMaxSubagents: () => number;
|
|
8
|
+
/** Applies a configured cap; any missing or out-of-range value resets to the default. */
|
|
9
|
+
export declare const setMaxSubagents: (value: number | undefined) => void;
|
|
10
|
+
/** Chat project field limits. The dialogs and the persistence layer share these,
|
|
11
|
+
* so the inputs stop at the same point the server would otherwise truncate. */
|
|
12
|
+
export declare const MAX_CHAT_PROJECT_NAME_LENGTH = 100;
|
|
13
|
+
export declare const MAX_CHAT_PROJECT_DESCRIPTION_LENGTH = 1000;
|
|
14
|
+
/** Mirrors the bounded graph-child member limit in `@librechat/agents`. */
|
|
15
|
+
export declare const MAX_GRAPH_SUBAGENT_MEMBERS = 32;
|