@brimble/models 3.8.137 → 3.8.139

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.
@@ -7,6 +7,7 @@ const agentChatModelSchema = new mongoose_1.Schema({
7
7
  description: { type: String, required: true, default: '' },
8
8
  provider: { type: String, required: true },
9
9
  gateway_model: { type: String, required: true },
10
+ audio: { type: Boolean, required: false, default: false },
10
11
  is_default: { type: Boolean, required: true, default: false },
11
12
  enabled: { type: Boolean, required: true, default: true },
12
13
  sort_order: { type: Number, required: true, default: 0 },
@@ -13,6 +13,7 @@ const agentChatSchema = new mongoose_1.Schema({
13
13
  required: true,
14
14
  default: enum_1.AGENT_CHAT_STATUS.Active,
15
15
  },
16
+ deleted_at: { type: Date, default: null },
16
17
  }, {
17
18
  timestamps: { createdAt: "created_at", updatedAt: "updated_at" },
18
19
  collection: "agent_chats",
package/dist/logs.js CHANGED
@@ -15,6 +15,11 @@ const LogSchema = new mongoose_1.Schema({
15
15
  ref: "Project",
16
16
  type: mongoose_1.Schema.Types.ObjectId,
17
17
  },
18
+ source: {
19
+ type: String,
20
+ enum: ['drop', 'git', 'pull_request', 'debug_assistant', 'system'],
21
+ default: 'git',
22
+ },
18
23
  user: {
19
24
  ref: "User",
20
25
  type: mongoose_1.Schema.Types.ObjectId,
@@ -37,4 +42,5 @@ const LogSchema = new mongoose_1.Schema({
37
42
  endTime: mongoose_1.Schema.Types.Date,
38
43
  deleted: mongoose_1.Schema.Types.Boolean,
39
44
  }, { timestamps: true });
45
+ LogSchema.index({ project: 1, source: 1, createdAt: -1 });
40
46
  exports.default = (0, mongoose_1.model)("Log", LogSchema);
@@ -4,6 +4,7 @@ export interface IAgentChatModel extends Document {
4
4
  label: string;
5
5
  description: string;
6
6
  provider: string;
7
+ audio: boolean;
7
8
  gateway_model: string;
8
9
  is_default: boolean;
9
10
  enabled: boolean;
@@ -8,6 +8,7 @@ export interface IAgentChat extends Document {
8
8
  title: string;
9
9
  tokens_used: number;
10
10
  status: AGENT_CHAT_STATUS;
11
+ deleted_at: Date | null;
11
12
  created_at: Date;
12
13
  updated_at: Date;
13
14
  }
@@ -17,6 +17,7 @@ export interface ILog extends Document {
17
17
  username: string;
18
18
  };
19
19
  };
20
+ source: string;
20
21
  status: PROJECT_STATUS;
21
22
  project: IProject;
22
23
  user?: IUser;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brimble/models",
3
- "version": "3.8.137",
3
+ "version": "3.8.139",
4
4
  "description": "Brimble models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",