@librechat/data-schemas 0.0.19 → 0.0.21

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.
@@ -24,7 +24,7 @@
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
25
  /// <reference types="mongoose/types/inferrawdoctype" />
26
26
  import type { Types } from 'mongoose';
27
- import type { IAgentCategory } from '../types/agentCategory';
27
+ import type { IAgentCategory } from '~/types';
28
28
  export declare function createAgentCategoryMethods(mongoose: typeof import('mongoose')): {
29
29
  getActiveCategories: () => Promise<IAgentCategory[]>;
30
30
  getCategoriesWithCounts: () => Promise<(IAgentCategory & {
@@ -36,7 +36,8 @@ export declare function createAgentCategoryMethods(mongoose: typeof import('mong
36
36
  label?: string;
37
37
  description?: string;
38
38
  order?: number;
39
- }>) => Promise<any>;
39
+ custom?: boolean;
40
+ }>) => Promise<import('mongoose').mongo.BulkWriteResult>;
40
41
  findCategoryByValue: (value: string) => Promise<IAgentCategory | null>;
41
42
  createCategory: (categoryData: Partial<IAgentCategory>) => Promise<IAgentCategory>;
42
43
  updateCategory: (value: string, updateData: Partial<IAgentCategory>) => Promise<IAgentCategory | null>;
@@ -23,15 +23,15 @@
23
23
  /// <reference types="mongoose/types/virtuals" />
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
25
  /// <reference types="mongoose/types/inferrawdoctype" />
26
- import { Schema, Document } from 'mongoose';
26
+ import { Schema } from 'mongoose';
27
27
  import type { IAgentCategory } from '~/types';
28
- declare const agentCategorySchema: Schema<IAgentCategory, import("mongoose").Model<IAgentCategory, any, any, any, Document<unknown, any, IAgentCategory> & import("~/types").AgentCategory & Document<unknown, any, any> & {
28
+ declare const agentCategorySchema: Schema<IAgentCategory, import("mongoose").Model<IAgentCategory, any, any, any, import("mongoose").Document<unknown, any, IAgentCategory> & import("~/types").AgentCategory & import("mongoose").Document<unknown, any, any> & {
29
29
  _id: import("mongoose").Types.ObjectId;
30
30
  } & Required<{
31
31
  _id: import("mongoose").Types.ObjectId;
32
32
  }> & {
33
33
  __v: number;
34
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IAgentCategory, Document<unknown, {}, import("mongoose").FlatRecord<IAgentCategory>> & import("mongoose").FlatRecord<IAgentCategory> & Required<{
34
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IAgentCategory, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IAgentCategory>> & import("mongoose").FlatRecord<IAgentCategory> & Required<{
35
35
  _id: import("mongoose").Types.ObjectId;
36
36
  }> & {
37
37
  __v: number;
@@ -172,6 +172,9 @@ export declare const conversationPreset: {
172
172
  disableStreaming: {
173
173
  type: BooleanConstructor;
174
174
  };
175
+ fileTokenLimit: {
176
+ type: NumberConstructor;
177
+ };
175
178
  /** Reasoning models only */
176
179
  reasoning_effort: {
177
180
  type: StringConstructor;
@@ -72,6 +72,7 @@ export interface IPreset extends Document {
72
72
  useResponsesApi?: boolean;
73
73
  web_search?: boolean;
74
74
  disableStreaming?: boolean;
75
+ fileTokenLimit?: number;
75
76
  agentOptions?: unknown;
76
77
  }
77
78
  declare const presetSchema: Schema<IPreset>;
@@ -35,6 +35,8 @@ export type AgentCategory = {
35
35
  order: number;
36
36
  /** Whether the category is active and should be displayed */
37
37
  isActive: boolean;
38
+ /** Whether this is a custom user-created category */
39
+ custom?: boolean;
38
40
  };
39
41
  export type IAgentCategory = AgentCategory & Document & {
40
42
  _id: Types.ObjectId;
@@ -72,6 +72,7 @@ export interface IConversation extends Document {
72
72
  useResponsesApi?: boolean;
73
73
  web_search?: boolean;
74
74
  disableStreaming?: boolean;
75
+ fileTokenLimit?: number;
75
76
  files?: string[];
76
77
  expiredAt?: Date;
77
78
  createdAt?: Date;
@@ -42,7 +42,7 @@ export interface IUser extends Document {
42
42
  githubId?: string;
43
43
  discordId?: string;
44
44
  appleId?: string;
45
- plugins?: unknown[];
45
+ plugins?: string[];
46
46
  twoFactorEnabled?: boolean;
47
47
  totpSecret?: string;
48
48
  backupCodes?: Array<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@librechat/data-schemas",
3
- "version": "0.0.19",
3
+ "version": "0.0.21",
4
4
  "description": "Mongoose schemas and models for LibreChat",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",