@common_ch/common 1.0.213 → 1.0.215

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.
@@ -3,6 +3,16 @@ export declare enum AiOptionStatusEnum {
3
3
  deactive = "deactive"
4
4
  }
5
5
  export declare enum AiOptionNamesEnum {
6
+ GEMINI_2_5_PRO = "gemini-2.5-pro",
7
+ GEMINI_2_5_FLASH = "gemini-2.5-flash",
8
+ GEMINI_2_5_FLASH_LITE = "gemini-2.5-flash-lite",
9
+ GEMINI_2_0_FLASH = "gemini-2.0-flash",
10
+ GEMINI_2_0_FLASH_LITE = "gemini-2.0-flash-lite",
11
+ GEMINI_2_0_FLASH_PREVIEW_IMAGE_GENERATION = "gemini-2.0-flash-preview-image-generation",
12
+ GEMINI_1_5_PRO = "gemini-1.5-pro",
13
+ GEMINI_1_5_FLASH = "gemini-1.5-flash",
14
+ TEXT_EMBEDDING_004 = "text-embedding-004",
15
+ TEXT_EMBEDDING_ADA_002 = "text-embedding-ada-002",
6
16
  gpt5Mini = "gpt-5-mini",
7
17
  gpt5Nano = "gpt-5-nano",
8
18
  gpt5 = "gpt-5",
package/build/enums/ai.js CHANGED
@@ -8,6 +8,20 @@ var AiOptionStatusEnum;
8
8
  })(AiOptionStatusEnum || (exports.AiOptionStatusEnum = AiOptionStatusEnum = {}));
9
9
  var AiOptionNamesEnum;
10
10
  (function (AiOptionNamesEnum) {
11
+ // ===== Gemini 2.5 =====
12
+ AiOptionNamesEnum["GEMINI_2_5_PRO"] = "gemini-2.5-pro";
13
+ AiOptionNamesEnum["GEMINI_2_5_FLASH"] = "gemini-2.5-flash";
14
+ AiOptionNamesEnum["GEMINI_2_5_FLASH_LITE"] = "gemini-2.5-flash-lite";
15
+ // ===== Gemini 2.0 =====
16
+ AiOptionNamesEnum["GEMINI_2_0_FLASH"] = "gemini-2.0-flash";
17
+ AiOptionNamesEnum["GEMINI_2_0_FLASH_LITE"] = "gemini-2.0-flash-lite";
18
+ AiOptionNamesEnum["GEMINI_2_0_FLASH_PREVIEW_IMAGE_GENERATION"] = "gemini-2.0-flash-preview-image-generation";
19
+ // ===== Gemini 1.5 =====
20
+ AiOptionNamesEnum["GEMINI_1_5_PRO"] = "gemini-1.5-pro";
21
+ AiOptionNamesEnum["GEMINI_1_5_FLASH"] = "gemini-1.5-flash";
22
+ // ===== Embeddings =====
23
+ AiOptionNamesEnum["TEXT_EMBEDDING_004"] = "text-embedding-004";
24
+ AiOptionNamesEnum["TEXT_EMBEDDING_ADA_002"] = "text-embedding-ada-002";
11
25
  AiOptionNamesEnum["gpt5Mini"] = "gpt-5-mini";
12
26
  AiOptionNamesEnum["gpt5Nano"] = "gpt-5-nano";
13
27
  AiOptionNamesEnum["gpt5"] = "gpt-5";
@@ -1,17 +1,18 @@
1
1
  import mongoose from 'mongoose';
2
- import { AiAttrs, AiDoc } from './ai';
2
+ import { AiAttrs } from './ai';
3
3
  import { ImageRoleEnum } from '../../enums/image';
4
+ export type Images = {
5
+ ai: string | AiAttrs;
6
+ role: ImageRoleEnum;
7
+ content: string;
8
+ deleted?: boolean;
9
+ createdAt: string;
10
+ };
4
11
  export interface ImageAttrs {
5
12
  userId: string;
6
13
  imageName: string;
7
14
  planId?: string;
8
- images: {
9
- ai: string | AiAttrs;
10
- role: ImageRoleEnum;
11
- content: string;
12
- deleted?: boolean;
13
- createdAt: string;
14
- }[];
15
+ images: Images[];
15
16
  chatGptTokenNumber?: number;
16
17
  geminiTokenNumber?: number;
17
18
  createdAt?: string;
@@ -25,13 +26,7 @@ interface ImageDoc extends mongoose.Document {
25
26
  userId: string;
26
27
  imageName: string;
27
28
  planId?: string;
28
- images: {
29
- ai: string | AiDoc;
30
- role: ImageRoleEnum;
31
- content: string;
32
- deleted?: boolean;
33
- createdAt: string;
34
- }[];
29
+ images: Images[];
35
30
  chatGptTokenNumber?: number;
36
31
  geminiTokenNumber?: number;
37
32
  createdAt?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@common_ch/common",
3
- "version": "1.0.213",
3
+ "version": "1.0.215",
4
4
  "main": "./build/index.js",
5
5
  "types": "./build/index.d.ts",
6
6
  "files": [