@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/CHANGELOG.md +44 -0
- package/README.md +16 -12
- package/dist/{agent-session-Bsn8W7Xv.d.cts → agent-session-BKq7mARI.d.cts} +625 -189
- package/dist/{agent-session-Bsn8W7Xv.d.ts → agent-session-BKq7mARI.d.ts} +625 -189
- package/dist/index.cjs +179 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1247 -148
- package/dist/index.d.ts +1247 -148
- package/dist/index.js +157 -7
- package/dist/index.js.map +1 -1
- package/dist/mongo/index.cjs +174 -6
- package/dist/mongo/index.cjs.map +1 -1
- package/dist/mongo/index.d.cts +581 -101
- package/dist/mongo/index.d.ts +581 -101
- package/dist/mongo/index.js +173 -7
- package/dist/mongo/index.js.map +1 -1
- package/package.json +2 -2
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-BKq7mARI.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 SourceImport, cU as SourceImportCreate, cV as SourceImportCreateSchema, cW as SourceImportKind, cX as SourceImportRowError, cY as SourceImportRowErrorSchema, cZ as SourceImportSchema, c_ as SourceImportStatus, c$ as SourceImportSummary, d0 as SourceImportSummarySchema, d1 as SourceImportUpdate, d2 as SourceImportUpdateSchema, d3 as SourceIntakeOutcome, d4 as SourceRating, d5 as SourceRatingSchema, d6 as SourceResultCardSchema, d7 as SourceRoute, d8 as SourceSchema, d9 as SourceType, da as SourceUpdate, db as SourceUpdateSchema, dc as SystemRecommendation, dd as SystemRecommendationInput, de as SystemRecommendationInputSchema, df as SystemRecommendationSchema, dg as TASK_KIND_VALUES, dh as TASK_ORIGIN_VALUES, di as TASK_STATUS_VALUES, dj as Task, dk as TaskCreate, dl as TaskCreateInput, dm as TaskCreateSchema, dn as TaskKind, dp as TaskOrigin, dq as TaskSchema, dr as TaskStatus, ds as TaskUpdate, dt as TaskUpdateSchema, du as VETTING_STATUS_VALUES, dv as VettingStatus } from './agent-session-BKq7mARI.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;
|
|
@@ -173,6 +228,85 @@ declare const TaskCriteriaSchema: z.ZodObject<{
|
|
|
173
228
|
type TaskCriteria = z.infer<typeof TaskCriteriaSchema>;
|
|
174
229
|
type TaskCriteriaInput = z.input<typeof TaskCriteriaSchema>;
|
|
175
230
|
|
|
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;
|
|
234
|
+
/** True for an absolute `http:` / `https:` URL. Anything else (`javascript:`, `data:`, `file:`, `chrome:`) is not a source. */
|
|
235
|
+
declare function isHttpUrl(value: string): boolean;
|
|
236
|
+
/**
|
|
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
|
|
240
|
+
* source is already in `sources`; a pasted URL may not be.
|
|
241
|
+
*/
|
|
242
|
+
declare const TaskTargetSchema: z.ZodObject<{
|
|
243
|
+
sourceId: z.ZodOptional<z.ZodString>;
|
|
244
|
+
platform: z.ZodEnum<["telegram", "facebook", "x", "tiktok", "instagram", "youtube", "whatsapp", "reddit", "discord", "linkedin", "threads", "vk", "snapchat", "web"]>;
|
|
245
|
+
url: z.ZodEffects<z.ZodString, string, string>;
|
|
246
|
+
label: z.ZodOptional<z.ZodString>;
|
|
247
|
+
/** Why a person collects it instead of a scraper. */
|
|
248
|
+
accessIssue: z.ZodOptional<z.ZodEnum<["login_required", "private", "bot_detection", "captcha", "geo_blocked", "rate_limited", "not_found", "no_collector", "collector_full", "other"]>>;
|
|
249
|
+
note: z.ZodOptional<z.ZodString>;
|
|
250
|
+
}, "strip", z.ZodTypeAny, {
|
|
251
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
252
|
+
url: string;
|
|
253
|
+
sourceId?: string | undefined;
|
|
254
|
+
label?: string | undefined;
|
|
255
|
+
accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
|
|
256
|
+
note?: string | undefined;
|
|
257
|
+
}, {
|
|
258
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
259
|
+
url: string;
|
|
260
|
+
sourceId?: string | undefined;
|
|
261
|
+
label?: string | undefined;
|
|
262
|
+
accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
|
|
263
|
+
note?: string | undefined;
|
|
264
|
+
}>;
|
|
265
|
+
type TaskTarget = z.infer<typeof TaskTargetSchema>;
|
|
266
|
+
/**
|
|
267
|
+
* What a Monitor task should capture. `last_days` is counted back from when the person
|
|
268
|
+
* starts working the task; `range` is fixed: `[start, end)`, `end` exclusive and after `start`,
|
|
269
|
+
* at most `MAX_CAPTURE_WINDOW_DAYS` long.
|
|
270
|
+
*/
|
|
271
|
+
declare const CaptureWindowSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
|
|
272
|
+
mode: z.ZodLiteral<"last_days">;
|
|
273
|
+
days: z.ZodNumber;
|
|
274
|
+
}, "strip", z.ZodTypeAny, {
|
|
275
|
+
mode: "last_days";
|
|
276
|
+
days: number;
|
|
277
|
+
}, {
|
|
278
|
+
mode: "last_days";
|
|
279
|
+
days: number;
|
|
280
|
+
}>, z.ZodObject<{
|
|
281
|
+
mode: z.ZodLiteral<"range">;
|
|
282
|
+
start: z.ZodPipeline<z.ZodUnion<[z.ZodDate, z.ZodString]>, z.ZodDate>;
|
|
283
|
+
end: z.ZodPipeline<z.ZodUnion<[z.ZodDate, z.ZodString]>, z.ZodDate>;
|
|
284
|
+
}, "strip", z.ZodTypeAny, {
|
|
285
|
+
start: Date;
|
|
286
|
+
end: Date;
|
|
287
|
+
mode: "range";
|
|
288
|
+
}, {
|
|
289
|
+
start: string | Date;
|
|
290
|
+
end: string | Date;
|
|
291
|
+
mode: "range";
|
|
292
|
+
}>]>, {
|
|
293
|
+
mode: "last_days";
|
|
294
|
+
days: number;
|
|
295
|
+
} | {
|
|
296
|
+
start: Date;
|
|
297
|
+
end: Date;
|
|
298
|
+
mode: "range";
|
|
299
|
+
}, {
|
|
300
|
+
mode: "last_days";
|
|
301
|
+
days: number;
|
|
302
|
+
} | {
|
|
303
|
+
start: string | Date;
|
|
304
|
+
end: string | Date;
|
|
305
|
+
mode: "range";
|
|
306
|
+
}>;
|
|
307
|
+
type CaptureWindow = z.infer<typeof CaptureWindowSchema>;
|
|
308
|
+
type CaptureWindowInput = z.input<typeof CaptureWindowSchema>;
|
|
309
|
+
|
|
176
310
|
/**
|
|
177
311
|
* Fragments shared by `ScoutProfile` and `AnalystProfile`: the data the
|
|
178
312
|
* matching engine reads. Identity lives in Clerk; these hold skills only.
|
|
@@ -197,11 +331,11 @@ declare const SpecialAccessSchema: z.ZodObject<{
|
|
|
197
331
|
platform: z.ZodEnum<["telegram", "facebook", "x", "tiktok", "instagram", "youtube", "whatsapp", "reddit", "discord", "linkedin", "threads", "vk", "snapchat", "web"]>;
|
|
198
332
|
note: z.ZodString;
|
|
199
333
|
}, "strip", z.ZodTypeAny, {
|
|
200
|
-
note: string;
|
|
201
334
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
202
|
-
}, {
|
|
203
335
|
note: string;
|
|
336
|
+
}, {
|
|
204
337
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
338
|
+
note: string;
|
|
205
339
|
}>;
|
|
206
340
|
type SpecialAccess = z.infer<typeof SpecialAccessSchema>;
|
|
207
341
|
declare const PlatformAccessSchema: z.ZodObject<{
|
|
@@ -212,25 +346,25 @@ declare const PlatformAccessSchema: z.ZodObject<{
|
|
|
212
346
|
platform: z.ZodEnum<["telegram", "facebook", "x", "tiktok", "instagram", "youtube", "whatsapp", "reddit", "discord", "linkedin", "threads", "vk", "snapchat", "web"]>;
|
|
213
347
|
note: z.ZodString;
|
|
214
348
|
}, "strip", z.ZodTypeAny, {
|
|
215
|
-
note: string;
|
|
216
349
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
217
|
-
}, {
|
|
218
350
|
note: string;
|
|
351
|
+
}, {
|
|
219
352
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
353
|
+
note: string;
|
|
220
354
|
}>, "many">>;
|
|
221
355
|
}, "strip", z.ZodTypeAny, {
|
|
222
356
|
platforms: ("telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web")[];
|
|
223
357
|
all: boolean;
|
|
224
358
|
special: {
|
|
225
|
-
note: string;
|
|
226
359
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
360
|
+
note: string;
|
|
227
361
|
}[];
|
|
228
362
|
}, {
|
|
229
363
|
platforms?: ("telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web")[] | undefined;
|
|
230
364
|
all?: boolean | undefined;
|
|
231
365
|
special?: {
|
|
232
|
-
note: string;
|
|
233
366
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
367
|
+
note: string;
|
|
234
368
|
}[] | undefined;
|
|
235
369
|
}>;
|
|
236
370
|
type PlatformAccess = z.infer<typeof PlatformAccessSchema>;
|
|
@@ -265,25 +399,25 @@ declare const MatchingFieldsSchema: z.ZodObject<{
|
|
|
265
399
|
platform: z.ZodEnum<["telegram", "facebook", "x", "tiktok", "instagram", "youtube", "whatsapp", "reddit", "discord", "linkedin", "threads", "vk", "snapchat", "web"]>;
|
|
266
400
|
note: z.ZodString;
|
|
267
401
|
}, "strip", z.ZodTypeAny, {
|
|
268
|
-
note: string;
|
|
269
402
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
270
|
-
}, {
|
|
271
403
|
note: string;
|
|
404
|
+
}, {
|
|
272
405
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
406
|
+
note: string;
|
|
273
407
|
}>, "many">>;
|
|
274
408
|
}, "strip", z.ZodTypeAny, {
|
|
275
409
|
platforms: ("telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web")[];
|
|
276
410
|
all: boolean;
|
|
277
411
|
special: {
|
|
278
|
-
note: string;
|
|
279
412
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
413
|
+
note: string;
|
|
280
414
|
}[];
|
|
281
415
|
}, {
|
|
282
416
|
platforms?: ("telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web")[] | undefined;
|
|
283
417
|
all?: boolean | undefined;
|
|
284
418
|
special?: {
|
|
285
|
-
note: string;
|
|
286
419
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
420
|
+
note: string;
|
|
287
421
|
}[] | undefined;
|
|
288
422
|
}>>;
|
|
289
423
|
profession: z.ZodOptional<z.ZodString>;
|
|
@@ -302,8 +436,8 @@ declare const MatchingFieldsSchema: z.ZodObject<{
|
|
|
302
436
|
platforms: ("telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web")[];
|
|
303
437
|
all: boolean;
|
|
304
438
|
special: {
|
|
305
|
-
note: string;
|
|
306
439
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
440
|
+
note: string;
|
|
307
441
|
}[];
|
|
308
442
|
};
|
|
309
443
|
profession?: string | undefined;
|
|
@@ -322,8 +456,8 @@ declare const MatchingFieldsSchema: z.ZodObject<{
|
|
|
322
456
|
platforms?: ("telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web")[] | undefined;
|
|
323
457
|
all?: boolean | undefined;
|
|
324
458
|
special?: {
|
|
325
|
-
note: string;
|
|
326
459
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
460
|
+
note: string;
|
|
327
461
|
}[] | undefined;
|
|
328
462
|
} | undefined;
|
|
329
463
|
taskLimit?: number | undefined;
|
|
@@ -399,6 +533,54 @@ declare const AgentTaskCriteriaSchema: z.ZodObject<{
|
|
|
399
533
|
} | undefined;
|
|
400
534
|
}>;
|
|
401
535
|
type AgentTaskCriteria = z.infer<typeof AgentTaskCriteriaSchema>;
|
|
536
|
+
/** The task's source as shown to agents: no internal source id. */
|
|
537
|
+
declare const AgentTaskTargetSchema: z.ZodObject<Omit<{
|
|
538
|
+
sourceId: z.ZodOptional<z.ZodString>;
|
|
539
|
+
platform: z.ZodEnum<["telegram", "facebook", "x", "tiktok", "instagram", "youtube", "whatsapp", "reddit", "discord", "linkedin", "threads", "vk", "snapchat", "web"]>;
|
|
540
|
+
url: z.ZodEffects<z.ZodString, string, string>;
|
|
541
|
+
label: z.ZodOptional<z.ZodString>;
|
|
542
|
+
accessIssue: z.ZodOptional<z.ZodEnum<["login_required", "private", "bot_detection", "captcha", "geo_blocked", "rate_limited", "not_found", "no_collector", "collector_full", "other"]>>;
|
|
543
|
+
note: z.ZodOptional<z.ZodString>;
|
|
544
|
+
}, "sourceId">, "strip", z.ZodTypeAny, {
|
|
545
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
546
|
+
url: string;
|
|
547
|
+
label?: string | undefined;
|
|
548
|
+
accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
|
|
549
|
+
note?: string | undefined;
|
|
550
|
+
}, {
|
|
551
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
552
|
+
url: string;
|
|
553
|
+
label?: string | undefined;
|
|
554
|
+
accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
|
|
555
|
+
note?: string | undefined;
|
|
556
|
+
}>;
|
|
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>;
|
|
402
584
|
/** Subset of Task exposed to agents. */
|
|
403
585
|
declare const AgentTaskSchema: z.ZodObject<{
|
|
404
586
|
id: z.ZodString;
|
|
@@ -447,12 +629,101 @@ declare const AgentTaskSchema: z.ZodObject<{
|
|
|
447
629
|
end: Date;
|
|
448
630
|
} | undefined;
|
|
449
631
|
}>;
|
|
632
|
+
target: z.ZodOptional<z.ZodObject<Omit<{
|
|
633
|
+
sourceId: z.ZodOptional<z.ZodString>;
|
|
634
|
+
platform: z.ZodEnum<["telegram", "facebook", "x", "tiktok", "instagram", "youtube", "whatsapp", "reddit", "discord", "linkedin", "threads", "vk", "snapchat", "web"]>;
|
|
635
|
+
url: z.ZodEffects<z.ZodString, string, string>;
|
|
636
|
+
label: z.ZodOptional<z.ZodString>;
|
|
637
|
+
accessIssue: z.ZodOptional<z.ZodEnum<["login_required", "private", "bot_detection", "captcha", "geo_blocked", "rate_limited", "not_found", "no_collector", "collector_full", "other"]>>;
|
|
638
|
+
note: z.ZodOptional<z.ZodString>;
|
|
639
|
+
}, "sourceId">, "strip", z.ZodTypeAny, {
|
|
640
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
641
|
+
url: string;
|
|
642
|
+
label?: string | undefined;
|
|
643
|
+
accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
|
|
644
|
+
note?: string | undefined;
|
|
645
|
+
}, {
|
|
646
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
647
|
+
url: string;
|
|
648
|
+
label?: string | undefined;
|
|
649
|
+
accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
|
|
650
|
+
note?: string | undefined;
|
|
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">>;
|
|
677
|
+
captureWindow: z.ZodOptional<z.ZodEffects<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
|
|
678
|
+
mode: z.ZodLiteral<"last_days">;
|
|
679
|
+
days: z.ZodNumber;
|
|
680
|
+
}, "strip", z.ZodTypeAny, {
|
|
681
|
+
mode: "last_days";
|
|
682
|
+
days: number;
|
|
683
|
+
}, {
|
|
684
|
+
mode: "last_days";
|
|
685
|
+
days: number;
|
|
686
|
+
}>, z.ZodObject<{
|
|
687
|
+
mode: z.ZodLiteral<"range">;
|
|
688
|
+
start: z.ZodPipeline<z.ZodUnion<[z.ZodDate, z.ZodString]>, z.ZodDate>;
|
|
689
|
+
end: z.ZodPipeline<z.ZodUnion<[z.ZodDate, z.ZodString]>, z.ZodDate>;
|
|
690
|
+
}, "strip", z.ZodTypeAny, {
|
|
691
|
+
start: Date;
|
|
692
|
+
end: Date;
|
|
693
|
+
mode: "range";
|
|
694
|
+
}, {
|
|
695
|
+
start: string | Date;
|
|
696
|
+
end: string | Date;
|
|
697
|
+
mode: "range";
|
|
698
|
+
}>]>, {
|
|
699
|
+
mode: "last_days";
|
|
700
|
+
days: number;
|
|
701
|
+
} | {
|
|
702
|
+
start: Date;
|
|
703
|
+
end: Date;
|
|
704
|
+
mode: "range";
|
|
705
|
+
}, {
|
|
706
|
+
mode: "last_days";
|
|
707
|
+
days: number;
|
|
708
|
+
} | {
|
|
709
|
+
start: string | Date;
|
|
710
|
+
end: string | Date;
|
|
711
|
+
mode: "range";
|
|
712
|
+
}>>;
|
|
450
713
|
status: z.ZodEnum<["draft", "pending_approval", "approved", "in_progress", "paused", "done"]>;
|
|
451
714
|
version: z.ZodNumber;
|
|
452
715
|
updatedAt: z.ZodDate;
|
|
453
716
|
}, "strip", z.ZodTypeAny, {
|
|
454
717
|
status: "draft" | "paused" | "pending_approval" | "approved" | "in_progress" | "done";
|
|
455
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
|
+
}[];
|
|
456
727
|
title: string;
|
|
457
728
|
description: string;
|
|
458
729
|
keywords: string[];
|
|
@@ -470,6 +741,21 @@ declare const AgentTaskSchema: z.ZodObject<{
|
|
|
470
741
|
};
|
|
471
742
|
version: number;
|
|
472
743
|
id: string;
|
|
744
|
+
target?: {
|
|
745
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
746
|
+
url: string;
|
|
747
|
+
label?: string | undefined;
|
|
748
|
+
accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
|
|
749
|
+
note?: string | undefined;
|
|
750
|
+
} | undefined;
|
|
751
|
+
captureWindow?: {
|
|
752
|
+
mode: "last_days";
|
|
753
|
+
days: number;
|
|
754
|
+
} | {
|
|
755
|
+
start: Date;
|
|
756
|
+
end: Date;
|
|
757
|
+
mode: "range";
|
|
758
|
+
} | undefined;
|
|
473
759
|
}, {
|
|
474
760
|
status: "draft" | "paused" | "pending_approval" | "approved" | "in_progress" | "done";
|
|
475
761
|
updatedAt: Date;
|
|
@@ -490,6 +776,29 @@ declare const AgentTaskSchema: z.ZodObject<{
|
|
|
490
776
|
};
|
|
491
777
|
version: number;
|
|
492
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;
|
|
787
|
+
target?: {
|
|
788
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
789
|
+
url: string;
|
|
790
|
+
label?: string | undefined;
|
|
791
|
+
accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
|
|
792
|
+
note?: string | undefined;
|
|
793
|
+
} | undefined;
|
|
794
|
+
captureWindow?: {
|
|
795
|
+
mode: "last_days";
|
|
796
|
+
days: number;
|
|
797
|
+
} | {
|
|
798
|
+
start: string | Date;
|
|
799
|
+
end: string | Date;
|
|
800
|
+
mode: "range";
|
|
801
|
+
} | undefined;
|
|
493
802
|
}>;
|
|
494
803
|
type AgentTask = z.infer<typeof AgentTaskSchema>;
|
|
495
804
|
/** Org reference; present only for analysts. */
|
|
@@ -555,12 +864,101 @@ declare const AgentAssignmentItemSchema: z.ZodObject<{
|
|
|
555
864
|
end: Date;
|
|
556
865
|
} | undefined;
|
|
557
866
|
}>;
|
|
867
|
+
target: z.ZodOptional<z.ZodObject<Omit<{
|
|
868
|
+
sourceId: z.ZodOptional<z.ZodString>;
|
|
869
|
+
platform: z.ZodEnum<["telegram", "facebook", "x", "tiktok", "instagram", "youtube", "whatsapp", "reddit", "discord", "linkedin", "threads", "vk", "snapchat", "web"]>;
|
|
870
|
+
url: z.ZodEffects<z.ZodString, string, string>;
|
|
871
|
+
label: z.ZodOptional<z.ZodString>;
|
|
872
|
+
accessIssue: z.ZodOptional<z.ZodEnum<["login_required", "private", "bot_detection", "captcha", "geo_blocked", "rate_limited", "not_found", "no_collector", "collector_full", "other"]>>;
|
|
873
|
+
note: z.ZodOptional<z.ZodString>;
|
|
874
|
+
}, "sourceId">, "strip", z.ZodTypeAny, {
|
|
875
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
876
|
+
url: string;
|
|
877
|
+
label?: string | undefined;
|
|
878
|
+
accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
|
|
879
|
+
note?: string | undefined;
|
|
880
|
+
}, {
|
|
881
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
882
|
+
url: string;
|
|
883
|
+
label?: string | undefined;
|
|
884
|
+
accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
|
|
885
|
+
note?: string | undefined;
|
|
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">>;
|
|
912
|
+
captureWindow: z.ZodOptional<z.ZodEffects<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
|
|
913
|
+
mode: z.ZodLiteral<"last_days">;
|
|
914
|
+
days: z.ZodNumber;
|
|
915
|
+
}, "strip", z.ZodTypeAny, {
|
|
916
|
+
mode: "last_days";
|
|
917
|
+
days: number;
|
|
918
|
+
}, {
|
|
919
|
+
mode: "last_days";
|
|
920
|
+
days: number;
|
|
921
|
+
}>, z.ZodObject<{
|
|
922
|
+
mode: z.ZodLiteral<"range">;
|
|
923
|
+
start: z.ZodPipeline<z.ZodUnion<[z.ZodDate, z.ZodString]>, z.ZodDate>;
|
|
924
|
+
end: z.ZodPipeline<z.ZodUnion<[z.ZodDate, z.ZodString]>, z.ZodDate>;
|
|
925
|
+
}, "strip", z.ZodTypeAny, {
|
|
926
|
+
start: Date;
|
|
927
|
+
end: Date;
|
|
928
|
+
mode: "range";
|
|
929
|
+
}, {
|
|
930
|
+
start: string | Date;
|
|
931
|
+
end: string | Date;
|
|
932
|
+
mode: "range";
|
|
933
|
+
}>]>, {
|
|
934
|
+
mode: "last_days";
|
|
935
|
+
days: number;
|
|
936
|
+
} | {
|
|
937
|
+
start: Date;
|
|
938
|
+
end: Date;
|
|
939
|
+
mode: "range";
|
|
940
|
+
}, {
|
|
941
|
+
mode: "last_days";
|
|
942
|
+
days: number;
|
|
943
|
+
} | {
|
|
944
|
+
start: string | Date;
|
|
945
|
+
end: string | Date;
|
|
946
|
+
mode: "range";
|
|
947
|
+
}>>;
|
|
558
948
|
status: z.ZodEnum<["draft", "pending_approval", "approved", "in_progress", "paused", "done"]>;
|
|
559
949
|
version: z.ZodNumber;
|
|
560
950
|
updatedAt: z.ZodDate;
|
|
561
951
|
}, "strip", z.ZodTypeAny, {
|
|
562
952
|
status: "draft" | "paused" | "pending_approval" | "approved" | "in_progress" | "done";
|
|
563
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
|
+
}[];
|
|
564
962
|
title: string;
|
|
565
963
|
description: string;
|
|
566
964
|
keywords: string[];
|
|
@@ -578,6 +976,21 @@ declare const AgentAssignmentItemSchema: z.ZodObject<{
|
|
|
578
976
|
};
|
|
579
977
|
version: number;
|
|
580
978
|
id: string;
|
|
979
|
+
target?: {
|
|
980
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
981
|
+
url: string;
|
|
982
|
+
label?: string | undefined;
|
|
983
|
+
accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
|
|
984
|
+
note?: string | undefined;
|
|
985
|
+
} | undefined;
|
|
986
|
+
captureWindow?: {
|
|
987
|
+
mode: "last_days";
|
|
988
|
+
days: number;
|
|
989
|
+
} | {
|
|
990
|
+
start: Date;
|
|
991
|
+
end: Date;
|
|
992
|
+
mode: "range";
|
|
993
|
+
} | undefined;
|
|
581
994
|
}, {
|
|
582
995
|
status: "draft" | "paused" | "pending_approval" | "approved" | "in_progress" | "done";
|
|
583
996
|
updatedAt: Date;
|
|
@@ -598,6 +1011,29 @@ declare const AgentAssignmentItemSchema: z.ZodObject<{
|
|
|
598
1011
|
};
|
|
599
1012
|
version: number;
|
|
600
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;
|
|
1022
|
+
target?: {
|
|
1023
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
1024
|
+
url: string;
|
|
1025
|
+
label?: string | undefined;
|
|
1026
|
+
accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
|
|
1027
|
+
note?: string | undefined;
|
|
1028
|
+
} | undefined;
|
|
1029
|
+
captureWindow?: {
|
|
1030
|
+
mode: "last_days";
|
|
1031
|
+
days: number;
|
|
1032
|
+
} | {
|
|
1033
|
+
start: string | Date;
|
|
1034
|
+
end: string | Date;
|
|
1035
|
+
mode: "range";
|
|
1036
|
+
} | undefined;
|
|
601
1037
|
}>;
|
|
602
1038
|
missionTitle: z.ZodString;
|
|
603
1039
|
org: z.ZodOptional<z.ZodObject<{
|
|
@@ -616,6 +1052,14 @@ declare const AgentAssignmentItemSchema: z.ZodObject<{
|
|
|
616
1052
|
task: {
|
|
617
1053
|
status: "draft" | "paused" | "pending_approval" | "approved" | "in_progress" | "done";
|
|
618
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
|
+
}[];
|
|
619
1063
|
title: string;
|
|
620
1064
|
description: string;
|
|
621
1065
|
keywords: string[];
|
|
@@ -633,6 +1077,21 @@ declare const AgentAssignmentItemSchema: z.ZodObject<{
|
|
|
633
1077
|
};
|
|
634
1078
|
version: number;
|
|
635
1079
|
id: string;
|
|
1080
|
+
target?: {
|
|
1081
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
1082
|
+
url: string;
|
|
1083
|
+
label?: string | undefined;
|
|
1084
|
+
accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
|
|
1085
|
+
note?: string | undefined;
|
|
1086
|
+
} | undefined;
|
|
1087
|
+
captureWindow?: {
|
|
1088
|
+
mode: "last_days";
|
|
1089
|
+
days: number;
|
|
1090
|
+
} | {
|
|
1091
|
+
start: Date;
|
|
1092
|
+
end: Date;
|
|
1093
|
+
mode: "range";
|
|
1094
|
+
} | undefined;
|
|
636
1095
|
};
|
|
637
1096
|
missionTitle: string;
|
|
638
1097
|
org?: {
|
|
@@ -662,6 +1121,29 @@ declare const AgentAssignmentItemSchema: z.ZodObject<{
|
|
|
662
1121
|
};
|
|
663
1122
|
version: number;
|
|
664
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;
|
|
1132
|
+
target?: {
|
|
1133
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
1134
|
+
url: string;
|
|
1135
|
+
label?: string | undefined;
|
|
1136
|
+
accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
|
|
1137
|
+
note?: string | undefined;
|
|
1138
|
+
} | undefined;
|
|
1139
|
+
captureWindow?: {
|
|
1140
|
+
mode: "last_days";
|
|
1141
|
+
days: number;
|
|
1142
|
+
} | {
|
|
1143
|
+
start: string | Date;
|
|
1144
|
+
end: string | Date;
|
|
1145
|
+
mode: "range";
|
|
1146
|
+
} | undefined;
|
|
665
1147
|
};
|
|
666
1148
|
missionTitle: string;
|
|
667
1149
|
org?: {
|
|
@@ -721,12 +1203,101 @@ declare const AgentAssignmentsResponseSchema: z.ZodObject<{
|
|
|
721
1203
|
end: Date;
|
|
722
1204
|
} | undefined;
|
|
723
1205
|
}>;
|
|
1206
|
+
target: z.ZodOptional<z.ZodObject<Omit<{
|
|
1207
|
+
sourceId: z.ZodOptional<z.ZodString>;
|
|
1208
|
+
platform: z.ZodEnum<["telegram", "facebook", "x", "tiktok", "instagram", "youtube", "whatsapp", "reddit", "discord", "linkedin", "threads", "vk", "snapchat", "web"]>;
|
|
1209
|
+
url: z.ZodEffects<z.ZodString, string, string>;
|
|
1210
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1211
|
+
accessIssue: z.ZodOptional<z.ZodEnum<["login_required", "private", "bot_detection", "captcha", "geo_blocked", "rate_limited", "not_found", "no_collector", "collector_full", "other"]>>;
|
|
1212
|
+
note: z.ZodOptional<z.ZodString>;
|
|
1213
|
+
}, "sourceId">, "strip", z.ZodTypeAny, {
|
|
1214
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
1215
|
+
url: string;
|
|
1216
|
+
label?: string | undefined;
|
|
1217
|
+
accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
|
|
1218
|
+
note?: string | undefined;
|
|
1219
|
+
}, {
|
|
1220
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
1221
|
+
url: string;
|
|
1222
|
+
label?: string | undefined;
|
|
1223
|
+
accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
|
|
1224
|
+
note?: string | undefined;
|
|
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">>;
|
|
1251
|
+
captureWindow: z.ZodOptional<z.ZodEffects<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
|
|
1252
|
+
mode: z.ZodLiteral<"last_days">;
|
|
1253
|
+
days: z.ZodNumber;
|
|
1254
|
+
}, "strip", z.ZodTypeAny, {
|
|
1255
|
+
mode: "last_days";
|
|
1256
|
+
days: number;
|
|
1257
|
+
}, {
|
|
1258
|
+
mode: "last_days";
|
|
1259
|
+
days: number;
|
|
1260
|
+
}>, z.ZodObject<{
|
|
1261
|
+
mode: z.ZodLiteral<"range">;
|
|
1262
|
+
start: z.ZodPipeline<z.ZodUnion<[z.ZodDate, z.ZodString]>, z.ZodDate>;
|
|
1263
|
+
end: z.ZodPipeline<z.ZodUnion<[z.ZodDate, z.ZodString]>, z.ZodDate>;
|
|
1264
|
+
}, "strip", z.ZodTypeAny, {
|
|
1265
|
+
start: Date;
|
|
1266
|
+
end: Date;
|
|
1267
|
+
mode: "range";
|
|
1268
|
+
}, {
|
|
1269
|
+
start: string | Date;
|
|
1270
|
+
end: string | Date;
|
|
1271
|
+
mode: "range";
|
|
1272
|
+
}>]>, {
|
|
1273
|
+
mode: "last_days";
|
|
1274
|
+
days: number;
|
|
1275
|
+
} | {
|
|
1276
|
+
start: Date;
|
|
1277
|
+
end: Date;
|
|
1278
|
+
mode: "range";
|
|
1279
|
+
}, {
|
|
1280
|
+
mode: "last_days";
|
|
1281
|
+
days: number;
|
|
1282
|
+
} | {
|
|
1283
|
+
start: string | Date;
|
|
1284
|
+
end: string | Date;
|
|
1285
|
+
mode: "range";
|
|
1286
|
+
}>>;
|
|
724
1287
|
status: z.ZodEnum<["draft", "pending_approval", "approved", "in_progress", "paused", "done"]>;
|
|
725
1288
|
version: z.ZodNumber;
|
|
726
1289
|
updatedAt: z.ZodDate;
|
|
727
1290
|
}, "strip", z.ZodTypeAny, {
|
|
728
1291
|
status: "draft" | "paused" | "pending_approval" | "approved" | "in_progress" | "done";
|
|
729
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
|
+
}[];
|
|
730
1301
|
title: string;
|
|
731
1302
|
description: string;
|
|
732
1303
|
keywords: string[];
|
|
@@ -744,6 +1315,21 @@ declare const AgentAssignmentsResponseSchema: z.ZodObject<{
|
|
|
744
1315
|
};
|
|
745
1316
|
version: number;
|
|
746
1317
|
id: string;
|
|
1318
|
+
target?: {
|
|
1319
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
1320
|
+
url: string;
|
|
1321
|
+
label?: string | undefined;
|
|
1322
|
+
accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
|
|
1323
|
+
note?: string | undefined;
|
|
1324
|
+
} | undefined;
|
|
1325
|
+
captureWindow?: {
|
|
1326
|
+
mode: "last_days";
|
|
1327
|
+
days: number;
|
|
1328
|
+
} | {
|
|
1329
|
+
start: Date;
|
|
1330
|
+
end: Date;
|
|
1331
|
+
mode: "range";
|
|
1332
|
+
} | undefined;
|
|
747
1333
|
}, {
|
|
748
1334
|
status: "draft" | "paused" | "pending_approval" | "approved" | "in_progress" | "done";
|
|
749
1335
|
updatedAt: Date;
|
|
@@ -764,6 +1350,29 @@ declare const AgentAssignmentsResponseSchema: z.ZodObject<{
|
|
|
764
1350
|
};
|
|
765
1351
|
version: number;
|
|
766
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;
|
|
1361
|
+
target?: {
|
|
1362
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
1363
|
+
url: string;
|
|
1364
|
+
label?: string | undefined;
|
|
1365
|
+
accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
|
|
1366
|
+
note?: string | undefined;
|
|
1367
|
+
} | undefined;
|
|
1368
|
+
captureWindow?: {
|
|
1369
|
+
mode: "last_days";
|
|
1370
|
+
days: number;
|
|
1371
|
+
} | {
|
|
1372
|
+
start: string | Date;
|
|
1373
|
+
end: string | Date;
|
|
1374
|
+
mode: "range";
|
|
1375
|
+
} | undefined;
|
|
767
1376
|
}>;
|
|
768
1377
|
missionTitle: z.ZodString;
|
|
769
1378
|
org: z.ZodOptional<z.ZodObject<{
|
|
@@ -782,6 +1391,14 @@ declare const AgentAssignmentsResponseSchema: z.ZodObject<{
|
|
|
782
1391
|
task: {
|
|
783
1392
|
status: "draft" | "paused" | "pending_approval" | "approved" | "in_progress" | "done";
|
|
784
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
|
+
}[];
|
|
785
1402
|
title: string;
|
|
786
1403
|
description: string;
|
|
787
1404
|
keywords: string[];
|
|
@@ -799,6 +1416,21 @@ declare const AgentAssignmentsResponseSchema: z.ZodObject<{
|
|
|
799
1416
|
};
|
|
800
1417
|
version: number;
|
|
801
1418
|
id: string;
|
|
1419
|
+
target?: {
|
|
1420
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
1421
|
+
url: string;
|
|
1422
|
+
label?: string | undefined;
|
|
1423
|
+
accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
|
|
1424
|
+
note?: string | undefined;
|
|
1425
|
+
} | undefined;
|
|
1426
|
+
captureWindow?: {
|
|
1427
|
+
mode: "last_days";
|
|
1428
|
+
days: number;
|
|
1429
|
+
} | {
|
|
1430
|
+
start: Date;
|
|
1431
|
+
end: Date;
|
|
1432
|
+
mode: "range";
|
|
1433
|
+
} | undefined;
|
|
802
1434
|
};
|
|
803
1435
|
missionTitle: string;
|
|
804
1436
|
org?: {
|
|
@@ -828,6 +1460,29 @@ declare const AgentAssignmentsResponseSchema: z.ZodObject<{
|
|
|
828
1460
|
};
|
|
829
1461
|
version: number;
|
|
830
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;
|
|
1471
|
+
target?: {
|
|
1472
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
1473
|
+
url: string;
|
|
1474
|
+
label?: string | undefined;
|
|
1475
|
+
accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
|
|
1476
|
+
note?: string | undefined;
|
|
1477
|
+
} | undefined;
|
|
1478
|
+
captureWindow?: {
|
|
1479
|
+
mode: "last_days";
|
|
1480
|
+
days: number;
|
|
1481
|
+
} | {
|
|
1482
|
+
start: string | Date;
|
|
1483
|
+
end: string | Date;
|
|
1484
|
+
mode: "range";
|
|
1485
|
+
} | undefined;
|
|
831
1486
|
};
|
|
832
1487
|
missionTitle: string;
|
|
833
1488
|
org?: {
|
|
@@ -842,6 +1497,14 @@ declare const AgentAssignmentsResponseSchema: z.ZodObject<{
|
|
|
842
1497
|
task: {
|
|
843
1498
|
status: "draft" | "paused" | "pending_approval" | "approved" | "in_progress" | "done";
|
|
844
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
|
+
}[];
|
|
845
1508
|
title: string;
|
|
846
1509
|
description: string;
|
|
847
1510
|
keywords: string[];
|
|
@@ -859,6 +1522,21 @@ declare const AgentAssignmentsResponseSchema: z.ZodObject<{
|
|
|
859
1522
|
};
|
|
860
1523
|
version: number;
|
|
861
1524
|
id: string;
|
|
1525
|
+
target?: {
|
|
1526
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
1527
|
+
url: string;
|
|
1528
|
+
label?: string | undefined;
|
|
1529
|
+
accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
|
|
1530
|
+
note?: string | undefined;
|
|
1531
|
+
} | undefined;
|
|
1532
|
+
captureWindow?: {
|
|
1533
|
+
mode: "last_days";
|
|
1534
|
+
days: number;
|
|
1535
|
+
} | {
|
|
1536
|
+
start: Date;
|
|
1537
|
+
end: Date;
|
|
1538
|
+
mode: "range";
|
|
1539
|
+
} | undefined;
|
|
862
1540
|
};
|
|
863
1541
|
missionTitle: string;
|
|
864
1542
|
org?: {
|
|
@@ -890,6 +1568,29 @@ declare const AgentAssignmentsResponseSchema: z.ZodObject<{
|
|
|
890
1568
|
};
|
|
891
1569
|
version: number;
|
|
892
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;
|
|
1579
|
+
target?: {
|
|
1580
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
1581
|
+
url: string;
|
|
1582
|
+
label?: string | undefined;
|
|
1583
|
+
accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
|
|
1584
|
+
note?: string | undefined;
|
|
1585
|
+
} | undefined;
|
|
1586
|
+
captureWindow?: {
|
|
1587
|
+
mode: "last_days";
|
|
1588
|
+
days: number;
|
|
1589
|
+
} | {
|
|
1590
|
+
start: string | Date;
|
|
1591
|
+
end: string | Date;
|
|
1592
|
+
mode: "range";
|
|
1593
|
+
} | undefined;
|
|
893
1594
|
};
|
|
894
1595
|
missionTitle: string;
|
|
895
1596
|
org?: {
|
|
@@ -903,34 +1604,44 @@ type AgentAssignmentsResponse = z.infer<typeof AgentAssignmentsResponseSchema>;
|
|
|
903
1604
|
declare const AgentAssignmentVersionSchema: z.ZodObject<{
|
|
904
1605
|
assignmentId: z.ZodString;
|
|
905
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>;
|
|
906
1609
|
}, "strip", z.ZodTypeAny, {
|
|
907
1610
|
assignmentId: string;
|
|
908
1611
|
taskVersion: number;
|
|
1612
|
+
sourcesUpdatedAt?: Date | undefined;
|
|
909
1613
|
}, {
|
|
910
1614
|
assignmentId: string;
|
|
911
1615
|
taskVersion: number;
|
|
1616
|
+
sourcesUpdatedAt?: Date | undefined;
|
|
912
1617
|
}>;
|
|
913
1618
|
type AgentAssignmentVersion = z.infer<typeof AgentAssignmentVersionSchema>;
|
|
914
1619
|
declare const AgentAssignmentVersionsResponseSchema: z.ZodObject<{
|
|
915
1620
|
items: z.ZodArray<z.ZodObject<{
|
|
916
1621
|
assignmentId: z.ZodString;
|
|
917
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>;
|
|
918
1625
|
}, "strip", z.ZodTypeAny, {
|
|
919
1626
|
assignmentId: string;
|
|
920
1627
|
taskVersion: number;
|
|
1628
|
+
sourcesUpdatedAt?: Date | undefined;
|
|
921
1629
|
}, {
|
|
922
1630
|
assignmentId: string;
|
|
923
1631
|
taskVersion: number;
|
|
1632
|
+
sourcesUpdatedAt?: Date | undefined;
|
|
924
1633
|
}>, "many">;
|
|
925
1634
|
}, "strip", z.ZodTypeAny, {
|
|
926
1635
|
items: {
|
|
927
1636
|
assignmentId: string;
|
|
928
1637
|
taskVersion: number;
|
|
1638
|
+
sourcesUpdatedAt?: Date | undefined;
|
|
929
1639
|
}[];
|
|
930
1640
|
}, {
|
|
931
1641
|
items: {
|
|
932
1642
|
assignmentId: string;
|
|
933
1643
|
taskVersion: number;
|
|
1644
|
+
sourcesUpdatedAt?: Date | undefined;
|
|
934
1645
|
}[];
|
|
935
1646
|
}>;
|
|
936
1647
|
type AgentAssignmentVersionsResponse = z.infer<typeof AgentAssignmentVersionsResponseSchema>;
|
|
@@ -1019,13 +1730,51 @@ declare const AgentSessionViewSchema: z.ZodObject<{
|
|
|
1019
1730
|
sourcesVisited?: number | undefined;
|
|
1020
1731
|
sourcesRemaining?: number | undefined;
|
|
1021
1732
|
}>;
|
|
1733
|
+
/** The task's source (no internal id), when it has one. */
|
|
1734
|
+
target: z.ZodOptional<z.ZodObject<Omit<{
|
|
1735
|
+
sourceId: z.ZodOptional<z.ZodString>;
|
|
1736
|
+
platform: z.ZodEnum<["telegram", "facebook", "x", "tiktok", "instagram", "youtube", "whatsapp", "reddit", "discord", "linkedin", "threads", "vk", "snapchat", "web"]>;
|
|
1737
|
+
url: z.ZodEffects<z.ZodString, string, string>;
|
|
1738
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1739
|
+
accessIssue: z.ZodOptional<z.ZodEnum<["login_required", "private", "bot_detection", "captcha", "geo_blocked", "rate_limited", "not_found", "no_collector", "collector_full", "other"]>>;
|
|
1740
|
+
note: z.ZodOptional<z.ZodString>;
|
|
1741
|
+
}, "sourceId">, "strip", z.ZodTypeAny, {
|
|
1742
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
1743
|
+
url: string;
|
|
1744
|
+
label?: string | undefined;
|
|
1745
|
+
accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
|
|
1746
|
+
note?: string | undefined;
|
|
1747
|
+
}, {
|
|
1748
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
1749
|
+
url: string;
|
|
1750
|
+
label?: string | undefined;
|
|
1751
|
+
accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
|
|
1752
|
+
note?: string | undefined;
|
|
1753
|
+
}>>;
|
|
1754
|
+
/** The capture window resolved to dates when the session started. */
|
|
1755
|
+
captureWindow: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
1756
|
+
start: z.ZodDate;
|
|
1757
|
+
end: z.ZodDate;
|
|
1758
|
+
}, "strip", z.ZodTypeAny, {
|
|
1759
|
+
start: Date;
|
|
1760
|
+
end: Date;
|
|
1761
|
+
}, {
|
|
1762
|
+
start: Date;
|
|
1763
|
+
end: Date;
|
|
1764
|
+
}>, {
|
|
1765
|
+
start: Date;
|
|
1766
|
+
end: Date;
|
|
1767
|
+
}, {
|
|
1768
|
+
start: Date;
|
|
1769
|
+
end: Date;
|
|
1770
|
+
}>>;
|
|
1022
1771
|
}, "strip", z.ZodTypeAny, {
|
|
1023
1772
|
status: "active" | "paused" | "ended";
|
|
1773
|
+
mode: "monitor" | "discovery";
|
|
1024
1774
|
taskId: string;
|
|
1025
1775
|
endedAt: Date | null;
|
|
1026
1776
|
assignmentId: string;
|
|
1027
1777
|
id: string;
|
|
1028
|
-
mode: "monitor" | "discovery";
|
|
1029
1778
|
startedAt: Date;
|
|
1030
1779
|
activeMinutes: number;
|
|
1031
1780
|
lastSeq: number;
|
|
@@ -1044,13 +1793,24 @@ declare const AgentSessionViewSchema: z.ZodObject<{
|
|
|
1044
1793
|
};
|
|
1045
1794
|
missionTitle: string;
|
|
1046
1795
|
taskTitle: string;
|
|
1796
|
+
target?: {
|
|
1797
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
1798
|
+
url: string;
|
|
1799
|
+
label?: string | undefined;
|
|
1800
|
+
accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
|
|
1801
|
+
note?: string | undefined;
|
|
1802
|
+
} | undefined;
|
|
1803
|
+
captureWindow?: {
|
|
1804
|
+
start: Date;
|
|
1805
|
+
end: Date;
|
|
1806
|
+
} | undefined;
|
|
1047
1807
|
}, {
|
|
1048
1808
|
status: "active" | "paused" | "ended";
|
|
1809
|
+
mode: "monitor" | "discovery";
|
|
1049
1810
|
taskId: string;
|
|
1050
1811
|
endedAt: Date | null;
|
|
1051
1812
|
assignmentId: string;
|
|
1052
1813
|
id: string;
|
|
1053
|
-
mode: "monitor" | "discovery";
|
|
1054
1814
|
startedAt: Date;
|
|
1055
1815
|
activeMinutes: number;
|
|
1056
1816
|
lastSeq: number;
|
|
@@ -1069,6 +1829,17 @@ declare const AgentSessionViewSchema: z.ZodObject<{
|
|
|
1069
1829
|
};
|
|
1070
1830
|
missionTitle: string;
|
|
1071
1831
|
taskTitle: string;
|
|
1832
|
+
target?: {
|
|
1833
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
1834
|
+
url: string;
|
|
1835
|
+
label?: string | undefined;
|
|
1836
|
+
accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
|
|
1837
|
+
note?: string | undefined;
|
|
1838
|
+
} | undefined;
|
|
1839
|
+
captureWindow?: {
|
|
1840
|
+
start: Date;
|
|
1841
|
+
end: Date;
|
|
1842
|
+
} | undefined;
|
|
1072
1843
|
}>;
|
|
1073
1844
|
type AgentSessionView = z.infer<typeof AgentSessionViewSchema>;
|
|
1074
1845
|
declare const AgentMessageViewSchema: z.ZodObject<{
|
|
@@ -1083,14 +1854,14 @@ declare const AgentMessageViewSchema: z.ZodObject<{
|
|
|
1083
1854
|
label: z.ZodString;
|
|
1084
1855
|
platform: z.ZodOptional<z.ZodEnum<["telegram", "facebook", "x", "tiktok", "instagram", "youtube", "whatsapp", "reddit", "discord", "linkedin", "threads", "vk", "snapchat", "web"]>>;
|
|
1085
1856
|
}, "strip", z.ZodTypeAny, {
|
|
1086
|
-
kind: "open_link";
|
|
1087
1857
|
url: string;
|
|
1088
1858
|
label: string;
|
|
1859
|
+
kind: "open_link";
|
|
1089
1860
|
platform?: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web" | undefined;
|
|
1090
1861
|
}, {
|
|
1091
|
-
kind: "open_link";
|
|
1092
1862
|
url: string;
|
|
1093
1863
|
label: string;
|
|
1864
|
+
kind: "open_link";
|
|
1094
1865
|
platform?: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web" | undefined;
|
|
1095
1866
|
}>, z.ZodObject<{
|
|
1096
1867
|
kind: z.ZodLiteral<"capture_prompt">;
|
|
@@ -1111,20 +1882,20 @@ declare const AgentMessageViewSchema: z.ZodObject<{
|
|
|
1111
1882
|
score: z.ZodOptional<z.ZodNumber>;
|
|
1112
1883
|
}, "strip", z.ZodTypeAny, {
|
|
1113
1884
|
name: string;
|
|
1114
|
-
kind: "source_result";
|
|
1115
1885
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
1886
|
+
kind: "source_result";
|
|
1116
1887
|
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
1117
1888
|
reason: string;
|
|
1118
|
-
score?: number | undefined;
|
|
1119
1889
|
url?: string | undefined;
|
|
1890
|
+
score?: number | undefined;
|
|
1120
1891
|
}, {
|
|
1121
1892
|
name: string;
|
|
1122
|
-
kind: "source_result";
|
|
1123
1893
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
1894
|
+
kind: "source_result";
|
|
1124
1895
|
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
1125
1896
|
reason: string;
|
|
1126
|
-
score?: number | undefined;
|
|
1127
1897
|
url?: string | undefined;
|
|
1898
|
+
score?: number | undefined;
|
|
1128
1899
|
}>, z.ZodObject<{
|
|
1129
1900
|
kind: z.ZodLiteral<"item_result">;
|
|
1130
1901
|
excerpt: z.ZodString;
|
|
@@ -1132,15 +1903,15 @@ declare const AgentMessageViewSchema: z.ZodObject<{
|
|
|
1132
1903
|
priority: z.ZodBoolean;
|
|
1133
1904
|
publishedAt: z.ZodOptional<z.ZodDate>;
|
|
1134
1905
|
}, "strip", z.ZodTypeAny, {
|
|
1906
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
1135
1907
|
priority: boolean;
|
|
1136
1908
|
kind: "item_result";
|
|
1137
|
-
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
1138
1909
|
excerpt: string;
|
|
1139
1910
|
publishedAt?: Date | undefined;
|
|
1140
1911
|
}, {
|
|
1912
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
1141
1913
|
priority: boolean;
|
|
1142
1914
|
kind: "item_result";
|
|
1143
|
-
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
1144
1915
|
excerpt: string;
|
|
1145
1916
|
publishedAt?: Date | undefined;
|
|
1146
1917
|
}>, z.ZodObject<{
|
|
@@ -1150,23 +1921,23 @@ declare const AgentMessageViewSchema: z.ZodObject<{
|
|
|
1150
1921
|
id: z.ZodString;
|
|
1151
1922
|
label: z.ZodString;
|
|
1152
1923
|
}, "strip", z.ZodTypeAny, {
|
|
1153
|
-
id: string;
|
|
1154
1924
|
label: string;
|
|
1155
|
-
}, {
|
|
1156
1925
|
id: string;
|
|
1926
|
+
}, {
|
|
1157
1927
|
label: string;
|
|
1928
|
+
id: string;
|
|
1158
1929
|
}>, "many">;
|
|
1159
1930
|
}, "strip", z.ZodTypeAny, {
|
|
1160
1931
|
options: {
|
|
1161
|
-
id: string;
|
|
1162
1932
|
label: string;
|
|
1933
|
+
id: string;
|
|
1163
1934
|
}[];
|
|
1164
1935
|
kind: "quick_replies";
|
|
1165
1936
|
questionId: string;
|
|
1166
1937
|
}, {
|
|
1167
1938
|
options: {
|
|
1168
|
-
id: string;
|
|
1169
1939
|
label: string;
|
|
1940
|
+
id: string;
|
|
1170
1941
|
}[];
|
|
1171
1942
|
kind: "quick_replies";
|
|
1172
1943
|
questionId: string;
|
|
@@ -1175,13 +1946,13 @@ declare const AgentMessageViewSchema: z.ZodObject<{
|
|
|
1175
1946
|
minutes: z.ZodNumber;
|
|
1176
1947
|
note: z.ZodString;
|
|
1177
1948
|
}, "strip", z.ZodTypeAny, {
|
|
1949
|
+
note: string;
|
|
1178
1950
|
kind: "hours_proposal";
|
|
1179
1951
|
minutes: number;
|
|
1180
|
-
note: string;
|
|
1181
1952
|
}, {
|
|
1953
|
+
note: string;
|
|
1182
1954
|
kind: "hours_proposal";
|
|
1183
1955
|
minutes: number;
|
|
1184
|
-
note: string;
|
|
1185
1956
|
}>, z.ZodObject<{
|
|
1186
1957
|
kind: z.ZodLiteral<"capture_thumb">;
|
|
1187
1958
|
captureId: z.ZodString;
|
|
@@ -1201,38 +1972,38 @@ declare const AgentMessageViewSchema: z.ZodObject<{
|
|
|
1201
1972
|
seq: number;
|
|
1202
1973
|
role: "system" | "agent" | "person";
|
|
1203
1974
|
cards: ({
|
|
1204
|
-
kind: "open_link";
|
|
1205
1975
|
url: string;
|
|
1206
1976
|
label: string;
|
|
1977
|
+
kind: "open_link";
|
|
1207
1978
|
platform?: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web" | undefined;
|
|
1208
1979
|
} | {
|
|
1209
1980
|
kind: "capture_prompt";
|
|
1210
1981
|
hint: string;
|
|
1211
1982
|
} | {
|
|
1212
1983
|
name: string;
|
|
1213
|
-
kind: "source_result";
|
|
1214
1984
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
1985
|
+
kind: "source_result";
|
|
1215
1986
|
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
1216
1987
|
reason: string;
|
|
1217
|
-
score?: number | undefined;
|
|
1218
1988
|
url?: string | undefined;
|
|
1989
|
+
score?: number | undefined;
|
|
1219
1990
|
} | {
|
|
1991
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
1220
1992
|
priority: boolean;
|
|
1221
1993
|
kind: "item_result";
|
|
1222
|
-
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
1223
1994
|
excerpt: string;
|
|
1224
1995
|
publishedAt?: Date | undefined;
|
|
1225
1996
|
} | {
|
|
1226
1997
|
options: {
|
|
1227
|
-
id: string;
|
|
1228
1998
|
label: string;
|
|
1999
|
+
id: string;
|
|
1229
2000
|
}[];
|
|
1230
2001
|
kind: "quick_replies";
|
|
1231
2002
|
questionId: string;
|
|
1232
2003
|
} | {
|
|
2004
|
+
note: string;
|
|
1233
2005
|
kind: "hours_proposal";
|
|
1234
2006
|
minutes: number;
|
|
1235
|
-
note: string;
|
|
1236
2007
|
} | {
|
|
1237
2008
|
kind: "capture_thumb";
|
|
1238
2009
|
captureId: string;
|
|
@@ -1245,38 +2016,38 @@ declare const AgentMessageViewSchema: z.ZodObject<{
|
|
|
1245
2016
|
seq: number;
|
|
1246
2017
|
role: "system" | "agent" | "person";
|
|
1247
2018
|
cards: ({
|
|
1248
|
-
kind: "open_link";
|
|
1249
2019
|
url: string;
|
|
1250
2020
|
label: string;
|
|
2021
|
+
kind: "open_link";
|
|
1251
2022
|
platform?: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web" | undefined;
|
|
1252
2023
|
} | {
|
|
1253
2024
|
kind: "capture_prompt";
|
|
1254
2025
|
hint: string;
|
|
1255
2026
|
} | {
|
|
1256
2027
|
name: string;
|
|
1257
|
-
kind: "source_result";
|
|
1258
2028
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
2029
|
+
kind: "source_result";
|
|
1259
2030
|
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
1260
2031
|
reason: string;
|
|
1261
|
-
score?: number | undefined;
|
|
1262
2032
|
url?: string | undefined;
|
|
2033
|
+
score?: number | undefined;
|
|
1263
2034
|
} | {
|
|
2035
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
1264
2036
|
priority: boolean;
|
|
1265
2037
|
kind: "item_result";
|
|
1266
|
-
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
1267
2038
|
excerpt: string;
|
|
1268
2039
|
publishedAt?: Date | undefined;
|
|
1269
2040
|
} | {
|
|
1270
2041
|
options: {
|
|
1271
|
-
id: string;
|
|
1272
2042
|
label: string;
|
|
2043
|
+
id: string;
|
|
1273
2044
|
}[];
|
|
1274
2045
|
kind: "quick_replies";
|
|
1275
2046
|
questionId: string;
|
|
1276
2047
|
} | {
|
|
2048
|
+
note: string;
|
|
1277
2049
|
kind: "hours_proposal";
|
|
1278
2050
|
minutes: number;
|
|
1279
|
-
note: string;
|
|
1280
2051
|
} | {
|
|
1281
2052
|
kind: "capture_thumb";
|
|
1282
2053
|
captureId: string;
|
|
@@ -1343,13 +2114,51 @@ declare const AgentSessionStartResponseSchema: z.ZodObject<{
|
|
|
1343
2114
|
sourcesVisited?: number | undefined;
|
|
1344
2115
|
sourcesRemaining?: number | undefined;
|
|
1345
2116
|
}>;
|
|
2117
|
+
/** The task's source (no internal id), when it has one. */
|
|
2118
|
+
target: z.ZodOptional<z.ZodObject<Omit<{
|
|
2119
|
+
sourceId: z.ZodOptional<z.ZodString>;
|
|
2120
|
+
platform: z.ZodEnum<["telegram", "facebook", "x", "tiktok", "instagram", "youtube", "whatsapp", "reddit", "discord", "linkedin", "threads", "vk", "snapchat", "web"]>;
|
|
2121
|
+
url: z.ZodEffects<z.ZodString, string, string>;
|
|
2122
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2123
|
+
accessIssue: z.ZodOptional<z.ZodEnum<["login_required", "private", "bot_detection", "captcha", "geo_blocked", "rate_limited", "not_found", "no_collector", "collector_full", "other"]>>;
|
|
2124
|
+
note: z.ZodOptional<z.ZodString>;
|
|
2125
|
+
}, "sourceId">, "strip", z.ZodTypeAny, {
|
|
2126
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
2127
|
+
url: string;
|
|
2128
|
+
label?: string | undefined;
|
|
2129
|
+
accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
|
|
2130
|
+
note?: string | undefined;
|
|
2131
|
+
}, {
|
|
2132
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
2133
|
+
url: string;
|
|
2134
|
+
label?: string | undefined;
|
|
2135
|
+
accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
|
|
2136
|
+
note?: string | undefined;
|
|
2137
|
+
}>>;
|
|
2138
|
+
/** The capture window resolved to dates when the session started. */
|
|
2139
|
+
captureWindow: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2140
|
+
start: z.ZodDate;
|
|
2141
|
+
end: z.ZodDate;
|
|
2142
|
+
}, "strip", z.ZodTypeAny, {
|
|
2143
|
+
start: Date;
|
|
2144
|
+
end: Date;
|
|
2145
|
+
}, {
|
|
2146
|
+
start: Date;
|
|
2147
|
+
end: Date;
|
|
2148
|
+
}>, {
|
|
2149
|
+
start: Date;
|
|
2150
|
+
end: Date;
|
|
2151
|
+
}, {
|
|
2152
|
+
start: Date;
|
|
2153
|
+
end: Date;
|
|
2154
|
+
}>>;
|
|
1346
2155
|
}, "strip", z.ZodTypeAny, {
|
|
1347
2156
|
status: "active" | "paused" | "ended";
|
|
2157
|
+
mode: "monitor" | "discovery";
|
|
1348
2158
|
taskId: string;
|
|
1349
2159
|
endedAt: Date | null;
|
|
1350
2160
|
assignmentId: string;
|
|
1351
2161
|
id: string;
|
|
1352
|
-
mode: "monitor" | "discovery";
|
|
1353
2162
|
startedAt: Date;
|
|
1354
2163
|
activeMinutes: number;
|
|
1355
2164
|
lastSeq: number;
|
|
@@ -1368,13 +2177,24 @@ declare const AgentSessionStartResponseSchema: z.ZodObject<{
|
|
|
1368
2177
|
};
|
|
1369
2178
|
missionTitle: string;
|
|
1370
2179
|
taskTitle: string;
|
|
2180
|
+
target?: {
|
|
2181
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
2182
|
+
url: string;
|
|
2183
|
+
label?: string | undefined;
|
|
2184
|
+
accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
|
|
2185
|
+
note?: string | undefined;
|
|
2186
|
+
} | undefined;
|
|
2187
|
+
captureWindow?: {
|
|
2188
|
+
start: Date;
|
|
2189
|
+
end: Date;
|
|
2190
|
+
} | undefined;
|
|
1371
2191
|
}, {
|
|
1372
2192
|
status: "active" | "paused" | "ended";
|
|
2193
|
+
mode: "monitor" | "discovery";
|
|
1373
2194
|
taskId: string;
|
|
1374
2195
|
endedAt: Date | null;
|
|
1375
2196
|
assignmentId: string;
|
|
1376
2197
|
id: string;
|
|
1377
|
-
mode: "monitor" | "discovery";
|
|
1378
2198
|
startedAt: Date;
|
|
1379
2199
|
activeMinutes: number;
|
|
1380
2200
|
lastSeq: number;
|
|
@@ -1393,16 +2213,27 @@ declare const AgentSessionStartResponseSchema: z.ZodObject<{
|
|
|
1393
2213
|
};
|
|
1394
2214
|
missionTitle: string;
|
|
1395
2215
|
taskTitle: string;
|
|
2216
|
+
target?: {
|
|
2217
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
2218
|
+
url: string;
|
|
2219
|
+
label?: string | undefined;
|
|
2220
|
+
accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
|
|
2221
|
+
note?: string | undefined;
|
|
2222
|
+
} | undefined;
|
|
2223
|
+
captureWindow?: {
|
|
2224
|
+
start: Date;
|
|
2225
|
+
end: Date;
|
|
2226
|
+
} | undefined;
|
|
1396
2227
|
}>;
|
|
1397
2228
|
resumed: z.ZodBoolean;
|
|
1398
2229
|
}, "strip", z.ZodTypeAny, {
|
|
1399
2230
|
session: {
|
|
1400
2231
|
status: "active" | "paused" | "ended";
|
|
2232
|
+
mode: "monitor" | "discovery";
|
|
1401
2233
|
taskId: string;
|
|
1402
2234
|
endedAt: Date | null;
|
|
1403
2235
|
assignmentId: string;
|
|
1404
2236
|
id: string;
|
|
1405
|
-
mode: "monitor" | "discovery";
|
|
1406
2237
|
startedAt: Date;
|
|
1407
2238
|
activeMinutes: number;
|
|
1408
2239
|
lastSeq: number;
|
|
@@ -1421,16 +2252,27 @@ declare const AgentSessionStartResponseSchema: z.ZodObject<{
|
|
|
1421
2252
|
};
|
|
1422
2253
|
missionTitle: string;
|
|
1423
2254
|
taskTitle: string;
|
|
2255
|
+
target?: {
|
|
2256
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
2257
|
+
url: string;
|
|
2258
|
+
label?: string | undefined;
|
|
2259
|
+
accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
|
|
2260
|
+
note?: string | undefined;
|
|
2261
|
+
} | undefined;
|
|
2262
|
+
captureWindow?: {
|
|
2263
|
+
start: Date;
|
|
2264
|
+
end: Date;
|
|
2265
|
+
} | undefined;
|
|
1424
2266
|
};
|
|
1425
2267
|
resumed: boolean;
|
|
1426
2268
|
}, {
|
|
1427
2269
|
session: {
|
|
1428
2270
|
status: "active" | "paused" | "ended";
|
|
2271
|
+
mode: "monitor" | "discovery";
|
|
1429
2272
|
taskId: string;
|
|
1430
2273
|
endedAt: Date | null;
|
|
1431
2274
|
assignmentId: string;
|
|
1432
2275
|
id: string;
|
|
1433
|
-
mode: "monitor" | "discovery";
|
|
1434
2276
|
startedAt: Date;
|
|
1435
2277
|
activeMinutes: number;
|
|
1436
2278
|
lastSeq: number;
|
|
@@ -1449,6 +2291,17 @@ declare const AgentSessionStartResponseSchema: z.ZodObject<{
|
|
|
1449
2291
|
};
|
|
1450
2292
|
missionTitle: string;
|
|
1451
2293
|
taskTitle: string;
|
|
2294
|
+
target?: {
|
|
2295
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
2296
|
+
url: string;
|
|
2297
|
+
label?: string | undefined;
|
|
2298
|
+
accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
|
|
2299
|
+
note?: string | undefined;
|
|
2300
|
+
} | undefined;
|
|
2301
|
+
captureWindow?: {
|
|
2302
|
+
start: Date;
|
|
2303
|
+
end: Date;
|
|
2304
|
+
} | undefined;
|
|
1452
2305
|
};
|
|
1453
2306
|
resumed: boolean;
|
|
1454
2307
|
}>;
|
|
@@ -1504,13 +2357,51 @@ declare const AgentSessionResponseSchema: z.ZodObject<{
|
|
|
1504
2357
|
sourcesVisited?: number | undefined;
|
|
1505
2358
|
sourcesRemaining?: number | undefined;
|
|
1506
2359
|
}>;
|
|
2360
|
+
/** The task's source (no internal id), when it has one. */
|
|
2361
|
+
target: z.ZodOptional<z.ZodObject<Omit<{
|
|
2362
|
+
sourceId: z.ZodOptional<z.ZodString>;
|
|
2363
|
+
platform: z.ZodEnum<["telegram", "facebook", "x", "tiktok", "instagram", "youtube", "whatsapp", "reddit", "discord", "linkedin", "threads", "vk", "snapchat", "web"]>;
|
|
2364
|
+
url: z.ZodEffects<z.ZodString, string, string>;
|
|
2365
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2366
|
+
accessIssue: z.ZodOptional<z.ZodEnum<["login_required", "private", "bot_detection", "captcha", "geo_blocked", "rate_limited", "not_found", "no_collector", "collector_full", "other"]>>;
|
|
2367
|
+
note: z.ZodOptional<z.ZodString>;
|
|
2368
|
+
}, "sourceId">, "strip", z.ZodTypeAny, {
|
|
2369
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
2370
|
+
url: string;
|
|
2371
|
+
label?: string | undefined;
|
|
2372
|
+
accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
|
|
2373
|
+
note?: string | undefined;
|
|
2374
|
+
}, {
|
|
2375
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
2376
|
+
url: string;
|
|
2377
|
+
label?: string | undefined;
|
|
2378
|
+
accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
|
|
2379
|
+
note?: string | undefined;
|
|
2380
|
+
}>>;
|
|
2381
|
+
/** The capture window resolved to dates when the session started. */
|
|
2382
|
+
captureWindow: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2383
|
+
start: z.ZodDate;
|
|
2384
|
+
end: z.ZodDate;
|
|
2385
|
+
}, "strip", z.ZodTypeAny, {
|
|
2386
|
+
start: Date;
|
|
2387
|
+
end: Date;
|
|
2388
|
+
}, {
|
|
2389
|
+
start: Date;
|
|
2390
|
+
end: Date;
|
|
2391
|
+
}>, {
|
|
2392
|
+
start: Date;
|
|
2393
|
+
end: Date;
|
|
2394
|
+
}, {
|
|
2395
|
+
start: Date;
|
|
2396
|
+
end: Date;
|
|
2397
|
+
}>>;
|
|
1507
2398
|
}, "strip", z.ZodTypeAny, {
|
|
1508
2399
|
status: "active" | "paused" | "ended";
|
|
2400
|
+
mode: "monitor" | "discovery";
|
|
1509
2401
|
taskId: string;
|
|
1510
2402
|
endedAt: Date | null;
|
|
1511
2403
|
assignmentId: string;
|
|
1512
2404
|
id: string;
|
|
1513
|
-
mode: "monitor" | "discovery";
|
|
1514
2405
|
startedAt: Date;
|
|
1515
2406
|
activeMinutes: number;
|
|
1516
2407
|
lastSeq: number;
|
|
@@ -1529,13 +2420,24 @@ declare const AgentSessionResponseSchema: z.ZodObject<{
|
|
|
1529
2420
|
};
|
|
1530
2421
|
missionTitle: string;
|
|
1531
2422
|
taskTitle: string;
|
|
2423
|
+
target?: {
|
|
2424
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
2425
|
+
url: string;
|
|
2426
|
+
label?: string | undefined;
|
|
2427
|
+
accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
|
|
2428
|
+
note?: string | undefined;
|
|
2429
|
+
} | undefined;
|
|
2430
|
+
captureWindow?: {
|
|
2431
|
+
start: Date;
|
|
2432
|
+
end: Date;
|
|
2433
|
+
} | undefined;
|
|
1532
2434
|
}, {
|
|
1533
2435
|
status: "active" | "paused" | "ended";
|
|
2436
|
+
mode: "monitor" | "discovery";
|
|
1534
2437
|
taskId: string;
|
|
1535
2438
|
endedAt: Date | null;
|
|
1536
2439
|
assignmentId: string;
|
|
1537
2440
|
id: string;
|
|
1538
|
-
mode: "monitor" | "discovery";
|
|
1539
2441
|
startedAt: Date;
|
|
1540
2442
|
activeMinutes: number;
|
|
1541
2443
|
lastSeq: number;
|
|
@@ -1554,15 +2456,26 @@ declare const AgentSessionResponseSchema: z.ZodObject<{
|
|
|
1554
2456
|
};
|
|
1555
2457
|
missionTitle: string;
|
|
1556
2458
|
taskTitle: string;
|
|
2459
|
+
target?: {
|
|
2460
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
2461
|
+
url: string;
|
|
2462
|
+
label?: string | undefined;
|
|
2463
|
+
accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
|
|
2464
|
+
note?: string | undefined;
|
|
2465
|
+
} | undefined;
|
|
2466
|
+
captureWindow?: {
|
|
2467
|
+
start: Date;
|
|
2468
|
+
end: Date;
|
|
2469
|
+
} | undefined;
|
|
1557
2470
|
}>;
|
|
1558
2471
|
}, "strip", z.ZodTypeAny, {
|
|
1559
2472
|
session: {
|
|
1560
2473
|
status: "active" | "paused" | "ended";
|
|
2474
|
+
mode: "monitor" | "discovery";
|
|
1561
2475
|
taskId: string;
|
|
1562
2476
|
endedAt: Date | null;
|
|
1563
2477
|
assignmentId: string;
|
|
1564
2478
|
id: string;
|
|
1565
|
-
mode: "monitor" | "discovery";
|
|
1566
2479
|
startedAt: Date;
|
|
1567
2480
|
activeMinutes: number;
|
|
1568
2481
|
lastSeq: number;
|
|
@@ -1581,15 +2494,26 @@ declare const AgentSessionResponseSchema: z.ZodObject<{
|
|
|
1581
2494
|
};
|
|
1582
2495
|
missionTitle: string;
|
|
1583
2496
|
taskTitle: string;
|
|
2497
|
+
target?: {
|
|
2498
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
2499
|
+
url: string;
|
|
2500
|
+
label?: string | undefined;
|
|
2501
|
+
accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
|
|
2502
|
+
note?: string | undefined;
|
|
2503
|
+
} | undefined;
|
|
2504
|
+
captureWindow?: {
|
|
2505
|
+
start: Date;
|
|
2506
|
+
end: Date;
|
|
2507
|
+
} | undefined;
|
|
1584
2508
|
};
|
|
1585
2509
|
}, {
|
|
1586
2510
|
session: {
|
|
1587
2511
|
status: "active" | "paused" | "ended";
|
|
2512
|
+
mode: "monitor" | "discovery";
|
|
1588
2513
|
taskId: string;
|
|
1589
2514
|
endedAt: Date | null;
|
|
1590
2515
|
assignmentId: string;
|
|
1591
2516
|
id: string;
|
|
1592
|
-
mode: "monitor" | "discovery";
|
|
1593
2517
|
startedAt: Date;
|
|
1594
2518
|
activeMinutes: number;
|
|
1595
2519
|
lastSeq: number;
|
|
@@ -1608,6 +2532,17 @@ declare const AgentSessionResponseSchema: z.ZodObject<{
|
|
|
1608
2532
|
};
|
|
1609
2533
|
missionTitle: string;
|
|
1610
2534
|
taskTitle: string;
|
|
2535
|
+
target?: {
|
|
2536
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
2537
|
+
url: string;
|
|
2538
|
+
label?: string | undefined;
|
|
2539
|
+
accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
|
|
2540
|
+
note?: string | undefined;
|
|
2541
|
+
} | undefined;
|
|
2542
|
+
captureWindow?: {
|
|
2543
|
+
start: Date;
|
|
2544
|
+
end: Date;
|
|
2545
|
+
} | undefined;
|
|
1611
2546
|
};
|
|
1612
2547
|
}>;
|
|
1613
2548
|
type AgentSessionResponse = z.infer<typeof AgentSessionResponseSchema>;
|
|
@@ -1662,13 +2597,51 @@ declare const AgentActiveSessionResponseSchema: z.ZodObject<{
|
|
|
1662
2597
|
sourcesVisited?: number | undefined;
|
|
1663
2598
|
sourcesRemaining?: number | undefined;
|
|
1664
2599
|
}>;
|
|
2600
|
+
/** The task's source (no internal id), when it has one. */
|
|
2601
|
+
target: z.ZodOptional<z.ZodObject<Omit<{
|
|
2602
|
+
sourceId: z.ZodOptional<z.ZodString>;
|
|
2603
|
+
platform: z.ZodEnum<["telegram", "facebook", "x", "tiktok", "instagram", "youtube", "whatsapp", "reddit", "discord", "linkedin", "threads", "vk", "snapchat", "web"]>;
|
|
2604
|
+
url: z.ZodEffects<z.ZodString, string, string>;
|
|
2605
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2606
|
+
accessIssue: z.ZodOptional<z.ZodEnum<["login_required", "private", "bot_detection", "captcha", "geo_blocked", "rate_limited", "not_found", "no_collector", "collector_full", "other"]>>;
|
|
2607
|
+
note: z.ZodOptional<z.ZodString>;
|
|
2608
|
+
}, "sourceId">, "strip", z.ZodTypeAny, {
|
|
2609
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
2610
|
+
url: string;
|
|
2611
|
+
label?: string | undefined;
|
|
2612
|
+
accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
|
|
2613
|
+
note?: string | undefined;
|
|
2614
|
+
}, {
|
|
2615
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
2616
|
+
url: string;
|
|
2617
|
+
label?: string | undefined;
|
|
2618
|
+
accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
|
|
2619
|
+
note?: string | undefined;
|
|
2620
|
+
}>>;
|
|
2621
|
+
/** The capture window resolved to dates when the session started. */
|
|
2622
|
+
captureWindow: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2623
|
+
start: z.ZodDate;
|
|
2624
|
+
end: z.ZodDate;
|
|
2625
|
+
}, "strip", z.ZodTypeAny, {
|
|
2626
|
+
start: Date;
|
|
2627
|
+
end: Date;
|
|
2628
|
+
}, {
|
|
2629
|
+
start: Date;
|
|
2630
|
+
end: Date;
|
|
2631
|
+
}>, {
|
|
2632
|
+
start: Date;
|
|
2633
|
+
end: Date;
|
|
2634
|
+
}, {
|
|
2635
|
+
start: Date;
|
|
2636
|
+
end: Date;
|
|
2637
|
+
}>>;
|
|
1665
2638
|
}, "strip", z.ZodTypeAny, {
|
|
1666
2639
|
status: "active" | "paused" | "ended";
|
|
2640
|
+
mode: "monitor" | "discovery";
|
|
1667
2641
|
taskId: string;
|
|
1668
2642
|
endedAt: Date | null;
|
|
1669
2643
|
assignmentId: string;
|
|
1670
2644
|
id: string;
|
|
1671
|
-
mode: "monitor" | "discovery";
|
|
1672
2645
|
startedAt: Date;
|
|
1673
2646
|
activeMinutes: number;
|
|
1674
2647
|
lastSeq: number;
|
|
@@ -1687,13 +2660,24 @@ declare const AgentActiveSessionResponseSchema: z.ZodObject<{
|
|
|
1687
2660
|
};
|
|
1688
2661
|
missionTitle: string;
|
|
1689
2662
|
taskTitle: string;
|
|
2663
|
+
target?: {
|
|
2664
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
2665
|
+
url: string;
|
|
2666
|
+
label?: string | undefined;
|
|
2667
|
+
accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
|
|
2668
|
+
note?: string | undefined;
|
|
2669
|
+
} | undefined;
|
|
2670
|
+
captureWindow?: {
|
|
2671
|
+
start: Date;
|
|
2672
|
+
end: Date;
|
|
2673
|
+
} | undefined;
|
|
1690
2674
|
}, {
|
|
1691
2675
|
status: "active" | "paused" | "ended";
|
|
2676
|
+
mode: "monitor" | "discovery";
|
|
1692
2677
|
taskId: string;
|
|
1693
2678
|
endedAt: Date | null;
|
|
1694
2679
|
assignmentId: string;
|
|
1695
2680
|
id: string;
|
|
1696
|
-
mode: "monitor" | "discovery";
|
|
1697
2681
|
startedAt: Date;
|
|
1698
2682
|
activeMinutes: number;
|
|
1699
2683
|
lastSeq: number;
|
|
@@ -1712,15 +2696,26 @@ declare const AgentActiveSessionResponseSchema: z.ZodObject<{
|
|
|
1712
2696
|
};
|
|
1713
2697
|
missionTitle: string;
|
|
1714
2698
|
taskTitle: string;
|
|
2699
|
+
target?: {
|
|
2700
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
2701
|
+
url: string;
|
|
2702
|
+
label?: string | undefined;
|
|
2703
|
+
accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
|
|
2704
|
+
note?: string | undefined;
|
|
2705
|
+
} | undefined;
|
|
2706
|
+
captureWindow?: {
|
|
2707
|
+
start: Date;
|
|
2708
|
+
end: Date;
|
|
2709
|
+
} | undefined;
|
|
1715
2710
|
}>>;
|
|
1716
2711
|
}, "strip", z.ZodTypeAny, {
|
|
1717
2712
|
session: {
|
|
1718
2713
|
status: "active" | "paused" | "ended";
|
|
2714
|
+
mode: "monitor" | "discovery";
|
|
1719
2715
|
taskId: string;
|
|
1720
2716
|
endedAt: Date | null;
|
|
1721
2717
|
assignmentId: string;
|
|
1722
2718
|
id: string;
|
|
1723
|
-
mode: "monitor" | "discovery";
|
|
1724
2719
|
startedAt: Date;
|
|
1725
2720
|
activeMinutes: number;
|
|
1726
2721
|
lastSeq: number;
|
|
@@ -1739,15 +2734,26 @@ declare const AgentActiveSessionResponseSchema: z.ZodObject<{
|
|
|
1739
2734
|
};
|
|
1740
2735
|
missionTitle: string;
|
|
1741
2736
|
taskTitle: string;
|
|
2737
|
+
target?: {
|
|
2738
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
2739
|
+
url: string;
|
|
2740
|
+
label?: string | undefined;
|
|
2741
|
+
accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
|
|
2742
|
+
note?: string | undefined;
|
|
2743
|
+
} | undefined;
|
|
2744
|
+
captureWindow?: {
|
|
2745
|
+
start: Date;
|
|
2746
|
+
end: Date;
|
|
2747
|
+
} | undefined;
|
|
1742
2748
|
} | null;
|
|
1743
2749
|
}, {
|
|
1744
2750
|
session: {
|
|
1745
2751
|
status: "active" | "paused" | "ended";
|
|
2752
|
+
mode: "monitor" | "discovery";
|
|
1746
2753
|
taskId: string;
|
|
1747
2754
|
endedAt: Date | null;
|
|
1748
2755
|
assignmentId: string;
|
|
1749
2756
|
id: string;
|
|
1750
|
-
mode: "monitor" | "discovery";
|
|
1751
2757
|
startedAt: Date;
|
|
1752
2758
|
activeMinutes: number;
|
|
1753
2759
|
lastSeq: number;
|
|
@@ -1766,6 +2772,17 @@ declare const AgentActiveSessionResponseSchema: z.ZodObject<{
|
|
|
1766
2772
|
};
|
|
1767
2773
|
missionTitle: string;
|
|
1768
2774
|
taskTitle: string;
|
|
2775
|
+
target?: {
|
|
2776
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
2777
|
+
url: string;
|
|
2778
|
+
label?: string | undefined;
|
|
2779
|
+
accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
|
|
2780
|
+
note?: string | undefined;
|
|
2781
|
+
} | undefined;
|
|
2782
|
+
captureWindow?: {
|
|
2783
|
+
start: Date;
|
|
2784
|
+
end: Date;
|
|
2785
|
+
} | undefined;
|
|
1769
2786
|
} | null;
|
|
1770
2787
|
}>;
|
|
1771
2788
|
type AgentActiveSessionResponse = z.infer<typeof AgentActiveSessionResponseSchema>;
|
|
@@ -1794,14 +2811,14 @@ declare const AgentMessagesResponseSchema: z.ZodObject<{
|
|
|
1794
2811
|
label: z.ZodString;
|
|
1795
2812
|
platform: z.ZodOptional<z.ZodEnum<["telegram", "facebook", "x", "tiktok", "instagram", "youtube", "whatsapp", "reddit", "discord", "linkedin", "threads", "vk", "snapchat", "web"]>>;
|
|
1796
2813
|
}, "strip", z.ZodTypeAny, {
|
|
1797
|
-
kind: "open_link";
|
|
1798
2814
|
url: string;
|
|
1799
2815
|
label: string;
|
|
2816
|
+
kind: "open_link";
|
|
1800
2817
|
platform?: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web" | undefined;
|
|
1801
2818
|
}, {
|
|
1802
|
-
kind: "open_link";
|
|
1803
2819
|
url: string;
|
|
1804
2820
|
label: string;
|
|
2821
|
+
kind: "open_link";
|
|
1805
2822
|
platform?: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web" | undefined;
|
|
1806
2823
|
}>, z.ZodObject<{
|
|
1807
2824
|
kind: z.ZodLiteral<"capture_prompt">;
|
|
@@ -1822,20 +2839,20 @@ declare const AgentMessagesResponseSchema: z.ZodObject<{
|
|
|
1822
2839
|
score: z.ZodOptional<z.ZodNumber>;
|
|
1823
2840
|
}, "strip", z.ZodTypeAny, {
|
|
1824
2841
|
name: string;
|
|
1825
|
-
kind: "source_result";
|
|
1826
2842
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
2843
|
+
kind: "source_result";
|
|
1827
2844
|
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
1828
2845
|
reason: string;
|
|
1829
|
-
score?: number | undefined;
|
|
1830
2846
|
url?: string | undefined;
|
|
2847
|
+
score?: number | undefined;
|
|
1831
2848
|
}, {
|
|
1832
2849
|
name: string;
|
|
1833
|
-
kind: "source_result";
|
|
1834
2850
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
2851
|
+
kind: "source_result";
|
|
1835
2852
|
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
1836
2853
|
reason: string;
|
|
1837
|
-
score?: number | undefined;
|
|
1838
2854
|
url?: string | undefined;
|
|
2855
|
+
score?: number | undefined;
|
|
1839
2856
|
}>, z.ZodObject<{
|
|
1840
2857
|
kind: z.ZodLiteral<"item_result">;
|
|
1841
2858
|
excerpt: z.ZodString;
|
|
@@ -1843,15 +2860,15 @@ declare const AgentMessagesResponseSchema: z.ZodObject<{
|
|
|
1843
2860
|
priority: z.ZodBoolean;
|
|
1844
2861
|
publishedAt: z.ZodOptional<z.ZodDate>;
|
|
1845
2862
|
}, "strip", z.ZodTypeAny, {
|
|
2863
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
1846
2864
|
priority: boolean;
|
|
1847
2865
|
kind: "item_result";
|
|
1848
|
-
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
1849
2866
|
excerpt: string;
|
|
1850
2867
|
publishedAt?: Date | undefined;
|
|
1851
2868
|
}, {
|
|
2869
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
1852
2870
|
priority: boolean;
|
|
1853
2871
|
kind: "item_result";
|
|
1854
|
-
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
1855
2872
|
excerpt: string;
|
|
1856
2873
|
publishedAt?: Date | undefined;
|
|
1857
2874
|
}>, z.ZodObject<{
|
|
@@ -1861,23 +2878,23 @@ declare const AgentMessagesResponseSchema: z.ZodObject<{
|
|
|
1861
2878
|
id: z.ZodString;
|
|
1862
2879
|
label: z.ZodString;
|
|
1863
2880
|
}, "strip", z.ZodTypeAny, {
|
|
1864
|
-
id: string;
|
|
1865
2881
|
label: string;
|
|
1866
|
-
}, {
|
|
1867
2882
|
id: string;
|
|
2883
|
+
}, {
|
|
1868
2884
|
label: string;
|
|
2885
|
+
id: string;
|
|
1869
2886
|
}>, "many">;
|
|
1870
2887
|
}, "strip", z.ZodTypeAny, {
|
|
1871
2888
|
options: {
|
|
1872
|
-
id: string;
|
|
1873
2889
|
label: string;
|
|
2890
|
+
id: string;
|
|
1874
2891
|
}[];
|
|
1875
2892
|
kind: "quick_replies";
|
|
1876
2893
|
questionId: string;
|
|
1877
2894
|
}, {
|
|
1878
2895
|
options: {
|
|
1879
|
-
id: string;
|
|
1880
2896
|
label: string;
|
|
2897
|
+
id: string;
|
|
1881
2898
|
}[];
|
|
1882
2899
|
kind: "quick_replies";
|
|
1883
2900
|
questionId: string;
|
|
@@ -1886,13 +2903,13 @@ declare const AgentMessagesResponseSchema: z.ZodObject<{
|
|
|
1886
2903
|
minutes: z.ZodNumber;
|
|
1887
2904
|
note: z.ZodString;
|
|
1888
2905
|
}, "strip", z.ZodTypeAny, {
|
|
2906
|
+
note: string;
|
|
1889
2907
|
kind: "hours_proposal";
|
|
1890
2908
|
minutes: number;
|
|
1891
|
-
note: string;
|
|
1892
2909
|
}, {
|
|
2910
|
+
note: string;
|
|
1893
2911
|
kind: "hours_proposal";
|
|
1894
2912
|
minutes: number;
|
|
1895
|
-
note: string;
|
|
1896
2913
|
}>, z.ZodObject<{
|
|
1897
2914
|
kind: z.ZodLiteral<"capture_thumb">;
|
|
1898
2915
|
captureId: z.ZodString;
|
|
@@ -1912,38 +2929,38 @@ declare const AgentMessagesResponseSchema: z.ZodObject<{
|
|
|
1912
2929
|
seq: number;
|
|
1913
2930
|
role: "system" | "agent" | "person";
|
|
1914
2931
|
cards: ({
|
|
1915
|
-
kind: "open_link";
|
|
1916
2932
|
url: string;
|
|
1917
2933
|
label: string;
|
|
2934
|
+
kind: "open_link";
|
|
1918
2935
|
platform?: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web" | undefined;
|
|
1919
2936
|
} | {
|
|
1920
2937
|
kind: "capture_prompt";
|
|
1921
2938
|
hint: string;
|
|
1922
2939
|
} | {
|
|
1923
2940
|
name: string;
|
|
1924
|
-
kind: "source_result";
|
|
1925
2941
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
2942
|
+
kind: "source_result";
|
|
1926
2943
|
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
1927
2944
|
reason: string;
|
|
1928
|
-
score?: number | undefined;
|
|
1929
2945
|
url?: string | undefined;
|
|
2946
|
+
score?: number | undefined;
|
|
1930
2947
|
} | {
|
|
2948
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
1931
2949
|
priority: boolean;
|
|
1932
2950
|
kind: "item_result";
|
|
1933
|
-
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
1934
2951
|
excerpt: string;
|
|
1935
2952
|
publishedAt?: Date | undefined;
|
|
1936
2953
|
} | {
|
|
1937
2954
|
options: {
|
|
1938
|
-
id: string;
|
|
1939
2955
|
label: string;
|
|
2956
|
+
id: string;
|
|
1940
2957
|
}[];
|
|
1941
2958
|
kind: "quick_replies";
|
|
1942
2959
|
questionId: string;
|
|
1943
2960
|
} | {
|
|
2961
|
+
note: string;
|
|
1944
2962
|
kind: "hours_proposal";
|
|
1945
2963
|
minutes: number;
|
|
1946
|
-
note: string;
|
|
1947
2964
|
} | {
|
|
1948
2965
|
kind: "capture_thumb";
|
|
1949
2966
|
captureId: string;
|
|
@@ -1956,38 +2973,38 @@ declare const AgentMessagesResponseSchema: z.ZodObject<{
|
|
|
1956
2973
|
seq: number;
|
|
1957
2974
|
role: "system" | "agent" | "person";
|
|
1958
2975
|
cards: ({
|
|
1959
|
-
kind: "open_link";
|
|
1960
2976
|
url: string;
|
|
1961
2977
|
label: string;
|
|
2978
|
+
kind: "open_link";
|
|
1962
2979
|
platform?: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web" | undefined;
|
|
1963
2980
|
} | {
|
|
1964
2981
|
kind: "capture_prompt";
|
|
1965
2982
|
hint: string;
|
|
1966
2983
|
} | {
|
|
1967
2984
|
name: string;
|
|
1968
|
-
kind: "source_result";
|
|
1969
2985
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
2986
|
+
kind: "source_result";
|
|
1970
2987
|
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
1971
2988
|
reason: string;
|
|
1972
|
-
score?: number | undefined;
|
|
1973
2989
|
url?: string | undefined;
|
|
2990
|
+
score?: number | undefined;
|
|
1974
2991
|
} | {
|
|
2992
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
1975
2993
|
priority: boolean;
|
|
1976
2994
|
kind: "item_result";
|
|
1977
|
-
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
1978
2995
|
excerpt: string;
|
|
1979
2996
|
publishedAt?: Date | undefined;
|
|
1980
2997
|
} | {
|
|
1981
2998
|
options: {
|
|
1982
|
-
id: string;
|
|
1983
2999
|
label: string;
|
|
3000
|
+
id: string;
|
|
1984
3001
|
}[];
|
|
1985
3002
|
kind: "quick_replies";
|
|
1986
3003
|
questionId: string;
|
|
1987
3004
|
} | {
|
|
3005
|
+
note: string;
|
|
1988
3006
|
kind: "hours_proposal";
|
|
1989
3007
|
minutes: number;
|
|
1990
|
-
note: string;
|
|
1991
3008
|
} | {
|
|
1992
3009
|
kind: "capture_thumb";
|
|
1993
3010
|
captureId: string;
|
|
@@ -2002,38 +3019,38 @@ declare const AgentMessagesResponseSchema: z.ZodObject<{
|
|
|
2002
3019
|
seq: number;
|
|
2003
3020
|
role: "system" | "agent" | "person";
|
|
2004
3021
|
cards: ({
|
|
2005
|
-
kind: "open_link";
|
|
2006
3022
|
url: string;
|
|
2007
3023
|
label: string;
|
|
3024
|
+
kind: "open_link";
|
|
2008
3025
|
platform?: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web" | undefined;
|
|
2009
3026
|
} | {
|
|
2010
3027
|
kind: "capture_prompt";
|
|
2011
3028
|
hint: string;
|
|
2012
3029
|
} | {
|
|
2013
3030
|
name: string;
|
|
2014
|
-
kind: "source_result";
|
|
2015
3031
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
3032
|
+
kind: "source_result";
|
|
2016
3033
|
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
2017
3034
|
reason: string;
|
|
2018
|
-
score?: number | undefined;
|
|
2019
3035
|
url?: string | undefined;
|
|
3036
|
+
score?: number | undefined;
|
|
2020
3037
|
} | {
|
|
3038
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
2021
3039
|
priority: boolean;
|
|
2022
3040
|
kind: "item_result";
|
|
2023
|
-
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
2024
3041
|
excerpt: string;
|
|
2025
3042
|
publishedAt?: Date | undefined;
|
|
2026
3043
|
} | {
|
|
2027
3044
|
options: {
|
|
2028
|
-
id: string;
|
|
2029
3045
|
label: string;
|
|
3046
|
+
id: string;
|
|
2030
3047
|
}[];
|
|
2031
3048
|
kind: "quick_replies";
|
|
2032
3049
|
questionId: string;
|
|
2033
3050
|
} | {
|
|
3051
|
+
note: string;
|
|
2034
3052
|
kind: "hours_proposal";
|
|
2035
3053
|
minutes: number;
|
|
2036
|
-
note: string;
|
|
2037
3054
|
} | {
|
|
2038
3055
|
kind: "capture_thumb";
|
|
2039
3056
|
captureId: string;
|
|
@@ -2048,38 +3065,38 @@ declare const AgentMessagesResponseSchema: z.ZodObject<{
|
|
|
2048
3065
|
seq: number;
|
|
2049
3066
|
role: "system" | "agent" | "person";
|
|
2050
3067
|
cards: ({
|
|
2051
|
-
kind: "open_link";
|
|
2052
3068
|
url: string;
|
|
2053
3069
|
label: string;
|
|
3070
|
+
kind: "open_link";
|
|
2054
3071
|
platform?: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web" | undefined;
|
|
2055
3072
|
} | {
|
|
2056
3073
|
kind: "capture_prompt";
|
|
2057
3074
|
hint: string;
|
|
2058
3075
|
} | {
|
|
2059
3076
|
name: string;
|
|
2060
|
-
kind: "source_result";
|
|
2061
3077
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
3078
|
+
kind: "source_result";
|
|
2062
3079
|
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
2063
3080
|
reason: string;
|
|
2064
|
-
score?: number | undefined;
|
|
2065
3081
|
url?: string | undefined;
|
|
3082
|
+
score?: number | undefined;
|
|
2066
3083
|
} | {
|
|
3084
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
2067
3085
|
priority: boolean;
|
|
2068
3086
|
kind: "item_result";
|
|
2069
|
-
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
2070
3087
|
excerpt: string;
|
|
2071
3088
|
publishedAt?: Date | undefined;
|
|
2072
3089
|
} | {
|
|
2073
3090
|
options: {
|
|
2074
|
-
id: string;
|
|
2075
3091
|
label: string;
|
|
3092
|
+
id: string;
|
|
2076
3093
|
}[];
|
|
2077
3094
|
kind: "quick_replies";
|
|
2078
3095
|
questionId: string;
|
|
2079
3096
|
} | {
|
|
3097
|
+
note: string;
|
|
2080
3098
|
kind: "hours_proposal";
|
|
2081
3099
|
minutes: number;
|
|
2082
|
-
note: string;
|
|
2083
3100
|
} | {
|
|
2084
3101
|
kind: "capture_thumb";
|
|
2085
3102
|
captureId: string;
|
|
@@ -2122,12 +3139,12 @@ declare const AgentReplyBodySchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject
|
|
|
2122
3139
|
note: z.ZodString;
|
|
2123
3140
|
}, "strip", z.ZodTypeAny, {
|
|
2124
3141
|
type: "confirm_hours";
|
|
2125
|
-
minutes: number;
|
|
2126
3142
|
note: string;
|
|
3143
|
+
minutes: number;
|
|
2127
3144
|
}, {
|
|
2128
3145
|
type: "confirm_hours";
|
|
2129
|
-
minutes: number;
|
|
2130
3146
|
note: string;
|
|
3147
|
+
minutes: number;
|
|
2131
3148
|
}>, z.ZodObject<{
|
|
2132
3149
|
type: z.ZodLiteral<"decline_hours">;
|
|
2133
3150
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2171,8 +3188,8 @@ declare const AgentCaptureFieldsSchema: z.ZodObject<{
|
|
|
2171
3188
|
dpr: number;
|
|
2172
3189
|
}>>;
|
|
2173
3190
|
}, "strip", z.ZodTypeAny, {
|
|
2174
|
-
title: string;
|
|
2175
3191
|
url: string;
|
|
3192
|
+
title: string;
|
|
2176
3193
|
capturedAt: Date;
|
|
2177
3194
|
region?: {
|
|
2178
3195
|
x: number;
|
|
@@ -2184,8 +3201,8 @@ declare const AgentCaptureFieldsSchema: z.ZodObject<{
|
|
|
2184
3201
|
dpr: number;
|
|
2185
3202
|
} | undefined;
|
|
2186
3203
|
}, {
|
|
2187
|
-
title: string;
|
|
2188
3204
|
url: string;
|
|
3205
|
+
title: string;
|
|
2189
3206
|
capturedAt: Date;
|
|
2190
3207
|
region?: {
|
|
2191
3208
|
x: number;
|
|
@@ -2228,14 +3245,14 @@ declare const AgentStreamEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
2228
3245
|
label: z.ZodString;
|
|
2229
3246
|
platform: z.ZodOptional<z.ZodEnum<["telegram", "facebook", "x", "tiktok", "instagram", "youtube", "whatsapp", "reddit", "discord", "linkedin", "threads", "vk", "snapchat", "web"]>>;
|
|
2230
3247
|
}, "strip", z.ZodTypeAny, {
|
|
2231
|
-
kind: "open_link";
|
|
2232
3248
|
url: string;
|
|
2233
3249
|
label: string;
|
|
3250
|
+
kind: "open_link";
|
|
2234
3251
|
platform?: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web" | undefined;
|
|
2235
3252
|
}, {
|
|
2236
|
-
kind: "open_link";
|
|
2237
3253
|
url: string;
|
|
2238
3254
|
label: string;
|
|
3255
|
+
kind: "open_link";
|
|
2239
3256
|
platform?: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web" | undefined;
|
|
2240
3257
|
}>, z.ZodObject<{
|
|
2241
3258
|
kind: z.ZodLiteral<"capture_prompt">;
|
|
@@ -2256,20 +3273,20 @@ declare const AgentStreamEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
2256
3273
|
score: z.ZodOptional<z.ZodNumber>;
|
|
2257
3274
|
}, "strip", z.ZodTypeAny, {
|
|
2258
3275
|
name: string;
|
|
2259
|
-
kind: "source_result";
|
|
2260
3276
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
3277
|
+
kind: "source_result";
|
|
2261
3278
|
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
2262
3279
|
reason: string;
|
|
2263
|
-
score?: number | undefined;
|
|
2264
3280
|
url?: string | undefined;
|
|
3281
|
+
score?: number | undefined;
|
|
2265
3282
|
}, {
|
|
2266
3283
|
name: string;
|
|
2267
|
-
kind: "source_result";
|
|
2268
3284
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
3285
|
+
kind: "source_result";
|
|
2269
3286
|
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
2270
3287
|
reason: string;
|
|
2271
|
-
score?: number | undefined;
|
|
2272
3288
|
url?: string | undefined;
|
|
3289
|
+
score?: number | undefined;
|
|
2273
3290
|
}>, z.ZodObject<{
|
|
2274
3291
|
kind: z.ZodLiteral<"item_result">;
|
|
2275
3292
|
excerpt: z.ZodString;
|
|
@@ -2277,15 +3294,15 @@ declare const AgentStreamEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
2277
3294
|
priority: z.ZodBoolean;
|
|
2278
3295
|
publishedAt: z.ZodOptional<z.ZodDate>;
|
|
2279
3296
|
}, "strip", z.ZodTypeAny, {
|
|
3297
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
2280
3298
|
priority: boolean;
|
|
2281
3299
|
kind: "item_result";
|
|
2282
|
-
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
2283
3300
|
excerpt: string;
|
|
2284
3301
|
publishedAt?: Date | undefined;
|
|
2285
3302
|
}, {
|
|
3303
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
2286
3304
|
priority: boolean;
|
|
2287
3305
|
kind: "item_result";
|
|
2288
|
-
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
2289
3306
|
excerpt: string;
|
|
2290
3307
|
publishedAt?: Date | undefined;
|
|
2291
3308
|
}>, z.ZodObject<{
|
|
@@ -2295,23 +3312,23 @@ declare const AgentStreamEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
2295
3312
|
id: z.ZodString;
|
|
2296
3313
|
label: z.ZodString;
|
|
2297
3314
|
}, "strip", z.ZodTypeAny, {
|
|
2298
|
-
id: string;
|
|
2299
3315
|
label: string;
|
|
2300
|
-
}, {
|
|
2301
3316
|
id: string;
|
|
3317
|
+
}, {
|
|
2302
3318
|
label: string;
|
|
3319
|
+
id: string;
|
|
2303
3320
|
}>, "many">;
|
|
2304
3321
|
}, "strip", z.ZodTypeAny, {
|
|
2305
3322
|
options: {
|
|
2306
|
-
id: string;
|
|
2307
3323
|
label: string;
|
|
3324
|
+
id: string;
|
|
2308
3325
|
}[];
|
|
2309
3326
|
kind: "quick_replies";
|
|
2310
3327
|
questionId: string;
|
|
2311
3328
|
}, {
|
|
2312
3329
|
options: {
|
|
2313
|
-
id: string;
|
|
2314
3330
|
label: string;
|
|
3331
|
+
id: string;
|
|
2315
3332
|
}[];
|
|
2316
3333
|
kind: "quick_replies";
|
|
2317
3334
|
questionId: string;
|
|
@@ -2320,13 +3337,13 @@ declare const AgentStreamEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
2320
3337
|
minutes: z.ZodNumber;
|
|
2321
3338
|
note: z.ZodString;
|
|
2322
3339
|
}, "strip", z.ZodTypeAny, {
|
|
3340
|
+
note: string;
|
|
2323
3341
|
kind: "hours_proposal";
|
|
2324
3342
|
minutes: number;
|
|
2325
|
-
note: string;
|
|
2326
3343
|
}, {
|
|
3344
|
+
note: string;
|
|
2327
3345
|
kind: "hours_proposal";
|
|
2328
3346
|
minutes: number;
|
|
2329
|
-
note: string;
|
|
2330
3347
|
}>, z.ZodObject<{
|
|
2331
3348
|
kind: z.ZodLiteral<"capture_thumb">;
|
|
2332
3349
|
captureId: z.ZodString;
|
|
@@ -2346,38 +3363,38 @@ declare const AgentStreamEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
2346
3363
|
seq: number;
|
|
2347
3364
|
role: "system" | "agent" | "person";
|
|
2348
3365
|
cards: ({
|
|
2349
|
-
kind: "open_link";
|
|
2350
3366
|
url: string;
|
|
2351
3367
|
label: string;
|
|
3368
|
+
kind: "open_link";
|
|
2352
3369
|
platform?: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web" | undefined;
|
|
2353
3370
|
} | {
|
|
2354
3371
|
kind: "capture_prompt";
|
|
2355
3372
|
hint: string;
|
|
2356
3373
|
} | {
|
|
2357
3374
|
name: string;
|
|
2358
|
-
kind: "source_result";
|
|
2359
3375
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
3376
|
+
kind: "source_result";
|
|
2360
3377
|
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
2361
3378
|
reason: string;
|
|
2362
|
-
score?: number | undefined;
|
|
2363
3379
|
url?: string | undefined;
|
|
3380
|
+
score?: number | undefined;
|
|
2364
3381
|
} | {
|
|
3382
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
2365
3383
|
priority: boolean;
|
|
2366
3384
|
kind: "item_result";
|
|
2367
|
-
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
2368
3385
|
excerpt: string;
|
|
2369
3386
|
publishedAt?: Date | undefined;
|
|
2370
3387
|
} | {
|
|
2371
3388
|
options: {
|
|
2372
|
-
id: string;
|
|
2373
3389
|
label: string;
|
|
3390
|
+
id: string;
|
|
2374
3391
|
}[];
|
|
2375
3392
|
kind: "quick_replies";
|
|
2376
3393
|
questionId: string;
|
|
2377
3394
|
} | {
|
|
3395
|
+
note: string;
|
|
2378
3396
|
kind: "hours_proposal";
|
|
2379
3397
|
minutes: number;
|
|
2380
|
-
note: string;
|
|
2381
3398
|
} | {
|
|
2382
3399
|
kind: "capture_thumb";
|
|
2383
3400
|
captureId: string;
|
|
@@ -2390,38 +3407,38 @@ declare const AgentStreamEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
2390
3407
|
seq: number;
|
|
2391
3408
|
role: "system" | "agent" | "person";
|
|
2392
3409
|
cards: ({
|
|
2393
|
-
kind: "open_link";
|
|
2394
3410
|
url: string;
|
|
2395
3411
|
label: string;
|
|
3412
|
+
kind: "open_link";
|
|
2396
3413
|
platform?: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web" | undefined;
|
|
2397
3414
|
} | {
|
|
2398
3415
|
kind: "capture_prompt";
|
|
2399
3416
|
hint: string;
|
|
2400
3417
|
} | {
|
|
2401
3418
|
name: string;
|
|
2402
|
-
kind: "source_result";
|
|
2403
3419
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
3420
|
+
kind: "source_result";
|
|
2404
3421
|
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
2405
3422
|
reason: string;
|
|
2406
|
-
score?: number | undefined;
|
|
2407
3423
|
url?: string | undefined;
|
|
3424
|
+
score?: number | undefined;
|
|
2408
3425
|
} | {
|
|
3426
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
2409
3427
|
priority: boolean;
|
|
2410
3428
|
kind: "item_result";
|
|
2411
|
-
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
2412
3429
|
excerpt: string;
|
|
2413
3430
|
publishedAt?: Date | undefined;
|
|
2414
3431
|
} | {
|
|
2415
3432
|
options: {
|
|
2416
|
-
id: string;
|
|
2417
3433
|
label: string;
|
|
3434
|
+
id: string;
|
|
2418
3435
|
}[];
|
|
2419
3436
|
kind: "quick_replies";
|
|
2420
3437
|
questionId: string;
|
|
2421
3438
|
} | {
|
|
3439
|
+
note: string;
|
|
2422
3440
|
kind: "hours_proposal";
|
|
2423
3441
|
minutes: number;
|
|
2424
|
-
note: string;
|
|
2425
3442
|
} | {
|
|
2426
3443
|
kind: "capture_thumb";
|
|
2427
3444
|
captureId: string;
|
|
@@ -2436,38 +3453,38 @@ declare const AgentStreamEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
2436
3453
|
seq: number;
|
|
2437
3454
|
role: "system" | "agent" | "person";
|
|
2438
3455
|
cards: ({
|
|
2439
|
-
kind: "open_link";
|
|
2440
3456
|
url: string;
|
|
2441
3457
|
label: string;
|
|
3458
|
+
kind: "open_link";
|
|
2442
3459
|
platform?: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web" | undefined;
|
|
2443
3460
|
} | {
|
|
2444
3461
|
kind: "capture_prompt";
|
|
2445
3462
|
hint: string;
|
|
2446
3463
|
} | {
|
|
2447
3464
|
name: string;
|
|
2448
|
-
kind: "source_result";
|
|
2449
3465
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
3466
|
+
kind: "source_result";
|
|
2450
3467
|
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
2451
3468
|
reason: string;
|
|
2452
|
-
score?: number | undefined;
|
|
2453
3469
|
url?: string | undefined;
|
|
3470
|
+
score?: number | undefined;
|
|
2454
3471
|
} | {
|
|
3472
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
2455
3473
|
priority: boolean;
|
|
2456
3474
|
kind: "item_result";
|
|
2457
|
-
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
2458
3475
|
excerpt: string;
|
|
2459
3476
|
publishedAt?: Date | undefined;
|
|
2460
3477
|
} | {
|
|
2461
3478
|
options: {
|
|
2462
|
-
id: string;
|
|
2463
3479
|
label: string;
|
|
3480
|
+
id: string;
|
|
2464
3481
|
}[];
|
|
2465
3482
|
kind: "quick_replies";
|
|
2466
3483
|
questionId: string;
|
|
2467
3484
|
} | {
|
|
3485
|
+
note: string;
|
|
2468
3486
|
kind: "hours_proposal";
|
|
2469
3487
|
minutes: number;
|
|
2470
|
-
note: string;
|
|
2471
3488
|
} | {
|
|
2472
3489
|
kind: "capture_thumb";
|
|
2473
3490
|
captureId: string;
|
|
@@ -2483,38 +3500,38 @@ declare const AgentStreamEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
2483
3500
|
seq: number;
|
|
2484
3501
|
role: "system" | "agent" | "person";
|
|
2485
3502
|
cards: ({
|
|
2486
|
-
kind: "open_link";
|
|
2487
3503
|
url: string;
|
|
2488
3504
|
label: string;
|
|
3505
|
+
kind: "open_link";
|
|
2489
3506
|
platform?: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web" | undefined;
|
|
2490
3507
|
} | {
|
|
2491
3508
|
kind: "capture_prompt";
|
|
2492
3509
|
hint: string;
|
|
2493
3510
|
} | {
|
|
2494
3511
|
name: string;
|
|
2495
|
-
kind: "source_result";
|
|
2496
3512
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
3513
|
+
kind: "source_result";
|
|
2497
3514
|
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
2498
3515
|
reason: string;
|
|
2499
|
-
score?: number | undefined;
|
|
2500
3516
|
url?: string | undefined;
|
|
3517
|
+
score?: number | undefined;
|
|
2501
3518
|
} | {
|
|
3519
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
2502
3520
|
priority: boolean;
|
|
2503
3521
|
kind: "item_result";
|
|
2504
|
-
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
2505
3522
|
excerpt: string;
|
|
2506
3523
|
publishedAt?: Date | undefined;
|
|
2507
3524
|
} | {
|
|
2508
3525
|
options: {
|
|
2509
|
-
id: string;
|
|
2510
3526
|
label: string;
|
|
3527
|
+
id: string;
|
|
2511
3528
|
}[];
|
|
2512
3529
|
kind: "quick_replies";
|
|
2513
3530
|
questionId: string;
|
|
2514
3531
|
} | {
|
|
3532
|
+
note: string;
|
|
2515
3533
|
kind: "hours_proposal";
|
|
2516
3534
|
minutes: number;
|
|
2517
|
-
note: string;
|
|
2518
3535
|
} | {
|
|
2519
3536
|
kind: "capture_thumb";
|
|
2520
3537
|
captureId: string;
|
|
@@ -2593,13 +3610,51 @@ declare const AgentStreamEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
2593
3610
|
sourcesVisited?: number | undefined;
|
|
2594
3611
|
sourcesRemaining?: number | undefined;
|
|
2595
3612
|
}>;
|
|
3613
|
+
/** The task's source (no internal id), when it has one. */
|
|
3614
|
+
target: z.ZodOptional<z.ZodObject<Omit<{
|
|
3615
|
+
sourceId: z.ZodOptional<z.ZodString>;
|
|
3616
|
+
platform: z.ZodEnum<["telegram", "facebook", "x", "tiktok", "instagram", "youtube", "whatsapp", "reddit", "discord", "linkedin", "threads", "vk", "snapchat", "web"]>;
|
|
3617
|
+
url: z.ZodEffects<z.ZodString, string, string>;
|
|
3618
|
+
label: z.ZodOptional<z.ZodString>;
|
|
3619
|
+
accessIssue: z.ZodOptional<z.ZodEnum<["login_required", "private", "bot_detection", "captcha", "geo_blocked", "rate_limited", "not_found", "no_collector", "collector_full", "other"]>>;
|
|
3620
|
+
note: z.ZodOptional<z.ZodString>;
|
|
3621
|
+
}, "sourceId">, "strip", z.ZodTypeAny, {
|
|
3622
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
3623
|
+
url: string;
|
|
3624
|
+
label?: string | undefined;
|
|
3625
|
+
accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
|
|
3626
|
+
note?: string | undefined;
|
|
3627
|
+
}, {
|
|
3628
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
3629
|
+
url: string;
|
|
3630
|
+
label?: string | undefined;
|
|
3631
|
+
accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
|
|
3632
|
+
note?: string | undefined;
|
|
3633
|
+
}>>;
|
|
3634
|
+
/** The capture window resolved to dates when the session started. */
|
|
3635
|
+
captureWindow: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
3636
|
+
start: z.ZodDate;
|
|
3637
|
+
end: z.ZodDate;
|
|
3638
|
+
}, "strip", z.ZodTypeAny, {
|
|
3639
|
+
start: Date;
|
|
3640
|
+
end: Date;
|
|
3641
|
+
}, {
|
|
3642
|
+
start: Date;
|
|
3643
|
+
end: Date;
|
|
3644
|
+
}>, {
|
|
3645
|
+
start: Date;
|
|
3646
|
+
end: Date;
|
|
3647
|
+
}, {
|
|
3648
|
+
start: Date;
|
|
3649
|
+
end: Date;
|
|
3650
|
+
}>>;
|
|
2596
3651
|
}, "strip", z.ZodTypeAny, {
|
|
2597
3652
|
status: "active" | "paused" | "ended";
|
|
3653
|
+
mode: "monitor" | "discovery";
|
|
2598
3654
|
taskId: string;
|
|
2599
3655
|
endedAt: Date | null;
|
|
2600
3656
|
assignmentId: string;
|
|
2601
3657
|
id: string;
|
|
2602
|
-
mode: "monitor" | "discovery";
|
|
2603
3658
|
startedAt: Date;
|
|
2604
3659
|
activeMinutes: number;
|
|
2605
3660
|
lastSeq: number;
|
|
@@ -2618,13 +3673,24 @@ declare const AgentStreamEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
2618
3673
|
};
|
|
2619
3674
|
missionTitle: string;
|
|
2620
3675
|
taskTitle: string;
|
|
3676
|
+
target?: {
|
|
3677
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
3678
|
+
url: string;
|
|
3679
|
+
label?: string | undefined;
|
|
3680
|
+
accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
|
|
3681
|
+
note?: string | undefined;
|
|
3682
|
+
} | undefined;
|
|
3683
|
+
captureWindow?: {
|
|
3684
|
+
start: Date;
|
|
3685
|
+
end: Date;
|
|
3686
|
+
} | undefined;
|
|
2621
3687
|
}, {
|
|
2622
3688
|
status: "active" | "paused" | "ended";
|
|
3689
|
+
mode: "monitor" | "discovery";
|
|
2623
3690
|
taskId: string;
|
|
2624
3691
|
endedAt: Date | null;
|
|
2625
3692
|
assignmentId: string;
|
|
2626
3693
|
id: string;
|
|
2627
|
-
mode: "monitor" | "discovery";
|
|
2628
3694
|
startedAt: Date;
|
|
2629
3695
|
activeMinutes: number;
|
|
2630
3696
|
lastSeq: number;
|
|
@@ -2643,16 +3709,27 @@ declare const AgentStreamEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
2643
3709
|
};
|
|
2644
3710
|
missionTitle: string;
|
|
2645
3711
|
taskTitle: string;
|
|
3712
|
+
target?: {
|
|
3713
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
3714
|
+
url: string;
|
|
3715
|
+
label?: string | undefined;
|
|
3716
|
+
accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
|
|
3717
|
+
note?: string | undefined;
|
|
3718
|
+
} | undefined;
|
|
3719
|
+
captureWindow?: {
|
|
3720
|
+
start: Date;
|
|
3721
|
+
end: Date;
|
|
3722
|
+
} | undefined;
|
|
2646
3723
|
}>;
|
|
2647
3724
|
}, "strip", z.ZodTypeAny, {
|
|
2648
3725
|
type: "session";
|
|
2649
3726
|
session: {
|
|
2650
3727
|
status: "active" | "paused" | "ended";
|
|
3728
|
+
mode: "monitor" | "discovery";
|
|
2651
3729
|
taskId: string;
|
|
2652
3730
|
endedAt: Date | null;
|
|
2653
3731
|
assignmentId: string;
|
|
2654
3732
|
id: string;
|
|
2655
|
-
mode: "monitor" | "discovery";
|
|
2656
3733
|
startedAt: Date;
|
|
2657
3734
|
activeMinutes: number;
|
|
2658
3735
|
lastSeq: number;
|
|
@@ -2671,16 +3748,27 @@ declare const AgentStreamEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
2671
3748
|
};
|
|
2672
3749
|
missionTitle: string;
|
|
2673
3750
|
taskTitle: string;
|
|
3751
|
+
target?: {
|
|
3752
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
3753
|
+
url: string;
|
|
3754
|
+
label?: string | undefined;
|
|
3755
|
+
accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
|
|
3756
|
+
note?: string | undefined;
|
|
3757
|
+
} | undefined;
|
|
3758
|
+
captureWindow?: {
|
|
3759
|
+
start: Date;
|
|
3760
|
+
end: Date;
|
|
3761
|
+
} | undefined;
|
|
2674
3762
|
};
|
|
2675
3763
|
}, {
|
|
2676
3764
|
type: "session";
|
|
2677
3765
|
session: {
|
|
2678
3766
|
status: "active" | "paused" | "ended";
|
|
3767
|
+
mode: "monitor" | "discovery";
|
|
2679
3768
|
taskId: string;
|
|
2680
3769
|
endedAt: Date | null;
|
|
2681
3770
|
assignmentId: string;
|
|
2682
3771
|
id: string;
|
|
2683
|
-
mode: "monitor" | "discovery";
|
|
2684
3772
|
startedAt: Date;
|
|
2685
3773
|
activeMinutes: number;
|
|
2686
3774
|
lastSeq: number;
|
|
@@ -2699,6 +3787,17 @@ declare const AgentStreamEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
2699
3787
|
};
|
|
2700
3788
|
missionTitle: string;
|
|
2701
3789
|
taskTitle: string;
|
|
3790
|
+
target?: {
|
|
3791
|
+
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
3792
|
+
url: string;
|
|
3793
|
+
label?: string | undefined;
|
|
3794
|
+
accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
|
|
3795
|
+
note?: string | undefined;
|
|
3796
|
+
} | undefined;
|
|
3797
|
+
captureWindow?: {
|
|
3798
|
+
start: Date;
|
|
3799
|
+
end: Date;
|
|
3800
|
+
} | undefined;
|
|
2702
3801
|
};
|
|
2703
3802
|
}>, z.ZodObject<{
|
|
2704
3803
|
type: z.ZodLiteral<"error">;
|
|
@@ -2847,14 +3946,14 @@ declare const SourceIntakeResultSchema: z.ZodObject<{
|
|
|
2847
3946
|
url: string;
|
|
2848
3947
|
outcome: "known" | "created" | "invalid";
|
|
2849
3948
|
message?: string | undefined;
|
|
2850
|
-
route?: "monitor" | "scraper" | "waiting_for_scraper" | undefined;
|
|
2851
3949
|
sourceId?: string | undefined;
|
|
3950
|
+
route?: "monitor" | "scraper" | "waiting_for_scraper" | undefined;
|
|
2852
3951
|
}, {
|
|
2853
3952
|
url: string;
|
|
2854
3953
|
outcome: "known" | "created" | "invalid";
|
|
2855
3954
|
message?: string | undefined;
|
|
2856
|
-
route?: "monitor" | "scraper" | "waiting_for_scraper" | undefined;
|
|
2857
3955
|
sourceId?: string | undefined;
|
|
3956
|
+
route?: "monitor" | "scraper" | "waiting_for_scraper" | undefined;
|
|
2858
3957
|
}>;
|
|
2859
3958
|
type SourceIntakeResult = z.infer<typeof SourceIntakeResultSchema>;
|
|
2860
3959
|
declare const SourceIntakeResponseSchema: z.ZodObject<{
|
|
@@ -2868,30 +3967,30 @@ declare const SourceIntakeResponseSchema: z.ZodObject<{
|
|
|
2868
3967
|
url: string;
|
|
2869
3968
|
outcome: "known" | "created" | "invalid";
|
|
2870
3969
|
message?: string | undefined;
|
|
2871
|
-
route?: "monitor" | "scraper" | "waiting_for_scraper" | undefined;
|
|
2872
3970
|
sourceId?: string | undefined;
|
|
3971
|
+
route?: "monitor" | "scraper" | "waiting_for_scraper" | undefined;
|
|
2873
3972
|
}, {
|
|
2874
3973
|
url: string;
|
|
2875
3974
|
outcome: "known" | "created" | "invalid";
|
|
2876
3975
|
message?: string | undefined;
|
|
2877
|
-
route?: "monitor" | "scraper" | "waiting_for_scraper" | undefined;
|
|
2878
3976
|
sourceId?: string | undefined;
|
|
3977
|
+
route?: "monitor" | "scraper" | "waiting_for_scraper" | undefined;
|
|
2879
3978
|
}>, "many">;
|
|
2880
3979
|
}, "strip", z.ZodTypeAny, {
|
|
2881
3980
|
results: {
|
|
2882
3981
|
url: string;
|
|
2883
3982
|
outcome: "known" | "created" | "invalid";
|
|
2884
3983
|
message?: string | undefined;
|
|
2885
|
-
route?: "monitor" | "scraper" | "waiting_for_scraper" | undefined;
|
|
2886
3984
|
sourceId?: string | undefined;
|
|
3985
|
+
route?: "monitor" | "scraper" | "waiting_for_scraper" | undefined;
|
|
2887
3986
|
}[];
|
|
2888
3987
|
}, {
|
|
2889
3988
|
results: {
|
|
2890
3989
|
url: string;
|
|
2891
3990
|
outcome: "known" | "created" | "invalid";
|
|
2892
3991
|
message?: string | undefined;
|
|
2893
|
-
route?: "monitor" | "scraper" | "waiting_for_scraper" | undefined;
|
|
2894
3992
|
sourceId?: string | undefined;
|
|
3993
|
+
route?: "monitor" | "scraper" | "waiting_for_scraper" | undefined;
|
|
2895
3994
|
}[];
|
|
2896
3995
|
}>;
|
|
2897
3996
|
type SourceIntakeResponse = z.infer<typeof SourceIntakeResponseSchema>;
|
|
@@ -2938,14 +4037,14 @@ declare const SourceVisitResponseSchema: z.ZodObject<{
|
|
|
2938
4037
|
nextVisitAt: z.ZodNullable<z.ZodDate>;
|
|
2939
4038
|
}, "strip", z.ZodTypeAny, {
|
|
2940
4039
|
status: "active" | "paused" | "closed" | "access_problem";
|
|
4040
|
+
sourceId: string;
|
|
2941
4041
|
lastCollectedAt: Date;
|
|
2942
4042
|
nextVisitAt: Date | null;
|
|
2943
|
-
sourceId: string;
|
|
2944
4043
|
}, {
|
|
2945
4044
|
status: "active" | "paused" | "closed" | "access_problem";
|
|
4045
|
+
sourceId: string;
|
|
2946
4046
|
lastCollectedAt: Date;
|
|
2947
4047
|
nextVisitAt: Date | null;
|
|
2948
|
-
sourceId: string;
|
|
2949
4048
|
}>;
|
|
2950
4049
|
type SourceVisitResponse = z.infer<typeof SourceVisitResponseSchema>;
|
|
2951
4050
|
declare const PriorityAlertBodySchema: z.ZodObject<{
|
|
@@ -2959,16 +4058,16 @@ declare const PriorityAlertBodySchema: z.ZodObject<{
|
|
|
2959
4058
|
summary: z.ZodOptional<z.ZodString>;
|
|
2960
4059
|
}, "strip", z.ZodTypeAny, {
|
|
2961
4060
|
orgId: string;
|
|
2962
|
-
taskId: string;
|
|
2963
4061
|
sourceId: string;
|
|
4062
|
+
taskId: string;
|
|
2964
4063
|
dataItemIds: string[];
|
|
2965
4064
|
raisedByUserId: string;
|
|
2966
4065
|
summary?: string | undefined;
|
|
2967
4066
|
sessionId?: string | undefined;
|
|
2968
4067
|
}, {
|
|
2969
4068
|
orgId: string;
|
|
2970
|
-
taskId: string;
|
|
2971
4069
|
sourceId: string;
|
|
4070
|
+
taskId: string;
|
|
2972
4071
|
dataItemIds: string[];
|
|
2973
4072
|
raisedByUserId: string;
|
|
2974
4073
|
summary?: string | undefined;
|
|
@@ -2988,4 +4087,4 @@ declare const INTERNAL_ERROR_CODE_VALUES: readonly ["UNAUTHENTICATED", "NOT_FOUN
|
|
|
2988
4087
|
declare const InternalErrorCode: z.ZodEnum<["UNAUTHENTICATED", "NOT_FOUND", "VALIDATION_ERROR", "INTERNAL"]>;
|
|
2989
4088
|
type InternalErrorCode = z.infer<typeof InternalErrorCode>;
|
|
2990
4089
|
|
|
2991
|
-
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 ApiError, ApiErrorSchema, type AvailabilityWindow, AvailabilityWindowSchema, ClerkOrgId, ClerkUserId, type CoverageWindow, CoverageWindowSchema, DatabaseId, HHmm, INTERNAL_ERROR_CODE_VALUES, InternalErrorCode, LanguageCode, 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, TimeZone, type Timestamps, TimestampsSchema };
|
|
4090
|
+
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 };
|