librechat-data-provider 0.8.501 → 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/accessPermissions.d.ts +6 -2
- package/dist/types/api-endpoints.d.ts +20 -1
- package/dist/types/balance.d.ts +3 -0
- package/dist/types/balance.spec.d.ts +1 -0
- package/dist/types/bedrock.d.ts +9 -1
- package/dist/types/cloudfront-config.spec.d.ts +1 -0
- package/dist/types/codeEnvRef.d.ts +62 -0
- package/dist/types/codeEnvRef.spec.d.ts +1 -0
- package/dist/types/config.d.ts +2278 -131
- package/dist/types/data-service.d.ts +69 -2
- package/dist/types/file-config.d.ts +16 -0
- package/dist/types/generate.d.ts +2 -0
- package/dist/types/headers-helpers.d.ts +1 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/keys.d.ts +16 -2
- package/dist/types/mcp.d.ts +1304 -58
- package/dist/types/models.d.ts +50 -8
- package/dist/types/parameterSettings.d.ts +6 -0
- package/dist/types/parameterSettings.spec.d.ts +1 -0
- package/dist/types/parsers.d.ts +2 -1
- package/dist/types/permissions.d.ts +50 -1
- package/dist/types/roles.d.ts +52 -0
- package/dist/types/schemas.d.ts +477 -14
- package/dist/types/types/assistants.d.ts +25 -3
- package/dist/types/types/files.d.ts +71 -0
- package/dist/types/types/mutations.d.ts +46 -0
- package/dist/types/types/queries.d.ts +2 -0
- package/dist/types/types/runs.d.ts +20 -1
- package/dist/types/types/skills.d.ts +275 -0
- package/dist/types/types/web.d.ts +14 -1
- package/dist/types/types.d.ts +65 -5
- package/package.json +2 -2
package/dist/types/schemas.d.ts
CHANGED
|
@@ -184,6 +184,18 @@ export declare const defaultAgentFormValues: {
|
|
|
184
184
|
name: string;
|
|
185
185
|
email: string;
|
|
186
186
|
};
|
|
187
|
+
/** Optional allowlist. Only applies when `skills_enabled === true`.
|
|
188
|
+
* Empty/undefined + enabled = full catalog; non-empty + enabled = narrow to ids. */
|
|
189
|
+
skills: string[] | undefined;
|
|
190
|
+
/** Master toggle for skill use on this agent. `true` activates skills
|
|
191
|
+
* (full catalog unless `skills` narrows it). Anything else = inactive. */
|
|
192
|
+
skills_enabled: boolean | undefined;
|
|
193
|
+
/** `undefined` = feature disabled by default (no subagent tool injected). */
|
|
194
|
+
subagents: {
|
|
195
|
+
enabled?: boolean | undefined;
|
|
196
|
+
allowSelf?: boolean | undefined;
|
|
197
|
+
agent_ids?: string[] | undefined;
|
|
198
|
+
} | undefined;
|
|
187
199
|
};
|
|
188
200
|
export declare const ImageVisionTool: FunctionTool;
|
|
189
201
|
export declare const isImageVisionTool: (tool: FunctionTool | FunctionToolCall) => boolean;
|
|
@@ -237,9 +249,11 @@ export declare const googleSettings: {
|
|
|
237
249
|
};
|
|
238
250
|
maxOutputTokens: {
|
|
239
251
|
min: 1;
|
|
240
|
-
max:
|
|
252
|
+
max: 65535;
|
|
241
253
|
step: 1;
|
|
242
254
|
default: 8192;
|
|
255
|
+
reset: (modelName: string) => number;
|
|
256
|
+
set: (value: number, modelName: string) => number;
|
|
243
257
|
};
|
|
244
258
|
temperature: {
|
|
245
259
|
min: 0;
|
|
@@ -302,7 +316,7 @@ export declare const anthropicSettings: {
|
|
|
302
316
|
max: 128000;
|
|
303
317
|
step: 1;
|
|
304
318
|
default: 8192;
|
|
305
|
-
reset: (modelName: string) =>
|
|
319
|
+
reset: (modelName: string) => 8192 | 32000 | 128000 | 64000;
|
|
306
320
|
set: (value: number, modelName: string) => number;
|
|
307
321
|
};
|
|
308
322
|
topP: {
|
|
@@ -435,9 +449,11 @@ export declare const endpointSettings: {
|
|
|
435
449
|
};
|
|
436
450
|
maxOutputTokens: {
|
|
437
451
|
min: 1;
|
|
438
|
-
max:
|
|
452
|
+
max: 65535;
|
|
439
453
|
step: 1;
|
|
440
454
|
default: 8192;
|
|
455
|
+
reset: (modelName: string) => number;
|
|
456
|
+
set: (value: number, modelName: string) => number;
|
|
441
457
|
};
|
|
442
458
|
temperature: {
|
|
443
459
|
min: 0;
|
|
@@ -500,7 +516,7 @@ export declare const endpointSettings: {
|
|
|
500
516
|
max: 128000;
|
|
501
517
|
step: 1;
|
|
502
518
|
default: 8192;
|
|
503
|
-
reset: (modelName: string) =>
|
|
519
|
+
reset: (modelName: string) => 8192 | 32000 | 128000 | 64000;
|
|
504
520
|
set: (value: number, modelName: string) => number;
|
|
505
521
|
};
|
|
506
522
|
topP: {
|
|
@@ -750,6 +766,8 @@ export declare const tMessageSchema: z.ZodObject<{
|
|
|
750
766
|
/** @deprecated */
|
|
751
767
|
generation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
752
768
|
isCreatedByUser: z.ZodBoolean;
|
|
769
|
+
isTemporary: z.ZodOptional<z.ZodBoolean>;
|
|
770
|
+
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
753
771
|
error: z.ZodOptional<z.ZodBoolean>;
|
|
754
772
|
clientTimestamp: z.ZodOptional<z.ZodString>;
|
|
755
773
|
createdAt: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -785,6 +803,23 @@ export declare const tMessageSchema: z.ZodObject<{
|
|
|
785
803
|
calibrationRatio?: number | undefined;
|
|
786
804
|
encoding?: string | undefined;
|
|
787
805
|
}>>;
|
|
806
|
+
/**
|
|
807
|
+
* Skill names the user invoked manually via the `$` popover on this turn.
|
|
808
|
+
* Purely UI metadata — `SkillPills` renders these above the message
|
|
809
|
+
* bubble so users can see which skills they asked for in history and on
|
|
810
|
+
* reload. Runtime resolution uses the top-level payload field with the
|
|
811
|
+
* same name. Empty / absent for model-invoked skills (shown as tool_call
|
|
812
|
+
* content parts on the assistant message instead).
|
|
813
|
+
*/
|
|
814
|
+
manualSkills: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
815
|
+
/**
|
|
816
|
+
* Skill names auto-primed on this turn because their `always-apply`
|
|
817
|
+
* frontmatter flag is set. Persisted at turn time so the pinned-variant
|
|
818
|
+
* pills on the user bubble survive reload and stay stable across later
|
|
819
|
+
* edits to the skill's `alwaysApply` flag (the user bubble reflects
|
|
820
|
+
* what actually ran, not the current catalog).
|
|
821
|
+
*/
|
|
822
|
+
alwaysAppliedSkills: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
788
823
|
}, "strip", z.ZodTypeAny, {
|
|
789
824
|
messageId: string;
|
|
790
825
|
conversationId: string | null;
|
|
@@ -802,6 +837,8 @@ export declare const tMessageSchema: z.ZodObject<{
|
|
|
802
837
|
model?: string | null | undefined;
|
|
803
838
|
sender?: string | undefined;
|
|
804
839
|
generation?: string | null | undefined;
|
|
840
|
+
isTemporary?: boolean | undefined;
|
|
841
|
+
expiredAt?: string | null | undefined;
|
|
805
842
|
error?: boolean | undefined;
|
|
806
843
|
clientTimestamp?: string | undefined;
|
|
807
844
|
current?: boolean | undefined;
|
|
@@ -820,6 +857,8 @@ export declare const tMessageSchema: z.ZodObject<{
|
|
|
820
857
|
calibrationRatio?: number | undefined;
|
|
821
858
|
encoding?: string | undefined;
|
|
822
859
|
} | undefined;
|
|
860
|
+
manualSkills?: string[] | undefined;
|
|
861
|
+
alwaysAppliedSkills?: string[] | undefined;
|
|
823
862
|
}, {
|
|
824
863
|
messageId: string;
|
|
825
864
|
conversationId: string | null;
|
|
@@ -835,6 +874,8 @@ export declare const tMessageSchema: z.ZodObject<{
|
|
|
835
874
|
title?: string | null | undefined;
|
|
836
875
|
sender?: string | undefined;
|
|
837
876
|
generation?: string | null | undefined;
|
|
877
|
+
isTemporary?: boolean | undefined;
|
|
878
|
+
expiredAt?: string | null | undefined;
|
|
838
879
|
error?: boolean | undefined;
|
|
839
880
|
clientTimestamp?: string | undefined;
|
|
840
881
|
createdAt?: string | undefined;
|
|
@@ -855,6 +896,8 @@ export declare const tMessageSchema: z.ZodObject<{
|
|
|
855
896
|
calibrationRatio?: number | undefined;
|
|
856
897
|
encoding?: string | undefined;
|
|
857
898
|
} | undefined;
|
|
899
|
+
manualSkills?: string[] | undefined;
|
|
900
|
+
alwaysAppliedSkills?: string[] | undefined;
|
|
858
901
|
}>;
|
|
859
902
|
export type MemoryArtifact = {
|
|
860
903
|
key: string;
|
|
@@ -1040,6 +1083,7 @@ export declare const tConversationSchema: z.ZodObject<{
|
|
|
1040
1083
|
spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1041
1084
|
iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1042
1085
|
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1086
|
+
isTemporary: z.ZodOptional<z.ZodBoolean>;
|
|
1043
1087
|
fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
1044
1088
|
/** @deprecated */
|
|
1045
1089
|
resendImages: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1053,6 +1097,8 @@ export declare const tConversationSchema: z.ZodObject<{
|
|
|
1053
1097
|
updatedAt: string;
|
|
1054
1098
|
parentMessageId?: string | undefined;
|
|
1055
1099
|
model?: string | null | undefined;
|
|
1100
|
+
isTemporary?: boolean | undefined;
|
|
1101
|
+
expiredAt?: string | null | undefined;
|
|
1056
1102
|
iconURL?: string | null | undefined;
|
|
1057
1103
|
user?: string | undefined;
|
|
1058
1104
|
context?: string | null | undefined;
|
|
@@ -1126,7 +1172,6 @@ export declare const tConversationSchema: z.ZodObject<{
|
|
|
1126
1172
|
stop?: string[] | undefined;
|
|
1127
1173
|
greeting?: string | undefined;
|
|
1128
1174
|
spec?: string | null | undefined;
|
|
1129
|
-
expiredAt?: string | null | undefined;
|
|
1130
1175
|
fileTokenLimit?: number | undefined;
|
|
1131
1176
|
resendImages?: boolean | undefined;
|
|
1132
1177
|
chatGptLabel?: string | null | undefined;
|
|
@@ -1138,6 +1183,8 @@ export declare const tConversationSchema: z.ZodObject<{
|
|
|
1138
1183
|
parentMessageId?: string | undefined;
|
|
1139
1184
|
model?: string | null | undefined;
|
|
1140
1185
|
title?: string | null | undefined;
|
|
1186
|
+
isTemporary?: boolean | undefined;
|
|
1187
|
+
expiredAt?: string | null | undefined;
|
|
1141
1188
|
iconURL?: string | null | undefined;
|
|
1142
1189
|
user?: string | undefined;
|
|
1143
1190
|
context?: string | null | undefined;
|
|
@@ -1211,7 +1258,6 @@ export declare const tConversationSchema: z.ZodObject<{
|
|
|
1211
1258
|
stop?: string[] | undefined;
|
|
1212
1259
|
greeting?: string | undefined;
|
|
1213
1260
|
spec?: string | null | undefined;
|
|
1214
|
-
expiredAt?: string | null | undefined;
|
|
1215
1261
|
fileTokenLimit?: string | number | undefined;
|
|
1216
1262
|
resendImages?: boolean | undefined;
|
|
1217
1263
|
chatGptLabel?: string | null | undefined;
|
|
@@ -1219,6 +1265,8 @@ export declare const tConversationSchema: z.ZodObject<{
|
|
|
1219
1265
|
export declare const tPresetSchema: z.ZodObject<{
|
|
1220
1266
|
parentMessageId: z.ZodOptional<z.ZodString>;
|
|
1221
1267
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1268
|
+
isTemporary: z.ZodOptional<z.ZodBoolean>;
|
|
1269
|
+
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1222
1270
|
iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1223
1271
|
user: z.ZodOptional<z.ZodString>;
|
|
1224
1272
|
context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1354,7 +1402,6 @@ export declare const tPresetSchema: z.ZodObject<{
|
|
|
1354
1402
|
stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1355
1403
|
greeting: z.ZodOptional<z.ZodString>;
|
|
1356
1404
|
spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1357
|
-
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1358
1405
|
fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
1359
1406
|
resendImages: z.ZodOptional<z.ZodBoolean>;
|
|
1360
1407
|
chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1371,6 +1418,8 @@ export declare const tPresetSchema: z.ZodObject<{
|
|
|
1371
1418
|
parentMessageId?: string | undefined;
|
|
1372
1419
|
model?: string | null | undefined;
|
|
1373
1420
|
title?: string | null | undefined;
|
|
1421
|
+
isTemporary?: boolean | undefined;
|
|
1422
|
+
expiredAt?: string | null | undefined;
|
|
1374
1423
|
iconURL?: string | null | undefined;
|
|
1375
1424
|
user?: string | undefined;
|
|
1376
1425
|
context?: string | null | undefined;
|
|
@@ -1444,7 +1493,6 @@ export declare const tPresetSchema: z.ZodObject<{
|
|
|
1444
1493
|
stop?: string[] | undefined;
|
|
1445
1494
|
greeting?: string | undefined;
|
|
1446
1495
|
spec?: string | null | undefined;
|
|
1447
|
-
expiredAt?: string | null | undefined;
|
|
1448
1496
|
fileTokenLimit?: number | undefined;
|
|
1449
1497
|
resendImages?: boolean | undefined;
|
|
1450
1498
|
chatGptLabel?: string | null | undefined;
|
|
@@ -1457,6 +1505,8 @@ export declare const tPresetSchema: z.ZodObject<{
|
|
|
1457
1505
|
parentMessageId?: string | undefined;
|
|
1458
1506
|
model?: string | null | undefined;
|
|
1459
1507
|
title?: string | null | undefined;
|
|
1508
|
+
isTemporary?: boolean | undefined;
|
|
1509
|
+
expiredAt?: string | null | undefined;
|
|
1460
1510
|
iconURL?: string | null | undefined;
|
|
1461
1511
|
user?: string | undefined;
|
|
1462
1512
|
context?: string | null | undefined;
|
|
@@ -1530,7 +1580,6 @@ export declare const tPresetSchema: z.ZodObject<{
|
|
|
1530
1580
|
stop?: string[] | undefined;
|
|
1531
1581
|
greeting?: string | undefined;
|
|
1532
1582
|
spec?: string | null | undefined;
|
|
1533
|
-
expiredAt?: string | null | undefined;
|
|
1534
1583
|
fileTokenLimit?: string | number | undefined;
|
|
1535
1584
|
resendImages?: boolean | undefined;
|
|
1536
1585
|
chatGptLabel?: string | null | undefined;
|
|
@@ -1679,6 +1728,7 @@ export declare const tConvoUpdateSchema: z.ZodObject<{
|
|
|
1679
1728
|
spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1680
1729
|
iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1681
1730
|
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1731
|
+
isTemporary: z.ZodOptional<z.ZodBoolean>;
|
|
1682
1732
|
fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
1683
1733
|
resendImages: z.ZodOptional<z.ZodBoolean>;
|
|
1684
1734
|
chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1692,6 +1742,8 @@ export declare const tConvoUpdateSchema: z.ZodObject<{
|
|
|
1692
1742
|
title: string | null;
|
|
1693
1743
|
parentMessageId?: string | undefined;
|
|
1694
1744
|
model?: string | null | undefined;
|
|
1745
|
+
isTemporary?: boolean | undefined;
|
|
1746
|
+
expiredAt?: string | null | undefined;
|
|
1695
1747
|
createdAt?: string | undefined;
|
|
1696
1748
|
updatedAt?: string | undefined;
|
|
1697
1749
|
iconURL?: string | null | undefined;
|
|
@@ -1767,7 +1819,6 @@ export declare const tConvoUpdateSchema: z.ZodObject<{
|
|
|
1767
1819
|
stop?: string[] | undefined;
|
|
1768
1820
|
greeting?: string | undefined;
|
|
1769
1821
|
spec?: string | null | undefined;
|
|
1770
|
-
expiredAt?: string | null | undefined;
|
|
1771
1822
|
fileTokenLimit?: number | undefined;
|
|
1772
1823
|
resendImages?: boolean | undefined;
|
|
1773
1824
|
chatGptLabel?: string | null | undefined;
|
|
@@ -1777,6 +1828,8 @@ export declare const tConvoUpdateSchema: z.ZodObject<{
|
|
|
1777
1828
|
parentMessageId?: string | undefined;
|
|
1778
1829
|
model?: string | null | undefined;
|
|
1779
1830
|
title?: string | null | undefined;
|
|
1831
|
+
isTemporary?: boolean | undefined;
|
|
1832
|
+
expiredAt?: string | null | undefined;
|
|
1780
1833
|
createdAt?: string | undefined;
|
|
1781
1834
|
updatedAt?: string | undefined;
|
|
1782
1835
|
iconURL?: string | null | undefined;
|
|
@@ -1852,7 +1905,6 @@ export declare const tConvoUpdateSchema: z.ZodObject<{
|
|
|
1852
1905
|
stop?: string[] | undefined;
|
|
1853
1906
|
greeting?: string | undefined;
|
|
1854
1907
|
spec?: string | null | undefined;
|
|
1855
|
-
expiredAt?: string | null | undefined;
|
|
1856
1908
|
fileTokenLimit?: string | number | undefined;
|
|
1857
1909
|
resendImages?: boolean | undefined;
|
|
1858
1910
|
chatGptLabel?: string | null | undefined;
|
|
@@ -2002,6 +2054,7 @@ export declare const tQueryParamsSchema: z.ZodObject<Pick<{
|
|
|
2002
2054
|
spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2003
2055
|
iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2004
2056
|
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2057
|
+
isTemporary: z.ZodOptional<z.ZodBoolean>;
|
|
2005
2058
|
fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
2006
2059
|
/** @deprecated */
|
|
2007
2060
|
resendImages: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2083,10 +2136,18 @@ export declare const tQueryParamsSchema: z.ZodObject<Pick<{
|
|
|
2083
2136
|
spec?: string | null | undefined;
|
|
2084
2137
|
fileTokenLimit?: string | number | undefined;
|
|
2085
2138
|
}>;
|
|
2086
|
-
/** Narrowed preset schema for use in model specs — omits system/DB/deprecated fields
|
|
2139
|
+
/** Narrowed preset schema for use in model specs — omits system/DB/deprecated fields.
|
|
2140
|
+
*
|
|
2141
|
+
* `greeting` and `iconURL` are admin-configurable display fields on a model spec's
|
|
2142
|
+
* preset (landing greeting, preset-level icon fallback) and must be preserved.
|
|
2143
|
+
* `spec` is set by the client from `modelSpec.name` via `getModelSpecPreset` and is
|
|
2144
|
+
* omitted to avoid duplicate configuration surface.
|
|
2145
|
+
*/
|
|
2087
2146
|
export declare const tModelSpecPresetSchema: z.ZodObject<Omit<{
|
|
2088
2147
|
parentMessageId: z.ZodOptional<z.ZodString>;
|
|
2089
2148
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2149
|
+
isTemporary: z.ZodOptional<z.ZodBoolean>;
|
|
2150
|
+
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2090
2151
|
iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2091
2152
|
user: z.ZodOptional<z.ZodString>;
|
|
2092
2153
|
context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -2222,7 +2283,6 @@ export declare const tModelSpecPresetSchema: z.ZodObject<Omit<{
|
|
|
2222
2283
|
stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2223
2284
|
greeting: z.ZodOptional<z.ZodString>;
|
|
2224
2285
|
spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2225
|
-
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2226
2286
|
fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
2227
2287
|
resendImages: z.ZodOptional<z.ZodBoolean>;
|
|
2228
2288
|
chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -2233,9 +2293,11 @@ export declare const tModelSpecPresetSchema: z.ZodObject<Omit<{
|
|
|
2233
2293
|
defaultPreset: z.ZodOptional<z.ZodBoolean>;
|
|
2234
2294
|
order: z.ZodOptional<z.ZodNumber>;
|
|
2235
2295
|
endpoint: z.ZodNullable<z.ZodUnion<[z.ZodNativeEnum<typeof EModelEndpoint>, z.ZodString]>>;
|
|
2236
|
-
}, "conversationId" | "parentMessageId" | "title" | "
|
|
2296
|
+
}, "conversationId" | "parentMessageId" | "title" | "expiredAt" | "user" | "isArchived" | "messages" | "tags" | "file_ids" | "presetOverride" | "spec" | "resendImages" | "chatGptLabel" | "presetId" | "defaultPreset" | "order">, "strip", z.ZodTypeAny, {
|
|
2237
2297
|
endpoint: string | null;
|
|
2238
2298
|
model?: string | null | undefined;
|
|
2299
|
+
isTemporary?: boolean | undefined;
|
|
2300
|
+
iconURL?: string | null | undefined;
|
|
2239
2301
|
context?: string | null | undefined;
|
|
2240
2302
|
endpointType?: EModelEndpoint | null | undefined;
|
|
2241
2303
|
tools?: string[] | {
|
|
@@ -2300,10 +2362,13 @@ export declare const tModelSpecPresetSchema: z.ZodObject<Omit<{
|
|
|
2300
2362
|
additional_instructions?: string | undefined;
|
|
2301
2363
|
append_current_datetime?: boolean | undefined;
|
|
2302
2364
|
stop?: string[] | undefined;
|
|
2365
|
+
greeting?: string | undefined;
|
|
2303
2366
|
fileTokenLimit?: number | undefined;
|
|
2304
2367
|
}, {
|
|
2305
2368
|
endpoint: string | null;
|
|
2306
2369
|
model?: string | null | undefined;
|
|
2370
|
+
isTemporary?: boolean | undefined;
|
|
2371
|
+
iconURL?: string | null | undefined;
|
|
2307
2372
|
context?: string | null | undefined;
|
|
2308
2373
|
endpointType?: EModelEndpoint | null | undefined;
|
|
2309
2374
|
tools?: string[] | {
|
|
@@ -2368,6 +2433,7 @@ export declare const tModelSpecPresetSchema: z.ZodObject<Omit<{
|
|
|
2368
2433
|
additional_instructions?: string | undefined;
|
|
2369
2434
|
append_current_datetime?: boolean | undefined;
|
|
2370
2435
|
stop?: string[] | undefined;
|
|
2436
|
+
greeting?: string | undefined;
|
|
2371
2437
|
fileTokenLimit?: string | number | undefined;
|
|
2372
2438
|
}>;
|
|
2373
2439
|
export type TModelSpecPreset = z.infer<typeof tModelSpecPresetSchema>;
|
|
@@ -2380,6 +2446,7 @@ export type TConversation = z.infer<typeof tConversationSchema> & {
|
|
|
2380
2446
|
export declare const tSharedLinkSchema: z.ZodObject<{
|
|
2381
2447
|
conversationId: z.ZodString;
|
|
2382
2448
|
shareId: z.ZodString;
|
|
2449
|
+
targetMessageId: z.ZodOptional<z.ZodString>;
|
|
2383
2450
|
messages: z.ZodArray<z.ZodString, "many">;
|
|
2384
2451
|
isPublic: z.ZodBoolean;
|
|
2385
2452
|
title: z.ZodString;
|
|
@@ -2393,6 +2460,7 @@ export declare const tSharedLinkSchema: z.ZodObject<{
|
|
|
2393
2460
|
messages: string[];
|
|
2394
2461
|
shareId: string;
|
|
2395
2462
|
isPublic: boolean;
|
|
2463
|
+
targetMessageId?: string | undefined;
|
|
2396
2464
|
}, {
|
|
2397
2465
|
conversationId: string;
|
|
2398
2466
|
title: string;
|
|
@@ -2401,6 +2469,7 @@ export declare const tSharedLinkSchema: z.ZodObject<{
|
|
|
2401
2469
|
messages: string[];
|
|
2402
2470
|
shareId: string;
|
|
2403
2471
|
isPublic: boolean;
|
|
2472
|
+
targetMessageId?: string | undefined;
|
|
2404
2473
|
}>;
|
|
2405
2474
|
export type TSharedLink = z.infer<typeof tSharedLinkSchema>;
|
|
2406
2475
|
export declare const tConversationTagSchema: z.ZodObject<{
|
|
@@ -2577,6 +2646,7 @@ export declare const googleBaseSchema: z.ZodObject<Pick<{
|
|
|
2577
2646
|
spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2578
2647
|
iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2579
2648
|
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2649
|
+
isTemporary: z.ZodOptional<z.ZodBoolean>;
|
|
2580
2650
|
fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
2581
2651
|
/** @deprecated */
|
|
2582
2652
|
resendImages: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2780,6 +2850,7 @@ export declare const googleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
|
|
|
2780
2850
|
spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2781
2851
|
iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2782
2852
|
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2853
|
+
isTemporary: z.ZodOptional<z.ZodBoolean>;
|
|
2783
2854
|
fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
2784
2855
|
/** @deprecated */
|
|
2785
2856
|
resendImages: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3067,6 +3138,7 @@ export declare const assistantSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
|
|
|
3067
3138
|
spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3068
3139
|
iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3069
3140
|
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3141
|
+
isTemporary: z.ZodOptional<z.ZodBoolean>;
|
|
3070
3142
|
fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
3071
3143
|
/** @deprecated */
|
|
3072
3144
|
resendImages: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3258,6 +3330,7 @@ export declare const compactAssistantSchema: z.ZodCatch<z.ZodEffects<z.ZodObject
|
|
|
3258
3330
|
spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3259
3331
|
iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3260
3332
|
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3333
|
+
isTemporary: z.ZodOptional<z.ZodBoolean>;
|
|
3261
3334
|
fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
3262
3335
|
/** @deprecated */
|
|
3263
3336
|
resendImages: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3445,6 +3518,7 @@ export declare const agentsBaseSchema: z.ZodObject<Pick<{
|
|
|
3445
3518
|
spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3446
3519
|
iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3447
3520
|
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3521
|
+
isTemporary: z.ZodOptional<z.ZodBoolean>;
|
|
3448
3522
|
fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
3449
3523
|
/** @deprecated */
|
|
3450
3524
|
resendImages: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3626,6 +3700,7 @@ export declare const agentsSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
|
|
|
3626
3700
|
spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3627
3701
|
iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3628
3702
|
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3703
|
+
isTemporary: z.ZodOptional<z.ZodBoolean>;
|
|
3629
3704
|
fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
3630
3705
|
/** @deprecated */
|
|
3631
3706
|
resendImages: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3837,6 +3912,7 @@ export declare const openAIBaseSchema: z.ZodObject<Pick<{
|
|
|
3837
3912
|
spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3838
3913
|
iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3839
3914
|
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3915
|
+
isTemporary: z.ZodOptional<z.ZodBoolean>;
|
|
3840
3916
|
fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
3841
3917
|
/** @deprecated */
|
|
3842
3918
|
resendImages: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -4038,6 +4114,7 @@ export declare const openAISchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
|
|
|
4038
4114
|
spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4039
4115
|
iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4040
4116
|
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4117
|
+
isTemporary: z.ZodOptional<z.ZodBoolean>;
|
|
4041
4118
|
fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
4042
4119
|
/** @deprecated */
|
|
4043
4120
|
resendImages: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -4119,6 +4196,387 @@ export declare const openAISchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
|
|
|
4119
4196
|
fileTokenLimit?: string | number | undefined;
|
|
4120
4197
|
chatGptLabel?: string | null | undefined;
|
|
4121
4198
|
}>>;
|
|
4199
|
+
export declare const openRouterSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
|
|
4200
|
+
conversationId: z.ZodNullable<z.ZodString>;
|
|
4201
|
+
endpoint: z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>;
|
|
4202
|
+
endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
|
|
4203
|
+
isArchived: z.ZodOptional<z.ZodBoolean>;
|
|
4204
|
+
title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
|
|
4205
|
+
user: z.ZodOptional<z.ZodString>;
|
|
4206
|
+
messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4207
|
+
tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
4208
|
+
name: z.ZodString;
|
|
4209
|
+
pluginKey: z.ZodString;
|
|
4210
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4211
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
4212
|
+
authConfig: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4213
|
+
authField: z.ZodString;
|
|
4214
|
+
label: z.ZodString;
|
|
4215
|
+
description: z.ZodString;
|
|
4216
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
4217
|
+
}, "strip", z.ZodTypeAny, {
|
|
4218
|
+
description: string;
|
|
4219
|
+
authField: string;
|
|
4220
|
+
label: string;
|
|
4221
|
+
optional?: boolean | undefined;
|
|
4222
|
+
}, {
|
|
4223
|
+
description: string;
|
|
4224
|
+
authField: string;
|
|
4225
|
+
label: string;
|
|
4226
|
+
optional?: boolean | undefined;
|
|
4227
|
+
}>, "many">>;
|
|
4228
|
+
authenticated: z.ZodOptional<z.ZodBoolean>;
|
|
4229
|
+
chatMenu: z.ZodOptional<z.ZodBoolean>;
|
|
4230
|
+
isButton: z.ZodOptional<z.ZodBoolean>;
|
|
4231
|
+
toolkit: z.ZodOptional<z.ZodBoolean>;
|
|
4232
|
+
}, "strip", z.ZodTypeAny, {
|
|
4233
|
+
name: string;
|
|
4234
|
+
pluginKey: string;
|
|
4235
|
+
description?: string | undefined;
|
|
4236
|
+
icon?: string | undefined;
|
|
4237
|
+
authConfig?: {
|
|
4238
|
+
description: string;
|
|
4239
|
+
authField: string;
|
|
4240
|
+
label: string;
|
|
4241
|
+
optional?: boolean | undefined;
|
|
4242
|
+
}[] | undefined;
|
|
4243
|
+
authenticated?: boolean | undefined;
|
|
4244
|
+
chatMenu?: boolean | undefined;
|
|
4245
|
+
isButton?: boolean | undefined;
|
|
4246
|
+
toolkit?: boolean | undefined;
|
|
4247
|
+
}, {
|
|
4248
|
+
name: string;
|
|
4249
|
+
pluginKey: string;
|
|
4250
|
+
description?: string | undefined;
|
|
4251
|
+
icon?: string | undefined;
|
|
4252
|
+
authConfig?: {
|
|
4253
|
+
description: string;
|
|
4254
|
+
authField: string;
|
|
4255
|
+
label: string;
|
|
4256
|
+
optional?: boolean | undefined;
|
|
4257
|
+
}[] | undefined;
|
|
4258
|
+
authenticated?: boolean | undefined;
|
|
4259
|
+
chatMenu?: boolean | undefined;
|
|
4260
|
+
isButton?: boolean | undefined;
|
|
4261
|
+
toolkit?: boolean | undefined;
|
|
4262
|
+
}>, "many">, z.ZodArray<z.ZodString, "many">]>>;
|
|
4263
|
+
modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4264
|
+
userLabel: z.ZodOptional<z.ZodString>;
|
|
4265
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4266
|
+
promptPrefix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4267
|
+
temperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4268
|
+
topP: z.ZodOptional<z.ZodNumber>;
|
|
4269
|
+
topK: z.ZodOptional<z.ZodNumber>;
|
|
4270
|
+
top_p: z.ZodOptional<z.ZodNumber>;
|
|
4271
|
+
frequency_penalty: z.ZodOptional<z.ZodNumber>;
|
|
4272
|
+
presence_penalty: z.ZodOptional<z.ZodNumber>;
|
|
4273
|
+
parentMessageId: z.ZodOptional<z.ZodString>;
|
|
4274
|
+
maxOutputTokens: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>>;
|
|
4275
|
+
maxContextTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
4276
|
+
max_tokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
4277
|
+
promptCache: z.ZodOptional<z.ZodBoolean>;
|
|
4278
|
+
system: z.ZodOptional<z.ZodString>;
|
|
4279
|
+
thinking: z.ZodOptional<z.ZodBoolean>;
|
|
4280
|
+
thinkingBudget: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
4281
|
+
thinkingLevel: z.ZodOptional<z.ZodNativeEnum<typeof ThinkingLevel>>;
|
|
4282
|
+
stream: z.ZodOptional<z.ZodBoolean>;
|
|
4283
|
+
artifacts: z.ZodOptional<z.ZodString>;
|
|
4284
|
+
context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4285
|
+
examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4286
|
+
input: z.ZodObject<{
|
|
4287
|
+
content: z.ZodString;
|
|
4288
|
+
}, "strip", z.ZodTypeAny, {
|
|
4289
|
+
content: string;
|
|
4290
|
+
}, {
|
|
4291
|
+
content: string;
|
|
4292
|
+
}>;
|
|
4293
|
+
output: z.ZodObject<{
|
|
4294
|
+
content: z.ZodString;
|
|
4295
|
+
}, "strip", z.ZodTypeAny, {
|
|
4296
|
+
content: string;
|
|
4297
|
+
}, {
|
|
4298
|
+
content: string;
|
|
4299
|
+
}>;
|
|
4300
|
+
}, "strip", z.ZodTypeAny, {
|
|
4301
|
+
input: {
|
|
4302
|
+
content: string;
|
|
4303
|
+
};
|
|
4304
|
+
output: {
|
|
4305
|
+
content: string;
|
|
4306
|
+
};
|
|
4307
|
+
}, {
|
|
4308
|
+
input: {
|
|
4309
|
+
content: string;
|
|
4310
|
+
};
|
|
4311
|
+
output: {
|
|
4312
|
+
content: string;
|
|
4313
|
+
};
|
|
4314
|
+
}>, "many">>;
|
|
4315
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4316
|
+
createdAt: z.ZodString;
|
|
4317
|
+
updatedAt: z.ZodString;
|
|
4318
|
+
resendFiles: z.ZodOptional<z.ZodBoolean>;
|
|
4319
|
+
file_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4320
|
+
imageDetail: z.ZodOptional<z.ZodNativeEnum<typeof ImageDetail>>;
|
|
4321
|
+
reasoning_effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof ReasoningEffort>>>;
|
|
4322
|
+
reasoning_summary: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof ReasoningSummary>>>;
|
|
4323
|
+
verbosity: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof Verbosity>>>;
|
|
4324
|
+
useResponsesApi: z.ZodOptional<z.ZodBoolean>;
|
|
4325
|
+
effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof AnthropicEffort>>>;
|
|
4326
|
+
thinkingDisplay: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof ThinkingDisplay>>>;
|
|
4327
|
+
web_search: z.ZodOptional<z.ZodBoolean>;
|
|
4328
|
+
disableStreaming: z.ZodOptional<z.ZodBoolean>;
|
|
4329
|
+
assistant_id: z.ZodOptional<z.ZodString>;
|
|
4330
|
+
agent_id: z.ZodOptional<z.ZodString>;
|
|
4331
|
+
region: z.ZodOptional<z.ZodString>;
|
|
4332
|
+
maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
4333
|
+
additionalModelRequestFields: z.ZodOptional<z.ZodType<DocumentTypeValue, z.ZodTypeDef, DocumentTypeValue>>;
|
|
4334
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
4335
|
+
additional_instructions: z.ZodOptional<z.ZodString>;
|
|
4336
|
+
append_current_datetime: z.ZodOptional<z.ZodBoolean>;
|
|
4337
|
+
/** Used to overwrite active conversation settings when saving a Preset */
|
|
4338
|
+
presetOverride: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4339
|
+
stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4340
|
+
greeting: z.ZodOptional<z.ZodString>;
|
|
4341
|
+
spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4342
|
+
iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4343
|
+
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4344
|
+
isTemporary: z.ZodOptional<z.ZodBoolean>;
|
|
4345
|
+
fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
4346
|
+
/** @deprecated */
|
|
4347
|
+
resendImages: z.ZodOptional<z.ZodBoolean>;
|
|
4348
|
+
/** @deprecated Prefer `modelLabel` over `chatGptLabel` */
|
|
4349
|
+
chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4350
|
+
}, "model" | "iconURL" | "modelLabel" | "promptPrefix" | "temperature" | "top_p" | "frequency_penalty" | "presence_penalty" | "maxContextTokens" | "max_tokens" | "artifacts" | "resendFiles" | "imageDetail" | "reasoning_effort" | "reasoning_summary" | "verbosity" | "useResponsesApi" | "web_search" | "disableStreaming" | "stop" | "greeting" | "spec" | "fileTokenLimit" | "chatGptLabel"> & Pick<{
|
|
4351
|
+
conversationId: z.ZodNullable<z.ZodString>;
|
|
4352
|
+
endpoint: z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>;
|
|
4353
|
+
endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
|
|
4354
|
+
isArchived: z.ZodOptional<z.ZodBoolean>;
|
|
4355
|
+
title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
|
|
4356
|
+
user: z.ZodOptional<z.ZodString>;
|
|
4357
|
+
messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4358
|
+
tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
4359
|
+
name: z.ZodString;
|
|
4360
|
+
pluginKey: z.ZodString;
|
|
4361
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4362
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
4363
|
+
authConfig: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4364
|
+
authField: z.ZodString;
|
|
4365
|
+
label: z.ZodString;
|
|
4366
|
+
description: z.ZodString;
|
|
4367
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
4368
|
+
}, "strip", z.ZodTypeAny, {
|
|
4369
|
+
description: string;
|
|
4370
|
+
authField: string;
|
|
4371
|
+
label: string;
|
|
4372
|
+
optional?: boolean | undefined;
|
|
4373
|
+
}, {
|
|
4374
|
+
description: string;
|
|
4375
|
+
authField: string;
|
|
4376
|
+
label: string;
|
|
4377
|
+
optional?: boolean | undefined;
|
|
4378
|
+
}>, "many">>;
|
|
4379
|
+
authenticated: z.ZodOptional<z.ZodBoolean>;
|
|
4380
|
+
chatMenu: z.ZodOptional<z.ZodBoolean>;
|
|
4381
|
+
isButton: z.ZodOptional<z.ZodBoolean>;
|
|
4382
|
+
toolkit: z.ZodOptional<z.ZodBoolean>;
|
|
4383
|
+
}, "strip", z.ZodTypeAny, {
|
|
4384
|
+
name: string;
|
|
4385
|
+
pluginKey: string;
|
|
4386
|
+
description?: string | undefined;
|
|
4387
|
+
icon?: string | undefined;
|
|
4388
|
+
authConfig?: {
|
|
4389
|
+
description: string;
|
|
4390
|
+
authField: string;
|
|
4391
|
+
label: string;
|
|
4392
|
+
optional?: boolean | undefined;
|
|
4393
|
+
}[] | undefined;
|
|
4394
|
+
authenticated?: boolean | undefined;
|
|
4395
|
+
chatMenu?: boolean | undefined;
|
|
4396
|
+
isButton?: boolean | undefined;
|
|
4397
|
+
toolkit?: boolean | undefined;
|
|
4398
|
+
}, {
|
|
4399
|
+
name: string;
|
|
4400
|
+
pluginKey: string;
|
|
4401
|
+
description?: string | undefined;
|
|
4402
|
+
icon?: string | undefined;
|
|
4403
|
+
authConfig?: {
|
|
4404
|
+
description: string;
|
|
4405
|
+
authField: string;
|
|
4406
|
+
label: string;
|
|
4407
|
+
optional?: boolean | undefined;
|
|
4408
|
+
}[] | undefined;
|
|
4409
|
+
authenticated?: boolean | undefined;
|
|
4410
|
+
chatMenu?: boolean | undefined;
|
|
4411
|
+
isButton?: boolean | undefined;
|
|
4412
|
+
toolkit?: boolean | undefined;
|
|
4413
|
+
}>, "many">, z.ZodArray<z.ZodString, "many">]>>;
|
|
4414
|
+
modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4415
|
+
userLabel: z.ZodOptional<z.ZodString>;
|
|
4416
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4417
|
+
promptPrefix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4418
|
+
temperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4419
|
+
topP: z.ZodOptional<z.ZodNumber>;
|
|
4420
|
+
topK: z.ZodOptional<z.ZodNumber>;
|
|
4421
|
+
top_p: z.ZodOptional<z.ZodNumber>;
|
|
4422
|
+
frequency_penalty: z.ZodOptional<z.ZodNumber>;
|
|
4423
|
+
presence_penalty: z.ZodOptional<z.ZodNumber>;
|
|
4424
|
+
parentMessageId: z.ZodOptional<z.ZodString>;
|
|
4425
|
+
maxOutputTokens: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>>;
|
|
4426
|
+
maxContextTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
4427
|
+
max_tokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
4428
|
+
promptCache: z.ZodOptional<z.ZodBoolean>;
|
|
4429
|
+
system: z.ZodOptional<z.ZodString>;
|
|
4430
|
+
thinking: z.ZodOptional<z.ZodBoolean>;
|
|
4431
|
+
thinkingBudget: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
4432
|
+
thinkingLevel: z.ZodOptional<z.ZodNativeEnum<typeof ThinkingLevel>>;
|
|
4433
|
+
stream: z.ZodOptional<z.ZodBoolean>;
|
|
4434
|
+
artifacts: z.ZodOptional<z.ZodString>;
|
|
4435
|
+
context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4436
|
+
examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4437
|
+
input: z.ZodObject<{
|
|
4438
|
+
content: z.ZodString;
|
|
4439
|
+
}, "strip", z.ZodTypeAny, {
|
|
4440
|
+
content: string;
|
|
4441
|
+
}, {
|
|
4442
|
+
content: string;
|
|
4443
|
+
}>;
|
|
4444
|
+
output: z.ZodObject<{
|
|
4445
|
+
content: z.ZodString;
|
|
4446
|
+
}, "strip", z.ZodTypeAny, {
|
|
4447
|
+
content: string;
|
|
4448
|
+
}, {
|
|
4449
|
+
content: string;
|
|
4450
|
+
}>;
|
|
4451
|
+
}, "strip", z.ZodTypeAny, {
|
|
4452
|
+
input: {
|
|
4453
|
+
content: string;
|
|
4454
|
+
};
|
|
4455
|
+
output: {
|
|
4456
|
+
content: string;
|
|
4457
|
+
};
|
|
4458
|
+
}, {
|
|
4459
|
+
input: {
|
|
4460
|
+
content: string;
|
|
4461
|
+
};
|
|
4462
|
+
output: {
|
|
4463
|
+
content: string;
|
|
4464
|
+
};
|
|
4465
|
+
}>, "many">>;
|
|
4466
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4467
|
+
createdAt: z.ZodString;
|
|
4468
|
+
updatedAt: z.ZodString;
|
|
4469
|
+
resendFiles: z.ZodOptional<z.ZodBoolean>;
|
|
4470
|
+
file_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4471
|
+
imageDetail: z.ZodOptional<z.ZodNativeEnum<typeof ImageDetail>>;
|
|
4472
|
+
reasoning_effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof ReasoningEffort>>>;
|
|
4473
|
+
reasoning_summary: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof ReasoningSummary>>>;
|
|
4474
|
+
verbosity: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof Verbosity>>>;
|
|
4475
|
+
useResponsesApi: z.ZodOptional<z.ZodBoolean>;
|
|
4476
|
+
effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof AnthropicEffort>>>;
|
|
4477
|
+
thinkingDisplay: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof ThinkingDisplay>>>;
|
|
4478
|
+
web_search: z.ZodOptional<z.ZodBoolean>;
|
|
4479
|
+
disableStreaming: z.ZodOptional<z.ZodBoolean>;
|
|
4480
|
+
assistant_id: z.ZodOptional<z.ZodString>;
|
|
4481
|
+
agent_id: z.ZodOptional<z.ZodString>;
|
|
4482
|
+
region: z.ZodOptional<z.ZodString>;
|
|
4483
|
+
maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
4484
|
+
additionalModelRequestFields: z.ZodOptional<z.ZodType<DocumentTypeValue, z.ZodTypeDef, DocumentTypeValue>>;
|
|
4485
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
4486
|
+
additional_instructions: z.ZodOptional<z.ZodString>;
|
|
4487
|
+
append_current_datetime: z.ZodOptional<z.ZodBoolean>;
|
|
4488
|
+
/** Used to overwrite active conversation settings when saving a Preset */
|
|
4489
|
+
presetOverride: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4490
|
+
stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4491
|
+
greeting: z.ZodOptional<z.ZodString>;
|
|
4492
|
+
spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4493
|
+
iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4494
|
+
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4495
|
+
isTemporary: z.ZodOptional<z.ZodBoolean>;
|
|
4496
|
+
fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
4497
|
+
/** @deprecated */
|
|
4498
|
+
resendImages: z.ZodOptional<z.ZodBoolean>;
|
|
4499
|
+
/** @deprecated Prefer `modelLabel` over `chatGptLabel` */
|
|
4500
|
+
chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4501
|
+
}, "promptCache">, "strip", z.ZodTypeAny, {
|
|
4502
|
+
model?: string | null | undefined;
|
|
4503
|
+
iconURL?: string | null | undefined;
|
|
4504
|
+
modelLabel?: string | null | undefined;
|
|
4505
|
+
promptPrefix?: string | null | undefined;
|
|
4506
|
+
temperature?: number | null | undefined;
|
|
4507
|
+
top_p?: number | undefined;
|
|
4508
|
+
frequency_penalty?: number | undefined;
|
|
4509
|
+
presence_penalty?: number | undefined;
|
|
4510
|
+
maxContextTokens?: number | undefined;
|
|
4511
|
+
max_tokens?: number | undefined;
|
|
4512
|
+
promptCache?: boolean | undefined;
|
|
4513
|
+
artifacts?: string | undefined;
|
|
4514
|
+
resendFiles?: boolean | undefined;
|
|
4515
|
+
imageDetail?: ImageDetail | undefined;
|
|
4516
|
+
reasoning_effort?: ReasoningEffort | null | undefined;
|
|
4517
|
+
reasoning_summary?: ReasoningSummary | null | undefined;
|
|
4518
|
+
verbosity?: Verbosity | null | undefined;
|
|
4519
|
+
useResponsesApi?: boolean | undefined;
|
|
4520
|
+
web_search?: boolean | undefined;
|
|
4521
|
+
disableStreaming?: boolean | undefined;
|
|
4522
|
+
stop?: string[] | undefined;
|
|
4523
|
+
greeting?: string | undefined;
|
|
4524
|
+
spec?: string | null | undefined;
|
|
4525
|
+
fileTokenLimit?: number | undefined;
|
|
4526
|
+
chatGptLabel?: string | null | undefined;
|
|
4527
|
+
}, {
|
|
4528
|
+
model?: string | null | undefined;
|
|
4529
|
+
iconURL?: string | null | undefined;
|
|
4530
|
+
modelLabel?: string | null | undefined;
|
|
4531
|
+
promptPrefix?: string | null | undefined;
|
|
4532
|
+
temperature?: number | null | undefined;
|
|
4533
|
+
top_p?: number | undefined;
|
|
4534
|
+
frequency_penalty?: number | undefined;
|
|
4535
|
+
presence_penalty?: number | undefined;
|
|
4536
|
+
maxContextTokens?: string | number | undefined;
|
|
4537
|
+
max_tokens?: string | number | undefined;
|
|
4538
|
+
promptCache?: boolean | undefined;
|
|
4539
|
+
artifacts?: string | undefined;
|
|
4540
|
+
resendFiles?: boolean | undefined;
|
|
4541
|
+
imageDetail?: ImageDetail | undefined;
|
|
4542
|
+
reasoning_effort?: ReasoningEffort | null | undefined;
|
|
4543
|
+
reasoning_summary?: ReasoningSummary | null | undefined;
|
|
4544
|
+
verbosity?: Verbosity | null | undefined;
|
|
4545
|
+
useResponsesApi?: boolean | undefined;
|
|
4546
|
+
web_search?: boolean | undefined;
|
|
4547
|
+
disableStreaming?: boolean | undefined;
|
|
4548
|
+
stop?: string[] | undefined;
|
|
4549
|
+
greeting?: string | undefined;
|
|
4550
|
+
spec?: string | null | undefined;
|
|
4551
|
+
fileTokenLimit?: string | number | undefined;
|
|
4552
|
+
chatGptLabel?: string | null | undefined;
|
|
4553
|
+
}>, Partial<Partial<TConversation>>, {
|
|
4554
|
+
model?: string | null | undefined;
|
|
4555
|
+
iconURL?: string | null | undefined;
|
|
4556
|
+
modelLabel?: string | null | undefined;
|
|
4557
|
+
promptPrefix?: string | null | undefined;
|
|
4558
|
+
temperature?: number | null | undefined;
|
|
4559
|
+
top_p?: number | undefined;
|
|
4560
|
+
frequency_penalty?: number | undefined;
|
|
4561
|
+
presence_penalty?: number | undefined;
|
|
4562
|
+
maxContextTokens?: string | number | undefined;
|
|
4563
|
+
max_tokens?: string | number | undefined;
|
|
4564
|
+
promptCache?: boolean | undefined;
|
|
4565
|
+
artifacts?: string | undefined;
|
|
4566
|
+
resendFiles?: boolean | undefined;
|
|
4567
|
+
imageDetail?: ImageDetail | undefined;
|
|
4568
|
+
reasoning_effort?: ReasoningEffort | null | undefined;
|
|
4569
|
+
reasoning_summary?: ReasoningSummary | null | undefined;
|
|
4570
|
+
verbosity?: Verbosity | null | undefined;
|
|
4571
|
+
useResponsesApi?: boolean | undefined;
|
|
4572
|
+
web_search?: boolean | undefined;
|
|
4573
|
+
disableStreaming?: boolean | undefined;
|
|
4574
|
+
stop?: string[] | undefined;
|
|
4575
|
+
greeting?: string | undefined;
|
|
4576
|
+
spec?: string | null | undefined;
|
|
4577
|
+
fileTokenLimit?: string | number | undefined;
|
|
4578
|
+
chatGptLabel?: string | null | undefined;
|
|
4579
|
+
}>>;
|
|
4122
4580
|
export declare const compactGoogleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
|
|
4123
4581
|
conversationId: z.ZodNullable<z.ZodString>;
|
|
4124
4582
|
endpoint: z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>;
|
|
@@ -4264,6 +4722,7 @@ export declare const compactGoogleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pi
|
|
|
4264
4722
|
spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4265
4723
|
iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4266
4724
|
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4725
|
+
isTemporary: z.ZodOptional<z.ZodBoolean>;
|
|
4267
4726
|
fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
4268
4727
|
/** @deprecated */
|
|
4269
4728
|
resendImages: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -4493,6 +4952,7 @@ export declare const anthropicBaseSchema: z.ZodObject<Pick<{
|
|
|
4493
4952
|
spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4494
4953
|
iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4495
4954
|
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4955
|
+
isTemporary: z.ZodOptional<z.ZodBoolean>;
|
|
4496
4956
|
fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
4497
4957
|
/** @deprecated */
|
|
4498
4958
|
resendImages: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -4690,6 +5150,7 @@ export declare const anthropicSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
|
|
|
4690
5150
|
spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4691
5151
|
iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4692
5152
|
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5153
|
+
isTemporary: z.ZodOptional<z.ZodBoolean>;
|
|
4693
5154
|
fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
4694
5155
|
/** @deprecated */
|
|
4695
5156
|
resendImages: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -4962,6 +5423,7 @@ export declare const compactAgentsBaseSchema: z.ZodObject<Pick<{
|
|
|
4962
5423
|
spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4963
5424
|
iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4964
5425
|
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5426
|
+
isTemporary: z.ZodOptional<z.ZodBoolean>;
|
|
4965
5427
|
fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
4966
5428
|
/** @deprecated */
|
|
4967
5429
|
resendImages: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -5127,6 +5589,7 @@ export declare const compactAgentsSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pi
|
|
|
5127
5589
|
spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5128
5590
|
iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5129
5591
|
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5592
|
+
isTemporary: z.ZodOptional<z.ZodBoolean>;
|
|
5130
5593
|
fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
5131
5594
|
/** @deprecated */
|
|
5132
5595
|
resendImages: z.ZodOptional<z.ZodBoolean>;
|