librechat-data-provider 0.8.504 → 0.8.506
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{data-service-Dk-uLruo.js → data-service-CCdWvcRd.js} +109 -7
- package/dist/data-service-CCdWvcRd.js.map +1 -0
- package/dist/{data-service-BFGYAHRx.mjs → data-service-D7mtXwG5.mjs} +98 -8
- package/dist/data-service-D7mtXwG5.mjs.map +1 -0
- package/dist/index.js +187 -50
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +181 -51
- package/dist/index.mjs.map +1 -1
- package/dist/react-query/index.js +6 -1
- package/dist/react-query/index.js.map +1 -1
- package/dist/react-query/index.mjs +6 -1
- package/dist/react-query/index.mjs.map +1 -1
- package/dist/types/api-endpoints.d.ts +3 -0
- package/dist/types/bedrock.d.ts +20 -5
- package/dist/types/config.d.ts +643 -90
- package/dist/types/data-service.d.ts +4 -0
- package/dist/types/generate.d.ts +4 -0
- package/dist/types/keys.d.ts +4 -1
- package/dist/types/models.d.ts +34 -0
- package/dist/types/parsers.d.ts +2 -1
- package/dist/types/react-query/react-query-service.d.ts +2 -2
- package/dist/types/schemas.d.ts +94 -4
- package/dist/types/types/agents.d.ts +5 -0
- package/dist/types/types/mutations.d.ts +1 -0
- package/dist/types/types/runs.d.ts +125 -0
- package/dist/types/types.d.ts +18 -1
- package/package.json +2 -2
- package/dist/data-service-BFGYAHRx.mjs.map +0 -1
- package/dist/data-service-Dk-uLruo.js.map +0 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { AxiosResponse } from 'axios';
|
|
2
|
+
import type { TContextProjectionRequest, TContextUsageEvent } from './types/runs';
|
|
2
3
|
import type { TFileConfig } from './file-config';
|
|
3
4
|
import type * as t from './types';
|
|
4
5
|
import * as permissions from './accessPermissions';
|
|
@@ -77,6 +78,8 @@ export declare const getStartupConfig: (options?: StartupConfigOptions) => Promi
|
|
|
77
78
|
}>;
|
|
78
79
|
}>;
|
|
79
80
|
export declare const getAIEndpoints: () => Promise<t.TEndpointsConfig>;
|
|
81
|
+
export declare const getTokenConfig: () => Promise<t.TTokenConfigMap>;
|
|
82
|
+
export declare const getContextProjection: (payload: TContextProjectionRequest) => Promise<TContextUsageEvent | null>;
|
|
80
83
|
export declare const getModels: () => Promise<t.TModelsConfig>;
|
|
81
84
|
export declare const createAssistant: ({ version, ...data }: a.AssistantCreateParams) => Promise<a.Assistant>;
|
|
82
85
|
export declare const getAssistantById: ({ endpoint, assistant_id, version, }: {
|
|
@@ -234,6 +237,7 @@ export declare function getProjectById(projectId: string): Promise<t.TChatProjec
|
|
|
234
237
|
export declare function updateProject(payload: t.TUpdateChatProjectRequest): Promise<t.TChatProject>;
|
|
235
238
|
export declare function deleteProject(projectId: string): Promise<t.TDeleteChatProjectResponse>;
|
|
236
239
|
export declare function assignConversationToProject(payload: t.TAssignConversationToProjectRequest): Promise<t.TAssignConversationToProjectResponse>;
|
|
240
|
+
export declare function pinConversation(payload: t.TPinConversationRequest): Promise<t.TPinConversationResponse>;
|
|
237
241
|
export declare function genTitle(payload: m.TGenTitleRequest): Promise<m.TGenTitleResponse>;
|
|
238
242
|
export declare const listMessages: (params?: q.MessagesListParams) => Promise<q.MessagesListResponse>;
|
|
239
243
|
export declare function updateMessage(payload: t.TUpdateMessageRequest): Promise<unknown>;
|
package/dist/types/generate.d.ts
CHANGED
|
@@ -97,6 +97,7 @@ export declare const generateOpenAISchema: (customOpenAI: OpenAISettings) => z.Z
|
|
|
97
97
|
endpoint: z.ZodNullable<z.ZodNativeEnum<typeof import("./schemas").EModelEndpoint>>;
|
|
98
98
|
endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("./schemas").EModelEndpoint>>>;
|
|
99
99
|
isArchived: z.ZodOptional<z.ZodBoolean>;
|
|
100
|
+
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
100
101
|
title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
|
|
101
102
|
user: z.ZodOptional<z.ZodString>;
|
|
102
103
|
messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -176,6 +177,7 @@ export declare const generateOpenAISchema: (customOpenAI: OpenAISettings) => z.Z
|
|
|
176
177
|
maxContextTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
177
178
|
max_tokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
178
179
|
promptCache: z.ZodOptional<z.ZodBoolean>;
|
|
180
|
+
promptCacheTtl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
179
181
|
system: z.ZodOptional<z.ZodString>;
|
|
180
182
|
thinking: z.ZodOptional<z.ZodBoolean>;
|
|
181
183
|
thinkingBudget: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
@@ -344,6 +346,7 @@ export declare const generateGoogleSchema: (customGoogle: GoogleSettings) => z.Z
|
|
|
344
346
|
endpoint: z.ZodNullable<z.ZodNativeEnum<typeof import("./schemas").EModelEndpoint>>;
|
|
345
347
|
endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("./schemas").EModelEndpoint>>>;
|
|
346
348
|
isArchived: z.ZodOptional<z.ZodBoolean>;
|
|
349
|
+
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
347
350
|
title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
|
|
348
351
|
user: z.ZodOptional<z.ZodString>;
|
|
349
352
|
messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -423,6 +426,7 @@ export declare const generateGoogleSchema: (customGoogle: GoogleSettings) => z.Z
|
|
|
423
426
|
maxContextTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
424
427
|
max_tokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
425
428
|
promptCache: z.ZodOptional<z.ZodBoolean>;
|
|
429
|
+
promptCacheTtl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
426
430
|
system: z.ZodOptional<z.ZodString>;
|
|
427
431
|
thinking: z.ZodOptional<z.ZodBoolean>;
|
|
428
432
|
thinkingBudget: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
package/dist/types/keys.d.ts
CHANGED
|
@@ -12,6 +12,8 @@ export declare enum QueryKeys {
|
|
|
12
12
|
models = "models",
|
|
13
13
|
balance = "balance",
|
|
14
14
|
endpoints = "endpoints",
|
|
15
|
+
tokenConfig = "tokenConfig",
|
|
16
|
+
contextProjection = "contextProjection",
|
|
15
17
|
presets = "presets",
|
|
16
18
|
searchResults = "searchResults",
|
|
17
19
|
tokenCount = "tokenCount",
|
|
@@ -110,5 +112,6 @@ export declare enum MutationKeys {
|
|
|
110
112
|
createSkillNode = "createSkillNode",
|
|
111
113
|
updateSkillNode = "updateSkillNode",
|
|
112
114
|
deleteSkillNode = "deleteSkillNode",
|
|
113
|
-
updateSkillNodeContent = "updateSkillNodeContent"
|
|
115
|
+
updateSkillNodeContent = "updateSkillNodeContent",
|
|
116
|
+
convoPin = "convoPin"
|
|
114
117
|
}
|
package/dist/types/models.d.ts
CHANGED
|
@@ -27,6 +27,8 @@ export type TModelSpec = {
|
|
|
27
27
|
showIconInHeader?: boolean;
|
|
28
28
|
/** Show this spec's label and description on the chat landing in place of the greeting. */
|
|
29
29
|
showOnLanding?: boolean;
|
|
30
|
+
/** Conversation starter prompts shown on the chat landing while this spec is active. */
|
|
31
|
+
conversation_starters?: string[];
|
|
30
32
|
iconURL?: string | EModelEndpoint;
|
|
31
33
|
authType?: AuthType;
|
|
32
34
|
/** Hide the chat input tool badge row while this model spec is active. */
|
|
@@ -61,6 +63,7 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
61
63
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
62
64
|
endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
|
|
63
65
|
isArchived: z.ZodOptional<z.ZodBoolean>;
|
|
66
|
+
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
64
67
|
messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
65
68
|
tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
66
69
|
name: z.ZodString;
|
|
@@ -137,6 +140,7 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
137
140
|
maxContextTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
138
141
|
max_tokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
139
142
|
promptCache: z.ZodOptional<z.ZodBoolean>;
|
|
143
|
+
promptCacheTtl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
140
144
|
system: z.ZodOptional<z.ZodString>;
|
|
141
145
|
thinking: z.ZodOptional<z.ZodBoolean>;
|
|
142
146
|
thinkingBudget: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
@@ -262,6 +266,7 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
262
266
|
endpoint: string | null;
|
|
263
267
|
model?: string | null | undefined;
|
|
264
268
|
endpointType?: EModelEndpoint | null | undefined;
|
|
269
|
+
pinned?: boolean | undefined;
|
|
265
270
|
tools?: string[] | {
|
|
266
271
|
name: string;
|
|
267
272
|
pluginKey: string;
|
|
@@ -292,6 +297,7 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
292
297
|
maxContextTokens?: number | undefined;
|
|
293
298
|
max_tokens?: number | undefined;
|
|
294
299
|
promptCache?: boolean | undefined;
|
|
300
|
+
promptCacheTtl?: "5m" | "1h" | undefined;
|
|
295
301
|
system?: string | undefined;
|
|
296
302
|
thinking?: boolean | undefined;
|
|
297
303
|
thinkingBudget?: number | undefined;
|
|
@@ -358,6 +364,7 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
358
364
|
endpoint: string | null;
|
|
359
365
|
model?: string | null | undefined;
|
|
360
366
|
endpointType?: EModelEndpoint | null | undefined;
|
|
367
|
+
pinned?: boolean | undefined;
|
|
361
368
|
tools?: string[] | {
|
|
362
369
|
name: string;
|
|
363
370
|
pluginKey: string;
|
|
@@ -388,6 +395,7 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
388
395
|
maxContextTokens?: string | number | undefined;
|
|
389
396
|
max_tokens?: string | number | undefined;
|
|
390
397
|
promptCache?: boolean | undefined;
|
|
398
|
+
promptCacheTtl?: "5m" | "1h" | undefined;
|
|
391
399
|
system?: string | undefined;
|
|
392
400
|
thinking?: boolean | undefined;
|
|
393
401
|
thinkingBudget?: string | number | undefined;
|
|
@@ -460,6 +468,7 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
460
468
|
showIconInMenu: z.ZodOptional<z.ZodBoolean>;
|
|
461
469
|
showIconInHeader: z.ZodOptional<z.ZodBoolean>;
|
|
462
470
|
showOnLanding: z.ZodOptional<z.ZodBoolean>;
|
|
471
|
+
conversation_starters: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
463
472
|
iconURL: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<typeof EModelEndpoint>]>>;
|
|
464
473
|
authType: z.ZodOptional<z.ZodNativeEnum<typeof AuthType>>;
|
|
465
474
|
hideBadgeRow: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -489,6 +498,7 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
489
498
|
endpoint: string | null;
|
|
490
499
|
model?: string | null | undefined;
|
|
491
500
|
endpointType?: EModelEndpoint | null | undefined;
|
|
501
|
+
pinned?: boolean | undefined;
|
|
492
502
|
tools?: string[] | {
|
|
493
503
|
name: string;
|
|
494
504
|
pluginKey: string;
|
|
@@ -519,6 +529,7 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
519
529
|
maxContextTokens?: number | undefined;
|
|
520
530
|
max_tokens?: number | undefined;
|
|
521
531
|
promptCache?: boolean | undefined;
|
|
532
|
+
promptCacheTtl?: "5m" | "1h" | undefined;
|
|
522
533
|
system?: string | undefined;
|
|
523
534
|
thinking?: boolean | undefined;
|
|
524
535
|
thinkingBudget?: number | undefined;
|
|
@@ -593,6 +604,7 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
593
604
|
showIconInMenu?: boolean | undefined;
|
|
594
605
|
showIconInHeader?: boolean | undefined;
|
|
595
606
|
showOnLanding?: boolean | undefined;
|
|
607
|
+
conversation_starters?: string[] | undefined;
|
|
596
608
|
authType?: AuthType | undefined;
|
|
597
609
|
hideBadgeRow?: boolean | undefined;
|
|
598
610
|
webSearch?: boolean | undefined;
|
|
@@ -612,6 +624,7 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
612
624
|
endpoint: string | null;
|
|
613
625
|
model?: string | null | undefined;
|
|
614
626
|
endpointType?: EModelEndpoint | null | undefined;
|
|
627
|
+
pinned?: boolean | undefined;
|
|
615
628
|
tools?: string[] | {
|
|
616
629
|
name: string;
|
|
617
630
|
pluginKey: string;
|
|
@@ -642,6 +655,7 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
642
655
|
maxContextTokens?: string | number | undefined;
|
|
643
656
|
max_tokens?: string | number | undefined;
|
|
644
657
|
promptCache?: boolean | undefined;
|
|
658
|
+
promptCacheTtl?: "5m" | "1h" | undefined;
|
|
645
659
|
system?: string | undefined;
|
|
646
660
|
thinking?: boolean | undefined;
|
|
647
661
|
thinkingBudget?: string | number | undefined;
|
|
@@ -716,6 +730,7 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
716
730
|
showIconInMenu?: boolean | undefined;
|
|
717
731
|
showIconInHeader?: boolean | undefined;
|
|
718
732
|
showOnLanding?: boolean | undefined;
|
|
733
|
+
conversation_starters?: string[] | undefined;
|
|
719
734
|
authType?: AuthType | undefined;
|
|
720
735
|
hideBadgeRow?: boolean | undefined;
|
|
721
736
|
webSearch?: boolean | undefined;
|
|
@@ -741,6 +756,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
741
756
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
742
757
|
endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
|
|
743
758
|
isArchived: z.ZodOptional<z.ZodBoolean>;
|
|
759
|
+
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
744
760
|
messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
745
761
|
tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
746
762
|
name: z.ZodString;
|
|
@@ -817,6 +833,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
817
833
|
maxContextTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
818
834
|
max_tokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
819
835
|
promptCache: z.ZodOptional<z.ZodBoolean>;
|
|
836
|
+
promptCacheTtl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
820
837
|
system: z.ZodOptional<z.ZodString>;
|
|
821
838
|
thinking: z.ZodOptional<z.ZodBoolean>;
|
|
822
839
|
thinkingBudget: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
@@ -942,6 +959,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
942
959
|
endpoint: string | null;
|
|
943
960
|
model?: string | null | undefined;
|
|
944
961
|
endpointType?: EModelEndpoint | null | undefined;
|
|
962
|
+
pinned?: boolean | undefined;
|
|
945
963
|
tools?: string[] | {
|
|
946
964
|
name: string;
|
|
947
965
|
pluginKey: string;
|
|
@@ -972,6 +990,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
972
990
|
maxContextTokens?: number | undefined;
|
|
973
991
|
max_tokens?: number | undefined;
|
|
974
992
|
promptCache?: boolean | undefined;
|
|
993
|
+
promptCacheTtl?: "5m" | "1h" | undefined;
|
|
975
994
|
system?: string | undefined;
|
|
976
995
|
thinking?: boolean | undefined;
|
|
977
996
|
thinkingBudget?: number | undefined;
|
|
@@ -1038,6 +1057,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1038
1057
|
endpoint: string | null;
|
|
1039
1058
|
model?: string | null | undefined;
|
|
1040
1059
|
endpointType?: EModelEndpoint | null | undefined;
|
|
1060
|
+
pinned?: boolean | undefined;
|
|
1041
1061
|
tools?: string[] | {
|
|
1042
1062
|
name: string;
|
|
1043
1063
|
pluginKey: string;
|
|
@@ -1068,6 +1088,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1068
1088
|
maxContextTokens?: string | number | undefined;
|
|
1069
1089
|
max_tokens?: string | number | undefined;
|
|
1070
1090
|
promptCache?: boolean | undefined;
|
|
1091
|
+
promptCacheTtl?: "5m" | "1h" | undefined;
|
|
1071
1092
|
system?: string | undefined;
|
|
1072
1093
|
thinking?: boolean | undefined;
|
|
1073
1094
|
thinkingBudget?: string | number | undefined;
|
|
@@ -1140,6 +1161,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1140
1161
|
showIconInMenu: z.ZodOptional<z.ZodBoolean>;
|
|
1141
1162
|
showIconInHeader: z.ZodOptional<z.ZodBoolean>;
|
|
1142
1163
|
showOnLanding: z.ZodOptional<z.ZodBoolean>;
|
|
1164
|
+
conversation_starters: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1143
1165
|
iconURL: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<typeof EModelEndpoint>]>>;
|
|
1144
1166
|
authType: z.ZodOptional<z.ZodNativeEnum<typeof AuthType>>;
|
|
1145
1167
|
hideBadgeRow: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1169,6 +1191,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1169
1191
|
endpoint: string | null;
|
|
1170
1192
|
model?: string | null | undefined;
|
|
1171
1193
|
endpointType?: EModelEndpoint | null | undefined;
|
|
1194
|
+
pinned?: boolean | undefined;
|
|
1172
1195
|
tools?: string[] | {
|
|
1173
1196
|
name: string;
|
|
1174
1197
|
pluginKey: string;
|
|
@@ -1199,6 +1222,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1199
1222
|
maxContextTokens?: number | undefined;
|
|
1200
1223
|
max_tokens?: number | undefined;
|
|
1201
1224
|
promptCache?: boolean | undefined;
|
|
1225
|
+
promptCacheTtl?: "5m" | "1h" | undefined;
|
|
1202
1226
|
system?: string | undefined;
|
|
1203
1227
|
thinking?: boolean | undefined;
|
|
1204
1228
|
thinkingBudget?: number | undefined;
|
|
@@ -1273,6 +1297,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1273
1297
|
showIconInMenu?: boolean | undefined;
|
|
1274
1298
|
showIconInHeader?: boolean | undefined;
|
|
1275
1299
|
showOnLanding?: boolean | undefined;
|
|
1300
|
+
conversation_starters?: string[] | undefined;
|
|
1276
1301
|
authType?: AuthType | undefined;
|
|
1277
1302
|
hideBadgeRow?: boolean | undefined;
|
|
1278
1303
|
webSearch?: boolean | undefined;
|
|
@@ -1292,6 +1317,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1292
1317
|
endpoint: string | null;
|
|
1293
1318
|
model?: string | null | undefined;
|
|
1294
1319
|
endpointType?: EModelEndpoint | null | undefined;
|
|
1320
|
+
pinned?: boolean | undefined;
|
|
1295
1321
|
tools?: string[] | {
|
|
1296
1322
|
name: string;
|
|
1297
1323
|
pluginKey: string;
|
|
@@ -1322,6 +1348,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1322
1348
|
maxContextTokens?: string | number | undefined;
|
|
1323
1349
|
max_tokens?: string | number | undefined;
|
|
1324
1350
|
promptCache?: boolean | undefined;
|
|
1351
|
+
promptCacheTtl?: "5m" | "1h" | undefined;
|
|
1325
1352
|
system?: string | undefined;
|
|
1326
1353
|
thinking?: boolean | undefined;
|
|
1327
1354
|
thinkingBudget?: string | number | undefined;
|
|
@@ -1396,6 +1423,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1396
1423
|
showIconInMenu?: boolean | undefined;
|
|
1397
1424
|
showIconInHeader?: boolean | undefined;
|
|
1398
1425
|
showOnLanding?: boolean | undefined;
|
|
1426
|
+
conversation_starters?: string[] | undefined;
|
|
1399
1427
|
authType?: AuthType | undefined;
|
|
1400
1428
|
hideBadgeRow?: boolean | undefined;
|
|
1401
1429
|
webSearch?: boolean | undefined;
|
|
@@ -1420,6 +1448,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1420
1448
|
endpoint: string | null;
|
|
1421
1449
|
model?: string | null | undefined;
|
|
1422
1450
|
endpointType?: EModelEndpoint | null | undefined;
|
|
1451
|
+
pinned?: boolean | undefined;
|
|
1423
1452
|
tools?: string[] | {
|
|
1424
1453
|
name: string;
|
|
1425
1454
|
pluginKey: string;
|
|
@@ -1450,6 +1479,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1450
1479
|
maxContextTokens?: number | undefined;
|
|
1451
1480
|
max_tokens?: number | undefined;
|
|
1452
1481
|
promptCache?: boolean | undefined;
|
|
1482
|
+
promptCacheTtl?: "5m" | "1h" | undefined;
|
|
1453
1483
|
system?: string | undefined;
|
|
1454
1484
|
thinking?: boolean | undefined;
|
|
1455
1485
|
thinkingBudget?: number | undefined;
|
|
@@ -1524,6 +1554,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1524
1554
|
showIconInMenu?: boolean | undefined;
|
|
1525
1555
|
showIconInHeader?: boolean | undefined;
|
|
1526
1556
|
showOnLanding?: boolean | undefined;
|
|
1557
|
+
conversation_starters?: string[] | undefined;
|
|
1527
1558
|
authType?: AuthType | undefined;
|
|
1528
1559
|
hideBadgeRow?: boolean | undefined;
|
|
1529
1560
|
webSearch?: boolean | undefined;
|
|
@@ -1548,6 +1579,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1548
1579
|
endpoint: string | null;
|
|
1549
1580
|
model?: string | null | undefined;
|
|
1550
1581
|
endpointType?: EModelEndpoint | null | undefined;
|
|
1582
|
+
pinned?: boolean | undefined;
|
|
1551
1583
|
tools?: string[] | {
|
|
1552
1584
|
name: string;
|
|
1553
1585
|
pluginKey: string;
|
|
@@ -1578,6 +1610,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1578
1610
|
maxContextTokens?: string | number | undefined;
|
|
1579
1611
|
max_tokens?: string | number | undefined;
|
|
1580
1612
|
promptCache?: boolean | undefined;
|
|
1613
|
+
promptCacheTtl?: "5m" | "1h" | undefined;
|
|
1581
1614
|
system?: string | undefined;
|
|
1582
1615
|
thinking?: boolean | undefined;
|
|
1583
1616
|
thinkingBudget?: string | number | undefined;
|
|
@@ -1652,6 +1685,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1652
1685
|
showIconInMenu?: boolean | undefined;
|
|
1653
1686
|
showIconInHeader?: boolean | undefined;
|
|
1654
1687
|
showOnLanding?: boolean | undefined;
|
|
1688
|
+
conversation_starters?: string[] | undefined;
|
|
1655
1689
|
authType?: AuthType | undefined;
|
|
1656
1690
|
hideBadgeRow?: boolean | undefined;
|
|
1657
1691
|
webSearch?: boolean | undefined;
|
package/dist/types/parsers.d.ts
CHANGED
|
@@ -33,10 +33,11 @@ export declare const parseCompactConvo: ({ endpoint, endpointType, conversation,
|
|
|
33
33
|
export declare function parseTextParts(contentParts: Array<a.TMessageContentParts | undefined>, skipReasoning?: boolean): string;
|
|
34
34
|
export declare const SEPARATORS: string[];
|
|
35
35
|
export declare function findLastSeparatorIndex(text: string, separators?: string[]): number;
|
|
36
|
-
export declare function replaceSpecialVars({ text, user, now: inputNow, }: {
|
|
36
|
+
export declare function replaceSpecialVars({ text, user, now: inputNow, timezone, }: {
|
|
37
37
|
text: string;
|
|
38
38
|
user?: t.TUser | null;
|
|
39
39
|
now?: string | number | Date;
|
|
40
|
+
timezone?: string;
|
|
40
41
|
}): string;
|
|
41
42
|
/**
|
|
42
43
|
* Parsed ephemeral agent ID result
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { UseQueryOptions, UseMutationResult, QueryObserverResult } from '@tanstack/react-query';
|
|
2
2
|
import { MCPServerConnectionStatusResponse } from '../types/queries';
|
|
3
|
+
import * as permissions from '../accessPermissions';
|
|
4
|
+
import { ResourceType } from '../accessPermissions';
|
|
3
5
|
import * as m from '../types/mutations';
|
|
4
6
|
import * as q from '../types/queries';
|
|
5
7
|
import * as s from '../schemas';
|
|
6
8
|
import * as t from '../types';
|
|
7
|
-
import * as permissions from '../accessPermissions';
|
|
8
|
-
import { ResourceType } from '../accessPermissions';
|
|
9
9
|
export { hasPermissions } from '../accessPermissions';
|
|
10
10
|
export declare const useGetSharedMessages: (shareId: string, config?: UseQueryOptions<t.TSharedMessagesResponse>) => QueryObserverResult<t.TSharedMessagesResponse>;
|
|
11
11
|
export declare const useGetSharedLinkQuery: (conversationId: string, config?: UseQueryOptions<t.TSharedLinkGetResponse>) => QueryObserverResult<t.TSharedLinkGetResponse>;
|