asfur 1.0.25 → 1.0.27
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 +14 -0
- package/dist/types.d.ts +6 -0
- package/dist/types.js +3 -1
- package/package.json +1 -1
- package/types.ts +2 -0
package/dist/index.d.ts
CHANGED
|
@@ -410,6 +410,7 @@ export declare const MongoQuerySchema: Schema<{
|
|
|
410
410
|
title?: string | undefined;
|
|
411
411
|
query?: string | undefined;
|
|
412
412
|
user_instructions?: string | undefined;
|
|
413
|
+
thread_id?: string | undefined;
|
|
413
414
|
}, import("mongoose").Model<{
|
|
414
415
|
user_id: string;
|
|
415
416
|
sources: string[];
|
|
@@ -425,6 +426,7 @@ export declare const MongoQuerySchema: Schema<{
|
|
|
425
426
|
title?: string | undefined;
|
|
426
427
|
query?: string | undefined;
|
|
427
428
|
user_instructions?: string | undefined;
|
|
429
|
+
thread_id?: string | undefined;
|
|
428
430
|
}, any, any, any, import("mongoose").Document<unknown, any, {
|
|
429
431
|
user_id: string;
|
|
430
432
|
sources: string[];
|
|
@@ -440,6 +442,7 @@ export declare const MongoQuerySchema: Schema<{
|
|
|
440
442
|
title?: string | undefined;
|
|
441
443
|
query?: string | undefined;
|
|
442
444
|
user_instructions?: string | undefined;
|
|
445
|
+
thread_id?: string | undefined;
|
|
443
446
|
}, any> & {
|
|
444
447
|
user_id: string;
|
|
445
448
|
sources: string[];
|
|
@@ -455,6 +458,7 @@ export declare const MongoQuerySchema: Schema<{
|
|
|
455
458
|
title?: string | undefined;
|
|
456
459
|
query?: string | undefined;
|
|
457
460
|
user_instructions?: string | undefined;
|
|
461
|
+
thread_id?: string | undefined;
|
|
458
462
|
} & Required<{
|
|
459
463
|
_id: string;
|
|
460
464
|
}> & {
|
|
@@ -474,6 +478,7 @@ export declare const MongoQuerySchema: Schema<{
|
|
|
474
478
|
title?: string | undefined;
|
|
475
479
|
query?: string | undefined;
|
|
476
480
|
user_instructions?: string | undefined;
|
|
481
|
+
thread_id?: string | undefined;
|
|
477
482
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
478
483
|
user_id: string;
|
|
479
484
|
sources: string[];
|
|
@@ -489,6 +494,7 @@ export declare const MongoQuerySchema: Schema<{
|
|
|
489
494
|
title?: string | undefined;
|
|
490
495
|
query?: string | undefined;
|
|
491
496
|
user_instructions?: string | undefined;
|
|
497
|
+
thread_id?: string | undefined;
|
|
492
498
|
}>, {}> & import("mongoose").FlatRecord<{
|
|
493
499
|
user_id: string;
|
|
494
500
|
sources: string[];
|
|
@@ -504,6 +510,7 @@ export declare const MongoQuerySchema: Schema<{
|
|
|
504
510
|
title?: string | undefined;
|
|
505
511
|
query?: string | undefined;
|
|
506
512
|
user_instructions?: string | undefined;
|
|
513
|
+
thread_id?: string | undefined;
|
|
507
514
|
}> & Required<{
|
|
508
515
|
_id: string;
|
|
509
516
|
}> & {
|
|
@@ -521,6 +528,7 @@ export declare const MongoUserSettingsSchema: Schema<{
|
|
|
521
528
|
end: number | Date;
|
|
522
529
|
};
|
|
523
530
|
_id?: string | undefined;
|
|
531
|
+
thread_id?: string | undefined;
|
|
524
532
|
}, import("mongoose").Model<{
|
|
525
533
|
user_id: string;
|
|
526
534
|
sources: string[];
|
|
@@ -533,6 +541,7 @@ export declare const MongoUserSettingsSchema: Schema<{
|
|
|
533
541
|
end: number | Date;
|
|
534
542
|
};
|
|
535
543
|
_id?: string | undefined;
|
|
544
|
+
thread_id?: string | undefined;
|
|
536
545
|
}, any, any, any, import("mongoose").Document<unknown, any, {
|
|
537
546
|
user_id: string;
|
|
538
547
|
sources: string[];
|
|
@@ -545,6 +554,7 @@ export declare const MongoUserSettingsSchema: Schema<{
|
|
|
545
554
|
end: number | Date;
|
|
546
555
|
};
|
|
547
556
|
_id?: string | undefined;
|
|
557
|
+
thread_id?: string | undefined;
|
|
548
558
|
}, any> & {
|
|
549
559
|
user_id: string;
|
|
550
560
|
sources: string[];
|
|
@@ -557,6 +567,7 @@ export declare const MongoUserSettingsSchema: Schema<{
|
|
|
557
567
|
end: number | Date;
|
|
558
568
|
};
|
|
559
569
|
_id?: string | undefined;
|
|
570
|
+
thread_id?: string | undefined;
|
|
560
571
|
} & Required<{
|
|
561
572
|
_id: string;
|
|
562
573
|
}> & {
|
|
@@ -573,6 +584,7 @@ export declare const MongoUserSettingsSchema: Schema<{
|
|
|
573
584
|
end: number | Date;
|
|
574
585
|
};
|
|
575
586
|
_id?: string | undefined;
|
|
587
|
+
thread_id?: string | undefined;
|
|
576
588
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
577
589
|
user_id: string;
|
|
578
590
|
sources: string[];
|
|
@@ -585,6 +597,7 @@ export declare const MongoUserSettingsSchema: Schema<{
|
|
|
585
597
|
end: number | Date;
|
|
586
598
|
};
|
|
587
599
|
_id?: string | undefined;
|
|
600
|
+
thread_id?: string | undefined;
|
|
588
601
|
}>, {}> & import("mongoose").FlatRecord<{
|
|
589
602
|
user_id: string;
|
|
590
603
|
sources: string[];
|
|
@@ -597,6 +610,7 @@ export declare const MongoUserSettingsSchema: Schema<{
|
|
|
597
610
|
end: number | Date;
|
|
598
611
|
};
|
|
599
612
|
_id?: string | undefined;
|
|
613
|
+
thread_id?: string | undefined;
|
|
600
614
|
}> & Required<{
|
|
601
615
|
_id: string;
|
|
602
616
|
}> & {
|
package/dist/types.d.ts
CHANGED
|
@@ -193,6 +193,7 @@ export declare const zodQuerySchema: z.ZodObject<{
|
|
|
193
193
|
}>]>;
|
|
194
194
|
user_instructions: z.ZodOptional<z.ZodString>;
|
|
195
195
|
user_id: z.ZodString;
|
|
196
|
+
thread_id: z.ZodOptional<z.ZodString>;
|
|
196
197
|
}, "strip", z.ZodTypeAny, {
|
|
197
198
|
user_id: string;
|
|
198
199
|
sources: string[];
|
|
@@ -208,6 +209,7 @@ export declare const zodQuerySchema: z.ZodObject<{
|
|
|
208
209
|
title?: string | undefined;
|
|
209
210
|
query?: string | undefined;
|
|
210
211
|
user_instructions?: string | undefined;
|
|
212
|
+
thread_id?: string | undefined;
|
|
211
213
|
}, {
|
|
212
214
|
user_id: string;
|
|
213
215
|
sources: string[];
|
|
@@ -223,6 +225,7 @@ export declare const zodQuerySchema: z.ZodObject<{
|
|
|
223
225
|
title?: string | undefined;
|
|
224
226
|
query?: string | undefined;
|
|
225
227
|
user_instructions?: string | undefined;
|
|
228
|
+
thread_id?: string | undefined;
|
|
226
229
|
}>;
|
|
227
230
|
export declare const zodInstructionsSchema: z.ZodObject<{
|
|
228
231
|
_id: z.ZodOptional<z.ZodString>;
|
|
@@ -268,6 +271,7 @@ export declare const zodUserSettingsSchema: z.ZodObject<{
|
|
|
268
271
|
start: number | Date;
|
|
269
272
|
end: number | Date;
|
|
270
273
|
}>]>;
|
|
274
|
+
thread_id: z.ZodOptional<z.ZodString>;
|
|
271
275
|
user_id: z.ZodString;
|
|
272
276
|
}, "strip", z.ZodTypeAny, {
|
|
273
277
|
user_id: string;
|
|
@@ -281,6 +285,7 @@ export declare const zodUserSettingsSchema: z.ZodObject<{
|
|
|
281
285
|
end: number | Date;
|
|
282
286
|
};
|
|
283
287
|
_id?: string | undefined;
|
|
288
|
+
thread_id?: string | undefined;
|
|
284
289
|
}, {
|
|
285
290
|
user_id: string;
|
|
286
291
|
sources: string[];
|
|
@@ -293,6 +298,7 @@ export declare const zodUserSettingsSchema: z.ZodObject<{
|
|
|
293
298
|
end: number | Date;
|
|
294
299
|
};
|
|
295
300
|
_id?: string | undefined;
|
|
301
|
+
thread_id?: string | undefined;
|
|
296
302
|
}>;
|
|
297
303
|
export type SourceType = z.infer<typeof zodSourceSchema>;
|
|
298
304
|
export type DataType = z.infer<typeof zodDataSchema>;
|
package/dist/types.js
CHANGED
|
@@ -93,7 +93,8 @@ exports.zodQuerySchema = zod_1.z.object({
|
|
|
93
93
|
sources: zod_1.z.array(zod_1.z.string()),
|
|
94
94
|
time_range: exports.zodRelativeTimeRangeSchema.or(exports.zodAbsoluteTimeRangeSchema),
|
|
95
95
|
user_instructions: zod_1.z.string().optional(),
|
|
96
|
-
user_id: zod_1.z.string().nonempty('User ID must be provided'),
|
|
96
|
+
user_id: zod_1.z.string().nonempty('User ID must be provided'),
|
|
97
|
+
thread_id: zod_1.z.string().optional(), // thread ID for the user settings
|
|
97
98
|
});
|
|
98
99
|
exports.zodInstructionsSchema = zod_1.z.object({
|
|
99
100
|
_id: zod_1.z.string().optional(),
|
|
@@ -106,5 +107,6 @@ exports.zodUserSettingsSchema = zod_1.z.object({
|
|
|
106
107
|
_id: zod_1.z.string().optional(),
|
|
107
108
|
sources: zod_1.z.array(zod_1.z.string()),
|
|
108
109
|
time_range: exports.zodRelativeTimeRangeSchema.or(exports.zodAbsoluteTimeRangeSchema),
|
|
110
|
+
thread_id: zod_1.z.string().optional(),
|
|
109
111
|
user_id: zod_1.z.string().nonempty('User ID must be provided'), // user identifier
|
|
110
112
|
});
|
package/package.json
CHANGED
package/types.ts
CHANGED
|
@@ -101,6 +101,7 @@ export const zodQuerySchema = z.object({
|
|
|
101
101
|
time_range: zodRelativeTimeRangeSchema.or(zodAbsoluteTimeRangeSchema), // optional time range for the query
|
|
102
102
|
user_instructions: z.string().optional(), // optional user instructions for the query
|
|
103
103
|
user_id: z.string().nonempty('User ID must be provided'), // user identifier
|
|
104
|
+
thread_id: z.string().optional(), // thread ID for the user settings
|
|
104
105
|
});
|
|
105
106
|
|
|
106
107
|
export const zodInstructionsSchema = z.object({
|
|
@@ -115,6 +116,7 @@ export const zodUserSettingsSchema = z.object({
|
|
|
115
116
|
_id: z.string().optional(),
|
|
116
117
|
sources: z.array(z.string()), // array of source _id strings
|
|
117
118
|
time_range: zodRelativeTimeRangeSchema.or(zodAbsoluteTimeRangeSchema), // optional time range for the query
|
|
119
|
+
thread_id: z.string().optional(), // thread ID for the user settings
|
|
118
120
|
user_id: z.string().nonempty('User ID must be provided'), // user identifier
|
|
119
121
|
});
|
|
120
122
|
|