@common_ch/common 1.0.325 → 1.0.327

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 @@ interface IPart {
16
16
  };
17
17
  }
18
18
  export type ContentGemini = {
19
+ _id?: string;
19
20
  role: ContentRoleGeminiEnum;
20
21
  parts: IPart[];
21
22
  aiOption: string | AiOptionDoc;
@@ -20,8 +20,7 @@ export declare enum ToolsChatgpt {
20
20
  fileSearch = "file_search",
21
21
  codeInterpreter = "code_interpreter"
22
22
  }
23
- export declare enum AiTools {
24
- webSearch = "web_search",
25
- fileSearch = "file_search",
26
- codeInterpreter = "code_interpreter"
23
+ export declare enum ToolsGemini {
24
+ googleSearch = "googleSearch"
27
25
  }
26
+ export type AiTools = ToolsChatgpt | ToolsGemini;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AiTools = exports.ToolsChatgpt = exports.PlanOrgTypeEnum = exports.PlanOrgStatusEnum = exports.TypePayEnum = exports.PlanStatusEnum = void 0;
3
+ exports.ToolsGemini = exports.ToolsChatgpt = exports.PlanOrgTypeEnum = exports.PlanOrgStatusEnum = exports.TypePayEnum = exports.PlanStatusEnum = void 0;
4
4
  var PlanStatusEnum;
5
5
  (function (PlanStatusEnum) {
6
6
  PlanStatusEnum["active"] = "active";
@@ -28,9 +28,7 @@ var ToolsChatgpt;
28
28
  ToolsChatgpt["fileSearch"] = "file_search";
29
29
  ToolsChatgpt["codeInterpreter"] = "code_interpreter";
30
30
  })(ToolsChatgpt || (exports.ToolsChatgpt = ToolsChatgpt = {}));
31
- var AiTools;
32
- (function (AiTools) {
33
- AiTools["webSearch"] = "web_search";
34
- AiTools["fileSearch"] = "file_search";
35
- AiTools["codeInterpreter"] = "code_interpreter";
36
- })(AiTools || (exports.AiTools = AiTools = {}));
31
+ var ToolsGemini;
32
+ (function (ToolsGemini) {
33
+ ToolsGemini["googleSearch"] = "googleSearch";
34
+ })(ToolsGemini || (exports.ToolsGemini = ToolsGemini = {}));
@@ -20,6 +20,7 @@ export type Attachment = {
20
20
  name: string;
21
21
  };
22
22
  export type Messages = {
23
+ _id?: string;
23
24
  aiOption: string | AiOptionAttrs | AiOptionDoc;
24
25
  role: 'user' | 'assistant' | 'system';
25
26
  runId?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@common_ch/common",
3
- "version": "1.0.325",
3
+ "version": "1.0.327",
4
4
  "main": "./build/index.js",
5
5
  "types": "./build/index.d.ts",
6
6
  "files": [