@wirecat/cli-core 0.471.0 → 0.473.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 (76) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/dist/cli/execution.d.ts +5 -0
  3. package/dist/cli/execution.js +5 -0
  4. package/dist/cli/help/first-screen.js +5 -0
  5. package/dist/cli/messenger/conversation-answers.d.ts +1 -0
  6. package/dist/cli/messenger/hearing-command.js +1 -1
  7. package/dist/cli/messenger/message-answers.d.ts +1 -0
  8. package/dist/cli/messenger/message-items.js +2 -0
  9. package/dist/cli/messenger/message-writes.d.ts +2 -0
  10. package/dist/cli/program.js +5 -3
  11. package/dist/entities/conversation-results.d.ts +2 -0
  12. package/dist/entities/evidence.d.ts +8 -0
  13. package/dist/entities/index.d.ts +19 -0
  14. package/dist/entities/knowledge-lists.d.ts +1 -0
  15. package/dist/entities/knowledge-lists.js +1 -0
  16. package/dist/entities/listener.d.ts +4 -0
  17. package/dist/entities/message-context.d.ts +3 -0
  18. package/dist/entities/message-write.d.ts +4 -0
  19. package/dist/entities/message.d.ts +1 -0
  20. package/dist/entities/message.js +1 -0
  21. package/dist/entities/store-records.d.ts +1 -0
  22. package/dist/errors/reasons.js +1 -0
  23. package/dist/mail/bulk.d.ts +7 -0
  24. package/dist/mail/bulk.js +3 -0
  25. package/dist/mail/facts.d.ts +9 -0
  26. package/dist/mail/facts.js +22 -0
  27. package/dist/mail/folders.d.ts +10 -0
  28. package/dist/mail/folders.js +13 -0
  29. package/dist/mail/gone.d.ts +20 -0
  30. package/dist/mail/gone.js +53 -0
  31. package/dist/mail/headers.d.ts +43 -0
  32. package/dist/mail/headers.js +88 -0
  33. package/dist/mail/index.d.ts +17 -0
  34. package/dist/mail/index.js +16 -0
  35. package/dist/mail/parse.d.ts +24 -0
  36. package/dist/mail/parse.js +79 -0
  37. package/dist/mail/presets.d.ts +30 -0
  38. package/dist/mail/presets.js +95 -0
  39. package/dist/mail/probe.d.ts +49 -0
  40. package/dist/mail/probe.js +81 -0
  41. package/dist/mail/resume.d.ts +61 -0
  42. package/dist/mail/resume.js +61 -0
  43. package/dist/mail/rule-input.d.ts +14 -0
  44. package/dist/mail/rule-input.js +32 -0
  45. package/dist/mail/rule-tags.d.ts +40 -0
  46. package/dist/mail/rule-tags.js +87 -0
  47. package/dist/mail/rules.d.ts +83 -0
  48. package/dist/mail/rules.js +108 -0
  49. package/dist/mail/score.d.ts +67 -0
  50. package/dist/mail/score.js +174 -0
  51. package/dist/mail/sender-scores.d.ts +30 -0
  52. package/dist/mail/sender-scores.js +96 -0
  53. package/dist/mail/source.d.ts +74 -0
  54. package/dist/mail/source.js +1 -0
  55. package/dist/mail/stored.d.ts +7 -0
  56. package/dist/mail/stored.js +36 -0
  57. package/dist/mail/sync.d.ts +106 -0
  58. package/dist/mail/sync.js +748 -0
  59. package/dist/mail/testing/contract.d.ts +20 -0
  60. package/dist/mail/testing/contract.js +106 -0
  61. package/dist/mail/testing/fake.d.ts +72 -0
  62. package/dist/mail/testing/fake.js +156 -0
  63. package/dist/mail/testing/index.d.ts +2 -0
  64. package/dist/mail/testing/index.js +2 -0
  65. package/dist/runs/error-detail.d.ts +2 -0
  66. package/dist/runs/error-detail.js +4 -0
  67. package/dist/speech/hearing.d.ts +2 -0
  68. package/dist/speech/hearing.js +10 -0
  69. package/dist/store/knowledge-query.js +3 -1
  70. package/dist/store/people.d.ts +2 -0
  71. package/dist/store/people.js +12 -0
  72. package/dist/store/sqlite/knowledge.d.ts +3 -1
  73. package/dist/store/sqlite/knowledge.js +7 -2
  74. package/dist/store/sqlite/task-keys.d.ts +1 -0
  75. package/dist/store/sqlite/task-keys.js +1 -0
  76. package/package.json +12 -1
package/CHANGELOG.md CHANGED
@@ -7,6 +7,54 @@ shape of this file.
7
7
 
8
8
  ## Unreleased
9
9
 
10
+ ## 0.473.0 — 29.10.2026
11
+
12
+ ### Added
13
+
14
+ - **`syncMail` takes a `budget` and answers `partial`** (WC-LIFE-16 for mail). With a `RunBudget` it reads the window in
15
+ rounds of `source.listBatch` messages, spends one request per call to the source, saves its resume point after every
16
+ round (a 16,000-message folder now finishes over several runs, mid-folder progress included), asks once more at the
17
+ end of the run for a message the source could not give, and returns `state`, `stopped`, `remaining` and `requests`.
18
+ `MailSource` gains the optional `listBatch` and `fetchBatch`. Without a budget nothing changes except that a failed
19
+ chunk now saves the resume point before it throws.
20
+ - **A failed run's record keeps the transport's code.** `runs show` has `error.cause_code` (`NoConnection`,
21
+ `ETIMEDOUT`, a server response code; plain codes only, never the server's text) when the error carries one.
22
+ - **A cooperative command that declares `partial` is a sync and gets 15 minutes at a terminal** (`DEFAULT_SYNC_MS`);
23
+ other cooperative commands keep 5 minutes and MCP keeps 45 seconds. The calendar `sync` is one: it had 5 minutes.
24
+ - **`sender_is_me` on every message the shared message output carries** (`messageItem`, so `messages list`, `show`,
25
+ `context`, search windows and the catch-up reads of tg, max and wa). It is true when the message is `outgoing` or its
26
+ sender id is the reading account's own, so MAX's owner, which has no sender id, is told apart from an unknown sender.
27
+ - **Projects have a `kind`: `project` or `inbox`**, and `projects(query)` takes `kind:` and `name:` (with `*`
28
+ wildcards) as query fields.
29
+ - **`store.people.owner()`** returns the person marked as the owner, with their linked identities, or `undefined`
30
+ when none is marked: what a caller needs to resolve `person:me`.
31
+
32
+ ### Changed — may break callers
33
+
34
+ - **`knowledge.projects()` leaves the per-account task inbox projects out** (`IN` plus eight hex digits, such as
35
+ `telegram:220195113`) unless the query names `kind`; `kind:inbox` lists only them. A caller that read inboxes from
36
+ the unfiltered list must ask for `kind:inbox`.
37
+
38
+ ### Fixed
39
+
40
+ - **`projects list 'name:*tart*'` no longer crashes** with `internal_error command.crashed`: `name` was a query field
41
+ the store had no column for.
42
+ - **`--offline --transcribe` says what it did not do.** It still shows transcripts already stored and never connects;
43
+ voice messages without one are now in `missing` with the exact `<app> <profile> messages transcribe <chat> <id>`
44
+ command, in `messages list`, `inbox` and `review`.
45
+
46
+ ## 0.472.0 — 28.10.2026
47
+
48
+ ### Added
49
+
50
+ - **`./mail` and `./mail/testing` — the mail engine, moved from memo.** `MailSource` (the port a mail CLI's adapter
51
+ implements), `syncMail(source, store, options)` (resume points per folder, rules, deletions with a safety stop,
52
+ envelopes, attachment text, `index` for the caller's embedding), `scoreSenders`, the rules and the parser. The account
53
+ key `{ provider: "email", account: <address> }` and the sync-state keys (`mail_resume:<folder>`, `mail_folder_scope`,
54
+ `mail_coverage`, `mail_sender_scores`) are memo's, so a mailbox memo imported continues where it stopped. `./mail/testing`
55
+ has a Gmail-shaped in-memory source and the contract every adapter must pass. See `docs/dev/MAIL.md`. Mail is now
56
+ fetched by its own source tool, not by the knowledge tool: `TOOL-BOUNDARIES.md` and `STANDARD.md` say so.
57
+
10
58
  ## 0.471.0 — 27.10.2026
11
59
 
12
60
  ### Added
@@ -3,6 +3,11 @@ import type { Closeable } from "./deadline.js";
3
3
  export declare const DEFAULT_COMMAND_MS = 30000;
4
4
  /** A `cooperative` command stops on its own before its deadline and keeps its work, so it may run longer. */
5
5
  export declare const DEFAULT_COOPERATIVE_MS: number;
6
+ /**
7
+ * A cooperative command that also declares `partial` is a resumable sync: it spends a request budget, answers
8
+ * `partial` with `next`, and loses nothing when it stops, so a terminal lets it run longer than other cooperative work.
9
+ */
10
+ export declare const DEFAULT_SYNC_MS: number;
6
11
  /**
7
12
  * The same over MCP: clients cut a tool call at about 60 s (the MCP TypeScript SDK's `DEFAULT_REQUEST_TIMEOUT_MSEC`
8
13
  * is 60000), so the command answers well before that.
@@ -4,6 +4,11 @@ import { fieldsOf, projectFields } from "./result-fields.js";
4
4
  export const DEFAULT_COMMAND_MS = 30_000;
5
5
  /** A `cooperative` command stops on its own before its deadline and keeps its work, so it may run longer. */
6
6
  export const DEFAULT_COOPERATIVE_MS = 5 * 60_000;
7
+ /**
8
+ * A cooperative command that also declares `partial` is a resumable sync: it spends a request budget, answers
9
+ * `partial` with `next`, and loses nothing when it stops, so a terminal lets it run longer than other cooperative work.
10
+ */
11
+ export const DEFAULT_SYNC_MS = 15 * 60_000;
7
12
  /**
8
13
  * The same over MCP: clients cut a tool call at about 60 s (the MCP TypeScript SDK's `DEFAULT_REQUEST_TIMEOUT_MSEC`
9
14
  * is 60000), so the command answers well before that.
@@ -38,6 +38,11 @@ export const WIRECAT_TOOLS = [
38
38
  shown: "memo context <person>",
39
39
  does: "one person across messengers, mail, notes and meetings",
40
40
  },
41
+ {
42
+ command: "mail",
43
+ package: "@wirecat/mail-cli",
44
+ does: "IMAP mail in the same local store: search your mailbox offline, next to your other WireCat data",
45
+ },
41
46
  ];
42
47
  const WIDTH = 100;
43
48
  const widest = (texts) => texts.reduce((most, text) => Math.max(most, text.length), 0);
@@ -45,6 +45,7 @@ export declare const conversationShown: (account: AccountKey, { summary, message
45
45
  sender_name: string | null;
46
46
  sender_username?: string | undefined;
47
47
  sender_is_chat?: boolean | undefined;
48
+ sender_is_me: boolean;
48
49
  mentions?: string[] | undefined;
49
50
  timestamp: string;
50
51
  edited_at: string | null;
@@ -34,7 +34,7 @@ export const hearForCommand = async (context, messenger, messages, transcribe, m
34
34
  else if (transcribe && hearing.unheard.length > 0) {
35
35
  context.renderer.note(`${hearing.unheard.length} voice message(s) not heard yet — ask again later`);
36
36
  }
37
- return hearing;
37
+ return offline ? { ...hearing, offline: `${messenger.app.command} ${context.profile}` } : hearing;
38
38
  }
39
39
  finally {
40
40
  await kept.close();
@@ -22,6 +22,7 @@ export declare const threadAnswer: ({ items, ...thread }: ThreadContext, reader:
22
22
  sender_name: string | null;
23
23
  sender_username?: string | undefined;
24
24
  sender_is_chat?: boolean | undefined;
25
+ sender_is_me: boolean;
25
26
  mentions?: string[] | undefined;
26
27
  timestamp: string;
27
28
  edited_at: string | null;
@@ -42,6 +42,8 @@ export const messageItem = (message, reader) => {
42
42
  sender_name: message.senderName,
43
43
  sender_username: message.senderUsername,
44
44
  sender_is_chat: message.senderIsChat,
45
+ // MAX reports the owner's own messages with no sender id, so `outgoing` counts as well as the id.
46
+ sender_is_me: message.outgoing === true || (message.senderId !== null && String(message.senderId) === account),
45
47
  mentions: message.mentions,
46
48
  timestamp: message.timestamp,
47
49
  edited_at: message.editedAt,
@@ -26,6 +26,7 @@ export declare const writtenAnswer: ({ operationId, sendId, message, messages, s
26
26
  sender_name: string | null;
27
27
  sender_username?: string | undefined;
28
28
  sender_is_chat?: boolean | undefined;
29
+ sender_is_me: boolean;
29
30
  mentions?: string[] | undefined;
30
31
  timestamp: string;
31
32
  edited_at: string | null;
@@ -216,6 +217,7 @@ export declare const writtenAnswer: ({ operationId, sendId, message, messages, s
216
217
  sender_name: string | null;
217
218
  sender_username?: string | undefined;
218
219
  sender_is_chat?: boolean | undefined;
220
+ sender_is_me: boolean;
219
221
  mentions?: string[] | undefined;
220
222
  timestamp: string;
221
223
  edited_at: string | null;
@@ -20,7 +20,7 @@ import { outputFor, provide } from "./context.js";
20
20
  import { refuseByCommandPermissions, refuseWriteBeforeConnecting } from "./early-refusal.js";
21
21
  import { changesAuthorityAt, changesAuthorityNow, isLogin, isStoreChange, judgedEffects, judgedTargets, storeChangeRefusal, } from "./effects.js";
22
22
  import { itemOf, renderAnswer, snakeKeys } from "./envelope.js";
23
- import { byteCount, DEFAULT_AGENT_COOPERATIVE_MS, DEFAULT_COMMAND_MS, DEFAULT_COOPERATIVE_MS, DEFAULT_OUTPUT_BYTES, execution, } from "./execution.js";
23
+ import { byteCount, DEFAULT_AGENT_COOPERATIVE_MS, DEFAULT_COMMAND_MS, DEFAULT_COOPERATIVE_MS, DEFAULT_OUTPUT_BYTES, DEFAULT_SYNC_MS, execution, } from "./execution.js";
24
24
  import { setupAtStart } from "./first-run.js";
25
25
  import { installHelp } from "./help/first-screen.js";
26
26
  import { showInputFields } from "./input-fields.js";
@@ -324,7 +324,7 @@ const runOnce = async (argv, definition, options) => {
324
324
  throw new CliError("permission_error", `\`${command} ${path.join(" ")}\` calls the Bot API directly, past the send guard and the recipient list, ` +
325
325
  `and this profile keeps that from agents (${BOT_API_KEY}) — the owner turns it on in a terminal: ` +
326
326
  `\`${command} <profile> config set --bot permissions.${BOT_API_KEY} allow\``, { permission: BOT_API_KEY, sent: false });
327
- const { lifetime, cooperative: stopsAtItsPace } = metaOf(action);
327
+ const { lifetime, cooperative: stopsAtItsPace, partial: answersPartial } = metaOf(action);
328
328
  const persistent = lifetime === "persistent";
329
329
  listens = persistent;
330
330
  const interactiveLogin = !headless && lifetime === "interactive";
@@ -339,7 +339,9 @@ const runOnce = async (argv, definition, options) => {
339
339
  : stopsAtItsPace === true
340
340
  ? options.agent
341
341
  ? DEFAULT_AGENT_COOPERATIVE_MS
342
- : DEFAULT_COOPERATIVE_MS
342
+ : answersPartial === true
343
+ ? DEFAULT_SYNC_MS
344
+ : DEFAULT_COOPERATIVE_MS
343
345
  : DEFAULT_COMMAND_MS
344
346
  : persistent
345
347
  ? undefined
@@ -21,6 +21,7 @@ export declare const conversationDetails: v.UnionSchema<[v.StrictObjectSchema<{
21
21
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
22
22
  readonly sender_username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
23
23
  readonly sender_is_chat: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
24
+ readonly sender_is_me: v.BooleanSchema<undefined>;
24
25
  readonly mentions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
25
26
  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`">]>;
26
27
  readonly edited_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>;
@@ -209,6 +210,7 @@ export declare const conversationDetails: v.UnionSchema<[v.StrictObjectSchema<{
209
210
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
210
211
  readonly sender_username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
211
212
  readonly sender_is_chat: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
213
+ readonly sender_is_me: v.BooleanSchema<undefined>;
212
214
  readonly mentions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
213
215
  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`">]>;
214
216
  readonly edited_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>;
@@ -12,6 +12,7 @@ export declare const contribution: v.StrictObjectSchema<{
12
12
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
13
13
  readonly sender_username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
14
14
  readonly sender_is_chat: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
15
+ readonly sender_is_me: v.BooleanSchema<undefined>;
15
16
  readonly mentions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
16
17
  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`">]>;
17
18
  readonly edited_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>;
@@ -200,6 +201,7 @@ export declare const contribution: v.StrictObjectSchema<{
200
201
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
201
202
  readonly sender_username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
202
203
  readonly sender_is_chat: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
204
+ readonly sender_is_me: v.BooleanSchema<undefined>;
203
205
  readonly mentions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
204
206
  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`">]>;
205
207
  readonly edited_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>;
@@ -426,6 +428,7 @@ export declare const contribution: v.StrictObjectSchema<{
426
428
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
427
429
  readonly sender_username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
428
430
  readonly sender_is_chat: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
431
+ readonly sender_is_me: v.BooleanSchema<undefined>;
429
432
  readonly mentions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
430
433
  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`">]>;
431
434
  readonly edited_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>;
@@ -614,6 +617,7 @@ export declare const contribution: v.StrictObjectSchema<{
614
617
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
615
618
  readonly sender_username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
616
619
  readonly sender_is_chat: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
620
+ readonly sender_is_me: v.BooleanSchema<undefined>;
617
621
  readonly mentions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
618
622
  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`">]>;
619
623
  readonly edited_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>;
@@ -876,6 +880,7 @@ export declare const evidence: v.UnionSchema<[v.StrictObjectSchema<{
876
880
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
877
881
  readonly sender_username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
878
882
  readonly sender_is_chat: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
883
+ readonly sender_is_me: v.BooleanSchema<undefined>;
879
884
  readonly mentions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
880
885
  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`">]>;
881
886
  readonly edited_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>;
@@ -1064,6 +1069,7 @@ export declare const evidence: v.UnionSchema<[v.StrictObjectSchema<{
1064
1069
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1065
1070
  readonly sender_username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1066
1071
  readonly sender_is_chat: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1072
+ readonly sender_is_me: v.BooleanSchema<undefined>;
1067
1073
  readonly mentions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
1068
1074
  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`">]>;
1069
1075
  readonly edited_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>;
@@ -1290,6 +1296,7 @@ export declare const evidence: v.UnionSchema<[v.StrictObjectSchema<{
1290
1296
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1291
1297
  readonly sender_username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1292
1298
  readonly sender_is_chat: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1299
+ readonly sender_is_me: v.BooleanSchema<undefined>;
1293
1300
  readonly mentions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
1294
1301
  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`">]>;
1295
1302
  readonly edited_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>;
@@ -1478,6 +1485,7 @@ export declare const evidence: v.UnionSchema<[v.StrictObjectSchema<{
1478
1485
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1479
1486
  readonly sender_username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1480
1487
  readonly sender_is_chat: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1488
+ readonly sender_is_me: v.BooleanSchema<undefined>;
1481
1489
  readonly mentions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
1482
1490
  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`">]>;
1483
1491
  readonly edited_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>;
@@ -234,6 +234,7 @@ export declare const ENTITIES: {
234
234
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
235
235
  readonly sender_username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
236
236
  readonly sender_is_chat: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
237
+ readonly sender_is_me: v.BooleanSchema<undefined>;
237
238
  readonly mentions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
238
239
  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`">]>;
239
240
  readonly edited_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>;
@@ -422,6 +423,7 @@ export declare const ENTITIES: {
422
423
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
423
424
  readonly sender_username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
424
425
  readonly sender_is_chat: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
426
+ readonly sender_is_me: v.BooleanSchema<undefined>;
425
427
  readonly mentions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
426
428
  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`">]>;
427
429
  readonly edited_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>;
@@ -615,6 +617,7 @@ export declare const ENTITIES: {
615
617
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
616
618
  readonly sender_username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
617
619
  readonly sender_is_chat: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
620
+ readonly sender_is_me: v.BooleanSchema<undefined>;
618
621
  readonly mentions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
619
622
  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`">]>;
620
623
  readonly edited_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>;
@@ -1148,6 +1151,7 @@ export declare const ENTITIES: {
1148
1151
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1149
1152
  readonly sender_username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1150
1153
  readonly sender_is_chat: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1154
+ readonly sender_is_me: v.BooleanSchema<undefined>;
1151
1155
  readonly mentions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
1152
1156
  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`">]>;
1153
1157
  readonly edited_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>;
@@ -1336,6 +1340,7 @@ export declare const ENTITIES: {
1336
1340
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1337
1341
  readonly sender_username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1338
1342
  readonly sender_is_chat: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1343
+ readonly sender_is_me: v.BooleanSchema<undefined>;
1339
1344
  readonly mentions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
1340
1345
  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`">]>;
1341
1346
  readonly edited_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>;
@@ -1715,6 +1720,7 @@ export declare const ENTITIES: {
1715
1720
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1716
1721
  readonly sender_username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1717
1722
  readonly sender_is_chat: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1723
+ readonly sender_is_me: v.BooleanSchema<undefined>;
1718
1724
  readonly mentions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
1719
1725
  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`">]>;
1720
1726
  readonly edited_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>;
@@ -1903,6 +1909,7 @@ export declare const ENTITIES: {
1903
1909
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1904
1910
  readonly sender_username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1905
1911
  readonly sender_is_chat: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1912
+ readonly sender_is_me: v.BooleanSchema<undefined>;
1906
1913
  readonly mentions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
1907
1914
  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`">]>;
1908
1915
  readonly edited_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>;
@@ -2095,6 +2102,7 @@ export declare const ENTITIES: {
2095
2102
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
2096
2103
  readonly sender_username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2097
2104
  readonly sender_is_chat: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
2105
+ readonly sender_is_me: v.BooleanSchema<undefined>;
2098
2106
  readonly mentions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
2099
2107
  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`">]>;
2100
2108
  readonly edited_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>;
@@ -2283,6 +2291,7 @@ export declare const ENTITIES: {
2283
2291
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
2284
2292
  readonly sender_username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2285
2293
  readonly sender_is_chat: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
2294
+ readonly sender_is_me: v.BooleanSchema<undefined>;
2286
2295
  readonly mentions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
2287
2296
  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`">]>;
2288
2297
  readonly edited_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>;
@@ -4192,6 +4201,7 @@ export declare const ENTITIES: {
4192
4201
  readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
4193
4202
  readonly key: v.StringSchema<undefined>;
4194
4203
  readonly name: v.StringSchema<undefined>;
4204
+ readonly kind: v.PicklistSchema<["project", "inbox"], undefined>;
4195
4205
  readonly type: v.PicklistSchema<["work", "client", "personal", "oss", "other"], undefined>;
4196
4206
  readonly organization_id: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
4197
4207
  readonly scope: v.PicklistSchema<["personal", "work"], undefined>;
@@ -6620,6 +6630,7 @@ export declare const ENTITIES: {
6620
6630
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
6621
6631
  readonly sender_username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
6622
6632
  readonly sender_is_chat: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
6633
+ readonly sender_is_me: v.BooleanSchema<undefined>;
6623
6634
  readonly mentions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
6624
6635
  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`">]>;
6625
6636
  readonly edited_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>;
@@ -6808,6 +6819,7 @@ export declare const ENTITIES: {
6808
6819
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
6809
6820
  readonly sender_username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
6810
6821
  readonly sender_is_chat: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
6822
+ readonly sender_is_me: v.BooleanSchema<undefined>;
6811
6823
  readonly mentions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
6812
6824
  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`">]>;
6813
6825
  readonly edited_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>;
@@ -7239,6 +7251,7 @@ export declare const ENTITIES: {
7239
7251
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
7240
7252
  readonly sender_username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
7241
7253
  readonly sender_is_chat: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
7254
+ readonly sender_is_me: v.BooleanSchema<undefined>;
7242
7255
  readonly mentions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
7243
7256
  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`">]>;
7244
7257
  readonly edited_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>;
@@ -7718,6 +7731,7 @@ export declare const ENTITIES: {
7718
7731
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
7719
7732
  readonly sender_username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
7720
7733
  readonly sender_is_chat: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
7734
+ readonly sender_is_me: v.BooleanSchema<undefined>;
7721
7735
  readonly mentions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
7722
7736
  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`">]>;
7723
7737
  readonly edited_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>;
@@ -8373,6 +8387,7 @@ export declare const ENTITIES: {
8373
8387
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
8374
8388
  readonly sender_username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
8375
8389
  readonly sender_is_chat: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
8390
+ readonly sender_is_me: v.BooleanSchema<undefined>;
8376
8391
  readonly mentions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
8377
8392
  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`">]>;
8378
8393
  readonly edited_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>;
@@ -9970,6 +9985,7 @@ export declare const ENTITIES: {
9970
9985
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
9971
9986
  readonly sender_username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
9972
9987
  readonly sender_is_chat: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
9988
+ readonly sender_is_me: v.BooleanSchema<undefined>;
9973
9989
  readonly mentions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
9974
9990
  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`">]>;
9975
9991
  readonly edited_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>;
@@ -10158,6 +10174,7 @@ export declare const ENTITIES: {
10158
10174
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
10159
10175
  readonly sender_username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
10160
10176
  readonly sender_is_chat: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
10177
+ readonly sender_is_me: v.BooleanSchema<undefined>;
10161
10178
  readonly mentions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
10162
10179
  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`">]>;
10163
10180
  readonly edited_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>;
@@ -10384,6 +10401,7 @@ export declare const ENTITIES: {
10384
10401
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
10385
10402
  readonly sender_username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
10386
10403
  readonly sender_is_chat: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
10404
+ readonly sender_is_me: v.BooleanSchema<undefined>;
10387
10405
  readonly mentions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
10388
10406
  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`">]>;
10389
10407
  readonly edited_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>;
@@ -10572,6 +10590,7 @@ export declare const ENTITIES: {
10572
10590
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
10573
10591
  readonly sender_username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
10574
10592
  readonly sender_is_chat: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
10593
+ readonly sender_is_me: v.BooleanSchema<undefined>;
10575
10594
  readonly mentions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
10576
10595
  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`">]>;
10577
10596
  readonly edited_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>;
@@ -12,6 +12,7 @@ export declare const project: v.StrictObjectSchema<{
12
12
  readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
13
13
  readonly key: v.StringSchema<undefined>;
14
14
  readonly name: v.StringSchema<undefined>;
15
+ readonly kind: v.PicklistSchema<["project", "inbox"], undefined>;
15
16
  readonly type: v.PicklistSchema<["work", "client", "personal", "oss", "other"], undefined>;
16
17
  readonly organization_id: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
17
18
  readonly scope: v.PicklistSchema<["personal", "work"], undefined>;
@@ -13,6 +13,7 @@ export const project = v.strictObject({
13
13
  ref: reference,
14
14
  key: text,
15
15
  name: text,
16
+ kind: v.picklist(["project", "inbox"]),
16
17
  type: v.picklist(["work", "client", "personal", "oss", "other"]),
17
18
  organization_id: v.nullable(id),
18
19
  scope: v.picklist(["personal", "work"]),
@@ -11,6 +11,7 @@ export declare const watchedMessage: v.StrictObjectSchema<{
11
11
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
12
12
  readonly sender_username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
13
13
  readonly sender_is_chat: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
14
+ readonly sender_is_me: v.BooleanSchema<undefined>;
14
15
  readonly mentions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
15
16
  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`">]>;
16
17
  readonly edited_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>;
@@ -491,6 +492,7 @@ export declare const messageEvent: v.VariantSchema<"event", [v.StrictObjectSchem
491
492
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
492
493
  readonly sender_username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
493
494
  readonly sender_is_chat: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
495
+ readonly sender_is_me: v.BooleanSchema<undefined>;
494
496
  readonly mentions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
495
497
  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`">]>;
496
498
  readonly edited_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>;
@@ -1078,6 +1080,7 @@ export declare const watchItem: v.UnionSchema<[v.StrictObjectSchema<{
1078
1080
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1079
1081
  readonly sender_username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1080
1082
  readonly sender_is_chat: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1083
+ readonly sender_is_me: v.BooleanSchema<undefined>;
1081
1084
  readonly mentions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
1082
1085
  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`">]>;
1083
1086
  readonly edited_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>;
@@ -1557,6 +1560,7 @@ export declare const watchItem: v.UnionSchema<[v.StrictObjectSchema<{
1557
1560
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1558
1561
  readonly sender_username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1559
1562
  readonly sender_is_chat: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1563
+ readonly sender_is_me: v.BooleanSchema<undefined>;
1560
1564
  readonly mentions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
1561
1565
  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`">]>;
1562
1566
  readonly edited_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>;
@@ -16,6 +16,7 @@ export declare const messageThread: v.StrictObjectSchema<{
16
16
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
17
17
  readonly sender_username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
18
18
  readonly sender_is_chat: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
19
+ readonly sender_is_me: v.BooleanSchema<undefined>;
19
20
  readonly mentions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
20
21
  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`">]>;
21
22
  readonly edited_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>;
@@ -228,6 +229,7 @@ export declare const messageContext: v.UnionSchema<[v.StrictObjectSchema<{
228
229
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
229
230
  readonly sender_username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
230
231
  readonly sender_is_chat: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
232
+ readonly sender_is_me: v.BooleanSchema<undefined>;
231
233
  readonly mentions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
232
234
  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`">]>;
233
235
  readonly edited_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>;
@@ -421,6 +423,7 @@ export declare const messageContext: v.UnionSchema<[v.StrictObjectSchema<{
421
423
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
422
424
  readonly sender_username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
423
425
  readonly sender_is_chat: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
426
+ readonly sender_is_me: v.BooleanSchema<undefined>;
424
427
  readonly mentions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
425
428
  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`">]>;
426
429
  readonly edited_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>;
@@ -12,6 +12,7 @@ export declare const messageWrite: v.StrictObjectSchema<{
12
12
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
13
13
  readonly sender_username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
14
14
  readonly sender_is_chat: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
15
+ readonly sender_is_me: v.BooleanSchema<undefined>;
15
16
  readonly mentions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
16
17
  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`">]>;
17
18
  readonly edited_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>;
@@ -201,6 +202,7 @@ export declare const messageWrite: v.StrictObjectSchema<{
201
202
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
202
203
  readonly sender_username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
203
204
  readonly sender_is_chat: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
205
+ readonly sender_is_me: v.BooleanSchema<undefined>;
204
206
  readonly mentions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
205
207
  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`">]>;
206
208
  readonly edited_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>;
@@ -398,6 +400,7 @@ export declare const messageSend: v.UnionSchema<[v.StrictObjectSchema<{
398
400
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
399
401
  readonly sender_username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
400
402
  readonly sender_is_chat: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
403
+ readonly sender_is_me: v.BooleanSchema<undefined>;
401
404
  readonly mentions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
402
405
  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`">]>;
403
406
  readonly edited_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>;
@@ -587,6 +590,7 @@ export declare const messageSend: v.UnionSchema<[v.StrictObjectSchema<{
587
590
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
588
591
  readonly sender_username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
589
592
  readonly sender_is_chat: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
593
+ readonly sender_is_me: v.BooleanSchema<undefined>;
590
594
  readonly mentions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
591
595
  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`">]>;
592
596
  readonly edited_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>;
@@ -11,6 +11,7 @@ export declare const message: v.StrictObjectSchema<{
11
11
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
12
12
  readonly sender_username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
13
13
  readonly sender_is_chat: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
14
+ readonly sender_is_me: v.BooleanSchema<undefined>;
14
15
  readonly mentions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
15
16
  /** When it was sent. */
16
17
  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`">]>;
@@ -23,6 +23,7 @@ export const message = v.strictObject({
23
23
  sender_name: v.nullable(text),
24
24
  sender_username: v.optional(text),
25
25
  sender_is_chat: v.optional(v.boolean()),
26
+ sender_is_me: v.boolean(),
26
27
  mentions: v.optional(v.array(id)),
27
28
  /** When it was sent. */
28
29
  timestamp: time,
@@ -35,6 +35,7 @@ export declare const storeExport: v.UnionSchema<[v.StrictObjectSchema<{
35
35
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
36
36
  readonly sender_username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
37
37
  readonly sender_is_chat: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
38
+ readonly sender_is_me: v.BooleanSchema<undefined>;
38
39
  readonly mentions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
39
40
  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`">]>;
40
41
  readonly edited_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>;
@@ -47,6 +47,7 @@ const OTHERS = [
47
47
  ["extraction.invalid-proposals", "invalid_response", "the model's memory proposals could not be used"],
48
48
  validation("extraction.text-too-long", "the text is too long for memory extraction"),
49
49
  validation("file.locked", "another process holds the file's lock"),
50
+ ["mail.source-failed", "provider_error", "the mail server refused or did not complete a request"],
50
51
  ["mirror.partial", "provider_error", "some mirrored files were not synced"],
51
52
  ["profile.wrong-account", "authentication_error", "the signed-in source account does not match this profile"],
52
53
  validation("push.too-many-files", "the folder holds more files than one push takes"),
@@ -0,0 +1,7 @@
1
+ /** Mail sent to many: its own mailbox, so search can leave it out. Not a folder, so it proves nothing about deletions. */
2
+ export declare const BULK = "bulk";
3
+ export declare const bulkBox: {
4
+ externalId: string;
5
+ name: string;
6
+ kind: string;
7
+ };
@@ -0,0 +1,3 @@
1
+ /** Mail sent to many: its own mailbox, so search can leave it out. Not a folder, so it proves nothing about deletions. */
2
+ export const BULK = "bulk";
3
+ export const bulkBox = { externalId: "memo:bulk", name: "bulk", kind: BULK };