@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.
@@ -2368,6 +2368,45 @@ declare const DiscoveredBySchema: z.ZodObject<{
2368
2368
  importId?: string | undefined;
2369
2369
  }>;
2370
2370
  type DiscoveredBy = z.infer<typeof DiscoveredBySchema>;
2371
+ /**
2372
+ * Why the agent proposed this source: written once by hero-service at agent intake,
2373
+ * never by clients, absent on sources added by analysts or imports. The posts the agent
2374
+ * saw from it are ordinary DataItems (`sourceId` + `taskId`), not stored here.
2375
+ */
2376
+ declare const SourceDiscoverySchema: z.ZodObject<{
2377
+ /** The Discovery task whose capture found it. */
2378
+ taskId: z.ZodString;
2379
+ /** agent-service capture id, when the source came from a task-tagged capture. */
2380
+ captureId: z.ZodOptional<z.ZodString>;
2381
+ /** The page the person captured (e.g. a search or hashtag page), not the source itself. */
2382
+ capturedUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2383
+ name: z.ZodString;
2384
+ description: z.ZodOptional<z.ZodString>;
2385
+ /** The judge's reason for keeping it. */
2386
+ reason: z.ZodString;
2387
+ /** 0..1 relevance from the `judge` capability. */
2388
+ relevanceScore: z.ZodNumber;
2389
+ discoveredAt: z.ZodDate;
2390
+ }, "strip", z.ZodTypeAny, {
2391
+ name: string;
2392
+ taskId: string;
2393
+ reason: string;
2394
+ relevanceScore: number;
2395
+ discoveredAt: Date;
2396
+ description?: string | undefined;
2397
+ captureId?: string | undefined;
2398
+ capturedUrl?: string | undefined;
2399
+ }, {
2400
+ name: string;
2401
+ taskId: string;
2402
+ reason: string;
2403
+ relevanceScore: number;
2404
+ discoveredAt: Date;
2405
+ description?: string | undefined;
2406
+ captureId?: string | undefined;
2407
+ capturedUrl?: string | undefined;
2408
+ }>;
2409
+ type SourceDiscovery = z.infer<typeof SourceDiscoverySchema>;
2371
2410
  /**
2372
2411
  * A place to collect from. `(orgId, platform, url)` is unique. Lives in the
2373
2412
  * org's logical Database: `databaseId` is set by the server, never by clients.
@@ -2413,8 +2452,43 @@ declare const SourceSchema: z.ZodObject<{
2413
2452
  userId?: string | undefined;
2414
2453
  importId?: string | undefined;
2415
2454
  }>;
2455
+ discovery: z.ZodOptional<z.ZodObject<{
2456
+ /** The Discovery task whose capture found it. */
2457
+ taskId: z.ZodString;
2458
+ /** agent-service capture id, when the source came from a task-tagged capture. */
2459
+ captureId: z.ZodOptional<z.ZodString>;
2460
+ /** The page the person captured (e.g. a search or hashtag page), not the source itself. */
2461
+ capturedUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2462
+ name: z.ZodString;
2463
+ description: z.ZodOptional<z.ZodString>;
2464
+ /** The judge's reason for keeping it. */
2465
+ reason: z.ZodString;
2466
+ /** 0..1 relevance from the `judge` capability. */
2467
+ relevanceScore: z.ZodNumber;
2468
+ discoveredAt: z.ZodDate;
2469
+ }, "strip", z.ZodTypeAny, {
2470
+ name: string;
2471
+ taskId: string;
2472
+ reason: string;
2473
+ relevanceScore: number;
2474
+ discoveredAt: Date;
2475
+ description?: string | undefined;
2476
+ captureId?: string | undefined;
2477
+ capturedUrl?: string | undefined;
2478
+ }, {
2479
+ name: string;
2480
+ taskId: string;
2481
+ reason: string;
2482
+ relevanceScore: number;
2483
+ discoveredAt: Date;
2484
+ description?: string | undefined;
2485
+ captureId?: string | undefined;
2486
+ capturedUrl?: string | undefined;
2487
+ }>>;
2416
2488
  lastCollectedAt: z.ZodOptional<z.ZodDate>;
2417
2489
  nextVisitAt: z.ZodOptional<z.ZodDate>;
2490
+ /** Activity-based wait set by the last visit, before current urgency (see `effectiveDueAt`). */
2491
+ visitIntervalMs: z.ZodOptional<z.ZodNumber>;
2418
2492
  } & {
2419
2493
  createdAt: z.ZodDate;
2420
2494
  updatedAt: z.ZodDate;
@@ -2441,6 +2515,16 @@ declare const SourceSchema: z.ZodObject<{
2441
2515
  importId?: string | undefined;
2442
2516
  };
2443
2517
  deletedAt?: Date | undefined;
2518
+ discovery?: {
2519
+ name: string;
2520
+ taskId: string;
2521
+ reason: string;
2522
+ relevanceScore: number;
2523
+ discoveredAt: Date;
2524
+ description?: string | undefined;
2525
+ captureId?: string | undefined;
2526
+ capturedUrl?: string | undefined;
2527
+ } | undefined;
2444
2528
  handle?: string | undefined;
2445
2529
  scraperId?: string | undefined;
2446
2530
  rating?: {
@@ -2450,6 +2534,7 @@ declare const SourceSchema: z.ZodObject<{
2450
2534
  } | undefined;
2451
2535
  lastCollectedAt?: Date | undefined;
2452
2536
  nextVisitAt?: Date | undefined;
2537
+ visitIntervalMs?: number | undefined;
2453
2538
  }, {
2454
2539
  type: "channel" | "group" | "profile" | "forum" | "site";
2455
2540
  createdAt: Date;
@@ -2468,6 +2553,16 @@ declare const SourceSchema: z.ZodObject<{
2468
2553
  };
2469
2554
  status?: "active" | "paused" | "closed" | "access_problem" | undefined;
2470
2555
  deletedAt?: Date | undefined;
2556
+ discovery?: {
2557
+ name: string;
2558
+ taskId: string;
2559
+ reason: string;
2560
+ relevanceScore: number;
2561
+ discoveredAt: Date;
2562
+ description?: string | undefined;
2563
+ captureId?: string | undefined;
2564
+ capturedUrl?: string | undefined;
2565
+ } | undefined;
2471
2566
  tags?: string[] | undefined;
2472
2567
  missionIds?: string[] | undefined;
2473
2568
  taskIds?: string[] | undefined;
@@ -2480,6 +2575,7 @@ declare const SourceSchema: z.ZodObject<{
2480
2575
  } | undefined;
2481
2576
  lastCollectedAt?: Date | undefined;
2482
2577
  nextVisitAt?: Date | undefined;
2578
+ visitIntervalMs?: number | undefined;
2483
2579
  }>;
2484
2580
  declare const SourceCreateSchema: z.ZodObject<Omit<{
2485
2581
  _id: z.ZodString;
@@ -2522,14 +2618,49 @@ declare const SourceCreateSchema: z.ZodObject<Omit<{
2522
2618
  userId?: string | undefined;
2523
2619
  importId?: string | undefined;
2524
2620
  }>;
2621
+ discovery: z.ZodOptional<z.ZodObject<{
2622
+ /** The Discovery task whose capture found it. */
2623
+ taskId: z.ZodString;
2624
+ /** agent-service capture id, when the source came from a task-tagged capture. */
2625
+ captureId: z.ZodOptional<z.ZodString>;
2626
+ /** The page the person captured (e.g. a search or hashtag page), not the source itself. */
2627
+ capturedUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2628
+ name: z.ZodString;
2629
+ description: z.ZodOptional<z.ZodString>;
2630
+ /** The judge's reason for keeping it. */
2631
+ reason: z.ZodString;
2632
+ /** 0..1 relevance from the `judge` capability. */
2633
+ relevanceScore: z.ZodNumber;
2634
+ discoveredAt: z.ZodDate;
2635
+ }, "strip", z.ZodTypeAny, {
2636
+ name: string;
2637
+ taskId: string;
2638
+ reason: string;
2639
+ relevanceScore: number;
2640
+ discoveredAt: Date;
2641
+ description?: string | undefined;
2642
+ captureId?: string | undefined;
2643
+ capturedUrl?: string | undefined;
2644
+ }, {
2645
+ name: string;
2646
+ taskId: string;
2647
+ reason: string;
2648
+ relevanceScore: number;
2649
+ discoveredAt: Date;
2650
+ description?: string | undefined;
2651
+ captureId?: string | undefined;
2652
+ capturedUrl?: string | undefined;
2653
+ }>>;
2525
2654
  lastCollectedAt: z.ZodOptional<z.ZodDate>;
2526
2655
  nextVisitAt: z.ZodOptional<z.ZodDate>;
2656
+ /** Activity-based wait set by the last visit, before current urgency (see `effectiveDueAt`). */
2657
+ visitIntervalMs: z.ZodOptional<z.ZodNumber>;
2527
2658
  } & {
2528
2659
  createdAt: z.ZodDate;
2529
2660
  updatedAt: z.ZodDate;
2530
2661
  } & {
2531
2662
  deletedAt: z.ZodOptional<z.ZodDate>;
2532
- }, "createdAt" | "updatedAt" | "deletedAt" | "_id" | "orgId" | "databaseId" | "discoveredBy" | "lastCollectedAt">, "strip", z.ZodTypeAny, {
2663
+ }, "createdAt" | "updatedAt" | "deletedAt" | "_id" | "orgId" | "databaseId" | "discovery" | "discoveredBy" | "lastCollectedAt" | "visitIntervalMs">, "strip", z.ZodTypeAny, {
2533
2664
  type: "channel" | "group" | "profile" | "forum" | "site";
2534
2665
  status: "active" | "paused" | "closed" | "access_problem";
2535
2666
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
@@ -4266,16 +4397,16 @@ declare const SourceResultCardSchema: z.ZodObject<{
4266
4397
  name: string;
4267
4398
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
4268
4399
  kind: "source_result";
4269
- outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
4270
4400
  reason: string;
4401
+ outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
4271
4402
  url?: string | undefined;
4272
4403
  score?: number | undefined;
4273
4404
  }, {
4274
4405
  name: string;
4275
4406
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
4276
4407
  kind: "source_result";
4277
- outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
4278
4408
  reason: string;
4409
+ outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
4279
4410
  url?: string | undefined;
4280
4411
  score?: number | undefined;
4281
4412
  }>;
@@ -4396,16 +4527,16 @@ declare const AgentCardSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
4396
4527
  name: string;
4397
4528
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
4398
4529
  kind: "source_result";
4399
- outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
4400
4530
  reason: string;
4531
+ outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
4401
4532
  url?: string | undefined;
4402
4533
  score?: number | undefined;
4403
4534
  }, {
4404
4535
  name: string;
4405
4536
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
4406
4537
  kind: "source_result";
4407
- outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
4408
4538
  reason: string;
4539
+ outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
4409
4540
  url?: string | undefined;
4410
4541
  score?: number | undefined;
4411
4542
  }>, z.ZodObject<{
@@ -4522,16 +4653,16 @@ declare const AgentMessageSchema: z.ZodObject<{
4522
4653
  name: string;
4523
4654
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
4524
4655
  kind: "source_result";
4525
- outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
4526
4656
  reason: string;
4657
+ outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
4527
4658
  url?: string | undefined;
4528
4659
  score?: number | undefined;
4529
4660
  }, {
4530
4661
  name: string;
4531
4662
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
4532
4663
  kind: "source_result";
4533
- outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
4534
4664
  reason: string;
4665
+ outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
4535
4666
  url?: string | undefined;
4536
4667
  score?: number | undefined;
4537
4668
  }>, z.ZodObject<{
@@ -4626,8 +4757,8 @@ declare const AgentMessageSchema: z.ZodObject<{
4626
4757
  name: string;
4627
4758
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
4628
4759
  kind: "source_result";
4629
- outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
4630
4760
  reason: string;
4761
+ outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
4631
4762
  url?: string | undefined;
4632
4763
  score?: number | undefined;
4633
4764
  } | {
@@ -4673,8 +4804,8 @@ declare const AgentMessageSchema: z.ZodObject<{
4673
4804
  name: string;
4674
4805
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
4675
4806
  kind: "source_result";
4676
- outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
4677
4807
  reason: string;
4808
+ outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
4678
4809
  url?: string | undefined;
4679
4810
  score?: number | undefined;
4680
4811
  } | {
@@ -4744,16 +4875,16 @@ declare const AgentMessageCreateSchema: z.ZodObject<Omit<{
4744
4875
  name: string;
4745
4876
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
4746
4877
  kind: "source_result";
4747
- outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
4748
4878
  reason: string;
4879
+ outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
4749
4880
  url?: string | undefined;
4750
4881
  score?: number | undefined;
4751
4882
  }, {
4752
4883
  name: string;
4753
4884
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
4754
4885
  kind: "source_result";
4755
- outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
4756
4886
  reason: string;
4887
+ outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
4757
4888
  url?: string | undefined;
4758
4889
  score?: number | undefined;
4759
4890
  }>, z.ZodObject<{
@@ -4844,8 +4975,8 @@ declare const AgentMessageCreateSchema: z.ZodObject<Omit<{
4844
4975
  name: string;
4845
4976
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
4846
4977
  kind: "source_result";
4847
- outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
4848
4978
  reason: string;
4979
+ outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
4849
4980
  url?: string | undefined;
4850
4981
  score?: number | undefined;
4851
4982
  } | {
@@ -4887,8 +5018,8 @@ declare const AgentMessageCreateSchema: z.ZodObject<Omit<{
4887
5018
  name: string;
4888
5019
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
4889
5020
  kind: "source_result";
4890
- outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
4891
5021
  reason: string;
5022
+ outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
4892
5023
  url?: string | undefined;
4893
5024
  score?: number | undefined;
4894
5025
  } | {
@@ -5811,4 +5942,4 @@ type LlmCall = z.infer<typeof LlmCallSchema>;
5811
5942
  type LlmCallCreate = z.infer<typeof LlmCallCreateSchema>;
5812
5943
  type LlmCallCreateInput = z.input<typeof LlmCallCreateSchema>;
5813
5944
 
5814
- export { type AuditLogCreate as $, ACCESS_ISSUE_VALUES as A, AgentSessionMode as B, AgentSessionSchema as C, type AgentSessionStats as D, AgentSessionStatsSchema as E, AgentSessionStatus as F, type AgentSessionUpdate as G, AgentSessionUpdateSchema as H, AgentSourceOutcome as I, type AnalystProfile as J, AnalystProfileSchema as K, type AnalystProfileUpdate as L, type AnalystProfileUpdateInput as M, AnalystProfileUpdateSchema as N, type AssigneeLoad as O, AssigneeLoadSchema as P, AssigneeType as Q, type Assignment as R, type AssignmentCreate as S, type AssignmentCreateInput as T, AssignmentCreateSchema as U, AssignmentSchema as V, AssignmentSource as W, AssignmentStatus as X, type AssignmentUpdate as Y, AssignmentUpdateSchema as Z, type AuditLog as _, AGENT_CARD_KIND_VALUES as a, type DeploymentCreate as a$, AuditLogCreateSchema as a0, AuditLogSchema as a1, type AuditLogUpdate as a2, AuditLogUpdateSchema as a3, type AuditTarget as a4, AuditTargetSchema as a5, type BlobRef as a6, BlobRefSchema as a7, CAPTURE_DOM_STATUS_VALUES as a8, CAPTURE_STATUS_VALUES as a9, DEFAULT_ANALYST_TASK_LIMIT as aA, DEFAULT_SCOUT_TASK_LIMIT as aB, DEPLOYMENT_KIND_VALUES as aC, DEPLOYMENT_STATUS_VALUES as aD, DISCOVERED_BY_TYPE_VALUES as aE, type DataItem as aF, type DataItemContent as aG, DataItemContentSchema as aH, type DataItemCreate as aI, type DataItemCreateInput as aJ, DataItemCreateSchema as aK, type DataItemEntity as aL, DataItemEntitySchema as aM, DataItemSchema as aN, type DataItemUpdate as aO, DataItemUpdateSchema as aP, type Database as aQ, DatabaseCollection as aR, type DatabaseCreate as aS, type DatabaseCreateInput as aT, DatabaseCreateSchema as aU, DatabaseName as aV, DatabaseSchema as aW, DatabaseStatus as aX, type DatabaseUpdate as aY, DatabaseUpdateSchema as aZ, type Deployment as a_, CAPTURE_WINDOW_MODE_VALUES as aa, COLLECTIONS as ab, COLLECTOR_TYPE_VALUES as ac, type Capture as ad, type CaptureCreate as ae, type CaptureCreateInput as af, CaptureCreateSchema as ag, type CaptureDomSnapshot as ah, CaptureDomSnapshotSchema as ai, CaptureDomStatus as aj, type CaptureDomSummary as ak, CaptureDomSummarySchema as al, CapturePromptCardSchema as am, type CaptureRegion as an, CaptureRegionSchema as ao, CaptureSchema as ap, CaptureStatus as aq, CaptureThumbCardSchema as ar, CaptureWindowMode as as, type CollectionName as at, type Collector as au, CollectorSchema as av, CollectorType as aw, ConnectionString as ax, DATABASE_COLLECTION_VALUES as ay, DATABASE_STATUS_VALUES as az, AGENT_MESSAGE_KIND_VALUES as b, OrgSettingsUpdateSchema as b$, DeploymentCreateSchema as b0, DeploymentKind as b1, DeploymentSchema as b2, DeploymentStatus as b3, type DeploymentStep as b4, DeploymentStepSchema as b5, type DeploymentUpdate as b6, DeploymentUpdateSchema as b7, type DiscoveredBy as b8, DiscoveredBySchema as b9, type LlmCallCreateInput as bA, LlmCallCreateSchema as bB, LlmCallSchema as bC, LlmCapability as bD, LlmOutcome as bE, LlmProvider as bF, type LlmUsage as bG, LlmUsageSchema as bH, LoadScope as bI, MAX_AGENT_MESSAGE_TEXT_LENGTH as bJ, MAX_RATING_COMMENT_LENGTH as bK, MAX_SOURCE_IMPORT_ROW_ERRORS as bL, MISSION_PRIORITY_VALUES as bM, MISSION_STATUS_VALUES as bN, type Mission as bO, type MissionCreate as bP, type MissionCreateInput as bQ, MissionCreateSchema as bR, MissionPriority as bS, MissionSchema as bT, MissionStatus as bU, type MissionUpdate as bV, MissionUpdateSchema as bW, OpenLinkCardSchema as bX, type OrgSettings as bY, OrgSettingsSchema as bZ, type OrgSettingsUpdate as b_, DiscoveredByType as ba, type DomBlock as bb, DomBlockSchema as bc, type DomLink as bd, DomLinkSchema as be, type DomRect as bf, DomRectSchema as bg, Email as bh, GLOBAL_LOAD_SCOPE as bi, type Geo as bj, GeoSchema as bk, HOURS_LOG_SOURCE_VALUES as bl, type HoursLog as bm, type HoursLogCreate as bn, HoursLogCreateSchema as bo, HoursLogSchema as bp, HoursLogSource as bq, type HoursLogUpdate as br, HoursLogUpdateSchema as bs, HoursProposalCardSchema as bt, ItemResultCardSchema as bu, LLM_CAPABILITY_VALUES as bv, LLM_OUTCOME_VALUES as bw, LLM_PROVIDER_VALUES as bx, type LlmCall as by, type LlmCallCreate as bz, AGENT_MESSAGE_ROLE_VALUES as c, SourceImportSummarySchema as c$, PLATFORM_VALUES as c0, Platform as c1, QuickRepliesCardSchema as c2, type QuickReplyOption as c3, QuickReplyOptionSchema as c4, RATER_TYPE_VALUES as c5, REGION_MODE_VALUES as c6, RaterType as c7, RatingScore as c8, type RatingSummary as c9, type Scraper as cA, type ScraperCreate as cB, ScraperCreateSchema as cC, type ScraperMetric as cD, type ScraperMetricCreate as cE, ScraperMetricCreateSchema as cF, ScraperMetricSchema as cG, type ScraperMetricUpdate as cH, ScraperMetricUpdateSchema as cI, ScraperSchema as cJ, ScraperStatus as cK, type ScraperUpdate as cL, ScraperUpdateSchema as cM, type Source as cN, SourceAccess as cO, type SourceCreate as cP, type SourceCreateInput as cQ, SourceCreateSchema as cR, type SourceImport as cS, type SourceImportCreate as cT, SourceImportCreateSchema as cU, SourceImportKind as cV, type SourceImportRowError as cW, SourceImportRowErrorSchema as cX, SourceImportSchema as cY, SourceImportStatus as cZ, type SourceImportSummary as c_, RatingSummarySchema as ca, RegionMode as cb, SCOUT_STATUS_VALUES as cc, SCRAPER_STATUS_VALUES as cd, SOURCE_ACCESS_VALUES as ce, SOURCE_IMPORT_KIND_VALUES as cf, SOURCE_IMPORT_STATUS_VALUES as cg, SOURCE_INTAKE_OUTCOME_VALUES as ch, SOURCE_ROUTE_VALUES as ci, SOURCE_STATUS_VALUES as cj, SOURCE_TYPE_VALUES as ck, type ScoutProfile as cl, type ScoutProfileCreate as cm, type ScoutProfileCreateInput as cn, ScoutProfileCreateSchema as co, ScoutProfileSchema as cp, type ScoutProfileUpdate as cq, type ScoutProfileUpdateInput as cr, ScoutProfileUpdateSchema as cs, type ScoutRating as ct, type ScoutRatingInput as cu, ScoutRatingInputSchema as cv, ScoutRatingSchema as cw, type ScoutSelfUpdate as cx, ScoutSelfUpdateSchema as cy, ScoutStatus as cz, AGENT_SESSION_MODE_VALUES as d, type SourceImportUpdate as d0, SourceImportUpdateSchema as d1, SourceIntakeOutcome as d2, type SourceRating as d3, SourceRatingSchema as d4, SourceResultCardSchema as d5, SourceRoute as d6, SourceSchema as d7, SourceStatus as d8, SourceType as d9, type SourceUpdate as da, SourceUpdateSchema as db, type SystemRecommendation as dc, type SystemRecommendationInput as dd, SystemRecommendationInputSchema as de, SystemRecommendationSchema as df, TASK_KIND_VALUES as dg, TASK_ORIGIN_VALUES as dh, TASK_STATUS_VALUES as di, type Task as dj, type TaskCreate as dk, type TaskCreateInput as dl, TaskCreateSchema as dm, TaskKind as dn, TaskOrigin as dp, TaskSchema as dq, TaskStatus as dr, type TaskUpdate as ds, TaskUpdateSchema as dt, VETTING_STATUS_VALUES as du, VettingStatus as dv, AGENT_SESSION_STATUS_VALUES as e, AGENT_SOURCE_OUTCOME_VALUES as f, ASSIGNEE_TYPE_VALUES as g, ASSIGNMENT_SOURCE_VALUES as h, ASSIGNMENT_STATUS_VALUES as i, AccessIssue as j, type AgentCard as k, AgentCardKind as l, AgentCardSchema as m, type AgentMessage as n, type AgentMessageCreate as o, type AgentMessageCreateInput as p, AgentMessageCreateSchema as q, AgentMessageKind as r, AgentMessageRole as s, AgentMessageSchema as t, type AgentSession as u, type AgentSessionBudget as v, AgentSessionBudgetSchema as w, type AgentSessionCreate as x, type AgentSessionCreateInput as y, AgentSessionCreateSchema as z };
5945
+ export { AssignmentUpdateSchema as $, ACCESS_ISSUE_VALUES as A, AgentSessionMode as B, AgentSessionSchema as C, type AgentSessionStats as D, AgentSessionStatsSchema as E, AgentSessionStatus as F, type AgentSessionUpdate as G, AgentSessionUpdateSchema as H, AgentSourceOutcome as I, type AnalystProfile as J, AnalystProfileSchema as K, type AnalystProfileUpdate as L, MissionPriority as M, type AnalystProfileUpdateInput as N, AnalystProfileUpdateSchema as O, type AssigneeLoad as P, AssigneeLoadSchema as Q, AssigneeType as R, SourceStatus as S, type Assignment as T, type AssignmentCreate as U, type AssignmentCreateInput as V, AssignmentCreateSchema as W, AssignmentSchema as X, AssignmentSource as Y, AssignmentStatus as Z, type AssignmentUpdate as _, AGENT_CARD_KIND_VALUES as a, DatabaseUpdateSchema as a$, type AuditLog as a0, type AuditLogCreate as a1, AuditLogCreateSchema as a2, AuditLogSchema as a3, type AuditLogUpdate as a4, AuditLogUpdateSchema as a5, type AuditTarget as a6, AuditTargetSchema as a7, type BlobRef as a8, BlobRefSchema as a9, DATABASE_COLLECTION_VALUES as aA, DATABASE_STATUS_VALUES as aB, DEFAULT_ANALYST_TASK_LIMIT as aC, DEFAULT_SCOUT_TASK_LIMIT as aD, DEPLOYMENT_KIND_VALUES as aE, DEPLOYMENT_STATUS_VALUES as aF, DISCOVERED_BY_TYPE_VALUES as aG, type DataItem as aH, type DataItemContent as aI, DataItemContentSchema as aJ, type DataItemCreate as aK, type DataItemCreateInput as aL, DataItemCreateSchema as aM, type DataItemEntity as aN, DataItemEntitySchema as aO, DataItemSchema as aP, type DataItemUpdate as aQ, DataItemUpdateSchema as aR, type Database as aS, DatabaseCollection as aT, type DatabaseCreate as aU, type DatabaseCreateInput as aV, DatabaseCreateSchema as aW, DatabaseName as aX, DatabaseSchema as aY, DatabaseStatus as aZ, type DatabaseUpdate as a_, CAPTURE_DOM_STATUS_VALUES as aa, CAPTURE_STATUS_VALUES as ab, CAPTURE_WINDOW_MODE_VALUES as ac, COLLECTIONS as ad, COLLECTOR_TYPE_VALUES as ae, type Capture as af, type CaptureCreate as ag, type CaptureCreateInput as ah, CaptureCreateSchema as ai, type CaptureDomSnapshot as aj, CaptureDomSnapshotSchema as ak, CaptureDomStatus as al, type CaptureDomSummary as am, CaptureDomSummarySchema as an, CapturePromptCardSchema as ao, type CaptureRegion as ap, CaptureRegionSchema as aq, CaptureSchema as ar, CaptureStatus as as, CaptureThumbCardSchema as at, CaptureWindowMode as au, type CollectionName as av, type Collector as aw, CollectorSchema as ax, CollectorType as ay, ConnectionString as az, AGENT_MESSAGE_KIND_VALUES as b, type OrgSettingsUpdate as b$, type Deployment as b0, type DeploymentCreate as b1, DeploymentCreateSchema as b2, DeploymentKind as b3, DeploymentSchema as b4, DeploymentStatus as b5, type DeploymentStep as b6, DeploymentStepSchema as b7, type DeploymentUpdate as b8, DeploymentUpdateSchema as b9, type LlmCall as bA, type LlmCallCreate as bB, type LlmCallCreateInput as bC, LlmCallCreateSchema as bD, LlmCallSchema as bE, LlmCapability as bF, LlmOutcome as bG, LlmProvider as bH, type LlmUsage as bI, LlmUsageSchema as bJ, LoadScope as bK, MAX_AGENT_MESSAGE_TEXT_LENGTH as bL, MAX_RATING_COMMENT_LENGTH as bM, MAX_SOURCE_IMPORT_ROW_ERRORS as bN, MISSION_PRIORITY_VALUES as bO, MISSION_STATUS_VALUES as bP, type Mission as bQ, type MissionCreate as bR, type MissionCreateInput as bS, MissionCreateSchema as bT, MissionSchema as bU, MissionStatus as bV, type MissionUpdate as bW, MissionUpdateSchema as bX, OpenLinkCardSchema as bY, type OrgSettings as bZ, OrgSettingsSchema as b_, type DiscoveredBy as ba, DiscoveredBySchema as bb, DiscoveredByType as bc, type DomBlock as bd, DomBlockSchema as be, type DomLink as bf, DomLinkSchema as bg, type DomRect as bh, DomRectSchema as bi, Email as bj, GLOBAL_LOAD_SCOPE as bk, type Geo as bl, GeoSchema as bm, HOURS_LOG_SOURCE_VALUES as bn, type HoursLog as bo, type HoursLogCreate as bp, HoursLogCreateSchema as bq, HoursLogSchema as br, HoursLogSource as bs, type HoursLogUpdate as bt, HoursLogUpdateSchema as bu, HoursProposalCardSchema as bv, ItemResultCardSchema as bw, LLM_CAPABILITY_VALUES as bx, LLM_OUTCOME_VALUES as by, LLM_PROVIDER_VALUES as bz, AGENT_MESSAGE_ROLE_VALUES as c, SourceImportSchema as c$, OrgSettingsUpdateSchema as c0, PLATFORM_VALUES as c1, Platform as c2, QuickRepliesCardSchema as c3, type QuickReplyOption as c4, QuickReplyOptionSchema as c5, RATER_TYPE_VALUES as c6, REGION_MODE_VALUES as c7, RaterType as c8, RatingScore as c9, ScoutStatus as cA, type Scraper as cB, type ScraperCreate as cC, ScraperCreateSchema as cD, type ScraperMetric as cE, type ScraperMetricCreate as cF, ScraperMetricCreateSchema as cG, ScraperMetricSchema as cH, type ScraperMetricUpdate as cI, ScraperMetricUpdateSchema as cJ, ScraperSchema as cK, ScraperStatus as cL, type ScraperUpdate as cM, ScraperUpdateSchema as cN, type Source as cO, SourceAccess as cP, type SourceCreate as cQ, type SourceCreateInput as cR, SourceCreateSchema as cS, type SourceDiscovery as cT, SourceDiscoverySchema as cU, type SourceImport as cV, type SourceImportCreate as cW, SourceImportCreateSchema as cX, SourceImportKind as cY, type SourceImportRowError as cZ, SourceImportRowErrorSchema as c_, type RatingSummary as ca, RatingSummarySchema as cb, RegionMode as cc, SCOUT_STATUS_VALUES as cd, SCRAPER_STATUS_VALUES as ce, SOURCE_ACCESS_VALUES as cf, SOURCE_IMPORT_KIND_VALUES as cg, SOURCE_IMPORT_STATUS_VALUES as ch, SOURCE_INTAKE_OUTCOME_VALUES as ci, SOURCE_ROUTE_VALUES as cj, SOURCE_STATUS_VALUES as ck, SOURCE_TYPE_VALUES as cl, type ScoutProfile as cm, type ScoutProfileCreate as cn, type ScoutProfileCreateInput as co, ScoutProfileCreateSchema as cp, ScoutProfileSchema as cq, type ScoutProfileUpdate as cr, type ScoutProfileUpdateInput as cs, ScoutProfileUpdateSchema as ct, type ScoutRating as cu, type ScoutRatingInput as cv, ScoutRatingInputSchema as cw, ScoutRatingSchema as cx, type ScoutSelfUpdate as cy, ScoutSelfUpdateSchema as cz, AGENT_SESSION_MODE_VALUES as d, SourceImportStatus as d0, type SourceImportSummary as d1, SourceImportSummarySchema as d2, type SourceImportUpdate as d3, SourceImportUpdateSchema as d4, SourceIntakeOutcome as d5, type SourceRating as d6, SourceRatingSchema as d7, SourceResultCardSchema as d8, SourceRoute as d9, SourceSchema as da, SourceType as db, type SourceUpdate as dc, SourceUpdateSchema as dd, type SystemRecommendation as de, type SystemRecommendationInput as df, SystemRecommendationInputSchema as dg, SystemRecommendationSchema as dh, TASK_KIND_VALUES as di, TASK_ORIGIN_VALUES as dj, TASK_STATUS_VALUES as dk, type Task as dl, type TaskCreate as dm, type TaskCreateInput as dn, TaskCreateSchema as dp, TaskKind as dq, TaskOrigin as dr, TaskSchema as ds, TaskStatus as dt, type TaskUpdate as du, TaskUpdateSchema as dv, VETTING_STATUS_VALUES as dw, VettingStatus as dx, AGENT_SESSION_STATUS_VALUES as e, AGENT_SOURCE_OUTCOME_VALUES as f, ASSIGNEE_TYPE_VALUES as g, ASSIGNMENT_SOURCE_VALUES as h, ASSIGNMENT_STATUS_VALUES as i, AccessIssue as j, type AgentCard as k, AgentCardKind as l, AgentCardSchema as m, type AgentMessage as n, type AgentMessageCreate as o, type AgentMessageCreateInput as p, AgentMessageCreateSchema as q, AgentMessageKind as r, AgentMessageRole as s, AgentMessageSchema as t, type AgentSession as u, type AgentSessionBudget as v, AgentSessionBudgetSchema as w, type AgentSessionCreate as x, type AgentSessionCreateInput as y, AgentSessionCreateSchema as z };
package/dist/index.cjs CHANGED
@@ -195,6 +195,50 @@ var COLLECTIONS = {
195
195
  captures: "captures",
196
196
  llmCalls: "llmCalls"
197
197
  };
198
+ var HOUR_MS = 36e5;
199
+ var VISIT_INTERVAL_MIN_MS = 1 * HOUR_MS;
200
+ var VISIT_INTERVAL_MAX_MS = 72 * HOUR_MS;
201
+ var URGENCY_FACTOR = {
202
+ emergency: 0.5,
203
+ missionPriority: { critical: 0.5, high: 0.75, medium: 1, low: 1.5 }
204
+ };
205
+ var OverdueLevelSchema = zod.z.enum(["none", "late", "missed"]);
206
+ function knownInterval(source) {
207
+ if (source.visitIntervalMs) return { ms: source.visitIntervalMs, urgencyApplied: false };
208
+ if (source.lastCollectedAt && source.nextVisitAt) {
209
+ const derived = source.nextVisitAt.getTime() - source.lastCollectedAt.getTime();
210
+ if (derived > 0) return { ms: derived, urgencyApplied: true };
211
+ }
212
+ return void 0;
213
+ }
214
+ function baseVisitInterval(source) {
215
+ return knownInterval(source)?.ms;
216
+ }
217
+ function urgencyFactor(urgency) {
218
+ const priority = urgency.missionPriority ? URGENCY_FACTOR.missionPriority[urgency.missionPriority] : 1;
219
+ return (urgency.emergency ? URGENCY_FACTOR.emergency : 1) * priority;
220
+ }
221
+ function clampInterval(ms) {
222
+ return Math.min(Math.max(ms, VISIT_INTERVAL_MIN_MS), VISIT_INTERVAL_MAX_MS);
223
+ }
224
+ function effectiveInterval(source, urgency) {
225
+ const known = knownInterval(source);
226
+ if (!known) return void 0;
227
+ return clampInterval(known.urgencyApplied ? known.ms : known.ms * urgencyFactor(urgency));
228
+ }
229
+ function effectiveDueAt(source, urgency, now = /* @__PURE__ */ new Date()) {
230
+ if (source.status === "access_problem") return void 0;
231
+ if (!source.lastCollectedAt) return now;
232
+ const interval = effectiveInterval(source, urgency);
233
+ if (interval === void 0) return source.nextVisitAt ?? now;
234
+ return new Date(source.lastCollectedAt.getTime() + interval);
235
+ }
236
+ function overdueLevel(dueAt, intervalMs, now = /* @__PURE__ */ new Date()) {
237
+ if (!dueAt) return "none";
238
+ const lateMs = now.getTime() - dueAt.getTime();
239
+ if (lateMs <= 0) return "none";
240
+ return intervalMs !== void 0 && lateMs > intervalMs ? "missed" : "late";
241
+ }
198
242
  var DatabaseName = zod.z.string().min(1).max(63).regex(/^[^/\\. "$*<>:|?]+$/, "Invalid MongoDB database name");
199
243
  var ConnectionString = zod.z.string().min(1).regex(/^mongodb(\+srv)?:\/\/\S+$/, "Expected a mongodb:// or mongodb+srv:// URI");
200
244
  var DatabaseSchema = zod.z.object({
@@ -234,6 +278,7 @@ var TaskCriteriaSchema = zod.z.object({
234
278
  emergency: zod.z.boolean().default(false)
235
279
  });
236
280
  var MAX_CAPTURE_WINDOW_DAYS = 90;
281
+ var MONITOR_TASK_MAX_SOURCES = 20;
237
282
  var DAY_MS = 24 * 60 * 60 * 1e3;
238
283
  function isHttpUrl(value) {
239
284
  try {
@@ -538,6 +583,21 @@ var DiscoveredBySchema = zod.z.object({
538
583
  userId: ClerkUserId.optional(),
539
584
  importId: ObjectIdString.optional()
540
585
  });
586
+ var SourceDiscoverySchema = zod.z.object({
587
+ /** The Discovery task whose capture found it. */
588
+ taskId: ObjectIdString,
589
+ /** agent-service capture id, when the source came from a task-tagged capture. */
590
+ captureId: ObjectIdString.optional(),
591
+ /** The page the person captured (e.g. a search or hashtag page), not the source itself. */
592
+ capturedUrl: zod.z.string().url().refine(isHttpUrl, "Expected an http(s) URL").optional(),
593
+ name: zod.z.string().min(1).max(200),
594
+ description: zod.z.string().max(1e3).optional(),
595
+ /** The judge's reason for keeping it. */
596
+ reason: zod.z.string().max(300),
597
+ /** 0..1 relevance from the `judge` capability. */
598
+ relevanceScore: zod.z.number().min(0).max(1),
599
+ discoveredAt: zod.z.coerce.date()
600
+ });
541
601
  var SourceSchema = zod.z.object({
542
602
  _id: ObjectIdString,
543
603
  orgId: ClerkOrgId,
@@ -555,8 +615,11 @@ var SourceSchema = zod.z.object({
555
615
  tags: zod.z.array(zod.z.string().min(1)).default([]),
556
616
  status: SourceStatus.default("active"),
557
617
  discoveredBy: DiscoveredBySchema,
618
+ discovery: SourceDiscoverySchema.optional(),
558
619
  lastCollectedAt: zod.z.coerce.date().optional(),
559
- nextVisitAt: zod.z.coerce.date().optional()
620
+ nextVisitAt: zod.z.coerce.date().optional(),
621
+ /** Activity-based wait set by the last visit, before current urgency (see `effectiveDueAt`). */
622
+ visitIntervalMs: zod.z.number().int().positive().optional()
560
623
  }).merge(TimestampsSchema).merge(SoftDeleteSchema);
561
624
  var SourceCreateSchema = SourceSchema.omit({
562
625
  _id: true,
@@ -566,7 +629,9 @@ var SourceCreateSchema = SourceSchema.omit({
566
629
  updatedAt: true,
567
630
  deletedAt: true,
568
631
  discoveredBy: true,
569
- lastCollectedAt: true
632
+ discovery: true,
633
+ lastCollectedAt: true,
634
+ visitIntervalMs: true
570
635
  });
571
636
  var SourceUpdateSchema = SourceCreateSchema.partial();
572
637
  var MAX_SOURCE_IMPORT_ROW_ERRORS = 500;
@@ -998,6 +1063,16 @@ var AgentTaskCriteriaSchema = zod.z.object({
998
1063
  emergency: zod.z.boolean()
999
1064
  });
1000
1065
  var AgentTaskTargetSchema = TaskTargetSchema.omit({ sourceId: true });
1066
+ var AgentTaskSourceSchema = zod.z.object({
1067
+ platform: Platform,
1068
+ url: zod.z.string().url().refine(isHttpUrl, "Expected an http(s) URL"),
1069
+ label: zod.z.string().min(1).optional(),
1070
+ lastCapturedAt: zod.z.coerce.date().optional(),
1071
+ /** When to capture it again, under current urgency (absent: parked on an access problem). */
1072
+ dueAt: zod.z.coerce.date().optional(),
1073
+ /** Parked: a person couldn't get in; an analyst reviews it. */
1074
+ accessProblem: zod.z.boolean().optional()
1075
+ });
1001
1076
  var AgentTaskSchema = zod.z.object({
1002
1077
  id: ObjectIdString,
1003
1078
  title: zod.z.string(),
@@ -1007,6 +1082,8 @@ var AgentTaskSchema = zod.z.object({
1007
1082
  searchQueries: zod.z.array(zod.z.string()),
1008
1083
  criteria: AgentTaskCriteriaSchema,
1009
1084
  target: AgentTaskTargetSchema.optional(),
1085
+ /** Monitor: the attached sources other than `target`, sorted by platform then URL. */
1086
+ sources: zod.z.array(AgentTaskSourceSchema).default([]),
1010
1087
  captureWindow: CaptureWindowSchema.optional(),
1011
1088
  status: TaskStatus,
1012
1089
  version: zod.z.number().int().min(1),
@@ -1028,7 +1105,9 @@ var AgentAssignmentsResponseSchema = zod.z.object({
1028
1105
  });
1029
1106
  var AgentAssignmentVersionSchema = zod.z.object({
1030
1107
  assignmentId: ObjectIdString,
1031
- taskVersion: zod.z.number().int().min(1)
1108
+ taskVersion: zod.z.number().int().min(1),
1109
+ /** Monitor: the latest change to any attached source (a visit moves it; the task version doesn't). */
1110
+ sourcesUpdatedAt: zod.z.coerce.date().optional()
1032
1111
  });
1033
1112
  var AgentAssignmentVersionsResponseSchema = zod.z.object({
1034
1113
  items: zod.z.array(AgentAssignmentVersionSchema)
@@ -1145,6 +1224,10 @@ var SourceIntakeBodySchema = zod.z.object({
1145
1224
  /** The discovery task the session works; its mission's monitor task receives gated sources. */
1146
1225
  taskId: ObjectIdString,
1147
1226
  discoveredByUserId: ClerkUserId,
1227
+ /** agent-service capture the candidates came from (task-tagged captures). */
1228
+ captureId: ObjectIdString.optional(),
1229
+ /** The page that capture was taken on. */
1230
+ capturedUrl: zod.z.string().url().refine(isHttpUrl, "Expected an http(s) URL").optional(),
1148
1231
  candidates: zod.z.array(SourceIntakeCandidateSchema).min(1).max(MAX_SOURCE_INTAKE_CANDIDATES)
1149
1232
  });
1150
1233
  var SourceIntakeResultSchema = zod.z.object({
@@ -1239,6 +1322,7 @@ exports.AgentSourceOutcome = AgentSourceOutcome;
1239
1322
  exports.AgentStreamEventSchema = AgentStreamEventSchema;
1240
1323
  exports.AgentTaskCriteriaSchema = AgentTaskCriteriaSchema;
1241
1324
  exports.AgentTaskSchema = AgentTaskSchema;
1325
+ exports.AgentTaskSourceSchema = AgentTaskSourceSchema;
1242
1326
  exports.AgentTaskTargetSchema = AgentTaskTargetSchema;
1243
1327
  exports.AnalystProfileSchema = AnalystProfileSchema;
1244
1328
  exports.AnalystProfileUpdateSchema = AnalystProfileUpdateSchema;
@@ -1339,6 +1423,7 @@ exports.MAX_SOURCE_IMPORT_ROW_ERRORS = MAX_SOURCE_IMPORT_ROW_ERRORS;
1339
1423
  exports.MAX_SOURCE_INTAKE_CANDIDATES = MAX_SOURCE_INTAKE_CANDIDATES;
1340
1424
  exports.MISSION_PRIORITY_VALUES = MISSION_PRIORITY_VALUES;
1341
1425
  exports.MISSION_STATUS_VALUES = MISSION_STATUS_VALUES;
1426
+ exports.MONITOR_TASK_MAX_SOURCES = MONITOR_TASK_MAX_SOURCES;
1342
1427
  exports.MatchingFieldsSchema = MatchingFieldsSchema;
1343
1428
  exports.MissionCreateSchema = MissionCreateSchema;
1344
1429
  exports.MissionPriority = MissionPriority;
@@ -1349,6 +1434,7 @@ exports.ObjectIdString = ObjectIdString;
1349
1434
  exports.OpenLinkCardSchema = OpenLinkCardSchema;
1350
1435
  exports.OrgSettingsSchema = OrgSettingsSchema;
1351
1436
  exports.OrgSettingsUpdateSchema = OrgSettingsUpdateSchema;
1437
+ exports.OverdueLevelSchema = OverdueLevelSchema;
1352
1438
  exports.PLATFORM_VALUES = PLATFORM_VALUES;
1353
1439
  exports.PaginatedSchema = PaginatedSchema;
1354
1440
  exports.PaginationQuerySchema = PaginationQuerySchema;
@@ -1391,6 +1477,7 @@ exports.ScraperUpdateSchema = ScraperUpdateSchema;
1391
1477
  exports.SoftDeleteSchema = SoftDeleteSchema;
1392
1478
  exports.SourceAccess = SourceAccess;
1393
1479
  exports.SourceCreateSchema = SourceCreateSchema;
1480
+ exports.SourceDiscoverySchema = SourceDiscoverySchema;
1394
1481
  exports.SourceImportCreateSchema = SourceImportCreateSchema;
1395
1482
  exports.SourceImportKind = SourceImportKind;
1396
1483
  exports.SourceImportRowErrorSchema = SourceImportRowErrorSchema;
@@ -1428,8 +1515,17 @@ exports.TaskTargetSchema = TaskTargetSchema;
1428
1515
  exports.TaskUpdateSchema = TaskUpdateSchema;
1429
1516
  exports.TimeZone = TimeZone;
1430
1517
  exports.TimestampsSchema = TimestampsSchema;
1518
+ exports.URGENCY_FACTOR = URGENCY_FACTOR;
1431
1519
  exports.VETTING_STATUS_VALUES = VETTING_STATUS_VALUES;
1520
+ exports.VISIT_INTERVAL_MAX_MS = VISIT_INTERVAL_MAX_MS;
1521
+ exports.VISIT_INTERVAL_MIN_MS = VISIT_INTERVAL_MIN_MS;
1432
1522
  exports.VettingStatus = VettingStatus;
1523
+ exports.baseVisitInterval = baseVisitInterval;
1524
+ exports.clampInterval = clampInterval;
1525
+ exports.effectiveDueAt = effectiveDueAt;
1526
+ exports.effectiveInterval = effectiveInterval;
1433
1527
  exports.isHttpUrl = isHttpUrl;
1528
+ exports.overdueLevel = overdueLevel;
1529
+ exports.urgencyFactor = urgencyFactor;
1434
1530
  //# sourceMappingURL=index.cjs.map
1435
1531
  //# sourceMappingURL=index.cjs.map