chatifai 1.0.40 → 1.0.42
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 +16 -0
- package/dist/types.js +2 -0
- package/index.ts +2 -0
- package/package.json +1 -1
- package/types.ts +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -164,6 +164,7 @@ export declare const AgentSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
164
164
|
max_tokens: number;
|
|
165
165
|
is_editable: boolean;
|
|
166
166
|
is_hard_to_copy: boolean;
|
|
167
|
+
has_resources: boolean;
|
|
167
168
|
created_at?: number | null | undefined;
|
|
168
169
|
updated_at?: number | null | undefined;
|
|
169
170
|
organization_id?: string | null | undefined;
|
|
@@ -182,6 +183,7 @@ export declare const AgentSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
182
183
|
max_tokens: number;
|
|
183
184
|
is_editable: boolean;
|
|
184
185
|
is_hard_to_copy: boolean;
|
|
186
|
+
has_resources: boolean;
|
|
185
187
|
created_at?: number | null | undefined;
|
|
186
188
|
updated_at?: number | null | undefined;
|
|
187
189
|
organization_id?: string | null | undefined;
|
|
@@ -200,6 +202,7 @@ export declare const AgentSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
200
202
|
max_tokens: number;
|
|
201
203
|
is_editable: boolean;
|
|
202
204
|
is_hard_to_copy: boolean;
|
|
205
|
+
has_resources: boolean;
|
|
203
206
|
created_at?: number | null | undefined;
|
|
204
207
|
updated_at?: number | null | undefined;
|
|
205
208
|
organization_id?: string | null | undefined;
|
|
@@ -249,6 +252,7 @@ export declare const ContextSchema: Schema<any, import("mongoose").Model<any, an
|
|
|
249
252
|
email?: string | null | undefined;
|
|
250
253
|
} | null | undefined;
|
|
251
254
|
bucket_name?: string | null | undefined;
|
|
255
|
+
file_search_store_name?: string | null | undefined;
|
|
252
256
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
253
257
|
createdAt: NativeDate;
|
|
254
258
|
updatedAt: NativeDate;
|
|
@@ -274,6 +278,7 @@ export declare const ContextSchema: Schema<any, import("mongoose").Model<any, an
|
|
|
274
278
|
email?: string | null | undefined;
|
|
275
279
|
} | null | undefined;
|
|
276
280
|
bucket_name?: string | null | undefined;
|
|
281
|
+
file_search_store_name?: string | null | undefined;
|
|
277
282
|
}>, {}> & import("mongoose").FlatRecord<{
|
|
278
283
|
createdAt: NativeDate;
|
|
279
284
|
updatedAt: NativeDate;
|
|
@@ -299,6 +304,7 @@ export declare const ContextSchema: Schema<any, import("mongoose").Model<any, an
|
|
|
299
304
|
email?: string | null | undefined;
|
|
300
305
|
} | null | undefined;
|
|
301
306
|
bucket_name?: string | null | undefined;
|
|
307
|
+
file_search_store_name?: string | null | undefined;
|
|
302
308
|
}> & {
|
|
303
309
|
_id: import("mongoose").Types.ObjectId;
|
|
304
310
|
} & {
|
package/dist/index.js
CHANGED
|
@@ -72,6 +72,7 @@ exports.AgentSchema = new mongoose_1.Schema({
|
|
|
72
72
|
voice_instructions: { type: String },
|
|
73
73
|
is_editable: { type: Boolean, default: false },
|
|
74
74
|
is_hard_to_copy: { type: Boolean, default: false },
|
|
75
|
+
has_resources: { type: Boolean, default: false },
|
|
75
76
|
created_at: { type: Number },
|
|
76
77
|
updated_at: { type: Number },
|
|
77
78
|
}, {
|
|
@@ -106,6 +107,7 @@ exports.ContextSchema = new mongoose_1.Schema({
|
|
|
106
107
|
enum: ['pending', 'processing', 'completed', 'failed'],
|
|
107
108
|
default: 'pending',
|
|
108
109
|
},
|
|
110
|
+
file_search_store_name: { type: String },
|
|
109
111
|
created_at: { type: Number },
|
|
110
112
|
updated_at: { type: Number },
|
|
111
113
|
}, {
|
package/dist/types.d.ts
CHANGED
|
@@ -128,6 +128,7 @@ export declare const zodContextSchema: z.ZodObject<{
|
|
|
128
128
|
}>>;
|
|
129
129
|
bucket_name: z.ZodOptional<z.ZodString>;
|
|
130
130
|
processing_status: z.ZodOptional<z.ZodEnum<["pending", "processing", "completed", "failed"]>>;
|
|
131
|
+
file_search_store_name: z.ZodOptional<z.ZodString>;
|
|
131
132
|
}, "strip", z.ZodTypeAny, {
|
|
132
133
|
title: string;
|
|
133
134
|
type?: string | undefined;
|
|
@@ -151,6 +152,7 @@ export declare const zodContextSchema: z.ZodObject<{
|
|
|
151
152
|
} | undefined;
|
|
152
153
|
bucket_name?: string | undefined;
|
|
153
154
|
processing_status?: "pending" | "processing" | "completed" | "failed" | undefined;
|
|
155
|
+
file_search_store_name?: string | undefined;
|
|
154
156
|
}, {
|
|
155
157
|
title: string;
|
|
156
158
|
type?: string | undefined;
|
|
@@ -174,6 +176,7 @@ export declare const zodContextSchema: z.ZodObject<{
|
|
|
174
176
|
} | undefined;
|
|
175
177
|
bucket_name?: string | undefined;
|
|
176
178
|
processing_status?: "pending" | "processing" | "completed" | "failed" | undefined;
|
|
179
|
+
file_search_store_name?: string | undefined;
|
|
177
180
|
}>;
|
|
178
181
|
export declare const zodAgentSchema: z.ZodObject<{
|
|
179
182
|
_id: z.ZodOptional<z.ZodString>;
|
|
@@ -189,6 +192,7 @@ export declare const zodAgentSchema: z.ZodObject<{
|
|
|
189
192
|
message_count_limit: z.ZodOptional<z.ZodNumber>;
|
|
190
193
|
is_editable: z.ZodOptional<z.ZodBoolean>;
|
|
191
194
|
is_hard_to_copy: z.ZodOptional<z.ZodBoolean>;
|
|
195
|
+
has_resources: z.ZodOptional<z.ZodBoolean>;
|
|
192
196
|
created_at: z.ZodOptional<z.ZodNumber>;
|
|
193
197
|
updated_at: z.ZodOptional<z.ZodNumber>;
|
|
194
198
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -207,6 +211,7 @@ export declare const zodAgentSchema: z.ZodObject<{
|
|
|
207
211
|
message_count_limit?: number | undefined;
|
|
208
212
|
is_editable?: boolean | undefined;
|
|
209
213
|
is_hard_to_copy?: boolean | undefined;
|
|
214
|
+
has_resources?: boolean | undefined;
|
|
210
215
|
}, {
|
|
211
216
|
title: string;
|
|
212
217
|
instructions: string;
|
|
@@ -223,6 +228,7 @@ export declare const zodAgentSchema: z.ZodObject<{
|
|
|
223
228
|
message_count_limit?: number | undefined;
|
|
224
229
|
is_editable?: boolean | undefined;
|
|
225
230
|
is_hard_to_copy?: boolean | undefined;
|
|
231
|
+
has_resources?: boolean | undefined;
|
|
226
232
|
}>;
|
|
227
233
|
export declare const zodChunkSchema: z.ZodObject<{
|
|
228
234
|
_id: z.ZodOptional<z.ZodString>;
|
|
@@ -381,6 +387,7 @@ export declare const zodPreDefinedQuerySchema: z.ZodObject<{
|
|
|
381
387
|
}>>>;
|
|
382
388
|
bucket_name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
383
389
|
processing_status: z.ZodOptional<z.ZodOptional<z.ZodEnum<["pending", "processing", "completed", "failed"]>>>;
|
|
390
|
+
file_search_store_name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
384
391
|
}, "strip", z.ZodTypeAny, {
|
|
385
392
|
type?: string | undefined;
|
|
386
393
|
_id?: string | undefined;
|
|
@@ -404,6 +411,7 @@ export declare const zodPreDefinedQuerySchema: z.ZodObject<{
|
|
|
404
411
|
} | undefined;
|
|
405
412
|
bucket_name?: string | undefined;
|
|
406
413
|
processing_status?: "pending" | "processing" | "completed" | "failed" | undefined;
|
|
414
|
+
file_search_store_name?: string | undefined;
|
|
407
415
|
}, {
|
|
408
416
|
type?: string | undefined;
|
|
409
417
|
_id?: string | undefined;
|
|
@@ -427,6 +435,7 @@ export declare const zodPreDefinedQuerySchema: z.ZodObject<{
|
|
|
427
435
|
} | undefined;
|
|
428
436
|
bucket_name?: string | undefined;
|
|
429
437
|
processing_status?: "pending" | "processing" | "completed" | "failed" | undefined;
|
|
438
|
+
file_search_store_name?: string | undefined;
|
|
430
439
|
}>, "many">>;
|
|
431
440
|
full_document_search: z.ZodOptional<z.ZodBoolean>;
|
|
432
441
|
status: z.ZodDefault<z.ZodEnum<["active", "inactive", "archived"]>>;
|
|
@@ -482,6 +491,7 @@ export declare const zodPreDefinedQuerySchema: z.ZodObject<{
|
|
|
482
491
|
} | undefined;
|
|
483
492
|
bucket_name?: string | undefined;
|
|
484
493
|
processing_status?: "pending" | "processing" | "completed" | "failed" | undefined;
|
|
494
|
+
file_search_store_name?: string | undefined;
|
|
485
495
|
}[] | undefined;
|
|
486
496
|
full_document_search?: boolean | undefined;
|
|
487
497
|
users?: {
|
|
@@ -524,6 +534,7 @@ export declare const zodPreDefinedQuerySchema: z.ZodObject<{
|
|
|
524
534
|
} | undefined;
|
|
525
535
|
bucket_name?: string | undefined;
|
|
526
536
|
processing_status?: "pending" | "processing" | "completed" | "failed" | undefined;
|
|
537
|
+
file_search_store_name?: string | undefined;
|
|
527
538
|
}[] | undefined;
|
|
528
539
|
full_document_search?: boolean | undefined;
|
|
529
540
|
users?: {
|
|
@@ -567,6 +578,7 @@ export declare const zodQuerySchema: z.ZodObject<{
|
|
|
567
578
|
}>>>;
|
|
568
579
|
bucket_name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
569
580
|
processing_status: z.ZodOptional<z.ZodOptional<z.ZodEnum<["pending", "processing", "completed", "failed"]>>>;
|
|
581
|
+
file_search_store_name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
570
582
|
}, "strip", z.ZodTypeAny, {
|
|
571
583
|
type?: string | undefined;
|
|
572
584
|
_id?: string | undefined;
|
|
@@ -590,6 +602,7 @@ export declare const zodQuerySchema: z.ZodObject<{
|
|
|
590
602
|
} | undefined;
|
|
591
603
|
bucket_name?: string | undefined;
|
|
592
604
|
processing_status?: "pending" | "processing" | "completed" | "failed" | undefined;
|
|
605
|
+
file_search_store_name?: string | undefined;
|
|
593
606
|
}, {
|
|
594
607
|
type?: string | undefined;
|
|
595
608
|
_id?: string | undefined;
|
|
@@ -613,6 +626,7 @@ export declare const zodQuerySchema: z.ZodObject<{
|
|
|
613
626
|
} | undefined;
|
|
614
627
|
bucket_name?: string | undefined;
|
|
615
628
|
processing_status?: "pending" | "processing" | "completed" | "failed" | undefined;
|
|
629
|
+
file_search_store_name?: string | undefined;
|
|
616
630
|
}>, "many">>;
|
|
617
631
|
organization_id: z.ZodString;
|
|
618
632
|
user: z.ZodObject<{
|
|
@@ -669,6 +683,7 @@ export declare const zodQuerySchema: z.ZodObject<{
|
|
|
669
683
|
} | undefined;
|
|
670
684
|
bucket_name?: string | undefined;
|
|
671
685
|
processing_status?: "pending" | "processing" | "completed" | "failed" | undefined;
|
|
686
|
+
file_search_store_name?: string | undefined;
|
|
672
687
|
}[] | undefined;
|
|
673
688
|
full_document_search?: boolean | undefined;
|
|
674
689
|
thread_id?: string | undefined;
|
|
@@ -707,6 +722,7 @@ export declare const zodQuerySchema: z.ZodObject<{
|
|
|
707
722
|
} | undefined;
|
|
708
723
|
bucket_name?: string | undefined;
|
|
709
724
|
processing_status?: "pending" | "processing" | "completed" | "failed" | undefined;
|
|
725
|
+
file_search_store_name?: string | undefined;
|
|
710
726
|
}[] | undefined;
|
|
711
727
|
full_document_search?: boolean | undefined;
|
|
712
728
|
thread_id?: string | undefined;
|
package/dist/types.js
CHANGED
|
@@ -75,6 +75,7 @@ exports.zodContextSchema = zod_1.z.object({
|
|
|
75
75
|
processing_status: zod_1.z
|
|
76
76
|
.enum(['pending', 'processing', 'completed', 'failed'])
|
|
77
77
|
.optional(),
|
|
78
|
+
file_search_store_name: zod_1.z.string().optional(),
|
|
78
79
|
});
|
|
79
80
|
exports.zodAgentSchema = zod_1.z.object({
|
|
80
81
|
_id: zod_1.z.string().optional(),
|
|
@@ -90,6 +91,7 @@ exports.zodAgentSchema = zod_1.z.object({
|
|
|
90
91
|
message_count_limit: zod_1.z.number().min(1).optional(),
|
|
91
92
|
is_editable: zod_1.z.boolean().optional(),
|
|
92
93
|
is_hard_to_copy: zod_1.z.boolean().optional(),
|
|
94
|
+
has_resources: zod_1.z.boolean().optional(),
|
|
93
95
|
created_at: zod_1.z.number().optional(),
|
|
94
96
|
updated_at: zod_1.z.number().optional(),
|
|
95
97
|
});
|
package/index.ts
CHANGED
|
@@ -66,6 +66,7 @@ export const AgentSchema = new Schema(
|
|
|
66
66
|
voice_instructions: { type: String },
|
|
67
67
|
is_editable: { type: Boolean, default: false },
|
|
68
68
|
is_hard_to_copy: { type: Boolean, default: false },
|
|
69
|
+
has_resources: { type: Boolean, default: false },
|
|
69
70
|
created_at: { type: Number },
|
|
70
71
|
updated_at: { type: Number },
|
|
71
72
|
},
|
|
@@ -104,6 +105,7 @@ export const ContextSchema = new Schema(
|
|
|
104
105
|
enum: ['pending', 'processing', 'completed', 'failed'],
|
|
105
106
|
default: 'pending',
|
|
106
107
|
},
|
|
108
|
+
file_search_store_name: { type: String },
|
|
107
109
|
created_at: { type: Number },
|
|
108
110
|
updated_at: { type: Number },
|
|
109
111
|
},
|
package/package.json
CHANGED
package/types.ts
CHANGED
|
@@ -10,7 +10,6 @@ export const modelsList = [
|
|
|
10
10
|
'gpt-4.1-mini',
|
|
11
11
|
'gpt-4.1-nano',
|
|
12
12
|
'claude-3.7-sonnet',
|
|
13
|
-
|
|
14
13
|
] as const;
|
|
15
14
|
|
|
16
15
|
export const userRoles = ['admin', 'member', 'client'] as const;
|
|
@@ -79,6 +78,7 @@ export const zodContextSchema = z.object({
|
|
|
79
78
|
processing_status: z
|
|
80
79
|
.enum(['pending', 'processing', 'completed', 'failed'])
|
|
81
80
|
.optional(),
|
|
81
|
+
file_search_store_name: z.string().optional(),
|
|
82
82
|
});
|
|
83
83
|
|
|
84
84
|
export const zodAgentSchema = z.object({
|
|
@@ -95,6 +95,7 @@ export const zodAgentSchema = z.object({
|
|
|
95
95
|
message_count_limit: z.number().min(1).optional(),
|
|
96
96
|
is_editable: z.boolean().optional(),
|
|
97
97
|
is_hard_to_copy: z.boolean().optional(),
|
|
98
|
+
has_resources: z.boolean().optional(),
|
|
98
99
|
created_at: z.number().optional(),
|
|
99
100
|
updated_at: z.number().optional(),
|
|
100
101
|
});
|