@librechat/data-schemas 0.0.33 → 0.0.35

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.
@@ -31,7 +31,7 @@ export declare function createMCPServerMethods(mongoose: typeof import('mongoose
31
31
  config: MCPOptions;
32
32
  author: string | Types.ObjectId;
33
33
  }) => Promise<MCPServerDocument>;
34
- findMCPServerById: (serverName: string) => Promise<MCPServerDocument | null>;
34
+ findMCPServerByServerName: (serverName: string) => Promise<MCPServerDocument | null>;
35
35
  findMCPServerByObjectId: (_id: string | Types.ObjectId) => Promise<MCPServerDocument | null>;
36
36
  findMCPServersByAuthor: (authorId: string | Types.ObjectId) => Promise<MCPServerDocument[]>;
37
37
  getListMCPServersByIds: ({ ids, otherParams, limit, after, }: {
@@ -57,20 +57,9 @@ interface _DocumentWithMeiliIndex extends Document {
57
57
  }
58
58
  export type DocumentWithMeiliIndex = _DocumentWithMeiliIndex & IConversation & Partial<IMessage>;
59
59
  export interface SchemaWithMeiliMethods extends Model<DocumentWithMeiliIndex> {
60
- syncWithMeili(options?: {
61
- resumeFromId?: string;
62
- }): Promise<void>;
60
+ syncWithMeili(): Promise<void>;
63
61
  getSyncProgress(): Promise<SyncProgress>;
64
- processSyncBatch(index: Index<MeiliIndexable>, documents: Array<Record<string, unknown>>, updateOps: Array<{
65
- updateOne: {
66
- filter: Record<string, unknown>;
67
- update: {
68
- $set: {
69
- _meiliIndex: boolean;
70
- };
71
- };
72
- };
73
- }>): Promise<void>;
62
+ processSyncBatch(index: Index<MeiliIndexable>, documents: Array<Record<string, unknown>>): Promise<void>;
74
63
  cleanupMeiliIndex(index: Index<MeiliIndexable>, primaryKey: string, batchSize: number, delayMs: number): Promise<void>;
75
64
  setMeiliIndexSettings(settings: Record<string, unknown>): Promise<unknown>;
76
65
  meiliSearch(q: string, params?: SearchParams, populate?: boolean): Promise<SearchResponse<MeiliIndexable, Record<string, unknown>>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@librechat/data-schemas",
3
- "version": "0.0.33",
3
+ "version": "0.0.35",
4
4
  "description": "Mongoose schemas and models for LibreChat",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -44,7 +44,6 @@
44
44
  "@rollup/plugin-replace": "^5.0.5",
45
45
  "@rollup/plugin-terser": "^0.4.4",
46
46
  "@rollup/plugin-typescript": "^12.1.2",
47
- "@types/diff": "^6.0.0",
48
47
  "@types/express": "^5.0.0",
49
48
  "@types/jest": "^29.5.2",
50
49
  "@types/node": "^20.3.0",
@@ -62,7 +61,7 @@
62
61
  "jsonwebtoken": "^9.0.2",
63
62
  "klona": "^2.0.6",
64
63
  "librechat-data-provider": "*",
65
- "lodash": "^4.17.21",
64
+ "lodash": "^4.17.23",
66
65
  "meilisearch": "^0.38.0",
67
66
  "mongoose": "^8.12.1",
68
67
  "nanoid": "^3.3.7",