@wirecat/cli-core 0.495.0 → 0.497.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 (44) hide show
  1. package/CHANGELOG.md +89 -1
  2. package/dist/calendar/cli/answers.d.ts +277 -0
  3. package/dist/calendar/cli/answers.js +257 -0
  4. package/dist/calendar/cli/index.d.ts +10 -1
  5. package/dist/calendar/cli/index.js +78 -47
  6. package/dist/calendar/index.d.ts +1 -1
  7. package/dist/calendar/reads.d.ts +7 -0
  8. package/dist/calendar/server-search.d.ts +31 -0
  9. package/dist/calendar/server-search.js +41 -0
  10. package/dist/calendar/source.d.ts +14 -0
  11. package/dist/calendar/testing/answers.d.ts +6 -0
  12. package/dist/calendar/testing/answers.js +37 -0
  13. package/dist/calendar/testing/source.d.ts +2 -0
  14. package/dist/calendar/testing/source.js +9 -0
  15. package/dist/cli/commands-command.js +10 -2
  16. package/dist/cli/config-command.js +18 -8
  17. package/dist/cli/messenger/conversation-answers.d.ts +1 -1
  18. package/dist/cli/messenger/message-answers.d.ts +1 -1
  19. package/dist/cli/messenger/message-writes.d.ts +2 -2
  20. package/dist/cli/messenger/search-answers.js +2 -2
  21. package/dist/cli/messenger/search-command.js +4 -2
  22. package/dist/cli/messenger/store-maintenance-command.d.ts +1 -1
  23. package/dist/cli/program.js +2 -1
  24. package/dist/entities/conversation-results.d.ts +2 -2
  25. package/dist/entities/evidence.d.ts +8 -8
  26. package/dist/entities/index.d.ts +26 -19
  27. package/dist/entities/listener.d.ts +4 -4
  28. package/dist/entities/message-context.d.ts +3 -3
  29. package/dist/entities/message-write.d.ts +4 -4
  30. package/dist/entities/message.d.ts +2 -2
  31. package/dist/entities/message.js +2 -2
  32. package/dist/entities/store-records.d.ts +1 -1
  33. package/dist/errors/reasons.js +4 -0
  34. package/dist/meetings/read-answers.d.ts +10 -0
  35. package/dist/meetings/read-answers.js +7 -0
  36. package/dist/services/document-source.d.ts +2 -3
  37. package/dist/services/document-source.js +2 -7
  38. package/dist/services/messages-discovery.js +7 -2
  39. package/dist/services/notes-search.d.ts +13 -3
  40. package/dist/services/notes-search.js +93 -19
  41. package/dist/store/sqlite/note-search.d.ts +5 -0
  42. package/dist/store/sqlite/note-search.js +11 -2
  43. package/package.json +1 -1
  44. package/parity.json +1 -1
@@ -57,7 +57,7 @@ export declare const threadAnswer: ({ items, ...thread }: ThreadContext, reader:
57
57
  chat_title: string | null;
58
58
  timestamp: string;
59
59
  sender_name: string | null;
60
- text: string;
60
+ excerpt: string;
61
61
  }[] | undefined;
62
62
  outgoing: boolean | null;
63
63
  attachments: {
@@ -61,7 +61,7 @@ export declare const writtenAnswer: ({ operationId, sendId, message, messages, s
61
61
  chat_title: string | null;
62
62
  timestamp: string;
63
63
  sender_name: string | null;
64
- text: string;
64
+ excerpt: string;
65
65
  }[] | undefined;
66
66
  outgoing: boolean | null;
67
67
  attachments: {
@@ -280,7 +280,7 @@ export declare const writtenAnswer: ({ operationId, sendId, message, messages, s
280
280
  chat_title: string | null;
281
281
  timestamp: string;
282
282
  sender_name: string | null;
283
- text: string;
283
+ excerpt: string;
284
284
  }[] | undefined;
285
285
  outgoing: boolean | null;
286
286
  attachments: {
@@ -20,7 +20,7 @@ const MESSAGE_HIT_UNTRUSTED = [
20
20
  "context.text",
21
21
  "follow_ups.chat_title",
22
22
  "follow_ups.sender_name",
23
- "follow_ups.text",
23
+ "follow_ups.excerpt",
24
24
  ];
25
25
  const MAIL_HIT_UNTRUSTED = [
26
26
  "email.subject",
@@ -81,7 +81,7 @@ export const messageHitItem = (hit, query = "") => {
81
81
  chat_title: one.chatTitle ?? null,
82
82
  timestamp: one.timestamp,
83
83
  sender_name: one.senderName,
84
- text: one.text,
84
+ excerpt: excerpt(one.text, query),
85
85
  })),
86
86
  untrusted: hit.email ? [...MESSAGE_HIT_UNTRUSTED, ...MAIL_HIT_UNTRUSTED] : MESSAGE_HIT_UNTRUSTED,
87
87
  });
@@ -107,11 +107,13 @@ const notesCommand = (messenger) => annotate(new Command("notes"), { effects: LO
107
107
  "text model, by meaning; each hit says which found it and what it links to")
108
108
  .argument("<query...>", 'strict Lucene query: words, "phrases", AND/OR/NOT, tag:, source:internal (written in memo) or source:file ' +
109
109
  "(from a notes folder) and date ranges")
110
- .addHelpText("after", "tag: in --filter keeps the notes with that tag and leaves the search by meaning as it is — --filter 'tag:work'. " +
110
+ .addHelpText("after", "Fields in the query or in --filter (tag:, date:, source:…) hold for every hit, found by words or by meaning; " +
111
+ "only the words are searched by meaning, and a query of fields alone lists the matching notes, newest first — " +
112
+ "'budget tag:work', 'date:today'. updated_at is the time date: reads: a Drive document's edit time. " +
111
113
  "--json: the list is items; each note's reference is ref.")
112
114
  .option("--source <accounts>", "only these notes accounts, separated by commas: notes:internal for notes written in memo, notes:<folder id> " +
113
115
  "as a hit shows it, notes, documents or group:<name>")
114
- .option("--filter <query>", "a query every hit must also match; it does not change the search by meaning")
116
+ .option("--filter <query>", "a query every hit must also match, found by words or by meaning")
115
117
  .option("--limit <n>", "how many", positiveCount("--limit"))
116
118
  .option("--page <n>", "which page, starting at 1", positiveCount("--page"))
117
119
  .option("--exact", "words as written only; meaning is not searched")
@@ -3,9 +3,9 @@ import type { CacheDatabase } from "../../store/driver.js";
3
3
  import type { Messenger } from "./context.js";
4
4
  /** `doctor`'s short summary of the store. Must answer for a broken file, so an error is a field. */
5
5
  export declare const storeSummary: (env: NodeJS.ProcessEnv) => Promise<{
6
- error?: undefined;
7
6
  path: string;
8
7
  exists: boolean;
8
+ error?: undefined;
9
9
  } | {
10
10
  path: string;
11
11
  exists: boolean;
@@ -499,7 +499,8 @@ const runOnce = async (argv, definition, options) => {
499
499
  streams.diagnostic(help.replace(/\n$/, ""));
500
500
  return exitCodeFor("validation_error");
501
501
  }
502
- message = `give a command — run \`${command} --help\` for the commands`;
502
+ const group = commandPath(program, rest);
503
+ message = `give a command — run \`${[command, group, "--help"].filter(Boolean).join(" ")}\` for the commands`;
503
504
  }
504
505
  if (profile !== undefined &&
505
506
  error.code === "commander.unknownCommand" &&
@@ -56,7 +56,7 @@ export declare const conversationDetails: v.UnionSchema<[v.StrictObjectSchema<{
56
56
  readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
57
57
  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`">]>;
58
58
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
59
- readonly text: v.StringSchema<undefined>;
59
+ readonly excerpt: v.StringSchema<undefined>;
60
60
  }, undefined>, undefined>, undefined>;
61
61
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
62
62
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
@@ -273,7 +273,7 @@ export declare const conversationDetails: v.UnionSchema<[v.StrictObjectSchema<{
273
273
  readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
274
274
  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`">]>;
275
275
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
276
- readonly text: v.StringSchema<undefined>;
276
+ readonly excerpt: v.StringSchema<undefined>;
277
277
  }, undefined>, undefined>, undefined>;
278
278
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
279
279
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
@@ -47,7 +47,7 @@ export declare const contribution: v.StrictObjectSchema<{
47
47
  readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
48
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
49
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
50
- readonly text: v.StringSchema<undefined>;
50
+ readonly excerpt: v.StringSchema<undefined>;
51
51
  }, undefined>, undefined>, undefined>;
52
52
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
53
53
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
@@ -264,7 +264,7 @@ export declare const contribution: v.StrictObjectSchema<{
264
264
  readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
265
265
  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`">]>;
266
266
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
267
- readonly text: v.StringSchema<undefined>;
267
+ readonly excerpt: v.StringSchema<undefined>;
268
268
  }, undefined>, undefined>, undefined>;
269
269
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
270
270
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
@@ -519,7 +519,7 @@ export declare const contribution: v.StrictObjectSchema<{
519
519
  readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
520
520
  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`">]>;
521
521
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
522
- readonly text: v.StringSchema<undefined>;
522
+ readonly excerpt: v.StringSchema<undefined>;
523
523
  }, undefined>, undefined>, undefined>;
524
524
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
525
525
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
@@ -736,7 +736,7 @@ export declare const contribution: v.StrictObjectSchema<{
736
736
  readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
737
737
  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`">]>;
738
738
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
739
- readonly text: v.StringSchema<undefined>;
739
+ readonly excerpt: v.StringSchema<undefined>;
740
740
  }, undefined>, undefined>, undefined>;
741
741
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
742
742
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
@@ -1027,7 +1027,7 @@ export declare const evidence: v.UnionSchema<[v.StrictObjectSchema<{
1027
1027
  readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1028
1028
  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`">]>;
1029
1029
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1030
- readonly text: v.StringSchema<undefined>;
1030
+ readonly excerpt: v.StringSchema<undefined>;
1031
1031
  }, undefined>, undefined>, undefined>;
1032
1032
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
1033
1033
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
@@ -1244,7 +1244,7 @@ export declare const evidence: v.UnionSchema<[v.StrictObjectSchema<{
1244
1244
  readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1245
1245
  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`">]>;
1246
1246
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1247
- readonly text: v.StringSchema<undefined>;
1247
+ readonly excerpt: v.StringSchema<undefined>;
1248
1248
  }, undefined>, undefined>, undefined>;
1249
1249
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
1250
1250
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
@@ -1499,7 +1499,7 @@ export declare const evidence: v.UnionSchema<[v.StrictObjectSchema<{
1499
1499
  readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1500
1500
  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`">]>;
1501
1501
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1502
- readonly text: v.StringSchema<undefined>;
1502
+ readonly excerpt: v.StringSchema<undefined>;
1503
1503
  }, undefined>, undefined>, undefined>;
1504
1504
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
1505
1505
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
@@ -1716,7 +1716,7 @@ export declare const evidence: v.UnionSchema<[v.StrictObjectSchema<{
1716
1716
  readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1717
1717
  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`">]>;
1718
1718
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1719
- readonly text: v.StringSchema<undefined>;
1719
+ readonly excerpt: v.StringSchema<undefined>;
1720
1720
  }, undefined>, undefined>, undefined>;
1721
1721
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
1722
1722
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
@@ -270,7 +270,7 @@ export declare const ENTITIES: {
270
270
  readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
271
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
272
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
273
- readonly text: v.StringSchema<undefined>;
273
+ readonly excerpt: v.StringSchema<undefined>;
274
274
  }, undefined>, undefined>, undefined>;
275
275
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
276
276
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
@@ -487,7 +487,7 @@ export declare const ENTITIES: {
487
487
  readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
488
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
489
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
490
- readonly text: v.StringSchema<undefined>;
490
+ readonly excerpt: v.StringSchema<undefined>;
491
491
  }, undefined>, undefined>, undefined>;
492
492
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
493
493
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
@@ -709,7 +709,7 @@ export declare const ENTITIES: {
709
709
  readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
710
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
711
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
712
- readonly text: v.StringSchema<undefined>;
712
+ readonly excerpt: v.StringSchema<undefined>;
713
713
  }, undefined>, undefined>, undefined>;
714
714
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
715
715
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
@@ -1192,7 +1192,7 @@ export declare const ENTITIES: {
1192
1192
  readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1193
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
1194
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1195
- readonly text: v.StringSchema<undefined>;
1195
+ readonly excerpt: v.StringSchema<undefined>;
1196
1196
  }, undefined>, undefined>, undefined>;
1197
1197
  readonly email: v.OptionalSchema<v.StrictObjectSchema<{
1198
1198
  readonly subject: v.NullableSchema<v.StringSchema<undefined>, undefined>;
@@ -1279,7 +1279,7 @@ export declare const ENTITIES: {
1279
1279
  readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1280
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
1281
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1282
- readonly text: v.StringSchema<undefined>;
1282
+ readonly excerpt: v.StringSchema<undefined>;
1283
1283
  }, undefined>, undefined>, undefined>;
1284
1284
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
1285
1285
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
@@ -1496,7 +1496,7 @@ export declare const ENTITIES: {
1496
1496
  readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1497
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
1498
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1499
- readonly text: v.StringSchema<undefined>;
1499
+ readonly excerpt: v.StringSchema<undefined>;
1500
1500
  }, undefined>, undefined>, undefined>;
1501
1501
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
1502
1502
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
@@ -1944,7 +1944,7 @@ export declare const ENTITIES: {
1944
1944
  readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1945
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
1946
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1947
- readonly text: v.StringSchema<undefined>;
1947
+ readonly excerpt: v.StringSchema<undefined>;
1948
1948
  }, undefined>, undefined>, undefined>;
1949
1949
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
1950
1950
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
@@ -2161,7 +2161,7 @@ export declare const ENTITIES: {
2161
2161
  readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
2162
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
2163
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
2164
- readonly text: v.StringSchema<undefined>;
2164
+ readonly excerpt: v.StringSchema<undefined>;
2165
2165
  }, undefined>, undefined>, undefined>;
2166
2166
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
2167
2167
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
@@ -2382,7 +2382,7 @@ export declare const ENTITIES: {
2382
2382
  readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
2383
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
2384
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
2385
- readonly text: v.StringSchema<undefined>;
2385
+ readonly excerpt: v.StringSchema<undefined>;
2386
2386
  }, undefined>, undefined>, undefined>;
2387
2387
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
2388
2388
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
@@ -2599,7 +2599,7 @@ export declare const ENTITIES: {
2599
2599
  readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
2600
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
2601
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
2602
- readonly text: v.StringSchema<undefined>;
2602
+ readonly excerpt: v.StringSchema<undefined>;
2603
2603
  }, undefined>, undefined>, undefined>;
2604
2604
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
2605
2605
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
@@ -6278,6 +6278,13 @@ export declare const ENTITIES: {
6278
6278
  readonly created_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`">]>;
6279
6279
  readonly updated_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`">]>;
6280
6280
  readonly untrusted: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
6281
+ readonly change: v.OptionalSchema<v.PicklistSchema<["new", "moved", "cancelled"], undefined>, undefined>;
6282
+ readonly changed_at: v.OptionalSchema<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>, undefined>;
6283
+ readonly was: v.OptionalSchema<v.StrictObjectSchema<{
6284
+ readonly starts_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>;
6285
+ readonly ends_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>;
6286
+ }, undefined>, undefined>;
6287
+ readonly overlaps: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
6281
6288
  }, undefined>;
6282
6289
  readonly meeting_review: v.StrictObjectSchema<{
6283
6290
  readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
@@ -6854,7 +6861,7 @@ export declare const ENTITIES: {
6854
6861
  readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
6855
6862
  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
6863
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
6857
- readonly text: v.StringSchema<undefined>;
6864
+ readonly excerpt: v.StringSchema<undefined>;
6858
6865
  }, undefined>, undefined>, undefined>;
6859
6866
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
6860
6867
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
@@ -7071,7 +7078,7 @@ export declare const ENTITIES: {
7071
7078
  readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
7072
7079
  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
7080
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
7074
- readonly text: v.StringSchema<undefined>;
7081
+ readonly excerpt: v.StringSchema<undefined>;
7075
7082
  }, undefined>, undefined>, undefined>;
7076
7083
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
7077
7084
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
@@ -7531,7 +7538,7 @@ export declare const ENTITIES: {
7531
7538
  readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
7532
7539
  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
7540
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
7534
- readonly text: v.StringSchema<undefined>;
7541
+ readonly excerpt: v.StringSchema<undefined>;
7535
7542
  }, undefined>, undefined>, undefined>;
7536
7543
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
7537
7544
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
@@ -8039,7 +8046,7 @@ export declare const ENTITIES: {
8039
8046
  readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
8040
8047
  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
8048
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
8042
- readonly text: v.StringSchema<undefined>;
8049
+ readonly excerpt: v.StringSchema<undefined>;
8043
8050
  }, undefined>, undefined>, undefined>;
8044
8051
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
8045
8052
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
@@ -8723,7 +8730,7 @@ export declare const ENTITIES: {
8723
8730
  readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
8724
8731
  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
8732
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
8726
- readonly text: v.StringSchema<undefined>;
8733
+ readonly excerpt: v.StringSchema<undefined>;
8727
8734
  }, undefined>, undefined>, undefined>;
8728
8735
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
8729
8736
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
@@ -10394,7 +10401,7 @@ export declare const ENTITIES: {
10394
10401
  readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
10395
10402
  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
10403
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
10397
- readonly text: v.StringSchema<undefined>;
10404
+ readonly excerpt: v.StringSchema<undefined>;
10398
10405
  }, undefined>, undefined>, undefined>;
10399
10406
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
10400
10407
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
@@ -10611,7 +10618,7 @@ export declare const ENTITIES: {
10611
10618
  readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
10612
10619
  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
10620
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
10614
- readonly text: v.StringSchema<undefined>;
10621
+ readonly excerpt: v.StringSchema<undefined>;
10615
10622
  }, undefined>, undefined>, undefined>;
10616
10623
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
10617
10624
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
@@ -10866,7 +10873,7 @@ export declare const ENTITIES: {
10866
10873
  readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
10867
10874
  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
10875
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
10869
- readonly text: v.StringSchema<undefined>;
10876
+ readonly excerpt: v.StringSchema<undefined>;
10870
10877
  }, undefined>, undefined>, undefined>;
10871
10878
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
10872
10879
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
@@ -11083,7 +11090,7 @@ export declare const ENTITIES: {
11083
11090
  readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
11084
11091
  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
11092
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
11086
- readonly text: v.StringSchema<undefined>;
11093
+ readonly excerpt: v.StringSchema<undefined>;
11087
11094
  }, undefined>, undefined>, undefined>;
11088
11095
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
11089
11096
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
@@ -46,7 +46,7 @@ export declare const watchedMessage: v.StrictObjectSchema<{
46
46
  readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
47
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
48
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
49
- readonly text: v.StringSchema<undefined>;
49
+ readonly excerpt: v.StringSchema<undefined>;
50
50
  }, undefined>, undefined>, undefined>;
51
51
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
52
52
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
@@ -555,7 +555,7 @@ export declare const messageEvent: v.VariantSchema<"event", [v.StrictObjectSchem
555
555
  readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
556
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
557
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
558
- readonly text: v.StringSchema<undefined>;
558
+ readonly excerpt: v.StringSchema<undefined>;
559
559
  }, undefined>, undefined>, undefined>;
560
560
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
561
561
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
@@ -1171,7 +1171,7 @@ export declare const watchItem: v.UnionSchema<[v.StrictObjectSchema<{
1171
1171
  readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1172
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
1173
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1174
- readonly text: v.StringSchema<undefined>;
1174
+ readonly excerpt: v.StringSchema<undefined>;
1175
1175
  }, undefined>, undefined>, undefined>;
1176
1176
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
1177
1177
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
@@ -1679,7 +1679,7 @@ export declare const watchItem: v.UnionSchema<[v.StrictObjectSchema<{
1679
1679
  readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1680
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
1681
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1682
- readonly text: v.StringSchema<undefined>;
1682
+ readonly excerpt: v.StringSchema<undefined>;
1683
1683
  }, undefined>, undefined>, undefined>;
1684
1684
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
1685
1685
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
@@ -51,7 +51,7 @@ export declare const messageThread: v.StrictObjectSchema<{
51
51
  readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
52
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
53
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
54
- readonly text: v.StringSchema<undefined>;
54
+ readonly excerpt: v.StringSchema<undefined>;
55
55
  }, undefined>, undefined>, undefined>;
56
56
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
57
57
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
@@ -292,7 +292,7 @@ export declare const messageContext: v.UnionSchema<[v.StrictObjectSchema<{
292
292
  readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
293
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
294
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
295
- readonly text: v.StringSchema<undefined>;
295
+ readonly excerpt: v.StringSchema<undefined>;
296
296
  }, undefined>, undefined>, undefined>;
297
297
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
298
298
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
@@ -514,7 +514,7 @@ export declare const messageContext: v.UnionSchema<[v.StrictObjectSchema<{
514
514
  readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
515
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
516
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
517
- readonly text: v.StringSchema<undefined>;
517
+ readonly excerpt: v.StringSchema<undefined>;
518
518
  }, undefined>, undefined>, undefined>;
519
519
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
520
520
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
@@ -47,7 +47,7 @@ export declare const messageWrite: v.StrictObjectSchema<{
47
47
  readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
48
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
49
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
50
- readonly text: v.StringSchema<undefined>;
50
+ readonly excerpt: v.StringSchema<undefined>;
51
51
  }, undefined>, undefined>, undefined>;
52
52
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
53
53
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
@@ -265,7 +265,7 @@ export declare const messageWrite: v.StrictObjectSchema<{
265
265
  readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
266
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
267
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
268
- readonly text: v.StringSchema<undefined>;
268
+ readonly excerpt: v.StringSchema<undefined>;
269
269
  }, undefined>, undefined>, undefined>;
270
270
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
271
271
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
@@ -491,7 +491,7 @@ export declare const messageSend: v.UnionSchema<[v.StrictObjectSchema<{
491
491
  readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
492
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
493
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
494
- readonly text: v.StringSchema<undefined>;
494
+ readonly excerpt: v.StringSchema<undefined>;
495
495
  }, undefined>, undefined>, undefined>;
496
496
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
497
497
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
@@ -709,7 +709,7 @@ export declare const messageSend: v.UnionSchema<[v.StrictObjectSchema<{
709
709
  readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
710
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
711
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
712
- readonly text: v.StringSchema<undefined>;
712
+ readonly excerpt: v.StringSchema<undefined>;
713
713
  }, undefined>, undefined>, undefined>;
714
714
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
715
715
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
@@ -57,14 +57,14 @@ export declare const message: v.StrictObjectSchema<{
57
57
  }, undefined>, undefined>, undefined>;
58
58
  /**
59
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.
60
+ * one may change or cancel what the hit says. An excerpt, as the hit's own: `messages context <ref>` has the whole text.
61
61
  */
62
62
  readonly follow_ups: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
63
63
  readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
64
64
  readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
65
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
66
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
67
- readonly text: v.StringSchema<undefined>;
67
+ readonly excerpt: v.StringSchema<undefined>;
68
68
  }, undefined>, undefined>, undefined>;
69
69
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
70
70
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
@@ -61,14 +61,14 @@ export const message = v.strictObject({
61
61
  context: v.optional(v.array(v.strictObject({ ref: reference, timestamp: time, sender_name: v.nullable(text), text }))),
62
62
  /**
63
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.
64
+ * one may change or cancel what the hit says. An excerpt, as the hit's own: `messages context <ref>` has the whole text.
65
65
  */
66
66
  follow_ups: v.optional(v.array(v.strictObject({
67
67
  ref: reference,
68
68
  chat_title: v.nullable(text),
69
69
  timestamp: time,
70
70
  sender_name: v.nullable(text),
71
- text,
71
+ excerpt: text,
72
72
  }))),
73
73
  outgoing: v.nullable(v.boolean()),
74
74
  attachments: v.array(attachment),
@@ -70,7 +70,7 @@ export declare const storeExport: v.UnionSchema<[v.StrictObjectSchema<{
70
70
  readonly chat_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
71
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
72
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
73
- readonly text: v.StringSchema<undefined>;
73
+ readonly excerpt: v.StringSchema<undefined>;
74
74
  }, undefined>, undefined>, undefined>;
75
75
  readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
76
76
  readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
@@ -65,6 +65,10 @@ const OTHERS = [
65
65
  ["calendar.read-only", "permission_error", "the calendar takes no new events from this account"],
66
66
  ["busy.offline", "permission_error", "calendars busy asks the provider; --offline was given"],
67
67
  validation("busy.no-calendars", "no calendar syncs and no person was named, so there is nobody to ask"),
68
+ ["search.offline", "permission_error", "search --backend server asks the provider; --offline was given"],
69
+ validation("search.no-calendars", "no calendar of this profile syncs yet, so the provider has nothing to search"),
70
+ validation("search.server-options", "search --backend server takes neither --exact, --cursor nor --newest"),
71
+ validation("search.one-backend", "search answers from one backend at a time: archive or server"),
68
72
  validation("store.refused", "the local store refused the document text"),
69
73
  ["store.not-writable", "permission_error", "the message store cannot be written from this process"],
70
74
  [
@@ -187,5 +187,15 @@ export declare const event: v.StrictObjectSchema<{
187
187
  readonly updated_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`">]>;
188
188
  /** The fields whoever sent the invitation wrote, on a calendar CLI's `events list`: an agent reads them as data. */
189
189
  readonly untrusted: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
190
+ /** On a calendar CLI's `events list changed:<date>`: what changed since then, and when the store saw it. */
191
+ readonly change: v.OptionalSchema<v.PicklistSchema<["new", "moved", "cancelled"], undefined>, undefined>;
192
+ readonly changed_at: v.OptionalSchema<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>, undefined>;
193
+ /** The times a moved event had at that date. */
194
+ readonly was: v.OptionalSchema<v.StrictObjectSchema<{
195
+ readonly starts_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>;
196
+ readonly ends_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>;
197
+ }, undefined>, undefined>;
198
+ /** On a calendar CLI's `events list overlapping`: the events it clashes with, as `event:<id>`. */
199
+ readonly overlaps: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
190
200
  }, undefined>;
191
201
  export declare const eventItem: (one: Event) => v.InferOutput<typeof event>;
@@ -202,6 +202,13 @@ export const event = v.strictObject({
202
202
  updated_at: isoTime,
203
203
  /** The fields whoever sent the invitation wrote, on a calendar CLI's `events list`: an agent reads them as data. */
204
204
  untrusted: v.optional(v.array(text)),
205
+ /** On a calendar CLI's `events list changed:<date>`: what changed since then, and when the store saw it. */
206
+ change: v.optional(v.picklist(["new", "moved", "cancelled"])),
207
+ changed_at: v.optional(v.nullable(isoTime)),
208
+ /** The times a moved event had at that date. */
209
+ was: v.optional(v.strictObject({ starts_at: v.nullable(isoTime), ends_at: v.nullable(isoTime) })),
210
+ /** On a calendar CLI's `events list overlapping`: the events it clashes with, as `event:<id>`. */
211
+ overlaps: v.optional(v.array(text)),
205
212
  });
206
213
  export const eventItem = (one) => ({
207
214
  id: String(one.id),
@@ -1,14 +1,13 @@
1
1
  import type { Profiles } from "../search/account-list.js";
2
2
  import type { Note, StoredAccount, StoredFile } from "../store/index.js";
3
3
  /**
4
- * Where a hit came from. The document's preferred file says it: its account's provider, its link and its edit time.
4
+ * Where a hit came from. The document's preferred file says it: its account's provider and its link.
5
5
  * A Drive document under a notes folder (before version 31 moves it) is still known by its front matter.
6
- * Indexing time belongs to the local row.
6
+ * The hit's time is the store search's: the one `date:` reads.
7
7
  */
8
8
  export declare const documentSource: (note: Note, accounts: readonly StoredAccount[], profiles: Profiles, file?: StoredFile) => {
9
9
  kind: "document" | "note";
10
10
  provider: string;
11
11
  account: string;
12
12
  url?: string | undefined;
13
- updated_at: string;
14
13
  };