chatifai 1.0.33 → 1.0.34

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
@@ -1329,6 +1329,7 @@ export declare const MessageSchema: Schema<any, import("mongoose").Model<any, an
1329
1329
  user_id?: string | null | undefined;
1330
1330
  created_at?: number | null | undefined;
1331
1331
  updated_at?: number | null | undefined;
1332
+ metadata?: any;
1332
1333
  agent_id?: string | null | undefined;
1333
1334
  }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
1334
1335
  createdAt: NativeDate;
@@ -1343,6 +1344,7 @@ export declare const MessageSchema: Schema<any, import("mongoose").Model<any, an
1343
1344
  user_id?: string | null | undefined;
1344
1345
  created_at?: number | null | undefined;
1345
1346
  updated_at?: number | null | undefined;
1347
+ metadata?: any;
1346
1348
  agent_id?: string | null | undefined;
1347
1349
  }>, {}> & import("mongoose").FlatRecord<{
1348
1350
  createdAt: NativeDate;
@@ -1357,6 +1359,7 @@ export declare const MessageSchema: Schema<any, import("mongoose").Model<any, an
1357
1359
  user_id?: string | null | undefined;
1358
1360
  created_at?: number | null | undefined;
1359
1361
  updated_at?: number | null | undefined;
1362
+ metadata?: any;
1360
1363
  agent_id?: string | null | undefined;
1361
1364
  }> & {
1362
1365
  _id: import("mongoose").Types.ObjectId;
package/dist/index.js CHANGED
@@ -219,6 +219,7 @@ exports.MessageSchema = new mongoose_1.Schema({
219
219
  role: { type: String, enum: ['user', 'agent', 'system'], required: true },
220
220
  created_at: { type: Number },
221
221
  updated_at: { type: Number },
222
+ metadata: { type: Object },
222
223
  }, {
223
224
  versionKey: false,
224
225
  toJSON: { virtuals: true },
package/dist/types.d.ts CHANGED
@@ -772,6 +772,7 @@ export declare const zodMessageSchema: z.ZodObject<{
772
772
  like: z.ZodOptional<z.ZodEnum<["liked", "disliked", "waiting_response"]>>;
773
773
  created_at: z.ZodOptional<z.ZodNumber>;
774
774
  updated_at: z.ZodOptional<z.ZodNumber>;
775
+ metadata: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
775
776
  }, "strip", z.ZodTypeAny, {
776
777
  organization_id: string;
777
778
  thread_id: string;
@@ -781,6 +782,7 @@ export declare const zodMessageSchema: z.ZodObject<{
781
782
  _id?: string | undefined;
782
783
  created_at?: number | undefined;
783
784
  updated_at?: number | undefined;
785
+ metadata?: {} | undefined;
784
786
  agent_id?: string | undefined;
785
787
  is_favorite?: boolean | undefined;
786
788
  like?: "liked" | "disliked" | "waiting_response" | undefined;
@@ -793,6 +795,7 @@ export declare const zodMessageSchema: z.ZodObject<{
793
795
  _id?: string | undefined;
794
796
  created_at?: number | undefined;
795
797
  updated_at?: number | undefined;
798
+ metadata?: {} | undefined;
796
799
  agent_id?: string | undefined;
797
800
  is_favorite?: boolean | undefined;
798
801
  like?: "liked" | "disliked" | "waiting_response" | undefined;
package/dist/types.js CHANGED
@@ -175,6 +175,7 @@ exports.zodMessageSchema = zod_1.z.object({
175
175
  like: zod_1.z.enum(['liked', 'disliked', 'waiting_response']).optional(),
176
176
  created_at: zod_1.z.number().optional(),
177
177
  updated_at: zod_1.z.number().optional(),
178
+ metadata: zod_1.z.object({}).optional(),
178
179
  });
179
180
  var FileType;
180
181
  (function (FileType) {
package/index.ts CHANGED
@@ -237,6 +237,7 @@ export const MessageSchema = new Schema(
237
237
  role: { type: String, enum: ['user', 'agent', 'system'], required: true },
238
238
  created_at: { type: Number },
239
239
  updated_at: { type: Number },
240
+ metadata: { type: Object },
240
241
  },
241
242
  {
242
243
  versionKey: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chatifai",
3
- "version": "1.0.33",
3
+ "version": "1.0.34",
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
@@ -185,6 +185,7 @@ export const zodMessageSchema = z.object({
185
185
  like: z.enum(['liked', 'disliked', 'waiting_response']).optional(), // 1 for like, -1 for dislike
186
186
  created_at: z.number().optional(),
187
187
  updated_at: z.number().optional(),
188
+ metadata: z.object({}).optional(),
188
189
  });
189
190
 
190
191
  export type EventAttributeType = {