@badger_badger/badger_hq 1.5.1 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- import { ap as CollectionName, l as AgentMessage, s as AgentSession, H as AnalystProfile, M as AssigneeLoad, P as Assignment, Y as AuditLog, aa as Capture, aB as DataItem, aM as Database, aW as Deployment, bI as Mission, dd as Task, bh as HoursLog, cf as ScoutProfile, bS as OrgSettings, cn as ScoutRating, cH as Source, cM as SourceImport, cu as Scraper, cx as ScraperMetric, bs as LlmCall } from '../agent-session-Bsn8W7Xv.js';
2
- export { a8 as COLLECTIONS } from '../agent-session-Bsn8W7Xv.js';
1
+ import { at as CollectionName, n as AgentMessage, u as AgentSession, J as AnalystProfile, O as AssigneeLoad, R as Assignment, _ as AuditLog, ad as Capture, aF as DataItem, aQ as Database, a_ as Deployment, bO as Mission, dj as Task, bm as HoursLog, cl as ScoutProfile, bY as OrgSettings, ct as ScoutRating, cN as Source, cS as SourceImport, cA as Scraper, cD as ScraperMetric, by as LlmCall } from '../agent-session-oZI9RyQ_.js';
2
+ export { ab as COLLECTIONS } from '../agent-session-oZI9RyQ_.js';
3
3
  import * as mongoose from 'mongoose';
4
4
  import { Types, IndexDefinition, IndexOptions, Schema, Query, Model, Connection } from 'mongoose';
5
5
  import 'zod';
@@ -197,6 +197,80 @@ declare const taskCriteriaSchema: Schema<{
197
197
  } & {
198
198
  __v: number;
199
199
  }>;
200
+ declare const taskTargetSchema: Schema<{
201
+ platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
202
+ url: string;
203
+ sourceId?: mongoose.Types.ObjectId | undefined;
204
+ label?: string | undefined;
205
+ accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
206
+ note?: string | undefined;
207
+ }, mongoose.Model<{
208
+ platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
209
+ url: string;
210
+ sourceId?: mongoose.Types.ObjectId | undefined;
211
+ label?: string | undefined;
212
+ accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
213
+ note?: string | undefined;
214
+ }, any, any, any, mongoose.Document<unknown, any, {
215
+ platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
216
+ url: string;
217
+ sourceId?: mongoose.Types.ObjectId | undefined;
218
+ label?: string | undefined;
219
+ accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
220
+ note?: string | undefined;
221
+ }, any, {}> & {
222
+ platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
223
+ url: string;
224
+ sourceId?: mongoose.Types.ObjectId | undefined;
225
+ label?: string | undefined;
226
+ accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
227
+ note?: string | undefined;
228
+ } & {
229
+ _id: mongoose.Types.ObjectId;
230
+ } & {
231
+ __v: number;
232
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
233
+ platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
234
+ url: string;
235
+ sourceId?: mongoose.Types.ObjectId | undefined;
236
+ label?: string | undefined;
237
+ accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
238
+ note?: string | undefined;
239
+ }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
240
+ platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
241
+ url: string;
242
+ sourceId?: mongoose.Types.ObjectId | undefined;
243
+ label?: string | undefined;
244
+ accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
245
+ note?: string | undefined;
246
+ }>, {}, mongoose.DefaultSchemaOptions> & mongoose.FlatRecord<{
247
+ platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
248
+ url: string;
249
+ sourceId?: mongoose.Types.ObjectId | undefined;
250
+ label?: string | undefined;
251
+ accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
252
+ note?: string | undefined;
253
+ }> & {
254
+ _id: mongoose.Types.ObjectId;
255
+ } & {
256
+ __v: number;
257
+ }>;
258
+ /** Stored flat; `CaptureWindowSchema` (Zod) is the discriminated union validated at the API boundary. */
259
+ type CaptureWindowDoc = {
260
+ mode: string;
261
+ days?: number;
262
+ start?: Date;
263
+ end?: Date;
264
+ };
265
+ declare const captureWindowSchema: Schema<CaptureWindowDoc, mongoose.Model<CaptureWindowDoc, any, any, any, mongoose.Document<unknown, any, CaptureWindowDoc, any, {}> & CaptureWindowDoc & {
266
+ _id: mongoose.Types.ObjectId;
267
+ } & {
268
+ __v: number;
269
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, CaptureWindowDoc, mongoose.Document<unknown, {}, mongoose.FlatRecord<CaptureWindowDoc>, {}, mongoose.DefaultSchemaOptions> & mongoose.FlatRecord<CaptureWindowDoc> & {
270
+ _id: mongoose.Types.ObjectId;
271
+ } & {
272
+ __v: number;
273
+ }>;
200
274
  declare const availabilityWindowSchema: Schema<{
201
275
  start: string;
202
276
  end: string;
@@ -1070,6 +1144,22 @@ declare const taskSchema: Schema<{
1070
1144
  } | undefined;
1071
1145
  };
1072
1146
  deletedAt?: Date | undefined;
1147
+ target?: {
1148
+ platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
1149
+ url: string;
1150
+ sourceId?: mongoose.Types.ObjectId | undefined;
1151
+ label?: string | undefined;
1152
+ accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
1153
+ note?: string | undefined;
1154
+ } | undefined;
1155
+ captureWindow?: {
1156
+ mode: "last_days";
1157
+ days: number;
1158
+ } | {
1159
+ start: Date;
1160
+ end: Date;
1161
+ mode: "range";
1162
+ } | undefined;
1073
1163
  approvedBy?: string | undefined;
1074
1164
  approvedAt?: Date | undefined;
1075
1165
  doneBy?: string | undefined;
@@ -1101,6 +1191,22 @@ declare const taskSchema: Schema<{
1101
1191
  } | undefined;
1102
1192
  };
1103
1193
  deletedAt?: Date | undefined;
1194
+ target?: {
1195
+ platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
1196
+ url: string;
1197
+ sourceId?: mongoose.Types.ObjectId | undefined;
1198
+ label?: string | undefined;
1199
+ accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
1200
+ note?: string | undefined;
1201
+ } | undefined;
1202
+ captureWindow?: {
1203
+ mode: "last_days";
1204
+ days: number;
1205
+ } | {
1206
+ start: Date;
1207
+ end: Date;
1208
+ mode: "range";
1209
+ } | undefined;
1104
1210
  approvedBy?: string | undefined;
1105
1211
  approvedAt?: Date | undefined;
1106
1212
  doneBy?: string | undefined;
@@ -1132,6 +1238,22 @@ declare const taskSchema: Schema<{
1132
1238
  } | undefined;
1133
1239
  };
1134
1240
  deletedAt?: Date | undefined;
1241
+ target?: {
1242
+ platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
1243
+ url: string;
1244
+ sourceId?: mongoose.Types.ObjectId | undefined;
1245
+ label?: string | undefined;
1246
+ accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
1247
+ note?: string | undefined;
1248
+ } | undefined;
1249
+ captureWindow?: {
1250
+ mode: "last_days";
1251
+ days: number;
1252
+ } | {
1253
+ start: Date;
1254
+ end: Date;
1255
+ mode: "range";
1256
+ } | undefined;
1135
1257
  approvedBy?: string | undefined;
1136
1258
  approvedAt?: Date | undefined;
1137
1259
  doneBy?: string | undefined;
@@ -1163,6 +1285,22 @@ declare const taskSchema: Schema<{
1163
1285
  } | undefined;
1164
1286
  };
1165
1287
  deletedAt?: Date | undefined;
1288
+ target?: {
1289
+ platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
1290
+ url: string;
1291
+ sourceId?: mongoose.Types.ObjectId | undefined;
1292
+ label?: string | undefined;
1293
+ accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
1294
+ note?: string | undefined;
1295
+ } | undefined;
1296
+ captureWindow?: {
1297
+ mode: "last_days";
1298
+ days: number;
1299
+ } | {
1300
+ start: Date;
1301
+ end: Date;
1302
+ mode: "range";
1303
+ } | undefined;
1166
1304
  approvedBy?: string | undefined;
1167
1305
  approvedAt?: Date | undefined;
1168
1306
  doneBy?: string | undefined;
@@ -1198,6 +1336,22 @@ declare const taskSchema: Schema<{
1198
1336
  } | undefined;
1199
1337
  };
1200
1338
  deletedAt?: Date | undefined;
1339
+ target?: {
1340
+ platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
1341
+ url: string;
1342
+ sourceId?: mongoose.Types.ObjectId | undefined;
1343
+ label?: string | undefined;
1344
+ accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
1345
+ note?: string | undefined;
1346
+ } | undefined;
1347
+ captureWindow?: {
1348
+ mode: "last_days";
1349
+ days: number;
1350
+ } | {
1351
+ start: Date;
1352
+ end: Date;
1353
+ mode: "range";
1354
+ } | undefined;
1201
1355
  approvedBy?: string | undefined;
1202
1356
  approvedAt?: Date | undefined;
1203
1357
  doneBy?: string | undefined;
@@ -1229,6 +1383,22 @@ declare const taskSchema: Schema<{
1229
1383
  } | undefined;
1230
1384
  };
1231
1385
  deletedAt?: Date | undefined;
1386
+ target?: {
1387
+ platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
1388
+ url: string;
1389
+ sourceId?: mongoose.Types.ObjectId | undefined;
1390
+ label?: string | undefined;
1391
+ accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
1392
+ note?: string | undefined;
1393
+ } | undefined;
1394
+ captureWindow?: {
1395
+ mode: "last_days";
1396
+ days: number;
1397
+ } | {
1398
+ start: Date;
1399
+ end: Date;
1400
+ mode: "range";
1401
+ } | undefined;
1232
1402
  approvedBy?: string | undefined;
1233
1403
  approvedAt?: Date | undefined;
1234
1404
  doneBy?: string | undefined;
@@ -1260,6 +1430,22 @@ declare const taskSchema: Schema<{
1260
1430
  } | undefined;
1261
1431
  };
1262
1432
  deletedAt?: Date | undefined;
1433
+ target?: {
1434
+ platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
1435
+ url: string;
1436
+ sourceId?: mongoose.Types.ObjectId | undefined;
1437
+ label?: string | undefined;
1438
+ accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
1439
+ note?: string | undefined;
1440
+ } | undefined;
1441
+ captureWindow?: {
1442
+ mode: "last_days";
1443
+ days: number;
1444
+ } | {
1445
+ start: Date;
1446
+ end: Date;
1447
+ mode: "range";
1448
+ } | undefined;
1263
1449
  approvedBy?: string | undefined;
1264
1450
  approvedAt?: Date | undefined;
1265
1451
  doneBy?: string | undefined;
@@ -1284,9 +1470,9 @@ declare const assignmentSchema: Schema<{
1284
1470
  orgId: string;
1285
1471
  createdAt: Date;
1286
1472
  assigneeUserId: string;
1473
+ source: "manual" | "engine";
1287
1474
  updatedAt: Date;
1288
1475
  assigneeType: "scout" | "analyst";
1289
- source: "manual" | "engine";
1290
1476
  assignedBy: string;
1291
1477
  activatedAt: Date;
1292
1478
  deletedAt?: Date | undefined;
@@ -1303,9 +1489,9 @@ declare const assignmentSchema: Schema<{
1303
1489
  orgId: string;
1304
1490
  createdAt: Date;
1305
1491
  assigneeUserId: string;
1492
+ source: "manual" | "engine";
1306
1493
  updatedAt: Date;
1307
1494
  assigneeType: "scout" | "analyst";
1308
- source: "manual" | "engine";
1309
1495
  assignedBy: string;
1310
1496
  activatedAt: Date;
1311
1497
  deletedAt?: Date | undefined;
@@ -1322,9 +1508,9 @@ declare const assignmentSchema: Schema<{
1322
1508
  orgId: string;
1323
1509
  createdAt: Date;
1324
1510
  assigneeUserId: string;
1511
+ source: "manual" | "engine";
1325
1512
  updatedAt: Date;
1326
1513
  assigneeType: "scout" | "analyst";
1327
- source: "manual" | "engine";
1328
1514
  assignedBy: string;
1329
1515
  activatedAt: Date;
1330
1516
  deletedAt?: Date | undefined;
@@ -1341,9 +1527,9 @@ declare const assignmentSchema: Schema<{
1341
1527
  orgId: string;
1342
1528
  createdAt: Date;
1343
1529
  assigneeUserId: string;
1530
+ source: "manual" | "engine";
1344
1531
  updatedAt: Date;
1345
1532
  assigneeType: "scout" | "analyst";
1346
- source: "manual" | "engine";
1347
1533
  assignedBy: string;
1348
1534
  activatedAt: Date;
1349
1535
  deletedAt?: Date | undefined;
@@ -1364,9 +1550,9 @@ declare const assignmentSchema: Schema<{
1364
1550
  orgId: string;
1365
1551
  createdAt: Date;
1366
1552
  assigneeUserId: string;
1553
+ source: "manual" | "engine";
1367
1554
  updatedAt: Date;
1368
1555
  assigneeType: "scout" | "analyst";
1369
- source: "manual" | "engine";
1370
1556
  assignedBy: string;
1371
1557
  activatedAt: Date;
1372
1558
  deletedAt?: Date | undefined;
@@ -1383,9 +1569,9 @@ declare const assignmentSchema: Schema<{
1383
1569
  orgId: string;
1384
1570
  createdAt: Date;
1385
1571
  assigneeUserId: string;
1572
+ source: "manual" | "engine";
1386
1573
  updatedAt: Date;
1387
1574
  assigneeType: "scout" | "analyst";
1388
- source: "manual" | "engine";
1389
1575
  assignedBy: string;
1390
1576
  activatedAt: Date;
1391
1577
  deletedAt?: Date | undefined;
@@ -1402,9 +1588,9 @@ declare const assignmentSchema: Schema<{
1402
1588
  orgId: string;
1403
1589
  createdAt: Date;
1404
1590
  assigneeUserId: string;
1591
+ source: "manual" | "engine";
1405
1592
  updatedAt: Date;
1406
1593
  assigneeType: "scout" | "analyst";
1407
- source: "manual" | "engine";
1408
1594
  assignedBy: string;
1409
1595
  activatedAt: Date;
1410
1596
  deletedAt?: Date | undefined;
@@ -1427,8 +1613,10 @@ declare const hoursLogSchema: Schema<{
1427
1613
  createdAt: Date;
1428
1614
  date: Date;
1429
1615
  updatedAt: Date;
1430
- minutes: number;
1431
1616
  note: string;
1617
+ minutes: number;
1618
+ assignmentId?: mongoose.Types.ObjectId | undefined;
1619
+ source?: "manual" | "inferred" | undefined;
1432
1620
  deletedAt?: Date | undefined;
1433
1621
  }, mongoose.Model<{
1434
1622
  _id: mongoose.Types.ObjectId;
@@ -1438,8 +1626,10 @@ declare const hoursLogSchema: Schema<{
1438
1626
  createdAt: Date;
1439
1627
  date: Date;
1440
1628
  updatedAt: Date;
1441
- minutes: number;
1442
1629
  note: string;
1630
+ minutes: number;
1631
+ assignmentId?: mongoose.Types.ObjectId | undefined;
1632
+ source?: "manual" | "inferred" | undefined;
1443
1633
  deletedAt?: Date | undefined;
1444
1634
  }, any, any, any, mongoose.Document<unknown, any, {
1445
1635
  _id: mongoose.Types.ObjectId;
@@ -1449,8 +1639,10 @@ declare const hoursLogSchema: Schema<{
1449
1639
  createdAt: Date;
1450
1640
  date: Date;
1451
1641
  updatedAt: Date;
1452
- minutes: number;
1453
1642
  note: string;
1643
+ minutes: number;
1644
+ assignmentId?: mongoose.Types.ObjectId | undefined;
1645
+ source?: "manual" | "inferred" | undefined;
1454
1646
  deletedAt?: Date | undefined;
1455
1647
  }, any, {}> & {
1456
1648
  _id: mongoose.Types.ObjectId;
@@ -1460,8 +1652,10 @@ declare const hoursLogSchema: Schema<{
1460
1652
  createdAt: Date;
1461
1653
  date: Date;
1462
1654
  updatedAt: Date;
1463
- minutes: number;
1464
1655
  note: string;
1656
+ minutes: number;
1657
+ assignmentId?: mongoose.Types.ObjectId | undefined;
1658
+ source?: "manual" | "inferred" | undefined;
1465
1659
  deletedAt?: Date | undefined;
1466
1660
  } & Required<{
1467
1661
  _id: mongoose.Types.ObjectId;
@@ -1475,8 +1669,10 @@ declare const hoursLogSchema: Schema<{
1475
1669
  createdAt: Date;
1476
1670
  date: Date;
1477
1671
  updatedAt: Date;
1478
- minutes: number;
1479
1672
  note: string;
1673
+ minutes: number;
1674
+ assignmentId?: mongoose.Types.ObjectId | undefined;
1675
+ source?: "manual" | "inferred" | undefined;
1480
1676
  deletedAt?: Date | undefined;
1481
1677
  }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
1482
1678
  _id: mongoose.Types.ObjectId;
@@ -1486,8 +1682,10 @@ declare const hoursLogSchema: Schema<{
1486
1682
  createdAt: Date;
1487
1683
  date: Date;
1488
1684
  updatedAt: Date;
1489
- minutes: number;
1490
1685
  note: string;
1686
+ minutes: number;
1687
+ assignmentId?: mongoose.Types.ObjectId | undefined;
1688
+ source?: "manual" | "inferred" | undefined;
1491
1689
  deletedAt?: Date | undefined;
1492
1690
  }>, {}, mongoose.DefaultSchemaOptions> & mongoose.FlatRecord<{
1493
1691
  _id: mongoose.Types.ObjectId;
@@ -1497,8 +1695,10 @@ declare const hoursLogSchema: Schema<{
1497
1695
  createdAt: Date;
1498
1696
  date: Date;
1499
1697
  updatedAt: Date;
1500
- minutes: number;
1501
1698
  note: string;
1699
+ minutes: number;
1700
+ assignmentId?: mongoose.Types.ObjectId | undefined;
1701
+ source?: "manual" | "inferred" | undefined;
1502
1702
  deletedAt?: Date | undefined;
1503
1703
  }> & Required<{
1504
1704
  _id: mongoose.Types.ObjectId;
@@ -3136,12 +3336,12 @@ declare const auditLogSchema: Schema<{
3136
3336
  createdAt: Date;
3137
3337
  actorUserId: string;
3138
3338
  updatedAt: Date;
3139
- actingAsSystem: boolean;
3140
- action: string;
3141
3339
  target: {
3142
3340
  type: string;
3143
3341
  id: string;
3144
3342
  };
3343
+ actingAsSystem: boolean;
3344
+ action: string;
3145
3345
  orgId?: string | undefined;
3146
3346
  deletedAt?: Date | undefined;
3147
3347
  diff?: unknown;
@@ -3151,12 +3351,12 @@ declare const auditLogSchema: Schema<{
3151
3351
  createdAt: Date;
3152
3352
  actorUserId: string;
3153
3353
  updatedAt: Date;
3154
- actingAsSystem: boolean;
3155
- action: string;
3156
3354
  target: {
3157
3355
  type: string;
3158
3356
  id: string;
3159
3357
  };
3358
+ actingAsSystem: boolean;
3359
+ action: string;
3160
3360
  orgId?: string | undefined;
3161
3361
  deletedAt?: Date | undefined;
3162
3362
  diff?: unknown;
@@ -3166,12 +3366,12 @@ declare const auditLogSchema: Schema<{
3166
3366
  createdAt: Date;
3167
3367
  actorUserId: string;
3168
3368
  updatedAt: Date;
3169
- actingAsSystem: boolean;
3170
- action: string;
3171
3369
  target: {
3172
3370
  type: string;
3173
3371
  id: string;
3174
3372
  };
3373
+ actingAsSystem: boolean;
3374
+ action: string;
3175
3375
  orgId?: string | undefined;
3176
3376
  deletedAt?: Date | undefined;
3177
3377
  diff?: unknown;
@@ -3181,12 +3381,12 @@ declare const auditLogSchema: Schema<{
3181
3381
  createdAt: Date;
3182
3382
  actorUserId: string;
3183
3383
  updatedAt: Date;
3184
- actingAsSystem: boolean;
3185
- action: string;
3186
3384
  target: {
3187
3385
  type: string;
3188
3386
  id: string;
3189
3387
  };
3388
+ actingAsSystem: boolean;
3389
+ action: string;
3190
3390
  orgId?: string | undefined;
3191
3391
  deletedAt?: Date | undefined;
3192
3392
  diff?: unknown;
@@ -3200,12 +3400,12 @@ declare const auditLogSchema: Schema<{
3200
3400
  createdAt: Date;
3201
3401
  actorUserId: string;
3202
3402
  updatedAt: Date;
3203
- actingAsSystem: boolean;
3204
- action: string;
3205
3403
  target: {
3206
3404
  type: string;
3207
3405
  id: string;
3208
3406
  };
3407
+ actingAsSystem: boolean;
3408
+ action: string;
3209
3409
  orgId?: string | undefined;
3210
3410
  deletedAt?: Date | undefined;
3211
3411
  diff?: unknown;
@@ -3215,12 +3415,12 @@ declare const auditLogSchema: Schema<{
3215
3415
  createdAt: Date;
3216
3416
  actorUserId: string;
3217
3417
  updatedAt: Date;
3218
- actingAsSystem: boolean;
3219
- action: string;
3220
3418
  target: {
3221
3419
  type: string;
3222
3420
  id: string;
3223
3421
  };
3422
+ actingAsSystem: boolean;
3423
+ action: string;
3224
3424
  orgId?: string | undefined;
3225
3425
  deletedAt?: Date | undefined;
3226
3426
  diff?: unknown;
@@ -3230,12 +3430,12 @@ declare const auditLogSchema: Schema<{
3230
3430
  createdAt: Date;
3231
3431
  actorUserId: string;
3232
3432
  updatedAt: Date;
3233
- actingAsSystem: boolean;
3234
- action: string;
3235
3433
  target: {
3236
3434
  type: string;
3237
3435
  id: string;
3238
3436
  };
3437
+ actingAsSystem: boolean;
3438
+ action: string;
3239
3439
  orgId?: string | undefined;
3240
3440
  deletedAt?: Date | undefined;
3241
3441
  diff?: unknown;
@@ -3399,6 +3599,10 @@ declare const agentSessionSchema: Schema<{
3399
3599
  tokens: number;
3400
3600
  costUsd: number;
3401
3601
  };
3602
+ captureWindow?: {
3603
+ start: Date;
3604
+ end: Date;
3605
+ } | undefined;
3402
3606
  endedAt?: Date | undefined;
3403
3607
  state?: unknown;
3404
3608
  }, mongoose.Model<{
@@ -3433,6 +3637,10 @@ declare const agentSessionSchema: Schema<{
3433
3637
  tokens: number;
3434
3638
  costUsd: number;
3435
3639
  };
3640
+ captureWindow?: {
3641
+ start: Date;
3642
+ end: Date;
3643
+ } | undefined;
3436
3644
  endedAt?: Date | undefined;
3437
3645
  state?: unknown;
3438
3646
  }, any, any, any, mongoose.Document<unknown, any, {
@@ -3467,6 +3675,10 @@ declare const agentSessionSchema: Schema<{
3467
3675
  tokens: number;
3468
3676
  costUsd: number;
3469
3677
  };
3678
+ captureWindow?: {
3679
+ start: Date;
3680
+ end: Date;
3681
+ } | undefined;
3470
3682
  endedAt?: Date | undefined;
3471
3683
  state?: unknown;
3472
3684
  }, any, {}> & {
@@ -3501,6 +3713,10 @@ declare const agentSessionSchema: Schema<{
3501
3713
  tokens: number;
3502
3714
  costUsd: number;
3503
3715
  };
3716
+ captureWindow?: {
3717
+ start: Date;
3718
+ end: Date;
3719
+ } | undefined;
3504
3720
  endedAt?: Date | undefined;
3505
3721
  state?: unknown;
3506
3722
  } & Required<{
@@ -3539,6 +3755,10 @@ declare const agentSessionSchema: Schema<{
3539
3755
  tokens: number;
3540
3756
  costUsd: number;
3541
3757
  };
3758
+ captureWindow?: {
3759
+ start: Date;
3760
+ end: Date;
3761
+ } | undefined;
3542
3762
  endedAt?: Date | undefined;
3543
3763
  state?: unknown;
3544
3764
  }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
@@ -3573,6 +3793,10 @@ declare const agentSessionSchema: Schema<{
3573
3793
  tokens: number;
3574
3794
  costUsd: number;
3575
3795
  };
3796
+ captureWindow?: {
3797
+ start: Date;
3798
+ end: Date;
3799
+ } | undefined;
3576
3800
  endedAt?: Date | undefined;
3577
3801
  state?: unknown;
3578
3802
  }>, {}, mongoose.DefaultSchemaOptions> & mongoose.FlatRecord<{
@@ -3607,6 +3831,10 @@ declare const agentSessionSchema: Schema<{
3607
3831
  tokens: number;
3608
3832
  costUsd: number;
3609
3833
  };
3834
+ captureWindow?: {
3835
+ start: Date;
3836
+ end: Date;
3837
+ } | undefined;
3610
3838
  endedAt?: Date | undefined;
3611
3839
  state?: unknown;
3612
3840
  }> & Required<{
@@ -3655,8 +3883,8 @@ declare const agentMessageSchema: Schema<{
3655
3883
  questionId: string;
3656
3884
  } | {
3657
3885
  kind: "hours_proposal";
3658
- minutes: number;
3659
3886
  note: string;
3887
+ minutes: number;
3660
3888
  } | {
3661
3889
  kind: "capture_thumb";
3662
3890
  captureId: string;
@@ -3702,8 +3930,8 @@ declare const agentMessageSchema: Schema<{
3702
3930
  questionId: string;
3703
3931
  } | {
3704
3932
  kind: "hours_proposal";
3705
- minutes: number;
3706
3933
  note: string;
3934
+ minutes: number;
3707
3935
  } | {
3708
3936
  kind: "capture_thumb";
3709
3937
  captureId: string;
@@ -3749,8 +3977,8 @@ declare const agentMessageSchema: Schema<{
3749
3977
  questionId: string;
3750
3978
  } | {
3751
3979
  kind: "hours_proposal";
3752
- minutes: number;
3753
3980
  note: string;
3981
+ minutes: number;
3754
3982
  } | {
3755
3983
  kind: "capture_thumb";
3756
3984
  captureId: string;
@@ -3796,8 +4024,8 @@ declare const agentMessageSchema: Schema<{
3796
4024
  questionId: string;
3797
4025
  } | {
3798
4026
  kind: "hours_proposal";
3799
- minutes: number;
3800
4027
  note: string;
4028
+ minutes: number;
3801
4029
  } | {
3802
4030
  kind: "capture_thumb";
3803
4031
  captureId: string;
@@ -3847,8 +4075,8 @@ declare const agentMessageSchema: Schema<{
3847
4075
  questionId: string;
3848
4076
  } | {
3849
4077
  kind: "hours_proposal";
3850
- minutes: number;
3851
4078
  note: string;
4079
+ minutes: number;
3852
4080
  } | {
3853
4081
  kind: "capture_thumb";
3854
4082
  captureId: string;
@@ -3894,8 +4122,8 @@ declare const agentMessageSchema: Schema<{
3894
4122
  questionId: string;
3895
4123
  } | {
3896
4124
  kind: "hours_proposal";
3897
- minutes: number;
3898
4125
  note: string;
4126
+ minutes: number;
3899
4127
  } | {
3900
4128
  kind: "capture_thumb";
3901
4129
  captureId: string;
@@ -3941,8 +4169,8 @@ declare const agentMessageSchema: Schema<{
3941
4169
  questionId: string;
3942
4170
  } | {
3943
4171
  kind: "hours_proposal";
3944
- minutes: number;
3945
4172
  note: string;
4173
+ minutes: number;
3946
4174
  } | {
3947
4175
  kind: "capture_thumb";
3948
4176
  captureId: string;
@@ -4108,7 +4336,6 @@ declare const captureDomSummarySchema: Schema<{
4108
4336
  declare const captureSchema: Schema<{
4109
4337
  status: "failed" | "uploaded" | "analyzing" | "analyzed" | "expired";
4110
4338
  _id: mongoose.Types.ObjectId;
4111
- sessionId: mongoose.Types.ObjectId;
4112
4339
  orgId: string;
4113
4340
  createdAt: Date;
4114
4341
  url: string;
@@ -4124,7 +4351,13 @@ declare const captureSchema: Schema<{
4124
4351
  };
4125
4352
  sha256: string;
4126
4353
  domStatus: "ok" | "unavailable" | "truncated";
4354
+ attempts: number;
4127
4355
  error?: string | undefined;
4356
+ missionId?: mongoose.Types.ObjectId | undefined;
4357
+ taskId?: mongoose.Types.ObjectId | undefined;
4358
+ assignmentId?: mongoose.Types.ObjectId | undefined;
4359
+ sessionId?: mongoose.Types.ObjectId | undefined;
4360
+ userId?: string | undefined;
4128
4361
  region?: {
4129
4362
  x: number;
4130
4363
  y: number;
@@ -4147,10 +4380,10 @@ declare const captureSchema: Schema<{
4147
4380
  lang?: string | undefined;
4148
4381
  } | undefined;
4149
4382
  analysis?: unknown;
4383
+ claimedAt?: Date | undefined;
4150
4384
  }, mongoose.Model<{
4151
4385
  status: "failed" | "uploaded" | "analyzing" | "analyzed" | "expired";
4152
4386
  _id: mongoose.Types.ObjectId;
4153
- sessionId: mongoose.Types.ObjectId;
4154
4387
  orgId: string;
4155
4388
  createdAt: Date;
4156
4389
  url: string;
@@ -4166,7 +4399,13 @@ declare const captureSchema: Schema<{
4166
4399
  };
4167
4400
  sha256: string;
4168
4401
  domStatus: "ok" | "unavailable" | "truncated";
4402
+ attempts: number;
4169
4403
  error?: string | undefined;
4404
+ missionId?: mongoose.Types.ObjectId | undefined;
4405
+ taskId?: mongoose.Types.ObjectId | undefined;
4406
+ assignmentId?: mongoose.Types.ObjectId | undefined;
4407
+ sessionId?: mongoose.Types.ObjectId | undefined;
4408
+ userId?: string | undefined;
4170
4409
  region?: {
4171
4410
  x: number;
4172
4411
  y: number;
@@ -4189,10 +4428,10 @@ declare const captureSchema: Schema<{
4189
4428
  lang?: string | undefined;
4190
4429
  } | undefined;
4191
4430
  analysis?: unknown;
4431
+ claimedAt?: Date | undefined;
4192
4432
  }, any, any, any, mongoose.Document<unknown, any, {
4193
4433
  status: "failed" | "uploaded" | "analyzing" | "analyzed" | "expired";
4194
4434
  _id: mongoose.Types.ObjectId;
4195
- sessionId: mongoose.Types.ObjectId;
4196
4435
  orgId: string;
4197
4436
  createdAt: Date;
4198
4437
  url: string;
@@ -4208,7 +4447,13 @@ declare const captureSchema: Schema<{
4208
4447
  };
4209
4448
  sha256: string;
4210
4449
  domStatus: "ok" | "unavailable" | "truncated";
4450
+ attempts: number;
4211
4451
  error?: string | undefined;
4452
+ missionId?: mongoose.Types.ObjectId | undefined;
4453
+ taskId?: mongoose.Types.ObjectId | undefined;
4454
+ assignmentId?: mongoose.Types.ObjectId | undefined;
4455
+ sessionId?: mongoose.Types.ObjectId | undefined;
4456
+ userId?: string | undefined;
4212
4457
  region?: {
4213
4458
  x: number;
4214
4459
  y: number;
@@ -4231,10 +4476,10 @@ declare const captureSchema: Schema<{
4231
4476
  lang?: string | undefined;
4232
4477
  } | undefined;
4233
4478
  analysis?: unknown;
4479
+ claimedAt?: Date | undefined;
4234
4480
  }, any, {}> & {
4235
4481
  status: "failed" | "uploaded" | "analyzing" | "analyzed" | "expired";
4236
4482
  _id: mongoose.Types.ObjectId;
4237
- sessionId: mongoose.Types.ObjectId;
4238
4483
  orgId: string;
4239
4484
  createdAt: Date;
4240
4485
  url: string;
@@ -4250,7 +4495,13 @@ declare const captureSchema: Schema<{
4250
4495
  };
4251
4496
  sha256: string;
4252
4497
  domStatus: "ok" | "unavailable" | "truncated";
4498
+ attempts: number;
4253
4499
  error?: string | undefined;
4500
+ missionId?: mongoose.Types.ObjectId | undefined;
4501
+ taskId?: mongoose.Types.ObjectId | undefined;
4502
+ assignmentId?: mongoose.Types.ObjectId | undefined;
4503
+ sessionId?: mongoose.Types.ObjectId | undefined;
4504
+ userId?: string | undefined;
4254
4505
  region?: {
4255
4506
  x: number;
4256
4507
  y: number;
@@ -4273,6 +4524,7 @@ declare const captureSchema: Schema<{
4273
4524
  lang?: string | undefined;
4274
4525
  } | undefined;
4275
4526
  analysis?: unknown;
4527
+ claimedAt?: Date | undefined;
4276
4528
  } & Required<{
4277
4529
  _id: mongoose.Types.ObjectId;
4278
4530
  }> & {
@@ -4280,7 +4532,6 @@ declare const captureSchema: Schema<{
4280
4532
  }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
4281
4533
  status: "failed" | "uploaded" | "analyzing" | "analyzed" | "expired";
4282
4534
  _id: mongoose.Types.ObjectId;
4283
- sessionId: mongoose.Types.ObjectId;
4284
4535
  orgId: string;
4285
4536
  createdAt: Date;
4286
4537
  url: string;
@@ -4296,7 +4547,13 @@ declare const captureSchema: Schema<{
4296
4547
  };
4297
4548
  sha256: string;
4298
4549
  domStatus: "ok" | "unavailable" | "truncated";
4550
+ attempts: number;
4299
4551
  error?: string | undefined;
4552
+ missionId?: mongoose.Types.ObjectId | undefined;
4553
+ taskId?: mongoose.Types.ObjectId | undefined;
4554
+ assignmentId?: mongoose.Types.ObjectId | undefined;
4555
+ sessionId?: mongoose.Types.ObjectId | undefined;
4556
+ userId?: string | undefined;
4300
4557
  region?: {
4301
4558
  x: number;
4302
4559
  y: number;
@@ -4319,10 +4576,10 @@ declare const captureSchema: Schema<{
4319
4576
  lang?: string | undefined;
4320
4577
  } | undefined;
4321
4578
  analysis?: unknown;
4579
+ claimedAt?: Date | undefined;
4322
4580
  }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
4323
4581
  status: "failed" | "uploaded" | "analyzing" | "analyzed" | "expired";
4324
4582
  _id: mongoose.Types.ObjectId;
4325
- sessionId: mongoose.Types.ObjectId;
4326
4583
  orgId: string;
4327
4584
  createdAt: Date;
4328
4585
  url: string;
@@ -4338,7 +4595,13 @@ declare const captureSchema: Schema<{
4338
4595
  };
4339
4596
  sha256: string;
4340
4597
  domStatus: "ok" | "unavailable" | "truncated";
4598
+ attempts: number;
4341
4599
  error?: string | undefined;
4600
+ missionId?: mongoose.Types.ObjectId | undefined;
4601
+ taskId?: mongoose.Types.ObjectId | undefined;
4602
+ assignmentId?: mongoose.Types.ObjectId | undefined;
4603
+ sessionId?: mongoose.Types.ObjectId | undefined;
4604
+ userId?: string | undefined;
4342
4605
  region?: {
4343
4606
  x: number;
4344
4607
  y: number;
@@ -4361,10 +4624,10 @@ declare const captureSchema: Schema<{
4361
4624
  lang?: string | undefined;
4362
4625
  } | undefined;
4363
4626
  analysis?: unknown;
4627
+ claimedAt?: Date | undefined;
4364
4628
  }>, {}, mongoose.DefaultSchemaOptions> & mongoose.FlatRecord<{
4365
4629
  status: "failed" | "uploaded" | "analyzing" | "analyzed" | "expired";
4366
4630
  _id: mongoose.Types.ObjectId;
4367
- sessionId: mongoose.Types.ObjectId;
4368
4631
  orgId: string;
4369
4632
  createdAt: Date;
4370
4633
  url: string;
@@ -4380,7 +4643,13 @@ declare const captureSchema: Schema<{
4380
4643
  };
4381
4644
  sha256: string;
4382
4645
  domStatus: "ok" | "unavailable" | "truncated";
4646
+ attempts: number;
4383
4647
  error?: string | undefined;
4648
+ missionId?: mongoose.Types.ObjectId | undefined;
4649
+ taskId?: mongoose.Types.ObjectId | undefined;
4650
+ assignmentId?: mongoose.Types.ObjectId | undefined;
4651
+ sessionId?: mongoose.Types.ObjectId | undefined;
4652
+ userId?: string | undefined;
4384
4653
  region?: {
4385
4654
  x: number;
4386
4655
  y: number;
@@ -4403,6 +4672,7 @@ declare const captureSchema: Schema<{
4403
4672
  lang?: string | undefined;
4404
4673
  } | undefined;
4405
4674
  analysis?: unknown;
4675
+ claimedAt?: Date | undefined;
4406
4676
  }> & Required<{
4407
4677
  _id: mongoose.Types.ObjectId;
4408
4678
  }> & {
@@ -4449,7 +4719,7 @@ declare const llmCallSchema: Schema<{
4449
4719
  _id: mongoose.Types.ObjectId;
4450
4720
  createdAt: Date;
4451
4721
  updatedAt: Date;
4452
- outcome: "ok" | "invalid_output" | "timeout" | "rate_limited" | "server_error" | "safety_block" | "budget_exceeded" | "breaker_open" | "auth_error";
4722
+ outcome: "rate_limited" | "ok" | "invalid_output" | "timeout" | "server_error" | "safety_block" | "budget_exceeded" | "breaker_open" | "auth_error";
4453
4723
  capability: "plan" | "vision_extract" | "judge" | "chat";
4454
4724
  provider: "gemini" | "anthropic" | "openai";
4455
4725
  model: string;
@@ -4470,7 +4740,7 @@ declare const llmCallSchema: Schema<{
4470
4740
  _id: mongoose.Types.ObjectId;
4471
4741
  createdAt: Date;
4472
4742
  updatedAt: Date;
4473
- outcome: "ok" | "invalid_output" | "timeout" | "rate_limited" | "server_error" | "safety_block" | "budget_exceeded" | "breaker_open" | "auth_error";
4743
+ outcome: "rate_limited" | "ok" | "invalid_output" | "timeout" | "server_error" | "safety_block" | "budget_exceeded" | "breaker_open" | "auth_error";
4474
4744
  capability: "plan" | "vision_extract" | "judge" | "chat";
4475
4745
  provider: "gemini" | "anthropic" | "openai";
4476
4746
  model: string;
@@ -4491,7 +4761,7 @@ declare const llmCallSchema: Schema<{
4491
4761
  _id: mongoose.Types.ObjectId;
4492
4762
  createdAt: Date;
4493
4763
  updatedAt: Date;
4494
- outcome: "ok" | "invalid_output" | "timeout" | "rate_limited" | "server_error" | "safety_block" | "budget_exceeded" | "breaker_open" | "auth_error";
4764
+ outcome: "rate_limited" | "ok" | "invalid_output" | "timeout" | "server_error" | "safety_block" | "budget_exceeded" | "breaker_open" | "auth_error";
4495
4765
  capability: "plan" | "vision_extract" | "judge" | "chat";
4496
4766
  provider: "gemini" | "anthropic" | "openai";
4497
4767
  model: string;
@@ -4512,7 +4782,7 @@ declare const llmCallSchema: Schema<{
4512
4782
  _id: mongoose.Types.ObjectId;
4513
4783
  createdAt: Date;
4514
4784
  updatedAt: Date;
4515
- outcome: "ok" | "invalid_output" | "timeout" | "rate_limited" | "server_error" | "safety_block" | "budget_exceeded" | "breaker_open" | "auth_error";
4785
+ outcome: "rate_limited" | "ok" | "invalid_output" | "timeout" | "server_error" | "safety_block" | "budget_exceeded" | "breaker_open" | "auth_error";
4516
4786
  capability: "plan" | "vision_extract" | "judge" | "chat";
4517
4787
  provider: "gemini" | "anthropic" | "openai";
4518
4788
  model: string;
@@ -4537,7 +4807,7 @@ declare const llmCallSchema: Schema<{
4537
4807
  _id: mongoose.Types.ObjectId;
4538
4808
  createdAt: Date;
4539
4809
  updatedAt: Date;
4540
- outcome: "ok" | "invalid_output" | "timeout" | "rate_limited" | "server_error" | "safety_block" | "budget_exceeded" | "breaker_open" | "auth_error";
4810
+ outcome: "rate_limited" | "ok" | "invalid_output" | "timeout" | "server_error" | "safety_block" | "budget_exceeded" | "breaker_open" | "auth_error";
4541
4811
  capability: "plan" | "vision_extract" | "judge" | "chat";
4542
4812
  provider: "gemini" | "anthropic" | "openai";
4543
4813
  model: string;
@@ -4558,7 +4828,7 @@ declare const llmCallSchema: Schema<{
4558
4828
  _id: mongoose.Types.ObjectId;
4559
4829
  createdAt: Date;
4560
4830
  updatedAt: Date;
4561
- outcome: "ok" | "invalid_output" | "timeout" | "rate_limited" | "server_error" | "safety_block" | "budget_exceeded" | "breaker_open" | "auth_error";
4831
+ outcome: "rate_limited" | "ok" | "invalid_output" | "timeout" | "server_error" | "safety_block" | "budget_exceeded" | "breaker_open" | "auth_error";
4562
4832
  capability: "plan" | "vision_extract" | "judge" | "chat";
4563
4833
  provider: "gemini" | "anthropic" | "openai";
4564
4834
  model: string;
@@ -4579,7 +4849,7 @@ declare const llmCallSchema: Schema<{
4579
4849
  _id: mongoose.Types.ObjectId;
4580
4850
  createdAt: Date;
4581
4851
  updatedAt: Date;
4582
- outcome: "ok" | "invalid_output" | "timeout" | "rate_limited" | "server_error" | "safety_block" | "budget_exceeded" | "breaker_open" | "auth_error";
4852
+ outcome: "rate_limited" | "ok" | "invalid_output" | "timeout" | "server_error" | "safety_block" | "budget_exceeded" | "breaker_open" | "auth_error";
4583
4853
  capability: "plan" | "vision_extract" | "judge" | "chat";
4584
4854
  provider: "gemini" | "anthropic" | "openai";
4585
4855
  model: string;
@@ -4900,6 +5170,22 @@ declare const SCHEMAS: {
4900
5170
  } | undefined;
4901
5171
  };
4902
5172
  deletedAt?: Date | undefined;
5173
+ target?: {
5174
+ platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
5175
+ url: string;
5176
+ sourceId?: mongoose.Types.ObjectId | undefined;
5177
+ label?: string | undefined;
5178
+ accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
5179
+ note?: string | undefined;
5180
+ } | undefined;
5181
+ captureWindow?: {
5182
+ mode: "last_days";
5183
+ days: number;
5184
+ } | {
5185
+ start: Date;
5186
+ end: Date;
5187
+ mode: "range";
5188
+ } | undefined;
4903
5189
  approvedBy?: string | undefined;
4904
5190
  approvedAt?: Date | undefined;
4905
5191
  doneBy?: string | undefined;
@@ -4931,6 +5217,22 @@ declare const SCHEMAS: {
4931
5217
  } | undefined;
4932
5218
  };
4933
5219
  deletedAt?: Date | undefined;
5220
+ target?: {
5221
+ platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
5222
+ url: string;
5223
+ sourceId?: mongoose.Types.ObjectId | undefined;
5224
+ label?: string | undefined;
5225
+ accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
5226
+ note?: string | undefined;
5227
+ } | undefined;
5228
+ captureWindow?: {
5229
+ mode: "last_days";
5230
+ days: number;
5231
+ } | {
5232
+ start: Date;
5233
+ end: Date;
5234
+ mode: "range";
5235
+ } | undefined;
4934
5236
  approvedBy?: string | undefined;
4935
5237
  approvedAt?: Date | undefined;
4936
5238
  doneBy?: string | undefined;
@@ -4962,6 +5264,22 @@ declare const SCHEMAS: {
4962
5264
  } | undefined;
4963
5265
  };
4964
5266
  deletedAt?: Date | undefined;
5267
+ target?: {
5268
+ platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
5269
+ url: string;
5270
+ sourceId?: mongoose.Types.ObjectId | undefined;
5271
+ label?: string | undefined;
5272
+ accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
5273
+ note?: string | undefined;
5274
+ } | undefined;
5275
+ captureWindow?: {
5276
+ mode: "last_days";
5277
+ days: number;
5278
+ } | {
5279
+ start: Date;
5280
+ end: Date;
5281
+ mode: "range";
5282
+ } | undefined;
4965
5283
  approvedBy?: string | undefined;
4966
5284
  approvedAt?: Date | undefined;
4967
5285
  doneBy?: string | undefined;
@@ -4993,6 +5311,22 @@ declare const SCHEMAS: {
4993
5311
  } | undefined;
4994
5312
  };
4995
5313
  deletedAt?: Date | undefined;
5314
+ target?: {
5315
+ platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
5316
+ url: string;
5317
+ sourceId?: mongoose.Types.ObjectId | undefined;
5318
+ label?: string | undefined;
5319
+ accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
5320
+ note?: string | undefined;
5321
+ } | undefined;
5322
+ captureWindow?: {
5323
+ mode: "last_days";
5324
+ days: number;
5325
+ } | {
5326
+ start: Date;
5327
+ end: Date;
5328
+ mode: "range";
5329
+ } | undefined;
4996
5330
  approvedBy?: string | undefined;
4997
5331
  approvedAt?: Date | undefined;
4998
5332
  doneBy?: string | undefined;
@@ -5028,6 +5362,22 @@ declare const SCHEMAS: {
5028
5362
  } | undefined;
5029
5363
  };
5030
5364
  deletedAt?: Date | undefined;
5365
+ target?: {
5366
+ platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
5367
+ url: string;
5368
+ sourceId?: mongoose.Types.ObjectId | undefined;
5369
+ label?: string | undefined;
5370
+ accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
5371
+ note?: string | undefined;
5372
+ } | undefined;
5373
+ captureWindow?: {
5374
+ mode: "last_days";
5375
+ days: number;
5376
+ } | {
5377
+ start: Date;
5378
+ end: Date;
5379
+ mode: "range";
5380
+ } | undefined;
5031
5381
  approvedBy?: string | undefined;
5032
5382
  approvedAt?: Date | undefined;
5033
5383
  doneBy?: string | undefined;
@@ -5059,6 +5409,22 @@ declare const SCHEMAS: {
5059
5409
  } | undefined;
5060
5410
  };
5061
5411
  deletedAt?: Date | undefined;
5412
+ target?: {
5413
+ platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
5414
+ url: string;
5415
+ sourceId?: mongoose.Types.ObjectId | undefined;
5416
+ label?: string | undefined;
5417
+ accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
5418
+ note?: string | undefined;
5419
+ } | undefined;
5420
+ captureWindow?: {
5421
+ mode: "last_days";
5422
+ days: number;
5423
+ } | {
5424
+ start: Date;
5425
+ end: Date;
5426
+ mode: "range";
5427
+ } | undefined;
5062
5428
  approvedBy?: string | undefined;
5063
5429
  approvedAt?: Date | undefined;
5064
5430
  doneBy?: string | undefined;
@@ -5090,6 +5456,22 @@ declare const SCHEMAS: {
5090
5456
  } | undefined;
5091
5457
  };
5092
5458
  deletedAt?: Date | undefined;
5459
+ target?: {
5460
+ platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
5461
+ url: string;
5462
+ sourceId?: mongoose.Types.ObjectId | undefined;
5463
+ label?: string | undefined;
5464
+ accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
5465
+ note?: string | undefined;
5466
+ } | undefined;
5467
+ captureWindow?: {
5468
+ mode: "last_days";
5469
+ days: number;
5470
+ } | {
5471
+ start: Date;
5472
+ end: Date;
5473
+ mode: "range";
5474
+ } | undefined;
5093
5475
  approvedBy?: string | undefined;
5094
5476
  approvedAt?: Date | undefined;
5095
5477
  doneBy?: string | undefined;
@@ -5106,9 +5488,9 @@ declare const SCHEMAS: {
5106
5488
  orgId: string;
5107
5489
  createdAt: Date;
5108
5490
  assigneeUserId: string;
5491
+ source: "manual" | "engine";
5109
5492
  updatedAt: Date;
5110
5493
  assigneeType: "scout" | "analyst";
5111
- source: "manual" | "engine";
5112
5494
  assignedBy: string;
5113
5495
  activatedAt: Date;
5114
5496
  deletedAt?: Date | undefined;
@@ -5125,9 +5507,9 @@ declare const SCHEMAS: {
5125
5507
  orgId: string;
5126
5508
  createdAt: Date;
5127
5509
  assigneeUserId: string;
5510
+ source: "manual" | "engine";
5128
5511
  updatedAt: Date;
5129
5512
  assigneeType: "scout" | "analyst";
5130
- source: "manual" | "engine";
5131
5513
  assignedBy: string;
5132
5514
  activatedAt: Date;
5133
5515
  deletedAt?: Date | undefined;
@@ -5144,9 +5526,9 @@ declare const SCHEMAS: {
5144
5526
  orgId: string;
5145
5527
  createdAt: Date;
5146
5528
  assigneeUserId: string;
5529
+ source: "manual" | "engine";
5147
5530
  updatedAt: Date;
5148
5531
  assigneeType: "scout" | "analyst";
5149
- source: "manual" | "engine";
5150
5532
  assignedBy: string;
5151
5533
  activatedAt: Date;
5152
5534
  deletedAt?: Date | undefined;
@@ -5163,9 +5545,9 @@ declare const SCHEMAS: {
5163
5545
  orgId: string;
5164
5546
  createdAt: Date;
5165
5547
  assigneeUserId: string;
5548
+ source: "manual" | "engine";
5166
5549
  updatedAt: Date;
5167
5550
  assigneeType: "scout" | "analyst";
5168
- source: "manual" | "engine";
5169
5551
  assignedBy: string;
5170
5552
  activatedAt: Date;
5171
5553
  deletedAt?: Date | undefined;
@@ -5186,9 +5568,9 @@ declare const SCHEMAS: {
5186
5568
  orgId: string;
5187
5569
  createdAt: Date;
5188
5570
  assigneeUserId: string;
5571
+ source: "manual" | "engine";
5189
5572
  updatedAt: Date;
5190
5573
  assigneeType: "scout" | "analyst";
5191
- source: "manual" | "engine";
5192
5574
  assignedBy: string;
5193
5575
  activatedAt: Date;
5194
5576
  deletedAt?: Date | undefined;
@@ -5205,9 +5587,9 @@ declare const SCHEMAS: {
5205
5587
  orgId: string;
5206
5588
  createdAt: Date;
5207
5589
  assigneeUserId: string;
5590
+ source: "manual" | "engine";
5208
5591
  updatedAt: Date;
5209
5592
  assigneeType: "scout" | "analyst";
5210
- source: "manual" | "engine";
5211
5593
  assignedBy: string;
5212
5594
  activatedAt: Date;
5213
5595
  deletedAt?: Date | undefined;
@@ -5224,9 +5606,9 @@ declare const SCHEMAS: {
5224
5606
  orgId: string;
5225
5607
  createdAt: Date;
5226
5608
  assigneeUserId: string;
5609
+ source: "manual" | "engine";
5227
5610
  updatedAt: Date;
5228
5611
  assigneeType: "scout" | "analyst";
5229
- source: "manual" | "engine";
5230
5612
  assignedBy: string;
5231
5613
  activatedAt: Date;
5232
5614
  deletedAt?: Date | undefined;
@@ -5249,8 +5631,10 @@ declare const SCHEMAS: {
5249
5631
  createdAt: Date;
5250
5632
  date: Date;
5251
5633
  updatedAt: Date;
5252
- minutes: number;
5253
5634
  note: string;
5635
+ minutes: number;
5636
+ assignmentId?: mongoose.Types.ObjectId | undefined;
5637
+ source?: "manual" | "inferred" | undefined;
5254
5638
  deletedAt?: Date | undefined;
5255
5639
  }, mongoose.Model<{
5256
5640
  _id: mongoose.Types.ObjectId;
@@ -5260,8 +5644,10 @@ declare const SCHEMAS: {
5260
5644
  createdAt: Date;
5261
5645
  date: Date;
5262
5646
  updatedAt: Date;
5263
- minutes: number;
5264
5647
  note: string;
5648
+ minutes: number;
5649
+ assignmentId?: mongoose.Types.ObjectId | undefined;
5650
+ source?: "manual" | "inferred" | undefined;
5265
5651
  deletedAt?: Date | undefined;
5266
5652
  }, any, any, any, mongoose.Document<unknown, any, {
5267
5653
  _id: mongoose.Types.ObjectId;
@@ -5271,8 +5657,10 @@ declare const SCHEMAS: {
5271
5657
  createdAt: Date;
5272
5658
  date: Date;
5273
5659
  updatedAt: Date;
5274
- minutes: number;
5275
5660
  note: string;
5661
+ minutes: number;
5662
+ assignmentId?: mongoose.Types.ObjectId | undefined;
5663
+ source?: "manual" | "inferred" | undefined;
5276
5664
  deletedAt?: Date | undefined;
5277
5665
  }, any, {}> & {
5278
5666
  _id: mongoose.Types.ObjectId;
@@ -5282,8 +5670,10 @@ declare const SCHEMAS: {
5282
5670
  createdAt: Date;
5283
5671
  date: Date;
5284
5672
  updatedAt: Date;
5285
- minutes: number;
5286
5673
  note: string;
5674
+ minutes: number;
5675
+ assignmentId?: mongoose.Types.ObjectId | undefined;
5676
+ source?: "manual" | "inferred" | undefined;
5287
5677
  deletedAt?: Date | undefined;
5288
5678
  } & Required<{
5289
5679
  _id: mongoose.Types.ObjectId;
@@ -5297,8 +5687,10 @@ declare const SCHEMAS: {
5297
5687
  createdAt: Date;
5298
5688
  date: Date;
5299
5689
  updatedAt: Date;
5300
- minutes: number;
5301
5690
  note: string;
5691
+ minutes: number;
5692
+ assignmentId?: mongoose.Types.ObjectId | undefined;
5693
+ source?: "manual" | "inferred" | undefined;
5302
5694
  deletedAt?: Date | undefined;
5303
5695
  }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
5304
5696
  _id: mongoose.Types.ObjectId;
@@ -5308,8 +5700,10 @@ declare const SCHEMAS: {
5308
5700
  createdAt: Date;
5309
5701
  date: Date;
5310
5702
  updatedAt: Date;
5311
- minutes: number;
5312
5703
  note: string;
5704
+ minutes: number;
5705
+ assignmentId?: mongoose.Types.ObjectId | undefined;
5706
+ source?: "manual" | "inferred" | undefined;
5313
5707
  deletedAt?: Date | undefined;
5314
5708
  }>, {}, mongoose.DefaultSchemaOptions> & mongoose.FlatRecord<{
5315
5709
  _id: mongoose.Types.ObjectId;
@@ -5319,8 +5713,10 @@ declare const SCHEMAS: {
5319
5713
  createdAt: Date;
5320
5714
  date: Date;
5321
5715
  updatedAt: Date;
5322
- minutes: number;
5323
5716
  note: string;
5717
+ minutes: number;
5718
+ assignmentId?: mongoose.Types.ObjectId | undefined;
5719
+ source?: "manual" | "inferred" | undefined;
5324
5720
  deletedAt?: Date | undefined;
5325
5721
  }> & Required<{
5326
5722
  _id: mongoose.Types.ObjectId;
@@ -6958,12 +7354,12 @@ declare const SCHEMAS: {
6958
7354
  createdAt: Date;
6959
7355
  actorUserId: string;
6960
7356
  updatedAt: Date;
6961
- actingAsSystem: boolean;
6962
- action: string;
6963
7357
  target: {
6964
7358
  type: string;
6965
7359
  id: string;
6966
7360
  };
7361
+ actingAsSystem: boolean;
7362
+ action: string;
6967
7363
  orgId?: string | undefined;
6968
7364
  deletedAt?: Date | undefined;
6969
7365
  diff?: unknown;
@@ -6973,12 +7369,12 @@ declare const SCHEMAS: {
6973
7369
  createdAt: Date;
6974
7370
  actorUserId: string;
6975
7371
  updatedAt: Date;
6976
- actingAsSystem: boolean;
6977
- action: string;
6978
7372
  target: {
6979
7373
  type: string;
6980
7374
  id: string;
6981
7375
  };
7376
+ actingAsSystem: boolean;
7377
+ action: string;
6982
7378
  orgId?: string | undefined;
6983
7379
  deletedAt?: Date | undefined;
6984
7380
  diff?: unknown;
@@ -6988,12 +7384,12 @@ declare const SCHEMAS: {
6988
7384
  createdAt: Date;
6989
7385
  actorUserId: string;
6990
7386
  updatedAt: Date;
6991
- actingAsSystem: boolean;
6992
- action: string;
6993
7387
  target: {
6994
7388
  type: string;
6995
7389
  id: string;
6996
7390
  };
7391
+ actingAsSystem: boolean;
7392
+ action: string;
6997
7393
  orgId?: string | undefined;
6998
7394
  deletedAt?: Date | undefined;
6999
7395
  diff?: unknown;
@@ -7003,12 +7399,12 @@ declare const SCHEMAS: {
7003
7399
  createdAt: Date;
7004
7400
  actorUserId: string;
7005
7401
  updatedAt: Date;
7006
- actingAsSystem: boolean;
7007
- action: string;
7008
7402
  target: {
7009
7403
  type: string;
7010
7404
  id: string;
7011
7405
  };
7406
+ actingAsSystem: boolean;
7407
+ action: string;
7012
7408
  orgId?: string | undefined;
7013
7409
  deletedAt?: Date | undefined;
7014
7410
  diff?: unknown;
@@ -7022,12 +7418,12 @@ declare const SCHEMAS: {
7022
7418
  createdAt: Date;
7023
7419
  actorUserId: string;
7024
7420
  updatedAt: Date;
7025
- actingAsSystem: boolean;
7026
- action: string;
7027
7421
  target: {
7028
7422
  type: string;
7029
7423
  id: string;
7030
7424
  };
7425
+ actingAsSystem: boolean;
7426
+ action: string;
7031
7427
  orgId?: string | undefined;
7032
7428
  deletedAt?: Date | undefined;
7033
7429
  diff?: unknown;
@@ -7037,12 +7433,12 @@ declare const SCHEMAS: {
7037
7433
  createdAt: Date;
7038
7434
  actorUserId: string;
7039
7435
  updatedAt: Date;
7040
- actingAsSystem: boolean;
7041
- action: string;
7042
7436
  target: {
7043
7437
  type: string;
7044
7438
  id: string;
7045
7439
  };
7440
+ actingAsSystem: boolean;
7441
+ action: string;
7046
7442
  orgId?: string | undefined;
7047
7443
  deletedAt?: Date | undefined;
7048
7444
  diff?: unknown;
@@ -7052,12 +7448,12 @@ declare const SCHEMAS: {
7052
7448
  createdAt: Date;
7053
7449
  actorUserId: string;
7054
7450
  updatedAt: Date;
7055
- actingAsSystem: boolean;
7056
- action: string;
7057
7451
  target: {
7058
7452
  type: string;
7059
7453
  id: string;
7060
7454
  };
7455
+ actingAsSystem: boolean;
7456
+ action: string;
7061
7457
  orgId?: string | undefined;
7062
7458
  deletedAt?: Date | undefined;
7063
7459
  diff?: unknown;
@@ -7098,6 +7494,10 @@ declare const SCHEMAS: {
7098
7494
  tokens: number;
7099
7495
  costUsd: number;
7100
7496
  };
7497
+ captureWindow?: {
7498
+ start: Date;
7499
+ end: Date;
7500
+ } | undefined;
7101
7501
  endedAt?: Date | undefined;
7102
7502
  state?: unknown;
7103
7503
  }, mongoose.Model<{
@@ -7132,6 +7532,10 @@ declare const SCHEMAS: {
7132
7532
  tokens: number;
7133
7533
  costUsd: number;
7134
7534
  };
7535
+ captureWindow?: {
7536
+ start: Date;
7537
+ end: Date;
7538
+ } | undefined;
7135
7539
  endedAt?: Date | undefined;
7136
7540
  state?: unknown;
7137
7541
  }, any, any, any, mongoose.Document<unknown, any, {
@@ -7166,6 +7570,10 @@ declare const SCHEMAS: {
7166
7570
  tokens: number;
7167
7571
  costUsd: number;
7168
7572
  };
7573
+ captureWindow?: {
7574
+ start: Date;
7575
+ end: Date;
7576
+ } | undefined;
7169
7577
  endedAt?: Date | undefined;
7170
7578
  state?: unknown;
7171
7579
  }, any, {}> & {
@@ -7200,6 +7608,10 @@ declare const SCHEMAS: {
7200
7608
  tokens: number;
7201
7609
  costUsd: number;
7202
7610
  };
7611
+ captureWindow?: {
7612
+ start: Date;
7613
+ end: Date;
7614
+ } | undefined;
7203
7615
  endedAt?: Date | undefined;
7204
7616
  state?: unknown;
7205
7617
  } & Required<{
@@ -7238,6 +7650,10 @@ declare const SCHEMAS: {
7238
7650
  tokens: number;
7239
7651
  costUsd: number;
7240
7652
  };
7653
+ captureWindow?: {
7654
+ start: Date;
7655
+ end: Date;
7656
+ } | undefined;
7241
7657
  endedAt?: Date | undefined;
7242
7658
  state?: unknown;
7243
7659
  }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
@@ -7272,6 +7688,10 @@ declare const SCHEMAS: {
7272
7688
  tokens: number;
7273
7689
  costUsd: number;
7274
7690
  };
7691
+ captureWindow?: {
7692
+ start: Date;
7693
+ end: Date;
7694
+ } | undefined;
7275
7695
  endedAt?: Date | undefined;
7276
7696
  state?: unknown;
7277
7697
  }>, {}, mongoose.DefaultSchemaOptions> & mongoose.FlatRecord<{
@@ -7306,6 +7726,10 @@ declare const SCHEMAS: {
7306
7726
  tokens: number;
7307
7727
  costUsd: number;
7308
7728
  };
7729
+ captureWindow?: {
7730
+ start: Date;
7731
+ end: Date;
7732
+ } | undefined;
7309
7733
  endedAt?: Date | undefined;
7310
7734
  state?: unknown;
7311
7735
  }> & Required<{
@@ -7354,8 +7778,8 @@ declare const SCHEMAS: {
7354
7778
  questionId: string;
7355
7779
  } | {
7356
7780
  kind: "hours_proposal";
7357
- minutes: number;
7358
7781
  note: string;
7782
+ minutes: number;
7359
7783
  } | {
7360
7784
  kind: "capture_thumb";
7361
7785
  captureId: string;
@@ -7401,8 +7825,8 @@ declare const SCHEMAS: {
7401
7825
  questionId: string;
7402
7826
  } | {
7403
7827
  kind: "hours_proposal";
7404
- minutes: number;
7405
7828
  note: string;
7829
+ minutes: number;
7406
7830
  } | {
7407
7831
  kind: "capture_thumb";
7408
7832
  captureId: string;
@@ -7448,8 +7872,8 @@ declare const SCHEMAS: {
7448
7872
  questionId: string;
7449
7873
  } | {
7450
7874
  kind: "hours_proposal";
7451
- minutes: number;
7452
7875
  note: string;
7876
+ minutes: number;
7453
7877
  } | {
7454
7878
  kind: "capture_thumb";
7455
7879
  captureId: string;
@@ -7495,8 +7919,8 @@ declare const SCHEMAS: {
7495
7919
  questionId: string;
7496
7920
  } | {
7497
7921
  kind: "hours_proposal";
7498
- minutes: number;
7499
7922
  note: string;
7923
+ minutes: number;
7500
7924
  } | {
7501
7925
  kind: "capture_thumb";
7502
7926
  captureId: string;
@@ -7546,8 +7970,8 @@ declare const SCHEMAS: {
7546
7970
  questionId: string;
7547
7971
  } | {
7548
7972
  kind: "hours_proposal";
7549
- minutes: number;
7550
7973
  note: string;
7974
+ minutes: number;
7551
7975
  } | {
7552
7976
  kind: "capture_thumb";
7553
7977
  captureId: string;
@@ -7593,8 +8017,8 @@ declare const SCHEMAS: {
7593
8017
  questionId: string;
7594
8018
  } | {
7595
8019
  kind: "hours_proposal";
7596
- minutes: number;
7597
8020
  note: string;
8021
+ minutes: number;
7598
8022
  } | {
7599
8023
  kind: "capture_thumb";
7600
8024
  captureId: string;
@@ -7640,8 +8064,8 @@ declare const SCHEMAS: {
7640
8064
  questionId: string;
7641
8065
  } | {
7642
8066
  kind: "hours_proposal";
7643
- minutes: number;
7644
8067
  note: string;
8068
+ minutes: number;
7645
8069
  } | {
7646
8070
  kind: "capture_thumb";
7647
8071
  captureId: string;
@@ -7654,7 +8078,6 @@ declare const SCHEMAS: {
7654
8078
  readonly captures: Schema<{
7655
8079
  status: "failed" | "uploaded" | "analyzing" | "analyzed" | "expired";
7656
8080
  _id: mongoose.Types.ObjectId;
7657
- sessionId: mongoose.Types.ObjectId;
7658
8081
  orgId: string;
7659
8082
  createdAt: Date;
7660
8083
  url: string;
@@ -7670,7 +8093,13 @@ declare const SCHEMAS: {
7670
8093
  };
7671
8094
  sha256: string;
7672
8095
  domStatus: "ok" | "unavailable" | "truncated";
8096
+ attempts: number;
7673
8097
  error?: string | undefined;
8098
+ missionId?: mongoose.Types.ObjectId | undefined;
8099
+ taskId?: mongoose.Types.ObjectId | undefined;
8100
+ assignmentId?: mongoose.Types.ObjectId | undefined;
8101
+ sessionId?: mongoose.Types.ObjectId | undefined;
8102
+ userId?: string | undefined;
7674
8103
  region?: {
7675
8104
  x: number;
7676
8105
  y: number;
@@ -7693,10 +8122,10 @@ declare const SCHEMAS: {
7693
8122
  lang?: string | undefined;
7694
8123
  } | undefined;
7695
8124
  analysis?: unknown;
8125
+ claimedAt?: Date | undefined;
7696
8126
  }, mongoose.Model<{
7697
8127
  status: "failed" | "uploaded" | "analyzing" | "analyzed" | "expired";
7698
8128
  _id: mongoose.Types.ObjectId;
7699
- sessionId: mongoose.Types.ObjectId;
7700
8129
  orgId: string;
7701
8130
  createdAt: Date;
7702
8131
  url: string;
@@ -7712,7 +8141,13 @@ declare const SCHEMAS: {
7712
8141
  };
7713
8142
  sha256: string;
7714
8143
  domStatus: "ok" | "unavailable" | "truncated";
8144
+ attempts: number;
7715
8145
  error?: string | undefined;
8146
+ missionId?: mongoose.Types.ObjectId | undefined;
8147
+ taskId?: mongoose.Types.ObjectId | undefined;
8148
+ assignmentId?: mongoose.Types.ObjectId | undefined;
8149
+ sessionId?: mongoose.Types.ObjectId | undefined;
8150
+ userId?: string | undefined;
7716
8151
  region?: {
7717
8152
  x: number;
7718
8153
  y: number;
@@ -7735,10 +8170,10 @@ declare const SCHEMAS: {
7735
8170
  lang?: string | undefined;
7736
8171
  } | undefined;
7737
8172
  analysis?: unknown;
8173
+ claimedAt?: Date | undefined;
7738
8174
  }, any, any, any, mongoose.Document<unknown, any, {
7739
8175
  status: "failed" | "uploaded" | "analyzing" | "analyzed" | "expired";
7740
8176
  _id: mongoose.Types.ObjectId;
7741
- sessionId: mongoose.Types.ObjectId;
7742
8177
  orgId: string;
7743
8178
  createdAt: Date;
7744
8179
  url: string;
@@ -7754,7 +8189,13 @@ declare const SCHEMAS: {
7754
8189
  };
7755
8190
  sha256: string;
7756
8191
  domStatus: "ok" | "unavailable" | "truncated";
8192
+ attempts: number;
7757
8193
  error?: string | undefined;
8194
+ missionId?: mongoose.Types.ObjectId | undefined;
8195
+ taskId?: mongoose.Types.ObjectId | undefined;
8196
+ assignmentId?: mongoose.Types.ObjectId | undefined;
8197
+ sessionId?: mongoose.Types.ObjectId | undefined;
8198
+ userId?: string | undefined;
7758
8199
  region?: {
7759
8200
  x: number;
7760
8201
  y: number;
@@ -7777,10 +8218,10 @@ declare const SCHEMAS: {
7777
8218
  lang?: string | undefined;
7778
8219
  } | undefined;
7779
8220
  analysis?: unknown;
8221
+ claimedAt?: Date | undefined;
7780
8222
  }, any, {}> & {
7781
8223
  status: "failed" | "uploaded" | "analyzing" | "analyzed" | "expired";
7782
8224
  _id: mongoose.Types.ObjectId;
7783
- sessionId: mongoose.Types.ObjectId;
7784
8225
  orgId: string;
7785
8226
  createdAt: Date;
7786
8227
  url: string;
@@ -7796,7 +8237,13 @@ declare const SCHEMAS: {
7796
8237
  };
7797
8238
  sha256: string;
7798
8239
  domStatus: "ok" | "unavailable" | "truncated";
8240
+ attempts: number;
7799
8241
  error?: string | undefined;
8242
+ missionId?: mongoose.Types.ObjectId | undefined;
8243
+ taskId?: mongoose.Types.ObjectId | undefined;
8244
+ assignmentId?: mongoose.Types.ObjectId | undefined;
8245
+ sessionId?: mongoose.Types.ObjectId | undefined;
8246
+ userId?: string | undefined;
7800
8247
  region?: {
7801
8248
  x: number;
7802
8249
  y: number;
@@ -7819,6 +8266,7 @@ declare const SCHEMAS: {
7819
8266
  lang?: string | undefined;
7820
8267
  } | undefined;
7821
8268
  analysis?: unknown;
8269
+ claimedAt?: Date | undefined;
7822
8270
  } & Required<{
7823
8271
  _id: mongoose.Types.ObjectId;
7824
8272
  }> & {
@@ -7826,7 +8274,6 @@ declare const SCHEMAS: {
7826
8274
  }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
7827
8275
  status: "failed" | "uploaded" | "analyzing" | "analyzed" | "expired";
7828
8276
  _id: mongoose.Types.ObjectId;
7829
- sessionId: mongoose.Types.ObjectId;
7830
8277
  orgId: string;
7831
8278
  createdAt: Date;
7832
8279
  url: string;
@@ -7842,7 +8289,13 @@ declare const SCHEMAS: {
7842
8289
  };
7843
8290
  sha256: string;
7844
8291
  domStatus: "ok" | "unavailable" | "truncated";
8292
+ attempts: number;
7845
8293
  error?: string | undefined;
8294
+ missionId?: mongoose.Types.ObjectId | undefined;
8295
+ taskId?: mongoose.Types.ObjectId | undefined;
8296
+ assignmentId?: mongoose.Types.ObjectId | undefined;
8297
+ sessionId?: mongoose.Types.ObjectId | undefined;
8298
+ userId?: string | undefined;
7846
8299
  region?: {
7847
8300
  x: number;
7848
8301
  y: number;
@@ -7865,10 +8318,10 @@ declare const SCHEMAS: {
7865
8318
  lang?: string | undefined;
7866
8319
  } | undefined;
7867
8320
  analysis?: unknown;
8321
+ claimedAt?: Date | undefined;
7868
8322
  }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
7869
8323
  status: "failed" | "uploaded" | "analyzing" | "analyzed" | "expired";
7870
8324
  _id: mongoose.Types.ObjectId;
7871
- sessionId: mongoose.Types.ObjectId;
7872
8325
  orgId: string;
7873
8326
  createdAt: Date;
7874
8327
  url: string;
@@ -7884,7 +8337,13 @@ declare const SCHEMAS: {
7884
8337
  };
7885
8338
  sha256: string;
7886
8339
  domStatus: "ok" | "unavailable" | "truncated";
8340
+ attempts: number;
7887
8341
  error?: string | undefined;
8342
+ missionId?: mongoose.Types.ObjectId | undefined;
8343
+ taskId?: mongoose.Types.ObjectId | undefined;
8344
+ assignmentId?: mongoose.Types.ObjectId | undefined;
8345
+ sessionId?: mongoose.Types.ObjectId | undefined;
8346
+ userId?: string | undefined;
7888
8347
  region?: {
7889
8348
  x: number;
7890
8349
  y: number;
@@ -7907,10 +8366,10 @@ declare const SCHEMAS: {
7907
8366
  lang?: string | undefined;
7908
8367
  } | undefined;
7909
8368
  analysis?: unknown;
8369
+ claimedAt?: Date | undefined;
7910
8370
  }>, {}, mongoose.DefaultSchemaOptions> & mongoose.FlatRecord<{
7911
8371
  status: "failed" | "uploaded" | "analyzing" | "analyzed" | "expired";
7912
8372
  _id: mongoose.Types.ObjectId;
7913
- sessionId: mongoose.Types.ObjectId;
7914
8373
  orgId: string;
7915
8374
  createdAt: Date;
7916
8375
  url: string;
@@ -7926,7 +8385,13 @@ declare const SCHEMAS: {
7926
8385
  };
7927
8386
  sha256: string;
7928
8387
  domStatus: "ok" | "unavailable" | "truncated";
8388
+ attempts: number;
7929
8389
  error?: string | undefined;
8390
+ missionId?: mongoose.Types.ObjectId | undefined;
8391
+ taskId?: mongoose.Types.ObjectId | undefined;
8392
+ assignmentId?: mongoose.Types.ObjectId | undefined;
8393
+ sessionId?: mongoose.Types.ObjectId | undefined;
8394
+ userId?: string | undefined;
7930
8395
  region?: {
7931
8396
  x: number;
7932
8397
  y: number;
@@ -7949,6 +8414,7 @@ declare const SCHEMAS: {
7949
8414
  lang?: string | undefined;
7950
8415
  } | undefined;
7951
8416
  analysis?: unknown;
8417
+ claimedAt?: Date | undefined;
7952
8418
  }> & Required<{
7953
8419
  _id: mongoose.Types.ObjectId;
7954
8420
  }> & {
@@ -7958,7 +8424,7 @@ declare const SCHEMAS: {
7958
8424
  _id: mongoose.Types.ObjectId;
7959
8425
  createdAt: Date;
7960
8426
  updatedAt: Date;
7961
- outcome: "ok" | "invalid_output" | "timeout" | "rate_limited" | "server_error" | "safety_block" | "budget_exceeded" | "breaker_open" | "auth_error";
8427
+ outcome: "rate_limited" | "ok" | "invalid_output" | "timeout" | "server_error" | "safety_block" | "budget_exceeded" | "breaker_open" | "auth_error";
7962
8428
  capability: "plan" | "vision_extract" | "judge" | "chat";
7963
8429
  provider: "gemini" | "anthropic" | "openai";
7964
8430
  model: string;
@@ -7979,7 +8445,7 @@ declare const SCHEMAS: {
7979
8445
  _id: mongoose.Types.ObjectId;
7980
8446
  createdAt: Date;
7981
8447
  updatedAt: Date;
7982
- outcome: "ok" | "invalid_output" | "timeout" | "rate_limited" | "server_error" | "safety_block" | "budget_exceeded" | "breaker_open" | "auth_error";
8448
+ outcome: "rate_limited" | "ok" | "invalid_output" | "timeout" | "server_error" | "safety_block" | "budget_exceeded" | "breaker_open" | "auth_error";
7983
8449
  capability: "plan" | "vision_extract" | "judge" | "chat";
7984
8450
  provider: "gemini" | "anthropic" | "openai";
7985
8451
  model: string;
@@ -8000,7 +8466,7 @@ declare const SCHEMAS: {
8000
8466
  _id: mongoose.Types.ObjectId;
8001
8467
  createdAt: Date;
8002
8468
  updatedAt: Date;
8003
- outcome: "ok" | "invalid_output" | "timeout" | "rate_limited" | "server_error" | "safety_block" | "budget_exceeded" | "breaker_open" | "auth_error";
8469
+ outcome: "rate_limited" | "ok" | "invalid_output" | "timeout" | "server_error" | "safety_block" | "budget_exceeded" | "breaker_open" | "auth_error";
8004
8470
  capability: "plan" | "vision_extract" | "judge" | "chat";
8005
8471
  provider: "gemini" | "anthropic" | "openai";
8006
8472
  model: string;
@@ -8021,7 +8487,7 @@ declare const SCHEMAS: {
8021
8487
  _id: mongoose.Types.ObjectId;
8022
8488
  createdAt: Date;
8023
8489
  updatedAt: Date;
8024
- outcome: "ok" | "invalid_output" | "timeout" | "rate_limited" | "server_error" | "safety_block" | "budget_exceeded" | "breaker_open" | "auth_error";
8490
+ outcome: "rate_limited" | "ok" | "invalid_output" | "timeout" | "server_error" | "safety_block" | "budget_exceeded" | "breaker_open" | "auth_error";
8025
8491
  capability: "plan" | "vision_extract" | "judge" | "chat";
8026
8492
  provider: "gemini" | "anthropic" | "openai";
8027
8493
  model: string;
@@ -8046,7 +8512,7 @@ declare const SCHEMAS: {
8046
8512
  _id: mongoose.Types.ObjectId;
8047
8513
  createdAt: Date;
8048
8514
  updatedAt: Date;
8049
- outcome: "ok" | "invalid_output" | "timeout" | "rate_limited" | "server_error" | "safety_block" | "budget_exceeded" | "breaker_open" | "auth_error";
8515
+ outcome: "rate_limited" | "ok" | "invalid_output" | "timeout" | "server_error" | "safety_block" | "budget_exceeded" | "breaker_open" | "auth_error";
8050
8516
  capability: "plan" | "vision_extract" | "judge" | "chat";
8051
8517
  provider: "gemini" | "anthropic" | "openai";
8052
8518
  model: string;
@@ -8067,7 +8533,7 @@ declare const SCHEMAS: {
8067
8533
  _id: mongoose.Types.ObjectId;
8068
8534
  createdAt: Date;
8069
8535
  updatedAt: Date;
8070
- outcome: "ok" | "invalid_output" | "timeout" | "rate_limited" | "server_error" | "safety_block" | "budget_exceeded" | "breaker_open" | "auth_error";
8536
+ outcome: "rate_limited" | "ok" | "invalid_output" | "timeout" | "server_error" | "safety_block" | "budget_exceeded" | "breaker_open" | "auth_error";
8071
8537
  capability: "plan" | "vision_extract" | "judge" | "chat";
8072
8538
  provider: "gemini" | "anthropic" | "openai";
8073
8539
  model: string;
@@ -8088,7 +8554,7 @@ declare const SCHEMAS: {
8088
8554
  _id: mongoose.Types.ObjectId;
8089
8555
  createdAt: Date;
8090
8556
  updatedAt: Date;
8091
- outcome: "ok" | "invalid_output" | "timeout" | "rate_limited" | "server_error" | "safety_block" | "budget_exceeded" | "breaker_open" | "auth_error";
8557
+ outcome: "rate_limited" | "ok" | "invalid_output" | "timeout" | "server_error" | "safety_block" | "budget_exceeded" | "breaker_open" | "auth_error";
8092
8558
  capability: "plan" | "vision_extract" | "judge" | "chat";
8093
8559
  provider: "gemini" | "anthropic" | "openai";
8094
8560
  model: string;
@@ -8188,4 +8654,4 @@ type HarvesterModels = {
8188
8654
  */
8189
8655
  declare function registerModels(conn: Connection): HarvesterModels;
8190
8656
 
8191
- export { type AgentMessageDoc, type AgentMessageModel, type AgentSessionDoc, type AgentSessionModel, type AnalystProfileDoc, type AnalystProfileModel, type AssigneeLoadDoc, type AssigneeLoadModel, type AssignmentDoc, type AssignmentModel, type AuditLogDoc, type AuditLogModel, type CaptureDoc, type CaptureModel, CollectionName, type DataItemDoc, type DataItemModel, type DatabaseDoc, type DatabaseModel, type DeploymentDoc, type DeploymentModel, type HarvesterModels, type HoursLogDoc, type HoursLogModel, INDEXES, type IndexSpec, type LlmCallDoc, type LlmCallModel, MODEL_NAMES, type MissionDoc, type MissionModel, type ModelName, NOT_SOFT_DELETED_FILTER, type ObjectIdArrayKey, type ObjectIdKey, type OrgSettingsDoc, type OrgSettingsModel, SCHEMAS, type ScoutProfileDoc, type ScoutProfileModel, type ScoutRatingDoc, type ScoutRatingModel, type ScraperDoc, type ScraperMetricDoc, type ScraperMetricModel, type ScraperModel, type SourceDoc, type SourceImportDoc, type SourceImportModel, type SourceModel, TASK_VERSION_HOOK_OPS, type TaskDoc, type TaskModel, type ToDoc, agentMessageSchema, agentSessionBudgetSchema, agentSessionSchema, agentSessionStatsSchema, analystProfileSchema, applyIndexes, assigneeLoadSchema, assignmentSchema, auditLogSchema, auditTargetSchema, availabilityWindowSchema, blobRefSchema, captureDomSummarySchema, captureRegionSchema, captureSchema, collectorSchema, coverageWindowSchema, dataItemContentSchema, dataItemEntitySchema, dataItemSchema, databaseSchema, deploymentSchema, deploymentStepSchema, discoveredBySchema, geoSchema, hoursLogSchema, incrementTaskVersion, llmCallSchema, llmUsageSchema, missionSchema, objectIdsToStrings, orgSettingsSchema, platformAccessSchema, ratingSummarySchema, registerModels, scoutProfileSchema, scoutRatingSchema, scraperMetricSchema, scraperSchema, sourceImportRowErrorSchema, sourceImportSchema, sourceImportSummarySchema, sourceRatingSchema, sourceSchema, specialAccessSchema, systemRecommendationSchema, taskCriteriaSchema, taskSchema, toJSONOptions };
8657
+ export { type AgentMessageDoc, type AgentMessageModel, type AgentSessionDoc, type AgentSessionModel, type AnalystProfileDoc, type AnalystProfileModel, type AssigneeLoadDoc, type AssigneeLoadModel, type AssignmentDoc, type AssignmentModel, type AuditLogDoc, type AuditLogModel, type CaptureDoc, type CaptureModel, CollectionName, type DataItemDoc, type DataItemModel, type DatabaseDoc, type DatabaseModel, type DeploymentDoc, type DeploymentModel, type HarvesterModels, type HoursLogDoc, type HoursLogModel, INDEXES, type IndexSpec, type LlmCallDoc, type LlmCallModel, MODEL_NAMES, type MissionDoc, type MissionModel, type ModelName, NOT_SOFT_DELETED_FILTER, type ObjectIdArrayKey, type ObjectIdKey, type OrgSettingsDoc, type OrgSettingsModel, SCHEMAS, type ScoutProfileDoc, type ScoutProfileModel, type ScoutRatingDoc, type ScoutRatingModel, type ScraperDoc, type ScraperMetricDoc, type ScraperMetricModel, type ScraperModel, type SourceDoc, type SourceImportDoc, type SourceImportModel, type SourceModel, TASK_VERSION_HOOK_OPS, type TaskDoc, type TaskModel, type ToDoc, agentMessageSchema, agentSessionBudgetSchema, agentSessionSchema, agentSessionStatsSchema, analystProfileSchema, applyIndexes, assigneeLoadSchema, assignmentSchema, auditLogSchema, auditTargetSchema, availabilityWindowSchema, blobRefSchema, captureDomSummarySchema, captureRegionSchema, captureSchema, captureWindowSchema, collectorSchema, coverageWindowSchema, dataItemContentSchema, dataItemEntitySchema, dataItemSchema, databaseSchema, deploymentSchema, deploymentStepSchema, discoveredBySchema, geoSchema, hoursLogSchema, incrementTaskVersion, llmCallSchema, llmUsageSchema, missionSchema, objectIdsToStrings, orgSettingsSchema, platformAccessSchema, ratingSummarySchema, registerModels, scoutProfileSchema, scoutRatingSchema, scraperMetricSchema, scraperSchema, sourceImportRowErrorSchema, sourceImportSchema, sourceImportSummarySchema, sourceRatingSchema, sourceSchema, specialAccessSchema, systemRecommendationSchema, taskCriteriaSchema, taskSchema, taskTargetSchema, toJSONOptions };