@common_ch/common 1.0.377 → 1.0.405

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.
@@ -22,6 +22,7 @@ export declare enum ToolsChatgpt {
22
22
  imageGeneration = "image_generation"
23
23
  }
24
24
  export declare enum ToolsGemini {
25
- googleSearch = "googleSearch"
25
+ googleSearch = "googleSearch",
26
+ imageGeneration = "image_generation"
26
27
  }
27
28
  export type AiTools = ToolsChatgpt | ToolsGemini;
@@ -32,4 +32,5 @@ var ToolsChatgpt;
32
32
  var ToolsGemini;
33
33
  (function (ToolsGemini) {
34
34
  ToolsGemini["googleSearch"] = "googleSearch";
35
+ ToolsGemini["imageGeneration"] = "image_generation";
35
36
  })(ToolsGemini || (exports.ToolsGemini = ToolsGemini = {}));
@@ -6,6 +6,7 @@ export interface FileReferenceGeminiAttrs {
6
6
  displayName: string;
7
7
  uploadedAt: Date;
8
8
  messageId: mongoose.Types.ObjectId;
9
+ signatureFileUri?: string;
9
10
  }
10
11
  interface FileReferenceGeminiModel extends mongoose.Model<FileReferenceGeminiDoc> {
11
12
  build(attrs: FileReferenceGeminiAttrs): FileReferenceGeminiDoc;
@@ -18,6 +19,7 @@ export interface FileReferenceGeminiDoc extends mongoose.Document {
18
19
  displayName: string;
19
20
  uploadedAt: Date;
20
21
  messageId: mongoose.Types.ObjectId;
22
+ signatureFileUri?: string;
21
23
  createdAt?: string;
22
24
  updatedAt?: string;
23
25
  }
@@ -10,6 +10,7 @@ const fileReferenceGeminiSchema = new mongoose_1.default.Schema({
10
10
  fileUri: { type: String, required: true },
11
11
  mimeType: { type: String, required: true },
12
12
  displayName: { type: String, required: true },
13
+ signatureFileUri: { type: String, required: false },
13
14
  uploadedAt: { type: Date, default: Date.now },
14
15
  messageId: { type: mongoose_1.default.Schema.Types.ObjectId, ref: 'MessageGemini', required: true },
15
16
  createdAt: mongoose_1.default.Schema.Types.Date,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@common_ch/common",
3
- "version": "1.0.377",
3
+ "version": "1.0.405",
4
4
  "main": "./build/index.js",
5
5
  "types": "./build/index.d.ts",
6
6
  "files": [