librechat-data-provider 0.8.402 → 0.8.404
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/react-query/index.es.js +1 -1
- package/dist/react-query/index.es.js.map +1 -1
- package/dist/types/accessPermissions.d.ts +744 -0
- package/dist/types/actions.d.ts +118 -0
- package/dist/types/api-endpoints.d.ts +150 -0
- package/dist/types/artifacts.d.ts +97 -0
- package/dist/types/azure.d.ts +22 -0
- package/dist/types/bedrock.d.ts +1220 -0
- package/dist/types/config.d.ts +14849 -0
- package/dist/types/config.spec.d.ts +1 -0
- package/dist/types/createPayload.d.ts +5 -0
- package/dist/types/data-service.d.ts +287 -0
- package/dist/types/feedback.d.ts +36 -0
- package/dist/types/file-config.d.ts +263 -0
- package/dist/types/file-config.spec.d.ts +1 -0
- package/dist/types/generate.d.ts +597 -0
- package/dist/types/headers-helpers.d.ts +2 -0
- package/{src/index.ts → dist/types/index.d.ts} +0 -15
- package/dist/types/keys.d.ts +92 -0
- package/dist/types/mcp.d.ts +2760 -0
- package/dist/types/messages.d.ts +10 -0
- package/dist/types/models.d.ts +1547 -0
- package/dist/types/parameterSettings.d.ts +69 -0
- package/dist/types/parsers.d.ts +110 -0
- package/dist/types/permissions.d.ts +522 -0
- package/dist/types/react-query/react-query-service.d.ts +85 -0
- package/dist/types/request.d.ts +25 -0
- package/dist/types/roles.d.ts +554 -0
- package/dist/types/roles.spec.d.ts +1 -0
- package/dist/types/schemas.d.ts +5110 -0
- package/dist/types/schemas.spec.d.ts +1 -0
- package/dist/types/types/agents.d.ts +433 -0
- package/dist/types/types/assistants.d.ts +547 -0
- package/dist/types/types/files.d.ts +172 -0
- package/dist/types/types/graph.d.ts +135 -0
- package/{src/types/mcpServers.ts → dist/types/types/mcpServers.d.ts} +12 -18
- package/dist/types/types/mutations.d.ts +209 -0
- package/dist/types/types/queries.d.ts +169 -0
- package/dist/types/types/runs.d.ts +36 -0
- package/dist/types/types/web.d.ts +520 -0
- package/dist/types/types.d.ts +503 -0
- package/dist/types/utils.d.ts +12 -0
- package/package.json +5 -1
- package/babel.config.js +0 -4
- package/check_updates.sh +0 -52
- package/jest.config.js +0 -19
- package/react-query/package-lock.json +0 -292
- package/react-query/package.json +0 -10
- package/rollup.config.js +0 -74
- package/server-rollup.config.js +0 -40
- package/specs/actions.spec.ts +0 -2533
- package/specs/api-endpoints-subdir.spec.ts +0 -140
- package/specs/api-endpoints.spec.ts +0 -74
- package/specs/azure.spec.ts +0 -844
- package/specs/bedrock.spec.ts +0 -862
- package/specs/filetypes.spec.ts +0 -175
- package/specs/generate.spec.ts +0 -770
- package/specs/headers-helpers.spec.ts +0 -24
- package/specs/mcp.spec.ts +0 -147
- package/specs/openapiSpecs.ts +0 -524
- package/specs/parsers.spec.ts +0 -601
- package/specs/request-interceptor.spec.ts +0 -304
- package/specs/utils.spec.ts +0 -196
- package/src/accessPermissions.ts +0 -346
- package/src/actions.ts +0 -813
- package/src/api-endpoints.ts +0 -440
- package/src/artifacts.ts +0 -3104
- package/src/azure.ts +0 -328
- package/src/bedrock.ts +0 -425
- package/src/config.spec.ts +0 -315
- package/src/config.ts +0 -2006
- package/src/createPayload.ts +0 -46
- package/src/data-service.ts +0 -1087
- package/src/feedback.ts +0 -141
- package/src/file-config.spec.ts +0 -1248
- package/src/file-config.ts +0 -764
- package/src/generate.ts +0 -634
- package/src/headers-helpers.ts +0 -13
- package/src/keys.ts +0 -99
- package/src/mcp.ts +0 -271
- package/src/messages.ts +0 -50
- package/src/models.ts +0 -69
- package/src/parameterSettings.ts +0 -1111
- package/src/parsers.ts +0 -563
- package/src/permissions.ts +0 -188
- package/src/react-query/react-query-service.ts +0 -566
- package/src/request.ts +0 -171
- package/src/roles.spec.ts +0 -132
- package/src/roles.ts +0 -225
- package/src/schemas.spec.ts +0 -355
- package/src/schemas.ts +0 -1234
- package/src/types/agents.ts +0 -470
- package/src/types/assistants.ts +0 -654
- package/src/types/files.ts +0 -191
- package/src/types/graph.ts +0 -145
- package/src/types/mutations.ts +0 -422
- package/src/types/queries.ts +0 -208
- package/src/types/runs.ts +0 -40
- package/src/types/web.ts +0 -588
- package/src/types.ts +0 -676
- package/src/utils.ts +0 -85
- package/tsconfig.json +0 -28
- package/tsconfig.spec.json +0 -10
- /package/{src/react-query/index.ts → dist/types/react-query/index.d.ts} +0 -0
- /package/{src/types/index.ts → dist/types/types/index.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
import type { AxiosResponse } from 'axios';
|
|
2
|
+
import type * as t from './types';
|
|
3
|
+
import * as a from './types/assistants';
|
|
4
|
+
import * as ag from './types/agents';
|
|
5
|
+
import * as m from './types/mutations';
|
|
6
|
+
import * as q from './types/queries';
|
|
7
|
+
import * as f from './types/files';
|
|
8
|
+
import * as mcp from './types/mcpServers';
|
|
9
|
+
import * as config from './config';
|
|
10
|
+
import * as s from './schemas';
|
|
11
|
+
import * as r from './roles';
|
|
12
|
+
import * as permissions from './accessPermissions';
|
|
13
|
+
export declare function revokeUserKey(name: string): Promise<unknown>;
|
|
14
|
+
export declare function revokeAllUserKeys(): Promise<unknown>;
|
|
15
|
+
export declare function deleteUser(payload?: t.TDeleteUserRequest): Promise<unknown>;
|
|
16
|
+
export type FavoriteItem = {
|
|
17
|
+
agentId?: string;
|
|
18
|
+
model?: string;
|
|
19
|
+
endpoint?: string;
|
|
20
|
+
};
|
|
21
|
+
export declare function getFavorites(): Promise<FavoriteItem[]>;
|
|
22
|
+
export declare function updateFavorites(favorites: FavoriteItem[]): Promise<FavoriteItem[]>;
|
|
23
|
+
export declare function getSharedMessages(shareId: string): Promise<t.TSharedMessagesResponse>;
|
|
24
|
+
export declare const listSharedLinks: (params: q.SharedLinksListParams) => Promise<q.SharedLinksResponse>;
|
|
25
|
+
export declare function getSharedLink(conversationId: string): Promise<t.TSharedLinkGetResponse>;
|
|
26
|
+
export declare function createSharedLink(conversationId: string, targetMessageId?: string): Promise<t.TSharedLinkResponse>;
|
|
27
|
+
export declare function updateSharedLink(shareId: string): Promise<t.TSharedLinkResponse>;
|
|
28
|
+
export declare function deleteSharedLink(shareId: string): Promise<m.TDeleteSharedLinkResponse>;
|
|
29
|
+
export declare function updateUserKey(payload: t.TUpdateUserKeyRequest): Promise<any>;
|
|
30
|
+
export declare function getAgentApiKeys(): Promise<t.TAgentApiKeyListResponse>;
|
|
31
|
+
export declare function createAgentApiKey(payload: t.TAgentApiKeyCreateRequest): Promise<t.TAgentApiKeyCreateResponse>;
|
|
32
|
+
export declare function deleteAgentApiKey(id: string): Promise<void>;
|
|
33
|
+
export declare function getPresets(): Promise<s.TPreset[]>;
|
|
34
|
+
export declare function createPreset(payload: s.TPreset): Promise<s.TPreset>;
|
|
35
|
+
export declare function updatePreset(payload: s.TPreset): Promise<s.TPreset>;
|
|
36
|
+
export declare function deletePreset(arg: s.TPreset | undefined): Promise<m.PresetDeleteResponse>;
|
|
37
|
+
export declare function getSearchEnabled(): Promise<boolean>;
|
|
38
|
+
export declare function getUser(): Promise<t.TUser>;
|
|
39
|
+
export declare function getUserBalance(): Promise<t.TBalanceResponse>;
|
|
40
|
+
export declare const updateTokenCount: (text: string) => Promise<any>;
|
|
41
|
+
export declare const login: (payload: t.TLoginUser) => Promise<t.TLoginResponse>;
|
|
42
|
+
export declare const logout: () => Promise<m.TLogoutResponse>;
|
|
43
|
+
export declare const register: (payload: t.TRegisterUser) => Promise<any>;
|
|
44
|
+
export declare const userKeyQuery: (name: string) => Promise<t.TCheckUserKeyResponse>;
|
|
45
|
+
export declare const getLoginGoogle: () => Promise<unknown>;
|
|
46
|
+
export declare const requestPasswordReset: (payload: t.TRequestPasswordReset) => Promise<t.TRequestPasswordResetResponse>;
|
|
47
|
+
export declare const resetPassword: (payload: t.TResetPassword) => Promise<any>;
|
|
48
|
+
export declare const verifyEmail: (payload: t.TVerifyEmail) => Promise<t.VerifyEmailResponse>;
|
|
49
|
+
export declare const resendVerificationEmail: (payload: t.TResendVerificationEmail) => Promise<t.VerifyEmailResponse>;
|
|
50
|
+
export declare const getAvailablePlugins: () => Promise<s.TPlugin[]>;
|
|
51
|
+
export declare const updateUserPlugins: (payload: t.TUpdateUserPlugins) => Promise<any>;
|
|
52
|
+
export declare const reinitializeMCPServer: (serverName: string) => Promise<any>;
|
|
53
|
+
export declare const bindMCPOAuth: (serverName: string) => Promise<{
|
|
54
|
+
success: boolean;
|
|
55
|
+
}>;
|
|
56
|
+
export declare const bindActionOAuth: (actionId: string) => Promise<{
|
|
57
|
+
success: boolean;
|
|
58
|
+
}>;
|
|
59
|
+
export declare const getMCPConnectionStatus: () => Promise<q.MCPConnectionStatusResponse>;
|
|
60
|
+
export declare const getMCPServerConnectionStatus: (serverName: string) => Promise<q.MCPServerConnectionStatusResponse>;
|
|
61
|
+
export declare const getMCPAuthValues: (serverName: string) => Promise<q.MCPAuthValuesResponse>;
|
|
62
|
+
export declare function cancelMCPOAuth(serverName: string): Promise<m.CancelMCPOAuthResponse>;
|
|
63
|
+
export declare const getStartupConfig: () => Promise<config.TStartupConfig & {
|
|
64
|
+
mcpCustomUserVars?: Record<string, {
|
|
65
|
+
title: string;
|
|
66
|
+
description: string;
|
|
67
|
+
}>;
|
|
68
|
+
}>;
|
|
69
|
+
export declare const getAIEndpoints: () => Promise<t.TEndpointsConfig>;
|
|
70
|
+
export declare const getModels: () => Promise<t.TModelsConfig>;
|
|
71
|
+
export declare const createAssistant: ({ version, ...data }: a.AssistantCreateParams) => Promise<a.Assistant>;
|
|
72
|
+
export declare const getAssistantById: ({ endpoint, assistant_id, version, }: {
|
|
73
|
+
endpoint: s.AssistantsEndpoint;
|
|
74
|
+
assistant_id: string;
|
|
75
|
+
version: number | string | number;
|
|
76
|
+
}) => Promise<a.Assistant>;
|
|
77
|
+
export declare const updateAssistant: ({ assistant_id, data, version, }: {
|
|
78
|
+
assistant_id: string;
|
|
79
|
+
data: a.AssistantUpdateParams;
|
|
80
|
+
version: number | string;
|
|
81
|
+
}) => Promise<a.Assistant>;
|
|
82
|
+
export declare const deleteAssistant: ({ assistant_id, model, endpoint, version, }: m.DeleteAssistantBody & {
|
|
83
|
+
version: number | string;
|
|
84
|
+
}) => Promise<void>;
|
|
85
|
+
export declare const listAssistants: (params: a.AssistantListParams, version: number | string) => Promise<a.AssistantListResponse>;
|
|
86
|
+
export declare function getAssistantDocs({ endpoint, version, }: {
|
|
87
|
+
endpoint: s.AssistantsEndpoint | string;
|
|
88
|
+
version: number | string;
|
|
89
|
+
}): Promise<a.AssistantDocument[]>;
|
|
90
|
+
export declare const getAvailableTools: (_endpoint: s.AssistantsEndpoint | s.EModelEndpoint.agents, version?: number | string) => Promise<s.TPlugin[]>;
|
|
91
|
+
export declare const getMCPTools: () => Promise<q.MCPServersResponse>;
|
|
92
|
+
export declare const getVerifyAgentToolAuth: (params: q.VerifyToolAuthParams) => Promise<q.VerifyToolAuthResponse>;
|
|
93
|
+
export declare const callTool: <T extends a.Tools.execute_code>({ toolId, toolParams, }: {
|
|
94
|
+
toolId: T;
|
|
95
|
+
toolParams: m.ToolParams<T>;
|
|
96
|
+
}) => Promise<m.ToolCallResponse>;
|
|
97
|
+
export declare const getToolCalls: (params: q.GetToolCallParams) => Promise<q.ToolCallResults>;
|
|
98
|
+
export declare const getFiles: () => Promise<f.TFile[]>;
|
|
99
|
+
export declare const getAgentFiles: (agentId: string) => Promise<f.TFile[]>;
|
|
100
|
+
export declare const getFileConfig: () => Promise<f.FileConfig>;
|
|
101
|
+
export declare const uploadImage: (data: FormData, signal?: AbortSignal | null) => Promise<f.TFileUpload>;
|
|
102
|
+
export declare const uploadFile: (data: FormData, signal?: AbortSignal | null) => Promise<f.TFileUpload>;
|
|
103
|
+
export declare const updateAction: (data: m.UpdateActionVariables) => Promise<m.UpdateActionResponse>;
|
|
104
|
+
export declare function getActions(): Promise<ag.Action[]>;
|
|
105
|
+
export declare const deleteAction: ({ assistant_id, action_id, model, version, endpoint, }: m.DeleteActionVariables & {
|
|
106
|
+
version: number | string;
|
|
107
|
+
}) => Promise<void>;
|
|
108
|
+
/**
|
|
109
|
+
* Agents
|
|
110
|
+
*/
|
|
111
|
+
export declare const createAgent: ({ ...data }: a.AgentCreateParams) => Promise<a.Agent>;
|
|
112
|
+
export declare const getAgentById: ({ agent_id }: {
|
|
113
|
+
agent_id: string;
|
|
114
|
+
}) => Promise<a.Agent>;
|
|
115
|
+
export declare const getExpandedAgentById: ({ agent_id }: {
|
|
116
|
+
agent_id: string;
|
|
117
|
+
}) => Promise<a.Agent>;
|
|
118
|
+
export declare const updateAgent: ({ agent_id, data, }: {
|
|
119
|
+
agent_id: string;
|
|
120
|
+
data: a.AgentUpdateParams;
|
|
121
|
+
}) => Promise<a.Agent>;
|
|
122
|
+
export declare const duplicateAgent: ({ agent_id, }: m.DuplicateAgentBody) => Promise<{
|
|
123
|
+
agent: a.Agent;
|
|
124
|
+
actions: ag.Action[];
|
|
125
|
+
}>;
|
|
126
|
+
export declare const deleteAgent: ({ agent_id }: m.DeleteAgentBody) => Promise<void>;
|
|
127
|
+
export declare const listAgents: (params: a.AgentListParams) => Promise<a.AgentListResponse>;
|
|
128
|
+
export declare const revertAgentVersion: ({ agent_id, version_index, }: {
|
|
129
|
+
agent_id: string;
|
|
130
|
+
version_index: number;
|
|
131
|
+
}) => Promise<a.Agent>;
|
|
132
|
+
/**
|
|
133
|
+
* Get agent categories with counts for marketplace tabs
|
|
134
|
+
*/
|
|
135
|
+
export declare const getAgentCategories: () => Promise<t.TMarketplaceCategory[]>;
|
|
136
|
+
/**
|
|
137
|
+
* Unified marketplace agents endpoint with query string controls
|
|
138
|
+
*/
|
|
139
|
+
export declare const getMarketplaceAgents: (params: {
|
|
140
|
+
requiredPermission: number;
|
|
141
|
+
category?: string;
|
|
142
|
+
search?: string;
|
|
143
|
+
limit?: number;
|
|
144
|
+
cursor?: string;
|
|
145
|
+
promoted?: 0 | 1;
|
|
146
|
+
}) => Promise<a.AgentListResponse>;
|
|
147
|
+
export declare const getAvailableAgentTools: () => Promise<s.TPlugin[]>;
|
|
148
|
+
export declare const updateAgentAction: (data: m.UpdateAgentActionVariables) => Promise<m.UpdateAgentActionResponse>;
|
|
149
|
+
export declare const deleteAgentAction: ({ agent_id, action_id, }: m.DeleteAgentActionVariables) => Promise<void>;
|
|
150
|
+
/**
|
|
151
|
+
* MCP Servers
|
|
152
|
+
*/
|
|
153
|
+
/**
|
|
154
|
+
*
|
|
155
|
+
* Ensure and List loaded mcp server configs from the cache Enriched with effective permissions.
|
|
156
|
+
*/
|
|
157
|
+
export declare const getMCPServers: () => Promise<mcp.MCPServersListResponse>;
|
|
158
|
+
/**
|
|
159
|
+
* Get a single MCP server by ID
|
|
160
|
+
*/
|
|
161
|
+
export declare const getMCPServer: (serverName: string) => Promise<mcp.MCPServerDBObjectResponse>;
|
|
162
|
+
/**
|
|
163
|
+
* Create a new MCP server
|
|
164
|
+
*/
|
|
165
|
+
export declare const createMCPServer: (data: mcp.MCPServerCreateParams) => Promise<mcp.MCPServerDBObjectResponse>;
|
|
166
|
+
/**
|
|
167
|
+
* Update an existing MCP server
|
|
168
|
+
*/
|
|
169
|
+
export declare const updateMCPServer: (serverName: string, data: mcp.MCPServerUpdateParams) => Promise<mcp.MCPServerDBObjectResponse>;
|
|
170
|
+
/**
|
|
171
|
+
* Delete an MCP server
|
|
172
|
+
*/
|
|
173
|
+
export declare const deleteMCPServer: (serverName: string) => Promise<{
|
|
174
|
+
success: boolean;
|
|
175
|
+
}>;
|
|
176
|
+
/**
|
|
177
|
+
* Imports a conversations file.
|
|
178
|
+
*
|
|
179
|
+
* @param data - The FormData containing the file to import.
|
|
180
|
+
* @returns A Promise that resolves to the import start response.
|
|
181
|
+
*/
|
|
182
|
+
export declare const importConversationsFile: (data: FormData) => Promise<t.TImportResponse>;
|
|
183
|
+
export declare const uploadAvatar: (data: FormData) => Promise<f.AvatarUploadResponse>;
|
|
184
|
+
export declare const uploadAssistantAvatar: (data: m.AssistantAvatarVariables) => Promise<a.Assistant>;
|
|
185
|
+
export declare const uploadAgentAvatar: (data: m.AgentAvatarVariables) => Promise<a.Agent>;
|
|
186
|
+
export declare const getFileDownload: (userId: string, file_id: string) => Promise<AxiosResponse>;
|
|
187
|
+
export declare const getCodeOutputDownload: (url: string) => Promise<AxiosResponse>;
|
|
188
|
+
export declare const deleteFiles: (payload: {
|
|
189
|
+
files: f.BatchFile[];
|
|
190
|
+
agent_id?: string;
|
|
191
|
+
assistant_id?: string;
|
|
192
|
+
tool_resource?: a.EToolResources;
|
|
193
|
+
}) => Promise<f.DeleteFilesResponse>;
|
|
194
|
+
export declare const speechToText: (data: FormData) => Promise<f.SpeechToTextResponse>;
|
|
195
|
+
export declare const textToSpeech: (data: FormData) => Promise<ArrayBuffer>;
|
|
196
|
+
export declare const getVoices: () => Promise<f.VoiceResponse>;
|
|
197
|
+
export declare const getCustomConfigSpeech: () => Promise<t.TCustomConfigSpeechResponse>;
|
|
198
|
+
export declare function duplicateConversation(payload: t.TDuplicateConvoRequest): Promise<t.TDuplicateConvoResponse>;
|
|
199
|
+
export declare function forkConversation(payload: t.TForkConvoRequest): Promise<t.TForkConvoResponse>;
|
|
200
|
+
export declare function deleteConversation(payload: t.TDeleteConversationRequest): Promise<unknown>;
|
|
201
|
+
export declare function clearAllConversations(): Promise<unknown>;
|
|
202
|
+
export declare const listConversations: (params?: q.ConversationListParams) => Promise<q.ConversationListResponse>;
|
|
203
|
+
export declare function getConversations(cursor: string): Promise<t.TGetConversationsResponse>;
|
|
204
|
+
export declare function getConversationById(id: string): Promise<s.TConversation>;
|
|
205
|
+
export declare function updateConversation(payload: t.TUpdateConversationRequest): Promise<t.TUpdateConversationResponse>;
|
|
206
|
+
export declare function archiveConversation(payload: t.TArchiveConversationRequest): Promise<t.TArchiveConversationResponse>;
|
|
207
|
+
export declare function genTitle(payload: m.TGenTitleRequest): Promise<m.TGenTitleResponse>;
|
|
208
|
+
export declare const listMessages: (params?: q.MessagesListParams) => Promise<q.MessagesListResponse>;
|
|
209
|
+
export declare function updateMessage(payload: t.TUpdateMessageRequest): Promise<unknown>;
|
|
210
|
+
export declare function updateMessageContent(payload: t.TUpdateMessageContent): Promise<unknown>;
|
|
211
|
+
export declare const editArtifact: ({ messageId, ...params }: m.TEditArtifactRequest) => Promise<m.TEditArtifactResponse>;
|
|
212
|
+
export declare const branchMessage: (payload: m.TBranchMessageRequest) => Promise<m.TBranchMessageResponse>;
|
|
213
|
+
export declare function getMessagesByConvoId(conversationId: string): Promise<s.TMessage[]>;
|
|
214
|
+
export declare function getPrompt(id: string): Promise<{
|
|
215
|
+
prompt: t.TPrompt;
|
|
216
|
+
}>;
|
|
217
|
+
export declare function getPrompts(filter: t.TPromptsWithFilterRequest): Promise<t.TPrompt[]>;
|
|
218
|
+
export declare function getAllPromptGroups(): Promise<q.AllPromptGroupsResponse>;
|
|
219
|
+
export declare function getPromptGroups(filter: t.TPromptGroupsWithFilterRequest): Promise<t.PromptGroupListResponse>;
|
|
220
|
+
export declare function getPromptGroup(id: string): Promise<t.TPromptGroup>;
|
|
221
|
+
export declare function createPrompt(payload: t.TCreatePrompt): Promise<t.TCreatePromptResponse>;
|
|
222
|
+
export declare function addPromptToGroup(groupId: string, payload: t.TCreatePrompt): Promise<t.TCreatePromptResponse>;
|
|
223
|
+
export declare function updatePromptGroup(variables: t.TUpdatePromptGroupVariables): Promise<t.TUpdatePromptGroupResponse>;
|
|
224
|
+
export declare function recordPromptGroupUsage(groupId: string): Promise<{
|
|
225
|
+
numberOfGenerations: number;
|
|
226
|
+
}>;
|
|
227
|
+
export declare function deletePrompt(payload: t.TDeletePromptVariables): Promise<t.TDeletePromptResponse>;
|
|
228
|
+
export declare function makePromptProduction(id: string): Promise<t.TMakePromptProductionResponse>;
|
|
229
|
+
export declare function updatePromptLabels(variables: t.TUpdatePromptLabelsRequest): Promise<t.TUpdatePromptLabelsResponse>;
|
|
230
|
+
export declare function deletePromptGroup(id: string): Promise<t.TDeletePromptGroupResponse>;
|
|
231
|
+
export declare function getCategories(): Promise<t.TGetCategoriesResponse>;
|
|
232
|
+
export declare function getRandomPrompts(variables: t.TGetRandomPromptsRequest): Promise<t.TGetRandomPromptsResponse>;
|
|
233
|
+
export declare function getRole(roleName: string): Promise<r.TRole>;
|
|
234
|
+
export declare function updatePromptPermissions(variables: m.UpdatePromptPermVars): Promise<m.UpdatePermResponse>;
|
|
235
|
+
export declare function updateAgentPermissions(variables: m.UpdateAgentPermVars): Promise<m.UpdatePermResponse>;
|
|
236
|
+
export declare function updateMemoryPermissions(variables: m.UpdateMemoryPermVars): Promise<m.UpdatePermResponse>;
|
|
237
|
+
export declare function updatePeoplePickerPermissions(variables: m.UpdatePeoplePickerPermVars): Promise<m.UpdatePermResponse>;
|
|
238
|
+
export declare function updateMCPServersPermissions(variables: m.UpdateMCPServersPermVars): Promise<m.UpdatePermResponse>;
|
|
239
|
+
export declare function updateRemoteAgentsPermissions(variables: m.UpdateRemoteAgentsPermVars): Promise<m.UpdatePermResponse>;
|
|
240
|
+
export declare function updateMarketplacePermissions(variables: m.UpdateMarketplacePermVars): Promise<m.UpdatePermResponse>;
|
|
241
|
+
export declare function getConversationTags(): Promise<t.TConversationTagsResponse>;
|
|
242
|
+
export declare function createConversationTag(payload: t.TConversationTagRequest): Promise<t.TConversationTagResponse>;
|
|
243
|
+
export declare function updateConversationTag(tag: string, payload: t.TConversationTagRequest): Promise<t.TConversationTagResponse>;
|
|
244
|
+
export declare function deleteConversationTag(tag: string): Promise<t.TConversationTagResponse>;
|
|
245
|
+
export declare function addTagToConversation(conversationId: string, payload: t.TTagConversationRequest): Promise<t.TTagConversationResponse>;
|
|
246
|
+
export declare function rebuildConversationTags(): Promise<t.TConversationTagsResponse>;
|
|
247
|
+
export declare function healthCheck(): Promise<string>;
|
|
248
|
+
export declare function getUserTerms(): Promise<t.TUserTermsResponse>;
|
|
249
|
+
export declare function acceptTerms(): Promise<t.TAcceptTermsResponse>;
|
|
250
|
+
export declare function getBanner(): Promise<t.TBannerResponse>;
|
|
251
|
+
export declare function updateFeedback(conversationId: string, messageId: string, payload: t.TUpdateFeedbackRequest): Promise<t.TUpdateFeedbackResponse>;
|
|
252
|
+
export declare function enableTwoFactor(payload?: t.TEnable2FARequest): Promise<t.TEnable2FAResponse>;
|
|
253
|
+
export declare function verifyTwoFactor(payload: t.TVerify2FARequest): Promise<t.TVerify2FAResponse>;
|
|
254
|
+
export declare function confirmTwoFactor(payload: t.TVerify2FARequest): Promise<t.TVerify2FAResponse>;
|
|
255
|
+
export declare function disableTwoFactor(payload?: t.TDisable2FARequest): Promise<t.TDisable2FAResponse>;
|
|
256
|
+
export declare function regenerateBackupCodes(payload?: t.TRegenerateBackupCodesRequest): Promise<t.TRegenerateBackupCodesResponse>;
|
|
257
|
+
export declare function verifyTwoFactorTemp(payload: t.TVerify2FATempRequest): Promise<t.TVerify2FATempResponse>;
|
|
258
|
+
export declare const getMemories: () => Promise<q.MemoriesResponse>;
|
|
259
|
+
export declare const deleteMemory: (key: string) => Promise<void>;
|
|
260
|
+
export declare const updateMemory: (key: string, value: string, originalKey?: string) => Promise<q.TUserMemory>;
|
|
261
|
+
export declare const updateMemoryPreferences: (preferences: {
|
|
262
|
+
memories: boolean;
|
|
263
|
+
}) => Promise<{
|
|
264
|
+
updated: boolean;
|
|
265
|
+
preferences: {
|
|
266
|
+
memories: boolean;
|
|
267
|
+
};
|
|
268
|
+
}>;
|
|
269
|
+
export declare const createMemory: (data: {
|
|
270
|
+
key: string;
|
|
271
|
+
value: string;
|
|
272
|
+
}) => Promise<{
|
|
273
|
+
created: boolean;
|
|
274
|
+
memory: q.TUserMemory;
|
|
275
|
+
}>;
|
|
276
|
+
export declare function searchPrincipals(params: q.PrincipalSearchParams): Promise<q.PrincipalSearchResponse>;
|
|
277
|
+
export declare function getAccessRoles(resourceType: permissions.ResourceType): Promise<q.AccessRolesResponse>;
|
|
278
|
+
export declare function getResourcePermissions(resourceType: permissions.ResourceType, resourceId: string): Promise<permissions.TGetResourcePermissionsResponse>;
|
|
279
|
+
export declare function updateResourcePermissions(resourceType: permissions.ResourceType, resourceId: string, data: permissions.TUpdateResourcePermissionsRequest): Promise<permissions.TUpdateResourcePermissionsResponse>;
|
|
280
|
+
export declare function getEffectivePermissions(resourceType: permissions.ResourceType, resourceId: string): Promise<permissions.TEffectivePermissionsResponse>;
|
|
281
|
+
export declare function getAllEffectivePermissions(resourceType: permissions.ResourceType): Promise<permissions.TAllEffectivePermissionsResponse>;
|
|
282
|
+
export declare function getGraphApiToken(params: q.GraphTokenParams): Promise<q.GraphTokenResponse>;
|
|
283
|
+
export declare function getDomainServerBaseUrl(): string;
|
|
284
|
+
export interface ActiveJobsResponse {
|
|
285
|
+
activeJobIds: string[];
|
|
286
|
+
}
|
|
287
|
+
export declare const getActiveJobs: () => Promise<ActiveJobsResponse>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export type TFeedbackRating = 'thumbsUp' | 'thumbsDown';
|
|
3
|
+
export declare const FEEDBACK_RATINGS: readonly ["thumbsUp", "thumbsDown"];
|
|
4
|
+
export declare const FEEDBACK_REASON_KEYS: readonly ["not_matched", "inaccurate", "bad_style", "missing_image", "unjustified_refusal", "not_helpful", "other", "accurate_reliable", "creative_solution", "clear_well_written", "attention_to_detail"];
|
|
5
|
+
export type TFeedbackTagKey = (typeof FEEDBACK_REASON_KEYS)[number];
|
|
6
|
+
export interface TFeedbackTag {
|
|
7
|
+
key: TFeedbackTagKey;
|
|
8
|
+
label: string;
|
|
9
|
+
direction: TFeedbackRating;
|
|
10
|
+
icon: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const FEEDBACK_TAGS: TFeedbackTag[];
|
|
13
|
+
export declare function getTagsForRating(rating: TFeedbackRating): TFeedbackTag[];
|
|
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
|
+
export declare const feedbackRatingSchema: z.ZodEnum<["thumbsUp", "thumbsDown"]>;
|
|
16
|
+
export declare const feedbackSchema: z.ZodObject<{
|
|
17
|
+
rating: z.ZodEnum<["thumbsUp", "thumbsDown"]>;
|
|
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
|
+
text: z.ZodOptional<z.ZodString>;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
rating: "thumbsUp" | "thumbsDown";
|
|
22
|
+
tag: "not_matched" | "inaccurate" | "bad_style" | "missing_image" | "unjustified_refusal" | "not_helpful" | "other" | "accurate_reliable" | "creative_solution" | "clear_well_written" | "attention_to_detail";
|
|
23
|
+
text?: string | undefined;
|
|
24
|
+
}, {
|
|
25
|
+
rating: "thumbsUp" | "thumbsDown";
|
|
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
|
+
text?: string | undefined;
|
|
28
|
+
}>;
|
|
29
|
+
export type TMinimalFeedback = z.infer<typeof feedbackSchema>;
|
|
30
|
+
export type TFeedback = {
|
|
31
|
+
rating: TFeedbackRating;
|
|
32
|
+
tag: TFeedbackTag | undefined;
|
|
33
|
+
text?: string;
|
|
34
|
+
};
|
|
35
|
+
export declare function toMinimalFeedback(feedback: TFeedback | undefined): TMinimalFeedback | undefined;
|
|
36
|
+
export declare function getTagByKey(key: TFeedbackTagKey | undefined): TFeedbackTag | undefined;
|
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { EndpointFileConfig, FileConfig } from './types/files';
|
|
3
|
+
export declare const supportsFiles: {
|
|
4
|
+
openAI: boolean;
|
|
5
|
+
google: boolean;
|
|
6
|
+
assistants: boolean;
|
|
7
|
+
azureAssistants: boolean;
|
|
8
|
+
agents: boolean;
|
|
9
|
+
azureOpenAI: boolean;
|
|
10
|
+
anthropic: boolean;
|
|
11
|
+
custom: boolean;
|
|
12
|
+
bedrock: boolean;
|
|
13
|
+
};
|
|
14
|
+
export declare const excelFileTypes: string[];
|
|
15
|
+
export declare const fullMimeTypesList: string[];
|
|
16
|
+
export declare const codeInterpreterMimeTypesList: string[];
|
|
17
|
+
export declare const retrievalMimeTypesList: string[];
|
|
18
|
+
export declare const imageExtRegex: RegExp;
|
|
19
|
+
/** @see https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_DocumentBlock.html */
|
|
20
|
+
export type BedrockDocumentFormat = 'pdf' | 'csv' | 'doc' | 'docx' | 'xls' | 'xlsx' | 'html' | 'txt' | 'md';
|
|
21
|
+
/** Maps MIME types to Bedrock Converse API document format values */
|
|
22
|
+
export declare const bedrockDocumentFormats: Record<string, BedrockDocumentFormat>;
|
|
23
|
+
export declare const isBedrockDocumentType: (mimeType?: string) => boolean;
|
|
24
|
+
/** File extensions accepted by Bedrock document uploads (for input accept attributes) */
|
|
25
|
+
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";
|
|
26
|
+
export declare const excelMimeTypes: RegExp;
|
|
27
|
+
export declare const textMimeTypes: RegExp;
|
|
28
|
+
export declare const applicationMimeTypes: RegExp;
|
|
29
|
+
export declare const imageMimeTypes: RegExp;
|
|
30
|
+
export declare const audioMimeTypes: RegExp;
|
|
31
|
+
export declare const videoMimeTypes: RegExp;
|
|
32
|
+
export declare const defaultOCRMimeTypes: RegExp[];
|
|
33
|
+
/** MIME types handled by the built-in document parser (pdf, docx, excel variants, ods/odt) */
|
|
34
|
+
export declare const documentParserMimeTypes: RegExp[];
|
|
35
|
+
export declare const defaultTextMimeTypes: RegExp[];
|
|
36
|
+
export declare const defaultSTTMimeTypes: RegExp[];
|
|
37
|
+
export declare const supportedMimeTypes: RegExp[];
|
|
38
|
+
export declare const codeInterpreterMimeTypes: RegExp[];
|
|
39
|
+
export declare const codeTypeMapping: {
|
|
40
|
+
[key: string]: string;
|
|
41
|
+
};
|
|
42
|
+
/** Maps image extensions to MIME types for formats browsers may not recognize */
|
|
43
|
+
export declare const imageTypeMapping: {
|
|
44
|
+
[key: string]: string;
|
|
45
|
+
};
|
|
46
|
+
/** Normalizes non-standard MIME types that browsers may report to their canonical forms */
|
|
47
|
+
export declare const mimeTypeAliases: Readonly<Record<string, string>>;
|
|
48
|
+
/**
|
|
49
|
+
* Infers the MIME type from a file's extension when the browser doesn't recognize it,
|
|
50
|
+
* and normalizes known non-standard MIME type aliases to their canonical forms.
|
|
51
|
+
* @param fileName - The file name including its extension
|
|
52
|
+
* @param currentType - The MIME type reported by the browser (may be empty string)
|
|
53
|
+
* @returns The normalized or inferred MIME type; empty string if unresolvable
|
|
54
|
+
*/
|
|
55
|
+
export declare function inferMimeType(fileName: string, currentType: string): string;
|
|
56
|
+
export declare const retrievalMimeTypes: RegExp[];
|
|
57
|
+
export declare const megabyte: number;
|
|
58
|
+
/** Helper function to get megabytes value */
|
|
59
|
+
export declare const mbToBytes: (mb: number) => number;
|
|
60
|
+
export declare const fileConfig: {
|
|
61
|
+
endpoints: {
|
|
62
|
+
assistants: {
|
|
63
|
+
fileLimit: number;
|
|
64
|
+
fileSizeLimit: number;
|
|
65
|
+
totalSizeLimit: number;
|
|
66
|
+
supportedMimeTypes: RegExp[];
|
|
67
|
+
disabled: boolean;
|
|
68
|
+
};
|
|
69
|
+
azureAssistants: {
|
|
70
|
+
fileLimit: number;
|
|
71
|
+
fileSizeLimit: number;
|
|
72
|
+
totalSizeLimit: number;
|
|
73
|
+
supportedMimeTypes: RegExp[];
|
|
74
|
+
disabled: boolean;
|
|
75
|
+
};
|
|
76
|
+
agents: {
|
|
77
|
+
fileLimit: number;
|
|
78
|
+
fileSizeLimit: number;
|
|
79
|
+
totalSizeLimit: number;
|
|
80
|
+
supportedMimeTypes: RegExp[];
|
|
81
|
+
disabled: boolean;
|
|
82
|
+
};
|
|
83
|
+
anthropic: {
|
|
84
|
+
fileLimit: number;
|
|
85
|
+
fileSizeLimit: number;
|
|
86
|
+
totalSizeLimit: number;
|
|
87
|
+
supportedMimeTypes: RegExp[];
|
|
88
|
+
disabled: boolean;
|
|
89
|
+
};
|
|
90
|
+
default: {
|
|
91
|
+
fileLimit: number;
|
|
92
|
+
fileSizeLimit: number;
|
|
93
|
+
totalSizeLimit: number;
|
|
94
|
+
supportedMimeTypes: RegExp[];
|
|
95
|
+
disabled: boolean;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
serverFileSizeLimit: number;
|
|
99
|
+
avatarSizeLimit: number;
|
|
100
|
+
fileTokenLimit: number;
|
|
101
|
+
clientImageResize: {
|
|
102
|
+
enabled: boolean;
|
|
103
|
+
maxWidth: number;
|
|
104
|
+
maxHeight: number;
|
|
105
|
+
quality: number;
|
|
106
|
+
};
|
|
107
|
+
ocr: {
|
|
108
|
+
supportedMimeTypes: RegExp[];
|
|
109
|
+
};
|
|
110
|
+
text: {
|
|
111
|
+
supportedMimeTypes: RegExp[];
|
|
112
|
+
};
|
|
113
|
+
stt: {
|
|
114
|
+
supportedMimeTypes: RegExp[];
|
|
115
|
+
};
|
|
116
|
+
checkType: (fileType: string, supportedTypes?: RegExp[]) => boolean;
|
|
117
|
+
};
|
|
118
|
+
export declare const endpointFileConfigSchema: z.ZodObject<{
|
|
119
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
120
|
+
fileLimit: z.ZodOptional<z.ZodNumber>;
|
|
121
|
+
fileSizeLimit: z.ZodOptional<z.ZodNumber>;
|
|
122
|
+
totalSizeLimit: z.ZodOptional<z.ZodNumber>;
|
|
123
|
+
supportedMimeTypes: z.ZodOptional<z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodAny, "many">>, any[] | undefined, any[] | undefined>>;
|
|
124
|
+
}, "strip", z.ZodTypeAny, {
|
|
125
|
+
disabled?: boolean | undefined;
|
|
126
|
+
fileLimit?: number | undefined;
|
|
127
|
+
fileSizeLimit?: number | undefined;
|
|
128
|
+
totalSizeLimit?: number | undefined;
|
|
129
|
+
supportedMimeTypes?: any[] | undefined;
|
|
130
|
+
}, {
|
|
131
|
+
disabled?: boolean | undefined;
|
|
132
|
+
fileLimit?: number | undefined;
|
|
133
|
+
fileSizeLimit?: number | undefined;
|
|
134
|
+
totalSizeLimit?: number | undefined;
|
|
135
|
+
supportedMimeTypes?: any[] | undefined;
|
|
136
|
+
}>;
|
|
137
|
+
export declare const fileConfigSchema: z.ZodObject<{
|
|
138
|
+
endpoints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
139
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
140
|
+
fileLimit: z.ZodOptional<z.ZodNumber>;
|
|
141
|
+
fileSizeLimit: z.ZodOptional<z.ZodNumber>;
|
|
142
|
+
totalSizeLimit: z.ZodOptional<z.ZodNumber>;
|
|
143
|
+
supportedMimeTypes: z.ZodOptional<z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodAny, "many">>, any[] | undefined, any[] | undefined>>;
|
|
144
|
+
}, "strip", z.ZodTypeAny, {
|
|
145
|
+
disabled?: boolean | undefined;
|
|
146
|
+
fileLimit?: number | undefined;
|
|
147
|
+
fileSizeLimit?: number | undefined;
|
|
148
|
+
totalSizeLimit?: number | undefined;
|
|
149
|
+
supportedMimeTypes?: any[] | undefined;
|
|
150
|
+
}, {
|
|
151
|
+
disabled?: boolean | undefined;
|
|
152
|
+
fileLimit?: number | undefined;
|
|
153
|
+
fileSizeLimit?: number | undefined;
|
|
154
|
+
totalSizeLimit?: number | undefined;
|
|
155
|
+
supportedMimeTypes?: any[] | undefined;
|
|
156
|
+
}>>>;
|
|
157
|
+
serverFileSizeLimit: z.ZodOptional<z.ZodNumber>;
|
|
158
|
+
avatarSizeLimit: z.ZodOptional<z.ZodNumber>;
|
|
159
|
+
fileTokenLimit: z.ZodOptional<z.ZodNumber>;
|
|
160
|
+
imageGeneration: z.ZodOptional<z.ZodObject<{
|
|
161
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
162
|
+
px: z.ZodOptional<z.ZodNumber>;
|
|
163
|
+
}, "strip", z.ZodTypeAny, {
|
|
164
|
+
percentage?: number | undefined;
|
|
165
|
+
px?: number | undefined;
|
|
166
|
+
}, {
|
|
167
|
+
percentage?: number | undefined;
|
|
168
|
+
px?: number | undefined;
|
|
169
|
+
}>>;
|
|
170
|
+
clientImageResize: z.ZodOptional<z.ZodObject<{
|
|
171
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
172
|
+
maxWidth: z.ZodOptional<z.ZodNumber>;
|
|
173
|
+
maxHeight: z.ZodOptional<z.ZodNumber>;
|
|
174
|
+
quality: z.ZodOptional<z.ZodNumber>;
|
|
175
|
+
}, "strip", z.ZodTypeAny, {
|
|
176
|
+
enabled?: boolean | undefined;
|
|
177
|
+
maxWidth?: number | undefined;
|
|
178
|
+
maxHeight?: number | undefined;
|
|
179
|
+
quality?: number | undefined;
|
|
180
|
+
}, {
|
|
181
|
+
enabled?: boolean | undefined;
|
|
182
|
+
maxWidth?: number | undefined;
|
|
183
|
+
maxHeight?: number | undefined;
|
|
184
|
+
quality?: number | undefined;
|
|
185
|
+
}>>;
|
|
186
|
+
ocr: z.ZodOptional<z.ZodObject<{
|
|
187
|
+
supportedMimeTypes: z.ZodOptional<z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodAny, "many">>, any[] | undefined, any[] | undefined>>;
|
|
188
|
+
}, "strip", z.ZodTypeAny, {
|
|
189
|
+
supportedMimeTypes?: any[] | undefined;
|
|
190
|
+
}, {
|
|
191
|
+
supportedMimeTypes?: any[] | undefined;
|
|
192
|
+
}>>;
|
|
193
|
+
text: z.ZodOptional<z.ZodObject<{
|
|
194
|
+
supportedMimeTypes: z.ZodOptional<z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodAny, "many">>, any[] | undefined, any[] | undefined>>;
|
|
195
|
+
}, "strip", z.ZodTypeAny, {
|
|
196
|
+
supportedMimeTypes?: any[] | undefined;
|
|
197
|
+
}, {
|
|
198
|
+
supportedMimeTypes?: any[] | undefined;
|
|
199
|
+
}>>;
|
|
200
|
+
}, "strip", z.ZodTypeAny, {
|
|
201
|
+
endpoints?: Record<string, {
|
|
202
|
+
disabled?: boolean | undefined;
|
|
203
|
+
fileLimit?: number | undefined;
|
|
204
|
+
fileSizeLimit?: number | undefined;
|
|
205
|
+
totalSizeLimit?: number | undefined;
|
|
206
|
+
supportedMimeTypes?: any[] | undefined;
|
|
207
|
+
}> | undefined;
|
|
208
|
+
serverFileSizeLimit?: number | undefined;
|
|
209
|
+
avatarSizeLimit?: number | undefined;
|
|
210
|
+
fileTokenLimit?: number | undefined;
|
|
211
|
+
imageGeneration?: {
|
|
212
|
+
percentage?: number | undefined;
|
|
213
|
+
px?: number | undefined;
|
|
214
|
+
} | undefined;
|
|
215
|
+
clientImageResize?: {
|
|
216
|
+
enabled?: boolean | undefined;
|
|
217
|
+
maxWidth?: number | undefined;
|
|
218
|
+
maxHeight?: number | undefined;
|
|
219
|
+
quality?: number | undefined;
|
|
220
|
+
} | undefined;
|
|
221
|
+
ocr?: {
|
|
222
|
+
supportedMimeTypes?: any[] | undefined;
|
|
223
|
+
} | undefined;
|
|
224
|
+
text?: {
|
|
225
|
+
supportedMimeTypes?: any[] | undefined;
|
|
226
|
+
} | undefined;
|
|
227
|
+
}, {
|
|
228
|
+
endpoints?: Record<string, {
|
|
229
|
+
disabled?: boolean | undefined;
|
|
230
|
+
fileLimit?: number | undefined;
|
|
231
|
+
fileSizeLimit?: number | undefined;
|
|
232
|
+
totalSizeLimit?: number | undefined;
|
|
233
|
+
supportedMimeTypes?: any[] | undefined;
|
|
234
|
+
}> | undefined;
|
|
235
|
+
serverFileSizeLimit?: number | undefined;
|
|
236
|
+
avatarSizeLimit?: number | undefined;
|
|
237
|
+
fileTokenLimit?: number | undefined;
|
|
238
|
+
imageGeneration?: {
|
|
239
|
+
percentage?: number | undefined;
|
|
240
|
+
px?: number | undefined;
|
|
241
|
+
} | undefined;
|
|
242
|
+
clientImageResize?: {
|
|
243
|
+
enabled?: boolean | undefined;
|
|
244
|
+
maxWidth?: number | undefined;
|
|
245
|
+
maxHeight?: number | undefined;
|
|
246
|
+
quality?: number | undefined;
|
|
247
|
+
} | undefined;
|
|
248
|
+
ocr?: {
|
|
249
|
+
supportedMimeTypes?: any[] | undefined;
|
|
250
|
+
} | undefined;
|
|
251
|
+
text?: {
|
|
252
|
+
supportedMimeTypes?: any[] | undefined;
|
|
253
|
+
} | undefined;
|
|
254
|
+
}>;
|
|
255
|
+
export type TFileConfig = z.infer<typeof fileConfigSchema>;
|
|
256
|
+
/** Helper function to safely convert string patterns to RegExp objects */
|
|
257
|
+
export declare const convertStringsToRegex: (patterns: string[]) => RegExp[];
|
|
258
|
+
export declare function getEndpointFileConfig(params: {
|
|
259
|
+
fileConfig?: FileConfig | null;
|
|
260
|
+
endpoint?: string | null;
|
|
261
|
+
endpointType?: string | null;
|
|
262
|
+
}): EndpointFileConfig;
|
|
263
|
+
export declare function mergeFileConfig(dynamic: z.infer<typeof fileConfigSchema> | undefined): FileConfig;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|