chatifai 1.0.37 → 1.0.39

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 CHANGED
@@ -170,6 +170,7 @@ export declare const AgentSchema: Schema<any, import("mongoose").Model<any, any,
170
170
  instructions?: string | null | undefined;
171
171
  temperature?: number | null | undefined;
172
172
  elevenlabs_voice_id?: string | null | undefined;
173
+ voice_instructions?: string | null | undefined;
173
174
  message_count_limit?: number | null | undefined;
174
175
  }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
175
176
  createdAt: NativeDate;
@@ -186,6 +187,7 @@ export declare const AgentSchema: Schema<any, import("mongoose").Model<any, any,
186
187
  instructions?: string | null | undefined;
187
188
  temperature?: number | null | undefined;
188
189
  elevenlabs_voice_id?: string | null | undefined;
190
+ voice_instructions?: string | null | undefined;
189
191
  message_count_limit?: number | null | undefined;
190
192
  }>, {}> & import("mongoose").FlatRecord<{
191
193
  createdAt: NativeDate;
@@ -202,6 +204,7 @@ export declare const AgentSchema: Schema<any, import("mongoose").Model<any, any,
202
204
  instructions?: string | null | undefined;
203
205
  temperature?: number | null | undefined;
204
206
  elevenlabs_voice_id?: string | null | undefined;
207
+ voice_instructions?: string | null | undefined;
205
208
  message_count_limit?: number | null | undefined;
206
209
  }> & {
207
210
  _id: import("mongoose").Types.ObjectId;
@@ -1275,6 +1278,7 @@ export declare const ThreadSchema: Schema<any, import("mongoose").Model<any, any
1275
1278
  organization_id: string;
1276
1279
  user: any;
1277
1280
  messages_count: number;
1281
+ user_id?: string | null | undefined;
1278
1282
  title?: string | null | undefined;
1279
1283
  created_at?: number | null | undefined;
1280
1284
  updated_at?: number | null | undefined;
@@ -1287,6 +1291,7 @@ export declare const ThreadSchema: Schema<any, import("mongoose").Model<any, any
1287
1291
  organization_id: string;
1288
1292
  user: any;
1289
1293
  messages_count: number;
1294
+ user_id?: string | null | undefined;
1290
1295
  title?: string | null | undefined;
1291
1296
  created_at?: number | null | undefined;
1292
1297
  updated_at?: number | null | undefined;
@@ -1299,6 +1304,7 @@ export declare const ThreadSchema: Schema<any, import("mongoose").Model<any, any
1299
1304
  organization_id: string;
1300
1305
  user: any;
1301
1306
  messages_count: number;
1307
+ user_id?: string | null | undefined;
1302
1308
  title?: string | null | undefined;
1303
1309
  created_at?: number | null | undefined;
1304
1310
  updated_at?: number | null | undefined;
package/dist/index.js CHANGED
@@ -63,12 +63,13 @@ exports.AgentSchema = new mongoose_1.Schema({
63
63
  organization_id: { type: String },
64
64
  title: { type: String, required: true, minlength: 1, maxlength: 100 },
65
65
  description: { type: String },
66
- instructions: { type: String, minlength: 1, maxlength: 1000 },
66
+ instructions: { type: String, minlength: 1, maxlength: 1500 },
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
+ voice_instructions: { type: String },
72
73
  is_editable: { type: Boolean, default: false },
73
74
  created_at: { type: Number },
74
75
  updated_at: { type: Number },
@@ -189,6 +190,7 @@ exports.FullFileTextSchema = new mongoose_1.Schema({
189
190
  });
190
191
  exports.ThreadSchema = new mongoose_1.Schema({
191
192
  organization_id: { type: String, required: true },
193
+ user_id: { type: String },
192
194
  user: { type: Object, required: true },
193
195
  title: { type: String, minlength: 1, maxlength: 200 },
194
196
  description: { type: String },
package/dist/types.d.ts CHANGED
@@ -185,6 +185,7 @@ export declare const zodAgentSchema: z.ZodObject<{
185
185
  temperature: z.ZodOptional<z.ZodNumber>;
186
186
  max_tokens: z.ZodOptional<z.ZodNumber>;
187
187
  elevenlabs_voice_id: z.ZodOptional<z.ZodString>;
188
+ voice_instructions: z.ZodOptional<z.ZodString>;
188
189
  message_count_limit: z.ZodOptional<z.ZodNumber>;
189
190
  is_editable: z.ZodOptional<z.ZodBoolean>;
190
191
  created_at: z.ZodOptional<z.ZodNumber>;
@@ -201,6 +202,7 @@ export declare const zodAgentSchema: z.ZodObject<{
201
202
  temperature?: number | undefined;
202
203
  max_tokens?: number | undefined;
203
204
  elevenlabs_voice_id?: string | undefined;
205
+ voice_instructions?: string | undefined;
204
206
  message_count_limit?: number | undefined;
205
207
  is_editable?: boolean | undefined;
206
208
  }, {
@@ -215,6 +217,7 @@ export declare const zodAgentSchema: z.ZodObject<{
215
217
  temperature?: number | undefined;
216
218
  max_tokens?: number | undefined;
217
219
  elevenlabs_voice_id?: string | undefined;
220
+ voice_instructions?: string | undefined;
218
221
  message_count_limit?: number | undefined;
219
222
  is_editable?: boolean | undefined;
220
223
  }>;
@@ -710,6 +713,7 @@ export declare const zodQuerySchema: z.ZodObject<{
710
713
  export declare const zodThreadSchema: z.ZodObject<{
711
714
  _id: z.ZodOptional<z.ZodString>;
712
715
  organization_id: z.ZodString;
716
+ user_id: z.ZodString;
713
717
  user: z.ZodObject<{
714
718
  user_id: z.ZodString;
715
719
  first_name: z.ZodOptional<z.ZodString>;
@@ -733,6 +737,7 @@ export declare const zodThreadSchema: z.ZodObject<{
733
737
  pre_defined_query_id: z.ZodOptional<z.ZodString>;
734
738
  messages_count: z.ZodOptional<z.ZodNumber>;
735
739
  }, "strip", z.ZodTypeAny, {
740
+ user_id: string;
736
741
  organization_id: string;
737
742
  user: {
738
743
  user_id: string;
@@ -748,6 +753,7 @@ export declare const zodThreadSchema: z.ZodObject<{
748
753
  pre_defined_query_id?: string | undefined;
749
754
  messages_count?: number | undefined;
750
755
  }, {
756
+ user_id: string;
751
757
  organization_id: string;
752
758
  user: {
753
759
  user_id: string;
package/dist/types.js CHANGED
@@ -86,6 +86,7 @@ exports.zodAgentSchema = zod_1.z.object({
86
86
  temperature: zod_1.z.number().min(0).max(1).optional(),
87
87
  max_tokens: zod_1.z.number().min(1).optional(),
88
88
  elevenlabs_voice_id: zod_1.z.string().optional(),
89
+ voice_instructions: zod_1.z.string().optional(),
89
90
  message_count_limit: zod_1.z.number().min(1).optional(),
90
91
  is_editable: zod_1.z.boolean().optional(),
91
92
  created_at: zod_1.z.number().optional(),
@@ -156,6 +157,7 @@ exports.zodQuerySchema = zod_1.z.object({
156
157
  exports.zodThreadSchema = zod_1.z.object({
157
158
  _id: zod_1.z.string().optional(),
158
159
  organization_id: zod_1.z.string(),
160
+ user_id: zod_1.z.string(),
159
161
  user: exports.zodClerkMinimalUserSchema,
160
162
  title: zod_1.z.string().min(1).max(200).optional(),
161
163
  description: zod_1.z.string().optional(),
package/index.ts CHANGED
@@ -57,12 +57,13 @@ export const AgentSchema = new Schema(
57
57
  organization_id: { type: String },
58
58
  title: { type: String, required: true, minlength: 1, maxlength: 100 },
59
59
  description: { type: String },
60
- instructions: { type: String, minlength: 1, maxlength: 1000 },
60
+ instructions: { type: String, minlength: 1, maxlength: 1500 },
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
+ voice_instructions: { type: String },
66
67
  is_editable: { type: Boolean, default: false },
67
68
  created_at: { type: Number },
68
69
  updated_at: { type: Number },
@@ -203,6 +204,7 @@ export const FullFileTextSchema = new Schema(
203
204
  export const ThreadSchema = new Schema(
204
205
  {
205
206
  organization_id: { type: String, required: true },
207
+ user_id: { type: String },
206
208
  user: { type: Object, required: true },
207
209
  title: { type: String, minlength: 1, maxlength: 200 },
208
210
  description: { type: String },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chatifai",
3
- "version": "1.0.37",
3
+ "version": "1.0.39",
4
4
  "description": "SDK for interacting with the Chatifai API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/types.ts CHANGED
@@ -91,6 +91,7 @@ export const zodAgentSchema = z.object({
91
91
  temperature: z.number().min(0).max(1).optional(),
92
92
  max_tokens: z.number().min(1).optional(),
93
93
  elevenlabs_voice_id: z.string().optional(),
94
+ voice_instructions: z.string().optional(),
94
95
  message_count_limit: z.number().min(1).optional(),
95
96
  is_editable: z.boolean().optional(),
96
97
  created_at: z.number().optional(),
@@ -166,6 +167,7 @@ export const zodQuerySchema = z.object({
166
167
  export const zodThreadSchema = z.object({
167
168
  _id: z.string().optional(),
168
169
  organization_id: z.string(),
170
+ user_id: z.string(),
169
171
  user: zodClerkMinimalUserSchema,
170
172
  title: z.string().min(1).max(200).optional(),
171
173
  description: z.string().optional(),