chatifai 1.0.48 → 1.0.50

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
@@ -242,6 +242,7 @@ export declare const ContextSchema: Schema<any, import("mongoose").Model<any, an
242
242
  } & {
243
243
  title: string;
244
244
  is_free_text: boolean;
245
+ free_text_is_rtl: boolean;
245
246
  is_active: boolean;
246
247
  processing_status: "pending" | "processing" | "completed" | "failed";
247
248
  type?: string | null | undefined;
@@ -273,6 +274,7 @@ export declare const ContextSchema: Schema<any, import("mongoose").Model<any, an
273
274
  } & {
274
275
  title: string;
275
276
  is_free_text: boolean;
277
+ free_text_is_rtl: boolean;
276
278
  is_active: boolean;
277
279
  processing_status: "pending" | "processing" | "completed" | "failed";
278
280
  type?: string | null | undefined;
@@ -304,6 +306,7 @@ export declare const ContextSchema: Schema<any, import("mongoose").Model<any, an
304
306
  } & {
305
307
  title: string;
306
308
  is_free_text: boolean;
309
+ free_text_is_rtl: boolean;
307
310
  is_active: boolean;
308
311
  processing_status: "pending" | "processing" | "completed" | "failed";
309
312
  type?: string | null | undefined;
@@ -1311,6 +1314,7 @@ export declare const ThreadSchema: Schema<any, import("mongoose").Model<any, any
1311
1314
  organization_id: string;
1312
1315
  user: any;
1313
1316
  messages_count: number;
1317
+ is_favorite: boolean;
1314
1318
  user_id?: string | null | undefined;
1315
1319
  title?: string | null | undefined;
1316
1320
  created_at?: number | null | undefined;
@@ -1324,6 +1328,7 @@ export declare const ThreadSchema: Schema<any, import("mongoose").Model<any, any
1324
1328
  organization_id: string;
1325
1329
  user: any;
1326
1330
  messages_count: number;
1331
+ is_favorite: boolean;
1327
1332
  user_id?: string | null | undefined;
1328
1333
  title?: string | null | undefined;
1329
1334
  created_at?: number | null | undefined;
@@ -1337,6 +1342,7 @@ export declare const ThreadSchema: Schema<any, import("mongoose").Model<any, any
1337
1342
  organization_id: string;
1338
1343
  user: any;
1339
1344
  messages_count: number;
1345
+ is_favorite: boolean;
1340
1346
  user_id?: string | null | undefined;
1341
1347
  title?: string | null | undefined;
1342
1348
  created_at?: number | null | undefined;
@@ -1364,9 +1370,9 @@ export declare const MessageSchema: Schema<any, import("mongoose").Model<any, an
1364
1370
  } & {
1365
1371
  organization_id: string;
1366
1372
  thread_id: string;
1373
+ is_favorite: boolean;
1367
1374
  role: "user" | "agent" | "system";
1368
1375
  content: string;
1369
- is_favorite: boolean;
1370
1376
  like: "liked" | "disliked" | "waiting_response";
1371
1377
  user_id?: string | null | undefined;
1372
1378
  created_at?: number | null | undefined;
@@ -1379,9 +1385,9 @@ export declare const MessageSchema: Schema<any, import("mongoose").Model<any, an
1379
1385
  } & {
1380
1386
  organization_id: string;
1381
1387
  thread_id: string;
1388
+ is_favorite: boolean;
1382
1389
  role: "user" | "agent" | "system";
1383
1390
  content: string;
1384
- is_favorite: boolean;
1385
1391
  like: "liked" | "disliked" | "waiting_response";
1386
1392
  user_id?: string | null | undefined;
1387
1393
  created_at?: number | null | undefined;
@@ -1394,9 +1400,9 @@ export declare const MessageSchema: Schema<any, import("mongoose").Model<any, an
1394
1400
  } & {
1395
1401
  organization_id: string;
1396
1402
  thread_id: string;
1403
+ is_favorite: boolean;
1397
1404
  role: "user" | "agent" | "system";
1398
1405
  content: string;
1399
- is_favorite: boolean;
1400
1406
  like: "liked" | "disliked" | "waiting_response";
1401
1407
  user_id?: string | null | undefined;
1402
1408
  created_at?: number | null | undefined;
package/dist/index.js CHANGED
@@ -100,6 +100,7 @@ exports.ContextSchema = new mongoose_1.Schema({
100
100
  free_text_editor_object: { type: String },
101
101
  free_text_description: { type: String },
102
102
  free_text_content: { type: String },
103
+ free_text_is_rtl: { type: Boolean, default: false },
103
104
  size: { type: Number },
104
105
  tokens: { type: Number },
105
106
  is_active: { type: Boolean, default: true },
@@ -207,6 +208,7 @@ exports.ThreadSchema = new mongoose_1.Schema({
207
208
  description: { type: String },
208
209
  pre_defined_query_id: { type: String },
209
210
  messages_count: { type: Number, default: 0 },
211
+ is_favorite: { type: Boolean, default: false },
210
212
  created_at: { type: Number },
211
213
  updated_at: { type: Number },
212
214
  }, {
package/dist/types.d.ts CHANGED
@@ -112,6 +112,7 @@ export declare const zodContextSchema: z.ZodObject<{
112
112
  free_text_editor_object: z.ZodOptional<z.ZodString>;
113
113
  free_text_description: z.ZodOptional<z.ZodString>;
114
114
  free_text_content: z.ZodOptional<z.ZodString>;
115
+ free_text_is_rtl: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
115
116
  size: z.ZodOptional<z.ZodNumber>;
116
117
  tokens: z.ZodOptional<z.ZodNumber>;
117
118
  is_active: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
@@ -151,6 +152,7 @@ export declare const zodContextSchema: z.ZodObject<{
151
152
  free_text_editor_object?: string | undefined;
152
153
  free_text_description?: string | undefined;
153
154
  free_text_content?: string | undefined;
155
+ free_text_is_rtl?: boolean | undefined;
154
156
  size?: number | undefined;
155
157
  tokens?: number | undefined;
156
158
  is_active?: boolean | undefined;
@@ -180,6 +182,7 @@ export declare const zodContextSchema: z.ZodObject<{
180
182
  free_text_editor_object?: string | undefined;
181
183
  free_text_description?: string | undefined;
182
184
  free_text_content?: string | undefined;
185
+ free_text_is_rtl?: boolean | undefined;
183
186
  size?: number | undefined;
184
187
  tokens?: number | undefined;
185
188
  is_active?: boolean | undefined;
@@ -395,6 +398,7 @@ export declare const zodPreDefinedQuerySchema: z.ZodObject<{
395
398
  free_text_editor_object: z.ZodOptional<z.ZodOptional<z.ZodString>>;
396
399
  free_text_description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
397
400
  free_text_content: z.ZodOptional<z.ZodOptional<z.ZodString>>;
401
+ free_text_is_rtl: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
398
402
  size: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
399
403
  tokens: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
400
404
  is_active: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
@@ -434,6 +438,7 @@ export declare const zodPreDefinedQuerySchema: z.ZodObject<{
434
438
  free_text_editor_object?: string | undefined;
435
439
  free_text_description?: string | undefined;
436
440
  free_text_content?: string | undefined;
441
+ free_text_is_rtl?: boolean | undefined;
437
442
  size?: number | undefined;
438
443
  tokens?: number | undefined;
439
444
  is_active?: boolean | undefined;
@@ -463,6 +468,7 @@ export declare const zodPreDefinedQuerySchema: z.ZodObject<{
463
468
  free_text_editor_object?: string | undefined;
464
469
  free_text_description?: string | undefined;
465
470
  free_text_content?: string | undefined;
471
+ free_text_is_rtl?: boolean | undefined;
466
472
  size?: number | undefined;
467
473
  tokens?: number | undefined;
468
474
  is_active?: boolean | undefined;
@@ -524,6 +530,7 @@ export declare const zodPreDefinedQuerySchema: z.ZodObject<{
524
530
  free_text_editor_object?: string | undefined;
525
531
  free_text_description?: string | undefined;
526
532
  free_text_content?: string | undefined;
533
+ free_text_is_rtl?: boolean | undefined;
527
534
  size?: number | undefined;
528
535
  tokens?: number | undefined;
529
536
  is_active?: boolean | undefined;
@@ -572,6 +579,7 @@ export declare const zodPreDefinedQuerySchema: z.ZodObject<{
572
579
  free_text_editor_object?: string | undefined;
573
580
  free_text_description?: string | undefined;
574
581
  free_text_content?: string | undefined;
582
+ free_text_is_rtl?: boolean | undefined;
575
583
  size?: number | undefined;
576
584
  tokens?: number | undefined;
577
585
  is_active?: boolean | undefined;
@@ -611,6 +619,7 @@ export declare const zodQuerySchema: z.ZodObject<{
611
619
  free_text_editor_object: z.ZodOptional<z.ZodOptional<z.ZodString>>;
612
620
  free_text_description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
613
621
  free_text_content: z.ZodOptional<z.ZodOptional<z.ZodString>>;
622
+ free_text_is_rtl: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
614
623
  size: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
615
624
  tokens: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
616
625
  is_active: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
@@ -650,6 +659,7 @@ export declare const zodQuerySchema: z.ZodObject<{
650
659
  free_text_editor_object?: string | undefined;
651
660
  free_text_description?: string | undefined;
652
661
  free_text_content?: string | undefined;
662
+ free_text_is_rtl?: boolean | undefined;
653
663
  size?: number | undefined;
654
664
  tokens?: number | undefined;
655
665
  is_active?: boolean | undefined;
@@ -679,6 +689,7 @@ export declare const zodQuerySchema: z.ZodObject<{
679
689
  free_text_editor_object?: string | undefined;
680
690
  free_text_description?: string | undefined;
681
691
  free_text_content?: string | undefined;
692
+ free_text_is_rtl?: boolean | undefined;
682
693
  size?: number | undefined;
683
694
  tokens?: number | undefined;
684
695
  is_active?: boolean | undefined;
@@ -741,6 +752,7 @@ export declare const zodQuerySchema: z.ZodObject<{
741
752
  free_text_editor_object?: string | undefined;
742
753
  free_text_description?: string | undefined;
743
754
  free_text_content?: string | undefined;
755
+ free_text_is_rtl?: boolean | undefined;
744
756
  size?: number | undefined;
745
757
  tokens?: number | undefined;
746
758
  is_active?: boolean | undefined;
@@ -785,6 +797,7 @@ export declare const zodQuerySchema: z.ZodObject<{
785
797
  free_text_editor_object?: string | undefined;
786
798
  free_text_description?: string | undefined;
787
799
  free_text_content?: string | undefined;
800
+ free_text_is_rtl?: boolean | undefined;
788
801
  size?: number | undefined;
789
802
  tokens?: number | undefined;
790
803
  is_active?: boolean | undefined;
@@ -829,6 +842,7 @@ export declare const zodThreadSchema: z.ZodObject<{
829
842
  updated_at: z.ZodOptional<z.ZodNumber>;
830
843
  pre_defined_query_id: z.ZodOptional<z.ZodString>;
831
844
  messages_count: z.ZodOptional<z.ZodNumber>;
845
+ is_favorite: z.ZodOptional<z.ZodBoolean>;
832
846
  }, "strip", z.ZodTypeAny, {
833
847
  user_id: string;
834
848
  organization_id: string;
@@ -845,6 +859,7 @@ export declare const zodThreadSchema: z.ZodObject<{
845
859
  description?: string | undefined;
846
860
  pre_defined_query_id?: string | undefined;
847
861
  messages_count?: number | undefined;
862
+ is_favorite?: boolean | undefined;
848
863
  }, {
849
864
  user_id: string;
850
865
  organization_id: string;
@@ -861,6 +876,7 @@ export declare const zodThreadSchema: z.ZodObject<{
861
876
  description?: string | undefined;
862
877
  pre_defined_query_id?: string | undefined;
863
878
  messages_count?: number | undefined;
879
+ is_favorite?: boolean | undefined;
864
880
  }>;
865
881
  export declare const zodMessageSchema: z.ZodObject<{
866
882
  _id: z.ZodOptional<z.ZodString>;
@@ -885,8 +901,8 @@ export declare const zodMessageSchema: z.ZodObject<{
885
901
  created_at?: number | undefined;
886
902
  updated_at?: number | undefined;
887
903
  metadata?: {} | undefined;
888
- agent_id?: string | undefined;
889
904
  is_favorite?: boolean | undefined;
905
+ agent_id?: string | undefined;
890
906
  like?: "liked" | "disliked" | "waiting_response" | undefined;
891
907
  }, {
892
908
  organization_id: string;
@@ -898,8 +914,8 @@ export declare const zodMessageSchema: z.ZodObject<{
898
914
  created_at?: number | undefined;
899
915
  updated_at?: number | undefined;
900
916
  metadata?: {} | undefined;
901
- agent_id?: string | undefined;
902
917
  is_favorite?: boolean | undefined;
918
+ agent_id?: string | undefined;
903
919
  like?: "liked" | "disliked" | "waiting_response" | undefined;
904
920
  }>;
905
921
  export declare const zodFreeTextSchema: z.ZodObject<{
package/dist/types.js CHANGED
@@ -63,6 +63,7 @@ exports.zodContextSchema = zod_1.z.object({
63
63
  free_text_editor_object: zod_1.z.string().optional(),
64
64
  free_text_description: zod_1.z.string().optional(),
65
65
  free_text_content: zod_1.z.string().optional(),
66
+ free_text_is_rtl: zod_1.z.boolean().default(false).optional(),
66
67
  size: zod_1.z.number().optional(),
67
68
  tokens: zod_1.z.number().optional(),
68
69
  is_active: zod_1.z.boolean().default(true).optional(),
@@ -176,6 +177,7 @@ exports.zodThreadSchema = zod_1.z.object({
176
177
  updated_at: zod_1.z.number().optional(),
177
178
  pre_defined_query_id: zod_1.z.string().optional(),
178
179
  messages_count: zod_1.z.number().optional(),
180
+ is_favorite: zod_1.z.boolean().optional(),
179
181
  });
180
182
  exports.zodMessageSchema = zod_1.z.object({
181
183
  _id: zod_1.z.string().optional(),
package/index.ts CHANGED
@@ -98,6 +98,7 @@ export const ContextSchema = new Schema(
98
98
  free_text_editor_object: { type: String },
99
99
  free_text_description: { type: String },
100
100
  free_text_content: { type: String },
101
+ free_text_is_rtl: { type: Boolean, default: false },
101
102
  size: { type: Number },
102
103
  tokens: { type: Number },
103
104
  is_active: { type: Boolean, default: true },
@@ -221,6 +222,7 @@ export const ThreadSchema = new Schema(
221
222
  description: { type: String },
222
223
  pre_defined_query_id: { type: String },
223
224
  messages_count: { type: Number, default: 0 },
225
+ is_favorite: { type: Boolean, default: false },
224
226
  created_at: { type: Number },
225
227
  updated_at: { type: Number },
226
228
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chatifai",
3
- "version": "1.0.48",
3
+ "version": "1.0.50",
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
@@ -66,6 +66,7 @@ export const zodContextSchema = z.object({
66
66
  free_text_editor_object: z.string().optional(),
67
67
  free_text_description: z.string().optional(),
68
68
  free_text_content: z.string().optional(),
69
+ free_text_is_rtl: z.boolean().default(false).optional(),
69
70
  size: z.number().optional(),
70
71
  tokens: z.number().optional(),
71
72
  is_active: z.boolean().default(true).optional(),
@@ -185,6 +186,7 @@ export const zodThreadSchema = z.object({
185
186
  updated_at: z.number().optional(),
186
187
  pre_defined_query_id: z.string().optional(),
187
188
  messages_count: z.number().optional(),
189
+ is_favorite: z.boolean().optional(),
188
190
  });
189
191
 
190
192
  export const zodMessageSchema = z.object({