librechat-data-provider 0.8.404 → 0.8.406
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/config.d.ts +372 -330
- package/dist/types/file-config.d.ts +18 -18
- package/dist/types/mcp.d.ts +9 -15
- package/dist/types/models.d.ts +2 -52
- package/dist/types/permissions.d.ts +23 -0
- package/dist/types/schemas.d.ts +1 -11
- package/dist/types/types.d.ts +1 -0
- package/package.json +1 -1
|
@@ -120,19 +120,19 @@ export declare const endpointFileConfigSchema: z.ZodObject<{
|
|
|
120
120
|
fileLimit: z.ZodOptional<z.ZodNumber>;
|
|
121
121
|
fileSizeLimit: z.ZodOptional<z.ZodNumber>;
|
|
122
122
|
totalSizeLimit: z.ZodOptional<z.ZodNumber>;
|
|
123
|
-
supportedMimeTypes: z.ZodOptional<z.
|
|
123
|
+
supportedMimeTypes: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
124
124
|
}, "strip", z.ZodTypeAny, {
|
|
125
125
|
disabled?: boolean | undefined;
|
|
126
126
|
fileLimit?: number | undefined;
|
|
127
127
|
fileSizeLimit?: number | undefined;
|
|
128
128
|
totalSizeLimit?: number | undefined;
|
|
129
|
-
supportedMimeTypes?:
|
|
129
|
+
supportedMimeTypes?: string[] | undefined;
|
|
130
130
|
}, {
|
|
131
131
|
disabled?: boolean | undefined;
|
|
132
132
|
fileLimit?: number | undefined;
|
|
133
133
|
fileSizeLimit?: number | undefined;
|
|
134
134
|
totalSizeLimit?: number | undefined;
|
|
135
|
-
supportedMimeTypes?:
|
|
135
|
+
supportedMimeTypes?: string[] | undefined;
|
|
136
136
|
}>;
|
|
137
137
|
export declare const fileConfigSchema: z.ZodObject<{
|
|
138
138
|
endpoints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -140,19 +140,19 @@ export declare const fileConfigSchema: z.ZodObject<{
|
|
|
140
140
|
fileLimit: z.ZodOptional<z.ZodNumber>;
|
|
141
141
|
fileSizeLimit: z.ZodOptional<z.ZodNumber>;
|
|
142
142
|
totalSizeLimit: z.ZodOptional<z.ZodNumber>;
|
|
143
|
-
supportedMimeTypes: z.ZodOptional<z.
|
|
143
|
+
supportedMimeTypes: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
144
144
|
}, "strip", z.ZodTypeAny, {
|
|
145
145
|
disabled?: boolean | undefined;
|
|
146
146
|
fileLimit?: number | undefined;
|
|
147
147
|
fileSizeLimit?: number | undefined;
|
|
148
148
|
totalSizeLimit?: number | undefined;
|
|
149
|
-
supportedMimeTypes?:
|
|
149
|
+
supportedMimeTypes?: string[] | undefined;
|
|
150
150
|
}, {
|
|
151
151
|
disabled?: boolean | undefined;
|
|
152
152
|
fileLimit?: number | undefined;
|
|
153
153
|
fileSizeLimit?: number | undefined;
|
|
154
154
|
totalSizeLimit?: number | undefined;
|
|
155
|
-
supportedMimeTypes?:
|
|
155
|
+
supportedMimeTypes?: string[] | undefined;
|
|
156
156
|
}>>>;
|
|
157
157
|
serverFileSizeLimit: z.ZodOptional<z.ZodNumber>;
|
|
158
158
|
avatarSizeLimit: z.ZodOptional<z.ZodNumber>;
|
|
@@ -184,18 +184,18 @@ export declare const fileConfigSchema: z.ZodObject<{
|
|
|
184
184
|
quality?: number | undefined;
|
|
185
185
|
}>>;
|
|
186
186
|
ocr: z.ZodOptional<z.ZodObject<{
|
|
187
|
-
supportedMimeTypes: z.ZodOptional<z.
|
|
187
|
+
supportedMimeTypes: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
188
188
|
}, "strip", z.ZodTypeAny, {
|
|
189
|
-
supportedMimeTypes?:
|
|
189
|
+
supportedMimeTypes?: string[] | undefined;
|
|
190
190
|
}, {
|
|
191
|
-
supportedMimeTypes?:
|
|
191
|
+
supportedMimeTypes?: string[] | undefined;
|
|
192
192
|
}>>;
|
|
193
193
|
text: z.ZodOptional<z.ZodObject<{
|
|
194
|
-
supportedMimeTypes: z.ZodOptional<z.
|
|
194
|
+
supportedMimeTypes: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
195
195
|
}, "strip", z.ZodTypeAny, {
|
|
196
|
-
supportedMimeTypes?:
|
|
196
|
+
supportedMimeTypes?: string[] | undefined;
|
|
197
197
|
}, {
|
|
198
|
-
supportedMimeTypes?:
|
|
198
|
+
supportedMimeTypes?: string[] | undefined;
|
|
199
199
|
}>>;
|
|
200
200
|
}, "strip", z.ZodTypeAny, {
|
|
201
201
|
endpoints?: Record<string, {
|
|
@@ -203,7 +203,7 @@ export declare const fileConfigSchema: z.ZodObject<{
|
|
|
203
203
|
fileLimit?: number | undefined;
|
|
204
204
|
fileSizeLimit?: number | undefined;
|
|
205
205
|
totalSizeLimit?: number | undefined;
|
|
206
|
-
supportedMimeTypes?:
|
|
206
|
+
supportedMimeTypes?: string[] | undefined;
|
|
207
207
|
}> | undefined;
|
|
208
208
|
serverFileSizeLimit?: number | undefined;
|
|
209
209
|
avatarSizeLimit?: number | undefined;
|
|
@@ -219,10 +219,10 @@ export declare const fileConfigSchema: z.ZodObject<{
|
|
|
219
219
|
quality?: number | undefined;
|
|
220
220
|
} | undefined;
|
|
221
221
|
ocr?: {
|
|
222
|
-
supportedMimeTypes?:
|
|
222
|
+
supportedMimeTypes?: string[] | undefined;
|
|
223
223
|
} | undefined;
|
|
224
224
|
text?: {
|
|
225
|
-
supportedMimeTypes?:
|
|
225
|
+
supportedMimeTypes?: string[] | undefined;
|
|
226
226
|
} | undefined;
|
|
227
227
|
}, {
|
|
228
228
|
endpoints?: Record<string, {
|
|
@@ -230,7 +230,7 @@ export declare const fileConfigSchema: z.ZodObject<{
|
|
|
230
230
|
fileLimit?: number | undefined;
|
|
231
231
|
fileSizeLimit?: number | undefined;
|
|
232
232
|
totalSizeLimit?: number | undefined;
|
|
233
|
-
supportedMimeTypes?:
|
|
233
|
+
supportedMimeTypes?: string[] | undefined;
|
|
234
234
|
}> | undefined;
|
|
235
235
|
serverFileSizeLimit?: number | undefined;
|
|
236
236
|
avatarSizeLimit?: number | undefined;
|
|
@@ -246,10 +246,10 @@ export declare const fileConfigSchema: z.ZodObject<{
|
|
|
246
246
|
quality?: number | undefined;
|
|
247
247
|
} | undefined;
|
|
248
248
|
ocr?: {
|
|
249
|
-
supportedMimeTypes?:
|
|
249
|
+
supportedMimeTypes?: string[] | undefined;
|
|
250
250
|
} | undefined;
|
|
251
251
|
text?: {
|
|
252
|
-
supportedMimeTypes?:
|
|
252
|
+
supportedMimeTypes?: string[] | undefined;
|
|
253
253
|
} | undefined;
|
|
254
254
|
}>;
|
|
255
255
|
export type TFileConfig = z.infer<typeof fileConfigSchema>;
|
package/dist/types/mcp.d.ts
CHANGED
|
@@ -151,11 +151,9 @@ export declare const StdioOptionsSchema: z.ZodObject<{
|
|
|
151
151
|
*/
|
|
152
152
|
env: z.ZodEffects<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>, Record<string, string> | undefined, Record<string, string> | undefined>;
|
|
153
153
|
/**
|
|
154
|
-
* How to handle stderr of the child process.
|
|
155
|
-
*
|
|
156
|
-
*
|
|
157
|
-
*
|
|
158
|
-
* The default is "inherit", meaning messages to stderr will be printed to the parent process's stderr.
|
|
154
|
+
* How to handle stderr of the child process.
|
|
155
|
+
* Accepts: 'pipe' | 'ignore' | 'inherit' | file descriptor number.
|
|
156
|
+
* Defaults to "inherit".
|
|
159
157
|
*/
|
|
160
158
|
stderr: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["pipe", "ignore", "inherit"]>, z.ZodNumber]>>;
|
|
161
159
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1053,11 +1051,9 @@ export declare const MCPOptionsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1053
1051
|
*/
|
|
1054
1052
|
env: z.ZodEffects<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>, Record<string, string> | undefined, Record<string, string> | undefined>;
|
|
1055
1053
|
/**
|
|
1056
|
-
* How to handle stderr of the child process.
|
|
1057
|
-
*
|
|
1058
|
-
*
|
|
1059
|
-
*
|
|
1060
|
-
* The default is "inherit", meaning messages to stderr will be printed to the parent process's stderr.
|
|
1054
|
+
* How to handle stderr of the child process.
|
|
1055
|
+
* Accepts: 'pipe' | 'ignore' | 'inherit' | file descriptor number.
|
|
1056
|
+
* Defaults to "inherit".
|
|
1061
1057
|
*/
|
|
1062
1058
|
stderr: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["pipe", "ignore", "inherit"]>, z.ZodNumber]>>;
|
|
1063
1059
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1952,11 +1948,9 @@ export declare const MCPServersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.Zo
|
|
|
1952
1948
|
*/
|
|
1953
1949
|
env: z.ZodEffects<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>, Record<string, string> | undefined, Record<string, string> | undefined>;
|
|
1954
1950
|
/**
|
|
1955
|
-
* How to handle stderr of the child process.
|
|
1956
|
-
*
|
|
1957
|
-
*
|
|
1958
|
-
*
|
|
1959
|
-
* The default is "inherit", meaning messages to stderr will be printed to the parent process's stderr.
|
|
1951
|
+
* How to handle stderr of the child process.
|
|
1952
|
+
* Accepts: 'pipe' | 'ignore' | 'inherit' | file descriptor number.
|
|
1953
|
+
* Defaults to "inherit".
|
|
1960
1954
|
*/
|
|
1961
1955
|
stderr: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["pipe", "ignore", "inherit"]>, z.ZodNumber]>>;
|
|
1962
1956
|
}, "strip", z.ZodTypeAny, {
|
package/dist/types/models.d.ts
CHANGED
|
@@ -230,11 +230,9 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
230
230
|
defaultPreset: z.ZodOptional<z.ZodBoolean>;
|
|
231
231
|
order: z.ZodOptional<z.ZodNumber>;
|
|
232
232
|
endpoint: z.ZodNullable<z.ZodUnion<[z.ZodNativeEnum<typeof EModelEndpoint>, z.ZodString]>>;
|
|
233
|
-
}, "isArchived" | "user" | "messages" | "parentMessageId" | "tags" | "file_ids" | "presetOverride" | "greeting" | "spec" | "iconURL" | "expiredAt" | "resendImages" | "chatGptLabel">, "strip", z.ZodTypeAny, {
|
|
233
|
+
}, "conversationId" | "isArchived" | "title" | "user" | "messages" | "parentMessageId" | "tags" | "file_ids" | "presetOverride" | "greeting" | "spec" | "iconURL" | "expiredAt" | "resendImages" | "chatGptLabel" | "presetId" | "defaultPreset" | "order">, "strip", z.ZodTypeAny, {
|
|
234
234
|
endpoint: string | null;
|
|
235
|
-
conversationId?: string | null | undefined;
|
|
236
235
|
endpointType?: EModelEndpoint | null | undefined;
|
|
237
|
-
title?: string | null | undefined;
|
|
238
236
|
tools?: string[] | {
|
|
239
237
|
name: string;
|
|
240
238
|
pluginKey: string;
|
|
@@ -323,14 +321,9 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
323
321
|
append_current_datetime?: boolean | undefined;
|
|
324
322
|
stop?: string[] | undefined;
|
|
325
323
|
fileTokenLimit?: number | undefined;
|
|
326
|
-
presetId?: string | null | undefined;
|
|
327
|
-
defaultPreset?: boolean | undefined;
|
|
328
|
-
order?: number | undefined;
|
|
329
324
|
}, {
|
|
330
325
|
endpoint: string | null;
|
|
331
|
-
conversationId?: string | null | undefined;
|
|
332
326
|
endpointType?: EModelEndpoint | null | undefined;
|
|
333
|
-
title?: string | null | undefined;
|
|
334
327
|
tools?: string[] | {
|
|
335
328
|
name: string;
|
|
336
329
|
pluginKey: string;
|
|
@@ -419,9 +412,6 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
419
412
|
append_current_datetime?: boolean | undefined;
|
|
420
413
|
stop?: string[] | undefined;
|
|
421
414
|
fileTokenLimit?: string | number | undefined;
|
|
422
|
-
presetId?: string | null | undefined;
|
|
423
|
-
defaultPreset?: boolean | undefined;
|
|
424
|
-
order?: number | undefined;
|
|
425
415
|
}>;
|
|
426
416
|
order: z.ZodOptional<z.ZodNumber>;
|
|
427
417
|
default: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -442,9 +432,7 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
442
432
|
label: string;
|
|
443
433
|
preset: {
|
|
444
434
|
endpoint: string | null;
|
|
445
|
-
conversationId?: string | null | undefined;
|
|
446
435
|
endpointType?: EModelEndpoint | null | undefined;
|
|
447
|
-
title?: string | null | undefined;
|
|
448
436
|
tools?: string[] | {
|
|
449
437
|
name: string;
|
|
450
438
|
pluginKey: string;
|
|
@@ -533,9 +521,6 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
533
521
|
append_current_datetime?: boolean | undefined;
|
|
534
522
|
stop?: string[] | undefined;
|
|
535
523
|
fileTokenLimit?: number | undefined;
|
|
536
|
-
presetId?: string | null | undefined;
|
|
537
|
-
defaultPreset?: boolean | undefined;
|
|
538
|
-
order?: number | undefined;
|
|
539
524
|
};
|
|
540
525
|
description?: string | undefined;
|
|
541
526
|
artifacts?: string | boolean | undefined;
|
|
@@ -556,9 +541,7 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
556
541
|
label: string;
|
|
557
542
|
preset: {
|
|
558
543
|
endpoint: string | null;
|
|
559
|
-
conversationId?: string | null | undefined;
|
|
560
544
|
endpointType?: EModelEndpoint | null | undefined;
|
|
561
|
-
title?: string | null | undefined;
|
|
562
545
|
tools?: string[] | {
|
|
563
546
|
name: string;
|
|
564
547
|
pluginKey: string;
|
|
@@ -647,9 +630,6 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
647
630
|
append_current_datetime?: boolean | undefined;
|
|
648
631
|
stop?: string[] | undefined;
|
|
649
632
|
fileTokenLimit?: string | number | undefined;
|
|
650
|
-
presetId?: string | null | undefined;
|
|
651
|
-
defaultPreset?: boolean | undefined;
|
|
652
|
-
order?: number | undefined;
|
|
653
633
|
};
|
|
654
634
|
description?: string | undefined;
|
|
655
635
|
artifacts?: string | boolean | undefined;
|
|
@@ -868,11 +848,9 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
868
848
|
defaultPreset: z.ZodOptional<z.ZodBoolean>;
|
|
869
849
|
order: z.ZodOptional<z.ZodNumber>;
|
|
870
850
|
endpoint: z.ZodNullable<z.ZodUnion<[z.ZodNativeEnum<typeof EModelEndpoint>, z.ZodString]>>;
|
|
871
|
-
}, "isArchived" | "user" | "messages" | "parentMessageId" | "tags" | "file_ids" | "presetOverride" | "greeting" | "spec" | "iconURL" | "expiredAt" | "resendImages" | "chatGptLabel">, "strip", z.ZodTypeAny, {
|
|
851
|
+
}, "conversationId" | "isArchived" | "title" | "user" | "messages" | "parentMessageId" | "tags" | "file_ids" | "presetOverride" | "greeting" | "spec" | "iconURL" | "expiredAt" | "resendImages" | "chatGptLabel" | "presetId" | "defaultPreset" | "order">, "strip", z.ZodTypeAny, {
|
|
872
852
|
endpoint: string | null;
|
|
873
|
-
conversationId?: string | null | undefined;
|
|
874
853
|
endpointType?: EModelEndpoint | null | undefined;
|
|
875
|
-
title?: string | null | undefined;
|
|
876
854
|
tools?: string[] | {
|
|
877
855
|
name: string;
|
|
878
856
|
pluginKey: string;
|
|
@@ -961,14 +939,9 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
961
939
|
append_current_datetime?: boolean | undefined;
|
|
962
940
|
stop?: string[] | undefined;
|
|
963
941
|
fileTokenLimit?: number | undefined;
|
|
964
|
-
presetId?: string | null | undefined;
|
|
965
|
-
defaultPreset?: boolean | undefined;
|
|
966
|
-
order?: number | undefined;
|
|
967
942
|
}, {
|
|
968
943
|
endpoint: string | null;
|
|
969
|
-
conversationId?: string | null | undefined;
|
|
970
944
|
endpointType?: EModelEndpoint | null | undefined;
|
|
971
|
-
title?: string | null | undefined;
|
|
972
945
|
tools?: string[] | {
|
|
973
946
|
name: string;
|
|
974
947
|
pluginKey: string;
|
|
@@ -1057,9 +1030,6 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1057
1030
|
append_current_datetime?: boolean | undefined;
|
|
1058
1031
|
stop?: string[] | undefined;
|
|
1059
1032
|
fileTokenLimit?: string | number | undefined;
|
|
1060
|
-
presetId?: string | null | undefined;
|
|
1061
|
-
defaultPreset?: boolean | undefined;
|
|
1062
|
-
order?: number | undefined;
|
|
1063
1033
|
}>;
|
|
1064
1034
|
order: z.ZodOptional<z.ZodNumber>;
|
|
1065
1035
|
default: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1080,9 +1050,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1080
1050
|
label: string;
|
|
1081
1051
|
preset: {
|
|
1082
1052
|
endpoint: string | null;
|
|
1083
|
-
conversationId?: string | null | undefined;
|
|
1084
1053
|
endpointType?: EModelEndpoint | null | undefined;
|
|
1085
|
-
title?: string | null | undefined;
|
|
1086
1054
|
tools?: string[] | {
|
|
1087
1055
|
name: string;
|
|
1088
1056
|
pluginKey: string;
|
|
@@ -1171,9 +1139,6 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1171
1139
|
append_current_datetime?: boolean | undefined;
|
|
1172
1140
|
stop?: string[] | undefined;
|
|
1173
1141
|
fileTokenLimit?: number | undefined;
|
|
1174
|
-
presetId?: string | null | undefined;
|
|
1175
|
-
defaultPreset?: boolean | undefined;
|
|
1176
|
-
order?: number | undefined;
|
|
1177
1142
|
};
|
|
1178
1143
|
description?: string | undefined;
|
|
1179
1144
|
artifacts?: string | boolean | undefined;
|
|
@@ -1194,9 +1159,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1194
1159
|
label: string;
|
|
1195
1160
|
preset: {
|
|
1196
1161
|
endpoint: string | null;
|
|
1197
|
-
conversationId?: string | null | undefined;
|
|
1198
1162
|
endpointType?: EModelEndpoint | null | undefined;
|
|
1199
|
-
title?: string | null | undefined;
|
|
1200
1163
|
tools?: string[] | {
|
|
1201
1164
|
name: string;
|
|
1202
1165
|
pluginKey: string;
|
|
@@ -1285,9 +1248,6 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1285
1248
|
append_current_datetime?: boolean | undefined;
|
|
1286
1249
|
stop?: string[] | undefined;
|
|
1287
1250
|
fileTokenLimit?: string | number | undefined;
|
|
1288
|
-
presetId?: string | null | undefined;
|
|
1289
|
-
defaultPreset?: boolean | undefined;
|
|
1290
|
-
order?: number | undefined;
|
|
1291
1251
|
};
|
|
1292
1252
|
description?: string | undefined;
|
|
1293
1253
|
artifacts?: string | boolean | undefined;
|
|
@@ -1313,9 +1273,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1313
1273
|
label: string;
|
|
1314
1274
|
preset: {
|
|
1315
1275
|
endpoint: string | null;
|
|
1316
|
-
conversationId?: string | null | undefined;
|
|
1317
1276
|
endpointType?: EModelEndpoint | null | undefined;
|
|
1318
|
-
title?: string | null | undefined;
|
|
1319
1277
|
tools?: string[] | {
|
|
1320
1278
|
name: string;
|
|
1321
1279
|
pluginKey: string;
|
|
@@ -1404,9 +1362,6 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1404
1362
|
append_current_datetime?: boolean | undefined;
|
|
1405
1363
|
stop?: string[] | undefined;
|
|
1406
1364
|
fileTokenLimit?: number | undefined;
|
|
1407
|
-
presetId?: string | null | undefined;
|
|
1408
|
-
defaultPreset?: boolean | undefined;
|
|
1409
|
-
order?: number | undefined;
|
|
1410
1365
|
};
|
|
1411
1366
|
description?: string | undefined;
|
|
1412
1367
|
artifacts?: string | boolean | undefined;
|
|
@@ -1430,9 +1385,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1430
1385
|
label: string;
|
|
1431
1386
|
preset: {
|
|
1432
1387
|
endpoint: string | null;
|
|
1433
|
-
conversationId?: string | null | undefined;
|
|
1434
1388
|
endpointType?: EModelEndpoint | null | undefined;
|
|
1435
|
-
title?: string | null | undefined;
|
|
1436
1389
|
tools?: string[] | {
|
|
1437
1390
|
name: string;
|
|
1438
1391
|
pluginKey: string;
|
|
@@ -1521,9 +1474,6 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1521
1474
|
append_current_datetime?: boolean | undefined;
|
|
1522
1475
|
stop?: string[] | undefined;
|
|
1523
1476
|
fileTokenLimit?: string | number | undefined;
|
|
1524
|
-
presetId?: string | null | undefined;
|
|
1525
|
-
defaultPreset?: boolean | undefined;
|
|
1526
|
-
order?: number | undefined;
|
|
1527
1477
|
};
|
|
1528
1478
|
description?: string | undefined;
|
|
1529
1479
|
artifacts?: string | boolean | undefined;
|
|
@@ -60,6 +60,29 @@ export declare enum PermissionTypes {
|
|
|
60
60
|
*/
|
|
61
61
|
REMOTE_AGENTS = "REMOTE_AGENTS"
|
|
62
62
|
}
|
|
63
|
+
/**
|
|
64
|
+
* Maps PermissionTypes to their corresponding `interface` config field names.
|
|
65
|
+
* Used to identify which interface fields seed role permissions at startup
|
|
66
|
+
* and must NOT be overridden via DB config (use the role permissions editor instead).
|
|
67
|
+
*/
|
|
68
|
+
export declare const PERMISSION_TYPE_INTERFACE_FIELDS: Record<PermissionTypes, string>;
|
|
69
|
+
/** Set of interface config field names that correspond to role permissions. */
|
|
70
|
+
export declare const INTERFACE_PERMISSION_FIELDS: Set<string>;
|
|
71
|
+
/**
|
|
72
|
+
* YAML sub-keys within composite interface permission fields that map to permission bits.
|
|
73
|
+
* When an interface permission field is an object, only these sub-keys are stripped from
|
|
74
|
+
* DB overrides — other sub-keys (like `placeholder`, `trustCheckbox`) are UI-only and pass through.
|
|
75
|
+
*
|
|
76
|
+
* Mapping to Permissions enum:
|
|
77
|
+
* 'use' → Permissions.USE (agents, prompts, mcpServers, remoteAgents, marketplace)
|
|
78
|
+
* 'create' → Permissions.CREATE (agents, prompts, mcpServers, remoteAgents)
|
|
79
|
+
* 'share' → Permissions.SHARE (agents, prompts, mcpServers, remoteAgents)
|
|
80
|
+
* 'public' → Permissions.SHARE_PUBLIC (agents, prompts, mcpServers, remoteAgents)
|
|
81
|
+
* 'users' → Permissions.VIEW_USERS (peoplePicker only)
|
|
82
|
+
* 'groups' → Permissions.VIEW_GROUPS (peoplePicker only)
|
|
83
|
+
* 'roles' → Permissions.VIEW_ROLES (peoplePicker only)
|
|
84
|
+
*/
|
|
85
|
+
export declare const PERMISSION_SUB_KEYS: Set<string>;
|
|
63
86
|
/**
|
|
64
87
|
* Enum for Role-Based Access Control Constants
|
|
65
88
|
*/
|
package/dist/types/schemas.d.ts
CHANGED
|
@@ -2190,11 +2190,9 @@ export declare const tModelSpecPresetSchema: z.ZodObject<Omit<{
|
|
|
2190
2190
|
defaultPreset: z.ZodOptional<z.ZodBoolean>;
|
|
2191
2191
|
order: z.ZodOptional<z.ZodNumber>;
|
|
2192
2192
|
endpoint: z.ZodNullable<z.ZodUnion<[z.ZodNativeEnum<typeof EModelEndpoint>, z.ZodString]>>;
|
|
2193
|
-
}, "parentMessageId" | "iconURL" | "user" | "isArchived" | "messages" | "tags" | "file_ids" | "presetOverride" | "greeting" | "spec" | "expiredAt" | "resendImages" | "chatGptLabel">, "strip", z.ZodTypeAny, {
|
|
2193
|
+
}, "conversationId" | "parentMessageId" | "title" | "iconURL" | "user" | "isArchived" | "messages" | "tags" | "file_ids" | "presetOverride" | "greeting" | "spec" | "expiredAt" | "resendImages" | "chatGptLabel" | "presetId" | "defaultPreset" | "order">, "strip", z.ZodTypeAny, {
|
|
2194
2194
|
endpoint: string | null;
|
|
2195
|
-
conversationId?: string | null | undefined;
|
|
2196
2195
|
model?: string | null | undefined;
|
|
2197
|
-
title?: string | null | undefined;
|
|
2198
2196
|
context?: string | null | undefined;
|
|
2199
2197
|
endpointType?: EModelEndpoint | null | undefined;
|
|
2200
2198
|
tools?: string[] | {
|
|
@@ -2259,14 +2257,9 @@ export declare const tModelSpecPresetSchema: z.ZodObject<Omit<{
|
|
|
2259
2257
|
append_current_datetime?: boolean | undefined;
|
|
2260
2258
|
stop?: string[] | undefined;
|
|
2261
2259
|
fileTokenLimit?: number | undefined;
|
|
2262
|
-
presetId?: string | null | undefined;
|
|
2263
|
-
defaultPreset?: boolean | undefined;
|
|
2264
|
-
order?: number | undefined;
|
|
2265
2260
|
}, {
|
|
2266
2261
|
endpoint: string | null;
|
|
2267
|
-
conversationId?: string | null | undefined;
|
|
2268
2262
|
model?: string | null | undefined;
|
|
2269
|
-
title?: string | null | undefined;
|
|
2270
2263
|
context?: string | null | undefined;
|
|
2271
2264
|
endpointType?: EModelEndpoint | null | undefined;
|
|
2272
2265
|
tools?: string[] | {
|
|
@@ -2331,9 +2324,6 @@ export declare const tModelSpecPresetSchema: z.ZodObject<Omit<{
|
|
|
2331
2324
|
append_current_datetime?: boolean | undefined;
|
|
2332
2325
|
stop?: string[] | undefined;
|
|
2333
2326
|
fileTokenLimit?: string | number | undefined;
|
|
2334
|
-
presetId?: string | null | undefined;
|
|
2335
|
-
defaultPreset?: boolean | undefined;
|
|
2336
|
-
order?: number | undefined;
|
|
2337
2327
|
}>;
|
|
2338
2328
|
export type TModelSpecPreset = z.infer<typeof tModelSpecPresetSchema>;
|
|
2339
2329
|
export type TPreset = z.infer<typeof tPresetSchema>;
|
package/dist/types/types.d.ts
CHANGED