librechat-data-provider 0.8.407 → 0.8.500
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/config.d.ts +3 -2
- package/dist/types/data-service.d.ts +2 -7
- package/dist/types/file-config.d.ts +2 -0
- package/dist/types/types/queries.d.ts +11 -0
- package/dist/types/types.d.ts +1 -0
- package/package.json +2 -2
package/dist/types/config.d.ts
CHANGED
|
@@ -1900,6 +1900,7 @@ export type TStartupConfig = {
|
|
|
1900
1900
|
sharePointPickerGraphScope?: string;
|
|
1901
1901
|
sharePointPickerSharePointScope?: string;
|
|
1902
1902
|
openidReuseTokens?: boolean;
|
|
1903
|
+
allowAccountDeletion: boolean;
|
|
1903
1904
|
minPasswordLength?: number;
|
|
1904
1905
|
webSearch?: {
|
|
1905
1906
|
searchProvider?: SearchProviders;
|
|
@@ -14694,9 +14695,9 @@ export declare enum TTSProviders {
|
|
|
14694
14695
|
/** Enum for app-wide constants */
|
|
14695
14696
|
export declare enum Constants {
|
|
14696
14697
|
/** Key for the app's version. */
|
|
14697
|
-
VERSION = "v0.8.
|
|
14698
|
+
VERSION = "v0.8.5-rc1",
|
|
14698
14699
|
/** Key for the Custom Config's version (librechat.yaml). */
|
|
14699
|
-
CONFIG_VERSION = "1.3.
|
|
14700
|
+
CONFIG_VERSION = "1.3.8",
|
|
14700
14701
|
/** Standard value for the first message's `parentMessageId` value, to indicate no parent exists. */
|
|
14701
14702
|
NO_PARENT = "00000000-0000-0000-0000-000000000000",
|
|
14702
14703
|
/** Standard value to use whatever the submission prelim. `responseMessageId` is */
|
|
@@ -13,13 +13,8 @@ import * as permissions from './accessPermissions';
|
|
|
13
13
|
export declare function revokeUserKey(name: string): Promise<unknown>;
|
|
14
14
|
export declare function revokeAllUserKeys(): Promise<unknown>;
|
|
15
15
|
export declare function deleteUser(payload?: t.TDeleteUserRequest): Promise<unknown>;
|
|
16
|
-
export
|
|
17
|
-
|
|
18
|
-
model?: string;
|
|
19
|
-
endpoint?: string;
|
|
20
|
-
};
|
|
21
|
-
export declare function getFavorites(): Promise<FavoriteItem[]>;
|
|
22
|
-
export declare function updateFavorites(favorites: FavoriteItem[]): Promise<FavoriteItem[]>;
|
|
16
|
+
export declare function getFavorites(): Promise<q.TUserFavorite[]>;
|
|
17
|
+
export declare function updateFavorites(favorites: q.TUserFavorite[]): Promise<q.TUserFavorite[]>;
|
|
23
18
|
export declare function getSharedMessages(shareId: string): Promise<t.TSharedMessagesResponse>;
|
|
24
19
|
export declare const listSharedLinks: (params: q.SharedLinksListParams) => Promise<q.SharedLinksResponse>;
|
|
25
20
|
export declare function getSharedLink(conversationId: string): Promise<t.TSharedLinkGetResponse>;
|
|
@@ -255,6 +255,8 @@ export declare const fileConfigSchema: z.ZodObject<{
|
|
|
255
255
|
export type TFileConfig = z.infer<typeof fileConfigSchema>;
|
|
256
256
|
/** Helper function to safely convert string patterns to RegExp objects */
|
|
257
257
|
export declare const convertStringsToRegex: (patterns: string[]) => RegExp[];
|
|
258
|
+
/** Detects whether the given MIME type patterns accept all file types (e.g., `.*` or `.+`). */
|
|
259
|
+
export declare const isPermissiveMimeConfig: (types?: RegExp[]) => boolean;
|
|
258
260
|
export declare function getEndpointFileConfig(params: {
|
|
259
261
|
fileConfig?: FileConfig | null;
|
|
260
262
|
endpoint?: string | null;
|
|
@@ -168,6 +168,17 @@ export interface MCPAuthValuesResponse {
|
|
|
168
168
|
serverName: string;
|
|
169
169
|
authValueFlags: Record<string, boolean>;
|
|
170
170
|
}
|
|
171
|
+
/**
|
|
172
|
+
* User Favorites — pinned agents, models, and model specs.
|
|
173
|
+
* Exactly one variant should be set per entry; exclusivity is enforced
|
|
174
|
+
* server-side in FavoritesController. Shape is loose for state-update ergonomics.
|
|
175
|
+
*/
|
|
176
|
+
export type TUserFavorite = {
|
|
177
|
+
agentId?: string;
|
|
178
|
+
model?: string;
|
|
179
|
+
endpoint?: string;
|
|
180
|
+
spec?: string;
|
|
181
|
+
};
|
|
171
182
|
export type GraphTokenParams = {
|
|
172
183
|
scopes: string;
|
|
173
184
|
};
|
package/dist/types/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "librechat-data-provider",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.500",
|
|
4
4
|
"description": "data services for librechat apps",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.es.js",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
},
|
|
44
44
|
"homepage": "https://librechat.ai",
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"axios": "1.
|
|
46
|
+
"axios": "^1.15.0",
|
|
47
47
|
"dayjs": "^1.11.13",
|
|
48
48
|
"js-yaml": "^4.1.1",
|
|
49
49
|
"zod": "^3.22.4"
|