chatifai 1.0.37 → 1.0.38
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 +3 -0
- package/dist/index.js +2 -1
- package/dist/types.d.ts +3 -0
- package/dist/types.js +1 -0
- package/index.ts +2 -1
- package/package.json +1 -1
- package/types.ts +1 -0
package/dist/index.d.ts
CHANGED
|
@@ -1275,6 +1275,7 @@ export declare const ThreadSchema: Schema<any, import("mongoose").Model<any, any
|
|
|
1275
1275
|
organization_id: string;
|
|
1276
1276
|
user: any;
|
|
1277
1277
|
messages_count: number;
|
|
1278
|
+
user_id?: string | null | undefined;
|
|
1278
1279
|
title?: string | null | undefined;
|
|
1279
1280
|
created_at?: number | null | undefined;
|
|
1280
1281
|
updated_at?: number | null | undefined;
|
|
@@ -1287,6 +1288,7 @@ export declare const ThreadSchema: Schema<any, import("mongoose").Model<any, any
|
|
|
1287
1288
|
organization_id: string;
|
|
1288
1289
|
user: any;
|
|
1289
1290
|
messages_count: number;
|
|
1291
|
+
user_id?: string | null | undefined;
|
|
1290
1292
|
title?: string | null | undefined;
|
|
1291
1293
|
created_at?: number | null | undefined;
|
|
1292
1294
|
updated_at?: number | null | undefined;
|
|
@@ -1299,6 +1301,7 @@ export declare const ThreadSchema: Schema<any, import("mongoose").Model<any, any
|
|
|
1299
1301
|
organization_id: string;
|
|
1300
1302
|
user: any;
|
|
1301
1303
|
messages_count: number;
|
|
1304
|
+
user_id?: string | null | undefined;
|
|
1302
1305
|
title?: string | null | undefined;
|
|
1303
1306
|
created_at?: number | null | undefined;
|
|
1304
1307
|
updated_at?: number | null | undefined;
|
package/dist/index.js
CHANGED
|
@@ -63,7 +63,7 @@ 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:
|
|
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 },
|
|
@@ -189,6 +189,7 @@ exports.FullFileTextSchema = new mongoose_1.Schema({
|
|
|
189
189
|
});
|
|
190
190
|
exports.ThreadSchema = new mongoose_1.Schema({
|
|
191
191
|
organization_id: { type: String, required: true },
|
|
192
|
+
user_id: { type: String },
|
|
192
193
|
user: { type: Object, required: true },
|
|
193
194
|
title: { type: String, minlength: 1, maxlength: 200 },
|
|
194
195
|
description: { type: String },
|
package/dist/types.d.ts
CHANGED
|
@@ -710,6 +710,7 @@ export declare const zodQuerySchema: z.ZodObject<{
|
|
|
710
710
|
export declare const zodThreadSchema: z.ZodObject<{
|
|
711
711
|
_id: z.ZodOptional<z.ZodString>;
|
|
712
712
|
organization_id: z.ZodString;
|
|
713
|
+
user_id: z.ZodString;
|
|
713
714
|
user: z.ZodObject<{
|
|
714
715
|
user_id: z.ZodString;
|
|
715
716
|
first_name: z.ZodOptional<z.ZodString>;
|
|
@@ -733,6 +734,7 @@ export declare const zodThreadSchema: z.ZodObject<{
|
|
|
733
734
|
pre_defined_query_id: z.ZodOptional<z.ZodString>;
|
|
734
735
|
messages_count: z.ZodOptional<z.ZodNumber>;
|
|
735
736
|
}, "strip", z.ZodTypeAny, {
|
|
737
|
+
user_id: string;
|
|
736
738
|
organization_id: string;
|
|
737
739
|
user: {
|
|
738
740
|
user_id: string;
|
|
@@ -748,6 +750,7 @@ export declare const zodThreadSchema: z.ZodObject<{
|
|
|
748
750
|
pre_defined_query_id?: string | undefined;
|
|
749
751
|
messages_count?: number | undefined;
|
|
750
752
|
}, {
|
|
753
|
+
user_id: string;
|
|
751
754
|
organization_id: string;
|
|
752
755
|
user: {
|
|
753
756
|
user_id: string;
|
package/dist/types.js
CHANGED
|
@@ -156,6 +156,7 @@ exports.zodQuerySchema = zod_1.z.object({
|
|
|
156
156
|
exports.zodThreadSchema = zod_1.z.object({
|
|
157
157
|
_id: zod_1.z.string().optional(),
|
|
158
158
|
organization_id: zod_1.z.string(),
|
|
159
|
+
user_id: zod_1.z.string(),
|
|
159
160
|
user: exports.zodClerkMinimalUserSchema,
|
|
160
161
|
title: zod_1.z.string().min(1).max(200).optional(),
|
|
161
162
|
description: zod_1.z.string().optional(),
|
package/index.ts
CHANGED
|
@@ -57,7 +57,7 @@ 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:
|
|
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 },
|
|
@@ -203,6 +203,7 @@ export const FullFileTextSchema = new Schema(
|
|
|
203
203
|
export const ThreadSchema = new Schema(
|
|
204
204
|
{
|
|
205
205
|
organization_id: { type: String, required: true },
|
|
206
|
+
user_id: { type: String },
|
|
206
207
|
user: { type: Object, required: true },
|
|
207
208
|
title: { type: String, minlength: 1, maxlength: 200 },
|
|
208
209
|
description: { type: String },
|
package/package.json
CHANGED
package/types.ts
CHANGED
|
@@ -166,6 +166,7 @@ export const zodQuerySchema = z.object({
|
|
|
166
166
|
export const zodThreadSchema = z.object({
|
|
167
167
|
_id: z.string().optional(),
|
|
168
168
|
organization_id: z.string(),
|
|
169
|
+
user_id: z.string(),
|
|
169
170
|
user: zodClerkMinimalUserSchema,
|
|
170
171
|
title: z.string().min(1).max(200).optional(),
|
|
171
172
|
description: z.string().optional(),
|