@librechat/data-schemas 0.0.19 → 0.0.20

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;
@@ -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;
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.20",
4
4
  "description": "Mongoose schemas and models for LibreChat",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",