chatifai 1.0.44 → 1.0.46
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 -0
- package/dist/index.js +2 -0
- package/dist/types.d.ts +6 -0
- package/dist/types.js +2 -0
- package/index.ts +11 -9
- package/package.json +1 -1
- package/types.ts +2 -0
package/dist/index.d.ts
CHANGED
|
@@ -165,6 +165,7 @@ export declare const AgentSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
165
165
|
is_editable: boolean;
|
|
166
166
|
is_hard_to_copy: boolean;
|
|
167
167
|
has_resources: boolean;
|
|
168
|
+
is_rtl: boolean;
|
|
168
169
|
created_at?: number | null | undefined;
|
|
169
170
|
updated_at?: number | null | undefined;
|
|
170
171
|
organization_id?: string | null | undefined;
|
|
@@ -173,6 +174,7 @@ export declare const AgentSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
173
174
|
instructions?: string | null | undefined;
|
|
174
175
|
temperature?: number | null | undefined;
|
|
175
176
|
elevenlabs_voice_id?: string | null | undefined;
|
|
177
|
+
elevenlabs_agent_id?: string | null | undefined;
|
|
176
178
|
voice_instructions?: string | null | undefined;
|
|
177
179
|
message_count_limit?: number | null | undefined;
|
|
178
180
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
@@ -185,6 +187,7 @@ export declare const AgentSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
185
187
|
is_editable: boolean;
|
|
186
188
|
is_hard_to_copy: boolean;
|
|
187
189
|
has_resources: boolean;
|
|
190
|
+
is_rtl: boolean;
|
|
188
191
|
created_at?: number | null | undefined;
|
|
189
192
|
updated_at?: number | null | undefined;
|
|
190
193
|
organization_id?: string | null | undefined;
|
|
@@ -193,6 +196,7 @@ export declare const AgentSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
193
196
|
instructions?: string | null | undefined;
|
|
194
197
|
temperature?: number | null | undefined;
|
|
195
198
|
elevenlabs_voice_id?: string | null | undefined;
|
|
199
|
+
elevenlabs_agent_id?: string | null | undefined;
|
|
196
200
|
voice_instructions?: string | null | undefined;
|
|
197
201
|
message_count_limit?: number | null | undefined;
|
|
198
202
|
}>, {}> & import("mongoose").FlatRecord<{
|
|
@@ -205,6 +209,7 @@ export declare const AgentSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
205
209
|
is_editable: boolean;
|
|
206
210
|
is_hard_to_copy: boolean;
|
|
207
211
|
has_resources: boolean;
|
|
212
|
+
is_rtl: boolean;
|
|
208
213
|
created_at?: number | null | undefined;
|
|
209
214
|
updated_at?: number | null | undefined;
|
|
210
215
|
organization_id?: string | null | undefined;
|
|
@@ -213,6 +218,7 @@ export declare const AgentSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
213
218
|
instructions?: string | null | undefined;
|
|
214
219
|
temperature?: number | null | undefined;
|
|
215
220
|
elevenlabs_voice_id?: string | null | undefined;
|
|
221
|
+
elevenlabs_agent_id?: string | null | undefined;
|
|
216
222
|
voice_instructions?: string | null | undefined;
|
|
217
223
|
message_count_limit?: number | null | undefined;
|
|
218
224
|
}> & {
|
package/dist/index.js
CHANGED
|
@@ -68,12 +68,14 @@ exports.AgentSchema = new mongoose_1.Schema({
|
|
|
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
|
+
elevenlabs_agent_id: { type: String },
|
|
71
72
|
message_count_limit: { type: Number, min: 1 },
|
|
72
73
|
voice_instructions: { type: String },
|
|
73
74
|
is_editable: { type: Boolean, default: false },
|
|
74
75
|
is_hard_to_copy: { type: Boolean, default: false },
|
|
75
76
|
has_resources: { type: Boolean, default: false },
|
|
76
77
|
file_search_store_name: { type: String },
|
|
78
|
+
is_rtl: { type: Boolean, default: false },
|
|
77
79
|
created_at: { type: Number },
|
|
78
80
|
updated_at: { type: Number },
|
|
79
81
|
}, {
|
package/dist/types.d.ts
CHANGED
|
@@ -191,12 +191,14 @@ export declare const zodAgentSchema: z.ZodObject<{
|
|
|
191
191
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
192
192
|
max_tokens: z.ZodOptional<z.ZodNumber>;
|
|
193
193
|
elevenlabs_voice_id: z.ZodOptional<z.ZodString>;
|
|
194
|
+
elevenlabs_agent_id: z.ZodOptional<z.ZodString>;
|
|
194
195
|
voice_instructions: z.ZodOptional<z.ZodString>;
|
|
195
196
|
message_count_limit: z.ZodOptional<z.ZodNumber>;
|
|
196
197
|
is_editable: z.ZodOptional<z.ZodBoolean>;
|
|
197
198
|
is_hard_to_copy: z.ZodOptional<z.ZodBoolean>;
|
|
198
199
|
has_resources: z.ZodOptional<z.ZodBoolean>;
|
|
199
200
|
file_search_store_name: z.ZodOptional<z.ZodString>;
|
|
201
|
+
is_rtl: z.ZodOptional<z.ZodBoolean>;
|
|
200
202
|
created_at: z.ZodOptional<z.ZodNumber>;
|
|
201
203
|
updated_at: z.ZodOptional<z.ZodNumber>;
|
|
202
204
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -212,11 +214,13 @@ export declare const zodAgentSchema: z.ZodObject<{
|
|
|
212
214
|
temperature?: number | undefined;
|
|
213
215
|
max_tokens?: number | undefined;
|
|
214
216
|
elevenlabs_voice_id?: string | undefined;
|
|
217
|
+
elevenlabs_agent_id?: string | undefined;
|
|
215
218
|
voice_instructions?: string | undefined;
|
|
216
219
|
message_count_limit?: number | undefined;
|
|
217
220
|
is_editable?: boolean | undefined;
|
|
218
221
|
is_hard_to_copy?: boolean | undefined;
|
|
219
222
|
has_resources?: boolean | undefined;
|
|
223
|
+
is_rtl?: boolean | undefined;
|
|
220
224
|
}, {
|
|
221
225
|
title: string;
|
|
222
226
|
instructions: string;
|
|
@@ -230,11 +234,13 @@ export declare const zodAgentSchema: z.ZodObject<{
|
|
|
230
234
|
temperature?: number | undefined;
|
|
231
235
|
max_tokens?: number | undefined;
|
|
232
236
|
elevenlabs_voice_id?: string | undefined;
|
|
237
|
+
elevenlabs_agent_id?: string | undefined;
|
|
233
238
|
voice_instructions?: string | undefined;
|
|
234
239
|
message_count_limit?: number | undefined;
|
|
235
240
|
is_editable?: boolean | undefined;
|
|
236
241
|
is_hard_to_copy?: boolean | undefined;
|
|
237
242
|
has_resources?: boolean | undefined;
|
|
243
|
+
is_rtl?: boolean | undefined;
|
|
238
244
|
}>;
|
|
239
245
|
export declare const zodChunkSchema: z.ZodObject<{
|
|
240
246
|
_id: z.ZodOptional<z.ZodString>;
|
package/dist/types.js
CHANGED
|
@@ -88,12 +88,14 @@ exports.zodAgentSchema = zod_1.z.object({
|
|
|
88
88
|
temperature: zod_1.z.number().min(0).max(1).optional(),
|
|
89
89
|
max_tokens: zod_1.z.number().min(1).optional(),
|
|
90
90
|
elevenlabs_voice_id: zod_1.z.string().optional(),
|
|
91
|
+
elevenlabs_agent_id: zod_1.z.string().optional(),
|
|
91
92
|
voice_instructions: zod_1.z.string().optional(),
|
|
92
93
|
message_count_limit: zod_1.z.number().min(1).optional(),
|
|
93
94
|
is_editable: zod_1.z.boolean().optional(),
|
|
94
95
|
is_hard_to_copy: zod_1.z.boolean().optional(),
|
|
95
96
|
has_resources: zod_1.z.boolean().optional(),
|
|
96
97
|
file_search_store_name: zod_1.z.string().optional(),
|
|
98
|
+
is_rtl: zod_1.z.boolean().optional(),
|
|
97
99
|
created_at: zod_1.z.number().optional(),
|
|
98
100
|
updated_at: zod_1.z.number().optional(),
|
|
99
101
|
});
|
package/index.ts
CHANGED
|
@@ -25,7 +25,7 @@ export const OrganizationSchema = new Schema(
|
|
|
25
25
|
timestamps: true,
|
|
26
26
|
id: true,
|
|
27
27
|
// encryptionType: 'csfle',
|
|
28
|
-
}
|
|
28
|
+
},
|
|
29
29
|
);
|
|
30
30
|
|
|
31
31
|
export const UserSchema = new Schema(
|
|
@@ -49,7 +49,7 @@ export const UserSchema = new Schema(
|
|
|
49
49
|
timestamps: true,
|
|
50
50
|
id: true,
|
|
51
51
|
// encryptionType: 'csfle',
|
|
52
|
-
}
|
|
52
|
+
},
|
|
53
53
|
);
|
|
54
54
|
|
|
55
55
|
export const AgentSchema = new Schema(
|
|
@@ -62,12 +62,14 @@ export const AgentSchema = new Schema(
|
|
|
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
|
+
elevenlabs_agent_id: { type: String },
|
|
65
66
|
message_count_limit: { type: Number, min: 1 },
|
|
66
67
|
voice_instructions: { type: String },
|
|
67
68
|
is_editable: { type: Boolean, default: false },
|
|
68
69
|
is_hard_to_copy: { type: Boolean, default: false },
|
|
69
70
|
has_resources: { type: Boolean, default: false },
|
|
70
71
|
file_search_store_name: { type: String },
|
|
72
|
+
is_rtl: { type: Boolean, default: false },
|
|
71
73
|
created_at: { type: Number },
|
|
72
74
|
updated_at: { type: Number },
|
|
73
75
|
},
|
|
@@ -78,7 +80,7 @@ export const AgentSchema = new Schema(
|
|
|
78
80
|
timestamps: true,
|
|
79
81
|
id: true,
|
|
80
82
|
// encryptionType: 'csfle',
|
|
81
|
-
}
|
|
83
|
+
},
|
|
82
84
|
);
|
|
83
85
|
|
|
84
86
|
export const ContextSchema = new Schema(
|
|
@@ -118,7 +120,7 @@ export const ContextSchema = new Schema(
|
|
|
118
120
|
timestamps: true,
|
|
119
121
|
id: true,
|
|
120
122
|
// encryptionType: 'csfle',
|
|
121
|
-
}
|
|
123
|
+
},
|
|
122
124
|
);
|
|
123
125
|
|
|
124
126
|
export const ChunkSchema = new Schema(
|
|
@@ -157,7 +159,7 @@ export const ChunkSchema = new Schema(
|
|
|
157
159
|
timestamps: true,
|
|
158
160
|
id: true,
|
|
159
161
|
// encryptionType: 'csfle',
|
|
160
|
-
}
|
|
162
|
+
},
|
|
161
163
|
);
|
|
162
164
|
|
|
163
165
|
export const PreDefinedQuerySchema = new Schema(
|
|
@@ -187,7 +189,7 @@ export const PreDefinedQuerySchema = new Schema(
|
|
|
187
189
|
timestamps: true,
|
|
188
190
|
id: true,
|
|
189
191
|
// encryptionType: 'csfle',
|
|
190
|
-
}
|
|
192
|
+
},
|
|
191
193
|
);
|
|
192
194
|
|
|
193
195
|
export const FullFileTextSchema = new Schema(
|
|
@@ -203,7 +205,7 @@ export const FullFileTextSchema = new Schema(
|
|
|
203
205
|
timestamps: true,
|
|
204
206
|
id: true,
|
|
205
207
|
// encryptionType: 'csfle',
|
|
206
|
-
}
|
|
208
|
+
},
|
|
207
209
|
);
|
|
208
210
|
|
|
209
211
|
export const ThreadSchema = new Schema(
|
|
@@ -225,7 +227,7 @@ export const ThreadSchema = new Schema(
|
|
|
225
227
|
timestamps: true,
|
|
226
228
|
id: true,
|
|
227
229
|
// encryptionType: 'csfle',
|
|
228
|
-
}
|
|
230
|
+
},
|
|
229
231
|
);
|
|
230
232
|
|
|
231
233
|
export const MessageSchema = new Schema(
|
|
@@ -253,5 +255,5 @@ export const MessageSchema = new Schema(
|
|
|
253
255
|
timestamps: true,
|
|
254
256
|
id: true,
|
|
255
257
|
// encryptionType: 'csfle',
|
|
256
|
-
}
|
|
258
|
+
},
|
|
257
259
|
);
|
package/package.json
CHANGED
package/types.ts
CHANGED
|
@@ -92,12 +92,14 @@ export const zodAgentSchema = z.object({
|
|
|
92
92
|
temperature: z.number().min(0).max(1).optional(),
|
|
93
93
|
max_tokens: z.number().min(1).optional(),
|
|
94
94
|
elevenlabs_voice_id: z.string().optional(),
|
|
95
|
+
elevenlabs_agent_id: z.string().optional(),
|
|
95
96
|
voice_instructions: z.string().optional(),
|
|
96
97
|
message_count_limit: z.number().min(1).optional(),
|
|
97
98
|
is_editable: z.boolean().optional(),
|
|
98
99
|
is_hard_to_copy: z.boolean().optional(),
|
|
99
100
|
has_resources: z.boolean().optional(),
|
|
100
101
|
file_search_store_name: z.string().optional(),
|
|
102
|
+
is_rtl: z.boolean().optional(),
|
|
101
103
|
created_at: z.number().optional(),
|
|
102
104
|
updated_at: z.number().optional(),
|
|
103
105
|
});
|