chatifai 1.0.27 → 1.0.28
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 +1 -0
- package/dist/types.d.ts +3 -0
- package/dist/types.js +1 -0
- package/index.ts +1 -0
- package/package.json +1 -1
- package/types.ts +1 -0
package/dist/index.d.ts
CHANGED
|
@@ -1327,6 +1327,7 @@ export declare const MessageSchema: Schema<any, import("mongoose").Model<any, an
|
|
|
1327
1327
|
thread_id: string;
|
|
1328
1328
|
role: "user" | "agent" | "system";
|
|
1329
1329
|
content: string;
|
|
1330
|
+
is_favorite: boolean;
|
|
1330
1331
|
created_at?: number | null | undefined;
|
|
1331
1332
|
updated_at?: number | null | undefined;
|
|
1332
1333
|
user_id?: string | null | undefined;
|
|
@@ -1339,6 +1340,7 @@ export declare const MessageSchema: Schema<any, import("mongoose").Model<any, an
|
|
|
1339
1340
|
thread_id: string;
|
|
1340
1341
|
role: "user" | "agent" | "system";
|
|
1341
1342
|
content: string;
|
|
1343
|
+
is_favorite: boolean;
|
|
1342
1344
|
created_at?: number | null | undefined;
|
|
1343
1345
|
updated_at?: number | null | undefined;
|
|
1344
1346
|
user_id?: string | null | undefined;
|
|
@@ -1351,6 +1353,7 @@ export declare const MessageSchema: Schema<any, import("mongoose").Model<any, an
|
|
|
1351
1353
|
thread_id: string;
|
|
1352
1354
|
role: "user" | "agent" | "system";
|
|
1353
1355
|
content: string;
|
|
1356
|
+
is_favorite: boolean;
|
|
1354
1357
|
created_at?: number | null | undefined;
|
|
1355
1358
|
updated_at?: number | null | undefined;
|
|
1356
1359
|
user_id?: string | null | undefined;
|
package/dist/index.js
CHANGED
|
@@ -207,6 +207,7 @@ exports.MessageSchema = new mongoose_1.Schema({
|
|
|
207
207
|
user_id: { type: String },
|
|
208
208
|
agent_id: { type: String },
|
|
209
209
|
content: { type: String, required: true },
|
|
210
|
+
is_favorite: { type: Boolean, default: false },
|
|
210
211
|
role: { type: String, enum: ['user', 'agent', 'system'], required: true },
|
|
211
212
|
created_at: { type: Number },
|
|
212
213
|
updated_at: { type: Number },
|
package/dist/types.d.ts
CHANGED
|
@@ -647,6 +647,7 @@ export declare const zodMessageSchema: z.ZodObject<{
|
|
|
647
647
|
agent_id: z.ZodOptional<z.ZodString>;
|
|
648
648
|
role: z.ZodEnum<["user", "agent", "system"]>;
|
|
649
649
|
content: z.ZodString;
|
|
650
|
+
is_favorite: z.ZodOptional<z.ZodBoolean>;
|
|
650
651
|
created_at: z.ZodOptional<z.ZodNumber>;
|
|
651
652
|
updated_at: z.ZodOptional<z.ZodNumber>;
|
|
652
653
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -659,6 +660,7 @@ export declare const zodMessageSchema: z.ZodObject<{
|
|
|
659
660
|
updated_at?: number | undefined;
|
|
660
661
|
user_id?: string | undefined;
|
|
661
662
|
agent_id?: string | undefined;
|
|
663
|
+
is_favorite?: boolean | undefined;
|
|
662
664
|
}, {
|
|
663
665
|
organization_id: string;
|
|
664
666
|
thread_id: string;
|
|
@@ -669,6 +671,7 @@ export declare const zodMessageSchema: z.ZodObject<{
|
|
|
669
671
|
updated_at?: number | undefined;
|
|
670
672
|
user_id?: string | undefined;
|
|
671
673
|
agent_id?: string | undefined;
|
|
674
|
+
is_favorite?: boolean | undefined;
|
|
672
675
|
}>;
|
|
673
676
|
export type EventAttributeType = {
|
|
674
677
|
http_request: {
|
package/dist/types.js
CHANGED
|
@@ -171,6 +171,7 @@ exports.zodMessageSchema = zod_1.z.object({
|
|
|
171
171
|
agent_id: zod_1.z.string().optional(),
|
|
172
172
|
role: zod_1.z.enum(['user', 'agent', 'system']),
|
|
173
173
|
content: zod_1.z.string(),
|
|
174
|
+
is_favorite: zod_1.z.boolean().optional(),
|
|
174
175
|
created_at: zod_1.z.number().optional(),
|
|
175
176
|
updated_at: zod_1.z.number().optional(),
|
|
176
177
|
});
|
package/index.ts
CHANGED
|
@@ -225,6 +225,7 @@ export const MessageSchema = new Schema(
|
|
|
225
225
|
user_id: { type: String },
|
|
226
226
|
agent_id: { type: String },
|
|
227
227
|
content: { type: String, required: true },
|
|
228
|
+
is_favorite: { type: Boolean, default: false },
|
|
228
229
|
role: { type: String, enum: ['user', 'agent', 'system'], required: true },
|
|
229
230
|
created_at: { type: Number },
|
|
230
231
|
updated_at: { type: Number },
|
package/package.json
CHANGED
package/types.ts
CHANGED
|
@@ -180,6 +180,7 @@ export const zodMessageSchema = z.object({
|
|
|
180
180
|
agent_id: z.string().optional(),
|
|
181
181
|
role: z.enum(['user', 'agent', 'system']),
|
|
182
182
|
content: z.string(),
|
|
183
|
+
is_favorite: z.boolean().optional(),
|
|
183
184
|
created_at: z.number().optional(),
|
|
184
185
|
updated_at: z.number().optional(),
|
|
185
186
|
});
|