asfur 1.0.25 → 1.0.26

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
@@ -521,6 +521,7 @@ export declare const MongoUserSettingsSchema: Schema<{
521
521
  end: number | Date;
522
522
  };
523
523
  _id?: string | undefined;
524
+ thread_id?: string | undefined;
524
525
  }, import("mongoose").Model<{
525
526
  user_id: string;
526
527
  sources: string[];
@@ -533,6 +534,7 @@ export declare const MongoUserSettingsSchema: Schema<{
533
534
  end: number | Date;
534
535
  };
535
536
  _id?: string | undefined;
537
+ thread_id?: string | undefined;
536
538
  }, any, any, any, import("mongoose").Document<unknown, any, {
537
539
  user_id: string;
538
540
  sources: string[];
@@ -545,6 +547,7 @@ export declare const MongoUserSettingsSchema: Schema<{
545
547
  end: number | Date;
546
548
  };
547
549
  _id?: string | undefined;
550
+ thread_id?: string | undefined;
548
551
  }, any> & {
549
552
  user_id: string;
550
553
  sources: string[];
@@ -557,6 +560,7 @@ export declare const MongoUserSettingsSchema: Schema<{
557
560
  end: number | Date;
558
561
  };
559
562
  _id?: string | undefined;
563
+ thread_id?: string | undefined;
560
564
  } & Required<{
561
565
  _id: string;
562
566
  }> & {
@@ -573,6 +577,7 @@ export declare const MongoUserSettingsSchema: Schema<{
573
577
  end: number | Date;
574
578
  };
575
579
  _id?: string | undefined;
580
+ thread_id?: string | undefined;
576
581
  }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
577
582
  user_id: string;
578
583
  sources: string[];
@@ -585,6 +590,7 @@ export declare const MongoUserSettingsSchema: Schema<{
585
590
  end: number | Date;
586
591
  };
587
592
  _id?: string | undefined;
593
+ thread_id?: string | undefined;
588
594
  }>, {}> & import("mongoose").FlatRecord<{
589
595
  user_id: string;
590
596
  sources: string[];
@@ -597,6 +603,7 @@ export declare const MongoUserSettingsSchema: Schema<{
597
603
  end: number | Date;
598
604
  };
599
605
  _id?: string | undefined;
606
+ thread_id?: string | undefined;
600
607
  }> & Required<{
601
608
  _id: string;
602
609
  }> & {
package/dist/types.d.ts CHANGED
@@ -268,6 +268,7 @@ export declare const zodUserSettingsSchema: z.ZodObject<{
268
268
  start: number | Date;
269
269
  end: number | Date;
270
270
  }>]>;
271
+ thread_id: z.ZodOptional<z.ZodString>;
271
272
  user_id: z.ZodString;
272
273
  }, "strip", z.ZodTypeAny, {
273
274
  user_id: string;
@@ -281,6 +282,7 @@ export declare const zodUserSettingsSchema: z.ZodObject<{
281
282
  end: number | Date;
282
283
  };
283
284
  _id?: string | undefined;
285
+ thread_id?: string | undefined;
284
286
  }, {
285
287
  user_id: string;
286
288
  sources: string[];
@@ -293,6 +295,7 @@ export declare const zodUserSettingsSchema: z.ZodObject<{
293
295
  end: number | Date;
294
296
  };
295
297
  _id?: string | undefined;
298
+ thread_id?: string | undefined;
296
299
  }>;
297
300
  export type SourceType = z.infer<typeof zodSourceSchema>;
298
301
  export type DataType = z.infer<typeof zodDataSchema>;
package/dist/types.js CHANGED
@@ -106,5 +106,6 @@ exports.zodUserSettingsSchema = zod_1.z.object({
106
106
  _id: zod_1.z.string().optional(),
107
107
  sources: zod_1.z.array(zod_1.z.string()),
108
108
  time_range: exports.zodRelativeTimeRangeSchema.or(exports.zodAbsoluteTimeRangeSchema),
109
+ thread_id: zod_1.z.string().optional(),
109
110
  user_id: zod_1.z.string().nonempty('User ID must be provided'), // user identifier
110
111
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asfur",
3
- "version": "1.0.25",
3
+ "version": "1.0.26",
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
@@ -115,6 +115,7 @@ export const zodUserSettingsSchema = z.object({
115
115
  _id: z.string().optional(),
116
116
  sources: z.array(z.string()), // array of source _id strings
117
117
  time_range: zodRelativeTimeRangeSchema.or(zodAbsoluteTimeRangeSchema), // optional time range for the query
118
+ thread_id: z.string().optional(), // thread ID for the user settings
118
119
  user_id: z.string().nonempty('User ID must be provided'), // user identifier
119
120
  });
120
121