chatifai 1.0.34 → 1.0.36
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.
- package/dist/index.d.ts +6 -3
- package/dist/index.js +1 -1
- package/dist/types.d.ts +10 -7
- package/dist/types.js +2 -1
- package/index.ts +1 -1
- package/package.json +1 -1
- package/types.ts +3 -1
package/dist/index.d.ts
CHANGED
|
@@ -160,7 +160,8 @@ export declare const AgentSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
160
160
|
updatedAt: NativeDate;
|
|
161
161
|
} & {
|
|
162
162
|
title: string;
|
|
163
|
-
model: "gemini-2.5-flash-lite" | "gemini-2.5-flash" | "gemini-2.5-pro" | "grok-4-fast-non-reasoning" | "grok-4-fast-reasoning" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano";
|
|
163
|
+
model: "gemini-2.5-flash-lite" | "gemini-2.5-flash" | "gemini-2.5-pro" | "grok-4-fast-non-reasoning" | "grok-4-fast-reasoning" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "claude-3.7-sonnet";
|
|
164
|
+
max_tokens: number;
|
|
164
165
|
is_editable: boolean;
|
|
165
166
|
created_at?: number | null | undefined;
|
|
166
167
|
updated_at?: number | null | undefined;
|
|
@@ -175,7 +176,8 @@ export declare const AgentSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
175
176
|
updatedAt: NativeDate;
|
|
176
177
|
} & {
|
|
177
178
|
title: string;
|
|
178
|
-
model: "gemini-2.5-flash-lite" | "gemini-2.5-flash" | "gemini-2.5-pro" | "grok-4-fast-non-reasoning" | "grok-4-fast-reasoning" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano";
|
|
179
|
+
model: "gemini-2.5-flash-lite" | "gemini-2.5-flash" | "gemini-2.5-pro" | "grok-4-fast-non-reasoning" | "grok-4-fast-reasoning" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "claude-3.7-sonnet";
|
|
180
|
+
max_tokens: number;
|
|
179
181
|
is_editable: boolean;
|
|
180
182
|
created_at?: number | null | undefined;
|
|
181
183
|
updated_at?: number | null | undefined;
|
|
@@ -190,7 +192,8 @@ export declare const AgentSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
190
192
|
updatedAt: NativeDate;
|
|
191
193
|
} & {
|
|
192
194
|
title: string;
|
|
193
|
-
model: "gemini-2.5-flash-lite" | "gemini-2.5-flash" | "gemini-2.5-pro" | "grok-4-fast-non-reasoning" | "grok-4-fast-reasoning" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano";
|
|
195
|
+
model: "gemini-2.5-flash-lite" | "gemini-2.5-flash" | "gemini-2.5-pro" | "grok-4-fast-non-reasoning" | "grok-4-fast-reasoning" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "claude-3.7-sonnet";
|
|
196
|
+
max_tokens: number;
|
|
194
197
|
is_editable: boolean;
|
|
195
198
|
created_at?: number | null | undefined;
|
|
196
199
|
updated_at?: number | null | undefined;
|
package/dist/index.js
CHANGED
|
@@ -66,7 +66,7 @@ exports.AgentSchema = new mongoose_1.Schema({
|
|
|
66
66
|
instructions: { type: String, minlength: 1, maxlength: 1000 },
|
|
67
67
|
model: { type: String, enum: types_1.modelsList, required: true },
|
|
68
68
|
temperature: { type: Number, min: 0, max: 1 },
|
|
69
|
-
|
|
69
|
+
max_tokens: { type: Number, min: 1, default: 3000 },
|
|
70
70
|
elevenlabs_voice_id: { type: String },
|
|
71
71
|
message_count_limit: { type: Number, min: 1 },
|
|
72
72
|
is_editable: { type: Boolean, default: false },
|
package/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const modelsList: readonly ["gemini-2.5-flash-lite", "gemini-2.5-flash", "gemini-2.5-pro", "grok-4-fast-non-reasoning", "grok-4-fast-reasoning", "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-nano"];
|
|
2
|
+
export declare const modelsList: readonly ["gemini-2.5-flash-lite", "gemini-2.5-flash", "gemini-2.5-pro", "grok-4-fast-non-reasoning", "grok-4-fast-reasoning", "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-nano", "claude-3.7-sonnet"];
|
|
3
3
|
export declare const userRoles: readonly ["admin", "member", "client"];
|
|
4
4
|
export declare const zodClerkMinimalUserSchema: z.ZodObject<{
|
|
5
5
|
user_id: z.ZodString;
|
|
@@ -26,7 +26,7 @@ export declare const zodOrganizationSchema: z.ZodObject<{
|
|
|
26
26
|
plan: z.ZodOptional<z.ZodString>;
|
|
27
27
|
active_user_limit: z.ZodOptional<z.ZodNumber>;
|
|
28
28
|
documents_size_limit: z.ZodOptional<z.ZodNumber>;
|
|
29
|
-
allowed_models: z.ZodOptional<z.ZodArray<z.ZodEnum<["gemini-2.5-flash-lite", "gemini-2.5-flash", "gemini-2.5-pro", "grok-4-fast-non-reasoning", "grok-4-fast-reasoning", "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-nano"]>, "many">>;
|
|
29
|
+
allowed_models: z.ZodOptional<z.ZodArray<z.ZodEnum<["gemini-2.5-flash-lite", "gemini-2.5-flash", "gemini-2.5-pro", "grok-4-fast-non-reasoning", "grok-4-fast-reasoning", "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-nano", "claude-3.7-sonnet"]>, "many">>;
|
|
30
30
|
queries_limit: z.ZodOptional<z.ZodNumber>;
|
|
31
31
|
created_at: z.ZodOptional<z.ZodNumber>;
|
|
32
32
|
updated_at: z.ZodOptional<z.ZodNumber>;
|
|
@@ -39,7 +39,7 @@ export declare const zodOrganizationSchema: z.ZodObject<{
|
|
|
39
39
|
plan?: string | undefined;
|
|
40
40
|
active_user_limit?: number | undefined;
|
|
41
41
|
documents_size_limit?: number | undefined;
|
|
42
|
-
allowed_models?: ("gemini-2.5-flash-lite" | "gemini-2.5-flash" | "gemini-2.5-pro" | "grok-4-fast-non-reasoning" | "grok-4-fast-reasoning" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano")[] | undefined;
|
|
42
|
+
allowed_models?: ("gemini-2.5-flash-lite" | "gemini-2.5-flash" | "gemini-2.5-pro" | "grok-4-fast-non-reasoning" | "grok-4-fast-reasoning" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "claude-3.7-sonnet")[] | undefined;
|
|
43
43
|
queries_limit?: number | undefined;
|
|
44
44
|
created_at?: number | undefined;
|
|
45
45
|
updated_at?: number | undefined;
|
|
@@ -52,7 +52,7 @@ export declare const zodOrganizationSchema: z.ZodObject<{
|
|
|
52
52
|
plan?: string | undefined;
|
|
53
53
|
active_user_limit?: number | undefined;
|
|
54
54
|
documents_size_limit?: number | undefined;
|
|
55
|
-
allowed_models?: ("gemini-2.5-flash-lite" | "gemini-2.5-flash" | "gemini-2.5-pro" | "grok-4-fast-non-reasoning" | "grok-4-fast-reasoning" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano")[] | undefined;
|
|
55
|
+
allowed_models?: ("gemini-2.5-flash-lite" | "gemini-2.5-flash" | "gemini-2.5-pro" | "grok-4-fast-non-reasoning" | "grok-4-fast-reasoning" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "claude-3.7-sonnet")[] | undefined;
|
|
56
56
|
queries_limit?: number | undefined;
|
|
57
57
|
created_at?: number | undefined;
|
|
58
58
|
updated_at?: number | undefined;
|
|
@@ -181,8 +181,9 @@ export declare const zodAgentSchema: z.ZodObject<{
|
|
|
181
181
|
title: z.ZodString;
|
|
182
182
|
description: z.ZodOptional<z.ZodString>;
|
|
183
183
|
instructions: z.ZodString;
|
|
184
|
-
model: z.ZodEnum<["gemini-2.5-flash-lite", "gemini-2.5-flash", "gemini-2.5-pro", "grok-4-fast-non-reasoning", "grok-4-fast-reasoning", "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-nano"]>;
|
|
184
|
+
model: z.ZodEnum<["gemini-2.5-flash-lite", "gemini-2.5-flash", "gemini-2.5-pro", "grok-4-fast-non-reasoning", "grok-4-fast-reasoning", "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-nano", "claude-3.7-sonnet"]>;
|
|
185
185
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
186
|
+
max_tokens: z.ZodOptional<z.ZodNumber>;
|
|
186
187
|
elevenlabs_voice_id: z.ZodOptional<z.ZodString>;
|
|
187
188
|
message_count_limit: z.ZodOptional<z.ZodNumber>;
|
|
188
189
|
is_editable: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -191,26 +192,28 @@ export declare const zodAgentSchema: z.ZodObject<{
|
|
|
191
192
|
}, "strip", z.ZodTypeAny, {
|
|
192
193
|
title: string;
|
|
193
194
|
instructions: string;
|
|
194
|
-
model: "gemini-2.5-flash-lite" | "gemini-2.5-flash" | "gemini-2.5-pro" | "grok-4-fast-non-reasoning" | "grok-4-fast-reasoning" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano";
|
|
195
|
+
model: "gemini-2.5-flash-lite" | "gemini-2.5-flash" | "gemini-2.5-pro" | "grok-4-fast-non-reasoning" | "grok-4-fast-reasoning" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "claude-3.7-sonnet";
|
|
195
196
|
_id?: string | undefined;
|
|
196
197
|
created_at?: number | undefined;
|
|
197
198
|
updated_at?: number | undefined;
|
|
198
199
|
organization_id?: string | undefined;
|
|
199
200
|
description?: string | undefined;
|
|
200
201
|
temperature?: number | undefined;
|
|
202
|
+
max_tokens?: number | undefined;
|
|
201
203
|
elevenlabs_voice_id?: string | undefined;
|
|
202
204
|
message_count_limit?: number | undefined;
|
|
203
205
|
is_editable?: boolean | undefined;
|
|
204
206
|
}, {
|
|
205
207
|
title: string;
|
|
206
208
|
instructions: string;
|
|
207
|
-
model: "gemini-2.5-flash-lite" | "gemini-2.5-flash" | "gemini-2.5-pro" | "grok-4-fast-non-reasoning" | "grok-4-fast-reasoning" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano";
|
|
209
|
+
model: "gemini-2.5-flash-lite" | "gemini-2.5-flash" | "gemini-2.5-pro" | "grok-4-fast-non-reasoning" | "grok-4-fast-reasoning" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "claude-3.7-sonnet";
|
|
208
210
|
_id?: string | undefined;
|
|
209
211
|
created_at?: number | undefined;
|
|
210
212
|
updated_at?: number | undefined;
|
|
211
213
|
organization_id?: string | undefined;
|
|
212
214
|
description?: string | undefined;
|
|
213
215
|
temperature?: number | undefined;
|
|
216
|
+
max_tokens?: number | undefined;
|
|
214
217
|
elevenlabs_voice_id?: string | undefined;
|
|
215
218
|
message_count_limit?: number | undefined;
|
|
216
219
|
is_editable?: boolean | undefined;
|
package/dist/types.js
CHANGED
|
@@ -11,6 +11,7 @@ exports.modelsList = [
|
|
|
11
11
|
'gpt-4.1',
|
|
12
12
|
'gpt-4.1-mini',
|
|
13
13
|
'gpt-4.1-nano',
|
|
14
|
+
'claude-3.7-sonnet',
|
|
14
15
|
];
|
|
15
16
|
exports.userRoles = ['admin', 'member', 'client'];
|
|
16
17
|
exports.zodClerkMinimalUserSchema = zod_1.z.object({
|
|
@@ -83,7 +84,7 @@ exports.zodAgentSchema = zod_1.z.object({
|
|
|
83
84
|
instructions: zod_1.z.string().min(1).max(1000),
|
|
84
85
|
model: zod_1.z.enum(exports.modelsList),
|
|
85
86
|
temperature: zod_1.z.number().min(0).max(1).optional(),
|
|
86
|
-
|
|
87
|
+
max_tokens: zod_1.z.number().min(1).optional(),
|
|
87
88
|
elevenlabs_voice_id: zod_1.z.string().optional(),
|
|
88
89
|
message_count_limit: zod_1.z.number().min(1).optional(),
|
|
89
90
|
is_editable: zod_1.z.boolean().optional(),
|
package/index.ts
CHANGED
|
@@ -60,7 +60,7 @@ export const AgentSchema = new Schema(
|
|
|
60
60
|
instructions: { type: String, minlength: 1, maxlength: 1000 },
|
|
61
61
|
model: { type: String, enum: modelsList, required: true },
|
|
62
62
|
temperature: { type: Number, min: 0, max: 1 },
|
|
63
|
-
|
|
63
|
+
max_tokens: { type: Number, min: 1, default: 3000 },
|
|
64
64
|
elevenlabs_voice_id: { type: String },
|
|
65
65
|
message_count_limit: { type: Number, min: 1 },
|
|
66
66
|
is_editable: { type: Boolean, default: false },
|
package/package.json
CHANGED
package/types.ts
CHANGED
|
@@ -9,6 +9,8 @@ export const modelsList = [
|
|
|
9
9
|
'gpt-4.1',
|
|
10
10
|
'gpt-4.1-mini',
|
|
11
11
|
'gpt-4.1-nano',
|
|
12
|
+
'claude-3.7-sonnet',
|
|
13
|
+
|
|
12
14
|
] as const;
|
|
13
15
|
|
|
14
16
|
export const userRoles = ['admin', 'member', 'client'] as const;
|
|
@@ -87,7 +89,7 @@ export const zodAgentSchema = z.object({
|
|
|
87
89
|
instructions: z.string().min(1).max(1000),
|
|
88
90
|
model: z.enum(modelsList),
|
|
89
91
|
temperature: z.number().min(0).max(1).optional(),
|
|
90
|
-
|
|
92
|
+
max_tokens: z.number().min(1).optional(),
|
|
91
93
|
elevenlabs_voice_id: z.string().optional(),
|
|
92
94
|
message_count_limit: z.number().min(1).optional(),
|
|
93
95
|
is_editable: z.boolean().optional(),
|