chatifai 1.0.21 → 1.0.22
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 +0 -3
- package/dist/index.js +4 -4
- package/dist/types.d.ts +4 -7
- package/dist/types.js +5 -5
- package/index.ts +4 -4
- package/package.json +1 -1
- package/types.ts +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -168,7 +168,6 @@ export declare const AgentSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
168
168
|
description?: string | null | undefined;
|
|
169
169
|
instructions?: string | null | undefined;
|
|
170
170
|
temperature?: number | null | undefined;
|
|
171
|
-
max_tokens?: number | null | undefined;
|
|
172
171
|
elevenlabs_voice_id?: string | null | undefined;
|
|
173
172
|
message_count_limit?: number | null | undefined;
|
|
174
173
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
@@ -184,7 +183,6 @@ export declare const AgentSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
184
183
|
description?: string | null | undefined;
|
|
185
184
|
instructions?: string | null | undefined;
|
|
186
185
|
temperature?: number | null | undefined;
|
|
187
|
-
max_tokens?: number | null | undefined;
|
|
188
186
|
elevenlabs_voice_id?: string | null | undefined;
|
|
189
187
|
message_count_limit?: number | null | undefined;
|
|
190
188
|
}>, {}> & import("mongoose").FlatRecord<{
|
|
@@ -200,7 +198,6 @@ export declare const AgentSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
200
198
|
description?: string | null | undefined;
|
|
201
199
|
instructions?: string | null | undefined;
|
|
202
200
|
temperature?: number | null | undefined;
|
|
203
|
-
max_tokens?: number | null | undefined;
|
|
204
201
|
elevenlabs_voice_id?: string | null | undefined;
|
|
205
202
|
message_count_limit?: number | null | undefined;
|
|
206
203
|
}> & {
|
package/dist/index.js
CHANGED
|
@@ -62,14 +62,14 @@ exports.UserSchema = new mongoose_1.Schema({
|
|
|
62
62
|
exports.AgentSchema = new mongoose_1.Schema({
|
|
63
63
|
organization_id: { type: String },
|
|
64
64
|
title: { type: String, required: true, minlength: 1, maxlength: 100 },
|
|
65
|
-
description: { type: String
|
|
65
|
+
description: { type: String },
|
|
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
|
-
max_tokens: { type: Number, min: 1, max: 4000 },
|
|
70
|
-
elevenlabs_voice_id: { type: String
|
|
69
|
+
// max_tokens: { type: Number, min: 1, max: 4000 },
|
|
70
|
+
elevenlabs_voice_id: { type: String },
|
|
71
71
|
message_count_limit: { type: Number, min: 1 },
|
|
72
|
-
is_editable: { type: Boolean, default:
|
|
72
|
+
is_editable: { type: Boolean, default: false },
|
|
73
73
|
created_at: { type: Number },
|
|
74
74
|
updated_at: { type: Number },
|
|
75
75
|
}, {
|
package/dist/types.d.ts
CHANGED
|
@@ -164,40 +164,37 @@ export declare const zodAgentSchema: z.ZodObject<{
|
|
|
164
164
|
organization_id: z.ZodOptional<z.ZodString>;
|
|
165
165
|
title: z.ZodString;
|
|
166
166
|
description: z.ZodOptional<z.ZodString>;
|
|
167
|
-
instructions: z.
|
|
167
|
+
instructions: z.ZodString;
|
|
168
168
|
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"]>;
|
|
169
169
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
170
|
-
max_tokens: z.ZodOptional<z.ZodNumber>;
|
|
171
170
|
elevenlabs_voice_id: z.ZodOptional<z.ZodString>;
|
|
172
171
|
message_count_limit: z.ZodOptional<z.ZodNumber>;
|
|
173
|
-
is_editable: z.ZodOptional<z.
|
|
172
|
+
is_editable: z.ZodOptional<z.ZodBoolean>;
|
|
174
173
|
created_at: z.ZodOptional<z.ZodNumber>;
|
|
175
174
|
updated_at: z.ZodOptional<z.ZodNumber>;
|
|
176
175
|
}, "strip", z.ZodTypeAny, {
|
|
177
176
|
title: string;
|
|
177
|
+
instructions: string;
|
|
178
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
179
|
_id?: string | undefined;
|
|
180
180
|
created_at?: number | undefined;
|
|
181
181
|
updated_at?: number | undefined;
|
|
182
182
|
organization_id?: string | undefined;
|
|
183
183
|
description?: string | undefined;
|
|
184
|
-
instructions?: string | undefined;
|
|
185
184
|
temperature?: number | undefined;
|
|
186
|
-
max_tokens?: number | undefined;
|
|
187
185
|
elevenlabs_voice_id?: string | undefined;
|
|
188
186
|
message_count_limit?: number | undefined;
|
|
189
187
|
is_editable?: boolean | undefined;
|
|
190
188
|
}, {
|
|
191
189
|
title: string;
|
|
190
|
+
instructions: string;
|
|
192
191
|
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";
|
|
193
192
|
_id?: string | undefined;
|
|
194
193
|
created_at?: number | undefined;
|
|
195
194
|
updated_at?: number | undefined;
|
|
196
195
|
organization_id?: string | undefined;
|
|
197
196
|
description?: string | undefined;
|
|
198
|
-
instructions?: string | undefined;
|
|
199
197
|
temperature?: number | undefined;
|
|
200
|
-
max_tokens?: number | undefined;
|
|
201
198
|
elevenlabs_voice_id?: string | undefined;
|
|
202
199
|
message_count_limit?: number | undefined;
|
|
203
200
|
is_editable?: boolean | undefined;
|
package/dist/types.js
CHANGED
|
@@ -73,14 +73,14 @@ exports.zodAgentSchema = zod_1.z.object({
|
|
|
73
73
|
_id: zod_1.z.string().optional(),
|
|
74
74
|
organization_id: zod_1.z.string().optional(),
|
|
75
75
|
title: zod_1.z.string().min(1).max(100),
|
|
76
|
-
description: zod_1.z.string().
|
|
77
|
-
instructions: zod_1.z.string().min(1).max(1000)
|
|
76
|
+
description: zod_1.z.string().optional(),
|
|
77
|
+
instructions: zod_1.z.string().min(1).max(1000),
|
|
78
78
|
model: zod_1.z.enum(exports.modelsList),
|
|
79
79
|
temperature: zod_1.z.number().min(0).max(1).optional(),
|
|
80
|
-
max_tokens:
|
|
81
|
-
elevenlabs_voice_id: zod_1.z.string().
|
|
80
|
+
// max_tokens: z.number().min(1).max(4000).optional(),
|
|
81
|
+
elevenlabs_voice_id: zod_1.z.string().optional(),
|
|
82
82
|
message_count_limit: zod_1.z.number().min(1).optional(),
|
|
83
|
-
is_editable: zod_1.z.boolean().
|
|
83
|
+
is_editable: zod_1.z.boolean().optional(),
|
|
84
84
|
created_at: zod_1.z.number().optional(),
|
|
85
85
|
updated_at: zod_1.z.number().optional(),
|
|
86
86
|
});
|
package/index.ts
CHANGED
|
@@ -56,14 +56,14 @@ export const AgentSchema = new Schema(
|
|
|
56
56
|
{
|
|
57
57
|
organization_id: { type: String },
|
|
58
58
|
title: { type: String, required: true, minlength: 1, maxlength: 100 },
|
|
59
|
-
description: { type: String
|
|
59
|
+
description: { type: String },
|
|
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
|
-
max_tokens: { type: Number, min: 1, max: 4000 },
|
|
64
|
-
elevenlabs_voice_id: { type: String
|
|
63
|
+
// max_tokens: { type: Number, min: 1, max: 4000 },
|
|
64
|
+
elevenlabs_voice_id: { type: String },
|
|
65
65
|
message_count_limit: { type: Number, min: 1 },
|
|
66
|
-
is_editable: { type: Boolean, default:
|
|
66
|
+
is_editable: { type: Boolean, default: false },
|
|
67
67
|
created_at: { type: Number },
|
|
68
68
|
updated_at: { type: Number },
|
|
69
69
|
},
|
package/package.json
CHANGED
package/types.ts
CHANGED
|
@@ -76,14 +76,14 @@ export const zodAgentSchema = z.object({
|
|
|
76
76
|
_id: z.string().optional(),
|
|
77
77
|
organization_id: z.string().optional(),
|
|
78
78
|
title: z.string().min(1).max(100),
|
|
79
|
-
description: z.string().
|
|
80
|
-
instructions: z.string().min(1).max(1000)
|
|
79
|
+
description: z.string().optional(),
|
|
80
|
+
instructions: z.string().min(1).max(1000),
|
|
81
81
|
model: z.enum(modelsList),
|
|
82
82
|
temperature: z.number().min(0).max(1).optional(),
|
|
83
|
-
max_tokens: z.number().min(1).max(4000).optional(),
|
|
84
|
-
elevenlabs_voice_id: z.string().
|
|
83
|
+
// max_tokens: z.number().min(1).max(4000).optional(),
|
|
84
|
+
elevenlabs_voice_id: z.string().optional(),
|
|
85
85
|
message_count_limit: z.number().min(1).optional(),
|
|
86
|
-
is_editable: z.boolean().
|
|
86
|
+
is_editable: z.boolean().optional(),
|
|
87
87
|
created_at: z.number().optional(),
|
|
88
88
|
updated_at: z.number().optional(),
|
|
89
89
|
});
|