@badger_badger/badger_hq 1.5.1 → 1.7.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.
package/dist/index.js CHANGED
@@ -86,6 +86,21 @@ var SOURCE_ROUTE_VALUES = ["scraper", "monitor", "waiting_for_scraper"];
86
86
  var SourceRoute = z.enum(SOURCE_ROUTE_VALUES);
87
87
  var SOURCE_STATUS_VALUES = ["active", "paused", "closed", "access_problem"];
88
88
  var SourceStatus = z.enum(SOURCE_STATUS_VALUES);
89
+ var ACCESS_ISSUE_VALUES = [
90
+ "login_required",
91
+ "private",
92
+ "bot_detection",
93
+ "captcha",
94
+ "geo_blocked",
95
+ "rate_limited",
96
+ "not_found",
97
+ "no_collector",
98
+ "collector_full",
99
+ "other"
100
+ ];
101
+ var AccessIssue = z.enum(ACCESS_ISSUE_VALUES);
102
+ var CAPTURE_WINDOW_MODE_VALUES = ["last_days", "range"];
103
+ var CaptureWindowMode = z.enum(CAPTURE_WINDOW_MODE_VALUES);
89
104
  var DISCOVERED_BY_TYPE_VALUES = ["scout", "analyst", "agent", "client", "import"];
90
105
  var DiscoveredByType = z.enum(DISCOVERED_BY_TYPE_VALUES);
91
106
  var SOURCE_IMPORT_KIND_VALUES = ["create", "update"];
@@ -133,6 +148,8 @@ var AGENT_SOURCE_OUTCOME_VALUES = [
133
148
  var AgentSourceOutcome = z.enum(AGENT_SOURCE_OUTCOME_VALUES);
134
149
  var CAPTURE_STATUS_VALUES = ["uploaded", "analyzing", "analyzed", "failed", "expired"];
135
150
  var CaptureStatus = z.enum(CAPTURE_STATUS_VALUES);
151
+ var HOURS_LOG_SOURCE_VALUES = ["manual", "inferred"];
152
+ var HoursLogSource = z.enum(HOURS_LOG_SOURCE_VALUES);
136
153
  var CAPTURE_DOM_STATUS_VALUES = ["ok", "unavailable", "truncated"];
137
154
  var CaptureDomStatus = z.enum(CAPTURE_DOM_STATUS_VALUES);
138
155
  var LLM_CAPABILITY_VALUES = ["plan", "vision_extract", "judge", "chat"];
@@ -176,6 +193,50 @@ var COLLECTIONS = {
176
193
  captures: "captures",
177
194
  llmCalls: "llmCalls"
178
195
  };
196
+ var HOUR_MS = 36e5;
197
+ var VISIT_INTERVAL_MIN_MS = 1 * HOUR_MS;
198
+ var VISIT_INTERVAL_MAX_MS = 72 * HOUR_MS;
199
+ var URGENCY_FACTOR = {
200
+ emergency: 0.5,
201
+ missionPriority: { critical: 0.5, high: 0.75, medium: 1, low: 1.5 }
202
+ };
203
+ var OverdueLevelSchema = z.enum(["none", "late", "missed"]);
204
+ function knownInterval(source) {
205
+ if (source.visitIntervalMs) return { ms: source.visitIntervalMs, urgencyApplied: false };
206
+ if (source.lastCollectedAt && source.nextVisitAt) {
207
+ const derived = source.nextVisitAt.getTime() - source.lastCollectedAt.getTime();
208
+ if (derived > 0) return { ms: derived, urgencyApplied: true };
209
+ }
210
+ return void 0;
211
+ }
212
+ function baseVisitInterval(source) {
213
+ return knownInterval(source)?.ms;
214
+ }
215
+ function urgencyFactor(urgency) {
216
+ const priority = urgency.missionPriority ? URGENCY_FACTOR.missionPriority[urgency.missionPriority] : 1;
217
+ return (urgency.emergency ? URGENCY_FACTOR.emergency : 1) * priority;
218
+ }
219
+ function clampInterval(ms) {
220
+ return Math.min(Math.max(ms, VISIT_INTERVAL_MIN_MS), VISIT_INTERVAL_MAX_MS);
221
+ }
222
+ function effectiveInterval(source, urgency) {
223
+ const known = knownInterval(source);
224
+ if (!known) return void 0;
225
+ return clampInterval(known.urgencyApplied ? known.ms : known.ms * urgencyFactor(urgency));
226
+ }
227
+ function effectiveDueAt(source, urgency, now = /* @__PURE__ */ new Date()) {
228
+ if (source.status === "access_problem") return void 0;
229
+ if (!source.lastCollectedAt) return now;
230
+ const interval = effectiveInterval(source, urgency);
231
+ if (interval === void 0) return source.nextVisitAt ?? now;
232
+ return new Date(source.lastCollectedAt.getTime() + interval);
233
+ }
234
+ function overdueLevel(dueAt, intervalMs, now = /* @__PURE__ */ new Date()) {
235
+ if (!dueAt) return "none";
236
+ const lateMs = now.getTime() - dueAt.getTime();
237
+ if (lateMs <= 0) return "none";
238
+ return intervalMs !== void 0 && lateMs > intervalMs ? "missed" : "late";
239
+ }
179
240
  var DatabaseName = z.string().min(1).max(63).regex(/^[^/\\. "$*<>:|?]+$/, "Invalid MongoDB database name");
180
241
  var ConnectionString = z.string().min(1).regex(/^mongodb(\+srv)?:\/\/\S+$/, "Expected a mongodb:// or mongodb+srv:// URI");
181
242
  var DatabaseSchema = z.object({
@@ -214,6 +275,52 @@ var TaskCriteriaSchema = z.object({
214
275
  coverageWindow: CoverageWindowSchema.optional(),
215
276
  emergency: z.boolean().default(false)
216
277
  });
278
+ var MAX_CAPTURE_WINDOW_DAYS = 90;
279
+ var MONITOR_TASK_MAX_SOURCES = 20;
280
+ var DAY_MS = 24 * 60 * 60 * 1e3;
281
+ function isHttpUrl(value) {
282
+ try {
283
+ const { protocol } = new URL(value);
284
+ return protocol === "http:" || protocol === "https:";
285
+ } catch {
286
+ return false;
287
+ }
288
+ }
289
+ var WindowDate = z.union([z.date(), z.string().datetime({ offset: true })]).pipe(z.coerce.date());
290
+ var TaskTargetSchema = z.object({
291
+ sourceId: ObjectIdString.optional(),
292
+ platform: Platform,
293
+ url: z.string().url().refine(isHttpUrl, "Expected an http(s) URL"),
294
+ label: z.string().min(1).max(200).optional(),
295
+ /** Why a person collects it instead of a scraper. */
296
+ accessIssue: AccessIssue.optional(),
297
+ note: z.string().max(500).optional()
298
+ });
299
+ var LastDaysWindowSchema = z.object({
300
+ mode: z.literal(CaptureWindowMode.enum.last_days),
301
+ days: z.number().int().min(1).max(MAX_CAPTURE_WINDOW_DAYS)
302
+ });
303
+ var RangeWindowSchema = z.object({
304
+ mode: z.literal(CaptureWindowMode.enum.range),
305
+ start: WindowDate,
306
+ end: WindowDate
307
+ });
308
+ var CaptureWindowSchema = z.discriminatedUnion("mode", [LastDaysWindowSchema, RangeWindowSchema]).superRefine((w, ctx) => {
309
+ if (w.mode !== "range" || !(w.start instanceof Date) || !(w.end instanceof Date)) return;
310
+ if (w.end.getTime() <= w.start.getTime()) {
311
+ ctx.addIssue({
312
+ code: z.ZodIssueCode.custom,
313
+ message: "captureWindow.end must be after captureWindow.start",
314
+ path: ["end"]
315
+ });
316
+ } else if (w.end.getTime() - w.start.getTime() > MAX_CAPTURE_WINDOW_DAYS * DAY_MS) {
317
+ ctx.addIssue({
318
+ code: z.ZodIssueCode.custom,
319
+ message: `captureWindow range must be at most ${MAX_CAPTURE_WINDOW_DAYS} days`,
320
+ path: ["end"]
321
+ });
322
+ }
323
+ });
217
324
  var MissionSchema = z.object({
218
325
  _id: ObjectIdString,
219
326
  orgId: ClerkOrgId,
@@ -249,6 +356,10 @@ var TaskSchema = z.object({
249
356
  keywords: z.array(z.string().min(1)).default([]),
250
357
  searchQueries: z.array(z.string().min(1)).default([]),
251
358
  criteria: TaskCriteriaSchema,
359
+ /** Monitor: the one source to collect. Discovery: optional source to search inside. */
360
+ target: TaskTargetSchema.optional(),
361
+ /** Monitor: what to capture (last N days, or a fixed range). */
362
+ captureWindow: CaptureWindowSchema.optional(),
252
363
  status: TaskStatus.default("draft"),
253
364
  approvedBy: ClerkUserId.optional(),
254
365
  approvedAt: z.coerce.date().optional(),
@@ -307,7 +418,9 @@ var HoursLogSchema = z.object({
307
418
  scoutUserId: ClerkUserId,
308
419
  minutes: z.number().int().positive(),
309
420
  note: z.string(),
310
- date: z.coerce.date()
421
+ date: z.coerce.date(),
422
+ assignmentId: ObjectIdString.optional(),
423
+ source: HoursLogSource.optional()
311
424
  }).merge(TimestampsSchema).merge(SoftDeleteSchema);
312
425
  var HoursLogCreateSchema = HoursLogSchema.omit({
313
426
  _id: true,
@@ -486,7 +599,9 @@ var SourceSchema = z.object({
486
599
  status: SourceStatus.default("active"),
487
600
  discoveredBy: DiscoveredBySchema,
488
601
  lastCollectedAt: z.coerce.date().optional(),
489
- nextVisitAt: z.coerce.date().optional()
602
+ nextVisitAt: z.coerce.date().optional(),
603
+ /** Activity-based wait set by the last visit, before current urgency (see `effectiveDueAt`). */
604
+ visitIntervalMs: z.number().int().positive().optional()
490
605
  }).merge(TimestampsSchema).merge(SoftDeleteSchema);
491
606
  var SourceCreateSchema = SourceSchema.omit({
492
607
  _id: true,
@@ -496,7 +611,8 @@ var SourceCreateSchema = SourceSchema.omit({
496
611
  updatedAt: true,
497
612
  deletedAt: true,
498
613
  discoveredBy: true,
499
- lastCollectedAt: true
614
+ lastCollectedAt: true,
615
+ visitIntervalMs: true
500
616
  });
501
617
  var SourceUpdateSchema = SourceCreateSchema.partial();
502
618
  var MAX_SOURCE_IMPORT_ROW_ERRORS = 500;
@@ -713,6 +829,8 @@ var AgentSessionSchema = z.object({
713
829
  lastSeq: count(),
714
830
  stats: AgentSessionStatsSchema.default({}),
715
831
  budget: AgentSessionBudgetSchema.default({}),
832
+ /** The task's capture window as dates, fixed when the session started (`last_days` counted back from then). */
833
+ captureWindow: CoverageWindowSchema.optional(),
716
834
  /** Mode-specific engine state (search plan cursor, monitor queue). Opaque to clients. */
717
835
  state: z.unknown().optional()
718
836
  }).merge(TimestampsSchema);
@@ -818,7 +936,14 @@ var CaptureDomSummarySchema = z.object({
818
936
  var CaptureSchema = z.object({
819
937
  _id: ObjectIdString,
820
938
  orgId: ClerkOrgId,
821
- sessionId: ObjectIdString,
939
+ /** Legacy: captures uploaded into a live session. Task-tagged captures have none. */
940
+ sessionId: ObjectIdString.optional(),
941
+ /** The assignment (and so the task) the person sent this capture for. */
942
+ assignmentId: ObjectIdString.optional(),
943
+ taskId: ObjectIdString.optional(),
944
+ missionId: ObjectIdString.optional(),
945
+ /** Who sent it; used to work out their hours. */
946
+ userId: ClerkUserId.optional(),
822
947
  /** From `chrome.tabs`, never from page content. */
823
948
  url: z.string().url(),
824
949
  title: z.string().max(500),
@@ -834,6 +959,10 @@ var CaptureSchema = z.object({
834
959
  /** Validated `vision_extract` output; shape depends on session mode. */
835
960
  analysis: z.unknown().optional(),
836
961
  error: z.string().max(1e3).optional(),
962
+ /** Analysis attempts by the capture worker; it gives up (`failed`) after a few. */
963
+ attempts: z.number().int().min(0).default(0),
964
+ /** When the worker claimed it (`analyzing`); an old claim is taken over after a restart. */
965
+ claimedAt: z.coerce.date().optional(),
837
966
  /** Blob deleted and status set to `expired` after this instant (CAPTURE_RETENTION_DAYS). */
838
967
  expiresAt: z.coerce.date()
839
968
  }).merge(TimestampsSchema);
@@ -914,6 +1043,17 @@ var AgentTaskCriteriaSchema = z.object({
914
1043
  coverageWindow: CoverageWindowSchema.optional(),
915
1044
  emergency: z.boolean()
916
1045
  });
1046
+ var AgentTaskTargetSchema = TaskTargetSchema.omit({ sourceId: true });
1047
+ var AgentTaskSourceSchema = z.object({
1048
+ platform: Platform,
1049
+ url: z.string().url().refine(isHttpUrl, "Expected an http(s) URL"),
1050
+ label: z.string().min(1).optional(),
1051
+ lastCapturedAt: z.coerce.date().optional(),
1052
+ /** When to capture it again, under current urgency (absent: parked on an access problem). */
1053
+ dueAt: z.coerce.date().optional(),
1054
+ /** Parked: a person couldn't get in; an analyst reviews it. */
1055
+ accessProblem: z.boolean().optional()
1056
+ });
917
1057
  var AgentTaskSchema = z.object({
918
1058
  id: ObjectIdString,
919
1059
  title: z.string(),
@@ -922,6 +1062,10 @@ var AgentTaskSchema = z.object({
922
1062
  keywords: z.array(z.string()),
923
1063
  searchQueries: z.array(z.string()),
924
1064
  criteria: AgentTaskCriteriaSchema,
1065
+ target: AgentTaskTargetSchema.optional(),
1066
+ /** Monitor: the attached sources other than `target`, sorted by platform then URL. */
1067
+ sources: z.array(AgentTaskSourceSchema).default([]),
1068
+ captureWindow: CaptureWindowSchema.optional(),
925
1069
  status: TaskStatus,
926
1070
  version: z.number().int().min(1),
927
1071
  updatedAt: z.coerce.date()
@@ -942,7 +1086,9 @@ var AgentAssignmentsResponseSchema = z.object({
942
1086
  });
943
1087
  var AgentAssignmentVersionSchema = z.object({
944
1088
  assignmentId: ObjectIdString,
945
- taskVersion: z.number().int().min(1)
1089
+ taskVersion: z.number().int().min(1),
1090
+ /** Monitor: the latest change to any attached source (a visit moves it; the task version doesn't). */
1091
+ sourcesUpdatedAt: z.coerce.date().optional()
946
1092
  });
947
1093
  var AgentAssignmentVersionsResponseSchema = z.object({
948
1094
  items: z.array(AgentAssignmentVersionSchema)
@@ -982,7 +1128,11 @@ var AgentSessionViewSchema = z.object({
982
1128
  endedAt: z.coerce.date().nullable(),
983
1129
  activeMinutes: z.number().int().min(0),
984
1130
  lastSeq: z.number().int().min(0),
985
- stats: AgentSessionStatsSchema
1131
+ stats: AgentSessionStatsSchema,
1132
+ /** The task's source (no internal id), when it has one. */
1133
+ target: AgentTaskTargetSchema.optional(),
1134
+ /** The capture window resolved to dates when the session started. */
1135
+ captureWindow: CoverageWindowSchema.optional()
986
1136
  });
987
1137
  var AgentMessageViewSchema = z.object({
988
1138
  id: ObjectIdString,
@@ -1099,6 +1249,6 @@ var PriorityAlertResponseSchema = z.object({
1099
1249
  var INTERNAL_ERROR_CODE_VALUES = ["UNAUTHENTICATED", "NOT_FOUND", "VALIDATION_ERROR", "INTERNAL"];
1100
1250
  var InternalErrorCode = z.enum(INTERNAL_ERROR_CODE_VALUES);
1101
1251
 
1102
- export { AGENT_CARD_KIND_VALUES, AGENT_ERROR_CODE_VALUES, AGENT_MESSAGE_KIND_VALUES, AGENT_MESSAGE_ROLE_VALUES, AGENT_ROLE_VALUES, AGENT_SESSION_MODE_VALUES, AGENT_SESSION_STATUS_VALUES, AGENT_SOURCE_OUTCOME_VALUES, ASSIGNEE_TYPE_VALUES, ASSIGNMENT_SOURCE_VALUES, ASSIGNMENT_STATUS_VALUES, AgentActiveSessionResponseSchema, AgentAssignmentItemSchema, AgentAssignmentVersionSchema, AgentAssignmentVersionsResponseSchema, AgentAssignmentsResponseSchema, AgentCaptureFieldsSchema, AgentCaptureResponseSchema, AgentCardKind, AgentCardSchema, AgentErrorCode, AgentErrorSchema, AgentMeSchema, AgentMessageCreateSchema, AgentMessageKind, AgentMessageRole, AgentMessageSchema, AgentMessageViewSchema, AgentMessagesQuerySchema, AgentMessagesResponseSchema, AgentOrgRefSchema, AgentReplyBodySchema, AgentRole, AgentSessionBudgetSchema, AgentSessionCreateSchema, AgentSessionMode, AgentSessionResponseSchema, AgentSessionSchema, AgentSessionStartBodySchema, AgentSessionStartResponseSchema, AgentSessionStatsSchema, AgentSessionStatus, AgentSessionUpdateSchema, AgentSessionViewSchema, AgentSourceOutcome, AgentStreamEventSchema, AgentTaskCriteriaSchema, AgentTaskSchema, AnalystProfileSchema, AnalystProfileUpdateSchema, ApiErrorSchema, AssigneeLoadSchema, AssigneeType, AssignmentCreateSchema, AssignmentSchema, AssignmentSource, AssignmentStatus, AssignmentUpdateSchema, AuditLogCreateSchema, AuditLogSchema, AuditLogUpdateSchema, AuditTargetSchema, AvailabilityWindowSchema, BlobRefSchema, CAPTURE_DOM_STATUS_VALUES, CAPTURE_STATUS_VALUES, COLLECTIONS, COLLECTOR_TYPE_VALUES, CaptureCreateSchema, CaptureDomSnapshotSchema, CaptureDomStatus, CaptureDomSummarySchema, CapturePromptCardSchema, CaptureRegionSchema, CaptureSchema, CaptureStatus, CaptureThumbCardSchema, ClerkOrgId, ClerkUserId, CollectorSchema, CollectorType, ConnectionString, CoverageWindowSchema, DATABASE_COLLECTION_VALUES, DATABASE_STATUS_VALUES, DEFAULT_ANALYST_TASK_LIMIT, DEFAULT_SCOUT_TASK_LIMIT, DEPLOYMENT_KIND_VALUES, DEPLOYMENT_STATUS_VALUES, DISCOVERED_BY_TYPE_VALUES, DataItemContentSchema, DataItemCreateSchema, DataItemEntitySchema, DataItemSchema, DataItemUpdateSchema, DatabaseCollection, DatabaseCreateSchema, DatabaseId, DatabaseName, DatabaseSchema, DatabaseStatus, DatabaseUpdateSchema, DeploymentCreateSchema, DeploymentKind, DeploymentSchema, DeploymentStatus, DeploymentStepSchema, DeploymentUpdateSchema, DiscoveredBySchema, DiscoveredByType, DomBlockSchema, DomLinkSchema, DomRectSchema, Email, GLOBAL_LOAD_SCOPE, GeoSchema, HHmm, HoursLogCreateSchema, HoursLogSchema, HoursLogUpdateSchema, HoursProposalCardSchema, INTERNAL_ERROR_CODE_VALUES, InternalErrorCode, ItemResultCardSchema, LLM_CAPABILITY_VALUES, LLM_OUTCOME_VALUES, LLM_PROVIDER_VALUES, LanguageCode, LlmCallCreateSchema, LlmCallSchema, LlmCapability, LlmOutcome, LlmProvider, LlmUsageSchema, LoadScope, MAX_AGENT_MESSAGE_TEXT_LENGTH, MAX_RATING_COMMENT_LENGTH, MAX_SOURCE_IMPORT_ROW_ERRORS, MAX_SOURCE_INTAKE_CANDIDATES, MISSION_PRIORITY_VALUES, MISSION_STATUS_VALUES, MatchingFieldsSchema, MissionCreateSchema, MissionPriority, MissionSchema, MissionStatus, MissionUpdateSchema, ObjectIdString, OpenLinkCardSchema, OrgSettingsSchema, OrgSettingsUpdateSchema, PLATFORM_VALUES, PaginatedSchema, PaginationQuerySchema, Platform, PlatformAccessSchema, PriorityAlertBodySchema, PriorityAlertResponseSchema, QuickRepliesCardSchema, QuickReplyOptionSchema, RATER_TYPE_VALUES, REGION_MODE_VALUES, RaterType, RatingScore, RatingSummarySchema, RegionMode, SCOUT_STATUS_VALUES, SCRAPER_STATUS_VALUES, SERVER_MANAGED_KEYS, SOURCE_ACCESS_VALUES, SOURCE_IMPORT_KIND_VALUES, SOURCE_IMPORT_STATUS_VALUES, SOURCE_INTAKE_OUTCOME_VALUES, SOURCE_ROUTE_VALUES, SOURCE_STATUS_VALUES, SOURCE_TYPE_VALUES, ScoutProfileCreateSchema, ScoutProfileSchema, ScoutProfileUpdateSchema, ScoutRatingInputSchema, ScoutRatingSchema, ScoutSelfUpdateSchema, ScoutStatus, ScraperCreateSchema, ScraperMetricCreateSchema, ScraperMetricSchema, ScraperMetricUpdateSchema, ScraperSchema, ScraperStatus, ScraperUpdateSchema, SoftDeleteSchema, SourceAccess, SourceCreateSchema, SourceImportCreateSchema, SourceImportKind, SourceImportRowErrorSchema, SourceImportSchema, SourceImportStatus, SourceImportSummarySchema, SourceImportUpdateSchema, SourceIntakeBodySchema, SourceIntakeCandidateSchema, SourceIntakeOutcome, SourceIntakeResponseSchema, SourceIntakeResultSchema, SourceRatingSchema, SourceResultCardSchema, SourceRoute, SourceSchema, SourceStatus, SourceType, SourceUpdateSchema, SourceVisitBodySchema, SourceVisitResponseSchema, SpecialAccessSchema, SystemRecommendationInputSchema, SystemRecommendationSchema, TASK_KIND_VALUES, TASK_ORIGIN_VALUES, TASK_STATUS_VALUES, TaskCreateSchema, TaskCriteriaSchema, TaskKind, TaskOrigin, TaskSchema, TaskStatus, TaskUpdateSchema, TimeZone, TimestampsSchema, VETTING_STATUS_VALUES, VettingStatus };
1252
+ export { ACCESS_ISSUE_VALUES, AGENT_CARD_KIND_VALUES, AGENT_ERROR_CODE_VALUES, AGENT_MESSAGE_KIND_VALUES, AGENT_MESSAGE_ROLE_VALUES, AGENT_ROLE_VALUES, AGENT_SESSION_MODE_VALUES, AGENT_SESSION_STATUS_VALUES, AGENT_SOURCE_OUTCOME_VALUES, ASSIGNEE_TYPE_VALUES, ASSIGNMENT_SOURCE_VALUES, ASSIGNMENT_STATUS_VALUES, AccessIssue, AgentActiveSessionResponseSchema, AgentAssignmentItemSchema, AgentAssignmentVersionSchema, AgentAssignmentVersionsResponseSchema, AgentAssignmentsResponseSchema, AgentCaptureFieldsSchema, AgentCaptureResponseSchema, AgentCardKind, AgentCardSchema, AgentErrorCode, AgentErrorSchema, AgentMeSchema, AgentMessageCreateSchema, AgentMessageKind, AgentMessageRole, AgentMessageSchema, AgentMessageViewSchema, AgentMessagesQuerySchema, AgentMessagesResponseSchema, AgentOrgRefSchema, AgentReplyBodySchema, AgentRole, AgentSessionBudgetSchema, AgentSessionCreateSchema, AgentSessionMode, AgentSessionResponseSchema, AgentSessionSchema, AgentSessionStartBodySchema, AgentSessionStartResponseSchema, AgentSessionStatsSchema, AgentSessionStatus, AgentSessionUpdateSchema, AgentSessionViewSchema, AgentSourceOutcome, AgentStreamEventSchema, AgentTaskCriteriaSchema, AgentTaskSchema, AgentTaskSourceSchema, AgentTaskTargetSchema, AnalystProfileSchema, AnalystProfileUpdateSchema, ApiErrorSchema, AssigneeLoadSchema, AssigneeType, AssignmentCreateSchema, AssignmentSchema, AssignmentSource, AssignmentStatus, AssignmentUpdateSchema, AuditLogCreateSchema, AuditLogSchema, AuditLogUpdateSchema, AuditTargetSchema, AvailabilityWindowSchema, BlobRefSchema, CAPTURE_DOM_STATUS_VALUES, CAPTURE_STATUS_VALUES, CAPTURE_WINDOW_MODE_VALUES, COLLECTIONS, COLLECTOR_TYPE_VALUES, CaptureCreateSchema, CaptureDomSnapshotSchema, CaptureDomStatus, CaptureDomSummarySchema, CapturePromptCardSchema, CaptureRegionSchema, CaptureSchema, CaptureStatus, CaptureThumbCardSchema, CaptureWindowMode, CaptureWindowSchema, ClerkOrgId, ClerkUserId, CollectorSchema, CollectorType, ConnectionString, CoverageWindowSchema, DATABASE_COLLECTION_VALUES, DATABASE_STATUS_VALUES, DEFAULT_ANALYST_TASK_LIMIT, DEFAULT_SCOUT_TASK_LIMIT, DEPLOYMENT_KIND_VALUES, DEPLOYMENT_STATUS_VALUES, DISCOVERED_BY_TYPE_VALUES, DataItemContentSchema, DataItemCreateSchema, DataItemEntitySchema, DataItemSchema, DataItemUpdateSchema, DatabaseCollection, DatabaseCreateSchema, DatabaseId, DatabaseName, DatabaseSchema, DatabaseStatus, DatabaseUpdateSchema, DeploymentCreateSchema, DeploymentKind, DeploymentSchema, DeploymentStatus, DeploymentStepSchema, DeploymentUpdateSchema, DiscoveredBySchema, DiscoveredByType, DomBlockSchema, DomLinkSchema, DomRectSchema, Email, GLOBAL_LOAD_SCOPE, GeoSchema, HHmm, HOURS_LOG_SOURCE_VALUES, HoursLogCreateSchema, HoursLogSchema, HoursLogSource, HoursLogUpdateSchema, HoursProposalCardSchema, INTERNAL_ERROR_CODE_VALUES, InternalErrorCode, ItemResultCardSchema, LLM_CAPABILITY_VALUES, LLM_OUTCOME_VALUES, LLM_PROVIDER_VALUES, LanguageCode, LlmCallCreateSchema, LlmCallSchema, LlmCapability, LlmOutcome, LlmProvider, LlmUsageSchema, LoadScope, MAX_AGENT_MESSAGE_TEXT_LENGTH, MAX_CAPTURE_WINDOW_DAYS, MAX_RATING_COMMENT_LENGTH, MAX_SOURCE_IMPORT_ROW_ERRORS, MAX_SOURCE_INTAKE_CANDIDATES, MISSION_PRIORITY_VALUES, MISSION_STATUS_VALUES, MONITOR_TASK_MAX_SOURCES, MatchingFieldsSchema, MissionCreateSchema, MissionPriority, MissionSchema, MissionStatus, MissionUpdateSchema, ObjectIdString, OpenLinkCardSchema, OrgSettingsSchema, OrgSettingsUpdateSchema, OverdueLevelSchema, PLATFORM_VALUES, PaginatedSchema, PaginationQuerySchema, Platform, PlatformAccessSchema, PriorityAlertBodySchema, PriorityAlertResponseSchema, QuickRepliesCardSchema, QuickReplyOptionSchema, RATER_TYPE_VALUES, REGION_MODE_VALUES, RaterType, RatingScore, RatingSummarySchema, RegionMode, SCOUT_STATUS_VALUES, SCRAPER_STATUS_VALUES, SERVER_MANAGED_KEYS, SOURCE_ACCESS_VALUES, SOURCE_IMPORT_KIND_VALUES, SOURCE_IMPORT_STATUS_VALUES, SOURCE_INTAKE_OUTCOME_VALUES, SOURCE_ROUTE_VALUES, SOURCE_STATUS_VALUES, SOURCE_TYPE_VALUES, ScoutProfileCreateSchema, ScoutProfileSchema, ScoutProfileUpdateSchema, ScoutRatingInputSchema, ScoutRatingSchema, ScoutSelfUpdateSchema, ScoutStatus, ScraperCreateSchema, ScraperMetricCreateSchema, ScraperMetricSchema, ScraperMetricUpdateSchema, ScraperSchema, ScraperStatus, ScraperUpdateSchema, SoftDeleteSchema, SourceAccess, SourceCreateSchema, SourceImportCreateSchema, SourceImportKind, SourceImportRowErrorSchema, SourceImportSchema, SourceImportStatus, SourceImportSummarySchema, SourceImportUpdateSchema, SourceIntakeBodySchema, SourceIntakeCandidateSchema, SourceIntakeOutcome, SourceIntakeResponseSchema, SourceIntakeResultSchema, SourceRatingSchema, SourceResultCardSchema, SourceRoute, SourceSchema, SourceStatus, SourceType, SourceUpdateSchema, SourceVisitBodySchema, SourceVisitResponseSchema, SpecialAccessSchema, SystemRecommendationInputSchema, SystemRecommendationSchema, TASK_KIND_VALUES, TASK_ORIGIN_VALUES, TASK_STATUS_VALUES, TaskCreateSchema, TaskCriteriaSchema, TaskKind, TaskOrigin, TaskSchema, TaskStatus, TaskTargetSchema, TaskUpdateSchema, TimeZone, TimestampsSchema, URGENCY_FACTOR, VETTING_STATUS_VALUES, VISIT_INTERVAL_MAX_MS, VISIT_INTERVAL_MIN_MS, VettingStatus, baseVisitInterval, clampInterval, effectiveDueAt, effectiveInterval, isHttpUrl, overdueLevel, urgencyFactor };
1103
1253
  //# sourceMappingURL=index.js.map
1104
1254
  //# sourceMappingURL=index.js.map