librechat-data-provider 0.8.508 → 0.8.521

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.
Files changed (42) hide show
  1. package/dist/{data-service-DN-HeTC-.js → data-service-DOIF4BkW.js} +1211 -92
  2. package/dist/data-service-DOIF4BkW.js.map +1 -0
  3. package/dist/{data-service-DgNwjhBS.mjs → data-service-pwrlWjJs.mjs} +1062 -93
  4. package/dist/data-service-pwrlWjJs.mjs.map +1 -0
  5. package/dist/index.js +472 -57
  6. package/dist/index.js.map +1 -1
  7. package/dist/index.mjs +440 -58
  8. package/dist/index.mjs.map +1 -1
  9. package/dist/react-query/index.js +1 -1
  10. package/dist/react-query/index.js.map +1 -1
  11. package/dist/react-query/index.mjs +1 -1
  12. package/dist/react-query/index.mjs.map +1 -1
  13. package/dist/types/actions.d.ts +1 -1
  14. package/dist/types/api-endpoints.d.ts +11 -2
  15. package/dist/types/bedrock.d.ts +57 -0
  16. package/dist/types/config.d.ts +4230 -183
  17. package/dist/types/data-service.d.ts +28 -14
  18. package/dist/types/feedback.d.ts +9 -1
  19. package/dist/types/file-config.d.ts +41 -5
  20. package/dist/types/generate.d.ts +8 -0
  21. package/dist/types/keys.d.ts +7 -2
  22. package/dist/types/mcp.d.ts +45 -24
  23. package/dist/types/messages.d.ts +8 -0
  24. package/dist/types/models.d.ts +120 -0
  25. package/dist/types/parameterSettings.d.ts +2 -2
  26. package/dist/types/parsers.d.ts +3 -1
  27. package/dist/types/react-query/react-query-service.d.ts +2 -7
  28. package/dist/types/request.d.ts +3 -1
  29. package/dist/types/schemas.d.ts +211 -11
  30. package/dist/types/types/agents.d.ts +211 -1
  31. package/dist/types/types/assistants.d.ts +77 -5
  32. package/dist/types/types/files.d.ts +18 -7
  33. package/dist/types/types/mcpServers.d.ts +25 -0
  34. package/dist/types/types/mutations.d.ts +1 -0
  35. package/dist/types/types/queries.d.ts +17 -3
  36. package/dist/types/types/runs.d.ts +114 -25
  37. package/dist/types/types/skills.d.ts +25 -6
  38. package/dist/types/types.d.ts +117 -2
  39. package/dist/types/upload.d.ts +2 -0
  40. package/package.json +4 -4
  41. package/dist/data-service-DN-HeTC-.js.map +0 -1
  42. package/dist/data-service-DgNwjhBS.mjs.map +0 -1
@@ -1,5 +1,4 @@
1
1
  import type { AxiosResponse } from 'axios';
2
- import type { TContextProjectionRequest, TContextUsageEvent } from './types/runs';
3
2
  import type { TFileConfig } from './file-config';
4
3
  import type * as t from './types';
5
4
  import * as permissions from './accessPermissions';
@@ -13,22 +12,26 @@ import * as f from './types/files';
13
12
  import * as config from './config';
14
13
  import * as s from './schemas';
15
14
  import * as r from './roles';
15
+ export declare function getLangfuseConnection(): Promise<t.TLangfuseConnectionStatus>;
16
+ export declare function updateLangfuseConnection(payload: t.TUpdateLangfuseConnectionRequest): Promise<t.TLangfuseConnectionStatus>;
17
+ export declare function testLangfuseConnection(payload: t.TLangfuseConnectionTestRequest): Promise<t.TLangfuseConnectionTestResponse>;
18
+ export declare function getLangfuseSessionLink(conversationId: string): Promise<t.TLangfuseSessionLinkResponse>;
16
19
  export declare function revokeUserKey(name: string): Promise<unknown>;
17
20
  export declare function revokeAllUserKeys(): Promise<unknown>;
18
21
  export declare function deleteUser(payload?: t.TDeleteUserRequest): Promise<unknown>;
19
22
  export declare function getFavorites(): Promise<q.TUserFavorite[]>;
20
23
  export declare function updateFavorites(favorites: q.TUserFavorite[]): Promise<q.TUserFavorite[]>;
21
- /**
22
- * Skill favorites (star-a-skill). The backend route is phase 2 — see the
23
- * original UI PR for the client surface. Until then, these resolve with
24
- * an empty list so the UI hooks compile and the Star button is a no-op.
25
- */
26
- export declare function getSkillFavorites(): Promise<string[]>;
27
- export declare function updateSkillFavorites(skillFavorites: string[]): Promise<string[]>;
24
+ /** Tool favorites — starred marketplace items (builtins, tools, MCP servers, skills). */
25
+ export declare function getToolFavorites(): Promise<q.TToolFavorite[]>;
26
+ export declare function addToolFavorite(favorite: q.TToolFavorite): Promise<q.TToolFavorite>;
27
+ export declare function removeToolFavorite(favorite: q.TToolFavorite): Promise<{
28
+ ok: boolean;
29
+ }>;
28
30
  /** Per-user skill active/inactive overrides. */
29
31
  export declare function getSkillStates(): Promise<sk.TSkillStatesResponse>;
30
32
  export declare function updateSkillStates(skillStates: sk.TSkillStatesResponse): Promise<sk.TSkillStatesResponse>;
31
33
  export declare function getSharedMessages(shareId: string): Promise<t.TSharedMessagesResponse>;
34
+ export declare function getSharedStartupConfig(shareId: string): Promise<config.TSharedLinkStartupConfig>;
32
35
  export declare const listSharedLinks: (params: q.SharedLinksListParams) => Promise<q.SharedLinksResponse>;
33
36
  export declare function getSharedLink(conversationId: string): Promise<t.TSharedLinkGetResponse>;
34
37
  export declare function createSharedLink(conversationId: string, targetMessageId?: string, snapshotFiles?: boolean): Promise<t.TSharedLinkResponse>;
@@ -57,7 +60,7 @@ export declare const verifyEmail: (payload: t.TVerifyEmail) => Promise<t.VerifyE
57
60
  export declare const resendVerificationEmail: (payload: t.TResendVerificationEmail) => Promise<t.VerifyEmailResponse>;
58
61
  export declare const getAvailablePlugins: () => Promise<s.TPlugin[]>;
59
62
  export declare const updateUserPlugins: (payload: t.TUpdateUserPlugins) => Promise<any>;
60
- export declare const reinitializeMCPServer: (serverName: string) => Promise<any>;
63
+ export declare const reinitializeMCPServer: (serverName: string) => Promise<mcp.MCPReinitializeResponse>;
61
64
  export declare const bindMCPOAuth: (serverName: string) => Promise<{
62
65
  success: boolean;
63
66
  }>;
@@ -68,6 +71,7 @@ export declare const getMCPConnectionStatus: () => Promise<q.MCPConnectionStatus
68
71
  export declare const getMCPServerConnectionStatus: (serverName: string) => Promise<q.MCPServerConnectionStatusResponse>;
69
72
  export declare const getMCPAuthValues: (serverName: string) => Promise<q.MCPAuthValuesResponse>;
70
73
  export declare function cancelMCPOAuth(serverName: string): Promise<m.CancelMCPOAuthResponse>;
74
+ export declare function getMCPOAuthStatus(flowId: string): Promise<mcp.MCPOAuthStatusResponse>;
71
75
  export type StartupConfigOptions = {
72
76
  context?: config.StartupConfigContext;
73
77
  };
@@ -79,7 +83,6 @@ export declare const getStartupConfig: (options?: StartupConfigOptions) => Promi
79
83
  }>;
80
84
  export declare const getAIEndpoints: () => Promise<t.TEndpointsConfig>;
81
85
  export declare const getTokenConfig: () => Promise<t.TTokenConfigMap>;
82
- export declare const getContextProjection: (payload: TContextProjectionRequest) => Promise<TContextUsageEvent | null>;
83
86
  export declare const getModels: () => Promise<t.TModelsConfig>;
84
87
  export declare const createAssistant: ({ version, ...data }: a.AssistantCreateParams) => Promise<a.Assistant>;
85
88
  export declare const getAssistantById: ({ endpoint, assistant_id, version, }: {
@@ -126,8 +129,14 @@ export declare const getFilePreview: (fileId: string) => Promise<f.TFilePreview>
126
129
  export declare const getSharedFilePreview: (shareId: string, fileId: string) => Promise<f.TFilePreview>;
127
130
  export declare const getAgentFiles: (agentId: string) => Promise<f.TFile[]>;
128
131
  export declare const getFileConfig: () => Promise<TFileConfig>;
129
- export declare const uploadImage: (data: FormData, signal?: AbortSignal | null) => Promise<f.TFileUpload>;
130
- export declare const uploadFile: (data: FormData, signal?: AbortSignal | null) => Promise<f.TFileUpload>;
132
+ export declare const uploadImage: (data: FormData, signal?: AbortSignal | null, sseEnabled?: boolean) => Promise<f.TFileUpload>;
133
+ export declare const uploadFile: (data: FormData, signal?: AbortSignal | null, sseEnabled?: boolean) => Promise<f.TFileUpload>;
134
+ /**
135
+ * Marks uploaded files as used (owner-scoped TTL touch) so the upload-window
136
+ * TTL cannot reap attachments held in a client-side queue during a long run.
137
+ * Best-effort: callers fire-and-forget — send-time marking is the backstop.
138
+ */
139
+ export declare const markFilesUsage: (body: f.TFilesUsageBody) => Promise<f.TFilesUsageResponse>;
131
140
  export declare const updateAction: (data: m.UpdateActionVariables) => Promise<m.UpdateActionResponse>;
132
141
  export declare function getActions(): Promise<ag.Action[]>;
133
142
  export declare const deleteAction: ({ assistant_id, action_id, model, version, endpoint, }: m.DeleteActionVariables & {
@@ -143,6 +152,9 @@ export declare const getAgentById: ({ agent_id }: {
143
152
  export declare const getExpandedAgentById: ({ agent_id }: {
144
153
  agent_id: string;
145
154
  }) => Promise<a.Agent>;
155
+ export declare const getAgentVersions: ({ agent_id }: {
156
+ agent_id: string;
157
+ }) => Promise<a.Agent[]>;
146
158
  export declare const updateAgent: ({ agent_id, data, }: {
147
159
  agent_id: string;
148
160
  data: a.AgentUpdateParams;
@@ -228,6 +240,7 @@ export declare const getVoices: () => Promise<f.VoiceResponse>;
228
240
  export declare const getCustomConfigSpeech: () => Promise<t.TCustomConfigSpeechResponse>;
229
241
  export declare function duplicateConversation(payload: t.TDuplicateConvoRequest): Promise<t.TDuplicateConvoResponse>;
230
242
  export declare function forkConversation(payload: t.TForkConvoRequest): Promise<t.TForkConvoResponse>;
243
+ export declare function forkSharedConversation(shareId: string, targetMessageIndex?: number, shareRevision?: string): Promise<t.TForkConvoResponse>;
231
244
  export declare function deleteConversation(payload: t.TDeleteConversationRequest): Promise<unknown>;
232
245
  export declare function clearAllConversations(): Promise<unknown>;
233
246
  export declare const listConversations: (params?: q.ConversationListParams) => Promise<q.ConversationListResponse>;
@@ -344,8 +357,8 @@ export declare function disableTwoFactor(payload?: t.TDisable2FARequest): Promis
344
357
  export declare function regenerateBackupCodes(payload?: t.TRegenerateBackupCodesRequest): Promise<t.TRegenerateBackupCodesResponse>;
345
358
  export declare function verifyTwoFactorTemp(payload: t.TVerify2FATempRequest): Promise<t.TVerify2FATempResponse>;
346
359
  export declare const getMemories: () => Promise<q.MemoriesResponse>;
347
- export declare const deleteMemory: (key: string) => Promise<void>;
348
- export declare const updateMemory: (key: string, value: string, originalKey?: string) => Promise<q.TUserMemory>;
360
+ export declare const deleteMemory: (key: string, agentId?: string) => Promise<void>;
361
+ export declare const updateMemory: (key: string, value: string, originalKey?: string, agentId?: string) => Promise<q.TUserMemory>;
349
362
  export declare const updateMemoryPreferences: (preferences: {
350
363
  memories: boolean;
351
364
  }) => Promise<{
@@ -357,6 +370,7 @@ export declare const updateMemoryPreferences: (preferences: {
357
370
  export declare const createMemory: (data: {
358
371
  key: string;
359
372
  value: string;
373
+ agentId?: string;
360
374
  }) => Promise<{
361
375
  created: boolean;
362
376
  memory: q.TUserMemory;
@@ -13,7 +13,7 @@ export declare const FEEDBACK_TAGS: TFeedbackTag[];
13
13
  export declare function getTagsForRating(rating: TFeedbackRating): TFeedbackTag[];
14
14
  export declare const feedbackTagKeySchema: z.ZodEnum<["not_matched", "inaccurate", "bad_style", "missing_image", "unjustified_refusal", "not_helpful", "other", "accurate_reliable", "creative_solution", "clear_well_written", "attention_to_detail"]>;
15
15
  export declare const feedbackRatingSchema: z.ZodEnum<["thumbsUp", "thumbsDown"]>;
16
- export declare const feedbackSchema: z.ZodObject<{
16
+ export declare const feedbackSchema: z.ZodEffects<z.ZodObject<{
17
17
  rating: z.ZodEnum<["thumbsUp", "thumbsDown"]>;
18
18
  tag: z.ZodEnum<["not_matched", "inaccurate", "bad_style", "missing_image", "unjustified_refusal", "not_helpful", "other", "accurate_reliable", "creative_solution", "clear_well_written", "attention_to_detail"]>;
19
19
  text: z.ZodOptional<z.ZodString>;
@@ -25,6 +25,14 @@ export declare const feedbackSchema: z.ZodObject<{
25
25
  rating: "thumbsUp" | "thumbsDown";
26
26
  tag: "not_matched" | "inaccurate" | "bad_style" | "missing_image" | "unjustified_refusal" | "not_helpful" | "other" | "accurate_reliable" | "creative_solution" | "clear_well_written" | "attention_to_detail";
27
27
  text?: string | undefined;
28
+ }>, {
29
+ rating: "thumbsUp" | "thumbsDown";
30
+ tag: "not_matched" | "inaccurate" | "bad_style" | "missing_image" | "unjustified_refusal" | "not_helpful" | "other" | "accurate_reliable" | "creative_solution" | "clear_well_written" | "attention_to_detail";
31
+ text?: string | undefined;
32
+ }, {
33
+ rating: "thumbsUp" | "thumbsDown";
34
+ tag: "not_matched" | "inaccurate" | "bad_style" | "missing_image" | "unjustified_refusal" | "not_helpful" | "other" | "accurate_reliable" | "creative_solution" | "clear_well_written" | "attention_to_detail";
35
+ text?: string | undefined;
28
36
  }>;
29
37
  export type TMinimalFeedback = z.infer<typeof feedbackSchema>;
30
38
  export type TFeedback = {
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import type { EndpointFileConfig, FileConfig } from './types/files';
2
+ import type { EndpointFileConfig, FileConfig, RegexLike } from './types/files';
3
3
  export declare const supportsFiles: {
4
4
  openAI: boolean;
5
5
  google: boolean;
@@ -21,8 +21,21 @@ export type BedrockDocumentFormat = 'pdf' | 'csv' | 'doc' | 'docx' | 'xls' | 'xl
21
21
  /** Maps MIME types to Bedrock Converse API document format values */
22
22
  export declare const bedrockDocumentFormats: Record<string, BedrockDocumentFormat>;
23
23
  export declare const isBedrockDocumentType: (mimeType?: string) => boolean;
24
+ /** MIME types Bedrock's Converse document path can send to the model (mirrors `bedrockDocumentFormats`). */
25
+ export declare const bedrockDocumentMimeTypes: readonly string[];
24
26
  /** File extensions accepted by Bedrock document uploads (for input accept attributes) */
25
27
  export declare const bedrockDocumentExtensions = ".pdf,.csv,.doc,.docx,.xls,.xlsx,.html,.htm,.txt,.md,application/pdf,text/csv,application/csv,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,text/html,text/plain,text/markdown";
28
+ /**
29
+ * MIME types the Anthropic Messages API accepts as a plain-text document source
30
+ * (`source.type: 'text'`)
31
+ */
32
+ export declare const isAnthropicTextDocumentType: (mimeType?: string) => boolean;
33
+ /**
34
+ * MIME types the Anthropic Messages API document path can send to the model
35
+ * (mirrors `isBedrockDocumentType`): PDF via base64, textual types via a
36
+ * plain-text document source. All other types are rejected with a provider 400.
37
+ */
38
+ export declare const isAnthropicDocumentType: (mimeType?: string) => boolean;
26
39
  export declare const excelMimeTypes: RegExp;
27
40
  export declare const textMimeTypes: RegExp;
28
41
  export declare const applicationMimeTypes: RegExp;
@@ -116,7 +129,7 @@ export declare const fileConfig: {
116
129
  stt: {
117
130
  supportedMimeTypes: RegExp[];
118
131
  };
119
- checkType: (fileType: string, supportedTypes?: RegExp[]) => boolean;
132
+ checkType: (fileType: string, supportedTypes?: RegexLike[]) => boolean;
120
133
  };
121
134
  export declare const endpointFileConfigSchema: z.ZodObject<{
122
135
  disabled: z.ZodOptional<z.ZodBoolean>;
@@ -269,10 +282,33 @@ export declare const fileConfigSchema: z.ZodObject<{
269
282
  } | undefined;
270
283
  }>;
271
284
  export type TFileConfig = z.infer<typeof fileConfigSchema>;
272
- /** Helper function to safely convert string patterns to RegExp objects */
273
- export declare const convertStringsToRegex: (patterns: string[]) => RegExp[];
285
+ /** Override the MIME-pattern compiler; the server injects a linear-time engine at startup. */
286
+ export declare const setFileConfigRegexCompiler: (compile: (pattern: string) => RegexLike) => void;
287
+ /** Helper function to safely convert string patterns to matcher objects */
288
+ export declare const convertStringsToRegex: (patterns: string[]) => RegexLike[];
274
289
  /** Detects whether the given MIME type patterns accept all file types (e.g., `.*` or `.+`). */
275
- export declare const isPermissiveMimeConfig: (types?: RegExp[]) => boolean;
290
+ export declare const isPermissiveMimeConfig: (types?: RegexLike[]) => boolean;
291
+ /** The kind of content a provider upload path can actually send to the model. */
292
+ export type MimeUploadCategory = 'image' | 'document' | 'audio' | 'video';
293
+ /** Describes what an upload path can send, used to scope a configured allowlist to selectable files. */
294
+ export interface MimeUploadCapability {
295
+ /** Content categories the path forwards to the model. */
296
+ categories: ReadonlyArray<MimeUploadCategory>;
297
+ /** When `document` is permitted, restrict document types to this set (e.g. Bedrock formats); default: all. */
298
+ documentMimeTypes?: readonly string[];
299
+ }
300
+ /**
301
+ * Resolves the file-input `accept` value for a configured `supportedMimeTypes` allowlist, scoped to
302
+ * what the current upload path (`capability`) can send to the model.
303
+ * - `undefined` for the built-in default or a config that can't be represented safely, so callers
304
+ * keep their provider-specific filter.
305
+ * - `''` for permissive configs (e.g. `.*`), leaving the picker unrestricted.
306
+ * - a translated `accept` string for a recognized finite allowlist (images, PDFs, Office docs, etc.).
307
+ *
308
+ * The picker `accept` is a UX convenience, not a security boundary: the backend still enforces
309
+ * `supportedMimeTypes` on upload.
310
+ */
311
+ export declare const getConfiguredMimeAccept: (types: RegexLike[] | undefined, capability: MimeUploadCapability) => string | undefined;
276
312
  export declare function getEndpointFileConfig(params: {
277
313
  fileConfig?: FileConfig | null;
278
314
  endpoint?: string | null;
@@ -98,6 +98,7 @@ export declare const generateOpenAISchema: (customOpenAI: OpenAISettings) => z.Z
98
98
  endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("./schemas").EModelEndpoint>>>;
99
99
  isArchived: z.ZodOptional<z.ZodBoolean>;
100
100
  pinned: z.ZodOptional<z.ZodBoolean>;
101
+ isShared: z.ZodOptional<z.ZodBoolean>;
101
102
  title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
102
103
  user: z.ZodOptional<z.ZodString>;
103
104
  messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -224,11 +225,14 @@ export declare const generateOpenAISchema: (customOpenAI: OpenAISettings) => z.Z
224
225
  imageDetail: z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").ImageDetail>>;
225
226
  reasoning_effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").ReasoningEffort>>>;
226
227
  reasoning_summary: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").ReasoningSummary>>>;
228
+ reasoning_mode: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").ReasoningMode>>>;
229
+ reasoning_context: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").ReasoningContext>>>;
227
230
  verbosity: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").Verbosity>>>;
228
231
  useResponsesApi: z.ZodOptional<z.ZodBoolean>;
229
232
  effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").AnthropicEffort>>>;
230
233
  thinkingDisplay: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").ThinkingDisplay>>>;
231
234
  web_search: z.ZodOptional<z.ZodBoolean>;
235
+ url_context: z.ZodOptional<z.ZodBoolean>;
232
236
  disableStreaming: z.ZodOptional<z.ZodBoolean>;
233
237
  assistant_id: z.ZodOptional<z.ZodString>;
234
238
  agent_id: z.ZodOptional<z.ZodString>;
@@ -347,6 +351,7 @@ export declare const generateGoogleSchema: (customGoogle: GoogleSettings) => z.Z
347
351
  endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("./schemas").EModelEndpoint>>>;
348
352
  isArchived: z.ZodOptional<z.ZodBoolean>;
349
353
  pinned: z.ZodOptional<z.ZodBoolean>;
354
+ isShared: z.ZodOptional<z.ZodBoolean>;
350
355
  title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
351
356
  user: z.ZodOptional<z.ZodString>;
352
357
  messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -473,11 +478,14 @@ export declare const generateGoogleSchema: (customGoogle: GoogleSettings) => z.Z
473
478
  imageDetail: z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").ImageDetail>>;
474
479
  reasoning_effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").ReasoningEffort>>>;
475
480
  reasoning_summary: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").ReasoningSummary>>>;
481
+ reasoning_mode: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").ReasoningMode>>>;
482
+ reasoning_context: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").ReasoningContext>>>;
476
483
  verbosity: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").Verbosity>>>;
477
484
  useResponsesApi: z.ZodOptional<z.ZodBoolean>;
478
485
  effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").AnthropicEffort>>>;
479
486
  thinkingDisplay: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").ThinkingDisplay>>>;
480
487
  web_search: z.ZodOptional<z.ZodBoolean>;
488
+ url_context: z.ZodOptional<z.ZodBoolean>;
481
489
  disableStreaming: z.ZodOptional<z.ZodBoolean>;
482
490
  assistant_id: z.ZodOptional<z.ZodString>;
483
491
  agent_id: z.ZodOptional<z.ZodString>;
@@ -1,19 +1,21 @@
1
1
  export declare enum QueryKeys {
2
2
  messages = "messages",
3
3
  sharedMessages = "sharedMessages",
4
+ sharedStartupConfig = "sharedStartupConfig",
4
5
  sharedLinks = "sharedLinks",
5
6
  allConversations = "allConversations",
6
7
  archivedConversations = "archivedConversations",
7
8
  searchConversations = "searchConversations",
8
9
  conversation = "conversation",
9
10
  searchEnabled = "searchEnabled",
11
+ langfuseConnection = "langfuseConnection",
12
+ langfuseSessionLink = "langfuseSessionLink",
10
13
  user = "user",
11
14
  name = "name",// user key name
12
15
  models = "models",
13
16
  balance = "balance",
14
17
  endpoints = "endpoints",
15
18
  tokenConfig = "tokenConfig",
16
- contextProjection = "contextProjection",
17
19
  presets = "presets",
18
20
  searchResults = "searchResults",
19
21
  tokenCount = "tokenCount",
@@ -73,7 +75,7 @@ export declare enum QueryKeys {
73
75
  skillFileContent = "skillFileContent",
74
76
  skillTree = "skillTree",
75
77
  skillNodeContent = "skillNodeContent",
76
- skillFavorites = "skillFavorites",
78
+ toolFavorites = "toolFavorites",
77
79
  skillStates = "skillStates",
78
80
  favorites = "favorites"
79
81
  }
@@ -81,10 +83,13 @@ export declare const DynamicQueryKeys: {
81
83
  readonly agentFiles: (agentId: string) => readonly ["agentFiles", string];
82
84
  };
83
85
  export declare enum MutationKeys {
86
+ updateLangfuseConnection = "updateLangfuseConnection",
87
+ testLangfuseConnection = "testLangfuseConnection",
84
88
  createAgentApiKey = "createAgentApiKey",
85
89
  deleteAgentApiKey = "deleteAgentApiKey",
86
90
  fileUpload = "fileUpload",
87
91
  fileDelete = "fileDelete",
92
+ fileUsage = "fileUsage",
88
93
  updatePreset = "updatePreset",
89
94
  deletePreset = "deletePreset",
90
95
  loginUser = "loginUser",
@@ -240,6 +240,11 @@ export declare const StdioOptionsSchema: z.ZodObject<{
240
240
  * Defaults to "inherit".
241
241
  */
242
242
  stderr: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["pipe", "ignore", "inherit"]>, z.ZodNumber]>>;
243
+ /**
244
+ * Working directory for the spawned process. Supplied by Agent Plugins
245
+ * packages, which resolve and contain the path before it reaches this schema.
246
+ */
247
+ cwd: z.ZodOptional<z.ZodString>;
243
248
  }, "strip", z.ZodTypeAny, {
244
249
  type: "stdio";
245
250
  command: string;
@@ -247,10 +252,10 @@ export declare const StdioOptionsSchema: z.ZodObject<{
247
252
  description?: string | undefined;
248
253
  title?: string | undefined;
249
254
  chatMenu?: boolean | undefined;
255
+ timeout?: number | undefined;
250
256
  env?: Record<string, string> | undefined;
251
257
  startup?: boolean | undefined;
252
258
  iconPath?: string | undefined;
253
- timeout?: number | undefined;
254
259
  sseReadTimeout?: number | undefined;
255
260
  initTimeout?: number | undefined;
256
261
  serverInstructions?: string | boolean | undefined;
@@ -287,6 +292,7 @@ export declare const StdioOptionsSchema: z.ZodObject<{
287
292
  }> | undefined;
288
293
  obo?: undefined;
289
294
  stderr?: number | "pipe" | "ignore" | "inherit" | undefined;
295
+ cwd?: string | undefined;
290
296
  }, {
291
297
  command: string;
292
298
  args: string[];
@@ -294,10 +300,10 @@ export declare const StdioOptionsSchema: z.ZodObject<{
294
300
  description?: string | undefined;
295
301
  title?: string | undefined;
296
302
  chatMenu?: boolean | undefined;
303
+ timeout?: number | undefined;
297
304
  env?: Record<string, string> | undefined;
298
305
  startup?: boolean | undefined;
299
306
  iconPath?: string | undefined;
300
- timeout?: number | undefined;
301
307
  sseReadTimeout?: number | undefined;
302
308
  initTimeout?: number | undefined;
303
309
  serverInstructions?: string | boolean | undefined;
@@ -334,6 +340,7 @@ export declare const StdioOptionsSchema: z.ZodObject<{
334
340
  }> | undefined;
335
341
  obo?: undefined;
336
342
  stderr?: number | "pipe" | "ignore" | "inherit" | undefined;
343
+ cwd?: string | undefined;
337
344
  }>;
338
345
  export declare const WebSocketOptionsSchema: z.ZodObject<{
339
346
  /** Display name for the MCP server - only letters, numbers, and spaces allowed */
@@ -561,9 +568,9 @@ export declare const WebSocketOptionsSchema: z.ZodObject<{
561
568
  description?: string | undefined;
562
569
  title?: string | undefined;
563
570
  chatMenu?: boolean | undefined;
571
+ timeout?: number | undefined;
564
572
  startup?: boolean | undefined;
565
573
  iconPath?: string | undefined;
566
- timeout?: number | undefined;
567
574
  sseReadTimeout?: number | undefined;
568
575
  initTimeout?: number | undefined;
569
576
  serverInstructions?: string | boolean | undefined;
@@ -605,9 +612,9 @@ export declare const WebSocketOptionsSchema: z.ZodObject<{
605
612
  description?: string | undefined;
606
613
  title?: string | undefined;
607
614
  chatMenu?: boolean | undefined;
615
+ timeout?: number | undefined;
608
616
  startup?: boolean | undefined;
609
617
  iconPath?: string | undefined;
610
- timeout?: number | undefined;
611
618
  sseReadTimeout?: number | undefined;
612
619
  initTimeout?: number | undefined;
613
620
  serverInstructions?: string | boolean | undefined;
@@ -887,9 +894,9 @@ export declare const SSEOptionsSchema: z.ZodObject<{
887
894
  description?: string | undefined;
888
895
  title?: string | undefined;
889
896
  chatMenu?: boolean | undefined;
897
+ timeout?: number | undefined;
890
898
  startup?: boolean | undefined;
891
899
  iconPath?: string | undefined;
892
- timeout?: number | undefined;
893
900
  sseReadTimeout?: number | undefined;
894
901
  initTimeout?: number | undefined;
895
902
  serverInstructions?: string | boolean | undefined;
@@ -935,9 +942,9 @@ export declare const SSEOptionsSchema: z.ZodObject<{
935
942
  description?: string | undefined;
936
943
  title?: string | undefined;
937
944
  chatMenu?: boolean | undefined;
945
+ timeout?: number | undefined;
938
946
  startup?: boolean | undefined;
939
947
  iconPath?: string | undefined;
940
- timeout?: number | undefined;
941
948
  sseReadTimeout?: number | undefined;
942
949
  initTimeout?: number | undefined;
943
950
  serverInstructions?: string | boolean | undefined;
@@ -1221,9 +1228,9 @@ export declare const StreamableHTTPOptionsSchema: z.ZodObject<{
1221
1228
  description?: string | undefined;
1222
1229
  title?: string | undefined;
1223
1230
  chatMenu?: boolean | undefined;
1231
+ timeout?: number | undefined;
1224
1232
  startup?: boolean | undefined;
1225
1233
  iconPath?: string | undefined;
1226
- timeout?: number | undefined;
1227
1234
  sseReadTimeout?: number | undefined;
1228
1235
  initTimeout?: number | undefined;
1229
1236
  serverInstructions?: string | boolean | undefined;
@@ -1269,9 +1276,9 @@ export declare const StreamableHTTPOptionsSchema: z.ZodObject<{
1269
1276
  description?: string | undefined;
1270
1277
  title?: string | undefined;
1271
1278
  chatMenu?: boolean | undefined;
1279
+ timeout?: number | undefined;
1272
1280
  startup?: boolean | undefined;
1273
1281
  iconPath?: string | undefined;
1274
- timeout?: number | undefined;
1275
1282
  sseReadTimeout?: number | undefined;
1276
1283
  initTimeout?: number | undefined;
1277
1284
  serverInstructions?: string | boolean | undefined;
@@ -1552,6 +1559,11 @@ export declare const MCPOptionsSchema: z.ZodUnion<[z.ZodObject<{
1552
1559
  * Defaults to "inherit".
1553
1560
  */
1554
1561
  stderr: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["pipe", "ignore", "inherit"]>, z.ZodNumber]>>;
1562
+ /**
1563
+ * Working directory for the spawned process. Supplied by Agent Plugins
1564
+ * packages, which resolve and contain the path before it reaches this schema.
1565
+ */
1566
+ cwd: z.ZodOptional<z.ZodString>;
1555
1567
  }, "strip", z.ZodTypeAny, {
1556
1568
  type: "stdio";
1557
1569
  command: string;
@@ -1559,10 +1571,10 @@ export declare const MCPOptionsSchema: z.ZodUnion<[z.ZodObject<{
1559
1571
  description?: string | undefined;
1560
1572
  title?: string | undefined;
1561
1573
  chatMenu?: boolean | undefined;
1574
+ timeout?: number | undefined;
1562
1575
  env?: Record<string, string> | undefined;
1563
1576
  startup?: boolean | undefined;
1564
1577
  iconPath?: string | undefined;
1565
- timeout?: number | undefined;
1566
1578
  sseReadTimeout?: number | undefined;
1567
1579
  initTimeout?: number | undefined;
1568
1580
  serverInstructions?: string | boolean | undefined;
@@ -1599,6 +1611,7 @@ export declare const MCPOptionsSchema: z.ZodUnion<[z.ZodObject<{
1599
1611
  }> | undefined;
1600
1612
  obo?: undefined;
1601
1613
  stderr?: number | "pipe" | "ignore" | "inherit" | undefined;
1614
+ cwd?: string | undefined;
1602
1615
  }, {
1603
1616
  command: string;
1604
1617
  args: string[];
@@ -1606,10 +1619,10 @@ export declare const MCPOptionsSchema: z.ZodUnion<[z.ZodObject<{
1606
1619
  description?: string | undefined;
1607
1620
  title?: string | undefined;
1608
1621
  chatMenu?: boolean | undefined;
1622
+ timeout?: number | undefined;
1609
1623
  env?: Record<string, string> | undefined;
1610
1624
  startup?: boolean | undefined;
1611
1625
  iconPath?: string | undefined;
1612
- timeout?: number | undefined;
1613
1626
  sseReadTimeout?: number | undefined;
1614
1627
  initTimeout?: number | undefined;
1615
1628
  serverInstructions?: string | boolean | undefined;
@@ -1646,6 +1659,7 @@ export declare const MCPOptionsSchema: z.ZodUnion<[z.ZodObject<{
1646
1659
  }> | undefined;
1647
1660
  obo?: undefined;
1648
1661
  stderr?: number | "pipe" | "ignore" | "inherit" | undefined;
1662
+ cwd?: string | undefined;
1649
1663
  }>, z.ZodObject<{
1650
1664
  /** Display name for the MCP server - only letters, numbers, and spaces allowed */
1651
1665
  title: z.ZodOptional<z.ZodString>;
@@ -1872,9 +1886,9 @@ export declare const MCPOptionsSchema: z.ZodUnion<[z.ZodObject<{
1872
1886
  description?: string | undefined;
1873
1887
  title?: string | undefined;
1874
1888
  chatMenu?: boolean | undefined;
1889
+ timeout?: number | undefined;
1875
1890
  startup?: boolean | undefined;
1876
1891
  iconPath?: string | undefined;
1877
- timeout?: number | undefined;
1878
1892
  sseReadTimeout?: number | undefined;
1879
1893
  initTimeout?: number | undefined;
1880
1894
  serverInstructions?: string | boolean | undefined;
@@ -1916,9 +1930,9 @@ export declare const MCPOptionsSchema: z.ZodUnion<[z.ZodObject<{
1916
1930
  description?: string | undefined;
1917
1931
  title?: string | undefined;
1918
1932
  chatMenu?: boolean | undefined;
1933
+ timeout?: number | undefined;
1919
1934
  startup?: boolean | undefined;
1920
1935
  iconPath?: string | undefined;
1921
- timeout?: number | undefined;
1922
1936
  sseReadTimeout?: number | undefined;
1923
1937
  initTimeout?: number | undefined;
1924
1938
  serverInstructions?: string | boolean | undefined;
@@ -2197,9 +2211,9 @@ export declare const MCPOptionsSchema: z.ZodUnion<[z.ZodObject<{
2197
2211
  description?: string | undefined;
2198
2212
  title?: string | undefined;
2199
2213
  chatMenu?: boolean | undefined;
2214
+ timeout?: number | undefined;
2200
2215
  startup?: boolean | undefined;
2201
2216
  iconPath?: string | undefined;
2202
- timeout?: number | undefined;
2203
2217
  sseReadTimeout?: number | undefined;
2204
2218
  initTimeout?: number | undefined;
2205
2219
  serverInstructions?: string | boolean | undefined;
@@ -2245,9 +2259,9 @@ export declare const MCPOptionsSchema: z.ZodUnion<[z.ZodObject<{
2245
2259
  description?: string | undefined;
2246
2260
  title?: string | undefined;
2247
2261
  chatMenu?: boolean | undefined;
2262
+ timeout?: number | undefined;
2248
2263
  startup?: boolean | undefined;
2249
2264
  iconPath?: string | undefined;
2250
- timeout?: number | undefined;
2251
2265
  sseReadTimeout?: number | undefined;
2252
2266
  initTimeout?: number | undefined;
2253
2267
  serverInstructions?: string | boolean | undefined;
@@ -2530,9 +2544,9 @@ export declare const MCPOptionsSchema: z.ZodUnion<[z.ZodObject<{
2530
2544
  description?: string | undefined;
2531
2545
  title?: string | undefined;
2532
2546
  chatMenu?: boolean | undefined;
2547
+ timeout?: number | undefined;
2533
2548
  startup?: boolean | undefined;
2534
2549
  iconPath?: string | undefined;
2535
- timeout?: number | undefined;
2536
2550
  sseReadTimeout?: number | undefined;
2537
2551
  initTimeout?: number | undefined;
2538
2552
  serverInstructions?: string | boolean | undefined;
@@ -2578,9 +2592,9 @@ export declare const MCPOptionsSchema: z.ZodUnion<[z.ZodObject<{
2578
2592
  description?: string | undefined;
2579
2593
  title?: string | undefined;
2580
2594
  chatMenu?: boolean | undefined;
2595
+ timeout?: number | undefined;
2581
2596
  startup?: boolean | undefined;
2582
2597
  iconPath?: string | undefined;
2583
- timeout?: number | undefined;
2584
2598
  sseReadTimeout?: number | undefined;
2585
2599
  initTimeout?: number | undefined;
2586
2600
  serverInstructions?: string | boolean | undefined;
@@ -2861,6 +2875,11 @@ export declare const MCPServersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.Zo
2861
2875
  * Defaults to "inherit".
2862
2876
  */
2863
2877
  stderr: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["pipe", "ignore", "inherit"]>, z.ZodNumber]>>;
2878
+ /**
2879
+ * Working directory for the spawned process. Supplied by Agent Plugins
2880
+ * packages, which resolve and contain the path before it reaches this schema.
2881
+ */
2882
+ cwd: z.ZodOptional<z.ZodString>;
2864
2883
  }, "strip", z.ZodTypeAny, {
2865
2884
  type: "stdio";
2866
2885
  command: string;
@@ -2868,10 +2887,10 @@ export declare const MCPServersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.Zo
2868
2887
  description?: string | undefined;
2869
2888
  title?: string | undefined;
2870
2889
  chatMenu?: boolean | undefined;
2890
+ timeout?: number | undefined;
2871
2891
  env?: Record<string, string> | undefined;
2872
2892
  startup?: boolean | undefined;
2873
2893
  iconPath?: string | undefined;
2874
- timeout?: number | undefined;
2875
2894
  sseReadTimeout?: number | undefined;
2876
2895
  initTimeout?: number | undefined;
2877
2896
  serverInstructions?: string | boolean | undefined;
@@ -2908,6 +2927,7 @@ export declare const MCPServersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.Zo
2908
2927
  }> | undefined;
2909
2928
  obo?: undefined;
2910
2929
  stderr?: number | "pipe" | "ignore" | "inherit" | undefined;
2930
+ cwd?: string | undefined;
2911
2931
  }, {
2912
2932
  command: string;
2913
2933
  args: string[];
@@ -2915,10 +2935,10 @@ export declare const MCPServersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.Zo
2915
2935
  description?: string | undefined;
2916
2936
  title?: string | undefined;
2917
2937
  chatMenu?: boolean | undefined;
2938
+ timeout?: number | undefined;
2918
2939
  env?: Record<string, string> | undefined;
2919
2940
  startup?: boolean | undefined;
2920
2941
  iconPath?: string | undefined;
2921
- timeout?: number | undefined;
2922
2942
  sseReadTimeout?: number | undefined;
2923
2943
  initTimeout?: number | undefined;
2924
2944
  serverInstructions?: string | boolean | undefined;
@@ -2955,6 +2975,7 @@ export declare const MCPServersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.Zo
2955
2975
  }> | undefined;
2956
2976
  obo?: undefined;
2957
2977
  stderr?: number | "pipe" | "ignore" | "inherit" | undefined;
2978
+ cwd?: string | undefined;
2958
2979
  }>, z.ZodObject<{
2959
2980
  /** Display name for the MCP server - only letters, numbers, and spaces allowed */
2960
2981
  title: z.ZodOptional<z.ZodString>;
@@ -3181,9 +3202,9 @@ export declare const MCPServersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.Zo
3181
3202
  description?: string | undefined;
3182
3203
  title?: string | undefined;
3183
3204
  chatMenu?: boolean | undefined;
3205
+ timeout?: number | undefined;
3184
3206
  startup?: boolean | undefined;
3185
3207
  iconPath?: string | undefined;
3186
- timeout?: number | undefined;
3187
3208
  sseReadTimeout?: number | undefined;
3188
3209
  initTimeout?: number | undefined;
3189
3210
  serverInstructions?: string | boolean | undefined;
@@ -3225,9 +3246,9 @@ export declare const MCPServersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.Zo
3225
3246
  description?: string | undefined;
3226
3247
  title?: string | undefined;
3227
3248
  chatMenu?: boolean | undefined;
3249
+ timeout?: number | undefined;
3228
3250
  startup?: boolean | undefined;
3229
3251
  iconPath?: string | undefined;
3230
- timeout?: number | undefined;
3231
3252
  sseReadTimeout?: number | undefined;
3232
3253
  initTimeout?: number | undefined;
3233
3254
  serverInstructions?: string | boolean | undefined;
@@ -3506,9 +3527,9 @@ export declare const MCPServersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.Zo
3506
3527
  description?: string | undefined;
3507
3528
  title?: string | undefined;
3508
3529
  chatMenu?: boolean | undefined;
3530
+ timeout?: number | undefined;
3509
3531
  startup?: boolean | undefined;
3510
3532
  iconPath?: string | undefined;
3511
- timeout?: number | undefined;
3512
3533
  sseReadTimeout?: number | undefined;
3513
3534
  initTimeout?: number | undefined;
3514
3535
  serverInstructions?: string | boolean | undefined;
@@ -3554,9 +3575,9 @@ export declare const MCPServersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.Zo
3554
3575
  description?: string | undefined;
3555
3576
  title?: string | undefined;
3556
3577
  chatMenu?: boolean | undefined;
3578
+ timeout?: number | undefined;
3557
3579
  startup?: boolean | undefined;
3558
3580
  iconPath?: string | undefined;
3559
- timeout?: number | undefined;
3560
3581
  sseReadTimeout?: number | undefined;
3561
3582
  initTimeout?: number | undefined;
3562
3583
  serverInstructions?: string | boolean | undefined;
@@ -3839,9 +3860,9 @@ export declare const MCPServersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.Zo
3839
3860
  description?: string | undefined;
3840
3861
  title?: string | undefined;
3841
3862
  chatMenu?: boolean | undefined;
3863
+ timeout?: number | undefined;
3842
3864
  startup?: boolean | undefined;
3843
3865
  iconPath?: string | undefined;
3844
- timeout?: number | undefined;
3845
3866
  sseReadTimeout?: number | undefined;
3846
3867
  initTimeout?: number | undefined;
3847
3868
  serverInstructions?: string | boolean | undefined;
@@ -3887,9 +3908,9 @@ export declare const MCPServersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.Zo
3887
3908
  description?: string | undefined;
3888
3909
  title?: string | undefined;
3889
3910
  chatMenu?: boolean | undefined;
3911
+ timeout?: number | undefined;
3890
3912
  startup?: boolean | undefined;
3891
3913
  iconPath?: string | undefined;
3892
- timeout?: number | undefined;
3893
3914
  sseReadTimeout?: number | undefined;
3894
3915
  initTimeout?: number | undefined;
3895
3916
  serverInstructions?: string | boolean | undefined;