librechat-data-provider 0.8.522 → 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.
Files changed (46) hide show
  1. package/dist/{data-service-CaB7saTP.mjs → data-service-Bx6IFaSa.mjs} +638 -27
  2. package/dist/data-service-Bx6IFaSa.mjs.map +1 -0
  3. package/dist/{data-service-D5kHzBt-.js → data-service-CTX0tVO5.js} +871 -26
  4. package/dist/data-service-CTX0tVO5.js.map +1 -0
  5. package/dist/index.js +557 -19
  6. package/dist/index.js.map +1 -1
  7. package/dist/index.mjs +491 -20
  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/api-endpoints.d.ts +6 -0
  13. package/dist/types/bedrock.d.ts +80 -20
  14. package/dist/types/code/approval.d.ts +26 -0
  15. package/dist/types/code/worker.d.ts +10 -0
  16. package/dist/types/code/workspace.d.ts +28 -0
  17. package/dist/types/codeEnvRef.d.ts +5 -0
  18. package/dist/types/config.d.ts +6062 -3828
  19. package/dist/types/data-service.d.ts +8 -0
  20. package/dist/types/errors.d.ts +2 -0
  21. package/dist/types/file-config.d.ts +137 -9
  22. package/dist/types/filters.d.ts +176 -176
  23. package/dist/types/generate.d.ts +28 -4
  24. package/dist/types/index.d.ts +7 -0
  25. package/dist/types/keys.d.ts +11 -1
  26. package/dist/types/mcp.d.ts +336 -330
  27. package/dist/types/messages.d.ts +19 -0
  28. package/dist/types/models.d.ts +367 -238
  29. package/dist/types/parameterSettings.d.ts +8 -0
  30. package/dist/types/providers.d.ts +1 -0
  31. package/dist/types/resolve-llm-delivery-path.d.ts +68 -0
  32. package/dist/types/schemas.d.ts +628 -317
  33. package/dist/types/svg.d.ts +34 -0
  34. package/dist/types/types/agents.d.ts +24 -0
  35. package/dist/types/types/assistants.d.ts +27 -3
  36. package/dist/types/types/files.d.ts +34 -0
  37. package/dist/types/types/insights.d.ts +9 -0
  38. package/dist/types/types/queries.d.ts +8 -1
  39. package/dist/types/types/queuedTurns.d.ts +16 -16
  40. package/dist/types/types/runs.d.ts +24 -5
  41. package/dist/types/types/schedules.d.ts +44 -11
  42. package/dist/types/types/traces.d.ts +85 -0
  43. package/dist/types/types.d.ts +41 -1
  44. package/package.json +2 -2
  45. package/dist/data-service-CaB7saTP.mjs.map +0 -1
  46. package/dist/data-service-D5kHzBt-.js.map +0 -1
@@ -65,6 +65,14 @@ export declare const librechat: {
65
65
  };
66
66
  };
67
67
  export declare const paramSettings: Record<string, SettingsConfiguration | undefined>;
68
+ /**
69
+ * Normalizes an admin-configured `dropParams` list into the UI/conversation keys used to hide
70
+ * the matching controls in the settings panels. `endpointKey` should be the same key used to
71
+ * resolve the panel's parameter settings (e.g. `overriddenEndpointKey`); the backend-name alias
72
+ * is only applied for OpenAI-compatible endpoints, since native providers (anthropic, google,
73
+ * bedrock, ...) already use these backend names as their UI key.
74
+ */
75
+ export declare function resolveDropParamsUIKeys(dropParams: string[] | undefined, endpointKey: string): Set<string>;
68
76
  export declare const presetSettings: Record<string, {
69
77
  col1: SettingsConfiguration;
70
78
  col2: SettingsConfiguration;
@@ -17,6 +17,7 @@ export declare enum ProviderId {
17
17
  groq = "groq",
18
18
  helicone = "helicone",
19
19
  huggingface = "huggingface",
20
+ lemonade = "lemonade",
20
21
  mistral = "mistral",
21
22
  mlx = "mlx",
22
23
  ollama = "ollama",
@@ -0,0 +1,68 @@
1
+ import type { TDefaultLLMDeliveryPath, TDefaultLLMDeliveryPathConfig } from './file-config';
2
+ import type { EndpointFileConfig, FileConfig } from './types/files';
3
+ export declare const SYSTEM_LLM_DELIVERY_DEFAULTS: Required<TDefaultLLMDeliveryPathConfig>;
4
+ export declare function isNativelyReadableText(mimeType: string): boolean;
5
+ export declare function hasTextExtractionPath(mimeType: string): boolean;
6
+ /**
7
+ * Resolves the default file path destination for a given mime type.
8
+ * Resolution chain: endpoint overrides -> endpoint fallback -> global overrides -> global fallback -> system defaults.
9
+ */
10
+ export declare function resolveDefaultLLMDeliveryPath(mimeType: string, endpointConfig?: TDefaultLLMDeliveryPathConfig, globalConfig?: TDefaultLLMDeliveryPathConfig, endpoint?: string, useResponsesApi?: boolean, sttConfigured?: boolean): TDefaultLLMDeliveryPath;
11
+ /**
12
+ * Delivery path for an upload that named no tool resource. The legacy chooser makes the
13
+ * destination explicit, so nothing is inferred there.
14
+ */
15
+ export declare function resolveDefaultUploadLLMDeliveryPath({ mimeType, endpointConfig, fileConfig, endpoint, useResponsesApi, sttConfigured, }: {
16
+ mimeType: string;
17
+ endpointConfig?: EndpointFileConfig;
18
+ fileConfig?: FileConfig;
19
+ endpoint?: string;
20
+ useResponsesApi?: boolean;
21
+ sttConfigured?: boolean;
22
+ }): TDefaultLLMDeliveryPath;
23
+ /** Delivery path for an upload, honoring an explicitly chosen tool resource. */
24
+ export declare function resolveUploadLLMDeliveryPath({ toolResource, mimeType, endpointConfig, fileConfig, endpoint, useResponsesApi, sttConfigured, }: {
25
+ toolResource?: string | null;
26
+ mimeType: string;
27
+ endpointConfig?: EndpointFileConfig;
28
+ fileConfig?: FileConfig;
29
+ endpoint?: string;
30
+ useResponsesApi?: boolean;
31
+ sttConfigured?: boolean;
32
+ }): TDefaultLLMDeliveryPath;
33
+ /**
34
+ * Whether a file tool can do anything with this type. `file_search` indexes extracted
35
+ * text, so it needs a type some step can turn into text and cannot use media, whose
36
+ * extraction paths are OCR and speech rather than the vector store. Code execution is
37
+ * judged by the list the client offers it from. Shared by upload-time selection and
38
+ * deferred provisioning so the two cannot queue a file the other would refuse.
39
+ */
40
+ export declare function canToolResourceConsume(toolResource: string, mimeType: string): boolean;
41
+ /** Why an upload cannot be accepted, when nothing would be able to read it. */
42
+ export type UploadRejection = 'no-agent-resource' | 'context-disabled' | 'no-consumer';
43
+ /**
44
+ * Where a unified upload will end up, and whether it can be accepted at all.
45
+ *
46
+ * An upload has to be readable by something: the model, an extraction step, or a file
47
+ * tool. A permanent one has to land on an agent resource too, or storing it succeeds
48
+ * while leaving the agent no reference to it. Both outcomes are decided here rather than
49
+ * discovered later, so a request that would change nothing is refused with a reason.
50
+ *
51
+ * `agentTools` is undefined when no agent record backs the upload, as for an ephemeral
52
+ * agent that exists only for the request. An unknown tool set is not judged.
53
+ */
54
+ export declare function resolveUploadDestination(params: {
55
+ toolResource?: string | null;
56
+ deliveryPath: TDefaultLLMDeliveryPath;
57
+ mimeType: string;
58
+ agentTools?: string[];
59
+ hasAgent: boolean;
60
+ isMessageAttachment: boolean;
61
+ /** True when a message attachment may acquire a compatible tool on a later turn. */
62
+ allowUnknownMessageConsumer?: boolean;
63
+ /** Undefined when not looked up, as for an upload that cannot land on context. */
64
+ contextEnabled?: boolean;
65
+ }): {
66
+ toolResource?: string;
67
+ rejection?: UploadRejection;
68
+ };