@common_ch/common 1.0.414 → 1.0.415

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.
@@ -16,6 +16,7 @@ export interface ImageAttrs {
16
16
  userId: Types.ObjectId;
17
17
  ai: Types.ObjectId | AiAttrs;
18
18
  imageName: string;
19
+ summary?: string;
19
20
  chatGptFiles?: {
20
21
  vectorStoreId?: string;
21
22
  fileIds?: string[];
@@ -7,6 +7,7 @@ exports.ImageModel = void 0;
7
7
  const mongoose_1 = __importDefault(require("mongoose"));
8
8
  const mongoose_update_if_current_1 = require("mongoose-update-if-current");
9
9
  const image_1 = require("../../enums/image");
10
+ const message_1 = require("./message");
10
11
  const ImageSchema = new mongoose_1.default.Schema({
11
12
  userId: {
12
13
  type: mongoose_1.default.Schema.Types.ObjectId,
@@ -29,6 +30,24 @@ const ImageSchema = new mongoose_1.default.Schema({
29
30
  type: Number,
30
31
  required: false,
31
32
  },
33
+ summary: {
34
+ type: String,
35
+ required: false,
36
+ },
37
+ chatGptFiles: {
38
+ vectorStoreId: {
39
+ type: String,
40
+ required: false,
41
+ },
42
+ conversationId: {
43
+ type: String,
44
+ required: false,
45
+ },
46
+ fileIds: [{
47
+ type: String,
48
+ required: false,
49
+ }]
50
+ },
32
51
  planId: {
33
52
  type: mongoose_1.default.Schema.Types.ObjectId,
34
53
  ref: 'Plan',
@@ -42,7 +61,7 @@ const ImageSchema = new mongoose_1.default.Schema({
42
61
  enum: Object.values(image_1.ImageRoleEnum),
43
62
  },
44
63
  content: {
45
- type: String,
64
+ type: [message_1.ContentSchema],
46
65
  required: true,
47
66
  },
48
67
  aiOption: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@common_ch/common",
3
- "version": "1.0.414",
3
+ "version": "1.0.415",
4
4
  "main": "./build/index.js",
5
5
  "types": "./build/index.d.ts",
6
6
  "files": [