@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.
@@ -59,6 +59,17 @@ type SourceRoute = z.infer<typeof SourceRoute>;
59
59
  declare const SOURCE_STATUS_VALUES: readonly ["active", "paused", "closed", "access_problem"];
60
60
  declare const SourceStatus: z.ZodEnum<["active", "paused", "closed", "access_problem"]>;
61
61
  type SourceStatus = z.infer<typeof SourceStatus>;
62
+ /**
63
+ * Why a person has to collect a source instead of a scraper. Set on a Monitor task's `target`.
64
+ * `no_collector` = the org has no scraper for the platform; `collector_full` = it has one but no free slot.
65
+ */
66
+ declare const ACCESS_ISSUE_VALUES: readonly ["login_required", "private", "bot_detection", "captcha", "geo_blocked", "rate_limited", "not_found", "no_collector", "collector_full", "other"];
67
+ declare const AccessIssue: z.ZodEnum<["login_required", "private", "bot_detection", "captcha", "geo_blocked", "rate_limited", "not_found", "no_collector", "collector_full", "other"]>;
68
+ type AccessIssue = z.infer<typeof AccessIssue>;
69
+ /** How a Monitor task's capture window is given: the last N days, or a fixed range. */
70
+ declare const CAPTURE_WINDOW_MODE_VALUES: readonly ["last_days", "range"];
71
+ declare const CaptureWindowMode: z.ZodEnum<["last_days", "range"]>;
72
+ type CaptureWindowMode = z.infer<typeof CaptureWindowMode>;
62
73
  declare const DISCOVERED_BY_TYPE_VALUES: readonly ["scout", "analyst", "agent", "client", "import"];
63
74
  declare const DiscoveredByType: z.ZodEnum<["scout", "analyst", "agent", "client", "import"]>;
64
75
  type DiscoveredByType = z.infer<typeof DiscoveredByType>;
@@ -113,6 +124,10 @@ type AgentSourceOutcome = z.infer<typeof AgentSourceOutcome>;
113
124
  declare const CAPTURE_STATUS_VALUES: readonly ["uploaded", "analyzing", "analyzed", "failed", "expired"];
114
125
  declare const CaptureStatus: z.ZodEnum<["uploaded", "analyzing", "analyzed", "failed", "expired"]>;
115
126
  type CaptureStatus = z.infer<typeof CaptureStatus>;
127
+ /** How an hours log was made: entered by the person, or worked out from their capture times. */
128
+ declare const HOURS_LOG_SOURCE_VALUES: readonly ["manual", "inferred"];
129
+ declare const HoursLogSource: z.ZodEnum<["manual", "inferred"]>;
130
+ type HoursLogSource = z.infer<typeof HoursLogSource>;
116
131
  /** Whether the read-only DOM text snapshot accompanied the screenshot. */
117
132
  declare const CAPTURE_DOM_STATUS_VALUES: readonly ["ok", "unavailable", "truncated"];
118
133
  declare const CaptureDomStatus: z.ZodEnum<["ok", "unavailable", "truncated"]>;
@@ -627,6 +642,66 @@ declare const TaskSchema: z.ZodObject<{
627
642
  } | undefined;
628
643
  emergency?: boolean | undefined;
629
644
  }>;
645
+ /** Monitor: the one source to collect. Discovery: optional source to search inside. */
646
+ target: z.ZodOptional<z.ZodObject<{
647
+ sourceId: z.ZodOptional<z.ZodString>;
648
+ platform: z.ZodEnum<["telegram", "facebook", "x", "tiktok", "instagram", "youtube", "whatsapp", "reddit", "discord", "linkedin", "threads", "vk", "snapchat", "web"]>;
649
+ url: z.ZodEffects<z.ZodString, string, string>;
650
+ label: z.ZodOptional<z.ZodString>;
651
+ accessIssue: z.ZodOptional<z.ZodEnum<["login_required", "private", "bot_detection", "captcha", "geo_blocked", "rate_limited", "not_found", "no_collector", "collector_full", "other"]>>;
652
+ note: z.ZodOptional<z.ZodString>;
653
+ }, "strip", z.ZodTypeAny, {
654
+ platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
655
+ url: string;
656
+ sourceId?: string | undefined;
657
+ label?: string | undefined;
658
+ accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
659
+ note?: string | undefined;
660
+ }, {
661
+ platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
662
+ url: string;
663
+ sourceId?: string | undefined;
664
+ label?: string | undefined;
665
+ accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
666
+ note?: string | undefined;
667
+ }>>;
668
+ /** Monitor: what to capture (last N days, or a fixed range). */
669
+ captureWindow: z.ZodOptional<z.ZodEffects<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
670
+ mode: z.ZodLiteral<"last_days">;
671
+ days: z.ZodNumber;
672
+ }, "strip", z.ZodTypeAny, {
673
+ mode: "last_days";
674
+ days: number;
675
+ }, {
676
+ mode: "last_days";
677
+ days: number;
678
+ }>, z.ZodObject<{
679
+ mode: z.ZodLiteral<"range">;
680
+ start: z.ZodPipeline<z.ZodUnion<[z.ZodDate, z.ZodString]>, z.ZodDate>;
681
+ end: z.ZodPipeline<z.ZodUnion<[z.ZodDate, z.ZodString]>, z.ZodDate>;
682
+ }, "strip", z.ZodTypeAny, {
683
+ start: Date;
684
+ end: Date;
685
+ mode: "range";
686
+ }, {
687
+ start: string | Date;
688
+ end: string | Date;
689
+ mode: "range";
690
+ }>]>, {
691
+ mode: "last_days";
692
+ days: number;
693
+ } | {
694
+ start: Date;
695
+ end: Date;
696
+ mode: "range";
697
+ }, {
698
+ mode: "last_days";
699
+ days: number;
700
+ } | {
701
+ start: string | Date;
702
+ end: string | Date;
703
+ mode: "range";
704
+ }>>;
630
705
  status: z.ZodDefault<z.ZodEnum<["draft", "pending_approval", "approved", "in_progress", "paused", "done"]>>;
631
706
  approvedBy: z.ZodOptional<z.ZodString>;
632
707
  approvedAt: z.ZodOptional<z.ZodDate>;
@@ -667,6 +742,22 @@ declare const TaskSchema: z.ZodObject<{
667
742
  };
668
743
  version: number;
669
744
  deletedAt?: Date | undefined;
745
+ target?: {
746
+ platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
747
+ url: string;
748
+ sourceId?: string | undefined;
749
+ label?: string | undefined;
750
+ accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
751
+ note?: string | undefined;
752
+ } | undefined;
753
+ captureWindow?: {
754
+ mode: "last_days";
755
+ days: number;
756
+ } | {
757
+ start: Date;
758
+ end: Date;
759
+ mode: "range";
760
+ } | undefined;
670
761
  approvedBy?: string | undefined;
671
762
  approvedAt?: Date | undefined;
672
763
  doneBy?: string | undefined;
@@ -697,6 +788,22 @@ declare const TaskSchema: z.ZodObject<{
697
788
  deletedAt?: Date | undefined;
698
789
  keywords?: string[] | undefined;
699
790
  searchQueries?: string[] | undefined;
791
+ target?: {
792
+ platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
793
+ url: string;
794
+ sourceId?: string | undefined;
795
+ label?: string | undefined;
796
+ accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
797
+ note?: string | undefined;
798
+ } | undefined;
799
+ captureWindow?: {
800
+ mode: "last_days";
801
+ days: number;
802
+ } | {
803
+ start: string | Date;
804
+ end: string | Date;
805
+ mode: "range";
806
+ } | undefined;
700
807
  approvedBy?: string | undefined;
701
808
  approvedAt?: Date | undefined;
702
809
  doneBy?: string | undefined;
@@ -760,6 +867,66 @@ declare const TaskCreateSchema: z.ZodObject<Omit<{
760
867
  } | undefined;
761
868
  emergency?: boolean | undefined;
762
869
  }>;
870
+ /** Monitor: the one source to collect. Discovery: optional source to search inside. */
871
+ target: z.ZodOptional<z.ZodObject<{
872
+ sourceId: z.ZodOptional<z.ZodString>;
873
+ platform: z.ZodEnum<["telegram", "facebook", "x", "tiktok", "instagram", "youtube", "whatsapp", "reddit", "discord", "linkedin", "threads", "vk", "snapchat", "web"]>;
874
+ url: z.ZodEffects<z.ZodString, string, string>;
875
+ label: z.ZodOptional<z.ZodString>;
876
+ accessIssue: z.ZodOptional<z.ZodEnum<["login_required", "private", "bot_detection", "captcha", "geo_blocked", "rate_limited", "not_found", "no_collector", "collector_full", "other"]>>;
877
+ note: z.ZodOptional<z.ZodString>;
878
+ }, "strip", z.ZodTypeAny, {
879
+ platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
880
+ url: string;
881
+ sourceId?: string | undefined;
882
+ label?: string | undefined;
883
+ accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
884
+ note?: string | undefined;
885
+ }, {
886
+ platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
887
+ url: string;
888
+ sourceId?: string | undefined;
889
+ label?: string | undefined;
890
+ accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
891
+ note?: string | undefined;
892
+ }>>;
893
+ /** Monitor: what to capture (last N days, or a fixed range). */
894
+ captureWindow: z.ZodOptional<z.ZodEffects<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
895
+ mode: z.ZodLiteral<"last_days">;
896
+ days: z.ZodNumber;
897
+ }, "strip", z.ZodTypeAny, {
898
+ mode: "last_days";
899
+ days: number;
900
+ }, {
901
+ mode: "last_days";
902
+ days: number;
903
+ }>, z.ZodObject<{
904
+ mode: z.ZodLiteral<"range">;
905
+ start: z.ZodPipeline<z.ZodUnion<[z.ZodDate, z.ZodString]>, z.ZodDate>;
906
+ end: z.ZodPipeline<z.ZodUnion<[z.ZodDate, z.ZodString]>, z.ZodDate>;
907
+ }, "strip", z.ZodTypeAny, {
908
+ start: Date;
909
+ end: Date;
910
+ mode: "range";
911
+ }, {
912
+ start: string | Date;
913
+ end: string | Date;
914
+ mode: "range";
915
+ }>]>, {
916
+ mode: "last_days";
917
+ days: number;
918
+ } | {
919
+ start: Date;
920
+ end: Date;
921
+ mode: "range";
922
+ }, {
923
+ mode: "last_days";
924
+ days: number;
925
+ } | {
926
+ start: string | Date;
927
+ end: string | Date;
928
+ mode: "range";
929
+ }>>;
763
930
  status: z.ZodDefault<z.ZodEnum<["draft", "pending_approval", "approved", "in_progress", "paused", "done"]>>;
764
931
  approvedBy: z.ZodOptional<z.ZodString>;
765
932
  approvedAt: z.ZodOptional<z.ZodDate>;
@@ -794,6 +961,22 @@ declare const TaskCreateSchema: z.ZodObject<Omit<{
794
961
  end: Date;
795
962
  } | undefined;
796
963
  };
964
+ target?: {
965
+ platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
966
+ url: string;
967
+ sourceId?: string | undefined;
968
+ label?: string | undefined;
969
+ accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
970
+ note?: string | undefined;
971
+ } | undefined;
972
+ captureWindow?: {
973
+ mode: "last_days";
974
+ days: number;
975
+ } | {
976
+ start: Date;
977
+ end: Date;
978
+ mode: "range";
979
+ } | undefined;
797
980
  }, {
798
981
  title: string;
799
982
  description: string;
@@ -815,6 +998,22 @@ declare const TaskCreateSchema: z.ZodObject<Omit<{
815
998
  status?: "draft" | "paused" | "pending_approval" | "approved" | "in_progress" | "done" | undefined;
816
999
  keywords?: string[] | undefined;
817
1000
  searchQueries?: string[] | undefined;
1001
+ target?: {
1002
+ platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
1003
+ url: string;
1004
+ sourceId?: string | undefined;
1005
+ label?: string | undefined;
1006
+ accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
1007
+ note?: string | undefined;
1008
+ } | undefined;
1009
+ captureWindow?: {
1010
+ mode: "last_days";
1011
+ days: number;
1012
+ } | {
1013
+ start: string | Date;
1014
+ end: string | Date;
1015
+ mode: "range";
1016
+ } | undefined;
818
1017
  }>;
819
1018
  declare const TaskUpdateSchema: z.ZodObject<{
820
1019
  status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["draft", "pending_approval", "approved", "in_progress", "paused", "done"]>>>;
@@ -871,6 +1070,64 @@ declare const TaskUpdateSchema: z.ZodObject<{
871
1070
  } | undefined;
872
1071
  emergency?: boolean | undefined;
873
1072
  }>>;
1073
+ target: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1074
+ sourceId: z.ZodOptional<z.ZodString>;
1075
+ platform: z.ZodEnum<["telegram", "facebook", "x", "tiktok", "instagram", "youtube", "whatsapp", "reddit", "discord", "linkedin", "threads", "vk", "snapchat", "web"]>;
1076
+ url: z.ZodEffects<z.ZodString, string, string>;
1077
+ label: z.ZodOptional<z.ZodString>;
1078
+ accessIssue: z.ZodOptional<z.ZodEnum<["login_required", "private", "bot_detection", "captcha", "geo_blocked", "rate_limited", "not_found", "no_collector", "collector_full", "other"]>>;
1079
+ note: z.ZodOptional<z.ZodString>;
1080
+ }, "strip", z.ZodTypeAny, {
1081
+ platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
1082
+ url: string;
1083
+ sourceId?: string | undefined;
1084
+ label?: string | undefined;
1085
+ accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
1086
+ note?: string | undefined;
1087
+ }, {
1088
+ platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
1089
+ url: string;
1090
+ sourceId?: string | undefined;
1091
+ label?: string | undefined;
1092
+ accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
1093
+ note?: string | undefined;
1094
+ }>>>;
1095
+ captureWindow: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
1096
+ mode: z.ZodLiteral<"last_days">;
1097
+ days: z.ZodNumber;
1098
+ }, "strip", z.ZodTypeAny, {
1099
+ mode: "last_days";
1100
+ days: number;
1101
+ }, {
1102
+ mode: "last_days";
1103
+ days: number;
1104
+ }>, z.ZodObject<{
1105
+ mode: z.ZodLiteral<"range">;
1106
+ start: z.ZodPipeline<z.ZodUnion<[z.ZodDate, z.ZodString]>, z.ZodDate>;
1107
+ end: z.ZodPipeline<z.ZodUnion<[z.ZodDate, z.ZodString]>, z.ZodDate>;
1108
+ }, "strip", z.ZodTypeAny, {
1109
+ start: Date;
1110
+ end: Date;
1111
+ mode: "range";
1112
+ }, {
1113
+ start: string | Date;
1114
+ end: string | Date;
1115
+ mode: "range";
1116
+ }>]>, {
1117
+ mode: "last_days";
1118
+ days: number;
1119
+ } | {
1120
+ start: Date;
1121
+ end: Date;
1122
+ mode: "range";
1123
+ }, {
1124
+ mode: "last_days";
1125
+ days: number;
1126
+ } | {
1127
+ start: string | Date;
1128
+ end: string | Date;
1129
+ mode: "range";
1130
+ }>>>;
874
1131
  }, "strip", z.ZodTypeAny, {
875
1132
  status?: "draft" | "paused" | "pending_approval" | "approved" | "in_progress" | "done" | undefined;
876
1133
  title?: string | undefined;
@@ -892,6 +1149,22 @@ declare const TaskUpdateSchema: z.ZodObject<{
892
1149
  end: Date;
893
1150
  } | undefined;
894
1151
  } | undefined;
1152
+ target?: {
1153
+ platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
1154
+ url: string;
1155
+ sourceId?: string | undefined;
1156
+ label?: string | undefined;
1157
+ accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
1158
+ note?: string | undefined;
1159
+ } | undefined;
1160
+ captureWindow?: {
1161
+ mode: "last_days";
1162
+ days: number;
1163
+ } | {
1164
+ start: Date;
1165
+ end: Date;
1166
+ mode: "range";
1167
+ } | undefined;
895
1168
  }, {
896
1169
  status?: "draft" | "paused" | "pending_approval" | "approved" | "in_progress" | "done" | undefined;
897
1170
  title?: string | undefined;
@@ -913,6 +1186,22 @@ declare const TaskUpdateSchema: z.ZodObject<{
913
1186
  } | undefined;
914
1187
  emergency?: boolean | undefined;
915
1188
  } | undefined;
1189
+ target?: {
1190
+ platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
1191
+ url: string;
1192
+ sourceId?: string | undefined;
1193
+ label?: string | undefined;
1194
+ accessIssue?: "login_required" | "private" | "bot_detection" | "captcha" | "geo_blocked" | "rate_limited" | "not_found" | "no_collector" | "collector_full" | "other" | undefined;
1195
+ note?: string | undefined;
1196
+ } | undefined;
1197
+ captureWindow?: {
1198
+ mode: "last_days";
1199
+ days: number;
1200
+ } | {
1201
+ start: string | Date;
1202
+ end: string | Date;
1203
+ mode: "range";
1204
+ } | undefined;
916
1205
  }>;
917
1206
  type Task = z.infer<typeof TaskSchema>;
918
1207
  type TaskCreate = z.infer<typeof TaskCreateSchema>;
@@ -1048,7 +1337,10 @@ type AssignmentCreate = z.infer<typeof AssignmentCreateSchema>;
1048
1337
  type AssignmentCreateInput = z.input<typeof AssignmentCreateSchema>;
1049
1338
  type AssignmentUpdate = z.infer<typeof AssignmentUpdateSchema>;
1050
1339
 
1051
- /** Scout hours, logged from the Chrome extension. */
1340
+ /**
1341
+ * Scout hours. `manual` rows were confirmed by the person; `inferred` rows are worked out by
1342
+ * agent-service from their capture times, one row per person + assignment + day.
1343
+ */
1052
1344
  declare const HoursLogSchema: z.ZodObject<{
1053
1345
  _id: z.ZodString;
1054
1346
  orgId: z.ZodString;
@@ -1057,6 +1349,8 @@ declare const HoursLogSchema: z.ZodObject<{
1057
1349
  minutes: z.ZodNumber;
1058
1350
  note: z.ZodString;
1059
1351
  date: z.ZodDate;
1352
+ assignmentId: z.ZodOptional<z.ZodString>;
1353
+ source: z.ZodOptional<z.ZodEnum<["manual", "inferred"]>>;
1060
1354
  } & {
1061
1355
  createdAt: z.ZodDate;
1062
1356
  updatedAt: z.ZodDate;
@@ -1068,22 +1362,26 @@ declare const HoursLogSchema: z.ZodObject<{
1068
1362
  _id: string;
1069
1363
  orgId: string;
1070
1364
  date: Date;
1365
+ note: string;
1071
1366
  taskId: string;
1072
1367
  scoutUserId: string;
1073
1368
  minutes: number;
1074
- note: string;
1075
1369
  deletedAt?: Date | undefined;
1370
+ source?: "manual" | "inferred" | undefined;
1371
+ assignmentId?: string | undefined;
1076
1372
  }, {
1077
1373
  createdAt: Date;
1078
1374
  updatedAt: Date;
1079
1375
  _id: string;
1080
1376
  orgId: string;
1081
1377
  date: Date;
1378
+ note: string;
1082
1379
  taskId: string;
1083
1380
  scoutUserId: string;
1084
1381
  minutes: number;
1085
- note: string;
1086
1382
  deletedAt?: Date | undefined;
1383
+ source?: "manual" | "inferred" | undefined;
1384
+ assignmentId?: string | undefined;
1087
1385
  }>;
1088
1386
  declare const HoursLogCreateSchema: z.ZodObject<Omit<{
1089
1387
  _id: z.ZodString;
@@ -1093,6 +1391,8 @@ declare const HoursLogCreateSchema: z.ZodObject<Omit<{
1093
1391
  minutes: z.ZodNumber;
1094
1392
  note: z.ZodString;
1095
1393
  date: z.ZodDate;
1394
+ assignmentId: z.ZodOptional<z.ZodString>;
1395
+ source: z.ZodOptional<z.ZodEnum<["manual", "inferred"]>>;
1096
1396
  } & {
1097
1397
  createdAt: z.ZodDate;
1098
1398
  updatedAt: z.ZodDate;
@@ -1100,30 +1400,40 @@ declare const HoursLogCreateSchema: z.ZodObject<Omit<{
1100
1400
  deletedAt: z.ZodOptional<z.ZodDate>;
1101
1401
  }, "createdAt" | "updatedAt" | "deletedAt" | "_id" | "orgId" | "scoutUserId">, "strip", z.ZodTypeAny, {
1102
1402
  date: Date;
1403
+ note: string;
1103
1404
  taskId: string;
1104
1405
  minutes: number;
1105
- note: string;
1406
+ source?: "manual" | "inferred" | undefined;
1407
+ assignmentId?: string | undefined;
1106
1408
  }, {
1107
1409
  date: Date;
1410
+ note: string;
1108
1411
  taskId: string;
1109
1412
  minutes: number;
1110
- note: string;
1413
+ source?: "manual" | "inferred" | undefined;
1414
+ assignmentId?: string | undefined;
1111
1415
  }>;
1112
1416
  declare const HoursLogUpdateSchema: z.ZodObject<{
1113
1417
  date: z.ZodOptional<z.ZodDate>;
1418
+ note: z.ZodOptional<z.ZodString>;
1114
1419
  taskId: z.ZodOptional<z.ZodString>;
1420
+ source: z.ZodOptional<z.ZodOptional<z.ZodEnum<["manual", "inferred"]>>>;
1115
1421
  minutes: z.ZodOptional<z.ZodNumber>;
1116
- note: z.ZodOptional<z.ZodString>;
1422
+ assignmentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1117
1423
  }, "strip", z.ZodTypeAny, {
1118
1424
  date?: Date | undefined;
1425
+ note?: string | undefined;
1119
1426
  taskId?: string | undefined;
1427
+ source?: "manual" | "inferred" | undefined;
1120
1428
  minutes?: number | undefined;
1121
- note?: string | undefined;
1429
+ assignmentId?: string | undefined;
1122
1430
  }, {
1123
1431
  date?: Date | undefined;
1432
+ note?: string | undefined;
1124
1433
  taskId?: string | undefined;
1434
+ source?: "manual" | "inferred" | undefined;
1125
1435
  minutes?: number | undefined;
1126
- note?: string | undefined;
1436
+ assignmentId?: string | undefined;
1127
1437
  }>;
1128
1438
  type HoursLog = z.infer<typeof HoursLogSchema>;
1129
1439
  type HoursLogCreate = z.infer<typeof HoursLogCreateSchema>;
@@ -1266,25 +1576,25 @@ declare const ScoutProfileSchema: z.ZodObject<{
1266
1576
  platform: z.ZodEnum<["telegram", "facebook", "x", "tiktok", "instagram", "youtube", "whatsapp", "reddit", "discord", "linkedin", "threads", "vk", "snapchat", "web"]>;
1267
1577
  note: z.ZodString;
1268
1578
  }, "strip", z.ZodTypeAny, {
1269
- note: string;
1270
1579
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
1271
- }, {
1272
1580
  note: string;
1581
+ }, {
1273
1582
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
1583
+ note: string;
1274
1584
  }>, "many">>;
1275
1585
  }, "strip", z.ZodTypeAny, {
1276
1586
  platforms: ("telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web")[];
1277
1587
  all: boolean;
1278
1588
  special: {
1279
- note: string;
1280
1589
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
1590
+ note: string;
1281
1591
  }[];
1282
1592
  }, {
1283
1593
  platforms?: ("telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web")[] | undefined;
1284
1594
  all?: boolean | undefined;
1285
1595
  special?: {
1286
- note: string;
1287
1596
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
1597
+ note: string;
1288
1598
  }[] | undefined;
1289
1599
  }>>;
1290
1600
  profession: z.ZodOptional<z.ZodString>;
@@ -1311,8 +1621,8 @@ declare const ScoutProfileSchema: z.ZodObject<{
1311
1621
  platforms: ("telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web")[];
1312
1622
  all: boolean;
1313
1623
  special: {
1314
- note: string;
1315
1624
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
1625
+ note: string;
1316
1626
  }[];
1317
1627
  };
1318
1628
  userId: string;
@@ -1357,8 +1667,8 @@ declare const ScoutProfileSchema: z.ZodObject<{
1357
1667
  platforms?: ("telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web")[] | undefined;
1358
1668
  all?: boolean | undefined;
1359
1669
  special?: {
1360
- note: string;
1361
1670
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
1671
+ note: string;
1362
1672
  }[] | undefined;
1363
1673
  } | undefined;
1364
1674
  taskLimit?: number | undefined;
@@ -1403,25 +1713,25 @@ declare const ScoutProfileCreateSchema: z.ZodObject<{
1403
1713
  platform: z.ZodEnum<["telegram", "facebook", "x", "tiktok", "instagram", "youtube", "whatsapp", "reddit", "discord", "linkedin", "threads", "vk", "snapchat", "web"]>;
1404
1714
  note: z.ZodString;
1405
1715
  }, "strip", z.ZodTypeAny, {
1406
- note: string;
1407
1716
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
1408
- }, {
1409
1717
  note: string;
1718
+ }, {
1410
1719
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
1720
+ note: string;
1411
1721
  }>, "many">>;
1412
1722
  }, "strip", z.ZodTypeAny, {
1413
1723
  platforms: ("telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web")[];
1414
1724
  all: boolean;
1415
1725
  special: {
1416
- note: string;
1417
1726
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
1727
+ note: string;
1418
1728
  }[];
1419
1729
  }, {
1420
1730
  platforms?: ("telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web")[] | undefined;
1421
1731
  all?: boolean | undefined;
1422
1732
  special?: {
1423
- note: string;
1424
1733
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
1734
+ note: string;
1425
1735
  }[] | undefined;
1426
1736
  }>>;
1427
1737
  taskLimit: z.ZodOptional<z.ZodNumber>;
@@ -1461,8 +1771,8 @@ declare const ScoutProfileCreateSchema: z.ZodObject<{
1461
1771
  platforms: ("telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web")[];
1462
1772
  all: boolean;
1463
1773
  special: {
1464
- note: string;
1465
1774
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
1775
+ note: string;
1466
1776
  }[];
1467
1777
  };
1468
1778
  email: string;
@@ -1494,8 +1804,8 @@ declare const ScoutProfileCreateSchema: z.ZodObject<{
1494
1804
  platforms?: ("telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web")[] | undefined;
1495
1805
  all?: boolean | undefined;
1496
1806
  special?: {
1497
- note: string;
1498
1807
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
1808
+ note: string;
1499
1809
  }[] | undefined;
1500
1810
  } | undefined;
1501
1811
  taskLimit?: number | undefined;
@@ -1532,25 +1842,25 @@ declare const ScoutProfileUpdateSchema: z.ZodObject<{
1532
1842
  platform: z.ZodEnum<["telegram", "facebook", "x", "tiktok", "instagram", "youtube", "whatsapp", "reddit", "discord", "linkedin", "threads", "vk", "snapchat", "web"]>;
1533
1843
  note: z.ZodString;
1534
1844
  }, "strip", z.ZodTypeAny, {
1535
- note: string;
1536
1845
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
1537
- }, {
1538
1846
  note: string;
1847
+ }, {
1539
1848
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
1849
+ note: string;
1540
1850
  }>, "many">>;
1541
1851
  }, "strip", z.ZodTypeAny, {
1542
1852
  platforms: ("telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web")[];
1543
1853
  all: boolean;
1544
1854
  special: {
1545
- note: string;
1546
1855
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
1856
+ note: string;
1547
1857
  }[];
1548
1858
  }, {
1549
1859
  platforms?: ("telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web")[] | undefined;
1550
1860
  all?: boolean | undefined;
1551
1861
  special?: {
1552
- note: string;
1553
1862
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
1863
+ note: string;
1554
1864
  }[] | undefined;
1555
1865
  }>>>;
1556
1866
  taskLimit: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
@@ -1590,8 +1900,8 @@ declare const ScoutProfileUpdateSchema: z.ZodObject<{
1590
1900
  platforms: ("telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web")[];
1591
1901
  all: boolean;
1592
1902
  special: {
1593
- note: string;
1594
1903
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
1904
+ note: string;
1595
1905
  }[];
1596
1906
  } | undefined;
1597
1907
  taskLimit?: number | undefined;
@@ -1619,8 +1929,8 @@ declare const ScoutProfileUpdateSchema: z.ZodObject<{
1619
1929
  platforms?: ("telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web")[] | undefined;
1620
1930
  all?: boolean | undefined;
1621
1931
  special?: {
1622
- note: string;
1623
1932
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
1933
+ note: string;
1624
1934
  }[] | undefined;
1625
1935
  } | undefined;
1626
1936
  taskLimit?: number | undefined;
@@ -1714,25 +2024,25 @@ declare const AnalystProfileSchema: z.ZodObject<{
1714
2024
  platform: z.ZodEnum<["telegram", "facebook", "x", "tiktok", "instagram", "youtube", "whatsapp", "reddit", "discord", "linkedin", "threads", "vk", "snapchat", "web"]>;
1715
2025
  note: z.ZodString;
1716
2026
  }, "strip", z.ZodTypeAny, {
1717
- note: string;
1718
2027
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
1719
- }, {
1720
2028
  note: string;
2029
+ }, {
1721
2030
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
2031
+ note: string;
1722
2032
  }>, "many">>;
1723
2033
  }, "strip", z.ZodTypeAny, {
1724
2034
  platforms: ("telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web")[];
1725
2035
  all: boolean;
1726
2036
  special: {
1727
- note: string;
1728
2037
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
2038
+ note: string;
1729
2039
  }[];
1730
2040
  }, {
1731
2041
  platforms?: ("telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web")[] | undefined;
1732
2042
  all?: boolean | undefined;
1733
2043
  special?: {
1734
- note: string;
1735
2044
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
2045
+ note: string;
1736
2046
  }[] | undefined;
1737
2047
  }>>;
1738
2048
  profession: z.ZodOptional<z.ZodString>;
@@ -1759,8 +2069,8 @@ declare const AnalystProfileSchema: z.ZodObject<{
1759
2069
  platforms: ("telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web")[];
1760
2070
  all: boolean;
1761
2071
  special: {
1762
- note: string;
1763
2072
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
2073
+ note: string;
1764
2074
  }[];
1765
2075
  };
1766
2076
  userId: string;
@@ -1789,8 +2099,8 @@ declare const AnalystProfileSchema: z.ZodObject<{
1789
2099
  platforms?: ("telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web")[] | undefined;
1790
2100
  all?: boolean | undefined;
1791
2101
  special?: {
1792
- note: string;
1793
2102
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
2103
+ note: string;
1794
2104
  }[] | undefined;
1795
2105
  } | undefined;
1796
2106
  taskLimit?: number | undefined;
@@ -1820,25 +2130,25 @@ declare const AnalystProfileUpdateSchema: z.ZodObject<{
1820
2130
  platform: z.ZodEnum<["telegram", "facebook", "x", "tiktok", "instagram", "youtube", "whatsapp", "reddit", "discord", "linkedin", "threads", "vk", "snapchat", "web"]>;
1821
2131
  note: z.ZodString;
1822
2132
  }, "strip", z.ZodTypeAny, {
1823
- note: string;
1824
2133
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
1825
- }, {
1826
2134
  note: string;
2135
+ }, {
1827
2136
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
2137
+ note: string;
1828
2138
  }>, "many">>;
1829
2139
  }, "strip", z.ZodTypeAny, {
1830
2140
  platforms: ("telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web")[];
1831
2141
  all: boolean;
1832
2142
  special: {
1833
- note: string;
1834
2143
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
2144
+ note: string;
1835
2145
  }[];
1836
2146
  }, {
1837
2147
  platforms?: ("telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web")[] | undefined;
1838
2148
  all?: boolean | undefined;
1839
2149
  special?: {
1840
- note: string;
1841
2150
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
2151
+ note: string;
1842
2152
  }[] | undefined;
1843
2153
  }>>>;
1844
2154
  profession: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -1857,8 +2167,8 @@ declare const AnalystProfileUpdateSchema: z.ZodObject<{
1857
2167
  platforms: ("telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web")[];
1858
2168
  all: boolean;
1859
2169
  special: {
1860
- note: string;
1861
2170
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
2171
+ note: string;
1862
2172
  }[];
1863
2173
  } | undefined;
1864
2174
  taskLimit?: number | undefined;
@@ -1876,8 +2186,8 @@ declare const AnalystProfileUpdateSchema: z.ZodObject<{
1876
2186
  platforms?: ("telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web")[] | undefined;
1877
2187
  all?: boolean | undefined;
1878
2188
  special?: {
1879
- note: string;
1880
2189
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
2190
+ note: string;
1881
2191
  }[] | undefined;
1882
2192
  } | undefined;
1883
2193
  taskLimit?: number | undefined;
@@ -2119,10 +2429,10 @@ declare const SourceSchema: z.ZodObject<{
2119
2429
  orgId: string;
2120
2430
  databaseId: string;
2121
2431
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
2432
+ url: string;
2122
2433
  tags: string[];
2123
2434
  missionIds: string[];
2124
2435
  taskIds: string[];
2125
- url: string;
2126
2436
  access: "public" | "gated";
2127
2437
  route: "monitor" | "scraper" | "waiting_for_scraper";
2128
2438
  discoveredBy: {
@@ -2223,10 +2533,10 @@ declare const SourceCreateSchema: z.ZodObject<Omit<{
2223
2533
  type: "channel" | "group" | "profile" | "forum" | "site";
2224
2534
  status: "active" | "paused" | "closed" | "access_problem";
2225
2535
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
2536
+ url: string;
2226
2537
  tags: string[];
2227
2538
  missionIds: string[];
2228
2539
  taskIds: string[];
2229
- url: string;
2230
2540
  access: "public" | "gated";
2231
2541
  route: "monitor" | "scraper" | "waiting_for_scraper";
2232
2542
  handle?: string | undefined;
@@ -2260,10 +2570,10 @@ declare const SourceUpdateSchema: z.ZodObject<{
2260
2570
  type: z.ZodOptional<z.ZodEnum<["channel", "group", "profile", "forum", "site"]>>;
2261
2571
  status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["active", "paused", "closed", "access_problem"]>>>;
2262
2572
  platform: z.ZodOptional<z.ZodEnum<["telegram", "facebook", "x", "tiktok", "instagram", "youtube", "whatsapp", "reddit", "discord", "linkedin", "threads", "vk", "snapchat", "web"]>>;
2573
+ url: z.ZodOptional<z.ZodString>;
2263
2574
  tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
2264
2575
  missionIds: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
2265
2576
  taskIds: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
2266
- url: z.ZodOptional<z.ZodString>;
2267
2577
  handle: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2268
2578
  access: z.ZodOptional<z.ZodEnum<["public", "gated"]>>;
2269
2579
  route: z.ZodOptional<z.ZodEnum<["scraper", "monitor", "waiting_for_scraper"]>>;
@@ -2286,10 +2596,10 @@ declare const SourceUpdateSchema: z.ZodObject<{
2286
2596
  type?: "channel" | "group" | "profile" | "forum" | "site" | undefined;
2287
2597
  status?: "active" | "paused" | "closed" | "access_problem" | undefined;
2288
2598
  platform?: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web" | undefined;
2599
+ url?: string | undefined;
2289
2600
  tags?: string[] | undefined;
2290
2601
  missionIds?: string[] | undefined;
2291
2602
  taskIds?: string[] | undefined;
2292
- url?: string | undefined;
2293
2603
  handle?: string | undefined;
2294
2604
  access?: "public" | "gated" | undefined;
2295
2605
  route?: "monitor" | "scraper" | "waiting_for_scraper" | undefined;
@@ -2304,10 +2614,10 @@ declare const SourceUpdateSchema: z.ZodObject<{
2304
2614
  type?: "channel" | "group" | "profile" | "forum" | "site" | undefined;
2305
2615
  status?: "active" | "paused" | "closed" | "access_problem" | undefined;
2306
2616
  platform?: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web" | undefined;
2617
+ url?: string | undefined;
2307
2618
  tags?: string[] | undefined;
2308
2619
  missionIds?: string[] | undefined;
2309
2620
  taskIds?: string[] | undefined;
2310
- url?: string | undefined;
2311
2621
  handle?: string | undefined;
2312
2622
  access?: "public" | "gated" | undefined;
2313
2623
  route?: "monitor" | "scraper" | "waiting_for_scraper" | undefined;
@@ -2650,9 +2960,9 @@ declare const DataItemSchema: z.ZodObject<{
2650
2960
  _id: string;
2651
2961
  orgId: string;
2652
2962
  databaseId: string;
2963
+ sourceId: string;
2653
2964
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
2654
2965
  missionIds: string[];
2655
- sourceId: string;
2656
2966
  collectedAt: Date;
2657
2967
  collector: {
2658
2968
  type: "scout" | "analyst" | "scraper" | "agent";
@@ -2683,8 +2993,8 @@ declare const DataItemSchema: z.ZodObject<{
2683
2993
  _id: string;
2684
2994
  orgId: string;
2685
2995
  databaseId: string;
2686
- platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
2687
2996
  sourceId: string;
2997
+ platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
2688
2998
  collectedAt: Date;
2689
2999
  collector: {
2690
3000
  type: "scout" | "analyst" | "scraper" | "agent";
@@ -2782,9 +3092,9 @@ declare const DataItemCreateSchema: z.ZodObject<Omit<{
2782
3092
  createdAt: z.ZodDate;
2783
3093
  updatedAt: z.ZodDate;
2784
3094
  }, "createdAt" | "updatedAt" | "_id" | "orgId" | "databaseId">, "strip", z.ZodTypeAny, {
3095
+ sourceId: string;
2785
3096
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
2786
3097
  missionIds: string[];
2787
- sourceId: string;
2788
3098
  collectedAt: Date;
2789
3099
  collector: {
2790
3100
  type: "scout" | "analyst" | "scraper" | "agent";
@@ -2810,8 +3120,8 @@ declare const DataItemCreateSchema: z.ZodObject<Omit<{
2810
3120
  priorityFlag?: boolean | undefined;
2811
3121
  contentHash?: string | undefined;
2812
3122
  }, {
2813
- platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
2814
3123
  sourceId: string;
3124
+ platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
2815
3125
  collectedAt: Date;
2816
3126
  collector: {
2817
3127
  type: "scout" | "analyst" | "scraper" | "agent";
@@ -2839,10 +3149,10 @@ declare const DataItemCreateSchema: z.ZodObject<Omit<{
2839
3149
  contentHash?: string | undefined;
2840
3150
  }>;
2841
3151
  declare const DataItemUpdateSchema: z.ZodObject<{
2842
- taskId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3152
+ sourceId: z.ZodOptional<z.ZodString>;
2843
3153
  platform: z.ZodOptional<z.ZodEnum<["telegram", "facebook", "x", "tiktok", "instagram", "youtube", "whatsapp", "reddit", "discord", "linkedin", "threads", "vk", "snapchat", "web"]>>;
3154
+ taskId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2844
3155
  missionIds: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
2845
- sourceId: z.ZodOptional<z.ZodString>;
2846
3156
  collectedAt: z.ZodOptional<z.ZodDate>;
2847
3157
  publishedAt: z.ZodOptional<z.ZodOptional<z.ZodDate>>;
2848
3158
  collector: z.ZodOptional<z.ZodObject<{
@@ -2898,10 +3208,10 @@ declare const DataItemUpdateSchema: z.ZodObject<{
2898
3208
  priorityFlag: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
2899
3209
  contentHash: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2900
3210
  }, "strip", z.ZodTypeAny, {
2901
- taskId?: string | undefined;
3211
+ sourceId?: string | undefined;
2902
3212
  platform?: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web" | undefined;
3213
+ taskId?: string | undefined;
2903
3214
  missionIds?: string[] | undefined;
2904
- sourceId?: string | undefined;
2905
3215
  collectedAt?: Date | undefined;
2906
3216
  publishedAt?: Date | undefined;
2907
3217
  collector?: {
@@ -2926,10 +3236,10 @@ declare const DataItemUpdateSchema: z.ZodObject<{
2926
3236
  priorityFlag?: boolean | undefined;
2927
3237
  contentHash?: string | undefined;
2928
3238
  }, {
2929
- taskId?: string | undefined;
3239
+ sourceId?: string | undefined;
2930
3240
  platform?: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web" | undefined;
3241
+ taskId?: string | undefined;
2931
3242
  missionIds?: string[] | undefined;
2932
- sourceId?: string | undefined;
2933
3243
  collectedAt?: Date | undefined;
2934
3244
  publishedAt?: Date | undefined;
2935
3245
  collector?: {
@@ -2983,8 +3293,8 @@ declare const ScraperSchema: z.ZodObject<{
2983
3293
  _id: string;
2984
3294
  orgId: string;
2985
3295
  name: string;
2986
- version: string;
2987
3296
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
3297
+ version: string;
2988
3298
  sourceLimit: number;
2989
3299
  sourceCount: number;
2990
3300
  deletedAt?: Date | undefined;
@@ -2995,8 +3305,8 @@ declare const ScraperSchema: z.ZodObject<{
2995
3305
  _id: string;
2996
3306
  orgId: string;
2997
3307
  name: string;
2998
- version: string;
2999
3308
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
3309
+ version: string;
3000
3310
  sourceLimit: number;
3001
3311
  status?: "failed" | "deploying" | "running" | "degraded" | "stopped" | undefined;
3002
3312
  deletedAt?: Date | undefined;
@@ -3022,29 +3332,29 @@ declare const ScraperCreateSchema: z.ZodObject<Omit<{
3022
3332
  deletedAt: z.ZodOptional<z.ZodDate>;
3023
3333
  }, "status" | "createdAt" | "updatedAt" | "deletedAt" | "_id" | "orgId" | "sourceCount" | "deploymentId">, "strip", z.ZodTypeAny, {
3024
3334
  name: string;
3025
- version: string;
3026
3335
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
3336
+ version: string;
3027
3337
  sourceLimit: number;
3028
3338
  }, {
3029
3339
  name: string;
3030
- version: string;
3031
3340
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
3341
+ version: string;
3032
3342
  sourceLimit: number;
3033
3343
  }>;
3034
3344
  declare const ScraperUpdateSchema: z.ZodObject<{
3035
3345
  name: z.ZodOptional<z.ZodString>;
3036
- version: z.ZodOptional<z.ZodString>;
3037
3346
  platform: z.ZodOptional<z.ZodEnum<["telegram", "facebook", "x", "tiktok", "instagram", "youtube", "whatsapp", "reddit", "discord", "linkedin", "threads", "vk", "snapchat", "web"]>>;
3347
+ version: z.ZodOptional<z.ZodString>;
3038
3348
  sourceLimit: z.ZodOptional<z.ZodNumber>;
3039
3349
  }, "strip", z.ZodTypeAny, {
3040
3350
  name?: string | undefined;
3041
- version?: string | undefined;
3042
3351
  platform?: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web" | undefined;
3352
+ version?: string | undefined;
3043
3353
  sourceLimit?: number | undefined;
3044
3354
  }, {
3045
3355
  name?: string | undefined;
3046
- version?: string | undefined;
3047
3356
  platform?: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web" | undefined;
3357
+ version?: string | undefined;
3048
3358
  sourceLimit?: number | undefined;
3049
3359
  }>;
3050
3360
  type Scraper = z.infer<typeof ScraperSchema>;
@@ -3301,13 +3611,13 @@ declare const AuditLogSchema: z.ZodObject<{
3301
3611
  createdAt: Date;
3302
3612
  updatedAt: Date;
3303
3613
  _id: string;
3304
- actorUserId: string;
3305
- actingAsSystem: boolean;
3306
- action: string;
3307
3614
  target: {
3308
3615
  type: string;
3309
3616
  id: string;
3310
3617
  };
3618
+ actorUserId: string;
3619
+ actingAsSystem: boolean;
3620
+ action: string;
3311
3621
  deletedAt?: Date | undefined;
3312
3622
  orgId?: string | undefined;
3313
3623
  diff?: unknown;
@@ -3316,12 +3626,12 @@ declare const AuditLogSchema: z.ZodObject<{
3316
3626
  createdAt: Date;
3317
3627
  updatedAt: Date;
3318
3628
  _id: string;
3319
- actorUserId: string;
3320
- action: string;
3321
3629
  target: {
3322
3630
  type: string;
3323
3631
  id: string;
3324
3632
  };
3633
+ actorUserId: string;
3634
+ action: string;
3325
3635
  deletedAt?: Date | undefined;
3326
3636
  orgId?: string | undefined;
3327
3637
  actingAsSystem?: boolean | undefined;
@@ -3351,25 +3661,23 @@ declare const AuditLogCreateSchema: z.ZodObject<Omit<{
3351
3661
  } & {
3352
3662
  deletedAt: z.ZodOptional<z.ZodDate>;
3353
3663
  }, "at" | "createdAt" | "updatedAt" | "deletedAt" | "_id" | "orgId" | "actorUserId">, "strip", z.ZodTypeAny, {
3354
- actingAsSystem: boolean;
3355
- action: string;
3356
3664
  target: {
3357
3665
  type: string;
3358
3666
  id: string;
3359
3667
  };
3668
+ actingAsSystem: boolean;
3669
+ action: string;
3360
3670
  diff?: unknown;
3361
3671
  }, {
3362
- action: string;
3363
3672
  target: {
3364
3673
  type: string;
3365
3674
  id: string;
3366
3675
  };
3676
+ action: string;
3367
3677
  actingAsSystem?: boolean | undefined;
3368
3678
  diff?: unknown;
3369
3679
  }>;
3370
3680
  declare const AuditLogUpdateSchema: z.ZodObject<{
3371
- actingAsSystem: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
3372
- action: z.ZodOptional<z.ZodString>;
3373
3681
  target: z.ZodOptional<z.ZodObject<{
3374
3682
  type: z.ZodString;
3375
3683
  id: z.ZodString;
@@ -3380,22 +3688,24 @@ declare const AuditLogUpdateSchema: z.ZodObject<{
3380
3688
  type: string;
3381
3689
  id: string;
3382
3690
  }>>;
3691
+ actingAsSystem: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
3692
+ action: z.ZodOptional<z.ZodString>;
3383
3693
  diff: z.ZodOptional<z.ZodOptional<z.ZodUnknown>>;
3384
3694
  }, "strip", z.ZodTypeAny, {
3385
- actingAsSystem?: boolean | undefined;
3386
- action?: string | undefined;
3387
3695
  target?: {
3388
3696
  type: string;
3389
3697
  id: string;
3390
3698
  } | undefined;
3391
- diff?: unknown;
3392
- }, {
3393
3699
  actingAsSystem?: boolean | undefined;
3394
3700
  action?: string | undefined;
3395
- target?: {
3701
+ diff?: unknown;
3702
+ }, {
3703
+ target?: {
3396
3704
  type: string;
3397
3705
  id: string;
3398
3706
  } | undefined;
3707
+ actingAsSystem?: boolean | undefined;
3708
+ action?: string | undefined;
3399
3709
  diff?: unknown;
3400
3710
  }>;
3401
3711
  type AuditLog = z.infer<typeof AuditLogSchema>;
@@ -3515,6 +3825,23 @@ declare const AgentSessionSchema: z.ZodObject<{
3515
3825
  tokens?: number | undefined;
3516
3826
  costUsd?: number | undefined;
3517
3827
  }>>;
3828
+ /** The task's capture window as dates, fixed when the session started (`last_days` counted back from then). */
3829
+ captureWindow: z.ZodOptional<z.ZodEffects<z.ZodObject<{
3830
+ start: z.ZodDate;
3831
+ end: z.ZodDate;
3832
+ }, "strip", z.ZodTypeAny, {
3833
+ start: Date;
3834
+ end: Date;
3835
+ }, {
3836
+ start: Date;
3837
+ end: Date;
3838
+ }>, {
3839
+ start: Date;
3840
+ end: Date;
3841
+ }, {
3842
+ start: Date;
3843
+ end: Date;
3844
+ }>>;
3518
3845
  /** Mode-specific engine state (search plan cursor, monitor queue). Opaque to clients. */
3519
3846
  state: z.ZodOptional<z.ZodUnknown>;
3520
3847
  } & {
@@ -3526,11 +3853,11 @@ declare const AgentSessionSchema: z.ZodObject<{
3526
3853
  updatedAt: Date;
3527
3854
  _id: string;
3528
3855
  orgId: string;
3856
+ mode: "monitor" | "discovery";
3529
3857
  missionId: string;
3530
3858
  taskId: string;
3531
- userId: string;
3532
3859
  assignmentId: string;
3533
- mode: "monitor" | "discovery";
3860
+ userId: string;
3534
3861
  startedAt: Date;
3535
3862
  lastActivityAt: Date;
3536
3863
  activeMinutes: number;
@@ -3552,6 +3879,10 @@ declare const AgentSessionSchema: z.ZodObject<{
3552
3879
  tokens: number;
3553
3880
  costUsd: number;
3554
3881
  };
3882
+ captureWindow?: {
3883
+ start: Date;
3884
+ end: Date;
3885
+ } | undefined;
3555
3886
  endedAt?: Date | undefined;
3556
3887
  state?: unknown;
3557
3888
  }, {
@@ -3559,14 +3890,18 @@ declare const AgentSessionSchema: z.ZodObject<{
3559
3890
  updatedAt: Date;
3560
3891
  _id: string;
3561
3892
  orgId: string;
3893
+ mode: "monitor" | "discovery";
3562
3894
  missionId: string;
3563
3895
  taskId: string;
3564
- userId: string;
3565
3896
  assignmentId: string;
3566
- mode: "monitor" | "discovery";
3897
+ userId: string;
3567
3898
  startedAt: Date;
3568
3899
  lastActivityAt: Date;
3569
3900
  status?: "active" | "paused" | "ended" | undefined;
3901
+ captureWindow?: {
3902
+ start: Date;
3903
+ end: Date;
3904
+ } | undefined;
3570
3905
  endedAt?: Date | undefined;
3571
3906
  activeMinutes?: number | undefined;
3572
3907
  lastSeq?: number | undefined;
@@ -3652,6 +3987,23 @@ declare const AgentSessionCreateSchema: z.ZodObject<Omit<{
3652
3987
  tokens?: number | undefined;
3653
3988
  costUsd?: number | undefined;
3654
3989
  }>>;
3990
+ /** The task's capture window as dates, fixed when the session started (`last_days` counted back from then). */
3991
+ captureWindow: z.ZodOptional<z.ZodEffects<z.ZodObject<{
3992
+ start: z.ZodDate;
3993
+ end: z.ZodDate;
3994
+ }, "strip", z.ZodTypeAny, {
3995
+ start: Date;
3996
+ end: Date;
3997
+ }, {
3998
+ start: Date;
3999
+ end: Date;
4000
+ }>, {
4001
+ start: Date;
4002
+ end: Date;
4003
+ }, {
4004
+ start: Date;
4005
+ end: Date;
4006
+ }>>;
3655
4007
  /** Mode-specific engine state (search plan cursor, monitor queue). Opaque to clients. */
3656
4008
  state: z.ZodOptional<z.ZodUnknown>;
3657
4009
  } & {
@@ -3659,11 +4011,11 @@ declare const AgentSessionCreateSchema: z.ZodObject<Omit<{
3659
4011
  updatedAt: z.ZodDate;
3660
4012
  }, "createdAt" | "updatedAt" | "_id" | "orgId">, "strip", z.ZodTypeAny, {
3661
4013
  status: "active" | "paused" | "ended";
4014
+ mode: "monitor" | "discovery";
3662
4015
  missionId: string;
3663
4016
  taskId: string;
3664
- userId: string;
3665
4017
  assignmentId: string;
3666
- mode: "monitor" | "discovery";
4018
+ userId: string;
3667
4019
  startedAt: Date;
3668
4020
  lastActivityAt: Date;
3669
4021
  activeMinutes: number;
@@ -3685,17 +4037,25 @@ declare const AgentSessionCreateSchema: z.ZodObject<Omit<{
3685
4037
  tokens: number;
3686
4038
  costUsd: number;
3687
4039
  };
4040
+ captureWindow?: {
4041
+ start: Date;
4042
+ end: Date;
4043
+ } | undefined;
3688
4044
  endedAt?: Date | undefined;
3689
4045
  state?: unknown;
3690
4046
  }, {
4047
+ mode: "monitor" | "discovery";
3691
4048
  missionId: string;
3692
4049
  taskId: string;
3693
- userId: string;
3694
4050
  assignmentId: string;
3695
- mode: "monitor" | "discovery";
4051
+ userId: string;
3696
4052
  startedAt: Date;
3697
4053
  lastActivityAt: Date;
3698
4054
  status?: "active" | "paused" | "ended" | undefined;
4055
+ captureWindow?: {
4056
+ start: Date;
4057
+ end: Date;
4058
+ } | undefined;
3699
4059
  endedAt?: Date | undefined;
3700
4060
  activeMinutes?: number | undefined;
3701
4061
  lastSeq?: number | undefined;
@@ -3720,12 +4080,28 @@ declare const AgentSessionCreateSchema: z.ZodObject<Omit<{
3720
4080
  }>;
3721
4081
  declare const AgentSessionUpdateSchema: z.ZodObject<{
3722
4082
  status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["active", "paused", "ended"]>>>;
4083
+ mode: z.ZodOptional<z.ZodEnum<["discovery", "monitor"]>>;
3723
4084
  missionId: z.ZodOptional<z.ZodString>;
4085
+ captureWindow: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodObject<{
4086
+ start: z.ZodDate;
4087
+ end: z.ZodDate;
4088
+ }, "strip", z.ZodTypeAny, {
4089
+ start: Date;
4090
+ end: Date;
4091
+ }, {
4092
+ start: Date;
4093
+ end: Date;
4094
+ }>, {
4095
+ start: Date;
4096
+ end: Date;
4097
+ }, {
4098
+ start: Date;
4099
+ end: Date;
4100
+ }>>>;
3724
4101
  taskId: z.ZodOptional<z.ZodString>;
3725
4102
  endedAt: z.ZodOptional<z.ZodOptional<z.ZodDate>>;
3726
- userId: z.ZodOptional<z.ZodString>;
3727
4103
  assignmentId: z.ZodOptional<z.ZodString>;
3728
- mode: z.ZodOptional<z.ZodEnum<["discovery", "monitor"]>>;
4104
+ userId: z.ZodOptional<z.ZodString>;
3729
4105
  startedAt: z.ZodOptional<z.ZodDate>;
3730
4106
  lastActivityAt: z.ZodOptional<z.ZodDate>;
3731
4107
  activeMinutes: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
@@ -3780,12 +4156,16 @@ declare const AgentSessionUpdateSchema: z.ZodObject<{
3780
4156
  state: z.ZodOptional<z.ZodOptional<z.ZodUnknown>>;
3781
4157
  }, "strip", z.ZodTypeAny, {
3782
4158
  status?: "active" | "paused" | "ended" | undefined;
4159
+ mode?: "monitor" | "discovery" | undefined;
3783
4160
  missionId?: string | undefined;
4161
+ captureWindow?: {
4162
+ start: Date;
4163
+ end: Date;
4164
+ } | undefined;
3784
4165
  taskId?: string | undefined;
3785
4166
  endedAt?: Date | undefined;
3786
- userId?: string | undefined;
3787
4167
  assignmentId?: string | undefined;
3788
- mode?: "monitor" | "discovery" | undefined;
4168
+ userId?: string | undefined;
3789
4169
  startedAt?: Date | undefined;
3790
4170
  lastActivityAt?: Date | undefined;
3791
4171
  activeMinutes?: number | undefined;
@@ -3810,12 +4190,16 @@ declare const AgentSessionUpdateSchema: z.ZodObject<{
3810
4190
  state?: unknown;
3811
4191
  }, {
3812
4192
  status?: "active" | "paused" | "ended" | undefined;
4193
+ mode?: "monitor" | "discovery" | undefined;
3813
4194
  missionId?: string | undefined;
4195
+ captureWindow?: {
4196
+ start: Date;
4197
+ end: Date;
4198
+ } | undefined;
3814
4199
  taskId?: string | undefined;
3815
4200
  endedAt?: Date | undefined;
3816
- userId?: string | undefined;
3817
4201
  assignmentId?: string | undefined;
3818
- mode?: "monitor" | "discovery" | undefined;
4202
+ userId?: string | undefined;
3819
4203
  startedAt?: Date | undefined;
3820
4204
  lastActivityAt?: Date | undefined;
3821
4205
  activeMinutes?: number | undefined;
@@ -3850,14 +4234,14 @@ declare const OpenLinkCardSchema: z.ZodObject<{
3850
4234
  label: z.ZodString;
3851
4235
  platform: z.ZodOptional<z.ZodEnum<["telegram", "facebook", "x", "tiktok", "instagram", "youtube", "whatsapp", "reddit", "discord", "linkedin", "threads", "vk", "snapchat", "web"]>>;
3852
4236
  }, "strip", z.ZodTypeAny, {
3853
- kind: "open_link";
3854
4237
  url: string;
3855
4238
  label: string;
4239
+ kind: "open_link";
3856
4240
  platform?: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web" | undefined;
3857
4241
  }, {
3858
- kind: "open_link";
3859
4242
  url: string;
3860
4243
  label: string;
4244
+ kind: "open_link";
3861
4245
  platform?: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web" | undefined;
3862
4246
  }>;
3863
4247
  declare const CapturePromptCardSchema: z.ZodObject<{
@@ -3880,20 +4264,20 @@ declare const SourceResultCardSchema: z.ZodObject<{
3880
4264
  score: z.ZodOptional<z.ZodNumber>;
3881
4265
  }, "strip", z.ZodTypeAny, {
3882
4266
  name: string;
3883
- kind: "source_result";
3884
4267
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
4268
+ kind: "source_result";
3885
4269
  outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
3886
4270
  reason: string;
3887
- score?: number | undefined;
3888
4271
  url?: string | undefined;
4272
+ score?: number | undefined;
3889
4273
  }, {
3890
4274
  name: string;
3891
- kind: "source_result";
3892
4275
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
4276
+ kind: "source_result";
3893
4277
  outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
3894
4278
  reason: string;
3895
- score?: number | undefined;
3896
4279
  url?: string | undefined;
4280
+ score?: number | undefined;
3897
4281
  }>;
3898
4282
  declare const ItemResultCardSchema: z.ZodObject<{
3899
4283
  kind: z.ZodLiteral<"item_result">;
@@ -3902,15 +4286,15 @@ declare const ItemResultCardSchema: z.ZodObject<{
3902
4286
  priority: z.ZodBoolean;
3903
4287
  publishedAt: z.ZodOptional<z.ZodDate>;
3904
4288
  }, "strip", z.ZodTypeAny, {
4289
+ platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
3905
4290
  priority: boolean;
3906
4291
  kind: "item_result";
3907
- platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
3908
4292
  excerpt: string;
3909
4293
  publishedAt?: Date | undefined;
3910
4294
  }, {
4295
+ platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
3911
4296
  priority: boolean;
3912
4297
  kind: "item_result";
3913
- platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
3914
4298
  excerpt: string;
3915
4299
  publishedAt?: Date | undefined;
3916
4300
  }>;
@@ -3918,11 +4302,11 @@ declare const QuickReplyOptionSchema: z.ZodObject<{
3918
4302
  id: z.ZodString;
3919
4303
  label: z.ZodString;
3920
4304
  }, "strip", z.ZodTypeAny, {
3921
- id: string;
3922
4305
  label: string;
3923
- }, {
3924
4306
  id: string;
4307
+ }, {
3925
4308
  label: string;
4309
+ id: string;
3926
4310
  }>;
3927
4311
  type QuickReplyOption = z.infer<typeof QuickReplyOptionSchema>;
3928
4312
  declare const QuickRepliesCardSchema: z.ZodObject<{
@@ -3932,23 +4316,23 @@ declare const QuickRepliesCardSchema: z.ZodObject<{
3932
4316
  id: z.ZodString;
3933
4317
  label: z.ZodString;
3934
4318
  }, "strip", z.ZodTypeAny, {
3935
- id: string;
3936
4319
  label: string;
3937
- }, {
3938
4320
  id: string;
4321
+ }, {
3939
4322
  label: string;
4323
+ id: string;
3940
4324
  }>, "many">;
3941
4325
  }, "strip", z.ZodTypeAny, {
3942
4326
  options: {
3943
- id: string;
3944
4327
  label: string;
4328
+ id: string;
3945
4329
  }[];
3946
4330
  kind: "quick_replies";
3947
4331
  questionId: string;
3948
4332
  }, {
3949
4333
  options: {
3950
- id: string;
3951
4334
  label: string;
4335
+ id: string;
3952
4336
  }[];
3953
4337
  kind: "quick_replies";
3954
4338
  questionId: string;
@@ -3958,13 +4342,13 @@ declare const HoursProposalCardSchema: z.ZodObject<{
3958
4342
  minutes: z.ZodNumber;
3959
4343
  note: z.ZodString;
3960
4344
  }, "strip", z.ZodTypeAny, {
4345
+ note: string;
3961
4346
  kind: "hours_proposal";
3962
4347
  minutes: number;
3963
- note: string;
3964
4348
  }, {
4349
+ note: string;
3965
4350
  kind: "hours_proposal";
3966
4351
  minutes: number;
3967
- note: string;
3968
4352
  }>;
3969
4353
  declare const CaptureThumbCardSchema: z.ZodObject<{
3970
4354
  kind: z.ZodLiteral<"capture_thumb">;
@@ -3982,14 +4366,14 @@ declare const AgentCardSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
3982
4366
  label: z.ZodString;
3983
4367
  platform: z.ZodOptional<z.ZodEnum<["telegram", "facebook", "x", "tiktok", "instagram", "youtube", "whatsapp", "reddit", "discord", "linkedin", "threads", "vk", "snapchat", "web"]>>;
3984
4368
  }, "strip", z.ZodTypeAny, {
3985
- kind: "open_link";
3986
4369
  url: string;
3987
4370
  label: string;
4371
+ kind: "open_link";
3988
4372
  platform?: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web" | undefined;
3989
4373
  }, {
3990
- kind: "open_link";
3991
4374
  url: string;
3992
4375
  label: string;
4376
+ kind: "open_link";
3993
4377
  platform?: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web" | undefined;
3994
4378
  }>, z.ZodObject<{
3995
4379
  kind: z.ZodLiteral<"capture_prompt">;
@@ -4010,20 +4394,20 @@ declare const AgentCardSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
4010
4394
  score: z.ZodOptional<z.ZodNumber>;
4011
4395
  }, "strip", z.ZodTypeAny, {
4012
4396
  name: string;
4013
- kind: "source_result";
4014
4397
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
4398
+ kind: "source_result";
4015
4399
  outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
4016
4400
  reason: string;
4017
- score?: number | undefined;
4018
4401
  url?: string | undefined;
4402
+ score?: number | undefined;
4019
4403
  }, {
4020
4404
  name: string;
4021
- kind: "source_result";
4022
4405
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
4406
+ kind: "source_result";
4023
4407
  outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
4024
4408
  reason: string;
4025
- score?: number | undefined;
4026
4409
  url?: string | undefined;
4410
+ score?: number | undefined;
4027
4411
  }>, z.ZodObject<{
4028
4412
  kind: z.ZodLiteral<"item_result">;
4029
4413
  excerpt: z.ZodString;
@@ -4031,15 +4415,15 @@ declare const AgentCardSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
4031
4415
  priority: z.ZodBoolean;
4032
4416
  publishedAt: z.ZodOptional<z.ZodDate>;
4033
4417
  }, "strip", z.ZodTypeAny, {
4418
+ platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
4034
4419
  priority: boolean;
4035
4420
  kind: "item_result";
4036
- platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
4037
4421
  excerpt: string;
4038
4422
  publishedAt?: Date | undefined;
4039
4423
  }, {
4424
+ platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
4040
4425
  priority: boolean;
4041
4426
  kind: "item_result";
4042
- platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
4043
4427
  excerpt: string;
4044
4428
  publishedAt?: Date | undefined;
4045
4429
  }>, z.ZodObject<{
@@ -4049,23 +4433,23 @@ declare const AgentCardSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
4049
4433
  id: z.ZodString;
4050
4434
  label: z.ZodString;
4051
4435
  }, "strip", z.ZodTypeAny, {
4052
- id: string;
4053
4436
  label: string;
4054
- }, {
4055
4437
  id: string;
4438
+ }, {
4056
4439
  label: string;
4440
+ id: string;
4057
4441
  }>, "many">;
4058
4442
  }, "strip", z.ZodTypeAny, {
4059
4443
  options: {
4060
- id: string;
4061
4444
  label: string;
4445
+ id: string;
4062
4446
  }[];
4063
4447
  kind: "quick_replies";
4064
4448
  questionId: string;
4065
4449
  }, {
4066
4450
  options: {
4067
- id: string;
4068
4451
  label: string;
4452
+ id: string;
4069
4453
  }[];
4070
4454
  kind: "quick_replies";
4071
4455
  questionId: string;
@@ -4074,13 +4458,13 @@ declare const AgentCardSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
4074
4458
  minutes: z.ZodNumber;
4075
4459
  note: z.ZodString;
4076
4460
  }, "strip", z.ZodTypeAny, {
4461
+ note: string;
4077
4462
  kind: "hours_proposal";
4078
4463
  minutes: number;
4079
- note: string;
4080
4464
  }, {
4465
+ note: string;
4081
4466
  kind: "hours_proposal";
4082
4467
  minutes: number;
4083
- note: string;
4084
4468
  }>, z.ZodObject<{
4085
4469
  kind: z.ZodLiteral<"capture_thumb">;
4086
4470
  captureId: z.ZodString;
@@ -4108,14 +4492,14 @@ declare const AgentMessageSchema: z.ZodObject<{
4108
4492
  label: z.ZodString;
4109
4493
  platform: z.ZodOptional<z.ZodEnum<["telegram", "facebook", "x", "tiktok", "instagram", "youtube", "whatsapp", "reddit", "discord", "linkedin", "threads", "vk", "snapchat", "web"]>>;
4110
4494
  }, "strip", z.ZodTypeAny, {
4111
- kind: "open_link";
4112
4495
  url: string;
4113
4496
  label: string;
4497
+ kind: "open_link";
4114
4498
  platform?: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web" | undefined;
4115
4499
  }, {
4116
- kind: "open_link";
4117
4500
  url: string;
4118
4501
  label: string;
4502
+ kind: "open_link";
4119
4503
  platform?: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web" | undefined;
4120
4504
  }>, z.ZodObject<{
4121
4505
  kind: z.ZodLiteral<"capture_prompt">;
@@ -4136,20 +4520,20 @@ declare const AgentMessageSchema: z.ZodObject<{
4136
4520
  score: z.ZodOptional<z.ZodNumber>;
4137
4521
  }, "strip", z.ZodTypeAny, {
4138
4522
  name: string;
4139
- kind: "source_result";
4140
4523
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
4524
+ kind: "source_result";
4141
4525
  outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
4142
4526
  reason: string;
4143
- score?: number | undefined;
4144
4527
  url?: string | undefined;
4528
+ score?: number | undefined;
4145
4529
  }, {
4146
4530
  name: string;
4147
- kind: "source_result";
4148
4531
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
4532
+ kind: "source_result";
4149
4533
  outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
4150
4534
  reason: string;
4151
- score?: number | undefined;
4152
4535
  url?: string | undefined;
4536
+ score?: number | undefined;
4153
4537
  }>, z.ZodObject<{
4154
4538
  kind: z.ZodLiteral<"item_result">;
4155
4539
  excerpt: z.ZodString;
@@ -4157,15 +4541,15 @@ declare const AgentMessageSchema: z.ZodObject<{
4157
4541
  priority: z.ZodBoolean;
4158
4542
  publishedAt: z.ZodOptional<z.ZodDate>;
4159
4543
  }, "strip", z.ZodTypeAny, {
4544
+ platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
4160
4545
  priority: boolean;
4161
4546
  kind: "item_result";
4162
- platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
4163
4547
  excerpt: string;
4164
4548
  publishedAt?: Date | undefined;
4165
4549
  }, {
4550
+ platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
4166
4551
  priority: boolean;
4167
4552
  kind: "item_result";
4168
- platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
4169
4553
  excerpt: string;
4170
4554
  publishedAt?: Date | undefined;
4171
4555
  }>, z.ZodObject<{
@@ -4175,23 +4559,23 @@ declare const AgentMessageSchema: z.ZodObject<{
4175
4559
  id: z.ZodString;
4176
4560
  label: z.ZodString;
4177
4561
  }, "strip", z.ZodTypeAny, {
4178
- id: string;
4179
4562
  label: string;
4180
- }, {
4181
4563
  id: string;
4564
+ }, {
4182
4565
  label: string;
4566
+ id: string;
4183
4567
  }>, "many">;
4184
4568
  }, "strip", z.ZodTypeAny, {
4185
4569
  options: {
4186
- id: string;
4187
4570
  label: string;
4571
+ id: string;
4188
4572
  }[];
4189
4573
  kind: "quick_replies";
4190
4574
  questionId: string;
4191
4575
  }, {
4192
4576
  options: {
4193
- id: string;
4194
4577
  label: string;
4578
+ id: string;
4195
4579
  }[];
4196
4580
  kind: "quick_replies";
4197
4581
  questionId: string;
@@ -4200,13 +4584,13 @@ declare const AgentMessageSchema: z.ZodObject<{
4200
4584
  minutes: z.ZodNumber;
4201
4585
  note: z.ZodString;
4202
4586
  }, "strip", z.ZodTypeAny, {
4587
+ note: string;
4203
4588
  kind: "hours_proposal";
4204
4589
  minutes: number;
4205
- note: string;
4206
4590
  }, {
4591
+ note: string;
4207
4592
  kind: "hours_proposal";
4208
4593
  minutes: number;
4209
- note: string;
4210
4594
  }>, z.ZodObject<{
4211
4595
  kind: z.ZodLiteral<"capture_thumb">;
4212
4596
  captureId: z.ZodString;
@@ -4231,38 +4615,38 @@ declare const AgentMessageSchema: z.ZodObject<{
4231
4615
  seq: number;
4232
4616
  role: "system" | "agent" | "person";
4233
4617
  cards: ({
4234
- kind: "open_link";
4235
4618
  url: string;
4236
4619
  label: string;
4620
+ kind: "open_link";
4237
4621
  platform?: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web" | undefined;
4238
4622
  } | {
4239
4623
  kind: "capture_prompt";
4240
4624
  hint: string;
4241
4625
  } | {
4242
4626
  name: string;
4243
- kind: "source_result";
4244
4627
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
4628
+ kind: "source_result";
4245
4629
  outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
4246
4630
  reason: string;
4247
- score?: number | undefined;
4248
4631
  url?: string | undefined;
4632
+ score?: number | undefined;
4249
4633
  } | {
4634
+ platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
4250
4635
  priority: boolean;
4251
4636
  kind: "item_result";
4252
- platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
4253
4637
  excerpt: string;
4254
4638
  publishedAt?: Date | undefined;
4255
4639
  } | {
4256
4640
  options: {
4257
- id: string;
4258
4641
  label: string;
4642
+ id: string;
4259
4643
  }[];
4260
4644
  kind: "quick_replies";
4261
4645
  questionId: string;
4262
4646
  } | {
4647
+ note: string;
4263
4648
  kind: "hours_proposal";
4264
4649
  minutes: number;
4265
- note: string;
4266
4650
  } | {
4267
4651
  kind: "capture_thumb";
4268
4652
  captureId: string;
@@ -4278,38 +4662,38 @@ declare const AgentMessageSchema: z.ZodObject<{
4278
4662
  seq: number;
4279
4663
  role: "system" | "agent" | "person";
4280
4664
  cards?: ({
4281
- kind: "open_link";
4282
4665
  url: string;
4283
4666
  label: string;
4667
+ kind: "open_link";
4284
4668
  platform?: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web" | undefined;
4285
4669
  } | {
4286
4670
  kind: "capture_prompt";
4287
4671
  hint: string;
4288
4672
  } | {
4289
4673
  name: string;
4290
- kind: "source_result";
4291
4674
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
4675
+ kind: "source_result";
4292
4676
  outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
4293
4677
  reason: string;
4294
- score?: number | undefined;
4295
4678
  url?: string | undefined;
4679
+ score?: number | undefined;
4296
4680
  } | {
4681
+ platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
4297
4682
  priority: boolean;
4298
4683
  kind: "item_result";
4299
- platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
4300
4684
  excerpt: string;
4301
4685
  publishedAt?: Date | undefined;
4302
4686
  } | {
4303
4687
  options: {
4304
- id: string;
4305
4688
  label: string;
4689
+ id: string;
4306
4690
  }[];
4307
4691
  kind: "quick_replies";
4308
4692
  questionId: string;
4309
4693
  } | {
4694
+ note: string;
4310
4695
  kind: "hours_proposal";
4311
4696
  minutes: number;
4312
- note: string;
4313
4697
  } | {
4314
4698
  kind: "capture_thumb";
4315
4699
  captureId: string;
@@ -4330,14 +4714,14 @@ declare const AgentMessageCreateSchema: z.ZodObject<Omit<{
4330
4714
  label: z.ZodString;
4331
4715
  platform: z.ZodOptional<z.ZodEnum<["telegram", "facebook", "x", "tiktok", "instagram", "youtube", "whatsapp", "reddit", "discord", "linkedin", "threads", "vk", "snapchat", "web"]>>;
4332
4716
  }, "strip", z.ZodTypeAny, {
4333
- kind: "open_link";
4334
4717
  url: string;
4335
4718
  label: string;
4719
+ kind: "open_link";
4336
4720
  platform?: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web" | undefined;
4337
4721
  }, {
4338
- kind: "open_link";
4339
4722
  url: string;
4340
4723
  label: string;
4724
+ kind: "open_link";
4341
4725
  platform?: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web" | undefined;
4342
4726
  }>, z.ZodObject<{
4343
4727
  kind: z.ZodLiteral<"capture_prompt">;
@@ -4358,20 +4742,20 @@ declare const AgentMessageCreateSchema: z.ZodObject<Omit<{
4358
4742
  score: z.ZodOptional<z.ZodNumber>;
4359
4743
  }, "strip", z.ZodTypeAny, {
4360
4744
  name: string;
4361
- kind: "source_result";
4362
4745
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
4746
+ kind: "source_result";
4363
4747
  outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
4364
4748
  reason: string;
4365
- score?: number | undefined;
4366
4749
  url?: string | undefined;
4750
+ score?: number | undefined;
4367
4751
  }, {
4368
4752
  name: string;
4369
- kind: "source_result";
4370
4753
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
4754
+ kind: "source_result";
4371
4755
  outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
4372
4756
  reason: string;
4373
- score?: number | undefined;
4374
4757
  url?: string | undefined;
4758
+ score?: number | undefined;
4375
4759
  }>, z.ZodObject<{
4376
4760
  kind: z.ZodLiteral<"item_result">;
4377
4761
  excerpt: z.ZodString;
@@ -4379,15 +4763,15 @@ declare const AgentMessageCreateSchema: z.ZodObject<Omit<{
4379
4763
  priority: z.ZodBoolean;
4380
4764
  publishedAt: z.ZodOptional<z.ZodDate>;
4381
4765
  }, "strip", z.ZodTypeAny, {
4766
+ platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
4382
4767
  priority: boolean;
4383
4768
  kind: "item_result";
4384
- platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
4385
4769
  excerpt: string;
4386
4770
  publishedAt?: Date | undefined;
4387
4771
  }, {
4772
+ platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
4388
4773
  priority: boolean;
4389
4774
  kind: "item_result";
4390
- platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
4391
4775
  excerpt: string;
4392
4776
  publishedAt?: Date | undefined;
4393
4777
  }>, z.ZodObject<{
@@ -4397,23 +4781,23 @@ declare const AgentMessageCreateSchema: z.ZodObject<Omit<{
4397
4781
  id: z.ZodString;
4398
4782
  label: z.ZodString;
4399
4783
  }, "strip", z.ZodTypeAny, {
4400
- id: string;
4401
4784
  label: string;
4402
- }, {
4403
4785
  id: string;
4786
+ }, {
4404
4787
  label: string;
4788
+ id: string;
4405
4789
  }>, "many">;
4406
4790
  }, "strip", z.ZodTypeAny, {
4407
4791
  options: {
4408
- id: string;
4409
4792
  label: string;
4793
+ id: string;
4410
4794
  }[];
4411
4795
  kind: "quick_replies";
4412
4796
  questionId: string;
4413
4797
  }, {
4414
4798
  options: {
4415
- id: string;
4416
4799
  label: string;
4800
+ id: string;
4417
4801
  }[];
4418
4802
  kind: "quick_replies";
4419
4803
  questionId: string;
@@ -4422,13 +4806,13 @@ declare const AgentMessageCreateSchema: z.ZodObject<Omit<{
4422
4806
  minutes: z.ZodNumber;
4423
4807
  note: z.ZodString;
4424
4808
  }, "strip", z.ZodTypeAny, {
4809
+ note: string;
4425
4810
  kind: "hours_proposal";
4426
4811
  minutes: number;
4427
- note: string;
4428
4812
  }, {
4813
+ note: string;
4429
4814
  kind: "hours_proposal";
4430
4815
  minutes: number;
4431
- note: string;
4432
4816
  }>, z.ZodObject<{
4433
4817
  kind: z.ZodLiteral<"capture_thumb">;
4434
4818
  captureId: z.ZodString;
@@ -4449,38 +4833,38 @@ declare const AgentMessageCreateSchema: z.ZodObject<Omit<{
4449
4833
  seq: number;
4450
4834
  role: "system" | "agent" | "person";
4451
4835
  cards: ({
4452
- kind: "open_link";
4453
4836
  url: string;
4454
4837
  label: string;
4838
+ kind: "open_link";
4455
4839
  platform?: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web" | undefined;
4456
4840
  } | {
4457
4841
  kind: "capture_prompt";
4458
4842
  hint: string;
4459
4843
  } | {
4460
4844
  name: string;
4461
- kind: "source_result";
4462
4845
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
4846
+ kind: "source_result";
4463
4847
  outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
4464
4848
  reason: string;
4465
- score?: number | undefined;
4466
4849
  url?: string | undefined;
4850
+ score?: number | undefined;
4467
4851
  } | {
4852
+ platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
4468
4853
  priority: boolean;
4469
4854
  kind: "item_result";
4470
- platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
4471
4855
  excerpt: string;
4472
4856
  publishedAt?: Date | undefined;
4473
4857
  } | {
4474
4858
  options: {
4475
- id: string;
4476
4859
  label: string;
4860
+ id: string;
4477
4861
  }[];
4478
4862
  kind: "quick_replies";
4479
4863
  questionId: string;
4480
4864
  } | {
4865
+ note: string;
4481
4866
  kind: "hours_proposal";
4482
4867
  minutes: number;
4483
- note: string;
4484
4868
  } | {
4485
4869
  kind: "capture_thumb";
4486
4870
  captureId: string;
@@ -4492,38 +4876,38 @@ declare const AgentMessageCreateSchema: z.ZodObject<Omit<{
4492
4876
  seq: number;
4493
4877
  role: "system" | "agent" | "person";
4494
4878
  cards?: ({
4495
- kind: "open_link";
4496
4879
  url: string;
4497
4880
  label: string;
4881
+ kind: "open_link";
4498
4882
  platform?: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web" | undefined;
4499
4883
  } | {
4500
4884
  kind: "capture_prompt";
4501
4885
  hint: string;
4502
4886
  } | {
4503
4887
  name: string;
4504
- kind: "source_result";
4505
4888
  platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
4889
+ kind: "source_result";
4506
4890
  outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
4507
4891
  reason: string;
4508
- score?: number | undefined;
4509
4892
  url?: string | undefined;
4893
+ score?: number | undefined;
4510
4894
  } | {
4895
+ platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
4511
4896
  priority: boolean;
4512
4897
  kind: "item_result";
4513
- platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
4514
4898
  excerpt: string;
4515
4899
  publishedAt?: Date | undefined;
4516
4900
  } | {
4517
4901
  options: {
4518
- id: string;
4519
4902
  label: string;
4903
+ id: string;
4520
4904
  }[];
4521
4905
  kind: "quick_replies";
4522
4906
  questionId: string;
4523
4907
  } | {
4908
+ note: string;
4524
4909
  kind: "hours_proposal";
4525
4910
  minutes: number;
4526
- note: string;
4527
4911
  } | {
4528
4912
  kind: "capture_thumb";
4529
4913
  captureId: string;
@@ -4601,7 +4985,14 @@ type CaptureDomSummary = z.infer<typeof CaptureDomSummarySchema>;
4601
4985
  declare const CaptureSchema: z.ZodObject<{
4602
4986
  _id: z.ZodString;
4603
4987
  orgId: z.ZodString;
4604
- sessionId: z.ZodString;
4988
+ /** Legacy: captures uploaded into a live session. Task-tagged captures have none. */
4989
+ sessionId: z.ZodOptional<z.ZodString>;
4990
+ /** The assignment (and so the task) the person sent this capture for. */
4991
+ assignmentId: z.ZodOptional<z.ZodString>;
4992
+ taskId: z.ZodOptional<z.ZodString>;
4993
+ missionId: z.ZodOptional<z.ZodString>;
4994
+ /** Who sent it; used to work out their hours. */
4995
+ userId: z.ZodOptional<z.ZodString>;
4605
4996
  /** From `chrome.tabs`, never from page content. */
4606
4997
  url: z.ZodString;
4607
4998
  title: z.ZodString;
@@ -4686,6 +5077,10 @@ declare const CaptureSchema: z.ZodObject<{
4686
5077
  /** Validated `vision_extract` output; shape depends on session mode. */
4687
5078
  analysis: z.ZodOptional<z.ZodUnknown>;
4688
5079
  error: z.ZodOptional<z.ZodString>;
5080
+ /** Analysis attempts by the capture worker; it gives up (`failed`) after a few. */
5081
+ attempts: z.ZodDefault<z.ZodNumber>;
5082
+ /** When the worker claimed it (`analyzing`); an old claim is taken over after a restart. */
5083
+ claimedAt: z.ZodOptional<z.ZodDate>;
4689
5084
  /** Blob deleted and status set to `expired` after this instant (CAPTURE_RETENTION_DAYS). */
4690
5085
  expiresAt: z.ZodDate;
4691
5086
  } & {
@@ -4697,9 +5092,8 @@ declare const CaptureSchema: z.ZodObject<{
4697
5092
  updatedAt: Date;
4698
5093
  _id: string;
4699
5094
  orgId: string;
4700
- title: string;
4701
5095
  url: string;
4702
- sessionId: string;
5096
+ title: string;
4703
5097
  capturedAt: Date;
4704
5098
  imageRef: {
4705
5099
  bucket: string;
@@ -4709,8 +5103,14 @@ declare const CaptureSchema: z.ZodObject<{
4709
5103
  };
4710
5104
  sha256: string;
4711
5105
  domStatus: "ok" | "unavailable" | "truncated";
5106
+ attempts: number;
4712
5107
  expiresAt: Date;
4713
5108
  error?: string | undefined;
5109
+ missionId?: string | undefined;
5110
+ taskId?: string | undefined;
5111
+ assignmentId?: string | undefined;
5112
+ userId?: string | undefined;
5113
+ sessionId?: string | undefined;
4714
5114
  region?: {
4715
5115
  x: number;
4716
5116
  y: number;
@@ -4733,14 +5133,14 @@ declare const CaptureSchema: z.ZodObject<{
4733
5133
  lang?: string | undefined;
4734
5134
  } | undefined;
4735
5135
  analysis?: unknown;
5136
+ claimedAt?: Date | undefined;
4736
5137
  }, {
4737
5138
  createdAt: Date;
4738
5139
  updatedAt: Date;
4739
5140
  _id: string;
4740
5141
  orgId: string;
4741
- title: string;
4742
5142
  url: string;
4743
- sessionId: string;
5143
+ title: string;
4744
5144
  capturedAt: Date;
4745
5145
  imageRef: {
4746
5146
  bucket: string;
@@ -4752,6 +5152,11 @@ declare const CaptureSchema: z.ZodObject<{
4752
5152
  expiresAt: Date;
4753
5153
  status?: "failed" | "uploaded" | "analyzing" | "analyzed" | "expired" | undefined;
4754
5154
  error?: string | undefined;
5155
+ missionId?: string | undefined;
5156
+ taskId?: string | undefined;
5157
+ assignmentId?: string | undefined;
5158
+ userId?: string | undefined;
5159
+ sessionId?: string | undefined;
4755
5160
  region?: {
4756
5161
  x: number;
4757
5162
  y: number;
@@ -4775,11 +5180,20 @@ declare const CaptureSchema: z.ZodObject<{
4775
5180
  lang?: string | undefined;
4776
5181
  } | undefined;
4777
5182
  analysis?: unknown;
5183
+ attempts?: number | undefined;
5184
+ claimedAt?: Date | undefined;
4778
5185
  }>;
4779
5186
  declare const CaptureCreateSchema: z.ZodObject<Omit<{
4780
5187
  _id: z.ZodString;
4781
5188
  orgId: z.ZodString;
4782
- sessionId: z.ZodString;
5189
+ /** Legacy: captures uploaded into a live session. Task-tagged captures have none. */
5190
+ sessionId: z.ZodOptional<z.ZodString>;
5191
+ /** The assignment (and so the task) the person sent this capture for. */
5192
+ assignmentId: z.ZodOptional<z.ZodString>;
5193
+ taskId: z.ZodOptional<z.ZodString>;
5194
+ missionId: z.ZodOptional<z.ZodString>;
5195
+ /** Who sent it; used to work out their hours. */
5196
+ userId: z.ZodOptional<z.ZodString>;
4783
5197
  /** From `chrome.tabs`, never from page content. */
4784
5198
  url: z.ZodString;
4785
5199
  title: z.ZodString;
@@ -4864,6 +5278,10 @@ declare const CaptureCreateSchema: z.ZodObject<Omit<{
4864
5278
  /** Validated `vision_extract` output; shape depends on session mode. */
4865
5279
  analysis: z.ZodOptional<z.ZodUnknown>;
4866
5280
  error: z.ZodOptional<z.ZodString>;
5281
+ /** Analysis attempts by the capture worker; it gives up (`failed`) after a few. */
5282
+ attempts: z.ZodDefault<z.ZodNumber>;
5283
+ /** When the worker claimed it (`analyzing`); an old claim is taken over after a restart. */
5284
+ claimedAt: z.ZodOptional<z.ZodDate>;
4867
5285
  /** Blob deleted and status set to `expired` after this instant (CAPTURE_RETENTION_DAYS). */
4868
5286
  expiresAt: z.ZodDate;
4869
5287
  } & {
@@ -4871,9 +5289,8 @@ declare const CaptureCreateSchema: z.ZodObject<Omit<{
4871
5289
  updatedAt: z.ZodDate;
4872
5290
  }, "createdAt" | "updatedAt" | "_id" | "orgId">, "strip", z.ZodTypeAny, {
4873
5291
  status: "failed" | "uploaded" | "analyzing" | "analyzed" | "expired";
4874
- title: string;
4875
5292
  url: string;
4876
- sessionId: string;
5293
+ title: string;
4877
5294
  capturedAt: Date;
4878
5295
  imageRef: {
4879
5296
  bucket: string;
@@ -4883,8 +5300,14 @@ declare const CaptureCreateSchema: z.ZodObject<Omit<{
4883
5300
  };
4884
5301
  sha256: string;
4885
5302
  domStatus: "ok" | "unavailable" | "truncated";
5303
+ attempts: number;
4886
5304
  expiresAt: Date;
4887
5305
  error?: string | undefined;
5306
+ missionId?: string | undefined;
5307
+ taskId?: string | undefined;
5308
+ assignmentId?: string | undefined;
5309
+ userId?: string | undefined;
5310
+ sessionId?: string | undefined;
4888
5311
  region?: {
4889
5312
  x: number;
4890
5313
  y: number;
@@ -4907,10 +5330,10 @@ declare const CaptureCreateSchema: z.ZodObject<Omit<{
4907
5330
  lang?: string | undefined;
4908
5331
  } | undefined;
4909
5332
  analysis?: unknown;
5333
+ claimedAt?: Date | undefined;
4910
5334
  }, {
4911
- title: string;
4912
5335
  url: string;
4913
- sessionId: string;
5336
+ title: string;
4914
5337
  capturedAt: Date;
4915
5338
  imageRef: {
4916
5339
  bucket: string;
@@ -4922,6 +5345,11 @@ declare const CaptureCreateSchema: z.ZodObject<Omit<{
4922
5345
  expiresAt: Date;
4923
5346
  status?: "failed" | "uploaded" | "analyzing" | "analyzed" | "expired" | undefined;
4924
5347
  error?: string | undefined;
5348
+ missionId?: string | undefined;
5349
+ taskId?: string | undefined;
5350
+ assignmentId?: string | undefined;
5351
+ userId?: string | undefined;
5352
+ sessionId?: string | undefined;
4925
5353
  region?: {
4926
5354
  x: number;
4927
5355
  y: number;
@@ -4945,6 +5373,8 @@ declare const CaptureCreateSchema: z.ZodObject<Omit<{
4945
5373
  lang?: string | undefined;
4946
5374
  } | undefined;
4947
5375
  analysis?: unknown;
5376
+ attempts?: number | undefined;
5377
+ claimedAt?: Date | undefined;
4948
5378
  }>;
4949
5379
  type Capture = z.infer<typeof CaptureSchema>;
4950
5380
  type CaptureCreate = z.infer<typeof CaptureCreateSchema>;
@@ -5152,8 +5582,8 @@ declare const CaptureDomSnapshotSchema: z.ZodObject<{
5152
5582
  truncated: z.ZodBoolean;
5153
5583
  }, "strip", z.ZodTypeAny, {
5154
5584
  truncated: boolean;
5155
- title: string;
5156
5585
  url: string;
5586
+ title: string;
5157
5587
  blocks: {
5158
5588
  text: string;
5159
5589
  tag: string;
@@ -5185,8 +5615,8 @@ declare const CaptureDomSnapshotSchema: z.ZodObject<{
5185
5615
  lang?: string | undefined;
5186
5616
  }, {
5187
5617
  truncated: boolean;
5188
- title: string;
5189
5618
  url: string;
5619
+ title: string;
5190
5620
  blocks: {
5191
5621
  text: string;
5192
5622
  tag: string;
@@ -5269,7 +5699,7 @@ declare const LlmCallSchema: z.ZodObject<{
5269
5699
  createdAt: Date;
5270
5700
  updatedAt: Date;
5271
5701
  _id: string;
5272
- outcome: "ok" | "invalid_output" | "timeout" | "rate_limited" | "server_error" | "safety_block" | "budget_exceeded" | "breaker_open" | "auth_error";
5702
+ outcome: "rate_limited" | "ok" | "invalid_output" | "timeout" | "server_error" | "safety_block" | "budget_exceeded" | "breaker_open" | "auth_error";
5273
5703
  capability: "plan" | "vision_extract" | "judge" | "chat";
5274
5704
  provider: "gemini" | "anthropic" | "openai";
5275
5705
  model: string;
@@ -5290,7 +5720,7 @@ declare const LlmCallSchema: z.ZodObject<{
5290
5720
  createdAt: Date;
5291
5721
  updatedAt: Date;
5292
5722
  _id: string;
5293
- outcome: "ok" | "invalid_output" | "timeout" | "rate_limited" | "server_error" | "safety_block" | "budget_exceeded" | "breaker_open" | "auth_error";
5723
+ outcome: "rate_limited" | "ok" | "invalid_output" | "timeout" | "server_error" | "safety_block" | "budget_exceeded" | "breaker_open" | "auth_error";
5294
5724
  capability: "plan" | "vision_extract" | "judge" | "chat";
5295
5725
  provider: "gemini" | "anthropic" | "openai";
5296
5726
  model: string;
@@ -5341,7 +5771,7 @@ declare const LlmCallCreateSchema: z.ZodObject<Omit<{
5341
5771
  createdAt: z.ZodDate;
5342
5772
  updatedAt: z.ZodDate;
5343
5773
  }, "createdAt" | "updatedAt" | "_id">, "strip", z.ZodTypeAny, {
5344
- outcome: "ok" | "invalid_output" | "timeout" | "rate_limited" | "server_error" | "safety_block" | "budget_exceeded" | "breaker_open" | "auth_error";
5774
+ outcome: "rate_limited" | "ok" | "invalid_output" | "timeout" | "server_error" | "safety_block" | "budget_exceeded" | "breaker_open" | "auth_error";
5345
5775
  capability: "plan" | "vision_extract" | "judge" | "chat";
5346
5776
  provider: "gemini" | "anthropic" | "openai";
5347
5777
  model: string;
@@ -5359,7 +5789,7 @@ declare const LlmCallCreateSchema: z.ZodObject<Omit<{
5359
5789
  costUsdEstimate?: number | undefined;
5360
5790
  errorCode?: string | undefined;
5361
5791
  }, {
5362
- outcome: "ok" | "invalid_output" | "timeout" | "rate_limited" | "server_error" | "safety_block" | "budget_exceeded" | "breaker_open" | "auth_error";
5792
+ outcome: "rate_limited" | "ok" | "invalid_output" | "timeout" | "server_error" | "safety_block" | "budget_exceeded" | "breaker_open" | "auth_error";
5363
5793
  capability: "plan" | "vision_extract" | "judge" | "chat";
5364
5794
  provider: "gemini" | "anthropic" | "openai";
5365
5795
  model: string;
@@ -5381,4 +5811,4 @@ type LlmCall = z.infer<typeof LlmCallSchema>;
5381
5811
  type LlmCallCreate = z.infer<typeof LlmCallCreateSchema>;
5382
5812
  type LlmCallCreateInput = z.input<typeof LlmCallCreateSchema>;
5383
5813
 
5384
- export { AuditLogSchema as $, AGENT_CARD_KIND_VALUES as A, type AgentSessionStats as B, AgentSessionStatsSchema as C, AgentSessionStatus as D, type AgentSessionUpdate as E, AgentSessionUpdateSchema as F, AgentSourceOutcome as G, type AnalystProfile as H, AnalystProfileSchema as I, type AnalystProfileUpdate as J, type AnalystProfileUpdateInput as K, AnalystProfileUpdateSchema as L, type AssigneeLoad as M, AssigneeLoadSchema as N, AssigneeType as O, type Assignment as P, type AssignmentCreate as Q, type AssignmentCreateInput as R, AssignmentCreateSchema as S, AssignmentSchema as T, AssignmentSource as U, AssignmentStatus as V, type AssignmentUpdate as W, AssignmentUpdateSchema as X, type AuditLog as Y, type AuditLogCreate as Z, AuditLogCreateSchema as _, AGENT_MESSAGE_KIND_VALUES as a, DeploymentStatus as a$, type AuditLogUpdate as a0, AuditLogUpdateSchema as a1, type AuditTarget as a2, AuditTargetSchema as a3, type BlobRef as a4, BlobRefSchema as a5, CAPTURE_DOM_STATUS_VALUES as a6, CAPTURE_STATUS_VALUES as a7, COLLECTIONS as a8, COLLECTOR_TYPE_VALUES as a9, DISCOVERED_BY_TYPE_VALUES as aA, type DataItem as aB, type DataItemContent as aC, DataItemContentSchema as aD, type DataItemCreate as aE, type DataItemCreateInput as aF, DataItemCreateSchema as aG, type DataItemEntity as aH, DataItemEntitySchema as aI, DataItemSchema as aJ, type DataItemUpdate as aK, DataItemUpdateSchema as aL, type Database as aM, DatabaseCollection as aN, type DatabaseCreate as aO, type DatabaseCreateInput as aP, DatabaseCreateSchema as aQ, DatabaseName as aR, DatabaseSchema as aS, DatabaseStatus as aT, type DatabaseUpdate as aU, DatabaseUpdateSchema as aV, type Deployment as aW, type DeploymentCreate as aX, DeploymentCreateSchema as aY, DeploymentKind as aZ, DeploymentSchema as a_, type Capture as aa, type CaptureCreate as ab, type CaptureCreateInput as ac, CaptureCreateSchema as ad, type CaptureDomSnapshot as ae, CaptureDomSnapshotSchema as af, CaptureDomStatus as ag, type CaptureDomSummary as ah, CaptureDomSummarySchema as ai, CapturePromptCardSchema as aj, type CaptureRegion as ak, CaptureRegionSchema as al, CaptureSchema as am, CaptureStatus as an, CaptureThumbCardSchema as ao, type CollectionName as ap, type Collector as aq, CollectorSchema as ar, CollectorType as as, ConnectionString as at, DATABASE_COLLECTION_VALUES as au, DATABASE_STATUS_VALUES as av, DEFAULT_ANALYST_TASK_LIMIT as aw, DEFAULT_SCOUT_TASK_LIMIT as ax, DEPLOYMENT_KIND_VALUES as ay, DEPLOYMENT_STATUS_VALUES as az, AGENT_MESSAGE_ROLE_VALUES as b, RATER_TYPE_VALUES as b$, type DeploymentStep as b0, DeploymentStepSchema as b1, type DeploymentUpdate as b2, DeploymentUpdateSchema as b3, type DiscoveredBy as b4, DiscoveredBySchema as b5, DiscoveredByType as b6, type DomBlock as b7, DomBlockSchema as b8, type DomLink as b9, type LlmUsage as bA, LlmUsageSchema as bB, LoadScope as bC, MAX_AGENT_MESSAGE_TEXT_LENGTH as bD, MAX_RATING_COMMENT_LENGTH as bE, MAX_SOURCE_IMPORT_ROW_ERRORS as bF, MISSION_PRIORITY_VALUES as bG, MISSION_STATUS_VALUES as bH, type Mission as bI, type MissionCreate as bJ, type MissionCreateInput as bK, MissionCreateSchema as bL, MissionPriority as bM, MissionSchema as bN, MissionStatus as bO, type MissionUpdate as bP, MissionUpdateSchema as bQ, OpenLinkCardSchema as bR, type OrgSettings as bS, OrgSettingsSchema as bT, type OrgSettingsUpdate as bU, OrgSettingsUpdateSchema as bV, PLATFORM_VALUES as bW, Platform as bX, QuickRepliesCardSchema as bY, type QuickReplyOption as bZ, QuickReplyOptionSchema as b_, DomLinkSchema as ba, type DomRect as bb, DomRectSchema as bc, Email as bd, GLOBAL_LOAD_SCOPE as be, type Geo as bf, GeoSchema as bg, type HoursLog as bh, type HoursLogCreate as bi, HoursLogCreateSchema as bj, HoursLogSchema as bk, type HoursLogUpdate as bl, HoursLogUpdateSchema as bm, HoursProposalCardSchema as bn, ItemResultCardSchema as bo, LLM_CAPABILITY_VALUES as bp, LLM_OUTCOME_VALUES as bq, LLM_PROVIDER_VALUES as br, type LlmCall as bs, type LlmCallCreate as bt, type LlmCallCreateInput as bu, LlmCallCreateSchema as bv, LlmCallSchema as bw, LlmCapability as bx, LlmOutcome as by, LlmProvider as bz, AGENT_SESSION_MODE_VALUES as c, SourceResultCardSchema as c$, REGION_MODE_VALUES as c0, RaterType as c1, RatingScore as c2, type RatingSummary as c3, RatingSummarySchema as c4, RegionMode as c5, SCOUT_STATUS_VALUES as c6, SCRAPER_STATUS_VALUES as c7, SOURCE_ACCESS_VALUES as c8, SOURCE_IMPORT_KIND_VALUES as c9, ScraperMetricSchema as cA, type ScraperMetricUpdate as cB, ScraperMetricUpdateSchema as cC, ScraperSchema as cD, ScraperStatus as cE, type ScraperUpdate as cF, ScraperUpdateSchema as cG, type Source as cH, SourceAccess as cI, type SourceCreate as cJ, type SourceCreateInput as cK, SourceCreateSchema as cL, type SourceImport as cM, type SourceImportCreate as cN, SourceImportCreateSchema as cO, SourceImportKind as cP, type SourceImportRowError as cQ, SourceImportRowErrorSchema as cR, SourceImportSchema as cS, SourceImportStatus as cT, type SourceImportSummary as cU, SourceImportSummarySchema as cV, type SourceImportUpdate as cW, SourceImportUpdateSchema as cX, SourceIntakeOutcome as cY, type SourceRating as cZ, SourceRatingSchema as c_, SOURCE_IMPORT_STATUS_VALUES as ca, SOURCE_INTAKE_OUTCOME_VALUES as cb, SOURCE_ROUTE_VALUES as cc, SOURCE_STATUS_VALUES as cd, SOURCE_TYPE_VALUES as ce, type ScoutProfile as cf, type ScoutProfileCreate as cg, type ScoutProfileCreateInput as ch, ScoutProfileCreateSchema as ci, ScoutProfileSchema as cj, type ScoutProfileUpdate as ck, type ScoutProfileUpdateInput as cl, ScoutProfileUpdateSchema as cm, type ScoutRating as cn, type ScoutRatingInput as co, ScoutRatingInputSchema as cp, ScoutRatingSchema as cq, type ScoutSelfUpdate as cr, ScoutSelfUpdateSchema as cs, ScoutStatus as ct, type Scraper as cu, type ScraperCreate as cv, ScraperCreateSchema as cw, type ScraperMetric as cx, type ScraperMetricCreate as cy, ScraperMetricCreateSchema as cz, AGENT_SESSION_STATUS_VALUES as d, SourceRoute as d0, SourceSchema as d1, SourceStatus as d2, SourceType as d3, type SourceUpdate as d4, SourceUpdateSchema as d5, type SystemRecommendation as d6, type SystemRecommendationInput as d7, SystemRecommendationInputSchema as d8, SystemRecommendationSchema as d9, TASK_KIND_VALUES as da, TASK_ORIGIN_VALUES as db, TASK_STATUS_VALUES as dc, type Task as dd, type TaskCreate as de, type TaskCreateInput as df, TaskCreateSchema as dg, TaskKind as dh, TaskOrigin as di, TaskSchema as dj, TaskStatus as dk, type TaskUpdate as dl, TaskUpdateSchema as dm, VETTING_STATUS_VALUES as dn, VettingStatus as dp, AGENT_SOURCE_OUTCOME_VALUES as e, ASSIGNEE_TYPE_VALUES as f, ASSIGNMENT_SOURCE_VALUES as g, ASSIGNMENT_STATUS_VALUES as h, type AgentCard as i, AgentCardKind as j, AgentCardSchema as k, type AgentMessage as l, type AgentMessageCreate as m, type AgentMessageCreateInput as n, AgentMessageCreateSchema as o, AgentMessageKind as p, AgentMessageRole as q, AgentMessageSchema as r, type AgentSession as s, type AgentSessionBudget as t, AgentSessionBudgetSchema as u, type AgentSessionCreate as v, type AgentSessionCreateInput as w, AgentSessionCreateSchema as x, AgentSessionMode as y, AgentSessionSchema as z };
5814
+ export { type AuditLogCreate as $, ACCESS_ISSUE_VALUES as A, AgentSessionMode as B, AgentSessionSchema as C, type AgentSessionStats as D, AgentSessionStatsSchema as E, AgentSessionStatus as F, type AgentSessionUpdate as G, AgentSessionUpdateSchema as H, AgentSourceOutcome as I, type AnalystProfile as J, AnalystProfileSchema as K, type AnalystProfileUpdate as L, type AnalystProfileUpdateInput as M, AnalystProfileUpdateSchema as N, type AssigneeLoad as O, AssigneeLoadSchema as P, AssigneeType as Q, type Assignment as R, type AssignmentCreate as S, type AssignmentCreateInput as T, AssignmentCreateSchema as U, AssignmentSchema as V, AssignmentSource as W, AssignmentStatus as X, type AssignmentUpdate as Y, AssignmentUpdateSchema as Z, type AuditLog as _, AGENT_CARD_KIND_VALUES as a, type DeploymentCreate as a$, AuditLogCreateSchema as a0, AuditLogSchema as a1, type AuditLogUpdate as a2, AuditLogUpdateSchema as a3, type AuditTarget as a4, AuditTargetSchema as a5, type BlobRef as a6, BlobRefSchema as a7, CAPTURE_DOM_STATUS_VALUES as a8, CAPTURE_STATUS_VALUES as a9, DEFAULT_ANALYST_TASK_LIMIT as aA, DEFAULT_SCOUT_TASK_LIMIT as aB, DEPLOYMENT_KIND_VALUES as aC, DEPLOYMENT_STATUS_VALUES as aD, DISCOVERED_BY_TYPE_VALUES as aE, type DataItem as aF, type DataItemContent as aG, DataItemContentSchema as aH, type DataItemCreate as aI, type DataItemCreateInput as aJ, DataItemCreateSchema as aK, type DataItemEntity as aL, DataItemEntitySchema as aM, DataItemSchema as aN, type DataItemUpdate as aO, DataItemUpdateSchema as aP, type Database as aQ, DatabaseCollection as aR, type DatabaseCreate as aS, type DatabaseCreateInput as aT, DatabaseCreateSchema as aU, DatabaseName as aV, DatabaseSchema as aW, DatabaseStatus as aX, type DatabaseUpdate as aY, DatabaseUpdateSchema as aZ, type Deployment as a_, CAPTURE_WINDOW_MODE_VALUES as aa, COLLECTIONS as ab, COLLECTOR_TYPE_VALUES as ac, type Capture as ad, type CaptureCreate as ae, type CaptureCreateInput as af, CaptureCreateSchema as ag, type CaptureDomSnapshot as ah, CaptureDomSnapshotSchema as ai, CaptureDomStatus as aj, type CaptureDomSummary as ak, CaptureDomSummarySchema as al, CapturePromptCardSchema as am, type CaptureRegion as an, CaptureRegionSchema as ao, CaptureSchema as ap, CaptureStatus as aq, CaptureThumbCardSchema as ar, CaptureWindowMode as as, type CollectionName as at, type Collector as au, CollectorSchema as av, CollectorType as aw, ConnectionString as ax, DATABASE_COLLECTION_VALUES as ay, DATABASE_STATUS_VALUES as az, AGENT_MESSAGE_KIND_VALUES as b, OrgSettingsUpdateSchema as b$, DeploymentCreateSchema as b0, DeploymentKind as b1, DeploymentSchema as b2, DeploymentStatus as b3, type DeploymentStep as b4, DeploymentStepSchema as b5, type DeploymentUpdate as b6, DeploymentUpdateSchema as b7, type DiscoveredBy as b8, DiscoveredBySchema as b9, type LlmCallCreateInput as bA, LlmCallCreateSchema as bB, LlmCallSchema as bC, LlmCapability as bD, LlmOutcome as bE, LlmProvider as bF, type LlmUsage as bG, LlmUsageSchema as bH, LoadScope as bI, MAX_AGENT_MESSAGE_TEXT_LENGTH as bJ, MAX_RATING_COMMENT_LENGTH as bK, MAX_SOURCE_IMPORT_ROW_ERRORS as bL, MISSION_PRIORITY_VALUES as bM, MISSION_STATUS_VALUES as bN, type Mission as bO, type MissionCreate as bP, type MissionCreateInput as bQ, MissionCreateSchema as bR, MissionPriority as bS, MissionSchema as bT, MissionStatus as bU, type MissionUpdate as bV, MissionUpdateSchema as bW, OpenLinkCardSchema as bX, type OrgSettings as bY, OrgSettingsSchema as bZ, type OrgSettingsUpdate as b_, DiscoveredByType as ba, type DomBlock as bb, DomBlockSchema as bc, type DomLink as bd, DomLinkSchema as be, type DomRect as bf, DomRectSchema as bg, Email as bh, GLOBAL_LOAD_SCOPE as bi, type Geo as bj, GeoSchema as bk, HOURS_LOG_SOURCE_VALUES as bl, type HoursLog as bm, type HoursLogCreate as bn, HoursLogCreateSchema as bo, HoursLogSchema as bp, HoursLogSource as bq, type HoursLogUpdate as br, HoursLogUpdateSchema as bs, HoursProposalCardSchema as bt, ItemResultCardSchema as bu, LLM_CAPABILITY_VALUES as bv, LLM_OUTCOME_VALUES as bw, LLM_PROVIDER_VALUES as bx, type LlmCall as by, type LlmCallCreate as bz, AGENT_MESSAGE_ROLE_VALUES as c, SourceImportSummarySchema as c$, PLATFORM_VALUES as c0, Platform as c1, QuickRepliesCardSchema as c2, type QuickReplyOption as c3, QuickReplyOptionSchema as c4, RATER_TYPE_VALUES as c5, REGION_MODE_VALUES as c6, RaterType as c7, RatingScore as c8, type RatingSummary as c9, type Scraper as cA, type ScraperCreate as cB, ScraperCreateSchema as cC, type ScraperMetric as cD, type ScraperMetricCreate as cE, ScraperMetricCreateSchema as cF, ScraperMetricSchema as cG, type ScraperMetricUpdate as cH, ScraperMetricUpdateSchema as cI, ScraperSchema as cJ, ScraperStatus as cK, type ScraperUpdate as cL, ScraperUpdateSchema as cM, type Source as cN, SourceAccess as cO, type SourceCreate as cP, type SourceCreateInput as cQ, SourceCreateSchema as cR, type SourceImport as cS, type SourceImportCreate as cT, SourceImportCreateSchema as cU, SourceImportKind as cV, type SourceImportRowError as cW, SourceImportRowErrorSchema as cX, SourceImportSchema as cY, SourceImportStatus as cZ, type SourceImportSummary as c_, RatingSummarySchema as ca, RegionMode as cb, SCOUT_STATUS_VALUES as cc, SCRAPER_STATUS_VALUES as cd, SOURCE_ACCESS_VALUES as ce, SOURCE_IMPORT_KIND_VALUES as cf, SOURCE_IMPORT_STATUS_VALUES as cg, SOURCE_INTAKE_OUTCOME_VALUES as ch, SOURCE_ROUTE_VALUES as ci, SOURCE_STATUS_VALUES as cj, SOURCE_TYPE_VALUES as ck, type ScoutProfile as cl, type ScoutProfileCreate as cm, type ScoutProfileCreateInput as cn, ScoutProfileCreateSchema as co, ScoutProfileSchema as cp, type ScoutProfileUpdate as cq, type ScoutProfileUpdateInput as cr, ScoutProfileUpdateSchema as cs, type ScoutRating as ct, type ScoutRatingInput as cu, ScoutRatingInputSchema as cv, ScoutRatingSchema as cw, type ScoutSelfUpdate as cx, ScoutSelfUpdateSchema as cy, ScoutStatus as cz, AGENT_SESSION_MODE_VALUES as d, type SourceImportUpdate as d0, SourceImportUpdateSchema as d1, SourceIntakeOutcome as d2, type SourceRating as d3, SourceRatingSchema as d4, SourceResultCardSchema as d5, SourceRoute as d6, SourceSchema as d7, SourceStatus as d8, SourceType as d9, type SourceUpdate as da, SourceUpdateSchema as db, type SystemRecommendation as dc, type SystemRecommendationInput as dd, SystemRecommendationInputSchema as de, SystemRecommendationSchema as df, TASK_KIND_VALUES as dg, TASK_ORIGIN_VALUES as dh, TASK_STATUS_VALUES as di, type Task as dj, type TaskCreate as dk, type TaskCreateInput as dl, TaskCreateSchema as dm, TaskKind as dn, TaskOrigin as dp, TaskSchema as dq, TaskStatus as dr, type TaskUpdate as ds, TaskUpdateSchema as dt, VETTING_STATUS_VALUES as du, VettingStatus as dv, AGENT_SESSION_STATUS_VALUES as e, AGENT_SOURCE_OUTCOME_VALUES as f, ASSIGNEE_TYPE_VALUES as g, ASSIGNMENT_SOURCE_VALUES as h, ASSIGNMENT_STATUS_VALUES as i, AccessIssue as j, type AgentCard as k, AgentCardKind as l, AgentCardSchema as m, type AgentMessage as n, type AgentMessageCreate as o, type AgentMessageCreateInput as p, AgentMessageCreateSchema as q, AgentMessageKind as r, AgentMessageRole as s, AgentMessageSchema as t, type AgentSession as u, type AgentSessionBudget as v, AgentSessionBudgetSchema as w, type AgentSessionCreate as x, type AgentSessionCreateInput as y, AgentSessionCreateSchema as z };