librechat-data-provider 0.8.502 → 0.8.503
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 +2 -1
- package/dist/types/bedrock.d.ts +6 -0
- package/dist/types/config.d.ts +684 -52
- package/dist/types/data-service.d.ts +5 -2
- package/dist/types/generate.d.ts +2 -0
- package/dist/types/mcp.d.ts +1304 -58
- package/dist/types/models.d.ts +22 -0
- package/dist/types/parameterSettings.d.ts +6 -0
- package/dist/types/parameterSettings.spec.d.ts +1 -0
- package/dist/types/schemas.d.ts +54 -13
- package/dist/types/types/mutations.d.ts +1 -0
- package/dist/types/types.d.ts +9 -3
- package/package.json +1 -1
package/dist/types/models.d.ts
CHANGED
|
@@ -25,6 +25,8 @@ export type TModelSpec = {
|
|
|
25
25
|
showIconInHeader?: boolean;
|
|
26
26
|
iconURL?: string | EModelEndpoint;
|
|
27
27
|
authType?: AuthType;
|
|
28
|
+
/** Hide the chat input tool badge row while this model spec is active. */
|
|
29
|
+
hideBadgeRow?: boolean;
|
|
28
30
|
webSearch?: boolean;
|
|
29
31
|
fileSearch?: boolean;
|
|
30
32
|
executeCode?: boolean;
|
|
@@ -221,6 +223,7 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
221
223
|
spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
222
224
|
iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
223
225
|
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
226
|
+
isTemporary: z.ZodOptional<z.ZodBoolean>;
|
|
224
227
|
fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
225
228
|
resendImages: z.ZodOptional<z.ZodBoolean>;
|
|
226
229
|
chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -324,6 +327,7 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
324
327
|
stop?: string[] | undefined;
|
|
325
328
|
greeting?: string | undefined;
|
|
326
329
|
iconURL?: string | null | undefined;
|
|
330
|
+
isTemporary?: boolean | undefined;
|
|
327
331
|
fileTokenLimit?: number | undefined;
|
|
328
332
|
}, {
|
|
329
333
|
endpoint: string | null;
|
|
@@ -418,6 +422,7 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
418
422
|
stop?: string[] | undefined;
|
|
419
423
|
greeting?: string | undefined;
|
|
420
424
|
iconURL?: string | null | undefined;
|
|
425
|
+
isTemporary?: boolean | undefined;
|
|
421
426
|
fileTokenLimit?: string | number | undefined;
|
|
422
427
|
}>;
|
|
423
428
|
order: z.ZodOptional<z.ZodNumber>;
|
|
@@ -429,6 +434,7 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
429
434
|
showIconInHeader: z.ZodOptional<z.ZodBoolean>;
|
|
430
435
|
iconURL: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<typeof EModelEndpoint>]>>;
|
|
431
436
|
authType: z.ZodOptional<z.ZodNativeEnum<typeof AuthType>>;
|
|
437
|
+
hideBadgeRow: z.ZodOptional<z.ZodBoolean>;
|
|
432
438
|
webSearch: z.ZodOptional<z.ZodBoolean>;
|
|
433
439
|
fileSearch: z.ZodOptional<z.ZodBoolean>;
|
|
434
440
|
executeCode: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -530,6 +536,7 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
530
536
|
stop?: string[] | undefined;
|
|
531
537
|
greeting?: string | undefined;
|
|
532
538
|
iconURL?: string | null | undefined;
|
|
539
|
+
isTemporary?: boolean | undefined;
|
|
533
540
|
fileTokenLimit?: number | undefined;
|
|
534
541
|
};
|
|
535
542
|
description?: string | undefined;
|
|
@@ -542,6 +549,7 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
542
549
|
showIconInMenu?: boolean | undefined;
|
|
543
550
|
showIconInHeader?: boolean | undefined;
|
|
544
551
|
authType?: AuthType | undefined;
|
|
552
|
+
hideBadgeRow?: boolean | undefined;
|
|
545
553
|
webSearch?: boolean | undefined;
|
|
546
554
|
fileSearch?: boolean | undefined;
|
|
547
555
|
executeCode?: boolean | undefined;
|
|
@@ -642,6 +650,7 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
642
650
|
stop?: string[] | undefined;
|
|
643
651
|
greeting?: string | undefined;
|
|
644
652
|
iconURL?: string | null | undefined;
|
|
653
|
+
isTemporary?: boolean | undefined;
|
|
645
654
|
fileTokenLimit?: string | number | undefined;
|
|
646
655
|
};
|
|
647
656
|
description?: string | undefined;
|
|
@@ -654,6 +663,7 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
654
663
|
showIconInMenu?: boolean | undefined;
|
|
655
664
|
showIconInHeader?: boolean | undefined;
|
|
656
665
|
authType?: AuthType | undefined;
|
|
666
|
+
hideBadgeRow?: boolean | undefined;
|
|
657
667
|
webSearch?: boolean | undefined;
|
|
658
668
|
fileSearch?: boolean | undefined;
|
|
659
669
|
executeCode?: boolean | undefined;
|
|
@@ -852,6 +862,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
852
862
|
spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
853
863
|
iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
854
864
|
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
865
|
+
isTemporary: z.ZodOptional<z.ZodBoolean>;
|
|
855
866
|
fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
856
867
|
resendImages: z.ZodOptional<z.ZodBoolean>;
|
|
857
868
|
chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -955,6 +966,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
955
966
|
stop?: string[] | undefined;
|
|
956
967
|
greeting?: string | undefined;
|
|
957
968
|
iconURL?: string | null | undefined;
|
|
969
|
+
isTemporary?: boolean | undefined;
|
|
958
970
|
fileTokenLimit?: number | undefined;
|
|
959
971
|
}, {
|
|
960
972
|
endpoint: string | null;
|
|
@@ -1049,6 +1061,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1049
1061
|
stop?: string[] | undefined;
|
|
1050
1062
|
greeting?: string | undefined;
|
|
1051
1063
|
iconURL?: string | null | undefined;
|
|
1064
|
+
isTemporary?: boolean | undefined;
|
|
1052
1065
|
fileTokenLimit?: string | number | undefined;
|
|
1053
1066
|
}>;
|
|
1054
1067
|
order: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1060,6 +1073,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1060
1073
|
showIconInHeader: z.ZodOptional<z.ZodBoolean>;
|
|
1061
1074
|
iconURL: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<typeof EModelEndpoint>]>>;
|
|
1062
1075
|
authType: z.ZodOptional<z.ZodNativeEnum<typeof AuthType>>;
|
|
1076
|
+
hideBadgeRow: z.ZodOptional<z.ZodBoolean>;
|
|
1063
1077
|
webSearch: z.ZodOptional<z.ZodBoolean>;
|
|
1064
1078
|
fileSearch: z.ZodOptional<z.ZodBoolean>;
|
|
1065
1079
|
executeCode: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1161,6 +1175,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1161
1175
|
stop?: string[] | undefined;
|
|
1162
1176
|
greeting?: string | undefined;
|
|
1163
1177
|
iconURL?: string | null | undefined;
|
|
1178
|
+
isTemporary?: boolean | undefined;
|
|
1164
1179
|
fileTokenLimit?: number | undefined;
|
|
1165
1180
|
};
|
|
1166
1181
|
description?: string | undefined;
|
|
@@ -1173,6 +1188,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1173
1188
|
showIconInMenu?: boolean | undefined;
|
|
1174
1189
|
showIconInHeader?: boolean | undefined;
|
|
1175
1190
|
authType?: AuthType | undefined;
|
|
1191
|
+
hideBadgeRow?: boolean | undefined;
|
|
1176
1192
|
webSearch?: boolean | undefined;
|
|
1177
1193
|
fileSearch?: boolean | undefined;
|
|
1178
1194
|
executeCode?: boolean | undefined;
|
|
@@ -1273,6 +1289,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1273
1289
|
stop?: string[] | undefined;
|
|
1274
1290
|
greeting?: string | undefined;
|
|
1275
1291
|
iconURL?: string | null | undefined;
|
|
1292
|
+
isTemporary?: boolean | undefined;
|
|
1276
1293
|
fileTokenLimit?: string | number | undefined;
|
|
1277
1294
|
};
|
|
1278
1295
|
description?: string | undefined;
|
|
@@ -1285,6 +1302,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1285
1302
|
showIconInMenu?: boolean | undefined;
|
|
1286
1303
|
showIconInHeader?: boolean | undefined;
|
|
1287
1304
|
authType?: AuthType | undefined;
|
|
1305
|
+
hideBadgeRow?: boolean | undefined;
|
|
1288
1306
|
webSearch?: boolean | undefined;
|
|
1289
1307
|
fileSearch?: boolean | undefined;
|
|
1290
1308
|
executeCode?: boolean | undefined;
|
|
@@ -1390,6 +1408,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1390
1408
|
stop?: string[] | undefined;
|
|
1391
1409
|
greeting?: string | undefined;
|
|
1392
1410
|
iconURL?: string | null | undefined;
|
|
1411
|
+
isTemporary?: boolean | undefined;
|
|
1393
1412
|
fileTokenLimit?: number | undefined;
|
|
1394
1413
|
};
|
|
1395
1414
|
description?: string | undefined;
|
|
@@ -1402,6 +1421,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1402
1421
|
showIconInMenu?: boolean | undefined;
|
|
1403
1422
|
showIconInHeader?: boolean | undefined;
|
|
1404
1423
|
authType?: AuthType | undefined;
|
|
1424
|
+
hideBadgeRow?: boolean | undefined;
|
|
1405
1425
|
webSearch?: boolean | undefined;
|
|
1406
1426
|
fileSearch?: boolean | undefined;
|
|
1407
1427
|
executeCode?: boolean | undefined;
|
|
@@ -1507,6 +1527,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1507
1527
|
stop?: string[] | undefined;
|
|
1508
1528
|
greeting?: string | undefined;
|
|
1509
1529
|
iconURL?: string | null | undefined;
|
|
1530
|
+
isTemporary?: boolean | undefined;
|
|
1510
1531
|
fileTokenLimit?: string | number | undefined;
|
|
1511
1532
|
};
|
|
1512
1533
|
description?: string | undefined;
|
|
@@ -1519,6 +1540,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1519
1540
|
showIconInMenu?: boolean | undefined;
|
|
1520
1541
|
showIconInHeader?: boolean | undefined;
|
|
1521
1542
|
authType?: AuthType | undefined;
|
|
1543
|
+
hideBadgeRow?: boolean | undefined;
|
|
1522
1544
|
webSearch?: boolean | undefined;
|
|
1523
1545
|
fileSearch?: boolean | undefined;
|
|
1524
1546
|
executeCode?: boolean | undefined;
|
|
@@ -67,3 +67,9 @@ export declare const presetSettings: Record<string, {
|
|
|
67
67
|
col2: SettingsConfiguration;
|
|
68
68
|
} | undefined>;
|
|
69
69
|
export declare const agentParamSettings: Record<string, SettingsConfiguration | undefined>;
|
|
70
|
+
/**
|
|
71
|
+
* Resolves model-aware defaults for a settings configuration before rendering.
|
|
72
|
+
* Google's `maxOutputTokens` default depends on the selected Gemini model so that
|
|
73
|
+
* current models (2.5 and 3+) surface their 64K output limit instead of the legacy 8K value.
|
|
74
|
+
*/
|
|
75
|
+
export declare function applyModelAwareDefaults(settings: SettingsConfiguration, endpoint: string, model?: string): SettingsConfiguration;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/types/schemas.d.ts
CHANGED
|
@@ -249,9 +249,11 @@ export declare const googleSettings: {
|
|
|
249
249
|
};
|
|
250
250
|
maxOutputTokens: {
|
|
251
251
|
min: 1;
|
|
252
|
-
max:
|
|
252
|
+
max: 65535;
|
|
253
253
|
step: 1;
|
|
254
254
|
default: 8192;
|
|
255
|
+
reset: (modelName: string) => number;
|
|
256
|
+
set: (value: number, modelName: string) => number;
|
|
255
257
|
};
|
|
256
258
|
temperature: {
|
|
257
259
|
min: 0;
|
|
@@ -314,7 +316,7 @@ export declare const anthropicSettings: {
|
|
|
314
316
|
max: 128000;
|
|
315
317
|
step: 1;
|
|
316
318
|
default: 8192;
|
|
317
|
-
reset: (modelName: string) =>
|
|
319
|
+
reset: (modelName: string) => 8192 | 32000 | 128000 | 64000;
|
|
318
320
|
set: (value: number, modelName: string) => number;
|
|
319
321
|
};
|
|
320
322
|
topP: {
|
|
@@ -447,9 +449,11 @@ export declare const endpointSettings: {
|
|
|
447
449
|
};
|
|
448
450
|
maxOutputTokens: {
|
|
449
451
|
min: 1;
|
|
450
|
-
max:
|
|
452
|
+
max: 65535;
|
|
451
453
|
step: 1;
|
|
452
454
|
default: 8192;
|
|
455
|
+
reset: (modelName: string) => number;
|
|
456
|
+
set: (value: number, modelName: string) => number;
|
|
453
457
|
};
|
|
454
458
|
temperature: {
|
|
455
459
|
min: 0;
|
|
@@ -512,7 +516,7 @@ export declare const endpointSettings: {
|
|
|
512
516
|
max: 128000;
|
|
513
517
|
step: 1;
|
|
514
518
|
default: 8192;
|
|
515
|
-
reset: (modelName: string) =>
|
|
519
|
+
reset: (modelName: string) => 8192 | 32000 | 128000 | 64000;
|
|
516
520
|
set: (value: number, modelName: string) => number;
|
|
517
521
|
};
|
|
518
522
|
topP: {
|
|
@@ -762,6 +766,8 @@ export declare const tMessageSchema: z.ZodObject<{
|
|
|
762
766
|
/** @deprecated */
|
|
763
767
|
generation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
764
768
|
isCreatedByUser: z.ZodBoolean;
|
|
769
|
+
isTemporary: z.ZodOptional<z.ZodBoolean>;
|
|
770
|
+
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
765
771
|
error: z.ZodOptional<z.ZodBoolean>;
|
|
766
772
|
clientTimestamp: z.ZodOptional<z.ZodString>;
|
|
767
773
|
createdAt: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -831,6 +837,8 @@ export declare const tMessageSchema: z.ZodObject<{
|
|
|
831
837
|
model?: string | null | undefined;
|
|
832
838
|
sender?: string | undefined;
|
|
833
839
|
generation?: string | null | undefined;
|
|
840
|
+
isTemporary?: boolean | undefined;
|
|
841
|
+
expiredAt?: string | null | undefined;
|
|
834
842
|
error?: boolean | undefined;
|
|
835
843
|
clientTimestamp?: string | undefined;
|
|
836
844
|
current?: boolean | undefined;
|
|
@@ -866,6 +874,8 @@ export declare const tMessageSchema: z.ZodObject<{
|
|
|
866
874
|
title?: string | null | undefined;
|
|
867
875
|
sender?: string | undefined;
|
|
868
876
|
generation?: string | null | undefined;
|
|
877
|
+
isTemporary?: boolean | undefined;
|
|
878
|
+
expiredAt?: string | null | undefined;
|
|
869
879
|
error?: boolean | undefined;
|
|
870
880
|
clientTimestamp?: string | undefined;
|
|
871
881
|
createdAt?: string | undefined;
|
|
@@ -1073,6 +1083,7 @@ export declare const tConversationSchema: z.ZodObject<{
|
|
|
1073
1083
|
spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1074
1084
|
iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1075
1085
|
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1086
|
+
isTemporary: z.ZodOptional<z.ZodBoolean>;
|
|
1076
1087
|
fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
1077
1088
|
/** @deprecated */
|
|
1078
1089
|
resendImages: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1086,6 +1097,8 @@ export declare const tConversationSchema: z.ZodObject<{
|
|
|
1086
1097
|
updatedAt: string;
|
|
1087
1098
|
parentMessageId?: string | undefined;
|
|
1088
1099
|
model?: string | null | undefined;
|
|
1100
|
+
isTemporary?: boolean | undefined;
|
|
1101
|
+
expiredAt?: string | null | undefined;
|
|
1089
1102
|
iconURL?: string | null | undefined;
|
|
1090
1103
|
user?: string | undefined;
|
|
1091
1104
|
context?: string | null | undefined;
|
|
@@ -1159,7 +1172,6 @@ export declare const tConversationSchema: z.ZodObject<{
|
|
|
1159
1172
|
stop?: string[] | undefined;
|
|
1160
1173
|
greeting?: string | undefined;
|
|
1161
1174
|
spec?: string | null | undefined;
|
|
1162
|
-
expiredAt?: string | null | undefined;
|
|
1163
1175
|
fileTokenLimit?: number | undefined;
|
|
1164
1176
|
resendImages?: boolean | undefined;
|
|
1165
1177
|
chatGptLabel?: string | null | undefined;
|
|
@@ -1171,6 +1183,8 @@ export declare const tConversationSchema: z.ZodObject<{
|
|
|
1171
1183
|
parentMessageId?: string | undefined;
|
|
1172
1184
|
model?: string | null | undefined;
|
|
1173
1185
|
title?: string | null | undefined;
|
|
1186
|
+
isTemporary?: boolean | undefined;
|
|
1187
|
+
expiredAt?: string | null | undefined;
|
|
1174
1188
|
iconURL?: string | null | undefined;
|
|
1175
1189
|
user?: string | undefined;
|
|
1176
1190
|
context?: string | null | undefined;
|
|
@@ -1244,7 +1258,6 @@ export declare const tConversationSchema: z.ZodObject<{
|
|
|
1244
1258
|
stop?: string[] | undefined;
|
|
1245
1259
|
greeting?: string | undefined;
|
|
1246
1260
|
spec?: string | null | undefined;
|
|
1247
|
-
expiredAt?: string | null | undefined;
|
|
1248
1261
|
fileTokenLimit?: string | number | undefined;
|
|
1249
1262
|
resendImages?: boolean | undefined;
|
|
1250
1263
|
chatGptLabel?: string | null | undefined;
|
|
@@ -1252,6 +1265,8 @@ export declare const tConversationSchema: z.ZodObject<{
|
|
|
1252
1265
|
export declare const tPresetSchema: z.ZodObject<{
|
|
1253
1266
|
parentMessageId: z.ZodOptional<z.ZodString>;
|
|
1254
1267
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1268
|
+
isTemporary: z.ZodOptional<z.ZodBoolean>;
|
|
1269
|
+
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1255
1270
|
iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1256
1271
|
user: z.ZodOptional<z.ZodString>;
|
|
1257
1272
|
context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1387,7 +1402,6 @@ export declare const tPresetSchema: z.ZodObject<{
|
|
|
1387
1402
|
stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1388
1403
|
greeting: z.ZodOptional<z.ZodString>;
|
|
1389
1404
|
spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1390
|
-
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1391
1405
|
fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
1392
1406
|
resendImages: z.ZodOptional<z.ZodBoolean>;
|
|
1393
1407
|
chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1404,6 +1418,8 @@ export declare const tPresetSchema: z.ZodObject<{
|
|
|
1404
1418
|
parentMessageId?: string | undefined;
|
|
1405
1419
|
model?: string | null | undefined;
|
|
1406
1420
|
title?: string | null | undefined;
|
|
1421
|
+
isTemporary?: boolean | undefined;
|
|
1422
|
+
expiredAt?: string | null | undefined;
|
|
1407
1423
|
iconURL?: string | null | undefined;
|
|
1408
1424
|
user?: string | undefined;
|
|
1409
1425
|
context?: string | null | undefined;
|
|
@@ -1477,7 +1493,6 @@ export declare const tPresetSchema: z.ZodObject<{
|
|
|
1477
1493
|
stop?: string[] | undefined;
|
|
1478
1494
|
greeting?: string | undefined;
|
|
1479
1495
|
spec?: string | null | undefined;
|
|
1480
|
-
expiredAt?: string | null | undefined;
|
|
1481
1496
|
fileTokenLimit?: number | undefined;
|
|
1482
1497
|
resendImages?: boolean | undefined;
|
|
1483
1498
|
chatGptLabel?: string | null | undefined;
|
|
@@ -1490,6 +1505,8 @@ export declare const tPresetSchema: z.ZodObject<{
|
|
|
1490
1505
|
parentMessageId?: string | undefined;
|
|
1491
1506
|
model?: string | null | undefined;
|
|
1492
1507
|
title?: string | null | undefined;
|
|
1508
|
+
isTemporary?: boolean | undefined;
|
|
1509
|
+
expiredAt?: string | null | undefined;
|
|
1493
1510
|
iconURL?: string | null | undefined;
|
|
1494
1511
|
user?: string | undefined;
|
|
1495
1512
|
context?: string | null | undefined;
|
|
@@ -1563,7 +1580,6 @@ export declare const tPresetSchema: z.ZodObject<{
|
|
|
1563
1580
|
stop?: string[] | undefined;
|
|
1564
1581
|
greeting?: string | undefined;
|
|
1565
1582
|
spec?: string | null | undefined;
|
|
1566
|
-
expiredAt?: string | null | undefined;
|
|
1567
1583
|
fileTokenLimit?: string | number | undefined;
|
|
1568
1584
|
resendImages?: boolean | undefined;
|
|
1569
1585
|
chatGptLabel?: string | null | undefined;
|
|
@@ -1712,6 +1728,7 @@ export declare const tConvoUpdateSchema: z.ZodObject<{
|
|
|
1712
1728
|
spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1713
1729
|
iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1714
1730
|
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1731
|
+
isTemporary: z.ZodOptional<z.ZodBoolean>;
|
|
1715
1732
|
fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
1716
1733
|
resendImages: z.ZodOptional<z.ZodBoolean>;
|
|
1717
1734
|
chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1725,6 +1742,8 @@ export declare const tConvoUpdateSchema: z.ZodObject<{
|
|
|
1725
1742
|
title: string | null;
|
|
1726
1743
|
parentMessageId?: string | undefined;
|
|
1727
1744
|
model?: string | null | undefined;
|
|
1745
|
+
isTemporary?: boolean | undefined;
|
|
1746
|
+
expiredAt?: string | null | undefined;
|
|
1728
1747
|
createdAt?: string | undefined;
|
|
1729
1748
|
updatedAt?: string | undefined;
|
|
1730
1749
|
iconURL?: string | null | undefined;
|
|
@@ -1800,7 +1819,6 @@ export declare const tConvoUpdateSchema: z.ZodObject<{
|
|
|
1800
1819
|
stop?: string[] | undefined;
|
|
1801
1820
|
greeting?: string | undefined;
|
|
1802
1821
|
spec?: string | null | undefined;
|
|
1803
|
-
expiredAt?: string | null | undefined;
|
|
1804
1822
|
fileTokenLimit?: number | undefined;
|
|
1805
1823
|
resendImages?: boolean | undefined;
|
|
1806
1824
|
chatGptLabel?: string | null | undefined;
|
|
@@ -1810,6 +1828,8 @@ export declare const tConvoUpdateSchema: z.ZodObject<{
|
|
|
1810
1828
|
parentMessageId?: string | undefined;
|
|
1811
1829
|
model?: string | null | undefined;
|
|
1812
1830
|
title?: string | null | undefined;
|
|
1831
|
+
isTemporary?: boolean | undefined;
|
|
1832
|
+
expiredAt?: string | null | undefined;
|
|
1813
1833
|
createdAt?: string | undefined;
|
|
1814
1834
|
updatedAt?: string | undefined;
|
|
1815
1835
|
iconURL?: string | null | undefined;
|
|
@@ -1885,7 +1905,6 @@ export declare const tConvoUpdateSchema: z.ZodObject<{
|
|
|
1885
1905
|
stop?: string[] | undefined;
|
|
1886
1906
|
greeting?: string | undefined;
|
|
1887
1907
|
spec?: string | null | undefined;
|
|
1888
|
-
expiredAt?: string | null | undefined;
|
|
1889
1908
|
fileTokenLimit?: string | number | undefined;
|
|
1890
1909
|
resendImages?: boolean | undefined;
|
|
1891
1910
|
chatGptLabel?: string | null | undefined;
|
|
@@ -2035,6 +2054,7 @@ export declare const tQueryParamsSchema: z.ZodObject<Pick<{
|
|
|
2035
2054
|
spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2036
2055
|
iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2037
2056
|
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2057
|
+
isTemporary: z.ZodOptional<z.ZodBoolean>;
|
|
2038
2058
|
fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
2039
2059
|
/** @deprecated */
|
|
2040
2060
|
resendImages: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2126,6 +2146,8 @@ export declare const tQueryParamsSchema: z.ZodObject<Pick<{
|
|
|
2126
2146
|
export declare const tModelSpecPresetSchema: z.ZodObject<Omit<{
|
|
2127
2147
|
parentMessageId: z.ZodOptional<z.ZodString>;
|
|
2128
2148
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2149
|
+
isTemporary: z.ZodOptional<z.ZodBoolean>;
|
|
2150
|
+
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2129
2151
|
iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2130
2152
|
user: z.ZodOptional<z.ZodString>;
|
|
2131
2153
|
context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -2261,7 +2283,6 @@ export declare const tModelSpecPresetSchema: z.ZodObject<Omit<{
|
|
|
2261
2283
|
stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2262
2284
|
greeting: z.ZodOptional<z.ZodString>;
|
|
2263
2285
|
spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2264
|
-
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2265
2286
|
fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
2266
2287
|
resendImages: z.ZodOptional<z.ZodBoolean>;
|
|
2267
2288
|
chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -2272,9 +2293,10 @@ export declare const tModelSpecPresetSchema: z.ZodObject<Omit<{
|
|
|
2272
2293
|
defaultPreset: z.ZodOptional<z.ZodBoolean>;
|
|
2273
2294
|
order: z.ZodOptional<z.ZodNumber>;
|
|
2274
2295
|
endpoint: z.ZodNullable<z.ZodUnion<[z.ZodNativeEnum<typeof EModelEndpoint>, z.ZodString]>>;
|
|
2275
|
-
}, "conversationId" | "parentMessageId" | "title" | "user" | "isArchived" | "messages" | "tags" | "file_ids" | "presetOverride" | "spec" | "
|
|
2296
|
+
}, "conversationId" | "parentMessageId" | "title" | "expiredAt" | "user" | "isArchived" | "messages" | "tags" | "file_ids" | "presetOverride" | "spec" | "resendImages" | "chatGptLabel" | "presetId" | "defaultPreset" | "order">, "strip", z.ZodTypeAny, {
|
|
2276
2297
|
endpoint: string | null;
|
|
2277
2298
|
model?: string | null | undefined;
|
|
2299
|
+
isTemporary?: boolean | undefined;
|
|
2278
2300
|
iconURL?: string | null | undefined;
|
|
2279
2301
|
context?: string | null | undefined;
|
|
2280
2302
|
endpointType?: EModelEndpoint | null | undefined;
|
|
@@ -2345,6 +2367,7 @@ export declare const tModelSpecPresetSchema: z.ZodObject<Omit<{
|
|
|
2345
2367
|
}, {
|
|
2346
2368
|
endpoint: string | null;
|
|
2347
2369
|
model?: string | null | undefined;
|
|
2370
|
+
isTemporary?: boolean | undefined;
|
|
2348
2371
|
iconURL?: string | null | undefined;
|
|
2349
2372
|
context?: string | null | undefined;
|
|
2350
2373
|
endpointType?: EModelEndpoint | null | undefined;
|
|
@@ -2423,6 +2446,7 @@ export type TConversation = z.infer<typeof tConversationSchema> & {
|
|
|
2423
2446
|
export declare const tSharedLinkSchema: z.ZodObject<{
|
|
2424
2447
|
conversationId: z.ZodString;
|
|
2425
2448
|
shareId: z.ZodString;
|
|
2449
|
+
targetMessageId: z.ZodOptional<z.ZodString>;
|
|
2426
2450
|
messages: z.ZodArray<z.ZodString, "many">;
|
|
2427
2451
|
isPublic: z.ZodBoolean;
|
|
2428
2452
|
title: z.ZodString;
|
|
@@ -2436,6 +2460,7 @@ export declare const tSharedLinkSchema: z.ZodObject<{
|
|
|
2436
2460
|
messages: string[];
|
|
2437
2461
|
shareId: string;
|
|
2438
2462
|
isPublic: boolean;
|
|
2463
|
+
targetMessageId?: string | undefined;
|
|
2439
2464
|
}, {
|
|
2440
2465
|
conversationId: string;
|
|
2441
2466
|
title: string;
|
|
@@ -2444,6 +2469,7 @@ export declare const tSharedLinkSchema: z.ZodObject<{
|
|
|
2444
2469
|
messages: string[];
|
|
2445
2470
|
shareId: string;
|
|
2446
2471
|
isPublic: boolean;
|
|
2472
|
+
targetMessageId?: string | undefined;
|
|
2447
2473
|
}>;
|
|
2448
2474
|
export type TSharedLink = z.infer<typeof tSharedLinkSchema>;
|
|
2449
2475
|
export declare const tConversationTagSchema: z.ZodObject<{
|
|
@@ -2620,6 +2646,7 @@ export declare const googleBaseSchema: z.ZodObject<Pick<{
|
|
|
2620
2646
|
spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2621
2647
|
iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2622
2648
|
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2649
|
+
isTemporary: z.ZodOptional<z.ZodBoolean>;
|
|
2623
2650
|
fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
2624
2651
|
/** @deprecated */
|
|
2625
2652
|
resendImages: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2823,6 +2850,7 @@ export declare const googleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
|
|
|
2823
2850
|
spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2824
2851
|
iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2825
2852
|
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2853
|
+
isTemporary: z.ZodOptional<z.ZodBoolean>;
|
|
2826
2854
|
fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
2827
2855
|
/** @deprecated */
|
|
2828
2856
|
resendImages: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3110,6 +3138,7 @@ export declare const assistantSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
|
|
|
3110
3138
|
spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3111
3139
|
iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3112
3140
|
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3141
|
+
isTemporary: z.ZodOptional<z.ZodBoolean>;
|
|
3113
3142
|
fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
3114
3143
|
/** @deprecated */
|
|
3115
3144
|
resendImages: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3301,6 +3330,7 @@ export declare const compactAssistantSchema: z.ZodCatch<z.ZodEffects<z.ZodObject
|
|
|
3301
3330
|
spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3302
3331
|
iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3303
3332
|
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3333
|
+
isTemporary: z.ZodOptional<z.ZodBoolean>;
|
|
3304
3334
|
fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
3305
3335
|
/** @deprecated */
|
|
3306
3336
|
resendImages: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3488,6 +3518,7 @@ export declare const agentsBaseSchema: z.ZodObject<Pick<{
|
|
|
3488
3518
|
spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3489
3519
|
iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3490
3520
|
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3521
|
+
isTemporary: z.ZodOptional<z.ZodBoolean>;
|
|
3491
3522
|
fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
3492
3523
|
/** @deprecated */
|
|
3493
3524
|
resendImages: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3669,6 +3700,7 @@ export declare const agentsSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
|
|
|
3669
3700
|
spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3670
3701
|
iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3671
3702
|
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3703
|
+
isTemporary: z.ZodOptional<z.ZodBoolean>;
|
|
3672
3704
|
fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
3673
3705
|
/** @deprecated */
|
|
3674
3706
|
resendImages: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3880,6 +3912,7 @@ export declare const openAIBaseSchema: z.ZodObject<Pick<{
|
|
|
3880
3912
|
spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3881
3913
|
iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3882
3914
|
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3915
|
+
isTemporary: z.ZodOptional<z.ZodBoolean>;
|
|
3883
3916
|
fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
3884
3917
|
/** @deprecated */
|
|
3885
3918
|
resendImages: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -4081,6 +4114,7 @@ export declare const openAISchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
|
|
|
4081
4114
|
spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4082
4115
|
iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4083
4116
|
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4117
|
+
isTemporary: z.ZodOptional<z.ZodBoolean>;
|
|
4084
4118
|
fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
4085
4119
|
/** @deprecated */
|
|
4086
4120
|
resendImages: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -4307,6 +4341,7 @@ export declare const openRouterSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<
|
|
|
4307
4341
|
spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4308
4342
|
iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4309
4343
|
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4344
|
+
isTemporary: z.ZodOptional<z.ZodBoolean>;
|
|
4310
4345
|
fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
4311
4346
|
/** @deprecated */
|
|
4312
4347
|
resendImages: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -4457,6 +4492,7 @@ export declare const openRouterSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<
|
|
|
4457
4492
|
spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4458
4493
|
iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4459
4494
|
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4495
|
+
isTemporary: z.ZodOptional<z.ZodBoolean>;
|
|
4460
4496
|
fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
4461
4497
|
/** @deprecated */
|
|
4462
4498
|
resendImages: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -4686,6 +4722,7 @@ export declare const compactGoogleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pi
|
|
|
4686
4722
|
spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4687
4723
|
iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4688
4724
|
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4725
|
+
isTemporary: z.ZodOptional<z.ZodBoolean>;
|
|
4689
4726
|
fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
4690
4727
|
/** @deprecated */
|
|
4691
4728
|
resendImages: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -4915,6 +4952,7 @@ export declare const anthropicBaseSchema: z.ZodObject<Pick<{
|
|
|
4915
4952
|
spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4916
4953
|
iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4917
4954
|
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4955
|
+
isTemporary: z.ZodOptional<z.ZodBoolean>;
|
|
4918
4956
|
fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
4919
4957
|
/** @deprecated */
|
|
4920
4958
|
resendImages: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -5112,6 +5150,7 @@ export declare const anthropicSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
|
|
|
5112
5150
|
spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5113
5151
|
iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5114
5152
|
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5153
|
+
isTemporary: z.ZodOptional<z.ZodBoolean>;
|
|
5115
5154
|
fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
5116
5155
|
/** @deprecated */
|
|
5117
5156
|
resendImages: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -5384,6 +5423,7 @@ export declare const compactAgentsBaseSchema: z.ZodObject<Pick<{
|
|
|
5384
5423
|
spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5385
5424
|
iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5386
5425
|
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5426
|
+
isTemporary: z.ZodOptional<z.ZodBoolean>;
|
|
5387
5427
|
fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
5388
5428
|
/** @deprecated */
|
|
5389
5429
|
resendImages: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -5549,6 +5589,7 @@ export declare const compactAgentsSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pi
|
|
|
5549
5589
|
spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5550
5590
|
iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5551
5591
|
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5592
|
+
isTemporary: z.ZodOptional<z.ZodBoolean>;
|
|
5552
5593
|
fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
5553
5594
|
/** @deprecated */
|
|
5554
5595
|
resendImages: z.ZodOptional<z.ZodBoolean>;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -124,6 +124,7 @@ export type TUser = {
|
|
|
124
124
|
avatar: string;
|
|
125
125
|
role: string;
|
|
126
126
|
provider: string;
|
|
127
|
+
tenantId?: string;
|
|
127
128
|
plugins?: string[];
|
|
128
129
|
twoFactorEnabled?: boolean;
|
|
129
130
|
backupCodes?: TBackupCode[];
|
|
@@ -207,9 +208,10 @@ export type TSharedMessagesResponse = Omit<TSharedLink, 'messages'> & {
|
|
|
207
208
|
messages: TMessage[];
|
|
208
209
|
};
|
|
209
210
|
export type TCreateShareLinkRequest = Pick<TConversation, 'conversationId'>;
|
|
210
|
-
export type TUpdateShareLinkRequest = Pick<TSharedLink, 'shareId'>;
|
|
211
|
-
export type TSharedLinkResponse = Pick<TSharedLink, 'shareId'> & Pick<TConversation, 'conversationId'>;
|
|
212
|
-
export type TSharedLinkGetResponse = TSharedLinkResponse & {
|
|
211
|
+
export type TUpdateShareLinkRequest = Pick<TSharedLink, 'shareId' | 'targetMessageId'>;
|
|
212
|
+
export type TSharedLinkResponse = Pick<TSharedLink, 'shareId'> & Pick<TSharedLink, 'targetMessageId'> & Pick<TConversation, 'conversationId'>;
|
|
213
|
+
export type TSharedLinkGetResponse = Omit<TSharedLinkResponse, 'shareId'> & {
|
|
214
|
+
shareId: string | null;
|
|
213
215
|
success: boolean;
|
|
214
216
|
};
|
|
215
217
|
export type TConversationTagsResponse = TConversationTag[];
|
|
@@ -263,6 +265,10 @@ export type TConfig = {
|
|
|
263
265
|
modelDisplayLabel?: string;
|
|
264
266
|
userProvide?: boolean | null;
|
|
265
267
|
userProvideURL?: boolean | null;
|
|
268
|
+
userProvideAccessKeyId?: boolean;
|
|
269
|
+
userProvideSecretAccessKey?: boolean;
|
|
270
|
+
userProvideSessionToken?: boolean;
|
|
271
|
+
userProvideBearerToken?: boolean;
|
|
266
272
|
disableBuilder?: boolean;
|
|
267
273
|
retrievalModels?: string[];
|
|
268
274
|
capabilities?: string[];
|