@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.
- package/CHANGELOG.md +28 -0
- package/dist/{agent-session-oZI9RyQ_.d.cts → agent-session-C7C0Z1e1.d.cts} +145 -14
- package/dist/{agent-session-oZI9RyQ_.d.ts → agent-session-C7C0Z1e1.d.ts} +145 -14
- package/dist/index.cjs +99 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +301 -28
- package/dist/index.d.ts +301 -28
- package/dist/index.js +87 -4
- package/dist/index.js.map +1 -1
- package/dist/mongo/index.cjs +19 -0
- package/dist/mongo/index.cjs.map +1 -1
- package/dist/mongo/index.d.cts +243 -17
- package/dist/mongo/index.d.ts +243 -17
- package/dist/mongo/index.js +19 -1
- package/dist/mongo/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
|
|
2
|
+
import { M as MissionPriority, S as SourceStatus } from './agent-session-C7C0Z1e1.js';
|
|
3
|
+
export { A as ACCESS_ISSUE_VALUES, a as AGENT_CARD_KIND_VALUES, b as AGENT_MESSAGE_KIND_VALUES, c as AGENT_MESSAGE_ROLE_VALUES, d as AGENT_SESSION_MODE_VALUES, e as AGENT_SESSION_STATUS_VALUES, f as AGENT_SOURCE_OUTCOME_VALUES, g as ASSIGNEE_TYPE_VALUES, h as ASSIGNMENT_SOURCE_VALUES, i as ASSIGNMENT_STATUS_VALUES, j as AccessIssue, k as AgentCard, l as AgentCardKind, m as AgentCardSchema, n as AgentMessage, o as AgentMessageCreate, p as AgentMessageCreateInput, q as AgentMessageCreateSchema, r as AgentMessageKind, s as AgentMessageRole, t as AgentMessageSchema, u as AgentSession, v as AgentSessionBudget, w as AgentSessionBudgetSchema, x as AgentSessionCreate, y as AgentSessionCreateInput, z as AgentSessionCreateSchema, B as AgentSessionMode, C as AgentSessionSchema, D as AgentSessionStats, E as AgentSessionStatsSchema, F as AgentSessionStatus, G as AgentSessionUpdate, H as AgentSessionUpdateSchema, I as AgentSourceOutcome, J as AnalystProfile, K as AnalystProfileSchema, L as AnalystProfileUpdate, N as AnalystProfileUpdateInput, O as AnalystProfileUpdateSchema, P as AssigneeLoad, Q as AssigneeLoadSchema, R as AssigneeType, T as Assignment, U as AssignmentCreate, V as AssignmentCreateInput, W as AssignmentCreateSchema, X as AssignmentSchema, Y as AssignmentSource, Z as AssignmentStatus, _ as AssignmentUpdate, $ as AssignmentUpdateSchema, a0 as AuditLog, a1 as AuditLogCreate, a2 as AuditLogCreateSchema, a3 as AuditLogSchema, a4 as AuditLogUpdate, a5 as AuditLogUpdateSchema, a6 as AuditTarget, a7 as AuditTargetSchema, a8 as BlobRef, a9 as BlobRefSchema, aa as CAPTURE_DOM_STATUS_VALUES, ab as CAPTURE_STATUS_VALUES, ac as CAPTURE_WINDOW_MODE_VALUES, ad as COLLECTIONS, ae as COLLECTOR_TYPE_VALUES, af as Capture, ag as CaptureCreate, ah as CaptureCreateInput, ai as CaptureCreateSchema, aj as CaptureDomSnapshot, ak as CaptureDomSnapshotSchema, al as CaptureDomStatus, am as CaptureDomSummary, an as CaptureDomSummarySchema, ao as CapturePromptCardSchema, ap as CaptureRegion, aq as CaptureRegionSchema, ar as CaptureSchema, as as CaptureStatus, at as CaptureThumbCardSchema, au as CaptureWindowMode, av as CollectionName, aw as Collector, ax as CollectorSchema, ay as CollectorType, az as ConnectionString, aA as DATABASE_COLLECTION_VALUES, aB as DATABASE_STATUS_VALUES, aC as DEFAULT_ANALYST_TASK_LIMIT, aD as DEFAULT_SCOUT_TASK_LIMIT, aE as DEPLOYMENT_KIND_VALUES, aF as DEPLOYMENT_STATUS_VALUES, aG as DISCOVERED_BY_TYPE_VALUES, aH as DataItem, aI as DataItemContent, aJ as DataItemContentSchema, aK as DataItemCreate, aL as DataItemCreateInput, aM as DataItemCreateSchema, aN as DataItemEntity, aO as DataItemEntitySchema, aP as DataItemSchema, aQ as DataItemUpdate, aR as DataItemUpdateSchema, aS as Database, aT as DatabaseCollection, aU as DatabaseCreate, aV as DatabaseCreateInput, aW as DatabaseCreateSchema, aX as DatabaseName, aY as DatabaseSchema, aZ as DatabaseStatus, a_ as DatabaseUpdate, a$ as DatabaseUpdateSchema, b0 as Deployment, b1 as DeploymentCreate, b2 as DeploymentCreateSchema, b3 as DeploymentKind, b4 as DeploymentSchema, b5 as DeploymentStatus, b6 as DeploymentStep, b7 as DeploymentStepSchema, b8 as DeploymentUpdate, b9 as DeploymentUpdateSchema, ba as DiscoveredBy, bb as DiscoveredBySchema, bc as DiscoveredByType, bd as DomBlock, be as DomBlockSchema, bf as DomLink, bg as DomLinkSchema, bh as DomRect, bi as DomRectSchema, bj as Email, bk as GLOBAL_LOAD_SCOPE, bl as Geo, bm as GeoSchema, bn as HOURS_LOG_SOURCE_VALUES, bo as HoursLog, bp as HoursLogCreate, bq as HoursLogCreateSchema, br as HoursLogSchema, bs as HoursLogSource, bt as HoursLogUpdate, bu as HoursLogUpdateSchema, bv as HoursProposalCardSchema, bw as ItemResultCardSchema, bx as LLM_CAPABILITY_VALUES, by as LLM_OUTCOME_VALUES, bz as LLM_PROVIDER_VALUES, bA as LlmCall, bB as LlmCallCreate, bC as LlmCallCreateInput, bD as LlmCallCreateSchema, bE as LlmCallSchema, bF as LlmCapability, bG as LlmOutcome, bH as LlmProvider, bI as LlmUsage, bJ as LlmUsageSchema, bK as LoadScope, bL as MAX_AGENT_MESSAGE_TEXT_LENGTH, bM as MAX_RATING_COMMENT_LENGTH, bN as MAX_SOURCE_IMPORT_ROW_ERRORS, bO as MISSION_PRIORITY_VALUES, bP as MISSION_STATUS_VALUES, bQ as Mission, bR as MissionCreate, bS as MissionCreateInput, bT as MissionCreateSchema, bU as MissionSchema, bV as MissionStatus, bW as MissionUpdate, bX as MissionUpdateSchema, bY as OpenLinkCardSchema, bZ as OrgSettings, b_ as OrgSettingsSchema, b$ as OrgSettingsUpdate, c0 as OrgSettingsUpdateSchema, c1 as PLATFORM_VALUES, c2 as Platform, c3 as QuickRepliesCardSchema, c4 as QuickReplyOption, c5 as QuickReplyOptionSchema, c6 as RATER_TYPE_VALUES, c7 as REGION_MODE_VALUES, c8 as RaterType, c9 as RatingScore, ca as RatingSummary, cb as RatingSummarySchema, cc as RegionMode, cd as SCOUT_STATUS_VALUES, ce as SCRAPER_STATUS_VALUES, cf as SOURCE_ACCESS_VALUES, cg as SOURCE_IMPORT_KIND_VALUES, ch as SOURCE_IMPORT_STATUS_VALUES, ci as SOURCE_INTAKE_OUTCOME_VALUES, cj as SOURCE_ROUTE_VALUES, ck as SOURCE_STATUS_VALUES, cl as SOURCE_TYPE_VALUES, cm as ScoutProfile, cn as ScoutProfileCreate, co as ScoutProfileCreateInput, cp as ScoutProfileCreateSchema, cq as ScoutProfileSchema, cr as ScoutProfileUpdate, cs as ScoutProfileUpdateInput, ct as ScoutProfileUpdateSchema, cu as ScoutRating, cv as ScoutRatingInput, cw as ScoutRatingInputSchema, cx as ScoutRatingSchema, cy as ScoutSelfUpdate, cz as ScoutSelfUpdateSchema, cA as ScoutStatus, cB as Scraper, cC as ScraperCreate, cD as ScraperCreateSchema, cE as ScraperMetric, cF as ScraperMetricCreate, cG as ScraperMetricCreateSchema, cH as ScraperMetricSchema, cI as ScraperMetricUpdate, cJ as ScraperMetricUpdateSchema, cK as ScraperSchema, cL as ScraperStatus, cM as ScraperUpdate, cN as ScraperUpdateSchema, cO as Source, cP as SourceAccess, cQ as SourceCreate, cR as SourceCreateInput, cS as SourceCreateSchema, cT as SourceDiscovery, cU as SourceDiscoverySchema, cV as SourceImport, cW as SourceImportCreate, cX as SourceImportCreateSchema, cY as SourceImportKind, cZ as SourceImportRowError, c_ as SourceImportRowErrorSchema, c$ as SourceImportSchema, d0 as SourceImportStatus, d1 as SourceImportSummary, d2 as SourceImportSummarySchema, d3 as SourceImportUpdate, d4 as SourceImportUpdateSchema, d5 as SourceIntakeOutcome, d6 as SourceRating, d7 as SourceRatingSchema, d8 as SourceResultCardSchema, d9 as SourceRoute, da as SourceSchema, db as SourceType, dc as SourceUpdate, dd as SourceUpdateSchema, de as SystemRecommendation, df as SystemRecommendationInput, dg as SystemRecommendationInputSchema, dh as SystemRecommendationSchema, di as TASK_KIND_VALUES, dj as TASK_ORIGIN_VALUES, dk as TASK_STATUS_VALUES, dl as Task, dm as TaskCreate, dn as TaskCreateInput, dp as TaskCreateSchema, dq as TaskKind, dr as TaskOrigin, ds as TaskSchema, dt as TaskStatus, du as TaskUpdate, dv as TaskUpdateSchema, dw as VETTING_STATUS_VALUES, dx as VettingStatus } from './agent-session-C7C0Z1e1.js';
|
|
3
4
|
|
|
4
5
|
/** 24-char hex string: the wire representation of a Mongo ObjectId. */
|
|
5
6
|
declare const ObjectIdString: z.ZodString;
|
|
@@ -105,6 +106,60 @@ declare const ApiErrorSchema: z.ZodObject<{
|
|
|
105
106
|
}>;
|
|
106
107
|
type ApiError = z.infer<typeof ApiErrorSchema>;
|
|
107
108
|
|
|
109
|
+
/** Bounds of a source's visit interval, whatever the urgency. */
|
|
110
|
+
declare const VISIT_INTERVAL_MIN_MS: number;
|
|
111
|
+
declare const VISIT_INTERVAL_MAX_MS: number;
|
|
112
|
+
/**
|
|
113
|
+
* How current urgency scales a source's base visit interval. Applied when the due time is
|
|
114
|
+
* read, not when the visit is recorded, so raising a mission's priority or switching a task
|
|
115
|
+
* to emergency brings every source's next visit forward at once. Factors multiply.
|
|
116
|
+
*/
|
|
117
|
+
declare const URGENCY_FACTOR: {
|
|
118
|
+
readonly emergency: 0.5;
|
|
119
|
+
readonly missionPriority: {
|
|
120
|
+
critical: number;
|
|
121
|
+
high: number;
|
|
122
|
+
medium: number;
|
|
123
|
+
low: number;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
type SourceScheduleFields = {
|
|
127
|
+
status?: SourceStatus;
|
|
128
|
+
lastCollectedAt?: Date | null;
|
|
129
|
+
nextVisitAt?: Date | null;
|
|
130
|
+
/** The activity-based wait set by the last visit, before urgency. */
|
|
131
|
+
visitIntervalMs?: number | null;
|
|
132
|
+
};
|
|
133
|
+
type ScheduleUrgency = {
|
|
134
|
+
emergency: boolean;
|
|
135
|
+
missionPriority?: MissionPriority | undefined;
|
|
136
|
+
};
|
|
137
|
+
declare const OverdueLevelSchema: z.ZodEnum<["none", "late", "missed"]>;
|
|
138
|
+
type OverdueLevel = z.infer<typeof OverdueLevelSchema>;
|
|
139
|
+
/**
|
|
140
|
+
* The source's last known interval: stored, else derived from its last schedule, else none.
|
|
141
|
+
* A derived interval already includes the urgency of its visit; use `effectiveInterval` for
|
|
142
|
+
* the interval under current urgency.
|
|
143
|
+
*/
|
|
144
|
+
declare function baseVisitInterval(source: SourceScheduleFields): number | undefined;
|
|
145
|
+
declare function urgencyFactor(urgency: ScheduleUrgency): number;
|
|
146
|
+
declare function clampInterval(ms: number): number;
|
|
147
|
+
/**
|
|
148
|
+
* The source's visit interval under current urgency, clamped; `undefined` when unknown. A
|
|
149
|
+
* derived interval (no `visitIntervalMs`) is used as it was scheduled, not scaled again.
|
|
150
|
+
*/
|
|
151
|
+
declare function effectiveInterval(source: SourceScheduleFields, urgency: ScheduleUrgency): number | undefined;
|
|
152
|
+
/**
|
|
153
|
+
* When the source should be captured again, under the urgency as it is now. `undefined` for a
|
|
154
|
+
* source parked on an access problem (an analyst reviews it); `now` when it was never visited.
|
|
155
|
+
*/
|
|
156
|
+
declare function effectiveDueAt(source: SourceScheduleFields, urgency: ScheduleUrgency, now?: Date): Date | undefined;
|
|
157
|
+
/**
|
|
158
|
+
* How late a due source is: `late` once past due, `missed` when more than one full interval
|
|
159
|
+
* (under current urgency) has gone by since it was due.
|
|
160
|
+
*/
|
|
161
|
+
declare function overdueLevel(dueAt: Date | undefined, intervalMs: number | undefined, now?: Date): OverdueLevel;
|
|
162
|
+
|
|
108
163
|
/** Time window a task should be covered. `end` must be after `start`. */
|
|
109
164
|
declare const CoverageWindowSchema: z.ZodEffects<z.ZodObject<{
|
|
110
165
|
start: z.ZodDate;
|
|
@@ -174,11 +229,14 @@ type TaskCriteria = z.infer<typeof TaskCriteriaSchema>;
|
|
|
174
229
|
type TaskCriteriaInput = z.input<typeof TaskCriteriaSchema>;
|
|
175
230
|
|
|
176
231
|
declare const MAX_CAPTURE_WINDOW_DAYS = 90;
|
|
232
|
+
/** At most this many sources are attached to one Monitor task (a batch one person works through). */
|
|
233
|
+
declare const MONITOR_TASK_MAX_SOURCES = 20;
|
|
177
234
|
/** True for an absolute `http:` / `https:` URL. Anything else (`javascript:`, `data:`, `file:`, `chrome:`) is not a source. */
|
|
178
235
|
declare function isHttpUrl(value: string): boolean;
|
|
179
236
|
/**
|
|
180
|
-
* The one source a task points at.
|
|
181
|
-
*
|
|
237
|
+
* The one source a task points at. A Monitor task has this or attached sources
|
|
238
|
+
* (`Source.taskIds`, at most `MONITOR_TASK_MAX_SOURCES`); optional on Discovery tasks
|
|
239
|
+
* (search inside this source). `sourceId` is set when the
|
|
182
240
|
* source is already in `sources`; a pasted URL may not be.
|
|
183
241
|
*/
|
|
184
242
|
declare const TaskTargetSchema: z.ZodObject<{
|
|
@@ -497,6 +555,32 @@ declare const AgentTaskTargetSchema: z.ZodObject<Omit<{
|
|
|
497
555
|
note?: string | undefined;
|
|
498
556
|
}>;
|
|
499
557
|
type AgentTaskTarget = z.infer<typeof AgentTaskTargetSchema>;
|
|
558
|
+
/** One source attached to a Monitor task (a batch to work through): no internal source id. */
|
|
559
|
+
declare const AgentTaskSourceSchema: z.ZodObject<{
|
|
560
|
+
platform: z.ZodEnum<["telegram", "facebook", "x", "tiktok", "instagram", "youtube", "whatsapp", "reddit", "discord", "linkedin", "threads", "vk", "snapchat", "web"]>;
|
|
561
|
+
url: z.ZodEffects<z.ZodString, string, string>;
|
|
562
|
+
label: z.ZodOptional<z.ZodString>;
|
|
563
|
+
lastCapturedAt: z.ZodOptional<z.ZodDate>;
|
|
564
|
+
/** When to capture it again, under current urgency (absent: parked on an access problem). */
|
|
565
|
+
dueAt: z.ZodOptional<z.ZodDate>;
|
|
566
|
+
/** Parked: a person couldn't get in; an analyst reviews it. */
|
|
567
|
+
accessProblem: z.ZodOptional<z.ZodBoolean>;
|
|
568
|
+
}, "strip", z.ZodTypeAny, {
|
|
569
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
570
|
+
url: string;
|
|
571
|
+
label?: string | undefined;
|
|
572
|
+
lastCapturedAt?: Date | undefined;
|
|
573
|
+
dueAt?: Date | undefined;
|
|
574
|
+
accessProblem?: boolean | undefined;
|
|
575
|
+
}, {
|
|
576
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
577
|
+
url: string;
|
|
578
|
+
label?: string | undefined;
|
|
579
|
+
lastCapturedAt?: Date | undefined;
|
|
580
|
+
dueAt?: Date | undefined;
|
|
581
|
+
accessProblem?: boolean | undefined;
|
|
582
|
+
}>;
|
|
583
|
+
type AgentTaskSource = z.infer<typeof AgentTaskSourceSchema>;
|
|
500
584
|
/** Subset of Task exposed to agents. */
|
|
501
585
|
declare const AgentTaskSchema: z.ZodObject<{
|
|
502
586
|
id: z.ZodString;
|
|
@@ -565,6 +649,31 @@ declare const AgentTaskSchema: z.ZodObject<{
|
|
|
565
649
|
accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
|
|
566
650
|
note?: string | undefined;
|
|
567
651
|
}>>;
|
|
652
|
+
/** Monitor: the attached sources other than `target`, sorted by platform then URL. */
|
|
653
|
+
sources: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
654
|
+
platform: z.ZodEnum<["telegram", "facebook", "x", "tiktok", "instagram", "youtube", "whatsapp", "reddit", "discord", "linkedin", "threads", "vk", "snapchat", "web"]>;
|
|
655
|
+
url: z.ZodEffects<z.ZodString, string, string>;
|
|
656
|
+
label: z.ZodOptional<z.ZodString>;
|
|
657
|
+
lastCapturedAt: z.ZodOptional<z.ZodDate>;
|
|
658
|
+
/** When to capture it again, under current urgency (absent: parked on an access problem). */
|
|
659
|
+
dueAt: z.ZodOptional<z.ZodDate>;
|
|
660
|
+
/** Parked: a person couldn't get in; an analyst reviews it. */
|
|
661
|
+
accessProblem: z.ZodOptional<z.ZodBoolean>;
|
|
662
|
+
}, "strip", z.ZodTypeAny, {
|
|
663
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
664
|
+
url: string;
|
|
665
|
+
label?: string | undefined;
|
|
666
|
+
lastCapturedAt?: Date | undefined;
|
|
667
|
+
dueAt?: Date | undefined;
|
|
668
|
+
accessProblem?: boolean | undefined;
|
|
669
|
+
}, {
|
|
670
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
671
|
+
url: string;
|
|
672
|
+
label?: string | undefined;
|
|
673
|
+
lastCapturedAt?: Date | undefined;
|
|
674
|
+
dueAt?: Date | undefined;
|
|
675
|
+
accessProblem?: boolean | undefined;
|
|
676
|
+
}>, "many">>;
|
|
568
677
|
captureWindow: z.ZodOptional<z.ZodEffects<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
|
|
569
678
|
mode: z.ZodLiteral<"last_days">;
|
|
570
679
|
days: z.ZodNumber;
|
|
@@ -607,6 +716,14 @@ declare const AgentTaskSchema: z.ZodObject<{
|
|
|
607
716
|
}, "strip", z.ZodTypeAny, {
|
|
608
717
|
status: "draft" | "paused" | "pending_approval" | "approved" | "in_progress" | "done";
|
|
609
718
|
updatedAt: Date;
|
|
719
|
+
sources: {
|
|
720
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
721
|
+
url: string;
|
|
722
|
+
label?: string | undefined;
|
|
723
|
+
lastCapturedAt?: Date | undefined;
|
|
724
|
+
dueAt?: Date | undefined;
|
|
725
|
+
accessProblem?: boolean | undefined;
|
|
726
|
+
}[];
|
|
610
727
|
title: string;
|
|
611
728
|
description: string;
|
|
612
729
|
keywords: string[];
|
|
@@ -659,6 +776,14 @@ declare const AgentTaskSchema: z.ZodObject<{
|
|
|
659
776
|
};
|
|
660
777
|
version: number;
|
|
661
778
|
id: string;
|
|
779
|
+
sources?: {
|
|
780
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
781
|
+
url: string;
|
|
782
|
+
label?: string | undefined;
|
|
783
|
+
lastCapturedAt?: Date | undefined;
|
|
784
|
+
dueAt?: Date | undefined;
|
|
785
|
+
accessProblem?: boolean | undefined;
|
|
786
|
+
}[] | undefined;
|
|
662
787
|
target?: {
|
|
663
788
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
664
789
|
url: string;
|
|
@@ -759,6 +884,31 @@ declare const AgentAssignmentItemSchema: z.ZodObject<{
|
|
|
759
884
|
accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
|
|
760
885
|
note?: string | undefined;
|
|
761
886
|
}>>;
|
|
887
|
+
/** Monitor: the attached sources other than `target`, sorted by platform then URL. */
|
|
888
|
+
sources: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
889
|
+
platform: z.ZodEnum<["telegram", "facebook", "x", "tiktok", "instagram", "youtube", "whatsapp", "reddit", "discord", "linkedin", "threads", "vk", "snapchat", "web"]>;
|
|
890
|
+
url: z.ZodEffects<z.ZodString, string, string>;
|
|
891
|
+
label: z.ZodOptional<z.ZodString>;
|
|
892
|
+
lastCapturedAt: z.ZodOptional<z.ZodDate>;
|
|
893
|
+
/** When to capture it again, under current urgency (absent: parked on an access problem). */
|
|
894
|
+
dueAt: z.ZodOptional<z.ZodDate>;
|
|
895
|
+
/** Parked: a person couldn't get in; an analyst reviews it. */
|
|
896
|
+
accessProblem: z.ZodOptional<z.ZodBoolean>;
|
|
897
|
+
}, "strip", z.ZodTypeAny, {
|
|
898
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
899
|
+
url: string;
|
|
900
|
+
label?: string | undefined;
|
|
901
|
+
lastCapturedAt?: Date | undefined;
|
|
902
|
+
dueAt?: Date | undefined;
|
|
903
|
+
accessProblem?: boolean | undefined;
|
|
904
|
+
}, {
|
|
905
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
906
|
+
url: string;
|
|
907
|
+
label?: string | undefined;
|
|
908
|
+
lastCapturedAt?: Date | undefined;
|
|
909
|
+
dueAt?: Date | undefined;
|
|
910
|
+
accessProblem?: boolean | undefined;
|
|
911
|
+
}>, "many">>;
|
|
762
912
|
captureWindow: z.ZodOptional<z.ZodEffects<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
|
|
763
913
|
mode: z.ZodLiteral<"last_days">;
|
|
764
914
|
days: z.ZodNumber;
|
|
@@ -801,6 +951,14 @@ declare const AgentAssignmentItemSchema: z.ZodObject<{
|
|
|
801
951
|
}, "strip", z.ZodTypeAny, {
|
|
802
952
|
status: "draft" | "paused" | "pending_approval" | "approved" | "in_progress" | "done";
|
|
803
953
|
updatedAt: Date;
|
|
954
|
+
sources: {
|
|
955
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
956
|
+
url: string;
|
|
957
|
+
label?: string | undefined;
|
|
958
|
+
lastCapturedAt?: Date | undefined;
|
|
959
|
+
dueAt?: Date | undefined;
|
|
960
|
+
accessProblem?: boolean | undefined;
|
|
961
|
+
}[];
|
|
804
962
|
title: string;
|
|
805
963
|
description: string;
|
|
806
964
|
keywords: string[];
|
|
@@ -853,6 +1011,14 @@ declare const AgentAssignmentItemSchema: z.ZodObject<{
|
|
|
853
1011
|
};
|
|
854
1012
|
version: number;
|
|
855
1013
|
id: string;
|
|
1014
|
+
sources?: {
|
|
1015
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
1016
|
+
url: string;
|
|
1017
|
+
label?: string | undefined;
|
|
1018
|
+
lastCapturedAt?: Date | undefined;
|
|
1019
|
+
dueAt?: Date | undefined;
|
|
1020
|
+
accessProblem?: boolean | undefined;
|
|
1021
|
+
}[] | undefined;
|
|
856
1022
|
target?: {
|
|
857
1023
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
858
1024
|
url: string;
|
|
@@ -886,6 +1052,14 @@ declare const AgentAssignmentItemSchema: z.ZodObject<{
|
|
|
886
1052
|
task: {
|
|
887
1053
|
status: "draft" | "paused" | "pending_approval" | "approved" | "in_progress" | "done";
|
|
888
1054
|
updatedAt: Date;
|
|
1055
|
+
sources: {
|
|
1056
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
1057
|
+
url: string;
|
|
1058
|
+
label?: string | undefined;
|
|
1059
|
+
lastCapturedAt?: Date | undefined;
|
|
1060
|
+
dueAt?: Date | undefined;
|
|
1061
|
+
accessProblem?: boolean | undefined;
|
|
1062
|
+
}[];
|
|
889
1063
|
title: string;
|
|
890
1064
|
description: string;
|
|
891
1065
|
keywords: string[];
|
|
@@ -947,6 +1121,14 @@ declare const AgentAssignmentItemSchema: z.ZodObject<{
|
|
|
947
1121
|
};
|
|
948
1122
|
version: number;
|
|
949
1123
|
id: string;
|
|
1124
|
+
sources?: {
|
|
1125
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
1126
|
+
url: string;
|
|
1127
|
+
label?: string | undefined;
|
|
1128
|
+
lastCapturedAt?: Date | undefined;
|
|
1129
|
+
dueAt?: Date | undefined;
|
|
1130
|
+
accessProblem?: boolean | undefined;
|
|
1131
|
+
}[] | undefined;
|
|
950
1132
|
target?: {
|
|
951
1133
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
952
1134
|
url: string;
|
|
@@ -1041,6 +1223,31 @@ declare const AgentAssignmentsResponseSchema: z.ZodObject<{
|
|
|
1041
1223
|
accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
|
|
1042
1224
|
note?: string | undefined;
|
|
1043
1225
|
}>>;
|
|
1226
|
+
/** Monitor: the attached sources other than `target`, sorted by platform then URL. */
|
|
1227
|
+
sources: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1228
|
+
platform: z.ZodEnum<["telegram", "facebook", "x", "tiktok", "instagram", "youtube", "whatsapp", "reddit", "discord", "linkedin", "threads", "vk", "snapchat", "web"]>;
|
|
1229
|
+
url: z.ZodEffects<z.ZodString, string, string>;
|
|
1230
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1231
|
+
lastCapturedAt: z.ZodOptional<z.ZodDate>;
|
|
1232
|
+
/** When to capture it again, under current urgency (absent: parked on an access problem). */
|
|
1233
|
+
dueAt: z.ZodOptional<z.ZodDate>;
|
|
1234
|
+
/** Parked: a person couldn't get in; an analyst reviews it. */
|
|
1235
|
+
accessProblem: z.ZodOptional<z.ZodBoolean>;
|
|
1236
|
+
}, "strip", z.ZodTypeAny, {
|
|
1237
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
1238
|
+
url: string;
|
|
1239
|
+
label?: string | undefined;
|
|
1240
|
+
lastCapturedAt?: Date | undefined;
|
|
1241
|
+
dueAt?: Date | undefined;
|
|
1242
|
+
accessProblem?: boolean | undefined;
|
|
1243
|
+
}, {
|
|
1244
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
1245
|
+
url: string;
|
|
1246
|
+
label?: string | undefined;
|
|
1247
|
+
lastCapturedAt?: Date | undefined;
|
|
1248
|
+
dueAt?: Date | undefined;
|
|
1249
|
+
accessProblem?: boolean | undefined;
|
|
1250
|
+
}>, "many">>;
|
|
1044
1251
|
captureWindow: z.ZodOptional<z.ZodEffects<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
|
|
1045
1252
|
mode: z.ZodLiteral<"last_days">;
|
|
1046
1253
|
days: z.ZodNumber;
|
|
@@ -1083,6 +1290,14 @@ declare const AgentAssignmentsResponseSchema: z.ZodObject<{
|
|
|
1083
1290
|
}, "strip", z.ZodTypeAny, {
|
|
1084
1291
|
status: "draft" | "paused" | "pending_approval" | "approved" | "in_progress" | "done";
|
|
1085
1292
|
updatedAt: Date;
|
|
1293
|
+
sources: {
|
|
1294
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
1295
|
+
url: string;
|
|
1296
|
+
label?: string | undefined;
|
|
1297
|
+
lastCapturedAt?: Date | undefined;
|
|
1298
|
+
dueAt?: Date | undefined;
|
|
1299
|
+
accessProblem?: boolean | undefined;
|
|
1300
|
+
}[];
|
|
1086
1301
|
title: string;
|
|
1087
1302
|
description: string;
|
|
1088
1303
|
keywords: string[];
|
|
@@ -1135,6 +1350,14 @@ declare const AgentAssignmentsResponseSchema: z.ZodObject<{
|
|
|
1135
1350
|
};
|
|
1136
1351
|
version: number;
|
|
1137
1352
|
id: string;
|
|
1353
|
+
sources?: {
|
|
1354
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
1355
|
+
url: string;
|
|
1356
|
+
label?: string | undefined;
|
|
1357
|
+
lastCapturedAt?: Date | undefined;
|
|
1358
|
+
dueAt?: Date | undefined;
|
|
1359
|
+
accessProblem?: boolean | undefined;
|
|
1360
|
+
}[] | undefined;
|
|
1138
1361
|
target?: {
|
|
1139
1362
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
1140
1363
|
url: string;
|
|
@@ -1168,6 +1391,14 @@ declare const AgentAssignmentsResponseSchema: z.ZodObject<{
|
|
|
1168
1391
|
task: {
|
|
1169
1392
|
status: "draft" | "paused" | "pending_approval" | "approved" | "in_progress" | "done";
|
|
1170
1393
|
updatedAt: Date;
|
|
1394
|
+
sources: {
|
|
1395
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
1396
|
+
url: string;
|
|
1397
|
+
label?: string | undefined;
|
|
1398
|
+
lastCapturedAt?: Date | undefined;
|
|
1399
|
+
dueAt?: Date | undefined;
|
|
1400
|
+
accessProblem?: boolean | undefined;
|
|
1401
|
+
}[];
|
|
1171
1402
|
title: string;
|
|
1172
1403
|
description: string;
|
|
1173
1404
|
keywords: string[];
|
|
@@ -1229,6 +1460,14 @@ declare const AgentAssignmentsResponseSchema: z.ZodObject<{
|
|
|
1229
1460
|
};
|
|
1230
1461
|
version: number;
|
|
1231
1462
|
id: string;
|
|
1463
|
+
sources?: {
|
|
1464
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
1465
|
+
url: string;
|
|
1466
|
+
label?: string | undefined;
|
|
1467
|
+
lastCapturedAt?: Date | undefined;
|
|
1468
|
+
dueAt?: Date | undefined;
|
|
1469
|
+
accessProblem?: boolean | undefined;
|
|
1470
|
+
}[] | undefined;
|
|
1232
1471
|
target?: {
|
|
1233
1472
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
1234
1473
|
url: string;
|
|
@@ -1258,6 +1497,14 @@ declare const AgentAssignmentsResponseSchema: z.ZodObject<{
|
|
|
1258
1497
|
task: {
|
|
1259
1498
|
status: "draft" | "paused" | "pending_approval" | "approved" | "in_progress" | "done";
|
|
1260
1499
|
updatedAt: Date;
|
|
1500
|
+
sources: {
|
|
1501
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
1502
|
+
url: string;
|
|
1503
|
+
label?: string | undefined;
|
|
1504
|
+
lastCapturedAt?: Date | undefined;
|
|
1505
|
+
dueAt?: Date | undefined;
|
|
1506
|
+
accessProblem?: boolean | undefined;
|
|
1507
|
+
}[];
|
|
1261
1508
|
title: string;
|
|
1262
1509
|
description: string;
|
|
1263
1510
|
keywords: string[];
|
|
@@ -1321,6 +1568,14 @@ declare const AgentAssignmentsResponseSchema: z.ZodObject<{
|
|
|
1321
1568
|
};
|
|
1322
1569
|
version: number;
|
|
1323
1570
|
id: string;
|
|
1571
|
+
sources?: {
|
|
1572
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
1573
|
+
url: string;
|
|
1574
|
+
label?: string | undefined;
|
|
1575
|
+
lastCapturedAt?: Date | undefined;
|
|
1576
|
+
dueAt?: Date | undefined;
|
|
1577
|
+
accessProblem?: boolean | undefined;
|
|
1578
|
+
}[] | undefined;
|
|
1324
1579
|
target?: {
|
|
1325
1580
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
1326
1581
|
url: string;
|
|
@@ -1349,34 +1604,44 @@ type AgentAssignmentsResponse = z.infer<typeof AgentAssignmentsResponseSchema>;
|
|
|
1349
1604
|
declare const AgentAssignmentVersionSchema: z.ZodObject<{
|
|
1350
1605
|
assignmentId: z.ZodString;
|
|
1351
1606
|
taskVersion: z.ZodNumber;
|
|
1607
|
+
/** Monitor: the latest change to any attached source (a visit moves it; the task version doesn't). */
|
|
1608
|
+
sourcesUpdatedAt: z.ZodOptional<z.ZodDate>;
|
|
1352
1609
|
}, "strip", z.ZodTypeAny, {
|
|
1353
1610
|
assignmentId: string;
|
|
1354
1611
|
taskVersion: number;
|
|
1612
|
+
sourcesUpdatedAt?: Date | undefined;
|
|
1355
1613
|
}, {
|
|
1356
1614
|
assignmentId: string;
|
|
1357
1615
|
taskVersion: number;
|
|
1616
|
+
sourcesUpdatedAt?: Date | undefined;
|
|
1358
1617
|
}>;
|
|
1359
1618
|
type AgentAssignmentVersion = z.infer<typeof AgentAssignmentVersionSchema>;
|
|
1360
1619
|
declare const AgentAssignmentVersionsResponseSchema: z.ZodObject<{
|
|
1361
1620
|
items: z.ZodArray<z.ZodObject<{
|
|
1362
1621
|
assignmentId: z.ZodString;
|
|
1363
1622
|
taskVersion: z.ZodNumber;
|
|
1623
|
+
/** Monitor: the latest change to any attached source (a visit moves it; the task version doesn't). */
|
|
1624
|
+
sourcesUpdatedAt: z.ZodOptional<z.ZodDate>;
|
|
1364
1625
|
}, "strip", z.ZodTypeAny, {
|
|
1365
1626
|
assignmentId: string;
|
|
1366
1627
|
taskVersion: number;
|
|
1628
|
+
sourcesUpdatedAt?: Date | undefined;
|
|
1367
1629
|
}, {
|
|
1368
1630
|
assignmentId: string;
|
|
1369
1631
|
taskVersion: number;
|
|
1632
|
+
sourcesUpdatedAt?: Date | undefined;
|
|
1370
1633
|
}>, "many">;
|
|
1371
1634
|
}, "strip", z.ZodTypeAny, {
|
|
1372
1635
|
items: {
|
|
1373
1636
|
assignmentId: string;
|
|
1374
1637
|
taskVersion: number;
|
|
1638
|
+
sourcesUpdatedAt?: Date | undefined;
|
|
1375
1639
|
}[];
|
|
1376
1640
|
}, {
|
|
1377
1641
|
items: {
|
|
1378
1642
|
assignmentId: string;
|
|
1379
1643
|
taskVersion: number;
|
|
1644
|
+
sourcesUpdatedAt?: Date | undefined;
|
|
1380
1645
|
}[];
|
|
1381
1646
|
}>;
|
|
1382
1647
|
type AgentAssignmentVersionsResponse = z.infer<typeof AgentAssignmentVersionsResponseSchema>;
|
|
@@ -1619,16 +1884,16 @@ declare const AgentMessageViewSchema: z.ZodObject<{
|
|
|
1619
1884
|
name: string;
|
|
1620
1885
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
1621
1886
|
kind: "source_result";
|
|
1622
|
-
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
1623
1887
|
reason: string;
|
|
1888
|
+
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
1624
1889
|
url?: string | undefined;
|
|
1625
1890
|
score?: number | undefined;
|
|
1626
1891
|
}, {
|
|
1627
1892
|
name: string;
|
|
1628
1893
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
1629
1894
|
kind: "source_result";
|
|
1630
|
-
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
1631
1895
|
reason: string;
|
|
1896
|
+
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
1632
1897
|
url?: string | undefined;
|
|
1633
1898
|
score?: number | undefined;
|
|
1634
1899
|
}>, z.ZodObject<{
|
|
@@ -1718,8 +1983,8 @@ declare const AgentMessageViewSchema: z.ZodObject<{
|
|
|
1718
1983
|
name: string;
|
|
1719
1984
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
1720
1985
|
kind: "source_result";
|
|
1721
|
-
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
1722
1986
|
reason: string;
|
|
1987
|
+
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
1723
1988
|
url?: string | undefined;
|
|
1724
1989
|
score?: number | undefined;
|
|
1725
1990
|
} | {
|
|
@@ -1762,8 +2027,8 @@ declare const AgentMessageViewSchema: z.ZodObject<{
|
|
|
1762
2027
|
name: string;
|
|
1763
2028
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
1764
2029
|
kind: "source_result";
|
|
1765
|
-
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
1766
2030
|
reason: string;
|
|
2031
|
+
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
1767
2032
|
url?: string | undefined;
|
|
1768
2033
|
score?: number | undefined;
|
|
1769
2034
|
} | {
|
|
@@ -2576,16 +2841,16 @@ declare const AgentMessagesResponseSchema: z.ZodObject<{
|
|
|
2576
2841
|
name: string;
|
|
2577
2842
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
2578
2843
|
kind: "source_result";
|
|
2579
|
-
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
2580
2844
|
reason: string;
|
|
2845
|
+
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
2581
2846
|
url?: string | undefined;
|
|
2582
2847
|
score?: number | undefined;
|
|
2583
2848
|
}, {
|
|
2584
2849
|
name: string;
|
|
2585
2850
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
2586
2851
|
kind: "source_result";
|
|
2587
|
-
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
2588
2852
|
reason: string;
|
|
2853
|
+
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
2589
2854
|
url?: string | undefined;
|
|
2590
2855
|
score?: number | undefined;
|
|
2591
2856
|
}>, z.ZodObject<{
|
|
@@ -2675,8 +2940,8 @@ declare const AgentMessagesResponseSchema: z.ZodObject<{
|
|
|
2675
2940
|
name: string;
|
|
2676
2941
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
2677
2942
|
kind: "source_result";
|
|
2678
|
-
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
2679
2943
|
reason: string;
|
|
2944
|
+
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
2680
2945
|
url?: string | undefined;
|
|
2681
2946
|
score?: number | undefined;
|
|
2682
2947
|
} | {
|
|
@@ -2719,8 +2984,8 @@ declare const AgentMessagesResponseSchema: z.ZodObject<{
|
|
|
2719
2984
|
name: string;
|
|
2720
2985
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
2721
2986
|
kind: "source_result";
|
|
2722
|
-
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
2723
2987
|
reason: string;
|
|
2988
|
+
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
2724
2989
|
url?: string | undefined;
|
|
2725
2990
|
score?: number | undefined;
|
|
2726
2991
|
} | {
|
|
@@ -2765,8 +3030,8 @@ declare const AgentMessagesResponseSchema: z.ZodObject<{
|
|
|
2765
3030
|
name: string;
|
|
2766
3031
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
2767
3032
|
kind: "source_result";
|
|
2768
|
-
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
2769
3033
|
reason: string;
|
|
3034
|
+
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
2770
3035
|
url?: string | undefined;
|
|
2771
3036
|
score?: number | undefined;
|
|
2772
3037
|
} | {
|
|
@@ -2811,8 +3076,8 @@ declare const AgentMessagesResponseSchema: z.ZodObject<{
|
|
|
2811
3076
|
name: string;
|
|
2812
3077
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
2813
3078
|
kind: "source_result";
|
|
2814
|
-
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
2815
3079
|
reason: string;
|
|
3080
|
+
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
2816
3081
|
url?: string | undefined;
|
|
2817
3082
|
score?: number | undefined;
|
|
2818
3083
|
} | {
|
|
@@ -3010,16 +3275,16 @@ declare const AgentStreamEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
3010
3275
|
name: string;
|
|
3011
3276
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
3012
3277
|
kind: "source_result";
|
|
3013
|
-
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
3014
3278
|
reason: string;
|
|
3279
|
+
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
3015
3280
|
url?: string | undefined;
|
|
3016
3281
|
score?: number | undefined;
|
|
3017
3282
|
}, {
|
|
3018
3283
|
name: string;
|
|
3019
3284
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
3020
3285
|
kind: "source_result";
|
|
3021
|
-
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
3022
3286
|
reason: string;
|
|
3287
|
+
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
3023
3288
|
url?: string | undefined;
|
|
3024
3289
|
score?: number | undefined;
|
|
3025
3290
|
}>, z.ZodObject<{
|
|
@@ -3109,8 +3374,8 @@ declare const AgentStreamEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
3109
3374
|
name: string;
|
|
3110
3375
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
3111
3376
|
kind: "source_result";
|
|
3112
|
-
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
3113
3377
|
reason: string;
|
|
3378
|
+
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
3114
3379
|
url?: string | undefined;
|
|
3115
3380
|
score?: number | undefined;
|
|
3116
3381
|
} | {
|
|
@@ -3153,8 +3418,8 @@ declare const AgentStreamEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
3153
3418
|
name: string;
|
|
3154
3419
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
3155
3420
|
kind: "source_result";
|
|
3156
|
-
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
3157
3421
|
reason: string;
|
|
3422
|
+
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
3158
3423
|
url?: string | undefined;
|
|
3159
3424
|
score?: number | undefined;
|
|
3160
3425
|
} | {
|
|
@@ -3199,8 +3464,8 @@ declare const AgentStreamEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
3199
3464
|
name: string;
|
|
3200
3465
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
3201
3466
|
kind: "source_result";
|
|
3202
|
-
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
3203
3467
|
reason: string;
|
|
3468
|
+
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
3204
3469
|
url?: string | undefined;
|
|
3205
3470
|
score?: number | undefined;
|
|
3206
3471
|
} | {
|
|
@@ -3246,8 +3511,8 @@ declare const AgentStreamEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
3246
3511
|
name: string;
|
|
3247
3512
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
3248
3513
|
kind: "source_result";
|
|
3249
|
-
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
3250
3514
|
reason: string;
|
|
3515
|
+
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
3251
3516
|
url?: string | undefined;
|
|
3252
3517
|
score?: number | undefined;
|
|
3253
3518
|
} | {
|
|
@@ -3279,12 +3544,12 @@ declare const AgentStreamEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
3279
3544
|
captureId: z.ZodNullable<z.ZodString>;
|
|
3280
3545
|
}, "strip", z.ZodTypeAny, {
|
|
3281
3546
|
type: "status";
|
|
3282
|
-
text: string;
|
|
3283
3547
|
captureId: string | null;
|
|
3548
|
+
text: string;
|
|
3284
3549
|
}, {
|
|
3285
3550
|
type: "status";
|
|
3286
|
-
text: string;
|
|
3287
3551
|
captureId: string | null;
|
|
3552
|
+
text: string;
|
|
3288
3553
|
}>, z.ZodObject<{
|
|
3289
3554
|
type: z.ZodLiteral<"typing">;
|
|
3290
3555
|
on: z.ZodBoolean;
|
|
@@ -3577,9 +3842,9 @@ declare const SourceIntakeCandidateSchema: z.ZodObject<{
|
|
|
3577
3842
|
name: string;
|
|
3578
3843
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
3579
3844
|
url: string;
|
|
3580
|
-
access: "public" | "gated";
|
|
3581
3845
|
reason: string;
|
|
3582
3846
|
relevanceScore: number;
|
|
3847
|
+
access: "public" | "gated";
|
|
3583
3848
|
description?: string | undefined;
|
|
3584
3849
|
language?: string | undefined;
|
|
3585
3850
|
handle?: string | undefined;
|
|
@@ -3588,9 +3853,9 @@ declare const SourceIntakeCandidateSchema: z.ZodObject<{
|
|
|
3588
3853
|
name: string;
|
|
3589
3854
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
3590
3855
|
url: string;
|
|
3591
|
-
access: "public" | "gated";
|
|
3592
3856
|
reason: string;
|
|
3593
3857
|
relevanceScore: number;
|
|
3858
|
+
access: "public" | "gated";
|
|
3594
3859
|
description?: string | undefined;
|
|
3595
3860
|
language?: string | undefined;
|
|
3596
3861
|
handle?: string | undefined;
|
|
@@ -3602,6 +3867,10 @@ declare const SourceIntakeBodySchema: z.ZodObject<{
|
|
|
3602
3867
|
/** The discovery task the session works; its mission's monitor task receives gated sources. */
|
|
3603
3868
|
taskId: z.ZodString;
|
|
3604
3869
|
discoveredByUserId: z.ZodString;
|
|
3870
|
+
/** agent-service capture the candidates came from (task-tagged captures). */
|
|
3871
|
+
captureId: z.ZodOptional<z.ZodString>;
|
|
3872
|
+
/** The page that capture was taken on. */
|
|
3873
|
+
capturedUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
3605
3874
|
candidates: z.ZodArray<z.ZodObject<{
|
|
3606
3875
|
platform: z.ZodEnum<["telegram", "facebook", "x", "tiktok", "instagram", "youtube", "whatsapp", "reddit", "discord", "linkedin", "threads", "vk", "snapchat", "web"]>;
|
|
3607
3876
|
url: z.ZodString;
|
|
@@ -3619,9 +3888,9 @@ declare const SourceIntakeBodySchema: z.ZodObject<{
|
|
|
3619
3888
|
name: string;
|
|
3620
3889
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
3621
3890
|
url: string;
|
|
3622
|
-
access: "public" | "gated";
|
|
3623
3891
|
reason: string;
|
|
3624
3892
|
relevanceScore: number;
|
|
3893
|
+
access: "public" | "gated";
|
|
3625
3894
|
description?: string | undefined;
|
|
3626
3895
|
language?: string | undefined;
|
|
3627
3896
|
handle?: string | undefined;
|
|
@@ -3630,9 +3899,9 @@ declare const SourceIntakeBodySchema: z.ZodObject<{
|
|
|
3630
3899
|
name: string;
|
|
3631
3900
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
3632
3901
|
url: string;
|
|
3633
|
-
access: "public" | "gated";
|
|
3634
3902
|
reason: string;
|
|
3635
3903
|
relevanceScore: number;
|
|
3904
|
+
access: "public" | "gated";
|
|
3636
3905
|
description?: string | undefined;
|
|
3637
3906
|
language?: string | undefined;
|
|
3638
3907
|
handle?: string | undefined;
|
|
@@ -3646,13 +3915,15 @@ declare const SourceIntakeBodySchema: z.ZodObject<{
|
|
|
3646
3915
|
name: string;
|
|
3647
3916
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
3648
3917
|
url: string;
|
|
3649
|
-
access: "public" | "gated";
|
|
3650
3918
|
reason: string;
|
|
3651
3919
|
relevanceScore: number;
|
|
3920
|
+
access: "public" | "gated";
|
|
3652
3921
|
description?: string | undefined;
|
|
3653
3922
|
language?: string | undefined;
|
|
3654
3923
|
handle?: string | undefined;
|
|
3655
3924
|
}[];
|
|
3925
|
+
captureId?: string | undefined;
|
|
3926
|
+
capturedUrl?: string | undefined;
|
|
3656
3927
|
}, {
|
|
3657
3928
|
orgId: string;
|
|
3658
3929
|
taskId: string;
|
|
@@ -3662,13 +3933,15 @@ declare const SourceIntakeBodySchema: z.ZodObject<{
|
|
|
3662
3933
|
name: string;
|
|
3663
3934
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
3664
3935
|
url: string;
|
|
3665
|
-
access: "public" | "gated";
|
|
3666
3936
|
reason: string;
|
|
3667
3937
|
relevanceScore: number;
|
|
3938
|
+
access: "public" | "gated";
|
|
3668
3939
|
description?: string | undefined;
|
|
3669
3940
|
language?: string | undefined;
|
|
3670
3941
|
handle?: string | undefined;
|
|
3671
3942
|
}[];
|
|
3943
|
+
captureId?: string | undefined;
|
|
3944
|
+
capturedUrl?: string | undefined;
|
|
3672
3945
|
}>;
|
|
3673
3946
|
type SourceIntakeBody = z.infer<typeof SourceIntakeBodySchema>;
|
|
3674
3947
|
declare const SourceIntakeResultSchema: z.ZodObject<{
|
|
@@ -3822,4 +4095,4 @@ declare const INTERNAL_ERROR_CODE_VALUES: readonly ["UNAUTHENTICATED", "NOT_FOUN
|
|
|
3822
4095
|
declare const InternalErrorCode: z.ZodEnum<["UNAUTHENTICATED", "NOT_FOUND", "VALIDATION_ERROR", "INTERNAL"]>;
|
|
3823
4096
|
type InternalErrorCode = z.infer<typeof InternalErrorCode>;
|
|
3824
4097
|
|
|
3825
|
-
export { AGENT_ERROR_CODE_VALUES, AGENT_ROLE_VALUES, type AgentActiveSessionResponse, AgentActiveSessionResponseSchema, type AgentAssignmentItem, AgentAssignmentItemSchema, type AgentAssignmentVersion, AgentAssignmentVersionSchema, type AgentAssignmentVersionsResponse, AgentAssignmentVersionsResponseSchema, type AgentAssignmentsResponse, AgentAssignmentsResponseSchema, type AgentCaptureFields, AgentCaptureFieldsSchema, type AgentCaptureResponse, AgentCaptureResponseSchema, type AgentError, AgentErrorCode, AgentErrorSchema, type AgentMe, AgentMeSchema, type AgentMessageView, AgentMessageViewSchema, type AgentMessagesQuery, AgentMessagesQuerySchema, type AgentMessagesResponse, AgentMessagesResponseSchema, type AgentOrgRef, AgentOrgRefSchema, type AgentReplyBody, AgentReplyBodySchema, AgentRole, type AgentSessionResponse, AgentSessionResponseSchema, type AgentSessionStartBody, AgentSessionStartBodySchema, type AgentSessionStartResponse, AgentSessionStartResponseSchema, type AgentSessionView, AgentSessionViewSchema, type AgentStreamEvent, AgentStreamEventSchema, type AgentTask, type AgentTaskCriteria, AgentTaskCriteriaSchema, AgentTaskSchema, type AgentTaskTarget, AgentTaskTargetSchema, type ApiError, ApiErrorSchema, type AvailabilityWindow, AvailabilityWindowSchema, type CaptureWindow, type CaptureWindowInput, CaptureWindowSchema, ClerkOrgId, ClerkUserId, type CoverageWindow, CoverageWindowSchema, DatabaseId, HHmm, INTERNAL_ERROR_CODE_VALUES, InternalErrorCode, LanguageCode, MAX_CAPTURE_WINDOW_DAYS, MAX_SOURCE_INTAKE_CANDIDATES, type MatchingFields, MatchingFieldsSchema, ObjectIdString, type Paginated, PaginatedSchema, type PaginationQuery, type PaginationQueryInput, PaginationQuerySchema, type PlatformAccess, type PlatformAccessInput, PlatformAccessSchema, type PriorityAlertBody, PriorityAlertBodySchema, type PriorityAlertResponse, PriorityAlertResponseSchema, SERVER_MANAGED_KEYS, type SoftDelete, SoftDeleteSchema, type SourceIntakeBody, SourceIntakeBodySchema, type SourceIntakeCandidate, SourceIntakeCandidateSchema, type SourceIntakeResponse, SourceIntakeResponseSchema, type SourceIntakeResult, SourceIntakeResultSchema, type SourceVisitBody, type SourceVisitBodyInput, SourceVisitBodySchema, type SourceVisitResponse, SourceVisitResponseSchema, type SpecialAccess, SpecialAccessSchema, type TaskCriteria, type TaskCriteriaInput, TaskCriteriaSchema, type TaskTarget, TaskTargetSchema, TimeZone, type Timestamps, TimestampsSchema, isHttpUrl };
|
|
4098
|
+
export { AGENT_ERROR_CODE_VALUES, AGENT_ROLE_VALUES, type AgentActiveSessionResponse, AgentActiveSessionResponseSchema, type AgentAssignmentItem, AgentAssignmentItemSchema, type AgentAssignmentVersion, AgentAssignmentVersionSchema, type AgentAssignmentVersionsResponse, AgentAssignmentVersionsResponseSchema, type AgentAssignmentsResponse, AgentAssignmentsResponseSchema, type AgentCaptureFields, AgentCaptureFieldsSchema, type AgentCaptureResponse, AgentCaptureResponseSchema, type AgentError, AgentErrorCode, AgentErrorSchema, type AgentMe, AgentMeSchema, type AgentMessageView, AgentMessageViewSchema, type AgentMessagesQuery, AgentMessagesQuerySchema, type AgentMessagesResponse, AgentMessagesResponseSchema, type AgentOrgRef, AgentOrgRefSchema, type AgentReplyBody, AgentReplyBodySchema, AgentRole, type AgentSessionResponse, AgentSessionResponseSchema, type AgentSessionStartBody, AgentSessionStartBodySchema, type AgentSessionStartResponse, AgentSessionStartResponseSchema, type AgentSessionView, AgentSessionViewSchema, type AgentStreamEvent, AgentStreamEventSchema, type AgentTask, type AgentTaskCriteria, AgentTaskCriteriaSchema, AgentTaskSchema, type AgentTaskSource, AgentTaskSourceSchema, type AgentTaskTarget, AgentTaskTargetSchema, type ApiError, ApiErrorSchema, type AvailabilityWindow, AvailabilityWindowSchema, type CaptureWindow, type CaptureWindowInput, CaptureWindowSchema, ClerkOrgId, ClerkUserId, type CoverageWindow, CoverageWindowSchema, DatabaseId, HHmm, INTERNAL_ERROR_CODE_VALUES, InternalErrorCode, LanguageCode, MAX_CAPTURE_WINDOW_DAYS, MAX_SOURCE_INTAKE_CANDIDATES, MONITOR_TASK_MAX_SOURCES, type MatchingFields, MatchingFieldsSchema, MissionPriority, ObjectIdString, type OverdueLevel, OverdueLevelSchema, type Paginated, PaginatedSchema, type PaginationQuery, type PaginationQueryInput, PaginationQuerySchema, type PlatformAccess, type PlatformAccessInput, PlatformAccessSchema, type PriorityAlertBody, PriorityAlertBodySchema, type PriorityAlertResponse, PriorityAlertResponseSchema, SERVER_MANAGED_KEYS, type ScheduleUrgency, type SoftDelete, SoftDeleteSchema, type SourceIntakeBody, SourceIntakeBodySchema, type SourceIntakeCandidate, SourceIntakeCandidateSchema, type SourceIntakeResponse, SourceIntakeResponseSchema, type SourceIntakeResult, SourceIntakeResultSchema, type SourceScheduleFields, SourceStatus, type SourceVisitBody, type SourceVisitBodyInput, SourceVisitBodySchema, type SourceVisitResponse, SourceVisitResponseSchema, type SpecialAccess, SpecialAccessSchema, type TaskCriteria, type TaskCriteriaInput, TaskCriteriaSchema, type TaskTarget, TaskTargetSchema, TimeZone, type Timestamps, TimestampsSchema, URGENCY_FACTOR, VISIT_INTERVAL_MAX_MS, VISIT_INTERVAL_MIN_MS, baseVisitInterval, clampInterval, effectiveDueAt, effectiveInterval, isHttpUrl, overdueLevel, urgencyFactor };
|