librechat-data-provider 0.8.521 → 0.8.523
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-pwrlWjJs.mjs → data-service-Bx6IFaSa.mjs} +1770 -51
- package/dist/data-service-Bx6IFaSa.mjs.map +1 -0
- package/dist/{data-service-DOIF4BkW.js → data-service-CTX0tVO5.js} +2509 -112
- package/dist/data-service-CTX0tVO5.js.map +1 -0
- package/dist/index.js +1503 -54
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1314 -55
- package/dist/index.mjs.map +1 -1
- package/dist/react-query/index.js +2 -1
- package/dist/react-query/index.js.map +1 -1
- package/dist/react-query/index.mjs +2 -1
- package/dist/react-query/index.mjs.map +1 -1
- package/dist/types/accessPermissions.d.ts +58 -1
- package/dist/types/actions.d.ts +2 -2
- package/dist/types/agentToolOptions.d.ts +11 -0
- package/dist/types/api-endpoints.d.ts +24 -0
- package/dist/types/bedrock.d.ts +238 -10
- package/dist/types/cadence.d.ts +33 -0
- package/dist/types/code/approval.d.ts +26 -0
- package/dist/types/code/worker.d.ts +10 -0
- package/dist/types/code/workspace.d.ts +28 -0
- package/dist/types/codeEnvRef.d.ts +26 -0
- package/dist/types/config.d.ts +13180 -3021
- package/dist/types/data-service.d.ts +48 -2
- package/dist/types/errors.d.ts +2 -0
- package/dist/types/file-config.d.ts +138 -9
- package/dist/types/filters.d.ts +1422 -0
- package/dist/types/generate.d.ts +103 -1
- package/dist/types/index.d.ts +17 -0
- package/dist/types/keys.d.ts +33 -2
- package/dist/types/langchain.d.ts +4 -0
- package/dist/types/limits.d.ts +13 -0
- package/dist/types/mcp.d.ts +555 -460
- package/dist/types/messages.d.ts +24 -0
- package/dist/types/models.d.ts +1112 -319
- package/dist/types/parameterSettings.d.ts +13 -1
- package/dist/types/parsers.d.ts +10 -0
- package/dist/types/permissions.d.ts +42 -1
- package/dist/types/providers.d.ts +37 -0
- package/dist/types/request.d.ts +2 -2
- package/dist/types/resolve-llm-delivery-path.d.ts +68 -0
- package/dist/types/roles.d.ts +34 -0
- package/dist/types/runSteps.d.ts +59 -0
- package/dist/types/schemas.d.ts +1724 -248
- package/dist/types/stateful-code.d.ts +7 -0
- package/dist/types/svg.d.ts +34 -0
- package/dist/types/types/agents.d.ts +116 -7
- package/dist/types/types/assistants.d.ts +121 -6
- package/dist/types/types/files.d.ts +46 -2
- package/dist/types/types/index.d.ts +2 -0
- package/dist/types/types/insights.d.ts +71 -0
- package/dist/types/types/mutations.d.ts +1 -0
- package/dist/types/types/queries.d.ts +37 -2
- package/dist/types/types/queuedTurns.d.ts +870 -0
- package/dist/types/types/runs.d.ts +119 -9
- package/dist/types/types/schedules.d.ts +339 -0
- package/dist/types/types/skills.d.ts +9 -0
- package/dist/types/types/subagents.d.ts +159 -0
- package/dist/types/types/traces.d.ts +85 -0
- package/dist/types/types/web.d.ts +12 -2
- package/dist/types/types.d.ts +101 -1
- package/package.json +5 -3
- package/dist/data-service-DOIF4BkW.js.map +0 -1
- package/dist/data-service-pwrlWjJs.mjs.map +0 -1
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import type { AxiosResponse } from 'axios';
|
|
2
|
+
import type { TTracePage, TTracePageParams, TTraceAvailability, TTraceRecordParams, TTraceRecordDetail } from './types/traces';
|
|
3
|
+
import type { TInsightsAccessResponse, TInsightsParams, TInsightsResponse } from './types/insights';
|
|
2
4
|
import type { TFileConfig } from './file-config';
|
|
3
5
|
import type * as t from './types';
|
|
4
6
|
import * as permissions from './accessPermissions';
|
|
5
7
|
import * as mcp from './types/mcpServers';
|
|
8
|
+
import * as qt from './types/queuedTurns';
|
|
9
|
+
import * as sch from './types/schedules';
|
|
6
10
|
import * as a from './types/assistants';
|
|
7
11
|
import * as m from './types/mutations';
|
|
8
12
|
import * as ag from './types/agents';
|
|
@@ -12,6 +16,11 @@ import * as f from './types/files';
|
|
|
12
16
|
import * as config from './config';
|
|
13
17
|
import * as s from './schemas';
|
|
14
18
|
import * as r from './roles';
|
|
19
|
+
export declare function getInsights(params?: TInsightsParams): Promise<TInsightsResponse>;
|
|
20
|
+
export declare function getInsightsAccess(): Promise<TInsightsAccessResponse>;
|
|
21
|
+
export declare function getConversationTraceAvailability(conversationId: string): Promise<TTraceAvailability>;
|
|
22
|
+
export declare function getConversationTraceRecords({ conversationId, cursor }: TTracePageParams, signal?: AbortSignal): Promise<TTracePage>;
|
|
23
|
+
export declare function getConversationTraceRecord({ conversationId, recordId, messageId, sourceId }: TTraceRecordParams, signal?: AbortSignal): Promise<TTraceRecordDetail>;
|
|
15
24
|
export declare function getLangfuseConnection(): Promise<t.TLangfuseConnectionStatus>;
|
|
16
25
|
export declare function updateLangfuseConnection(payload: t.TUpdateLangfuseConnectionRequest): Promise<t.TLangfuseConnectionStatus>;
|
|
17
26
|
export declare function testLangfuseConnection(payload: t.TLangfuseConnectionTestRequest): Promise<t.TLangfuseConnectionTestResponse>;
|
|
@@ -19,8 +28,26 @@ export declare function getLangfuseSessionLink(conversationId: string): Promise<
|
|
|
19
28
|
export declare function revokeUserKey(name: string): Promise<unknown>;
|
|
20
29
|
export declare function revokeAllUserKeys(): Promise<unknown>;
|
|
21
30
|
export declare function deleteUser(payload?: t.TDeleteUserRequest): Promise<unknown>;
|
|
31
|
+
export declare function getCodeEnvironments(): Promise<t.TCodeEnvironmentsResponse>;
|
|
32
|
+
export declare function getCodeEnvironmentStatus(id: string): Promise<t.TCodeEnvironmentStatusResponse>;
|
|
33
|
+
export declare function pairCodeEnvironment(payload: {
|
|
34
|
+
name: string;
|
|
35
|
+
controlPlaneId: string;
|
|
36
|
+
}): Promise<t.TCodeEnvironmentPairingResponse>;
|
|
37
|
+
export declare function deleteCodeEnvironment(id: string): Promise<{
|
|
38
|
+
environment: t.TCodeEnvironmentSummary;
|
|
39
|
+
}>;
|
|
40
|
+
export declare function updateCodeEnvironmentSettings({ id, settings, }: {
|
|
41
|
+
id: string;
|
|
42
|
+
settings: config.CodeEnvironmentUserSettings;
|
|
43
|
+
}): Promise<{
|
|
44
|
+
environment: t.TCodeEnvironmentSummary;
|
|
45
|
+
}>;
|
|
22
46
|
export declare function getFavorites(): Promise<q.TUserFavorite[]>;
|
|
23
47
|
export declare function updateFavorites(favorites: q.TUserFavorite[]): Promise<q.TUserFavorite[]>;
|
|
48
|
+
/** Combined Pinned-section display order: favorite and pinned-chat entry keys interleaved. */
|
|
49
|
+
export declare function getPinnedOrder(): Promise<string[]>;
|
|
50
|
+
export declare function updatePinnedOrder(pinnedOrder: string[]): Promise<string[]>;
|
|
24
51
|
/** Tool favorites — starred marketplace items (builtins, tools, MCP servers, skills). */
|
|
25
52
|
export declare function getToolFavorites(): Promise<q.TToolFavorite[]>;
|
|
26
53
|
export declare function addToolFavorite(favorite: q.TToolFavorite): Promise<q.TToolFavorite>;
|
|
@@ -47,6 +74,7 @@ export declare function updatePreset(payload: s.TPreset): Promise<s.TPreset>;
|
|
|
47
74
|
export declare function deletePreset(arg: s.TPreset | undefined): Promise<m.PresetDeleteResponse>;
|
|
48
75
|
export declare function getSearchEnabled(): Promise<boolean>;
|
|
49
76
|
export declare function getUser(): Promise<t.TUser>;
|
|
77
|
+
export declare function updateUserPreferences(preferences: t.TUpdateUserPreferencesRequest): Promise<t.TUpdateUserPreferencesResponse>;
|
|
50
78
|
export declare function getUserBalance(): Promise<t.TBalanceResponse>;
|
|
51
79
|
export declare const updateTokenCount: (text: string) => Promise<any>;
|
|
52
80
|
export declare const login: (payload: t.TLoginUser) => Promise<t.TLoginResponse>;
|
|
@@ -248,6 +276,7 @@ export declare function getConversations(cursor: string): Promise<t.TGetConversa
|
|
|
248
276
|
export declare function getConversationById(id: string): Promise<s.TConversation>;
|
|
249
277
|
export declare function updateConversation(payload: t.TUpdateConversationRequest): Promise<t.TUpdateConversationResponse>;
|
|
250
278
|
export declare function archiveConversation(payload: t.TArchiveConversationRequest): Promise<t.TArchiveConversationResponse>;
|
|
279
|
+
export declare function archiveAllConversations(): Promise<t.TArchiveAllConversationsResponse>;
|
|
251
280
|
export declare function listProjects(params?: q.ProjectListParams): Promise<q.ProjectListResponse>;
|
|
252
281
|
export declare function createProject(payload: t.TCreateChatProjectRequest): Promise<t.TChatProject>;
|
|
253
282
|
export declare function getProjectById(projectId: string): Promise<t.TChatProject>;
|
|
@@ -262,6 +291,10 @@ export declare function updateMessageContent(payload: t.TUpdateMessageContent):
|
|
|
262
291
|
export declare const editArtifact: ({ messageId, ...params }: m.TEditArtifactRequest) => Promise<m.TEditArtifactResponse>;
|
|
263
292
|
export declare const branchMessage: (payload: m.TBranchMessageRequest) => Promise<m.TBranchMessageResponse>;
|
|
264
293
|
export declare function getMessagesByConvoId(conversationId: string): Promise<s.TMessage[]>;
|
|
294
|
+
export declare function getMessageById(conversationId: string, messageId: string): Promise<s.TMessage[]>;
|
|
295
|
+
export declare function getParentSubagents(parentConversationId: string): Promise<t.ParentSubagentIndex>;
|
|
296
|
+
export declare function getSubagentThread(parentConversationId: string, threadId: string, taskId?: string, cursor?: string): Promise<t.SubagentThreadView>;
|
|
297
|
+
export declare function controlSubagentTask(parentConversationId: string, threadId: string, body: t.SubagentControlRequest): Promise<t.SubagentControlResponse>;
|
|
265
298
|
export declare function getPrompt(id: string): Promise<{
|
|
266
299
|
prompt: t.TPrompt;
|
|
267
300
|
}>;
|
|
@@ -282,6 +315,17 @@ export declare function deletePromptGroup(id: string): Promise<t.TDeletePromptGr
|
|
|
282
315
|
export declare function getCategories(): Promise<t.TGetCategoriesResponse>;
|
|
283
316
|
export declare function getRandomPrompts(variables: t.TGetRandomPromptsRequest): Promise<t.TGetRandomPromptsResponse>;
|
|
284
317
|
export declare function listSkills(params?: sk.TSkillListRequest): Promise<sk.TSkillListResponse>;
|
|
318
|
+
export declare function getSchedules(): Promise<sch.TSchedulesResponse>;
|
|
319
|
+
export declare function enqueueAgentQueuedTurn(payload: qt.TEnqueueAgentQueuedTurnRequest): Promise<qt.TEnqueueAgentQueuedTurnResponse>;
|
|
320
|
+
export declare function listAgentQueuedTurns(conversationId: string, clientRequestIds?: string[]): Promise<qt.TListAgentQueuedTurnsResponse>;
|
|
321
|
+
export declare function cancelAgentQueuedTurn(queuedTurnId: string): Promise<qt.TCancelAgentQueuedTurnResponse>;
|
|
322
|
+
export declare function getSchedule(id: string): Promise<sch.TSchedule>;
|
|
323
|
+
export declare function createSchedule(payload: sch.TCreateSchedule): Promise<sch.TSchedule>;
|
|
324
|
+
export declare function updateSchedule(id: string, payload: sch.TUpdateSchedule): Promise<sch.TSchedule>;
|
|
325
|
+
export declare function deleteSchedule(id: string): Promise<{
|
|
326
|
+
id: string;
|
|
327
|
+
}>;
|
|
328
|
+
export declare function runScheduleNow(id: string): Promise<sch.TScheduleRunNowResponse>;
|
|
285
329
|
export declare function getSkill(id: string): Promise<sk.TSkill>;
|
|
286
330
|
export declare function createSkill(payload: sk.TCreateSkill): Promise<sk.TSkill>;
|
|
287
331
|
export declare function updateSkill(variables: sk.TUpdateSkillVariables): Promise<sk.TUpdateSkillResponse>;
|
|
@@ -357,8 +401,10 @@ export declare function disableTwoFactor(payload?: t.TDisable2FARequest): Promis
|
|
|
357
401
|
export declare function regenerateBackupCodes(payload?: t.TRegenerateBackupCodesRequest): Promise<t.TRegenerateBackupCodesResponse>;
|
|
358
402
|
export declare function verifyTwoFactorTemp(payload: t.TVerify2FATempRequest): Promise<t.TVerify2FATempResponse>;
|
|
359
403
|
export declare const getMemories: () => Promise<q.MemoriesResponse>;
|
|
360
|
-
export declare const deleteMemory: (key: string, agentId?: string) => Promise<
|
|
361
|
-
export declare const
|
|
404
|
+
export declare const deleteMemory: (key: string, agentId?: string) => Promise<q.DeleteMemoryResponse>;
|
|
405
|
+
export declare const deleteMemoryById: (id: string, agentId?: string) => Promise<q.DeleteMemoryResponse>;
|
|
406
|
+
export declare const updateMemory: (key: string, value: string, originalKey?: string, agentId?: string) => Promise<q.UpdateMemoryResponse>;
|
|
407
|
+
export declare const updateMemoryById: (id: string, value: string, key?: string, agentId?: string) => Promise<q.UpdateMemoryResponse>;
|
|
362
408
|
export declare const updateMemoryPreferences: (preferences: {
|
|
363
409
|
memories: boolean;
|
|
364
410
|
}) => Promise<{
|
|
@@ -20,6 +20,35 @@ export declare const imageExtRegex: RegExp;
|
|
|
20
20
|
export type BedrockDocumentFormat = 'pdf' | 'csv' | 'doc' | 'docx' | 'xls' | 'xlsx' | 'html' | 'txt' | 'md';
|
|
21
21
|
/** Maps MIME types to Bedrock Converse API document format values */
|
|
22
22
|
export declare const bedrockDocumentFormats: Record<string, BedrockDocumentFormat>;
|
|
23
|
+
/**
|
|
24
|
+
* Whether an upload belongs to the conversation rather than to the agent. The value
|
|
25
|
+
* arrives from multipart form data, so it can be the string "false", which is truthy.
|
|
26
|
+
* Shared so the route, the authorization check and processing cannot disagree about it.
|
|
27
|
+
*/
|
|
28
|
+
export declare const isMessageFileUpload: (value?: boolean | string | null) => boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Whether the upload's conversation uses the Responses API, which decides whether Azure
|
|
31
|
+
* can carry a document natively. Multipart form data has no booleans, so it arrives as
|
|
32
|
+
* the string "true".
|
|
33
|
+
*/
|
|
34
|
+
export declare const isResponsesApiUpload: (value?: boolean | string | null) => boolean;
|
|
35
|
+
/**
|
|
36
|
+
* The name a file carries inside the code sandbox.
|
|
37
|
+
*
|
|
38
|
+
* Image uploads are converted to the configured output type while the record keeps the
|
|
39
|
+
* original filename, so the extension has to follow the stored bytes or the sandbox
|
|
40
|
+
* decoder is handed a mismatch. Provisioning and priming both resolve the mount path
|
|
41
|
+
* from here: deriving it twice under different rules leaves a later turn advertising a
|
|
42
|
+
* path that does not exist in the sandbox.
|
|
43
|
+
*/
|
|
44
|
+
export declare const resolveSandboxFilename: (filename: string, mimeType?: string | null) => string;
|
|
45
|
+
/**
|
|
46
|
+
* The Responses setting a turn actually runs on. A saved agent's own record wins, since
|
|
47
|
+
* execution reads its model parameters; a conversation only answers for itself. Upload
|
|
48
|
+
* and delivery must agree here, or a document is stored as raw provider content and then
|
|
49
|
+
* re-resolved to text it has no extraction for.
|
|
50
|
+
*/
|
|
51
|
+
export declare const resolveUseResponsesApi: (agentValue?: boolean | null, conversationValue?: boolean | null) => boolean | undefined;
|
|
23
52
|
export declare const isBedrockDocumentType: (mimeType?: string) => boolean;
|
|
24
53
|
/** MIME types Bedrock's Converse document path can send to the model (mirrors `bedrockDocumentFormats`). */
|
|
25
54
|
export declare const bedrockDocumentMimeTypes: readonly string[];
|
|
@@ -114,11 +143,14 @@ export declare const fileConfig: {
|
|
|
114
143
|
serverFileSizeLimit: number;
|
|
115
144
|
avatarSizeLimit: number;
|
|
116
145
|
fileTokenLimit: number;
|
|
146
|
+
fileContextSizeLimit: number;
|
|
147
|
+
fileContextCharLimit: number;
|
|
117
148
|
clientImageResize: {
|
|
118
149
|
enabled: boolean;
|
|
119
150
|
maxWidth: number;
|
|
120
151
|
maxHeight: number;
|
|
121
152
|
quality: number;
|
|
153
|
+
enforced: boolean;
|
|
122
154
|
};
|
|
123
155
|
ocr: {
|
|
124
156
|
supportedMimeTypes: RegExp[];
|
|
@@ -131,24 +163,58 @@ export declare const fileConfig: {
|
|
|
131
163
|
};
|
|
132
164
|
checkType: (fileType: string, supportedTypes?: RegexLike[]) => boolean;
|
|
133
165
|
};
|
|
166
|
+
export declare const DefaultLLMDeliveryPath: z.ZodEnum<["provider", "text", "none"]>;
|
|
167
|
+
export type TDefaultLLMDeliveryPath = z.infer<typeof DefaultLLMDeliveryPath>;
|
|
168
|
+
export declare const defaultLLMDeliveryPathSchema: z.ZodObject<{
|
|
169
|
+
fallback: z.ZodOptional<z.ZodEnum<["provider", "text", "none"]>>;
|
|
170
|
+
overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<["provider", "text", "none"]>>>;
|
|
171
|
+
}, "strip", z.ZodTypeAny, {
|
|
172
|
+
fallback?: "none" | "provider" | "text" | undefined;
|
|
173
|
+
overrides?: Record<string, "none" | "provider" | "text"> | undefined;
|
|
174
|
+
}, {
|
|
175
|
+
fallback?: "none" | "provider" | "text" | undefined;
|
|
176
|
+
overrides?: Record<string, "none" | "provider" | "text"> | undefined;
|
|
177
|
+
}>;
|
|
178
|
+
export type TDefaultLLMDeliveryPathConfig = z.infer<typeof defaultLLMDeliveryPathSchema>;
|
|
134
179
|
export declare const endpointFileConfigSchema: z.ZodObject<{
|
|
135
180
|
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
136
181
|
fileLimit: z.ZodOptional<z.ZodNumber>;
|
|
137
182
|
fileSizeLimit: z.ZodOptional<z.ZodNumber>;
|
|
138
183
|
totalSizeLimit: z.ZodOptional<z.ZodNumber>;
|
|
139
184
|
supportedMimeTypes: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
185
|
+
defaultLLMDeliveryPath: z.ZodOptional<z.ZodObject<{
|
|
186
|
+
fallback: z.ZodOptional<z.ZodEnum<["provider", "text", "none"]>>;
|
|
187
|
+
overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<["provider", "text", "none"]>>>;
|
|
188
|
+
}, "strip", z.ZodTypeAny, {
|
|
189
|
+
fallback?: "none" | "provider" | "text" | undefined;
|
|
190
|
+
overrides?: Record<string, "none" | "provider" | "text"> | undefined;
|
|
191
|
+
}, {
|
|
192
|
+
fallback?: "none" | "provider" | "text" | undefined;
|
|
193
|
+
overrides?: Record<string, "none" | "provider" | "text"> | undefined;
|
|
194
|
+
}>>;
|
|
195
|
+
legacyFileUploadUX: z.ZodOptional<z.ZodBoolean>;
|
|
140
196
|
}, "strip", z.ZodTypeAny, {
|
|
141
197
|
disabled?: boolean | undefined;
|
|
142
198
|
fileLimit?: number | undefined;
|
|
143
199
|
fileSizeLimit?: number | undefined;
|
|
144
200
|
totalSizeLimit?: number | undefined;
|
|
145
201
|
supportedMimeTypes?: string[] | undefined;
|
|
202
|
+
defaultLLMDeliveryPath?: {
|
|
203
|
+
fallback?: "none" | "provider" | "text" | undefined;
|
|
204
|
+
overrides?: Record<string, "none" | "provider" | "text"> | undefined;
|
|
205
|
+
} | undefined;
|
|
206
|
+
legacyFileUploadUX?: boolean | undefined;
|
|
146
207
|
}, {
|
|
147
208
|
disabled?: boolean | undefined;
|
|
148
209
|
fileLimit?: number | undefined;
|
|
149
210
|
fileSizeLimit?: number | undefined;
|
|
150
211
|
totalSizeLimit?: number | undefined;
|
|
151
212
|
supportedMimeTypes?: string[] | undefined;
|
|
213
|
+
defaultLLMDeliveryPath?: {
|
|
214
|
+
fallback?: "none" | "provider" | "text" | undefined;
|
|
215
|
+
overrides?: Record<string, "none" | "provider" | "text"> | undefined;
|
|
216
|
+
} | undefined;
|
|
217
|
+
legacyFileUploadUX?: boolean | undefined;
|
|
152
218
|
}>;
|
|
153
219
|
export declare const fileConfigSchema: z.ZodObject<{
|
|
154
220
|
endpoints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -157,18 +223,39 @@ export declare const fileConfigSchema: z.ZodObject<{
|
|
|
157
223
|
fileSizeLimit: z.ZodOptional<z.ZodNumber>;
|
|
158
224
|
totalSizeLimit: z.ZodOptional<z.ZodNumber>;
|
|
159
225
|
supportedMimeTypes: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
226
|
+
defaultLLMDeliveryPath: z.ZodOptional<z.ZodObject<{
|
|
227
|
+
fallback: z.ZodOptional<z.ZodEnum<["provider", "text", "none"]>>;
|
|
228
|
+
overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<["provider", "text", "none"]>>>;
|
|
229
|
+
}, "strip", z.ZodTypeAny, {
|
|
230
|
+
fallback?: "none" | "provider" | "text" | undefined;
|
|
231
|
+
overrides?: Record<string, "none" | "provider" | "text"> | undefined;
|
|
232
|
+
}, {
|
|
233
|
+
fallback?: "none" | "provider" | "text" | undefined;
|
|
234
|
+
overrides?: Record<string, "none" | "provider" | "text"> | undefined;
|
|
235
|
+
}>>;
|
|
236
|
+
legacyFileUploadUX: z.ZodOptional<z.ZodBoolean>;
|
|
160
237
|
}, "strip", z.ZodTypeAny, {
|
|
161
238
|
disabled?: boolean | undefined;
|
|
162
239
|
fileLimit?: number | undefined;
|
|
163
240
|
fileSizeLimit?: number | undefined;
|
|
164
241
|
totalSizeLimit?: number | undefined;
|
|
165
242
|
supportedMimeTypes?: string[] | undefined;
|
|
243
|
+
defaultLLMDeliveryPath?: {
|
|
244
|
+
fallback?: "none" | "provider" | "text" | undefined;
|
|
245
|
+
overrides?: Record<string, "none" | "provider" | "text"> | undefined;
|
|
246
|
+
} | undefined;
|
|
247
|
+
legacyFileUploadUX?: boolean | undefined;
|
|
166
248
|
}, {
|
|
167
249
|
disabled?: boolean | undefined;
|
|
168
250
|
fileLimit?: number | undefined;
|
|
169
251
|
fileSizeLimit?: number | undefined;
|
|
170
252
|
totalSizeLimit?: number | undefined;
|
|
171
253
|
supportedMimeTypes?: string[] | undefined;
|
|
254
|
+
defaultLLMDeliveryPath?: {
|
|
255
|
+
fallback?: "none" | "provider" | "text" | undefined;
|
|
256
|
+
overrides?: Record<string, "none" | "provider" | "text"> | undefined;
|
|
257
|
+
} | undefined;
|
|
258
|
+
legacyFileUploadUX?: boolean | undefined;
|
|
172
259
|
}>>>;
|
|
173
260
|
skills: z.ZodOptional<z.ZodObject<{
|
|
174
261
|
fileSizeLimit: z.ZodOptional<z.ZodNumber>;
|
|
@@ -180,6 +267,9 @@ export declare const fileConfigSchema: z.ZodObject<{
|
|
|
180
267
|
serverFileSizeLimit: z.ZodOptional<z.ZodNumber>;
|
|
181
268
|
avatarSizeLimit: z.ZodOptional<z.ZodNumber>;
|
|
182
269
|
fileTokenLimit: z.ZodOptional<z.ZodNumber>;
|
|
270
|
+
fileContextSizeLimit: z.ZodOptional<z.ZodNumber>;
|
|
271
|
+
fileContextCharLimit: z.ZodOptional<z.ZodNumber>;
|
|
272
|
+
codeEnvLivenessSafeWindowMs: z.ZodOptional<z.ZodNumber>;
|
|
183
273
|
imageGeneration: z.ZodOptional<z.ZodObject<{
|
|
184
274
|
percentage: z.ZodOptional<z.ZodNumber>;
|
|
185
275
|
px: z.ZodOptional<z.ZodNumber>;
|
|
@@ -220,23 +310,50 @@ export declare const fileConfigSchema: z.ZodObject<{
|
|
|
220
310
|
}, {
|
|
221
311
|
supportedMimeTypes?: string[] | undefined;
|
|
222
312
|
}>>;
|
|
313
|
+
defaultLLMDeliveryPath: z.ZodOptional<z.ZodObject<{
|
|
314
|
+
fallback: z.ZodOptional<z.ZodEnum<["provider", "text", "none"]>>;
|
|
315
|
+
overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<["provider", "text", "none"]>>>;
|
|
316
|
+
}, "strip", z.ZodTypeAny, {
|
|
317
|
+
fallback?: "none" | "provider" | "text" | undefined;
|
|
318
|
+
overrides?: Record<string, "none" | "provider" | "text"> | undefined;
|
|
319
|
+
}, {
|
|
320
|
+
fallback?: "none" | "provider" | "text" | undefined;
|
|
321
|
+
overrides?: Record<string, "none" | "provider" | "text"> | undefined;
|
|
322
|
+
}>>;
|
|
323
|
+
legacyFileUploadUX: z.ZodOptional<z.ZodBoolean>;
|
|
223
324
|
}, "strip", z.ZodTypeAny, {
|
|
224
|
-
|
|
225
|
-
text?: {
|
|
325
|
+
ocr?: {
|
|
226
326
|
supportedMimeTypes?: string[] | undefined;
|
|
227
327
|
} | undefined;
|
|
228
328
|
skills?: {
|
|
229
329
|
fileSizeLimit?: number | undefined;
|
|
230
330
|
} | undefined;
|
|
331
|
+
text?: {
|
|
332
|
+
supportedMimeTypes?: string[] | undefined;
|
|
333
|
+
} | undefined;
|
|
334
|
+
fileTokenLimit?: number | undefined;
|
|
335
|
+
defaultLLMDeliveryPath?: {
|
|
336
|
+
fallback?: "none" | "provider" | "text" | undefined;
|
|
337
|
+
overrides?: Record<string, "none" | "provider" | "text"> | undefined;
|
|
338
|
+
} | undefined;
|
|
339
|
+
legacyFileUploadUX?: boolean | undefined;
|
|
231
340
|
endpoints?: Record<string, {
|
|
232
341
|
disabled?: boolean | undefined;
|
|
233
342
|
fileLimit?: number | undefined;
|
|
234
343
|
fileSizeLimit?: number | undefined;
|
|
235
344
|
totalSizeLimit?: number | undefined;
|
|
236
345
|
supportedMimeTypes?: string[] | undefined;
|
|
346
|
+
defaultLLMDeliveryPath?: {
|
|
347
|
+
fallback?: "none" | "provider" | "text" | undefined;
|
|
348
|
+
overrides?: Record<string, "none" | "provider" | "text"> | undefined;
|
|
349
|
+
} | undefined;
|
|
350
|
+
legacyFileUploadUX?: boolean | undefined;
|
|
237
351
|
}> | undefined;
|
|
238
352
|
serverFileSizeLimit?: number | undefined;
|
|
239
353
|
avatarSizeLimit?: number | undefined;
|
|
354
|
+
fileContextSizeLimit?: number | undefined;
|
|
355
|
+
fileContextCharLimit?: number | undefined;
|
|
356
|
+
codeEnvLivenessSafeWindowMs?: number | undefined;
|
|
240
357
|
imageGeneration?: {
|
|
241
358
|
percentage?: number | undefined;
|
|
242
359
|
px?: number | undefined;
|
|
@@ -247,26 +364,39 @@ export declare const fileConfigSchema: z.ZodObject<{
|
|
|
247
364
|
maxHeight?: number | undefined;
|
|
248
365
|
quality?: number | undefined;
|
|
249
366
|
} | undefined;
|
|
367
|
+
}, {
|
|
250
368
|
ocr?: {
|
|
251
369
|
supportedMimeTypes?: string[] | undefined;
|
|
252
370
|
} | undefined;
|
|
253
|
-
|
|
254
|
-
|
|
371
|
+
skills?: {
|
|
372
|
+
fileSizeLimit?: number | undefined;
|
|
373
|
+
} | undefined;
|
|
255
374
|
text?: {
|
|
256
375
|
supportedMimeTypes?: string[] | undefined;
|
|
257
376
|
} | undefined;
|
|
258
|
-
|
|
259
|
-
|
|
377
|
+
fileTokenLimit?: number | undefined;
|
|
378
|
+
defaultLLMDeliveryPath?: {
|
|
379
|
+
fallback?: "none" | "provider" | "text" | undefined;
|
|
380
|
+
overrides?: Record<string, "none" | "provider" | "text"> | undefined;
|
|
260
381
|
} | undefined;
|
|
382
|
+
legacyFileUploadUX?: boolean | undefined;
|
|
261
383
|
endpoints?: Record<string, {
|
|
262
384
|
disabled?: boolean | undefined;
|
|
263
385
|
fileLimit?: number | undefined;
|
|
264
386
|
fileSizeLimit?: number | undefined;
|
|
265
387
|
totalSizeLimit?: number | undefined;
|
|
266
388
|
supportedMimeTypes?: string[] | undefined;
|
|
389
|
+
defaultLLMDeliveryPath?: {
|
|
390
|
+
fallback?: "none" | "provider" | "text" | undefined;
|
|
391
|
+
overrides?: Record<string, "none" | "provider" | "text"> | undefined;
|
|
392
|
+
} | undefined;
|
|
393
|
+
legacyFileUploadUX?: boolean | undefined;
|
|
267
394
|
}> | undefined;
|
|
268
395
|
serverFileSizeLimit?: number | undefined;
|
|
269
396
|
avatarSizeLimit?: number | undefined;
|
|
397
|
+
fileContextSizeLimit?: number | undefined;
|
|
398
|
+
fileContextCharLimit?: number | undefined;
|
|
399
|
+
codeEnvLivenessSafeWindowMs?: number | undefined;
|
|
270
400
|
imageGeneration?: {
|
|
271
401
|
percentage?: number | undefined;
|
|
272
402
|
px?: number | undefined;
|
|
@@ -277,9 +407,6 @@ export declare const fileConfigSchema: z.ZodObject<{
|
|
|
277
407
|
maxHeight?: number | undefined;
|
|
278
408
|
quality?: number | undefined;
|
|
279
409
|
} | undefined;
|
|
280
|
-
ocr?: {
|
|
281
|
-
supportedMimeTypes?: string[] | undefined;
|
|
282
|
-
} | undefined;
|
|
283
410
|
}>;
|
|
284
411
|
export type TFileConfig = z.infer<typeof fileConfigSchema>;
|
|
285
412
|
/** Override the MIME-pattern compiler; the server injects a linear-time engine at startup. */
|
|
@@ -297,6 +424,8 @@ export interface MimeUploadCapability {
|
|
|
297
424
|
/** When `document` is permitted, restrict document types to this set (e.g. Bedrock formats); default: all. */
|
|
298
425
|
documentMimeTypes?: readonly string[];
|
|
299
426
|
}
|
|
427
|
+
/** Preferred extension for a known document MIME type, including its leading dot. */
|
|
428
|
+
export declare function getDocumentFileExtension(mimeType?: string): string | undefined;
|
|
300
429
|
/**
|
|
301
430
|
* Resolves the file-input `accept` value for a configured `supportedMimeTypes` allowlist, scoped to
|
|
302
431
|
* what the current upload path (`capability`) can send to the model.
|