asfur 1.0.26 → 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 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
  }> & {
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>;
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'), // user identifier
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(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asfur",
3
- "version": "1.0.26",
3
+ "version": "1.0.27",
4
4
  "description": "SDK for interacting with the Asfur API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
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({