librechat-data-provider 0.8.501 → 0.8.503
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 +6 -2
- package/dist/types/api-endpoints.d.ts +20 -1
- package/dist/types/balance.d.ts +3 -0
- package/dist/types/balance.spec.d.ts +1 -0
- package/dist/types/bedrock.d.ts +9 -1
- package/dist/types/cloudfront-config.spec.d.ts +1 -0
- package/dist/types/codeEnvRef.d.ts +62 -0
- package/dist/types/codeEnvRef.spec.d.ts +1 -0
- package/dist/types/config.d.ts +2278 -131
- package/dist/types/data-service.d.ts +69 -2
- package/dist/types/file-config.d.ts +16 -0
- package/dist/types/generate.d.ts +2 -0
- package/dist/types/headers-helpers.d.ts +1 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/keys.d.ts +16 -2
- package/dist/types/mcp.d.ts +1304 -58
- package/dist/types/models.d.ts +50 -8
- package/dist/types/parameterSettings.d.ts +6 -0
- package/dist/types/parameterSettings.spec.d.ts +1 -0
- package/dist/types/parsers.d.ts +2 -1
- package/dist/types/permissions.d.ts +50 -1
- package/dist/types/roles.d.ts +52 -0
- package/dist/types/schemas.d.ts +477 -14
- package/dist/types/types/assistants.d.ts +25 -3
- package/dist/types/types/files.d.ts +71 -0
- package/dist/types/types/mutations.d.ts +46 -0
- package/dist/types/types/queries.d.ts +2 -0
- package/dist/types/types/runs.d.ts +20 -1
- package/dist/types/types/skills.d.ts +275 -0
- package/dist/types/types/web.d.ts +14 -1
- package/dist/types/types.d.ts +65 -5
- package/package.json +2 -2
package/dist/types/types.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { InfiniteData } from '@tanstack/react-query';
|
|
2
2
|
import type { TConversationTag, EModelEndpoint, TConversation, TSharedLink, TAttachment, TMessage, TBanner } from './schemas';
|
|
3
|
+
import type { RefillIntervalUnit } from './balance';
|
|
3
4
|
import type { SettingDefinition } from './generate';
|
|
4
5
|
import type { TMinimalFeedback } from './feedback';
|
|
5
6
|
import type { ContentTypes } from './types/runs';
|
|
@@ -27,6 +28,7 @@ export type TEphemeralAgent = {
|
|
|
27
28
|
file_search?: boolean;
|
|
28
29
|
execute_code?: boolean;
|
|
29
30
|
artifacts?: string;
|
|
31
|
+
skills?: boolean;
|
|
30
32
|
};
|
|
31
33
|
export type TPayload = Partial<TMessage> & Partial<TEndpointOption> & {
|
|
32
34
|
isContinued: boolean;
|
|
@@ -38,6 +40,13 @@ export type TPayload = Partial<TMessage> & Partial<TEndpointOption> & {
|
|
|
38
40
|
editedContent?: TEditedContent | null;
|
|
39
41
|
/** Added conversation for multi-convo feature */
|
|
40
42
|
addedConvo?: TConversation;
|
|
43
|
+
/**
|
|
44
|
+
* Skills the user selected via the `$` popover for this turn. Names, not IDs
|
|
45
|
+
* — the backend resolves them against the user's ACL-accessible skill set,
|
|
46
|
+
* loads each SKILL.md body, and prepends one meta user message per skill
|
|
47
|
+
* before the LLM turn runs.
|
|
48
|
+
*/
|
|
49
|
+
manualSkills?: string[];
|
|
41
50
|
};
|
|
42
51
|
export type TEditedContent = {
|
|
43
52
|
index: number;
|
|
@@ -63,6 +72,8 @@ export type TSubmission = {
|
|
|
63
72
|
editedContent?: TEditedContent | null;
|
|
64
73
|
/** Added conversation for multi-convo feature */
|
|
65
74
|
addedConvo?: TConversation;
|
|
75
|
+
/** Skills the user invoked via the `$` popover for this submission. */
|
|
76
|
+
manualSkills?: string[];
|
|
66
77
|
};
|
|
67
78
|
export type EventSubmission = Omit<TSubmission, 'initialResponse'> & {
|
|
68
79
|
initialResponse: TMessage;
|
|
@@ -113,6 +124,7 @@ export type TUser = {
|
|
|
113
124
|
avatar: string;
|
|
114
125
|
role: string;
|
|
115
126
|
provider: string;
|
|
127
|
+
tenantId?: string;
|
|
116
128
|
plugins?: string[];
|
|
117
129
|
twoFactorEnabled?: boolean;
|
|
118
130
|
backupCodes?: TBackupCode[];
|
|
@@ -196,9 +208,10 @@ export type TSharedMessagesResponse = Omit<TSharedLink, 'messages'> & {
|
|
|
196
208
|
messages: TMessage[];
|
|
197
209
|
};
|
|
198
210
|
export type TCreateShareLinkRequest = Pick<TConversation, 'conversationId'>;
|
|
199
|
-
export type TUpdateShareLinkRequest = Pick<TSharedLink, 'shareId'>;
|
|
200
|
-
export type TSharedLinkResponse = Pick<TSharedLink, 'shareId'> & Pick<TConversation, 'conversationId'>;
|
|
201
|
-
export type TSharedLinkGetResponse = TSharedLinkResponse & {
|
|
211
|
+
export type TUpdateShareLinkRequest = Pick<TSharedLink, 'shareId' | 'targetMessageId'>;
|
|
212
|
+
export type TSharedLinkResponse = Pick<TSharedLink, 'shareId'> & Pick<TSharedLink, 'targetMessageId'> & Pick<TConversation, 'conversationId'>;
|
|
213
|
+
export type TSharedLinkGetResponse = Omit<TSharedLinkResponse, 'shareId'> & {
|
|
214
|
+
shareId: string | null;
|
|
202
215
|
success: boolean;
|
|
203
216
|
};
|
|
204
217
|
export type TConversationTagsResponse = TConversationTag[];
|
|
@@ -252,6 +265,10 @@ export type TConfig = {
|
|
|
252
265
|
modelDisplayLabel?: string;
|
|
253
266
|
userProvide?: boolean | null;
|
|
254
267
|
userProvideURL?: boolean | null;
|
|
268
|
+
userProvideAccessKeyId?: boolean;
|
|
269
|
+
userProvideSecretAccessKey?: boolean;
|
|
270
|
+
userProvideSessionToken?: boolean;
|
|
271
|
+
userProvideBearerToken?: boolean;
|
|
255
272
|
disableBuilder?: boolean;
|
|
256
273
|
retrievalModels?: string[];
|
|
257
274
|
capabilities?: string[];
|
|
@@ -499,7 +516,50 @@ export type TBalanceResponse = {
|
|
|
499
516
|
tokenCredits: number;
|
|
500
517
|
autoRefillEnabled: boolean;
|
|
501
518
|
refillIntervalValue?: number;
|
|
502
|
-
refillIntervalUnit?:
|
|
503
|
-
lastRefill?: Date;
|
|
519
|
+
refillIntervalUnit?: RefillIntervalUnit;
|
|
520
|
+
lastRefill?: Date | string;
|
|
504
521
|
refillAmount?: number;
|
|
505
522
|
};
|
|
523
|
+
/**
|
|
524
|
+
* @deprecated Superseded by the persisted `userInvocable` /
|
|
525
|
+
* `disableModelInvocation` pair derived from frontmatter. Retained for the
|
|
526
|
+
* transition window so older UI forms and tests still type-check; the
|
|
527
|
+
* backend no longer reads or writes it.
|
|
528
|
+
*/
|
|
529
|
+
export declare enum InvocationMode {
|
|
530
|
+
auto = "auto",
|
|
531
|
+
manual = "manual",
|
|
532
|
+
both = "both"
|
|
533
|
+
}
|
|
534
|
+
/**
|
|
535
|
+
* Node in the filesystem-style skill tree view. Phase 1 derives these from
|
|
536
|
+
* the flat `TSkillFile[]` list; phase 2 will have the backend serve them
|
|
537
|
+
* directly from a persisted folder hierarchy. Kept in the shared types so
|
|
538
|
+
* tree UI helpers can be imported from both client and server.
|
|
539
|
+
*/
|
|
540
|
+
export type TSkillNode = {
|
|
541
|
+
_id: string;
|
|
542
|
+
skillId: string;
|
|
543
|
+
parentId: string | null;
|
|
544
|
+
type: 'file' | 'folder';
|
|
545
|
+
name: string;
|
|
546
|
+
fileId?: string;
|
|
547
|
+
order: number;
|
|
548
|
+
author: string;
|
|
549
|
+
createdAt: string;
|
|
550
|
+
updatedAt: string;
|
|
551
|
+
};
|
|
552
|
+
export type TSkillTreeResponse = {
|
|
553
|
+
nodes: TSkillNode[];
|
|
554
|
+
};
|
|
555
|
+
export type TCreateSkillNodeRequest = {
|
|
556
|
+
type: 'file' | 'folder';
|
|
557
|
+
name: string;
|
|
558
|
+
parentId?: string | null;
|
|
559
|
+
order?: number;
|
|
560
|
+
};
|
|
561
|
+
export type TUpdateSkillNodeRequest = {
|
|
562
|
+
name?: string;
|
|
563
|
+
parentId?: string | null;
|
|
564
|
+
order?: number;
|
|
565
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "librechat-data-provider",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.503",
|
|
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.16.0",
|
|
47
47
|
"dayjs": "^1.11.13",
|
|
48
48
|
"js-yaml": "^4.1.1",
|
|
49
49
|
"zod": "^3.22.4"
|