asfur 1.0.96 → 1.0.98

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
@@ -603,27 +603,27 @@ export declare const MongoJobRunSchema: Schema<any, import("mongoose").Model<any
603
603
  }, {
604
604
  status: "done" | "failed" | "in_progress";
605
605
  user_id: string;
606
+ job_id: string;
606
607
  created_at: number;
607
608
  updated_at: number;
608
- job_id: string;
609
609
  result?: string | null | undefined;
610
610
  error?: string | null | undefined;
611
611
  metadata?: any;
612
612
  }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
613
613
  status: "done" | "failed" | "in_progress";
614
614
  user_id: string;
615
+ job_id: string;
615
616
  created_at: number;
616
617
  updated_at: number;
617
- job_id: string;
618
618
  result?: string | null | undefined;
619
619
  error?: string | null | undefined;
620
620
  metadata?: any;
621
621
  }>, {}> & import("mongoose").FlatRecord<{
622
622
  status: "done" | "failed" | "in_progress";
623
623
  user_id: string;
624
+ job_id: string;
624
625
  created_at: number;
625
626
  updated_at: number;
626
- job_id: string;
627
627
  result?: string | null | undefined;
628
628
  error?: string | null | undefined;
629
629
  metadata?: any;
package/dist/types.d.ts CHANGED
@@ -64,6 +64,7 @@ export declare const zodQuerySchema: z.ZodObject<{
64
64
  thread_id: z.ZodOptional<z.ZodString>;
65
65
  user_time_zone: z.ZodOptional<z.ZodString>;
66
66
  timestamp: z.ZodOptional<z.ZodNumber>;
67
+ job_id: z.ZodOptional<z.ZodString>;
67
68
  }, "strip", z.ZodTypeAny, {
68
69
  time_range: {
69
70
  type: "relative";
@@ -84,6 +85,7 @@ export declare const zodQuerySchema: z.ZodObject<{
84
85
  thread_id?: string | undefined;
85
86
  user_time_zone?: string | undefined;
86
87
  timestamp?: number | undefined;
88
+ job_id?: string | undefined;
87
89
  }, {
88
90
  time_range: {
89
91
  type: "relative";
@@ -104,6 +106,7 @@ export declare const zodQuerySchema: z.ZodObject<{
104
106
  thread_id?: string | undefined;
105
107
  user_time_zone?: string | undefined;
106
108
  timestamp?: number | undefined;
109
+ job_id?: string | undefined;
107
110
  }>;
108
111
  export declare const zodInstructionsSchema: z.ZodObject<{
109
112
  _id: z.ZodOptional<z.ZodString>;
@@ -280,6 +283,7 @@ export declare const zodJobSchema: z.ZodObject<{
280
283
  thread_id: z.ZodOptional<z.ZodString>;
281
284
  user_time_zone: z.ZodOptional<z.ZodString>;
282
285
  timestamp: z.ZodOptional<z.ZodNumber>;
286
+ job_id: z.ZodOptional<z.ZodString>;
283
287
  }, "strip", z.ZodTypeAny, {
284
288
  time_range: {
285
289
  type: "relative";
@@ -300,6 +304,7 @@ export declare const zodJobSchema: z.ZodObject<{
300
304
  thread_id?: string | undefined;
301
305
  user_time_zone?: string | undefined;
302
306
  timestamp?: number | undefined;
307
+ job_id?: string | undefined;
303
308
  }, {
304
309
  time_range: {
305
310
  type: "relative";
@@ -320,6 +325,7 @@ export declare const zodJobSchema: z.ZodObject<{
320
325
  thread_id?: string | undefined;
321
326
  user_time_zone?: string | undefined;
322
327
  timestamp?: number | undefined;
328
+ job_id?: string | undefined;
323
329
  }>;
324
330
  active_until: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodNumber]>>;
325
331
  conversation_id: z.ZodOptional<z.ZodString>;
@@ -357,6 +363,7 @@ export declare const zodJobSchema: z.ZodObject<{
357
363
  thread_id?: string | undefined;
358
364
  user_time_zone?: string | undefined;
359
365
  timestamp?: number | undefined;
366
+ job_id?: string | undefined;
360
367
  };
361
368
  user_id: string;
362
369
  job_name: string;
@@ -395,6 +402,7 @@ export declare const zodJobSchema: z.ZodObject<{
395
402
  thread_id?: string | undefined;
396
403
  user_time_zone?: string | undefined;
397
404
  timestamp?: number | undefined;
405
+ job_id?: string | undefined;
398
406
  };
399
407
  user_id: string;
400
408
  job_name: string;
@@ -505,9 +513,9 @@ export declare const zodHeatmapSchema: z.ZodObject<{
505
513
  name: string;
506
514
  url: string;
507
515
  }[] | undefined;
516
+ job_id?: string | undefined;
508
517
  created_at?: number | undefined;
509
518
  updated_at?: number | undefined;
510
- job_id?: string | undefined;
511
519
  run_id?: string | undefined;
512
520
  query_id?: string | undefined;
513
521
  category?: string | undefined;
@@ -532,9 +540,9 @@ export declare const zodHeatmapSchema: z.ZodObject<{
532
540
  name: string;
533
541
  url: string;
534
542
  }[] | undefined;
543
+ job_id?: string | undefined;
535
544
  created_at?: number | undefined;
536
545
  updated_at?: number | undefined;
537
- job_id?: string | undefined;
538
546
  run_id?: string | undefined;
539
547
  query_id?: string | undefined;
540
548
  category?: string | undefined;
@@ -701,6 +709,7 @@ export declare const zodScenarioSchema: z.ZodObject<{
701
709
  thread_id: z.ZodOptional<z.ZodString>;
702
710
  user_time_zone: z.ZodOptional<z.ZodString>;
703
711
  timestamp: z.ZodOptional<z.ZodNumber>;
712
+ job_id: z.ZodOptional<z.ZodString>;
704
713
  }, "strip", z.ZodTypeAny, {
705
714
  time_range: {
706
715
  type: "relative";
@@ -721,6 +730,7 @@ export declare const zodScenarioSchema: z.ZodObject<{
721
730
  thread_id?: string | undefined;
722
731
  user_time_zone?: string | undefined;
723
732
  timestamp?: number | undefined;
733
+ job_id?: string | undefined;
724
734
  }, {
725
735
  time_range: {
726
736
  type: "relative";
@@ -741,6 +751,7 @@ export declare const zodScenarioSchema: z.ZodObject<{
741
751
  thread_id?: string | undefined;
742
752
  user_time_zone?: string | undefined;
743
753
  timestamp?: number | undefined;
754
+ job_id?: string | undefined;
744
755
  }>;
745
756
  conversation_id: z.ZodOptional<z.ZodString>;
746
757
  created_at: z.ZodOptional<z.ZodNumber>;
@@ -768,6 +779,7 @@ export declare const zodScenarioSchema: z.ZodObject<{
768
779
  thread_id?: string | undefined;
769
780
  user_time_zone?: string | undefined;
770
781
  timestamp?: number | undefined;
782
+ job_id?: string | undefined;
771
783
  };
772
784
  user_id: string;
773
785
  scenario: string;
@@ -801,6 +813,7 @@ export declare const zodScenarioSchema: z.ZodObject<{
801
813
  thread_id?: string | undefined;
802
814
  user_time_zone?: string | undefined;
803
815
  timestamp?: number | undefined;
816
+ job_id?: string | undefined;
804
817
  };
805
818
  user_id: string;
806
819
  scenario: string;
@@ -860,6 +873,8 @@ export type ReportType = z.infer<typeof zodReportSchema>;
860
873
  export type NotificationType = z.infer<typeof zodNotificationSchema>;
861
874
  export type ScenarioType = z.infer<typeof zodScenarioSchema>;
862
875
  export type ScenarioScoreType = z.infer<typeof zodScenarioScoreSchema>;
876
+ export type JobRunType = z.infer<typeof zodJobRunSchema>;
877
+ export type HeatmapType = z.infer<typeof zodHeatmapSchema>;
863
878
  export type UserPublicMetadata = {
864
879
  is_admin?: boolean;
865
880
  regions?: {
package/dist/types.js CHANGED
@@ -40,7 +40,8 @@ exports.zodQuerySchema = zod_1.z.object({
40
40
  user_id: zod_1.z.string().nonempty('User ID must be provided'),
41
41
  thread_id: zod_1.z.string().optional(),
42
42
  user_time_zone: zod_1.z.string().optional(),
43
- timestamp: zod_1.z.number().optional(), // creation date
43
+ timestamp: zod_1.z.number().optional(),
44
+ job_id: zod_1.z.string().optional(), // optional job ID associated with the query
44
45
  });
45
46
  exports.zodInstructionsSchema = zod_1.z.object({
46
47
  _id: zod_1.z.string().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asfur",
3
- "version": "1.0.96",
3
+ "version": "1.0.98",
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
@@ -66,6 +66,7 @@ export const zodQuerySchema = z.object({
66
66
  thread_id: z.string().optional(), // thread ID for the user settings
67
67
  user_time_zone: z.string().optional(), // user's timezone
68
68
  timestamp: z.number().optional(), // creation date
69
+ job_id: z.string().optional(), // optional job ID associated with the query
69
70
  });
70
71
 
71
72
  export const zodInstructionsSchema = z.object({
@@ -291,6 +292,8 @@ export type ReportType = z.infer<typeof zodReportSchema>;
291
292
  export type NotificationType = z.infer<typeof zodNotificationSchema>;
292
293
  export type ScenarioType = z.infer<typeof zodScenarioSchema>;
293
294
  export type ScenarioScoreType = z.infer<typeof zodScenarioScoreSchema>;
295
+ export type JobRunType = z.infer<typeof zodJobRunSchema>;
296
+ export type HeatmapType = z.infer<typeof zodHeatmapSchema>;
294
297
 
295
298
  export type UserPublicMetadata = {
296
299
  is_admin?: boolean;