asfur 1.0.27 → 1.0.29
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 +7 -0
- package/dist/index.js +2 -0
- package/dist/types.d.ts +3 -0
- package/dist/types.js +2 -1
- package/index.ts +2 -0
- package/package.json +1 -1
- package/types.ts +1 -0
package/dist/index.d.ts
CHANGED
|
@@ -529,6 +529,7 @@ export declare const MongoUserSettingsSchema: Schema<{
|
|
|
529
529
|
};
|
|
530
530
|
_id?: string | undefined;
|
|
531
531
|
thread_id?: string | undefined;
|
|
532
|
+
instructions?: string | undefined;
|
|
532
533
|
}, import("mongoose").Model<{
|
|
533
534
|
user_id: string;
|
|
534
535
|
sources: string[];
|
|
@@ -542,6 +543,7 @@ export declare const MongoUserSettingsSchema: Schema<{
|
|
|
542
543
|
};
|
|
543
544
|
_id?: string | undefined;
|
|
544
545
|
thread_id?: string | undefined;
|
|
546
|
+
instructions?: string | undefined;
|
|
545
547
|
}, any, any, any, import("mongoose").Document<unknown, any, {
|
|
546
548
|
user_id: string;
|
|
547
549
|
sources: string[];
|
|
@@ -555,6 +557,7 @@ export declare const MongoUserSettingsSchema: Schema<{
|
|
|
555
557
|
};
|
|
556
558
|
_id?: string | undefined;
|
|
557
559
|
thread_id?: string | undefined;
|
|
560
|
+
instructions?: string | undefined;
|
|
558
561
|
}, any> & {
|
|
559
562
|
user_id: string;
|
|
560
563
|
sources: string[];
|
|
@@ -568,6 +571,7 @@ export declare const MongoUserSettingsSchema: Schema<{
|
|
|
568
571
|
};
|
|
569
572
|
_id?: string | undefined;
|
|
570
573
|
thread_id?: string | undefined;
|
|
574
|
+
instructions?: string | undefined;
|
|
571
575
|
} & Required<{
|
|
572
576
|
_id: string;
|
|
573
577
|
}> & {
|
|
@@ -585,6 +589,7 @@ export declare const MongoUserSettingsSchema: Schema<{
|
|
|
585
589
|
};
|
|
586
590
|
_id?: string | undefined;
|
|
587
591
|
thread_id?: string | undefined;
|
|
592
|
+
instructions?: string | undefined;
|
|
588
593
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
589
594
|
user_id: string;
|
|
590
595
|
sources: string[];
|
|
@@ -598,6 +603,7 @@ export declare const MongoUserSettingsSchema: Schema<{
|
|
|
598
603
|
};
|
|
599
604
|
_id?: string | undefined;
|
|
600
605
|
thread_id?: string | undefined;
|
|
606
|
+
instructions?: string | undefined;
|
|
601
607
|
}>, {}> & import("mongoose").FlatRecord<{
|
|
602
608
|
user_id: string;
|
|
603
609
|
sources: string[];
|
|
@@ -611,6 +617,7 @@ export declare const MongoUserSettingsSchema: Schema<{
|
|
|
611
617
|
};
|
|
612
618
|
_id?: string | undefined;
|
|
613
619
|
thread_id?: string | undefined;
|
|
620
|
+
instructions?: string | undefined;
|
|
614
621
|
}> & Required<{
|
|
615
622
|
_id: string;
|
|
616
623
|
}> & {
|
package/dist/index.js
CHANGED
|
@@ -110,6 +110,8 @@ exports.MongoUserSettingsSchema = new mongoose_1.Schema({
|
|
|
110
110
|
type: mongoose_1.Schema.Types.Mixed,
|
|
111
111
|
},
|
|
112
112
|
user_id: { type: String, required: true },
|
|
113
|
+
thread_id: { type: String },
|
|
114
|
+
instructions: { type: String }, // optional user instructions for the query
|
|
113
115
|
}, {
|
|
114
116
|
versionKey: false,
|
|
115
117
|
toJSON: { virtuals: true },
|
package/dist/types.d.ts
CHANGED
|
@@ -273,6 +273,7 @@ export declare const zodUserSettingsSchema: z.ZodObject<{
|
|
|
273
273
|
}>]>;
|
|
274
274
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
275
275
|
user_id: z.ZodString;
|
|
276
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
276
277
|
}, "strip", z.ZodTypeAny, {
|
|
277
278
|
user_id: string;
|
|
278
279
|
sources: string[];
|
|
@@ -286,6 +287,7 @@ export declare const zodUserSettingsSchema: z.ZodObject<{
|
|
|
286
287
|
};
|
|
287
288
|
_id?: string | undefined;
|
|
288
289
|
thread_id?: string | undefined;
|
|
290
|
+
instructions?: string | undefined;
|
|
289
291
|
}, {
|
|
290
292
|
user_id: string;
|
|
291
293
|
sources: string[];
|
|
@@ -299,6 +301,7 @@ export declare const zodUserSettingsSchema: z.ZodObject<{
|
|
|
299
301
|
};
|
|
300
302
|
_id?: string | undefined;
|
|
301
303
|
thread_id?: string | undefined;
|
|
304
|
+
instructions?: string | undefined;
|
|
302
305
|
}>;
|
|
303
306
|
export type SourceType = z.infer<typeof zodSourceSchema>;
|
|
304
307
|
export type DataType = z.infer<typeof zodDataSchema>;
|
package/dist/types.js
CHANGED
|
@@ -108,5 +108,6 @@ exports.zodUserSettingsSchema = zod_1.z.object({
|
|
|
108
108
|
sources: zod_1.z.array(zod_1.z.string()),
|
|
109
109
|
time_range: exports.zodRelativeTimeRangeSchema.or(exports.zodAbsoluteTimeRangeSchema),
|
|
110
110
|
thread_id: zod_1.z.string().optional(),
|
|
111
|
-
user_id: zod_1.z.string().nonempty('User ID must be provided'),
|
|
111
|
+
user_id: zod_1.z.string().nonempty('User ID must be provided'),
|
|
112
|
+
instructions: zod_1.z.string().optional(), // optional user instructions for the query
|
|
112
113
|
});
|
package/index.ts
CHANGED
|
@@ -119,6 +119,8 @@ export const MongoUserSettingsSchema = new Schema<UserSettingsType>(
|
|
|
119
119
|
type: Schema.Types.Mixed,
|
|
120
120
|
},
|
|
121
121
|
user_id: { type: String, required: true },
|
|
122
|
+
thread_id: { type: String },
|
|
123
|
+
instructions: { type: String }, // optional user instructions for the query
|
|
122
124
|
},
|
|
123
125
|
{
|
|
124
126
|
versionKey: false,
|
package/package.json
CHANGED
package/types.ts
CHANGED
|
@@ -118,6 +118,7 @@ export const zodUserSettingsSchema = z.object({
|
|
|
118
118
|
time_range: zodRelativeTimeRangeSchema.or(zodAbsoluteTimeRangeSchema), // optional time range for the query
|
|
119
119
|
thread_id: z.string().optional(), // thread ID for the user settings
|
|
120
120
|
user_id: z.string().nonempty('User ID must be provided'), // user identifier
|
|
121
|
+
instructions: z.string().optional(), // optional user instructions for the query
|
|
121
122
|
});
|
|
122
123
|
|
|
123
124
|
export type SourceType = z.infer<typeof zodSourceSchema>;
|