joye-backend-utility 5.1.35 → 5.1.37
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.
|
@@ -68,5 +68,17 @@ const OrganizationUserAttrPermission = new mongoose_1.Schema({
|
|
|
68
68
|
required: false,
|
|
69
69
|
enum: ['start', 'pro', 'premium'],
|
|
70
70
|
},
|
|
71
|
+
aiModels: {
|
|
72
|
+
type: Object,
|
|
73
|
+
required: false,
|
|
74
|
+
},
|
|
75
|
+
// Sample data
|
|
76
|
+
/* aiModels: Object
|
|
77
|
+
{
|
|
78
|
+
brew: "claude-sonnet-4-20250514",
|
|
79
|
+
mindfulMin: "claude-3-5-haiku-20241022",
|
|
80
|
+
byb: "claude-3-5-haiku-20241022",
|
|
81
|
+
quickJL: "claude-sonnet-4-20250514",
|
|
82
|
+
} */
|
|
71
83
|
});
|
|
72
84
|
exports.OrganizationUserAttrPermissionSchema = OrganizationUserAttrPermission;
|
package/dist/schema/platform.js
CHANGED
|
@@ -24,5 +24,17 @@ const Platform = new mongoose_1.Schema({
|
|
|
24
24
|
type: String,
|
|
25
25
|
required: false,
|
|
26
26
|
},
|
|
27
|
+
aiModels: {
|
|
28
|
+
type: Object,
|
|
29
|
+
required: false,
|
|
30
|
+
},
|
|
31
|
+
// Sample data
|
|
32
|
+
/* aiModels: Object
|
|
33
|
+
{
|
|
34
|
+
brew: "claude-sonnet-4-20250514",
|
|
35
|
+
mindfulMin: "claude-3-5-haiku-20241022",
|
|
36
|
+
byb: "claude-3-5-haiku-20241022",
|
|
37
|
+
quickJL: "claude-sonnet-4-20250514",
|
|
38
|
+
} */
|
|
27
39
|
});
|
|
28
40
|
exports.PlatformSchema = Platform;
|
|
@@ -11,10 +11,12 @@ const UserChatSession = new mongoose_1.Schema({
|
|
|
11
11
|
date: {
|
|
12
12
|
type: String,
|
|
13
13
|
required: true,
|
|
14
|
+
index: true,
|
|
14
15
|
},
|
|
15
16
|
type: {
|
|
16
17
|
type: String,
|
|
17
18
|
required: true,
|
|
19
|
+
index: true,
|
|
18
20
|
},
|
|
19
21
|
sessionId: {
|
|
20
22
|
type: String,
|
|
@@ -29,6 +31,16 @@ const UserChatSession = new mongoose_1.Schema({
|
|
|
29
31
|
type: Number,
|
|
30
32
|
required: false,
|
|
31
33
|
},
|
|
34
|
+
turnsCount: {
|
|
35
|
+
// User turns count in the session
|
|
36
|
+
type: Number,
|
|
37
|
+
required: false,
|
|
38
|
+
},
|
|
39
|
+
model: {
|
|
40
|
+
type: String,
|
|
41
|
+
required: false,
|
|
42
|
+
index: true,
|
|
43
|
+
},
|
|
32
44
|
inputToken: {
|
|
33
45
|
type: Number,
|
|
34
46
|
required: false,
|
|
@@ -37,6 +49,18 @@ const UserChatSession = new mongoose_1.Schema({
|
|
|
37
49
|
type: Number,
|
|
38
50
|
required: false,
|
|
39
51
|
},
|
|
52
|
+
cacheCreationInTokens: {
|
|
53
|
+
type: Number,
|
|
54
|
+
required: false,
|
|
55
|
+
},
|
|
56
|
+
cacheReadInTokens: {
|
|
57
|
+
type: Number,
|
|
58
|
+
required: false,
|
|
59
|
+
},
|
|
60
|
+
serviceTier: {
|
|
61
|
+
type: String,
|
|
62
|
+
required: false,
|
|
63
|
+
},
|
|
40
64
|
updatedAt: {
|
|
41
65
|
type: Number,
|
|
42
66
|
required: false,
|