librechat-data-provider 0.8.522 → 0.8.524

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 (57) hide show
  1. package/dist/{data-service-CaB7saTP.mjs → data-service-B-WUVvTH.mjs} +1044 -173
  2. package/dist/data-service-B-WUVvTH.mjs.map +1 -0
  3. package/dist/{data-service-D5kHzBt-.js → data-service-CUG1qdeC.js} +1426 -207
  4. package/dist/data-service-CUG1qdeC.js.map +1 -0
  5. package/dist/index.js +886 -74
  6. package/dist/index.js.map +1 -1
  7. package/dist/index.mjs +780 -70
  8. package/dist/index.mjs.map +1 -1
  9. package/dist/react-query/index.js +1 -1
  10. package/dist/react-query/index.mjs +1 -1
  11. package/dist/types/accessPermissions.d.ts +54 -1
  12. package/dist/types/actions.d.ts +1 -1
  13. package/dist/types/agentToolOptions.d.ts +1 -1
  14. package/dist/types/api-endpoints.d.ts +7 -0
  15. package/dist/types/backgroundResults.d.ts +13 -0
  16. package/dist/types/balance.d.ts +4 -0
  17. package/dist/types/bedrock.d.ts +132 -65
  18. package/dist/types/code/approval.d.ts +26 -0
  19. package/dist/types/code/worker.d.ts +10 -0
  20. package/dist/types/code/workspace.d.ts +50 -0
  21. package/dist/types/codeEnvRef.d.ts +5 -0
  22. package/dist/types/config.d.ts +5859 -2469
  23. package/dist/types/data-service.d.ts +22 -12
  24. package/dist/types/errors.d.ts +2 -0
  25. package/dist/types/file-config.d.ts +179 -12
  26. package/dist/types/filters.d.ts +97 -97
  27. package/dist/types/footer.d.ts +20 -0
  28. package/dist/types/generate.d.ts +48 -24
  29. package/dist/types/index.d.ts +11 -0
  30. package/dist/types/keys.d.ts +13 -2
  31. package/dist/types/limits.d.ts +8 -0
  32. package/dist/types/mcp.d.ts +683 -30
  33. package/dist/types/messages.d.ts +25 -1
  34. package/dist/types/models.d.ts +312 -183
  35. package/dist/types/parameterSettings.d.ts +10 -1
  36. package/dist/types/parsers.d.ts +25 -1
  37. package/dist/types/providers.d.ts +1 -0
  38. package/dist/types/resolve-llm-delivery-path.d.ts +161 -0
  39. package/dist/types/schemas.d.ts +771 -457
  40. package/dist/types/svg.d.ts +34 -0
  41. package/dist/types/types/agents.d.ts +257 -2
  42. package/dist/types/types/assistants.d.ts +2 -617
  43. package/dist/types/types/content.d.ts +286 -0
  44. package/dist/types/types/files.d.ts +48 -1
  45. package/dist/types/types/insights.d.ts +9 -0
  46. package/dist/types/types/mutations.d.ts +3 -2
  47. package/dist/types/types/queries.d.ts +8 -1
  48. package/dist/types/types/queuedTurns.d.ts +140 -106
  49. package/dist/types/types/runs.d.ts +33 -5
  50. package/dist/types/types/schedules.d.ts +40 -7
  51. package/dist/types/types/skills.d.ts +43 -0
  52. package/dist/types/types/tools.d.ts +132 -0
  53. package/dist/types/types/traces.d.ts +134 -0
  54. package/dist/types/types.d.ts +72 -2
  55. package/package.json +2 -2
  56. package/dist/data-service-CaB7saTP.mjs.map +0 -1
  57. package/dist/data-service-D5kHzBt-.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_data_service = require("../data-service-D5kHzBt-.js");
2
+ const require_data_service = require("../data-service-CUG1qdeC.js");
3
3
  let _tanstack_react_query = require("@tanstack/react-query");
4
4
  //#region src/react-query/react-query-service.ts
5
5
  const useGetSharedMessages = (shareId, config) => {
@@ -1,4 +1,4 @@
1
- import { A as updateResourcePermissions, C as resetPassword, D as updateFeedback, E as searchPrincipals, Ho as defaultOrderQuery, M as updateUserKey, N as updateUserPlugins, O as updateMessage, P as userKeyQuery, S as requestPasswordReset, T as revokeUserKey, Z as hasPermissions, _ as getResourcePermissions, ao as isAssistantsEndpoint, b as register, c as getAccessRoles, d as getAvailablePlugins, f as getConversationById, g as getModels, h as getMCPServerConnectionStatus, i as createPreset, j as updateTokenCount, jn as initialModelsConfig, k as updateMessageContent, l as getAgentApiKeys, m as getEffectivePermissions, n as clearAllConversations, o as deleteAgentApiKey, p as getCustomConfigSpeech, r as createAgentApiKey, s as deletePreset, t as cancelMCPOAuth, u as getAllEffectivePermissions, v as getSharedLink, w as revokeAllUserKeys, x as reinitializeMCPServer, y as getSharedMessages } from "../data-service-CaB7saTP.mjs";
1
+ import { $o as isAssistantsEndpoint, A as updateResourcePermissions, C as resetPassword, D as updateFeedback, E as searchPrincipals, M as updateUserKey, N as updateUserPlugins, O as updateMessage, P as userKeyQuery, S as requestPasswordReset, T as revokeUserKey, Yn as initialModelsConfig, Z as hasPermissions, _ as getResourcePermissions, b as register, c as getAccessRoles, d as getAvailablePlugins, f as getConversationById, g as getModels, h as getMCPServerConnectionStatus, i as createPreset, j as updateTokenCount, k as updateMessageContent, l as getAgentApiKeys, m as getEffectivePermissions, n as clearAllConversations, o as deleteAgentApiKey, p as getCustomConfigSpeech, r as createAgentApiKey, s as deletePreset, st as defaultOrderQuery, t as cancelMCPOAuth, u as getAllEffectivePermissions, v as getSharedLink, w as revokeAllUserKeys, x as reinitializeMCPServer, y as getSharedMessages } from "../data-service-B-WUVvTH.mjs";
2
2
  import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
3
3
  //#region src/react-query/react-query-service.ts
4
4
  const useGetSharedMessages = (shareId, config) => {
@@ -54,7 +54,9 @@ export declare enum PermissionBits {
54
54
  /** 100 - Can delete agent */
55
55
  DELETE = 4,
56
56
  /** 1000 - Can share agent with others (future) */
57
- SHARE = 8
57
+ SHARE = 8,
58
+ /** 10000 - Can view Insights data for an agent when VIEW is also present */
59
+ VIEW_INSIGHTS = 16
58
60
  }
59
61
  /**
60
62
  * Standard access role IDs
@@ -94,6 +96,8 @@ export declare const principalSchema: z.ZodObject<{
94
96
  description: z.ZodOptional<z.ZodString>;
95
97
  idOnTheSource: z.ZodOptional<z.ZodString>;
96
98
  accessRoleId: z.ZodOptional<z.ZodNativeEnum<typeof AccessRoleIds>>;
99
+ viewInsights: z.ZodOptional<z.ZodBoolean>;
100
+ isAdmin: z.ZodOptional<z.ZodBoolean>;
97
101
  memberCount: z.ZodOptional<z.ZodNumber>;
98
102
  }, "strip", z.ZodTypeAny, {
99
103
  type: PrincipalType;
@@ -105,6 +109,8 @@ export declare const principalSchema: z.ZodObject<{
105
109
  description?: string | undefined;
106
110
  idOnTheSource?: string | undefined;
107
111
  accessRoleId?: AccessRoleIds | undefined;
112
+ viewInsights?: boolean | undefined;
113
+ isAdmin?: boolean | undefined;
108
114
  memberCount?: number | undefined;
109
115
  }, {
110
116
  type: PrincipalType;
@@ -116,6 +122,8 @@ export declare const principalSchema: z.ZodObject<{
116
122
  description?: string | undefined;
117
123
  idOnTheSource?: string | undefined;
118
124
  accessRoleId?: AccessRoleIds | undefined;
125
+ viewInsights?: boolean | undefined;
126
+ isAdmin?: boolean | undefined;
119
127
  memberCount?: number | undefined;
120
128
  }>;
121
129
  /**
@@ -327,6 +335,8 @@ export declare const updateResourcePermissionsRequestSchema: z.ZodObject<{
327
335
  description: z.ZodOptional<z.ZodString>;
328
336
  idOnTheSource: z.ZodOptional<z.ZodString>;
329
337
  accessRoleId: z.ZodOptional<z.ZodNativeEnum<typeof AccessRoleIds>>;
338
+ viewInsights: z.ZodOptional<z.ZodBoolean>;
339
+ isAdmin: z.ZodOptional<z.ZodBoolean>;
330
340
  memberCount: z.ZodOptional<z.ZodNumber>;
331
341
  }, "strip", z.ZodTypeAny, {
332
342
  type: PrincipalType;
@@ -338,6 +348,8 @@ export declare const updateResourcePermissionsRequestSchema: z.ZodObject<{
338
348
  description?: string | undefined;
339
349
  idOnTheSource?: string | undefined;
340
350
  accessRoleId?: AccessRoleIds | undefined;
351
+ viewInsights?: boolean | undefined;
352
+ isAdmin?: boolean | undefined;
341
353
  memberCount?: number | undefined;
342
354
  }, {
343
355
  type: PrincipalType;
@@ -349,6 +361,8 @@ export declare const updateResourcePermissionsRequestSchema: z.ZodObject<{
349
361
  description?: string | undefined;
350
362
  idOnTheSource?: string | undefined;
351
363
  accessRoleId?: AccessRoleIds | undefined;
364
+ viewInsights?: boolean | undefined;
365
+ isAdmin?: boolean | undefined;
352
366
  memberCount?: number | undefined;
353
367
  }>, "many">;
354
368
  removed: z.ZodArray<z.ZodObject<{
@@ -361,6 +375,8 @@ export declare const updateResourcePermissionsRequestSchema: z.ZodObject<{
361
375
  description: z.ZodOptional<z.ZodString>;
362
376
  idOnTheSource: z.ZodOptional<z.ZodString>;
363
377
  accessRoleId: z.ZodOptional<z.ZodNativeEnum<typeof AccessRoleIds>>;
378
+ viewInsights: z.ZodOptional<z.ZodBoolean>;
379
+ isAdmin: z.ZodOptional<z.ZodBoolean>;
364
380
  memberCount: z.ZodOptional<z.ZodNumber>;
365
381
  }, "strip", z.ZodTypeAny, {
366
382
  type: PrincipalType;
@@ -372,6 +388,8 @@ export declare const updateResourcePermissionsRequestSchema: z.ZodObject<{
372
388
  description?: string | undefined;
373
389
  idOnTheSource?: string | undefined;
374
390
  accessRoleId?: AccessRoleIds | undefined;
391
+ viewInsights?: boolean | undefined;
392
+ isAdmin?: boolean | undefined;
375
393
  memberCount?: number | undefined;
376
394
  }, {
377
395
  type: PrincipalType;
@@ -383,6 +401,8 @@ export declare const updateResourcePermissionsRequestSchema: z.ZodObject<{
383
401
  description?: string | undefined;
384
402
  idOnTheSource?: string | undefined;
385
403
  accessRoleId?: AccessRoleIds | undefined;
404
+ viewInsights?: boolean | undefined;
405
+ isAdmin?: boolean | undefined;
386
406
  memberCount?: number | undefined;
387
407
  }>, "many">;
388
408
  public: z.ZodOptional<z.ZodBoolean>;
@@ -398,6 +418,8 @@ export declare const updateResourcePermissionsRequestSchema: z.ZodObject<{
398
418
  description?: string | undefined;
399
419
  idOnTheSource?: string | undefined;
400
420
  accessRoleId?: AccessRoleIds | undefined;
421
+ viewInsights?: boolean | undefined;
422
+ isAdmin?: boolean | undefined;
401
423
  memberCount?: number | undefined;
402
424
  }[];
403
425
  removed: {
@@ -410,6 +432,8 @@ export declare const updateResourcePermissionsRequestSchema: z.ZodObject<{
410
432
  description?: string | undefined;
411
433
  idOnTheSource?: string | undefined;
412
434
  accessRoleId?: AccessRoleIds | undefined;
435
+ viewInsights?: boolean | undefined;
436
+ isAdmin?: boolean | undefined;
413
437
  memberCount?: number | undefined;
414
438
  }[];
415
439
  public?: boolean | undefined;
@@ -425,6 +449,8 @@ export declare const updateResourcePermissionsRequestSchema: z.ZodObject<{
425
449
  description?: string | undefined;
426
450
  idOnTheSource?: string | undefined;
427
451
  accessRoleId?: AccessRoleIds | undefined;
452
+ viewInsights?: boolean | undefined;
453
+ isAdmin?: boolean | undefined;
428
454
  memberCount?: number | undefined;
429
455
  }[];
430
456
  removed: {
@@ -437,6 +463,8 @@ export declare const updateResourcePermissionsRequestSchema: z.ZodObject<{
437
463
  description?: string | undefined;
438
464
  idOnTheSource?: string | undefined;
439
465
  accessRoleId?: AccessRoleIds | undefined;
466
+ viewInsights?: boolean | undefined;
467
+ isAdmin?: boolean | undefined;
440
468
  memberCount?: number | undefined;
441
469
  }[];
442
470
  public?: boolean | undefined;
@@ -459,6 +487,8 @@ export declare const updateResourcePermissionsResponseSchema: z.ZodObject<{
459
487
  description: z.ZodOptional<z.ZodString>;
460
488
  idOnTheSource: z.ZodOptional<z.ZodString>;
461
489
  accessRoleId: z.ZodOptional<z.ZodNativeEnum<typeof AccessRoleIds>>;
490
+ viewInsights: z.ZodOptional<z.ZodBoolean>;
491
+ isAdmin: z.ZodOptional<z.ZodBoolean>;
462
492
  memberCount: z.ZodOptional<z.ZodNumber>;
463
493
  }, "strip", z.ZodTypeAny, {
464
494
  type: PrincipalType;
@@ -470,6 +500,8 @@ export declare const updateResourcePermissionsResponseSchema: z.ZodObject<{
470
500
  description?: string | undefined;
471
501
  idOnTheSource?: string | undefined;
472
502
  accessRoleId?: AccessRoleIds | undefined;
503
+ viewInsights?: boolean | undefined;
504
+ isAdmin?: boolean | undefined;
473
505
  memberCount?: number | undefined;
474
506
  }, {
475
507
  type: PrincipalType;
@@ -481,6 +513,8 @@ export declare const updateResourcePermissionsResponseSchema: z.ZodObject<{
481
513
  description?: string | undefined;
482
514
  idOnTheSource?: string | undefined;
483
515
  accessRoleId?: AccessRoleIds | undefined;
516
+ viewInsights?: boolean | undefined;
517
+ isAdmin?: boolean | undefined;
484
518
  memberCount?: number | undefined;
485
519
  }>, "many">;
486
520
  public: z.ZodOptional<z.ZodBoolean>;
@@ -496,6 +530,8 @@ export declare const updateResourcePermissionsResponseSchema: z.ZodObject<{
496
530
  description?: string | undefined;
497
531
  idOnTheSource?: string | undefined;
498
532
  accessRoleId?: AccessRoleIds | undefined;
533
+ viewInsights?: boolean | undefined;
534
+ isAdmin?: boolean | undefined;
499
535
  memberCount?: number | undefined;
500
536
  }[];
501
537
  public?: boolean | undefined;
@@ -511,6 +547,8 @@ export declare const updateResourcePermissionsResponseSchema: z.ZodObject<{
511
547
  description?: string | undefined;
512
548
  idOnTheSource?: string | undefined;
513
549
  accessRoleId?: AccessRoleIds | undefined;
550
+ viewInsights?: boolean | undefined;
551
+ isAdmin?: boolean | undefined;
514
552
  memberCount?: number | undefined;
515
553
  }[];
516
554
  public?: boolean | undefined;
@@ -529,6 +567,8 @@ export declare const updateResourcePermissionsResponseSchema: z.ZodObject<{
529
567
  description?: string | undefined;
530
568
  idOnTheSource?: string | undefined;
531
569
  accessRoleId?: AccessRoleIds | undefined;
570
+ viewInsights?: boolean | undefined;
571
+ isAdmin?: boolean | undefined;
532
572
  memberCount?: number | undefined;
533
573
  }[];
534
574
  public?: boolean | undefined;
@@ -547,6 +587,8 @@ export declare const updateResourcePermissionsResponseSchema: z.ZodObject<{
547
587
  description?: string | undefined;
548
588
  idOnTheSource?: string | undefined;
549
589
  accessRoleId?: AccessRoleIds | undefined;
590
+ viewInsights?: boolean | undefined;
591
+ isAdmin?: boolean | undefined;
550
592
  memberCount?: number | undefined;
551
593
  }[];
552
594
  public?: boolean | undefined;
@@ -602,6 +644,7 @@ export type TPrincipalSearchResult = {
602
644
  memberCount?: number;
603
645
  description?: string;
604
646
  idOnTheSource?: string;
647
+ isAdmin?: boolean;
605
648
  };
606
649
  /**
607
650
  * Principal search response
@@ -641,6 +684,8 @@ export declare const getResourcePermissionsResponseSchema: z.ZodObject<{
641
684
  description: z.ZodOptional<z.ZodString>;
642
685
  idOnTheSource: z.ZodOptional<z.ZodString>;
643
686
  accessRoleId: z.ZodOptional<z.ZodNativeEnum<typeof AccessRoleIds>>;
687
+ viewInsights: z.ZodOptional<z.ZodBoolean>;
688
+ isAdmin: z.ZodOptional<z.ZodBoolean>;
644
689
  memberCount: z.ZodOptional<z.ZodNumber>;
645
690
  }, "strip", z.ZodTypeAny, {
646
691
  type: PrincipalType;
@@ -652,6 +697,8 @@ export declare const getResourcePermissionsResponseSchema: z.ZodObject<{
652
697
  description?: string | undefined;
653
698
  idOnTheSource?: string | undefined;
654
699
  accessRoleId?: AccessRoleIds | undefined;
700
+ viewInsights?: boolean | undefined;
701
+ isAdmin?: boolean | undefined;
655
702
  memberCount?: number | undefined;
656
703
  }, {
657
704
  type: PrincipalType;
@@ -663,6 +710,8 @@ export declare const getResourcePermissionsResponseSchema: z.ZodObject<{
663
710
  description?: string | undefined;
664
711
  idOnTheSource?: string | undefined;
665
712
  accessRoleId?: AccessRoleIds | undefined;
713
+ viewInsights?: boolean | undefined;
714
+ isAdmin?: boolean | undefined;
666
715
  memberCount?: number | undefined;
667
716
  }>, "many">;
668
717
  public: z.ZodBoolean;
@@ -681,6 +730,8 @@ export declare const getResourcePermissionsResponseSchema: z.ZodObject<{
681
730
  description?: string | undefined;
682
731
  idOnTheSource?: string | undefined;
683
732
  accessRoleId?: AccessRoleIds | undefined;
733
+ viewInsights?: boolean | undefined;
734
+ isAdmin?: boolean | undefined;
684
735
  memberCount?: number | undefined;
685
736
  }[];
686
737
  publicAccessRoleId?: AccessRoleIds | undefined;
@@ -698,6 +749,8 @@ export declare const getResourcePermissionsResponseSchema: z.ZodObject<{
698
749
  description?: string | undefined;
699
750
  idOnTheSource?: string | undefined;
700
751
  accessRoleId?: AccessRoleIds | undefined;
752
+ viewInsights?: boolean | undefined;
753
+ isAdmin?: boolean | undefined;
701
754
  memberCount?: number | undefined;
702
755
  }[];
703
756
  publicAccessRoleId?: AccessRoleIds | undefined;
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  import type { OpenAPIV3 } from 'openapi-types';
3
3
  import type { ActionMetadata, ActionMetadataRuntime } from './types/agents';
4
- import type { FunctionTool, Schema, Reference } from './types/assistants';
4
+ import type { FunctionTool, Schema, Reference } from './types/tools';
5
5
  import { AuthorizationTypeEnum } from './types/agents';
6
6
  export type ParametersSchema = {
7
7
  type: string;
@@ -1,4 +1,4 @@
1
- import { type AgentToolOptions } from './types/assistants';
1
+ import { type AgentToolOptions } from './types/tools';
2
2
  /**
3
3
  * Collapses the encoded-domain suffix of an action tool name to the shape used
4
4
  * by runtime tool definitions. The operation id is deliberately preserved.
@@ -13,6 +13,8 @@ export declare const codeEnvironments: () => string;
13
13
  export declare const codeEnvironmentPairings: () => string;
14
14
  export declare const codeEnvironmentById: (id: string) => string;
15
15
  export declare const codeEnvironmentSettings: (id: string) => string;
16
+ export declare const codeEnvironmentStatus: (id: string) => string;
17
+ export declare const codeEnvironmentConversationDecision: (conversationId: string) => string;
16
18
  export declare const messages: (params: q.MessagesListParams) => string;
17
19
  export declare const messagesArtifacts: (messageId: string) => string;
18
20
  export declare const messagesBranch: () => string;
@@ -156,6 +158,10 @@ export declare const skillFiles: (id: string) => string;
156
158
  export declare const skillFile: (id: string, relativePath: string) => string;
157
159
  export declare const insights: () => string;
158
160
  export declare const insightsAccess: () => string;
161
+ export declare const conversationTrace: (conversationId: string) => string;
162
+ export declare const conversationTraceAvailability: (conversationId: string) => string;
163
+ export declare const conversationTraceRecords: (conversationId: string, cursor?: string) => string;
164
+ export declare const conversationTraceRecord: (conversationId: string, recordId: string, messageId: string, sourceId?: string) => string;
159
165
  export declare const adminSkillsSync: () => string;
160
166
  export declare const adminSkillsSyncStatus: () => string;
161
167
  export declare const adminSkillsSyncRun: () => string;
@@ -173,6 +179,7 @@ export declare const skillStates: () => string;
173
179
  export declare const adminLangfuseConnection: () => string;
174
180
  export declare const adminLangfuseConnectionTest: () => string;
175
181
  export declare const adminLangfuseSessionLink: (conversationId: string) => string;
182
+ export declare const pinnedOrder: () => string;
176
183
  export declare const toolFavorites: () => string;
177
184
  export declare const toolFavorite: (itemType: string, itemId: string) => string;
178
185
  export declare const roles: () => string;
@@ -0,0 +1,13 @@
1
+ /** Shared serialized metadata shape for admission budgeting and continuation rendering. */
2
+ export declare function backgroundResultMetadata(result: {
3
+ taskId: string;
4
+ toolCallId: string;
5
+ toolName: string;
6
+ status: 'completed' | 'error' | 'cancelled';
7
+ }): {
8
+ background_task_id: string;
9
+ tool_call_id: string;
10
+ tool: string;
11
+ status: "error" | "completed" | "cancelled";
12
+ result: string;
13
+ };
@@ -1,3 +1,7 @@
1
1
  export declare const REFILL_INTERVAL_UNITS: readonly ["seconds", "minutes", "hours", "days", "weeks", "months"];
2
2
  export type RefillIntervalUnit = (typeof REFILL_INTERVAL_UNITS)[number];
3
+ /** How long an unreleased in-flight balance reservation keeps counting against the balance. */
4
+ export declare const DEFAULT_BALANCE_RESERVATION_TTL_MS: number;
5
+ /** Shortest reservation TTL; a live reservation is renewed every half TTL. */
6
+ export declare const MIN_BALANCE_RESERVATION_TTL_MS: number;
3
7
  export declare function getRefillEligibilityDate(lastRefill: Date, value: number, unit: RefillIntervalUnit): Date;