@badger_badger/badger_hq 1.6.0 → 1.8.0

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.
@@ -1,5 +1,5 @@
1
- import { at as CollectionName, n as AgentMessage, u as AgentSession, J as AnalystProfile, O as AssigneeLoad, R as Assignment, _ as AuditLog, ad as Capture, aF as DataItem, aQ as Database, a_ as Deployment, bO as Mission, dj as Task, bm as HoursLog, cl as ScoutProfile, bY as OrgSettings, ct as ScoutRating, cN as Source, cS as SourceImport, cA as Scraper, cD as ScraperMetric, by as LlmCall } from '../agent-session-oZI9RyQ_.cjs';
2
- export { ab as COLLECTIONS } from '../agent-session-oZI9RyQ_.cjs';
1
+ import { av as CollectionName, n as AgentMessage, u as AgentSession, J as AnalystProfile, P as AssigneeLoad, T as Assignment, a0 as AuditLog, af as Capture, aH as DataItem, aS as Database, b0 as Deployment, bQ as Mission, dl as Task, bo as HoursLog, cm as ScoutProfile, bZ as OrgSettings, cu as ScoutRating, cO as Source, cV as SourceImport, cB as Scraper, cE as ScraperMetric, bA as LlmCall } from '../agent-session-C7C0Z1e1.cjs';
2
+ export { ad as COLLECTIONS } from '../agent-session-C7C0Z1e1.cjs';
3
3
  import * as mongoose from 'mongoose';
4
4
  import { Types, IndexDefinition, IndexOptions, Schema, Query, Model, Connection } from 'mongoose';
5
5
  import 'zod';
@@ -551,6 +551,78 @@ declare const discoveredBySchema: Schema<{
551
551
  } & {
552
552
  __v: number;
553
553
  }>;
554
+ declare const sourceDiscoverySchema: Schema<{
555
+ taskId: mongoose.Types.ObjectId;
556
+ name: string;
557
+ reason: string;
558
+ relevanceScore: number;
559
+ discoveredAt: Date;
560
+ description?: string | undefined;
561
+ captureId?: string | undefined;
562
+ capturedUrl?: string | undefined;
563
+ }, mongoose.Model<{
564
+ taskId: mongoose.Types.ObjectId;
565
+ name: string;
566
+ reason: string;
567
+ relevanceScore: number;
568
+ discoveredAt: Date;
569
+ description?: string | undefined;
570
+ captureId?: string | undefined;
571
+ capturedUrl?: string | undefined;
572
+ }, any, any, any, mongoose.Document<unknown, any, {
573
+ taskId: mongoose.Types.ObjectId;
574
+ name: string;
575
+ reason: string;
576
+ relevanceScore: number;
577
+ discoveredAt: Date;
578
+ description?: string | undefined;
579
+ captureId?: string | undefined;
580
+ capturedUrl?: string | undefined;
581
+ }, any, {}> & {
582
+ taskId: mongoose.Types.ObjectId;
583
+ name: string;
584
+ reason: string;
585
+ relevanceScore: number;
586
+ discoveredAt: Date;
587
+ description?: string | undefined;
588
+ captureId?: string | undefined;
589
+ capturedUrl?: string | undefined;
590
+ } & {
591
+ _id: mongoose.Types.ObjectId;
592
+ } & {
593
+ __v: number;
594
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
595
+ taskId: mongoose.Types.ObjectId;
596
+ name: string;
597
+ reason: string;
598
+ relevanceScore: number;
599
+ discoveredAt: Date;
600
+ description?: string | undefined;
601
+ captureId?: string | undefined;
602
+ capturedUrl?: string | undefined;
603
+ }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
604
+ taskId: mongoose.Types.ObjectId;
605
+ name: string;
606
+ reason: string;
607
+ relevanceScore: number;
608
+ discoveredAt: Date;
609
+ description?: string | undefined;
610
+ captureId?: string | undefined;
611
+ capturedUrl?: string | undefined;
612
+ }>, {}, mongoose.DefaultSchemaOptions> & mongoose.FlatRecord<{
613
+ taskId: mongoose.Types.ObjectId;
614
+ name: string;
615
+ reason: string;
616
+ relevanceScore: number;
617
+ discoveredAt: Date;
618
+ description?: string | undefined;
619
+ captureId?: string | undefined;
620
+ capturedUrl?: string | undefined;
621
+ }> & {
622
+ _id: mongoose.Types.ObjectId;
623
+ } & {
624
+ __v: number;
625
+ }>;
554
626
  declare const sourceImportSummarySchema: Schema<{
555
627
  invalid: number;
556
628
  toCreate: number;
@@ -2421,6 +2493,16 @@ declare const sourceSchema: Schema<{
2421
2493
  importId?: mongoose.Types.ObjectId | undefined;
2422
2494
  userId?: string | undefined;
2423
2495
  };
2496
+ discovery?: {
2497
+ taskId: mongoose.Types.ObjectId;
2498
+ name: string;
2499
+ reason: string;
2500
+ relevanceScore: number;
2501
+ discoveredAt: Date;
2502
+ description?: string | undefined;
2503
+ captureId?: string | undefined;
2504
+ capturedUrl?: string | undefined;
2505
+ } | undefined;
2424
2506
  scraperId?: mongoose.Types.ObjectId | undefined;
2425
2507
  deletedAt?: Date | undefined;
2426
2508
  handle?: string | undefined;
@@ -2431,6 +2513,7 @@ declare const sourceSchema: Schema<{
2431
2513
  } | undefined;
2432
2514
  lastCollectedAt?: Date | undefined;
2433
2515
  nextVisitAt?: Date | undefined;
2516
+ visitIntervalMs?: number | undefined;
2434
2517
  }, mongoose.Model<{
2435
2518
  type: "channel" | "group" | "profile" | "forum" | "site";
2436
2519
  status: "active" | "paused" | "closed" | "access_problem";
@@ -2451,6 +2534,16 @@ declare const sourceSchema: Schema<{
2451
2534
  importId?: mongoose.Types.ObjectId | undefined;
2452
2535
  userId?: string | undefined;
2453
2536
  };
2537
+ discovery?: {
2538
+ taskId: mongoose.Types.ObjectId;
2539
+ name: string;
2540
+ reason: string;
2541
+ relevanceScore: number;
2542
+ discoveredAt: Date;
2543
+ description?: string | undefined;
2544
+ captureId?: string | undefined;
2545
+ capturedUrl?: string | undefined;
2546
+ } | undefined;
2454
2547
  scraperId?: mongoose.Types.ObjectId | undefined;
2455
2548
  deletedAt?: Date | undefined;
2456
2549
  handle?: string | undefined;
@@ -2461,6 +2554,7 @@ declare const sourceSchema: Schema<{
2461
2554
  } | undefined;
2462
2555
  lastCollectedAt?: Date | undefined;
2463
2556
  nextVisitAt?: Date | undefined;
2557
+ visitIntervalMs?: number | undefined;
2464
2558
  }, any, any, any, mongoose.Document<unknown, any, {
2465
2559
  type: "channel" | "group" | "profile" | "forum" | "site";
2466
2560
  status: "active" | "paused" | "closed" | "access_problem";
@@ -2481,6 +2575,16 @@ declare const sourceSchema: Schema<{
2481
2575
  importId?: mongoose.Types.ObjectId | undefined;
2482
2576
  userId?: string | undefined;
2483
2577
  };
2578
+ discovery?: {
2579
+ taskId: mongoose.Types.ObjectId;
2580
+ name: string;
2581
+ reason: string;
2582
+ relevanceScore: number;
2583
+ discoveredAt: Date;
2584
+ description?: string | undefined;
2585
+ captureId?: string | undefined;
2586
+ capturedUrl?: string | undefined;
2587
+ } | undefined;
2484
2588
  scraperId?: mongoose.Types.ObjectId | undefined;
2485
2589
  deletedAt?: Date | undefined;
2486
2590
  handle?: string | undefined;
@@ -2491,6 +2595,7 @@ declare const sourceSchema: Schema<{
2491
2595
  } | undefined;
2492
2596
  lastCollectedAt?: Date | undefined;
2493
2597
  nextVisitAt?: Date | undefined;
2598
+ visitIntervalMs?: number | undefined;
2494
2599
  }, any, {}> & {
2495
2600
  type: "channel" | "group" | "profile" | "forum" | "site";
2496
2601
  status: "active" | "paused" | "closed" | "access_problem";
@@ -2511,6 +2616,16 @@ declare const sourceSchema: Schema<{
2511
2616
  importId?: mongoose.Types.ObjectId | undefined;
2512
2617
  userId?: string | undefined;
2513
2618
  };
2619
+ discovery?: {
2620
+ taskId: mongoose.Types.ObjectId;
2621
+ name: string;
2622
+ reason: string;
2623
+ relevanceScore: number;
2624
+ discoveredAt: Date;
2625
+ description?: string | undefined;
2626
+ captureId?: string | undefined;
2627
+ capturedUrl?: string | undefined;
2628
+ } | undefined;
2514
2629
  scraperId?: mongoose.Types.ObjectId | undefined;
2515
2630
  deletedAt?: Date | undefined;
2516
2631
  handle?: string | undefined;
@@ -2521,6 +2636,7 @@ declare const sourceSchema: Schema<{
2521
2636
  } | undefined;
2522
2637
  lastCollectedAt?: Date | undefined;
2523
2638
  nextVisitAt?: Date | undefined;
2639
+ visitIntervalMs?: number | undefined;
2524
2640
  } & Required<{
2525
2641
  _id: mongoose.Types.ObjectId;
2526
2642
  }> & {
@@ -2545,6 +2661,16 @@ declare const sourceSchema: Schema<{
2545
2661
  importId?: mongoose.Types.ObjectId | undefined;
2546
2662
  userId?: string | undefined;
2547
2663
  };
2664
+ discovery?: {
2665
+ taskId: mongoose.Types.ObjectId;
2666
+ name: string;
2667
+ reason: string;
2668
+ relevanceScore: number;
2669
+ discoveredAt: Date;
2670
+ description?: string | undefined;
2671
+ captureId?: string | undefined;
2672
+ capturedUrl?: string | undefined;
2673
+ } | undefined;
2548
2674
  scraperId?: mongoose.Types.ObjectId | undefined;
2549
2675
  deletedAt?: Date | undefined;
2550
2676
  handle?: string | undefined;
@@ -2555,6 +2681,7 @@ declare const sourceSchema: Schema<{
2555
2681
  } | undefined;
2556
2682
  lastCollectedAt?: Date | undefined;
2557
2683
  nextVisitAt?: Date | undefined;
2684
+ visitIntervalMs?: number | undefined;
2558
2685
  }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
2559
2686
  type: "channel" | "group" | "profile" | "forum" | "site";
2560
2687
  status: "active" | "paused" | "closed" | "access_problem";
@@ -2575,6 +2702,16 @@ declare const sourceSchema: Schema<{
2575
2702
  importId?: mongoose.Types.ObjectId | undefined;
2576
2703
  userId?: string | undefined;
2577
2704
  };
2705
+ discovery?: {
2706
+ taskId: mongoose.Types.ObjectId;
2707
+ name: string;
2708
+ reason: string;
2709
+ relevanceScore: number;
2710
+ discoveredAt: Date;
2711
+ description?: string | undefined;
2712
+ captureId?: string | undefined;
2713
+ capturedUrl?: string | undefined;
2714
+ } | undefined;
2578
2715
  scraperId?: mongoose.Types.ObjectId | undefined;
2579
2716
  deletedAt?: Date | undefined;
2580
2717
  handle?: string | undefined;
@@ -2585,6 +2722,7 @@ declare const sourceSchema: Schema<{
2585
2722
  } | undefined;
2586
2723
  lastCollectedAt?: Date | undefined;
2587
2724
  nextVisitAt?: Date | undefined;
2725
+ visitIntervalMs?: number | undefined;
2588
2726
  }>, {}, mongoose.DefaultSchemaOptions> & mongoose.FlatRecord<{
2589
2727
  type: "channel" | "group" | "profile" | "forum" | "site";
2590
2728
  status: "active" | "paused" | "closed" | "access_problem";
@@ -2605,6 +2743,16 @@ declare const sourceSchema: Schema<{
2605
2743
  importId?: mongoose.Types.ObjectId | undefined;
2606
2744
  userId?: string | undefined;
2607
2745
  };
2746
+ discovery?: {
2747
+ taskId: mongoose.Types.ObjectId;
2748
+ name: string;
2749
+ reason: string;
2750
+ relevanceScore: number;
2751
+ discoveredAt: Date;
2752
+ description?: string | undefined;
2753
+ captureId?: string | undefined;
2754
+ capturedUrl?: string | undefined;
2755
+ } | undefined;
2608
2756
  scraperId?: mongoose.Types.ObjectId | undefined;
2609
2757
  deletedAt?: Date | undefined;
2610
2758
  handle?: string | undefined;
@@ -2615,6 +2763,7 @@ declare const sourceSchema: Schema<{
2615
2763
  } | undefined;
2616
2764
  lastCollectedAt?: Date | undefined;
2617
2765
  nextVisitAt?: Date | undefined;
2766
+ visitIntervalMs?: number | undefined;
2618
2767
  }> & Required<{
2619
2768
  _id: mongoose.Types.ObjectId;
2620
2769
  }> & {
@@ -3864,8 +4013,8 @@ declare const agentMessageSchema: Schema<{
3864
4013
  name: string;
3865
4014
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
3866
4015
  kind: "source_result";
3867
- outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
3868
4016
  reason: string;
4017
+ outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
3869
4018
  url?: string | undefined;
3870
4019
  score?: number | undefined;
3871
4020
  } | {
@@ -3911,8 +4060,8 @@ declare const agentMessageSchema: Schema<{
3911
4060
  name: string;
3912
4061
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
3913
4062
  kind: "source_result";
3914
- outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
3915
4063
  reason: string;
4064
+ outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
3916
4065
  url?: string | undefined;
3917
4066
  score?: number | undefined;
3918
4067
  } | {
@@ -3958,8 +4107,8 @@ declare const agentMessageSchema: Schema<{
3958
4107
  name: string;
3959
4108
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
3960
4109
  kind: "source_result";
3961
- outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
3962
4110
  reason: string;
4111
+ outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
3963
4112
  url?: string | undefined;
3964
4113
  score?: number | undefined;
3965
4114
  } | {
@@ -4005,8 +4154,8 @@ declare const agentMessageSchema: Schema<{
4005
4154
  name: string;
4006
4155
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
4007
4156
  kind: "source_result";
4008
- outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
4009
4157
  reason: string;
4158
+ outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
4010
4159
  url?: string | undefined;
4011
4160
  score?: number | undefined;
4012
4161
  } | {
@@ -4056,8 +4205,8 @@ declare const agentMessageSchema: Schema<{
4056
4205
  name: string;
4057
4206
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
4058
4207
  kind: "source_result";
4059
- outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
4060
4208
  reason: string;
4209
+ outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
4061
4210
  url?: string | undefined;
4062
4211
  score?: number | undefined;
4063
4212
  } | {
@@ -4103,8 +4252,8 @@ declare const agentMessageSchema: Schema<{
4103
4252
  name: string;
4104
4253
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
4105
4254
  kind: "source_result";
4106
- outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
4107
4255
  reason: string;
4256
+ outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
4108
4257
  url?: string | undefined;
4109
4258
  score?: number | undefined;
4110
4259
  } | {
@@ -4150,8 +4299,8 @@ declare const agentMessageSchema: Schema<{
4150
4299
  name: string;
4151
4300
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
4152
4301
  kind: "source_result";
4153
- outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
4154
4302
  reason: string;
4303
+ outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
4155
4304
  url?: string | undefined;
4156
4305
  score?: number | undefined;
4157
4306
  } | {
@@ -6439,6 +6588,16 @@ declare const SCHEMAS: {
6439
6588
  importId?: mongoose.Types.ObjectId | undefined;
6440
6589
  userId?: string | undefined;
6441
6590
  };
6591
+ discovery?: {
6592
+ taskId: mongoose.Types.ObjectId;
6593
+ name: string;
6594
+ reason: string;
6595
+ relevanceScore: number;
6596
+ discoveredAt: Date;
6597
+ description?: string | undefined;
6598
+ captureId?: string | undefined;
6599
+ capturedUrl?: string | undefined;
6600
+ } | undefined;
6442
6601
  scraperId?: mongoose.Types.ObjectId | undefined;
6443
6602
  deletedAt?: Date | undefined;
6444
6603
  handle?: string | undefined;
@@ -6449,6 +6608,7 @@ declare const SCHEMAS: {
6449
6608
  } | undefined;
6450
6609
  lastCollectedAt?: Date | undefined;
6451
6610
  nextVisitAt?: Date | undefined;
6611
+ visitIntervalMs?: number | undefined;
6452
6612
  }, mongoose.Model<{
6453
6613
  type: "channel" | "group" | "profile" | "forum" | "site";
6454
6614
  status: "active" | "paused" | "closed" | "access_problem";
@@ -6469,6 +6629,16 @@ declare const SCHEMAS: {
6469
6629
  importId?: mongoose.Types.ObjectId | undefined;
6470
6630
  userId?: string | undefined;
6471
6631
  };
6632
+ discovery?: {
6633
+ taskId: mongoose.Types.ObjectId;
6634
+ name: string;
6635
+ reason: string;
6636
+ relevanceScore: number;
6637
+ discoveredAt: Date;
6638
+ description?: string | undefined;
6639
+ captureId?: string | undefined;
6640
+ capturedUrl?: string | undefined;
6641
+ } | undefined;
6472
6642
  scraperId?: mongoose.Types.ObjectId | undefined;
6473
6643
  deletedAt?: Date | undefined;
6474
6644
  handle?: string | undefined;
@@ -6479,6 +6649,7 @@ declare const SCHEMAS: {
6479
6649
  } | undefined;
6480
6650
  lastCollectedAt?: Date | undefined;
6481
6651
  nextVisitAt?: Date | undefined;
6652
+ visitIntervalMs?: number | undefined;
6482
6653
  }, any, any, any, mongoose.Document<unknown, any, {
6483
6654
  type: "channel" | "group" | "profile" | "forum" | "site";
6484
6655
  status: "active" | "paused" | "closed" | "access_problem";
@@ -6499,6 +6670,16 @@ declare const SCHEMAS: {
6499
6670
  importId?: mongoose.Types.ObjectId | undefined;
6500
6671
  userId?: string | undefined;
6501
6672
  };
6673
+ discovery?: {
6674
+ taskId: mongoose.Types.ObjectId;
6675
+ name: string;
6676
+ reason: string;
6677
+ relevanceScore: number;
6678
+ discoveredAt: Date;
6679
+ description?: string | undefined;
6680
+ captureId?: string | undefined;
6681
+ capturedUrl?: string | undefined;
6682
+ } | undefined;
6502
6683
  scraperId?: mongoose.Types.ObjectId | undefined;
6503
6684
  deletedAt?: Date | undefined;
6504
6685
  handle?: string | undefined;
@@ -6509,6 +6690,7 @@ declare const SCHEMAS: {
6509
6690
  } | undefined;
6510
6691
  lastCollectedAt?: Date | undefined;
6511
6692
  nextVisitAt?: Date | undefined;
6693
+ visitIntervalMs?: number | undefined;
6512
6694
  }, any, {}> & {
6513
6695
  type: "channel" | "group" | "profile" | "forum" | "site";
6514
6696
  status: "active" | "paused" | "closed" | "access_problem";
@@ -6529,6 +6711,16 @@ declare const SCHEMAS: {
6529
6711
  importId?: mongoose.Types.ObjectId | undefined;
6530
6712
  userId?: string | undefined;
6531
6713
  };
6714
+ discovery?: {
6715
+ taskId: mongoose.Types.ObjectId;
6716
+ name: string;
6717
+ reason: string;
6718
+ relevanceScore: number;
6719
+ discoveredAt: Date;
6720
+ description?: string | undefined;
6721
+ captureId?: string | undefined;
6722
+ capturedUrl?: string | undefined;
6723
+ } | undefined;
6532
6724
  scraperId?: mongoose.Types.ObjectId | undefined;
6533
6725
  deletedAt?: Date | undefined;
6534
6726
  handle?: string | undefined;
@@ -6539,6 +6731,7 @@ declare const SCHEMAS: {
6539
6731
  } | undefined;
6540
6732
  lastCollectedAt?: Date | undefined;
6541
6733
  nextVisitAt?: Date | undefined;
6734
+ visitIntervalMs?: number | undefined;
6542
6735
  } & Required<{
6543
6736
  _id: mongoose.Types.ObjectId;
6544
6737
  }> & {
@@ -6563,6 +6756,16 @@ declare const SCHEMAS: {
6563
6756
  importId?: mongoose.Types.ObjectId | undefined;
6564
6757
  userId?: string | undefined;
6565
6758
  };
6759
+ discovery?: {
6760
+ taskId: mongoose.Types.ObjectId;
6761
+ name: string;
6762
+ reason: string;
6763
+ relevanceScore: number;
6764
+ discoveredAt: Date;
6765
+ description?: string | undefined;
6766
+ captureId?: string | undefined;
6767
+ capturedUrl?: string | undefined;
6768
+ } | undefined;
6566
6769
  scraperId?: mongoose.Types.ObjectId | undefined;
6567
6770
  deletedAt?: Date | undefined;
6568
6771
  handle?: string | undefined;
@@ -6573,6 +6776,7 @@ declare const SCHEMAS: {
6573
6776
  } | undefined;
6574
6777
  lastCollectedAt?: Date | undefined;
6575
6778
  nextVisitAt?: Date | undefined;
6779
+ visitIntervalMs?: number | undefined;
6576
6780
  }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
6577
6781
  type: "channel" | "group" | "profile" | "forum" | "site";
6578
6782
  status: "active" | "paused" | "closed" | "access_problem";
@@ -6593,6 +6797,16 @@ declare const SCHEMAS: {
6593
6797
  importId?: mongoose.Types.ObjectId | undefined;
6594
6798
  userId?: string | undefined;
6595
6799
  };
6800
+ discovery?: {
6801
+ taskId: mongoose.Types.ObjectId;
6802
+ name: string;
6803
+ reason: string;
6804
+ relevanceScore: number;
6805
+ discoveredAt: Date;
6806
+ description?: string | undefined;
6807
+ captureId?: string | undefined;
6808
+ capturedUrl?: string | undefined;
6809
+ } | undefined;
6596
6810
  scraperId?: mongoose.Types.ObjectId | undefined;
6597
6811
  deletedAt?: Date | undefined;
6598
6812
  handle?: string | undefined;
@@ -6603,6 +6817,7 @@ declare const SCHEMAS: {
6603
6817
  } | undefined;
6604
6818
  lastCollectedAt?: Date | undefined;
6605
6819
  nextVisitAt?: Date | undefined;
6820
+ visitIntervalMs?: number | undefined;
6606
6821
  }>, {}, mongoose.DefaultSchemaOptions> & mongoose.FlatRecord<{
6607
6822
  type: "channel" | "group" | "profile" | "forum" | "site";
6608
6823
  status: "active" | "paused" | "closed" | "access_problem";
@@ -6623,6 +6838,16 @@ declare const SCHEMAS: {
6623
6838
  importId?: mongoose.Types.ObjectId | undefined;
6624
6839
  userId?: string | undefined;
6625
6840
  };
6841
+ discovery?: {
6842
+ taskId: mongoose.Types.ObjectId;
6843
+ name: string;
6844
+ reason: string;
6845
+ relevanceScore: number;
6846
+ discoveredAt: Date;
6847
+ description?: string | undefined;
6848
+ captureId?: string | undefined;
6849
+ capturedUrl?: string | undefined;
6850
+ } | undefined;
6626
6851
  scraperId?: mongoose.Types.ObjectId | undefined;
6627
6852
  deletedAt?: Date | undefined;
6628
6853
  handle?: string | undefined;
@@ -6633,6 +6858,7 @@ declare const SCHEMAS: {
6633
6858
  } | undefined;
6634
6859
  lastCollectedAt?: Date | undefined;
6635
6860
  nextVisitAt?: Date | undefined;
6861
+ visitIntervalMs?: number | undefined;
6636
6862
  }> & Required<{
6637
6863
  _id: mongoose.Types.ObjectId;
6638
6864
  }> & {
@@ -7759,8 +7985,8 @@ declare const SCHEMAS: {
7759
7985
  name: string;
7760
7986
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
7761
7987
  kind: "source_result";
7762
- outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
7763
7988
  reason: string;
7989
+ outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
7764
7990
  url?: string | undefined;
7765
7991
  score?: number | undefined;
7766
7992
  } | {
@@ -7806,8 +8032,8 @@ declare const SCHEMAS: {
7806
8032
  name: string;
7807
8033
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
7808
8034
  kind: "source_result";
7809
- outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
7810
8035
  reason: string;
8036
+ outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
7811
8037
  url?: string | undefined;
7812
8038
  score?: number | undefined;
7813
8039
  } | {
@@ -7853,8 +8079,8 @@ declare const SCHEMAS: {
7853
8079
  name: string;
7854
8080
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
7855
8081
  kind: "source_result";
7856
- outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
7857
8082
  reason: string;
8083
+ outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
7858
8084
  url?: string | undefined;
7859
8085
  score?: number | undefined;
7860
8086
  } | {
@@ -7900,8 +8126,8 @@ declare const SCHEMAS: {
7900
8126
  name: string;
7901
8127
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
7902
8128
  kind: "source_result";
7903
- outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
7904
8129
  reason: string;
8130
+ outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
7905
8131
  url?: string | undefined;
7906
8132
  score?: number | undefined;
7907
8133
  } | {
@@ -7951,8 +8177,8 @@ declare const SCHEMAS: {
7951
8177
  name: string;
7952
8178
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
7953
8179
  kind: "source_result";
7954
- outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
7955
8180
  reason: string;
8181
+ outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
7956
8182
  url?: string | undefined;
7957
8183
  score?: number | undefined;
7958
8184
  } | {
@@ -7998,8 +8224,8 @@ declare const SCHEMAS: {
7998
8224
  name: string;
7999
8225
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
8000
8226
  kind: "source_result";
8001
- outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
8002
8227
  reason: string;
8228
+ outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
8003
8229
  url?: string | undefined;
8004
8230
  score?: number | undefined;
8005
8231
  } | {
@@ -8045,8 +8271,8 @@ declare const SCHEMAS: {
8045
8271
  name: string;
8046
8272
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
8047
8273
  kind: "source_result";
8048
- outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
8049
8274
  reason: string;
8275
+ outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
8050
8276
  url?: string | undefined;
8051
8277
  score?: number | undefined;
8052
8278
  } | {
@@ -8654,4 +8880,4 @@ type HarvesterModels = {
8654
8880
  */
8655
8881
  declare function registerModels(conn: Connection): HarvesterModels;
8656
8882
 
8657
- export { type AgentMessageDoc, type AgentMessageModel, type AgentSessionDoc, type AgentSessionModel, type AnalystProfileDoc, type AnalystProfileModel, type AssigneeLoadDoc, type AssigneeLoadModel, type AssignmentDoc, type AssignmentModel, type AuditLogDoc, type AuditLogModel, type CaptureDoc, type CaptureModel, CollectionName, type DataItemDoc, type DataItemModel, type DatabaseDoc, type DatabaseModel, type DeploymentDoc, type DeploymentModel, type HarvesterModels, type HoursLogDoc, type HoursLogModel, INDEXES, type IndexSpec, type LlmCallDoc, type LlmCallModel, MODEL_NAMES, type MissionDoc, type MissionModel, type ModelName, NOT_SOFT_DELETED_FILTER, type ObjectIdArrayKey, type ObjectIdKey, type OrgSettingsDoc, type OrgSettingsModel, SCHEMAS, type ScoutProfileDoc, type ScoutProfileModel, type ScoutRatingDoc, type ScoutRatingModel, type ScraperDoc, type ScraperMetricDoc, type ScraperMetricModel, type ScraperModel, type SourceDoc, type SourceImportDoc, type SourceImportModel, type SourceModel, TASK_VERSION_HOOK_OPS, type TaskDoc, type TaskModel, type ToDoc, agentMessageSchema, agentSessionBudgetSchema, agentSessionSchema, agentSessionStatsSchema, analystProfileSchema, applyIndexes, assigneeLoadSchema, assignmentSchema, auditLogSchema, auditTargetSchema, availabilityWindowSchema, blobRefSchema, captureDomSummarySchema, captureRegionSchema, captureSchema, captureWindowSchema, collectorSchema, coverageWindowSchema, dataItemContentSchema, dataItemEntitySchema, dataItemSchema, databaseSchema, deploymentSchema, deploymentStepSchema, discoveredBySchema, geoSchema, hoursLogSchema, incrementTaskVersion, llmCallSchema, llmUsageSchema, missionSchema, objectIdsToStrings, orgSettingsSchema, platformAccessSchema, ratingSummarySchema, registerModels, scoutProfileSchema, scoutRatingSchema, scraperMetricSchema, scraperSchema, sourceImportRowErrorSchema, sourceImportSchema, sourceImportSummarySchema, sourceRatingSchema, sourceSchema, specialAccessSchema, systemRecommendationSchema, taskCriteriaSchema, taskSchema, taskTargetSchema, toJSONOptions };
8883
+ export { type AgentMessageDoc, type AgentMessageModel, type AgentSessionDoc, type AgentSessionModel, type AnalystProfileDoc, type AnalystProfileModel, type AssigneeLoadDoc, type AssigneeLoadModel, type AssignmentDoc, type AssignmentModel, type AuditLogDoc, type AuditLogModel, type CaptureDoc, type CaptureModel, CollectionName, type DataItemDoc, type DataItemModel, type DatabaseDoc, type DatabaseModel, type DeploymentDoc, type DeploymentModel, type HarvesterModels, type HoursLogDoc, type HoursLogModel, INDEXES, type IndexSpec, type LlmCallDoc, type LlmCallModel, MODEL_NAMES, type MissionDoc, type MissionModel, type ModelName, NOT_SOFT_DELETED_FILTER, type ObjectIdArrayKey, type ObjectIdKey, type OrgSettingsDoc, type OrgSettingsModel, SCHEMAS, type ScoutProfileDoc, type ScoutProfileModel, type ScoutRatingDoc, type ScoutRatingModel, type ScraperDoc, type ScraperMetricDoc, type ScraperMetricModel, type ScraperModel, type SourceDoc, type SourceImportDoc, type SourceImportModel, type SourceModel, TASK_VERSION_HOOK_OPS, type TaskDoc, type TaskModel, type ToDoc, agentMessageSchema, agentSessionBudgetSchema, agentSessionSchema, agentSessionStatsSchema, analystProfileSchema, applyIndexes, assigneeLoadSchema, assignmentSchema, auditLogSchema, auditTargetSchema, availabilityWindowSchema, blobRefSchema, captureDomSummarySchema, captureRegionSchema, captureSchema, captureWindowSchema, collectorSchema, coverageWindowSchema, dataItemContentSchema, dataItemEntitySchema, dataItemSchema, databaseSchema, deploymentSchema, deploymentStepSchema, discoveredBySchema, geoSchema, hoursLogSchema, incrementTaskVersion, llmCallSchema, llmUsageSchema, missionSchema, objectIdsToStrings, orgSettingsSchema, platformAccessSchema, ratingSummarySchema, registerModels, scoutProfileSchema, scoutRatingSchema, scraperMetricSchema, scraperSchema, sourceDiscoverySchema, sourceImportRowErrorSchema, sourceImportSchema, sourceImportSummarySchema, sourceRatingSchema, sourceSchema, specialAccessSchema, systemRecommendationSchema, taskCriteriaSchema, taskSchema, taskTargetSchema, toJSONOptions };