@wirecat/cli-core 0.491.0 → 0.493.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.
Files changed (37) hide show
  1. package/CHANGELOG.md +58 -0
  2. package/dist/cli/messenger/conversation-answers.d.ts +7 -0
  3. package/dist/cli/messenger/message-answers.d.ts +7 -0
  4. package/dist/cli/messenger/message-writes.d.ts +14 -0
  5. package/dist/cli/messenger/messages-command.js +13 -1
  6. package/dist/cli/messenger/messages-search-command.js +4 -1
  7. package/dist/cli/messenger/search-answers.d.ts +6 -2
  8. package/dist/cli/messenger/search-answers.js +60 -7
  9. package/dist/cli/messenger/tasks-command.js +15 -3
  10. package/dist/cli/steps.js +1 -0
  11. package/dist/entities/agenda.d.ts +42 -0
  12. package/dist/entities/agenda.js +10 -0
  13. package/dist/entities/conversation-results.d.ts +14 -0
  14. package/dist/entities/evidence.d.ts +56 -0
  15. package/dist/entities/index.d.ts +169 -0
  16. package/dist/entities/index.js +1 -0
  17. package/dist/entities/listener.d.ts +28 -0
  18. package/dist/entities/message-context.d.ts +21 -0
  19. package/dist/entities/message-write.d.ts +28 -0
  20. package/dist/entities/message.d.ts +11 -0
  21. package/dist/entities/message.js +11 -0
  22. package/dist/entities/store-records.d.ts +7 -0
  23. package/dist/services/agenda.d.ts +5 -0
  24. package/dist/services/agenda.js +25 -4
  25. package/dist/services/chat-coverage.d.ts +19 -0
  26. package/dist/services/chat-coverage.js +27 -0
  27. package/dist/services/messages-discovery.d.ts +6 -0
  28. package/dist/services/messages-discovery.js +50 -3
  29. package/dist/services/messages-search.d.ts +2 -0
  30. package/dist/services/messages.d.ts +2 -0
  31. package/dist/services/search-all.d.ts +3 -0
  32. package/dist/services/search-all.js +4 -0
  33. package/dist/store/messages.d.ts +9 -0
  34. package/dist/store/messages.js +2 -0
  35. package/dist/store/sqlite/follow-ups.d.ts +17 -0
  36. package/dist/store/sqlite/follow-ups.js +59 -0
  37. package/package.json +1 -1
@@ -265,6 +265,13 @@ export declare const ENTITIES: {
265
265
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
266
266
  readonly text: v.StringSchema<undefined>;
267
267
  }, undefined>, undefined>, undefined>;
268
+ readonly follow_ups: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
269
+ readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
270
+ readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
271
+ readonly timestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
272
+ readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
273
+ readonly text: v.StringSchema<undefined>;
274
+ }, undefined>, undefined>, undefined>;
268
275
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
269
276
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
270
277
  readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
@@ -475,6 +482,13 @@ export declare const ENTITIES: {
475
482
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
476
483
  readonly text: v.StringSchema<undefined>;
477
484
  }, undefined>, undefined>, undefined>;
485
+ readonly follow_ups: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
486
+ readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
487
+ readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
488
+ readonly timestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
489
+ readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
490
+ readonly text: v.StringSchema<undefined>;
491
+ }, undefined>, undefined>, undefined>;
478
492
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
479
493
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
480
494
  readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
@@ -690,6 +704,13 @@ export declare const ENTITIES: {
690
704
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
691
705
  readonly text: v.StringSchema<undefined>;
692
706
  }, undefined>, undefined>, undefined>;
707
+ readonly follow_ups: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
708
+ readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
709
+ readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
710
+ readonly timestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
711
+ readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
712
+ readonly text: v.StringSchema<undefined>;
713
+ }, undefined>, undefined>, undefined>;
693
714
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
694
715
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
695
716
  readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
@@ -1166,6 +1187,13 @@ export declare const ENTITIES: {
1166
1187
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1167
1188
  readonly text: v.StringSchema<undefined>;
1168
1189
  }, undefined>, undefined>, undefined>;
1190
+ readonly follow_ups: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
1191
+ readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
1192
+ readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1193
+ readonly timestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
1194
+ readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1195
+ readonly text: v.StringSchema<undefined>;
1196
+ }, undefined>, undefined>, undefined>;
1169
1197
  readonly email: v.OptionalSchema<v.StrictObjectSchema<{
1170
1198
  readonly subject: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1171
1199
  readonly from: v.NullableSchema<v.StrictObjectSchema<{
@@ -1246,6 +1274,13 @@ export declare const ENTITIES: {
1246
1274
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1247
1275
  readonly text: v.StringSchema<undefined>;
1248
1276
  }, undefined>, undefined>, undefined>;
1277
+ readonly follow_ups: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
1278
+ readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
1279
+ readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1280
+ readonly timestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
1281
+ readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1282
+ readonly text: v.StringSchema<undefined>;
1283
+ }, undefined>, undefined>, undefined>;
1249
1284
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
1250
1285
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
1251
1286
  readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
@@ -1456,6 +1491,13 @@ export declare const ENTITIES: {
1456
1491
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1457
1492
  readonly text: v.StringSchema<undefined>;
1458
1493
  }, undefined>, undefined>, undefined>;
1494
+ readonly follow_ups: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
1495
+ readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
1496
+ readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1497
+ readonly timestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
1498
+ readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1499
+ readonly text: v.StringSchema<undefined>;
1500
+ }, undefined>, undefined>, undefined>;
1459
1501
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
1460
1502
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
1461
1503
  readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
@@ -1897,6 +1939,13 @@ export declare const ENTITIES: {
1897
1939
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1898
1940
  readonly text: v.StringSchema<undefined>;
1899
1941
  }, undefined>, undefined>, undefined>;
1942
+ readonly follow_ups: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
1943
+ readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
1944
+ readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1945
+ readonly timestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
1946
+ readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1947
+ readonly text: v.StringSchema<undefined>;
1948
+ }, undefined>, undefined>, undefined>;
1900
1949
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
1901
1950
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
1902
1951
  readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
@@ -2107,6 +2156,13 @@ export declare const ENTITIES: {
2107
2156
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
2108
2157
  readonly text: v.StringSchema<undefined>;
2109
2158
  }, undefined>, undefined>, undefined>;
2159
+ readonly follow_ups: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
2160
+ readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
2161
+ readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
2162
+ readonly timestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
2163
+ readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
2164
+ readonly text: v.StringSchema<undefined>;
2165
+ }, undefined>, undefined>, undefined>;
2110
2166
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
2111
2167
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
2112
2168
  readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
@@ -2321,6 +2377,13 @@ export declare const ENTITIES: {
2321
2377
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
2322
2378
  readonly text: v.StringSchema<undefined>;
2323
2379
  }, undefined>, undefined>, undefined>;
2380
+ readonly follow_ups: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
2381
+ readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
2382
+ readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
2383
+ readonly timestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
2384
+ readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
2385
+ readonly text: v.StringSchema<undefined>;
2386
+ }, undefined>, undefined>, undefined>;
2324
2387
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
2325
2388
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
2326
2389
  readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
@@ -2531,6 +2594,13 @@ export declare const ENTITIES: {
2531
2594
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
2532
2595
  readonly text: v.StringSchema<undefined>;
2533
2596
  }, undefined>, undefined>, undefined>;
2597
+ readonly follow_ups: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
2598
+ readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
2599
+ readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
2600
+ readonly timestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
2601
+ readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
2602
+ readonly text: v.StringSchema<undefined>;
2603
+ }, undefined>, undefined>, undefined>;
2534
2604
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
2535
2605
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
2536
2606
  readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
@@ -6779,6 +6849,13 @@ export declare const ENTITIES: {
6779
6849
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
6780
6850
  readonly text: v.StringSchema<undefined>;
6781
6851
  }, undefined>, undefined>, undefined>;
6852
+ readonly follow_ups: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
6853
+ readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
6854
+ readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
6855
+ readonly timestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
6856
+ readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
6857
+ readonly text: v.StringSchema<undefined>;
6858
+ }, undefined>, undefined>, undefined>;
6782
6859
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
6783
6860
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
6784
6861
  readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
@@ -6989,6 +7066,13 @@ export declare const ENTITIES: {
6989
7066
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
6990
7067
  readonly text: v.StringSchema<undefined>;
6991
7068
  }, undefined>, undefined>, undefined>;
7069
+ readonly follow_ups: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
7070
+ readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
7071
+ readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
7072
+ readonly timestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
7073
+ readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
7074
+ readonly text: v.StringSchema<undefined>;
7075
+ }, undefined>, undefined>, undefined>;
6992
7076
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
6993
7077
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
6994
7078
  readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
@@ -7442,6 +7526,13 @@ export declare const ENTITIES: {
7442
7526
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
7443
7527
  readonly text: v.StringSchema<undefined>;
7444
7528
  }, undefined>, undefined>, undefined>;
7529
+ readonly follow_ups: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
7530
+ readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
7531
+ readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
7532
+ readonly timestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
7533
+ readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
7534
+ readonly text: v.StringSchema<undefined>;
7535
+ }, undefined>, undefined>, undefined>;
7445
7536
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
7446
7537
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
7447
7538
  readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
@@ -7943,6 +8034,13 @@ export declare const ENTITIES: {
7943
8034
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
7944
8035
  readonly text: v.StringSchema<undefined>;
7945
8036
  }, undefined>, undefined>, undefined>;
8037
+ readonly follow_ups: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
8038
+ readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
8039
+ readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
8040
+ readonly timestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
8041
+ readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
8042
+ readonly text: v.StringSchema<undefined>;
8043
+ }, undefined>, undefined>, undefined>;
7946
8044
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
7947
8045
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
7948
8046
  readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
@@ -8620,6 +8718,13 @@ export declare const ENTITIES: {
8620
8718
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
8621
8719
  readonly text: v.StringSchema<undefined>;
8622
8720
  }, undefined>, undefined>, undefined>;
8721
+ readonly follow_ups: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
8722
+ readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
8723
+ readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
8724
+ readonly timestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
8725
+ readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
8726
+ readonly text: v.StringSchema<undefined>;
8727
+ }, undefined>, undefined>, undefined>;
8623
8728
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
8624
8729
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
8625
8730
  readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
@@ -9509,6 +9614,18 @@ export declare const ENTITIES: {
9509
9614
  readonly last_message_at: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
9510
9615
  readonly last_from_owner: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
9511
9616
  readonly open_tasks: v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
9617
+ readonly completeness: v.StrictObjectSchema<{
9618
+ readonly state: v.PicklistSchema<["complete", "partial", "unknown"], undefined>;
9619
+ readonly up_to_date: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
9620
+ readonly gaps: v.BooleanSchema<undefined>;
9621
+ readonly reaches_start: v.BooleanSchema<undefined>;
9622
+ readonly fetched_at: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>, undefined>;
9623
+ }, undefined>;
9624
+ readonly held: v.StrictObjectSchema<{
9625
+ readonly messages: v.NumberSchema<undefined>;
9626
+ readonly oldest_at: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>, undefined>;
9627
+ readonly newest_at: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>, undefined>;
9628
+ }, undefined>;
9512
9629
  }, undefined>, undefined>;
9513
9630
  readonly waiting: v.ArraySchema<v.StrictObjectSchema<{
9514
9631
  readonly chat: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
@@ -9518,6 +9635,18 @@ export declare const ENTITIES: {
9518
9635
  readonly last_message_at: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
9519
9636
  readonly last_from_owner: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
9520
9637
  readonly open_tasks: v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
9638
+ readonly completeness: v.StrictObjectSchema<{
9639
+ readonly state: v.PicklistSchema<["complete", "partial", "unknown"], undefined>;
9640
+ readonly up_to_date: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
9641
+ readonly gaps: v.BooleanSchema<undefined>;
9642
+ readonly reaches_start: v.BooleanSchema<undefined>;
9643
+ readonly fetched_at: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>, undefined>;
9644
+ }, undefined>;
9645
+ readonly held: v.StrictObjectSchema<{
9646
+ readonly messages: v.NumberSchema<undefined>;
9647
+ readonly oldest_at: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>, undefined>;
9648
+ readonly newest_at: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>, undefined>;
9649
+ }, undefined>;
9521
9650
  }, undefined>, undefined>;
9522
9651
  readonly unsynced: v.ArraySchema<v.StrictObjectSchema<{
9523
9652
  readonly chat: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
@@ -9527,6 +9656,18 @@ export declare const ENTITIES: {
9527
9656
  readonly last_message_at: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
9528
9657
  readonly last_from_owner: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
9529
9658
  readonly open_tasks: v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
9659
+ readonly completeness: v.StrictObjectSchema<{
9660
+ readonly state: v.PicklistSchema<["complete", "partial", "unknown"], undefined>;
9661
+ readonly up_to_date: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
9662
+ readonly gaps: v.BooleanSchema<undefined>;
9663
+ readonly reaches_start: v.BooleanSchema<undefined>;
9664
+ readonly fetched_at: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>, undefined>;
9665
+ }, undefined>;
9666
+ readonly held: v.StrictObjectSchema<{
9667
+ readonly messages: v.NumberSchema<undefined>;
9668
+ readonly oldest_at: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>, undefined>;
9669
+ readonly newest_at: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>, undefined>;
9670
+ }, undefined>;
9530
9671
  }, undefined>, undefined>;
9531
9672
  readonly assigned: v.ArraySchema<v.StrictObjectSchema<{
9532
9673
  readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
@@ -10248,6 +10389,13 @@ export declare const ENTITIES: {
10248
10389
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
10249
10390
  readonly text: v.StringSchema<undefined>;
10250
10391
  }, undefined>, undefined>, undefined>;
10392
+ readonly follow_ups: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
10393
+ readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
10394
+ readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
10395
+ readonly timestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
10396
+ readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
10397
+ readonly text: v.StringSchema<undefined>;
10398
+ }, undefined>, undefined>, undefined>;
10251
10399
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
10252
10400
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
10253
10401
  readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
@@ -10458,6 +10606,13 @@ export declare const ENTITIES: {
10458
10606
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
10459
10607
  readonly text: v.StringSchema<undefined>;
10460
10608
  }, undefined>, undefined>, undefined>;
10609
+ readonly follow_ups: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
10610
+ readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
10611
+ readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
10612
+ readonly timestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
10613
+ readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
10614
+ readonly text: v.StringSchema<undefined>;
10615
+ }, undefined>, undefined>, undefined>;
10461
10616
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
10462
10617
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
10463
10618
  readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
@@ -10706,6 +10861,13 @@ export declare const ENTITIES: {
10706
10861
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
10707
10862
  readonly text: v.StringSchema<undefined>;
10708
10863
  }, undefined>, undefined>, undefined>;
10864
+ readonly follow_ups: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
10865
+ readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
10866
+ readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
10867
+ readonly timestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
10868
+ readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
10869
+ readonly text: v.StringSchema<undefined>;
10870
+ }, undefined>, undefined>, undefined>;
10709
10871
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
10710
10872
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
10711
10873
  readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
@@ -10916,6 +11078,13 @@ export declare const ENTITIES: {
10916
11078
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
10917
11079
  readonly text: v.StringSchema<undefined>;
10918
11080
  }, undefined>, undefined>, undefined>;
11081
+ readonly follow_ups: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
11082
+ readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
11083
+ readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
11084
+ readonly timestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
11085
+ readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
11086
+ readonly text: v.StringSchema<undefined>;
11087
+ }, undefined>, undefined>, undefined>;
10919
11088
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
10920
11089
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
10921
11090
  readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
@@ -117,6 +117,7 @@ export const ENTITIES = {
117
117
  "found_in",
118
118
  "discovery",
119
119
  "context",
120
+ "follow_ups",
120
121
  "email",
121
122
  ]).entries,
122
123
  untrusted,
@@ -41,6 +41,13 @@ export declare const watchedMessage: v.StrictObjectSchema<{
41
41
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
42
42
  readonly text: v.StringSchema<undefined>;
43
43
  }, undefined>, undefined>, undefined>;
44
+ readonly follow_ups: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
45
+ readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
46
+ readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
47
+ readonly timestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
48
+ readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
49
+ readonly text: v.StringSchema<undefined>;
50
+ }, undefined>, undefined>, undefined>;
44
51
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
45
52
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
46
53
  readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
@@ -543,6 +550,13 @@ export declare const messageEvent: v.VariantSchema<"event", [v.StrictObjectSchem
543
550
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
544
551
  readonly text: v.StringSchema<undefined>;
545
552
  }, undefined>, undefined>, undefined>;
553
+ readonly follow_ups: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
554
+ readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
555
+ readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
556
+ readonly timestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
557
+ readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
558
+ readonly text: v.StringSchema<undefined>;
559
+ }, undefined>, undefined>, undefined>;
546
560
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
547
561
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
548
562
  readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
@@ -1152,6 +1166,13 @@ export declare const watchItem: v.UnionSchema<[v.StrictObjectSchema<{
1152
1166
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1153
1167
  readonly text: v.StringSchema<undefined>;
1154
1168
  }, undefined>, undefined>, undefined>;
1169
+ readonly follow_ups: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
1170
+ readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
1171
+ readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1172
+ readonly timestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
1173
+ readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1174
+ readonly text: v.StringSchema<undefined>;
1175
+ }, undefined>, undefined>, undefined>;
1155
1176
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
1156
1177
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
1157
1178
  readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
@@ -1653,6 +1674,13 @@ export declare const watchItem: v.UnionSchema<[v.StrictObjectSchema<{
1653
1674
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1654
1675
  readonly text: v.StringSchema<undefined>;
1655
1676
  }, undefined>, undefined>, undefined>;
1677
+ readonly follow_ups: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
1678
+ readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
1679
+ readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1680
+ readonly timestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
1681
+ readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1682
+ readonly text: v.StringSchema<undefined>;
1683
+ }, undefined>, undefined>, undefined>;
1656
1684
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
1657
1685
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
1658
1686
  readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
@@ -46,6 +46,13 @@ export declare const messageThread: v.StrictObjectSchema<{
46
46
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
47
47
  readonly text: v.StringSchema<undefined>;
48
48
  }, undefined>, undefined>, undefined>;
49
+ readonly follow_ups: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
50
+ readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
51
+ readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
52
+ readonly timestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
53
+ readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
54
+ readonly text: v.StringSchema<undefined>;
55
+ }, undefined>, undefined>, undefined>;
49
56
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
50
57
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
51
58
  readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
@@ -280,6 +287,13 @@ export declare const messageContext: v.UnionSchema<[v.StrictObjectSchema<{
280
287
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
281
288
  readonly text: v.StringSchema<undefined>;
282
289
  }, undefined>, undefined>, undefined>;
290
+ readonly follow_ups: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
291
+ readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
292
+ readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
293
+ readonly timestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
294
+ readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
295
+ readonly text: v.StringSchema<undefined>;
296
+ }, undefined>, undefined>, undefined>;
283
297
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
284
298
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
285
299
  readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
@@ -495,6 +509,13 @@ export declare const messageContext: v.UnionSchema<[v.StrictObjectSchema<{
495
509
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
496
510
  readonly text: v.StringSchema<undefined>;
497
511
  }, undefined>, undefined>, undefined>;
512
+ readonly follow_ups: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
513
+ readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
514
+ readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
515
+ readonly timestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
516
+ readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
517
+ readonly text: v.StringSchema<undefined>;
518
+ }, undefined>, undefined>, undefined>;
498
519
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
499
520
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
500
521
  readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
@@ -42,6 +42,13 @@ export declare const messageWrite: v.StrictObjectSchema<{
42
42
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
43
43
  readonly text: v.StringSchema<undefined>;
44
44
  }, undefined>, undefined>, undefined>;
45
+ readonly follow_ups: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
46
+ readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
47
+ readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
48
+ readonly timestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
49
+ readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
50
+ readonly text: v.StringSchema<undefined>;
51
+ }, undefined>, undefined>, undefined>;
45
52
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
46
53
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
47
54
  readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
@@ -253,6 +260,13 @@ export declare const messageWrite: v.StrictObjectSchema<{
253
260
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
254
261
  readonly text: v.StringSchema<undefined>;
255
262
  }, undefined>, undefined>, undefined>;
263
+ readonly follow_ups: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
264
+ readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
265
+ readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
266
+ readonly timestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
267
+ readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
268
+ readonly text: v.StringSchema<undefined>;
269
+ }, undefined>, undefined>, undefined>;
256
270
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
257
271
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
258
272
  readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
@@ -472,6 +486,13 @@ export declare const messageSend: v.UnionSchema<[v.StrictObjectSchema<{
472
486
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
473
487
  readonly text: v.StringSchema<undefined>;
474
488
  }, undefined>, undefined>, undefined>;
489
+ readonly follow_ups: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
490
+ readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
491
+ readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
492
+ readonly timestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
493
+ readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
494
+ readonly text: v.StringSchema<undefined>;
495
+ }, undefined>, undefined>, undefined>;
475
496
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
476
497
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
477
498
  readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
@@ -683,6 +704,13 @@ export declare const messageSend: v.UnionSchema<[v.StrictObjectSchema<{
683
704
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
684
705
  readonly text: v.StringSchema<undefined>;
685
706
  }, undefined>, undefined>, undefined>;
707
+ readonly follow_ups: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
708
+ readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
709
+ readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
710
+ readonly timestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
711
+ readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
712
+ readonly text: v.StringSchema<undefined>;
713
+ }, undefined>, undefined>, undefined>;
686
714
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
687
715
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
688
716
  readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
@@ -55,6 +55,17 @@ export declare const message: v.StrictObjectSchema<{
55
55
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
56
56
  readonly text: v.StringSchema<undefined>;
57
57
  }, undefined>, undefined>, undefined>;
58
+ /**
59
+ * A discovery hit's later messages, from any chat the search reads, that share a rare word with it, latest first:
60
+ * one may change or cancel what the hit says.
61
+ */
62
+ readonly follow_ups: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
63
+ readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
64
+ readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
65
+ readonly timestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
66
+ readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
67
+ readonly text: v.StringSchema<undefined>;
68
+ }, undefined>, undefined>, undefined>;
58
69
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
59
70
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
60
71
  readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
@@ -59,6 +59,17 @@ export const message = v.strictObject({
59
59
  })),
60
60
  /** The messages around a search hit, or its thread, oldest first; the hit itself is among them. */
61
61
  context: v.optional(v.array(v.strictObject({ ref: reference, timestamp: time, sender_name: v.nullable(text), text }))),
62
+ /**
63
+ * A discovery hit's later messages, from any chat the search reads, that share a rare word with it, latest first:
64
+ * one may change or cancel what the hit says.
65
+ */
66
+ follow_ups: v.optional(v.array(v.strictObject({
67
+ ref: reference,
68
+ chat_title: v.nullable(text),
69
+ timestamp: time,
70
+ sender_name: v.nullable(text),
71
+ text,
72
+ }))),
62
73
  outgoing: v.nullable(v.boolean()),
63
74
  attachments: v.array(attachment),
64
75
  reply_to: v.nullable(quoted),
@@ -65,6 +65,13 @@ export declare const storeExport: v.UnionSchema<[v.StrictObjectSchema<{
65
65
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
66
66
  readonly text: v.StringSchema<undefined>;
67
67
  }, undefined>, undefined>, undefined>;
68
+ readonly follow_ups: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
69
+ readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
70
+ readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
71
+ readonly timestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
72
+ readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
73
+ readonly text: v.StringSchema<undefined>;
74
+ }, undefined>, undefined>, undefined>;
68
75
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
69
76
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
70
77
  readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
@@ -2,6 +2,7 @@ import { type QueryAst } from "@wirecat/cli-base/query";
2
2
  import type * as v from "valibot";
3
3
  import { agenda } from "../entities/agenda.js";
4
4
  import { type ChatActivity, type TaskDetails } from "../store/store.js";
5
+ import { type ChatCoverage } from "./chat-coverage.js";
5
6
  import type { ServiceDeps } from "./deps.js";
6
7
  export interface AgendaOptions {
7
8
  /** ms: a task due within this is listed. */
@@ -33,6 +34,8 @@ export interface AgendaAssigned extends Pick<TaskDetails, "id" | "key" | "title"
33
34
  assignees: string[];
34
35
  }
35
36
  export interface AgendaChat extends Omit<ChatActivity, "lastMessageId"> {
37
+ /** How much of the chat's history the store holds: a chat held from last week alone is not a quiet chat. */
38
+ coverage: ChatCoverage;
36
39
  /** The newest message, as a locator to read around; never its text. `null` while it is not stored. */
37
40
  lastMessage: string | null;
38
41
  /** Open tasks whose source is in this chat. */
@@ -45,6 +48,8 @@ export interface AgendaChat extends Omit<ChatActivity, "lastMessageId"> {
45
48
  */
46
49
  export interface Agenda {
47
50
  at: string;
51
+ /** The start of the window the chats were read for (`within`). */
52
+ since: string;
48
53
  account: string;
49
54
  storedAt: string | null;
50
55
  stale: boolean;