librechat-data-provider 0.8.403 → 0.8.404
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/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/react-query/index.es.js +1 -1
- package/dist/react-query/index.es.js.map +1 -1
- package/dist/types/api-endpoints.d.ts +1 -0
- package/dist/types/config.d.ts +1358 -425
- package/dist/types/data-service.d.ts +3 -0
- package/dist/types/mcp.d.ts +27 -27
- package/dist/types/models.d.ts +6 -136
- package/dist/types/schemas.d.ts +295 -0
- package/package.json +2 -1
|
@@ -221,6 +221,9 @@ export declare function getPromptGroup(id: string): Promise<t.TPromptGroup>;
|
|
|
221
221
|
export declare function createPrompt(payload: t.TCreatePrompt): Promise<t.TCreatePromptResponse>;
|
|
222
222
|
export declare function addPromptToGroup(groupId: string, payload: t.TCreatePrompt): Promise<t.TCreatePromptResponse>;
|
|
223
223
|
export declare function updatePromptGroup(variables: t.TUpdatePromptGroupVariables): Promise<t.TUpdatePromptGroupResponse>;
|
|
224
|
+
export declare function recordPromptGroupUsage(groupId: string): Promise<{
|
|
225
|
+
numberOfGenerations: number;
|
|
226
|
+
}>;
|
|
224
227
|
export declare function deletePrompt(payload: t.TDeletePromptVariables): Promise<t.TDeletePromptResponse>;
|
|
225
228
|
export declare function makePromptProduction(id: string): Promise<t.TMakePromptProductionResponse>;
|
|
226
229
|
export declare function updatePromptLabels(variables: t.TUpdatePromptLabelsRequest): Promise<t.TUpdatePromptLabelsResponse>;
|
package/dist/types/mcp.d.ts
CHANGED
|
@@ -134,7 +134,7 @@ export declare const StdioOptionsSchema: z.ZodObject<{
|
|
|
134
134
|
description: string;
|
|
135
135
|
}>>>;
|
|
136
136
|
} & {
|
|
137
|
-
type: z.
|
|
137
|
+
type: z.ZodDefault<z.ZodLiteral<"stdio">>;
|
|
138
138
|
/**
|
|
139
139
|
* The executable to run to start the server.
|
|
140
140
|
*/
|
|
@@ -157,8 +157,9 @@ export declare const StdioOptionsSchema: z.ZodObject<{
|
|
|
157
157
|
*
|
|
158
158
|
* The default is "inherit", meaning messages to stderr will be printed to the parent process's stderr.
|
|
159
159
|
*/
|
|
160
|
-
stderr: z.ZodOptional<z.
|
|
160
|
+
stderr: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["pipe", "ignore", "inherit"]>, z.ZodNumber]>>;
|
|
161
161
|
}, "strip", z.ZodTypeAny, {
|
|
162
|
+
type: "stdio";
|
|
162
163
|
command: string;
|
|
163
164
|
args: string[];
|
|
164
165
|
title?: string | undefined;
|
|
@@ -169,7 +170,6 @@ export declare const StdioOptionsSchema: z.ZodObject<{
|
|
|
169
170
|
sseReadTimeout?: number | undefined;
|
|
170
171
|
initTimeout?: number | undefined;
|
|
171
172
|
chatMenu?: boolean | undefined;
|
|
172
|
-
type?: "stdio" | undefined;
|
|
173
173
|
serverInstructions?: string | boolean | undefined;
|
|
174
174
|
requiresOAuth?: boolean | undefined;
|
|
175
175
|
oauth?: {
|
|
@@ -200,7 +200,7 @@ export declare const StdioOptionsSchema: z.ZodObject<{
|
|
|
200
200
|
description: string;
|
|
201
201
|
}> | undefined;
|
|
202
202
|
env?: Record<string, string> | undefined;
|
|
203
|
-
stderr?:
|
|
203
|
+
stderr?: number | "pipe" | "ignore" | "inherit" | undefined;
|
|
204
204
|
}, {
|
|
205
205
|
command: string;
|
|
206
206
|
args: string[];
|
|
@@ -243,7 +243,7 @@ export declare const StdioOptionsSchema: z.ZodObject<{
|
|
|
243
243
|
description: string;
|
|
244
244
|
}> | undefined;
|
|
245
245
|
env?: Record<string, string> | undefined;
|
|
246
|
-
stderr?:
|
|
246
|
+
stderr?: number | "pipe" | "ignore" | "inherit" | undefined;
|
|
247
247
|
}>;
|
|
248
248
|
export declare const WebSocketOptionsSchema: z.ZodObject<{
|
|
249
249
|
/** Display name for the MCP server - only letters, numbers, and spaces allowed */
|
|
@@ -379,9 +379,10 @@ export declare const WebSocketOptionsSchema: z.ZodObject<{
|
|
|
379
379
|
description: string;
|
|
380
380
|
}>>>;
|
|
381
381
|
} & {
|
|
382
|
-
type: z.
|
|
382
|
+
type: z.ZodDefault<z.ZodLiteral<"websocket">>;
|
|
383
383
|
url: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodString>, string, string>;
|
|
384
384
|
}, "strip", z.ZodTypeAny, {
|
|
385
|
+
type: "websocket";
|
|
385
386
|
url: string;
|
|
386
387
|
title?: string | undefined;
|
|
387
388
|
description?: string | undefined;
|
|
@@ -391,7 +392,6 @@ export declare const WebSocketOptionsSchema: z.ZodObject<{
|
|
|
391
392
|
sseReadTimeout?: number | undefined;
|
|
392
393
|
initTimeout?: number | undefined;
|
|
393
394
|
chatMenu?: boolean | undefined;
|
|
394
|
-
type?: "websocket" | undefined;
|
|
395
395
|
serverInstructions?: string | boolean | undefined;
|
|
396
396
|
requiresOAuth?: boolean | undefined;
|
|
397
397
|
oauth?: {
|
|
@@ -596,10 +596,11 @@ export declare const SSEOptionsSchema: z.ZodObject<{
|
|
|
596
596
|
description: string;
|
|
597
597
|
}>>>;
|
|
598
598
|
} & {
|
|
599
|
-
type: z.
|
|
599
|
+
type: z.ZodDefault<z.ZodLiteral<"sse">>;
|
|
600
600
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
601
601
|
url: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodString>, string, string>;
|
|
602
602
|
}, "strip", z.ZodTypeAny, {
|
|
603
|
+
type: "sse";
|
|
603
604
|
url: string;
|
|
604
605
|
title?: string | undefined;
|
|
605
606
|
description?: string | undefined;
|
|
@@ -609,7 +610,6 @@ export declare const SSEOptionsSchema: z.ZodObject<{
|
|
|
609
610
|
sseReadTimeout?: number | undefined;
|
|
610
611
|
initTimeout?: number | undefined;
|
|
611
612
|
chatMenu?: boolean | undefined;
|
|
612
|
-
type?: "sse" | undefined;
|
|
613
613
|
serverInstructions?: string | boolean | undefined;
|
|
614
614
|
requiresOAuth?: boolean | undefined;
|
|
615
615
|
oauth?: {
|
|
@@ -1036,7 +1036,7 @@ export declare const MCPOptionsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1036
1036
|
description: string;
|
|
1037
1037
|
}>>>;
|
|
1038
1038
|
} & {
|
|
1039
|
-
type: z.
|
|
1039
|
+
type: z.ZodDefault<z.ZodLiteral<"stdio">>;
|
|
1040
1040
|
/**
|
|
1041
1041
|
* The executable to run to start the server.
|
|
1042
1042
|
*/
|
|
@@ -1059,8 +1059,9 @@ export declare const MCPOptionsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1059
1059
|
*
|
|
1060
1060
|
* The default is "inherit", meaning messages to stderr will be printed to the parent process's stderr.
|
|
1061
1061
|
*/
|
|
1062
|
-
stderr: z.ZodOptional<z.
|
|
1062
|
+
stderr: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["pipe", "ignore", "inherit"]>, z.ZodNumber]>>;
|
|
1063
1063
|
}, "strip", z.ZodTypeAny, {
|
|
1064
|
+
type: "stdio";
|
|
1064
1065
|
command: string;
|
|
1065
1066
|
args: string[];
|
|
1066
1067
|
title?: string | undefined;
|
|
@@ -1071,7 +1072,6 @@ export declare const MCPOptionsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1071
1072
|
sseReadTimeout?: number | undefined;
|
|
1072
1073
|
initTimeout?: number | undefined;
|
|
1073
1074
|
chatMenu?: boolean | undefined;
|
|
1074
|
-
type?: "stdio" | undefined;
|
|
1075
1075
|
serverInstructions?: string | boolean | undefined;
|
|
1076
1076
|
requiresOAuth?: boolean | undefined;
|
|
1077
1077
|
oauth?: {
|
|
@@ -1102,7 +1102,7 @@ export declare const MCPOptionsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1102
1102
|
description: string;
|
|
1103
1103
|
}> | undefined;
|
|
1104
1104
|
env?: Record<string, string> | undefined;
|
|
1105
|
-
stderr?:
|
|
1105
|
+
stderr?: number | "pipe" | "ignore" | "inherit" | undefined;
|
|
1106
1106
|
}, {
|
|
1107
1107
|
command: string;
|
|
1108
1108
|
args: string[];
|
|
@@ -1145,7 +1145,7 @@ export declare const MCPOptionsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1145
1145
|
description: string;
|
|
1146
1146
|
}> | undefined;
|
|
1147
1147
|
env?: Record<string, string> | undefined;
|
|
1148
|
-
stderr?:
|
|
1148
|
+
stderr?: number | "pipe" | "ignore" | "inherit" | undefined;
|
|
1149
1149
|
}>, z.ZodObject<{
|
|
1150
1150
|
/** Display name for the MCP server - only letters, numbers, and spaces allowed */
|
|
1151
1151
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -1280,9 +1280,10 @@ export declare const MCPOptionsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1280
1280
|
description: string;
|
|
1281
1281
|
}>>>;
|
|
1282
1282
|
} & {
|
|
1283
|
-
type: z.
|
|
1283
|
+
type: z.ZodDefault<z.ZodLiteral<"websocket">>;
|
|
1284
1284
|
url: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodString>, string, string>;
|
|
1285
1285
|
}, "strip", z.ZodTypeAny, {
|
|
1286
|
+
type: "websocket";
|
|
1286
1287
|
url: string;
|
|
1287
1288
|
title?: string | undefined;
|
|
1288
1289
|
description?: string | undefined;
|
|
@@ -1292,7 +1293,6 @@ export declare const MCPOptionsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1292
1293
|
sseReadTimeout?: number | undefined;
|
|
1293
1294
|
initTimeout?: number | undefined;
|
|
1294
1295
|
chatMenu?: boolean | undefined;
|
|
1295
|
-
type?: "websocket" | undefined;
|
|
1296
1296
|
serverInstructions?: string | boolean | undefined;
|
|
1297
1297
|
requiresOAuth?: boolean | undefined;
|
|
1298
1298
|
oauth?: {
|
|
@@ -1496,10 +1496,11 @@ export declare const MCPOptionsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1496
1496
|
description: string;
|
|
1497
1497
|
}>>>;
|
|
1498
1498
|
} & {
|
|
1499
|
-
type: z.
|
|
1499
|
+
type: z.ZodDefault<z.ZodLiteral<"sse">>;
|
|
1500
1500
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1501
1501
|
url: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodString>, string, string>;
|
|
1502
1502
|
}, "strip", z.ZodTypeAny, {
|
|
1503
|
+
type: "sse";
|
|
1503
1504
|
url: string;
|
|
1504
1505
|
title?: string | undefined;
|
|
1505
1506
|
description?: string | undefined;
|
|
@@ -1509,7 +1510,6 @@ export declare const MCPOptionsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1509
1510
|
sseReadTimeout?: number | undefined;
|
|
1510
1511
|
initTimeout?: number | undefined;
|
|
1511
1512
|
chatMenu?: boolean | undefined;
|
|
1512
|
-
type?: "sse" | undefined;
|
|
1513
1513
|
serverInstructions?: string | boolean | undefined;
|
|
1514
1514
|
requiresOAuth?: boolean | undefined;
|
|
1515
1515
|
oauth?: {
|
|
@@ -1935,7 +1935,7 @@ export declare const MCPServersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.Zo
|
|
|
1935
1935
|
description: string;
|
|
1936
1936
|
}>>>;
|
|
1937
1937
|
} & {
|
|
1938
|
-
type: z.
|
|
1938
|
+
type: z.ZodDefault<z.ZodLiteral<"stdio">>;
|
|
1939
1939
|
/**
|
|
1940
1940
|
* The executable to run to start the server.
|
|
1941
1941
|
*/
|
|
@@ -1958,8 +1958,9 @@ export declare const MCPServersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.Zo
|
|
|
1958
1958
|
*
|
|
1959
1959
|
* The default is "inherit", meaning messages to stderr will be printed to the parent process's stderr.
|
|
1960
1960
|
*/
|
|
1961
|
-
stderr: z.ZodOptional<z.
|
|
1961
|
+
stderr: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["pipe", "ignore", "inherit"]>, z.ZodNumber]>>;
|
|
1962
1962
|
}, "strip", z.ZodTypeAny, {
|
|
1963
|
+
type: "stdio";
|
|
1963
1964
|
command: string;
|
|
1964
1965
|
args: string[];
|
|
1965
1966
|
title?: string | undefined;
|
|
@@ -1970,7 +1971,6 @@ export declare const MCPServersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.Zo
|
|
|
1970
1971
|
sseReadTimeout?: number | undefined;
|
|
1971
1972
|
initTimeout?: number | undefined;
|
|
1972
1973
|
chatMenu?: boolean | undefined;
|
|
1973
|
-
type?: "stdio" | undefined;
|
|
1974
1974
|
serverInstructions?: string | boolean | undefined;
|
|
1975
1975
|
requiresOAuth?: boolean | undefined;
|
|
1976
1976
|
oauth?: {
|
|
@@ -2001,7 +2001,7 @@ export declare const MCPServersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.Zo
|
|
|
2001
2001
|
description: string;
|
|
2002
2002
|
}> | undefined;
|
|
2003
2003
|
env?: Record<string, string> | undefined;
|
|
2004
|
-
stderr?:
|
|
2004
|
+
stderr?: number | "pipe" | "ignore" | "inherit" | undefined;
|
|
2005
2005
|
}, {
|
|
2006
2006
|
command: string;
|
|
2007
2007
|
args: string[];
|
|
@@ -2044,7 +2044,7 @@ export declare const MCPServersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.Zo
|
|
|
2044
2044
|
description: string;
|
|
2045
2045
|
}> | undefined;
|
|
2046
2046
|
env?: Record<string, string> | undefined;
|
|
2047
|
-
stderr?:
|
|
2047
|
+
stderr?: number | "pipe" | "ignore" | "inherit" | undefined;
|
|
2048
2048
|
}>, z.ZodObject<{
|
|
2049
2049
|
/** Display name for the MCP server - only letters, numbers, and spaces allowed */
|
|
2050
2050
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -2179,9 +2179,10 @@ export declare const MCPServersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.Zo
|
|
|
2179
2179
|
description: string;
|
|
2180
2180
|
}>>>;
|
|
2181
2181
|
} & {
|
|
2182
|
-
type: z.
|
|
2182
|
+
type: z.ZodDefault<z.ZodLiteral<"websocket">>;
|
|
2183
2183
|
url: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodString>, string, string>;
|
|
2184
2184
|
}, "strip", z.ZodTypeAny, {
|
|
2185
|
+
type: "websocket";
|
|
2185
2186
|
url: string;
|
|
2186
2187
|
title?: string | undefined;
|
|
2187
2188
|
description?: string | undefined;
|
|
@@ -2191,7 +2192,6 @@ export declare const MCPServersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.Zo
|
|
|
2191
2192
|
sseReadTimeout?: number | undefined;
|
|
2192
2193
|
initTimeout?: number | undefined;
|
|
2193
2194
|
chatMenu?: boolean | undefined;
|
|
2194
|
-
type?: "websocket" | undefined;
|
|
2195
2195
|
serverInstructions?: string | boolean | undefined;
|
|
2196
2196
|
requiresOAuth?: boolean | undefined;
|
|
2197
2197
|
oauth?: {
|
|
@@ -2395,10 +2395,11 @@ export declare const MCPServersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.Zo
|
|
|
2395
2395
|
description: string;
|
|
2396
2396
|
}>>>;
|
|
2397
2397
|
} & {
|
|
2398
|
-
type: z.
|
|
2398
|
+
type: z.ZodDefault<z.ZodLiteral<"sse">>;
|
|
2399
2399
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2400
2400
|
url: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodString>, string, string>;
|
|
2401
2401
|
}, "strip", z.ZodTypeAny, {
|
|
2402
|
+
type: "sse";
|
|
2402
2403
|
url: string;
|
|
2403
2404
|
title?: string | undefined;
|
|
2404
2405
|
description?: string | undefined;
|
|
@@ -2408,7 +2409,6 @@ export declare const MCPServersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.Zo
|
|
|
2408
2409
|
sseReadTimeout?: number | undefined;
|
|
2409
2410
|
initTimeout?: number | undefined;
|
|
2410
2411
|
chatMenu?: boolean | undefined;
|
|
2411
|
-
type?: "sse" | undefined;
|
|
2412
2412
|
serverInstructions?: string | boolean | undefined;
|
|
2413
2413
|
requiresOAuth?: boolean | undefined;
|
|
2414
2414
|
oauth?: {
|