@wirecat/cli-core 0.399.0 → 0.400.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 (221) hide show
  1. package/CHANGELOG.md +82 -0
  2. package/dist/analysis/consents.d.ts +11 -6
  3. package/dist/analysis/consents.js +5 -2
  4. package/dist/cli/bot/mcp.js +2 -1
  5. package/dist/cli/config-command.js +20 -1
  6. package/dist/cli/context.d.ts +2 -0
  7. package/dist/cli/context.js +1 -1
  8. package/dist/cli/effects.d.ts +4 -1
  9. package/dist/cli/effects.js +10 -2
  10. package/dist/cli/index.d.ts +1 -1
  11. package/dist/cli/index.js +1 -1
  12. package/dist/cli/json-fields.js +12 -1
  13. package/dist/cli/messenger/account-command.js +15 -6
  14. package/dist/cli/messenger/account-profile-query.d.ts +2 -0
  15. package/dist/cli/messenger/account-profile-query.js +13 -0
  16. package/dist/cli/messenger/account-sessions-command.js +1 -0
  17. package/dist/cli/messenger/admin-commands.js +12 -12
  18. package/dist/cli/messenger/admin-contacts-command.js +6 -3
  19. package/dist/cli/messenger/admin-folders-command.js +5 -5
  20. package/dist/cli/messenger/admin-moderation-command.js +4 -4
  21. package/dist/cli/messenger/admin-statistics-command.js +6 -14
  22. package/dist/cli/messenger/analysis-consents-query.d.ts +5 -0
  23. package/dist/cli/messenger/analysis-consents-query.js +20 -0
  24. package/dist/cli/messenger/archive-commands.js +3 -3
  25. package/dist/cli/messenger/attachments-command.js +3 -0
  26. package/dist/cli/messenger/backfill-command.js +5 -4
  27. package/dist/cli/messenger/chat-queries.d.ts +1 -0
  28. package/dist/cli/messenger/chat-queries.js +12 -2
  29. package/dist/cli/messenger/chats-command.js +2 -2
  30. package/dist/cli/messenger/chats-documents-command.js +7 -5
  31. package/dist/cli/messenger/chats-members-command.js +7 -3
  32. package/dist/cli/messenger/chats-read-command.js +1 -1
  33. package/dist/cli/messenger/chats-tracking-command.js +14 -6
  34. package/dist/cli/messenger/contacts-command.js +9 -5
  35. package/dist/cli/messenger/conversations-command.js +20 -16
  36. package/dist/cli/messenger/doctor-command.js +5 -1
  37. package/dist/cli/messenger/document-links-query.d.ts +2 -0
  38. package/dist/cli/messenger/document-links-query.js +9 -0
  39. package/dist/cli/messenger/download-command.js +1 -0
  40. package/dist/cli/messenger/flood-command.d.ts +2 -2
  41. package/dist/cli/messenger/flood-command.js +3 -3
  42. package/dist/cli/messenger/gaps-command.js +2 -2
  43. package/dist/cli/messenger/guard-commands.js +35 -13
  44. package/dist/cli/messenger/images-command.js +1 -0
  45. package/dist/cli/messenger/media-archive-command.js +2 -0
  46. package/dist/cli/messenger/media-archive-move-command.js +1 -0
  47. package/dist/cli/messenger/media-archive-timer-command.js +1 -1
  48. package/dist/cli/messenger/mentions-command.js +15 -2
  49. package/dist/cli/messenger/messages-command.js +2 -0
  50. package/dist/cli/messenger/messages-delete-command.js +1 -0
  51. package/dist/cli/messenger/messages-edit-command.js +1 -0
  52. package/dist/cli/messenger/messages-evidence-command.js +3 -1
  53. package/dist/cli/messenger/messages-forward-command.js +1 -0
  54. package/dist/cli/messenger/messages-pin-command.js +3 -0
  55. package/dist/cli/messenger/messages-send-command.js +1 -0
  56. package/dist/cli/messenger/metadata-command.js +6 -1
  57. package/dist/cli/messenger/models-command.js +10 -2
  58. package/dist/cli/messenger/polls-command.js +4 -0
  59. package/dist/cli/messenger/private-people-command.js +3 -3
  60. package/dist/cli/messenger/rankings-command.js +6 -11
  61. package/dist/cli/messenger/reactions-command.js +2 -0
  62. package/dist/cli/messenger/recipients-query.d.ts +5 -0
  63. package/dist/cli/messenger/recipients-query.js +18 -0
  64. package/dist/cli/messenger/records-command.js +13 -6
  65. package/dist/cli/messenger/search-command.js +3 -1
  66. package/dist/cli/messenger/searches-command.js +5 -1
  67. package/dist/cli/messenger/sends-query.d.ts +5 -0
  68. package/dist/cli/messenger/sends-query.js +33 -0
  69. package/dist/cli/messenger/serve-command.js +1 -0
  70. package/dist/cli/messenger/statistics-query.d.ts +14 -0
  71. package/dist/cli/messenger/statistics-query.js +143 -0
  72. package/dist/cli/messenger/stats-command.js +5 -5
  73. package/dist/cli/messenger/store-maintenance-command.d.ts +1 -1
  74. package/dist/cli/messenger/store-maintenance-command.js +10 -10
  75. package/dist/cli/messenger/tags-command.js +7 -1
  76. package/dist/cli/messenger/tasks-command.js +47 -8
  77. package/dist/cli/messenger/transcribe-command.js +1 -0
  78. package/dist/cli/messenger/watch-answers.d.ts +6 -0
  79. package/dist/cli/messenger/watch-answers.js +69 -0
  80. package/dist/cli/messenger/watch-command.d.ts +1 -1
  81. package/dist/cli/messenger/watch-command.js +56 -7
  82. package/dist/cli/program.js +5 -1
  83. package/dist/cli/runs/command.js +25 -38
  84. package/dist/cli/runs/query.d.ts +5 -0
  85. package/dist/cli/runs/query.js +32 -0
  86. package/dist/cli/runs/search-command.d.ts +4 -0
  87. package/dist/cli/runs/search-command.js +27 -0
  88. package/dist/cli/runs/search-query.d.ts +4 -0
  89. package/dist/cli/runs/search-query.js +50 -0
  90. package/dist/cli/runs/search.d.ts +2 -1
  91. package/dist/cli/runs/search.js +6 -6
  92. package/dist/domain/attachments.js +9 -1
  93. package/dist/domain/rankings-options.js +3 -3
  94. package/dist/entities/account-change.d.ts +89 -0
  95. package/dist/entities/account-change.js +20 -0
  96. package/dist/entities/account-profile.d.ts +7 -0
  97. package/dist/entities/account-profile.js +8 -0
  98. package/dist/entities/analysis-consent.d.ts +9 -0
  99. package/dist/entities/analysis-consent.js +4 -0
  100. package/dist/entities/attachment-results.d.ts +96 -0
  101. package/dist/entities/attachment-results.js +31 -0
  102. package/dist/entities/batch-result.d.ts +27 -0
  103. package/dist/entities/batch-result.js +18 -0
  104. package/dist/entities/chat-admin.d.ts +234 -0
  105. package/dist/entities/chat-admin.js +84 -0
  106. package/dist/entities/chat-change.d.ts +25 -0
  107. package/dist/entities/chat-change.js +11 -0
  108. package/dist/entities/chat-metadata.d.ts +34 -0
  109. package/dist/entities/chat-metadata.js +15 -0
  110. package/dist/entities/chat-moderation.d.ts +44 -0
  111. package/dist/entities/chat-moderation.js +37 -0
  112. package/dist/entities/chat-tracking.d.ts +26 -0
  113. package/dist/entities/chat-tracking.js +23 -0
  114. package/dist/entities/contact-activity.d.ts +52 -0
  115. package/dist/entities/contact-activity.js +42 -0
  116. package/dist/entities/contact-context.d.ts +1568 -0
  117. package/dist/entities/contact-context.js +191 -0
  118. package/dist/entities/contact-write.d.ts +22 -0
  119. package/dist/entities/contact-write.js +6 -0
  120. package/dist/entities/conversation-preparation.d.ts +63 -0
  121. package/dist/entities/conversation-preparation.js +23 -0
  122. package/dist/entities/conversation-results.d.ts +567 -0
  123. package/dist/entities/conversation-results.js +94 -0
  124. package/dist/entities/document-link.d.ts +13 -0
  125. package/dist/entities/document-link.js +11 -0
  126. package/dist/entities/extraction-report.d.ts +95 -0
  127. package/dist/entities/extraction-report.js +34 -0
  128. package/dist/entities/image-embedding.d.ts +9 -0
  129. package/dist/entities/image-embedding.js +10 -0
  130. package/dist/entities/index.d.ts +8006 -1928
  131. package/dist/entities/index.js +174 -3
  132. package/dist/entities/listener.d.ts +2150 -0
  133. package/dist/entities/listener.js +46 -0
  134. package/dist/entities/media-archive.d.ts +43 -0
  135. package/dist/entities/media-archive.js +32 -0
  136. package/dist/entities/meeting-task-proposal.d.ts +14 -0
  137. package/dist/entities/meeting-task-proposal.js +19 -0
  138. package/dist/entities/meeting.d.ts +1 -1
  139. package/dist/entities/meeting.js +1 -1
  140. package/dist/entities/mention.d.ts +63 -0
  141. package/dist/entities/mention.js +44 -0
  142. package/dist/entities/message-change.d.ts +19 -0
  143. package/dist/entities/message-change.js +6 -0
  144. package/dist/entities/message-context.d.ts +617 -0
  145. package/dist/entities/message-context.js +20 -0
  146. package/dist/entities/message-read.d.ts +73 -0
  147. package/dist/entities/message-read.js +58 -0
  148. package/dist/entities/message-transfer.d.ts +379 -0
  149. package/dist/entities/message-transfer.js +83 -0
  150. package/dist/entities/message-write.d.ts +191 -0
  151. package/dist/entities/message-write.js +8 -0
  152. package/dist/entities/model-key.d.ts +14 -0
  153. package/dist/entities/model-key.js +10 -0
  154. package/dist/entities/poll.d.ts +40 -0
  155. package/dist/entities/poll.js +16 -0
  156. package/dist/entities/private-contact.d.ts +10 -0
  157. package/dist/entities/private-contact.js +4 -0
  158. package/dist/entities/reaction-change.d.ts +7 -0
  159. package/dist/entities/reaction-change.js +8 -0
  160. package/dist/entities/recipient.d.ts +29 -0
  161. package/dist/entities/recipient.js +11 -0
  162. package/dist/entities/recorded-run.d.ts +103 -0
  163. package/dist/entities/recorded-run.js +44 -0
  164. package/dist/entities/saved-search.d.ts +4 -0
  165. package/dist/entities/saved-search.js +2 -0
  166. package/dist/entities/send-attempt.d.ts +31 -0
  167. package/dist/entities/send-attempt.js +29 -0
  168. package/dist/entities/store-maintenance.d.ts +319 -0
  169. package/dist/entities/store-maintenance.js +145 -0
  170. package/dist/entities/store-records.d.ts +442 -0
  171. package/dist/entities/store-records.js +99 -0
  172. package/dist/entities/tag-change.d.ts +74 -0
  173. package/dist/entities/tag-change.js +31 -0
  174. package/dist/entities/task-pair.d.ts +31 -0
  175. package/dist/entities/task-pair.js +23 -0
  176. package/dist/entities/task-results.d.ts +524 -0
  177. package/dist/entities/task-results.js +142 -0
  178. package/dist/errors/reasons.js +1 -0
  179. package/dist/mcp/agent.d.ts +3 -1
  180. package/dist/mcp/agent.js +9 -6
  181. package/dist/mcp/bot/server.d.ts +2 -0
  182. package/dist/mcp/bot/server.js +1 -0
  183. package/dist/mcp/server.js +3 -1
  184. package/dist/mcp/tools/attachments.js +1 -0
  185. package/dist/meetings/cli/index.js +1 -1
  186. package/dist/meetings/cli/passage.js +1 -0
  187. package/dist/meetings/index.d.ts +2 -1
  188. package/dist/meetings/index.js +1 -0
  189. package/dist/meetings/links.d.ts +16 -0
  190. package/dist/meetings/mcp/index.d.ts +15 -15
  191. package/dist/meetings/read-answers.d.ts +167 -0
  192. package/dist/meetings/read-answers.js +183 -0
  193. package/dist/runs/run.d.ts +10 -2
  194. package/dist/runs/run.js +11 -3
  195. package/dist/sends/journal.d.ts +8 -1
  196. package/dist/sends/journal.js +9 -2
  197. package/dist/sends/permissions.d.ts +5 -1
  198. package/dist/sends/permissions.js +11 -1
  199. package/dist/sends/recipients.d.ts +8 -0
  200. package/dist/sends/recipients.js +9 -0
  201. package/dist/services/admin-statistics.js +3 -3
  202. package/dist/services/chat-documents.d.ts +1 -0
  203. package/dist/services/chat-documents.js +9 -3
  204. package/dist/services/chats.d.ts +1 -1
  205. package/dist/services/chats.js +5 -2
  206. package/dist/services/meeting-links.d.ts +2 -17
  207. package/dist/store/exports.d.ts +1 -1
  208. package/dist/store/exports.js +1 -1
  209. package/dist/store/messages.d.ts +3 -1
  210. package/dist/store/messages.js +2 -2
  211. package/dist/store/roster.d.ts +4 -1
  212. package/dist/store/roster.js +2 -2
  213. package/dist/store/sqlite/chats.d.ts +12 -0
  214. package/dist/store/sqlite/chats.js +1 -0
  215. package/dist/store/sqlite/document-links.d.ts +1 -1
  216. package/dist/store/sqlite/document-links.js +5 -5
  217. package/dist/store/sqlite/involvements.js +2 -1
  218. package/dist/store/sqlite/roster.d.ts +2 -1
  219. package/dist/store/sqlite/roster.js +3 -2
  220. package/package.json +1 -1
  221. package/parity.json +8 -66
@@ -0,0 +1,617 @@
1
+ import * as v from "valibot";
2
+ export declare const messageThread: v.StrictObjectSchema<{
3
+ readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
4
+ readonly chat: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
5
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
6
+ readonly mode: v.PicklistSchema<["thread", "time"], undefined>;
7
+ readonly fallback: v.OptionalSchema<v.PicklistSchema<["not_built", "not_stored", "not_linked"], undefined>, undefined>;
8
+ readonly items: v.ArraySchema<v.StrictObjectSchema<{
9
+ readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
10
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
11
+ readonly provider: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
12
+ readonly account: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
13
+ readonly chat_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
14
+ readonly chat_title: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
15
+ readonly sender_id: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
16
+ readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
17
+ readonly sender_username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
18
+ readonly sender_is_chat: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
19
+ readonly mentions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
20
+ 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
+ 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>;
22
+ readonly text: v.StringSchema<undefined>;
23
+ readonly transcript: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
24
+ readonly anchor: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
25
+ readonly excerpt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
26
+ readonly matched_in: v.OptionalSchema<v.PicklistSchema<["text", "transcript", "filename", "file", "context", "picture"], undefined>, undefined>;
27
+ readonly score: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
28
+ readonly match: v.OptionalSchema<v.PicklistSchema<["words", "beginnings", "corrected"], undefined>, undefined>;
29
+ readonly corrections: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
30
+ readonly from: v.StringSchema<undefined>;
31
+ readonly to: v.ArraySchema<v.StringSchema<undefined>, undefined>;
32
+ }, undefined>, undefined>, undefined>;
33
+ readonly found_in: v.OptionalSchema<v.PicklistSchema<["archive", "server", "both"], undefined>, undefined>;
34
+ readonly discovery: v.OptionalSchema<v.StrictObjectSchema<{
35
+ readonly coverage: v.NumberSchema<undefined>;
36
+ readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
37
+ readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
38
+ readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
39
+ }, undefined>, undefined>;
40
+ readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
41
+ readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
42
+ 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`">]>;
43
+ readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
44
+ readonly text: v.StringSchema<undefined>;
45
+ }, undefined>, undefined>, undefined>;
46
+ readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
47
+ readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
48
+ readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
49
+ readonly kind: v.StringSchema<undefined>;
50
+ readonly position: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
51
+ readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
52
+ readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
53
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
54
+ readonly mime: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
55
+ readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
56
+ readonly width: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
57
+ readonly height: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
58
+ readonly duration: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
59
+ readonly text: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
60
+ readonly extraction: v.OptionalSchema<v.StrictObjectSchema<{
61
+ readonly origin: v.StringSchema<undefined>;
62
+ readonly extractor: v.StringSchema<undefined>;
63
+ readonly chars: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
64
+ readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
65
+ }, undefined>, undefined>;
66
+ readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
67
+ readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
68
+ readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
69
+ readonly text: v.StringSchema<undefined>;
70
+ readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
71
+ }, undefined>, undefined>, undefined>, undefined>;
72
+ }, undefined>, undefined>;
73
+ readonly reply_to: v.NullableSchema<v.StrictObjectSchema<{
74
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
75
+ readonly sender_id: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
76
+ readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
77
+ readonly timestamp: 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>;
78
+ readonly text: v.StringSchema<undefined>;
79
+ readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
80
+ readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
81
+ readonly kind: v.StringSchema<undefined>;
82
+ readonly position: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
83
+ readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
84
+ readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
85
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
86
+ readonly mime: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
87
+ readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
88
+ readonly width: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
89
+ readonly height: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
90
+ readonly duration: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
91
+ readonly text: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
92
+ readonly extraction: v.OptionalSchema<v.StrictObjectSchema<{
93
+ readonly origin: v.StringSchema<undefined>;
94
+ readonly extractor: v.StringSchema<undefined>;
95
+ readonly chars: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
96
+ readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
97
+ }, undefined>, undefined>;
98
+ readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
99
+ readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
100
+ readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
101
+ readonly text: v.StringSchema<undefined>;
102
+ readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
103
+ }, undefined>, undefined>, undefined>, undefined>;
104
+ }, undefined>, undefined>;
105
+ readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
106
+ }, undefined>, undefined>;
107
+ readonly reply_to_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
108
+ readonly forwarded_from: v.NullableSchema<v.StrictObjectSchema<{
109
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
110
+ readonly sender_id: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
111
+ readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
112
+ readonly timestamp: 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>;
113
+ readonly text: v.StringSchema<undefined>;
114
+ readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
115
+ readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
116
+ readonly kind: v.StringSchema<undefined>;
117
+ readonly position: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
118
+ readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
119
+ readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
120
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
121
+ readonly mime: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
122
+ readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
123
+ readonly width: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
124
+ readonly height: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
125
+ readonly duration: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
126
+ readonly text: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
127
+ readonly extraction: v.OptionalSchema<v.StrictObjectSchema<{
128
+ readonly origin: v.StringSchema<undefined>;
129
+ readonly extractor: v.StringSchema<undefined>;
130
+ readonly chars: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
131
+ readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
132
+ }, undefined>, undefined>;
133
+ readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
134
+ readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
135
+ readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
136
+ readonly text: v.StringSchema<undefined>;
137
+ readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
138
+ }, undefined>, undefined>, undefined>, undefined>;
139
+ }, undefined>, undefined>;
140
+ readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
141
+ }, undefined>, undefined>;
142
+ readonly thread_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
143
+ readonly thread_root_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
144
+ readonly reactions: v.OptionalSchema<v.NullableSchema<v.StrictObjectSchema<{
145
+ readonly counts: v.ArraySchema<v.StrictObjectSchema<{
146
+ readonly reaction: v.StringSchema<undefined>;
147
+ readonly count: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
148
+ }, undefined>, undefined>;
149
+ readonly mine: v.NullableSchema<v.StringSchema<undefined>, undefined>;
150
+ readonly total: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
151
+ }, undefined>, undefined>, undefined>;
152
+ readonly scheduled_for: v.OptionalSchema<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>;
153
+ readonly starred: v.OptionalSchema<v.LiteralSchema<true, undefined>, undefined>;
154
+ readonly delivery: v.OptionalSchema<v.PicklistSchema<["delivered", "read"], undefined>, undefined>;
155
+ readonly email: v.OptionalSchema<v.StrictObjectSchema<{
156
+ readonly subject: v.NullableSchema<v.StringSchema<undefined>, undefined>;
157
+ readonly from: v.NullableSchema<v.StrictObjectSchema<{
158
+ readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
159
+ readonly address: v.StringSchema<undefined>;
160
+ readonly ref: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
161
+ }, undefined>, undefined>;
162
+ readonly to: v.ArraySchema<v.StrictObjectSchema<{
163
+ readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
164
+ readonly address: v.StringSchema<undefined>;
165
+ readonly ref: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
166
+ }, undefined>, undefined>;
167
+ readonly cc: v.ArraySchema<v.StrictObjectSchema<{
168
+ readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
169
+ readonly address: v.StringSchema<undefined>;
170
+ readonly ref: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
171
+ }, undefined>, undefined>;
172
+ readonly bcc: v.ArraySchema<v.StrictObjectSchema<{
173
+ readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
174
+ readonly address: v.StringSchema<undefined>;
175
+ readonly ref: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
176
+ }, undefined>, undefined>;
177
+ readonly reply_addresses: v.ArraySchema<v.StrictObjectSchema<{
178
+ readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
179
+ readonly address: v.StringSchema<undefined>;
180
+ readonly ref: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
181
+ }, undefined>, undefined>;
182
+ readonly labels: v.ArraySchema<v.StringSchema<undefined>, undefined>;
183
+ readonly thread: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
184
+ readonly read: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
185
+ readonly flagged: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
186
+ readonly sender_score: v.OptionalSchema<v.StrictObjectSchema<{
187
+ readonly score: v.NumberSchema<undefined>;
188
+ readonly signals: v.ArraySchema<v.StringSchema<undefined>, undefined>;
189
+ readonly demoted: v.OptionalSchema<v.LiteralSchema<true, undefined>, undefined>;
190
+ }, undefined>, undefined>;
191
+ }, undefined>, undefined>;
192
+ readonly provider_metadata: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
193
+ }, undefined>, undefined>;
194
+ readonly links: v.ArraySchema<v.StrictObjectSchema<{
195
+ readonly parent_id: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
196
+ readonly source: v.PicklistSchema<["provider", "rule", "agent"], undefined>;
197
+ readonly kind: v.StringSchema<undefined>;
198
+ readonly confidence: v.NumberSchema<undefined>;
199
+ readonly method: v.StringSchema<undefined>;
200
+ readonly version: v.NullableSchema<v.StringSchema<undefined>, undefined>;
201
+ 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`">]>;
202
+ readonly stale: v.BooleanSchema<undefined>;
203
+ readonly chosen: v.BooleanSchema<undefined>;
204
+ readonly message_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
205
+ }, undefined>, undefined>;
206
+ readonly chain: v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
207
+ readonly stale: v.BooleanSchema<undefined>;
208
+ readonly built_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
+ readonly stopped: v.ArraySchema<v.PicklistSchema<["hops", "messages", "bytes", "time", "links", "cycle", "aborted", "thread"], undefined>, undefined>;
210
+ readonly bounds: v.StrictObjectSchema<{
211
+ readonly max_hops: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
212
+ readonly max_messages: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
213
+ readonly max_bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
214
+ readonly within_ms: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
215
+ }, undefined>;
216
+ }, undefined>;
217
+ /** Time windows answer with message items; --thread answers with one bounded graph report. */
218
+ export declare const messageContext: v.UnionSchema<[v.StrictObjectSchema<{
219
+ readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
220
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
221
+ readonly provider: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
222
+ readonly account: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
223
+ readonly chat_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
224
+ readonly chat_title: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
225
+ readonly sender_id: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
226
+ readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
227
+ readonly sender_username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
228
+ readonly sender_is_chat: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
229
+ readonly mentions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
230
+ 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`">]>;
231
+ 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>;
232
+ readonly text: v.StringSchema<undefined>;
233
+ readonly transcript: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
234
+ readonly anchor: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
235
+ readonly excerpt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
236
+ readonly matched_in: v.OptionalSchema<v.PicklistSchema<["text", "transcript", "filename", "file", "context", "picture"], undefined>, undefined>;
237
+ readonly score: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
238
+ readonly match: v.OptionalSchema<v.PicklistSchema<["words", "beginnings", "corrected"], undefined>, undefined>;
239
+ readonly corrections: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
240
+ readonly from: v.StringSchema<undefined>;
241
+ readonly to: v.ArraySchema<v.StringSchema<undefined>, undefined>;
242
+ }, undefined>, undefined>, undefined>;
243
+ readonly found_in: v.OptionalSchema<v.PicklistSchema<["archive", "server", "both"], undefined>, undefined>;
244
+ readonly discovery: v.OptionalSchema<v.StrictObjectSchema<{
245
+ readonly coverage: v.NumberSchema<undefined>;
246
+ readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
247
+ readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
248
+ readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
249
+ }, undefined>, undefined>;
250
+ readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
251
+ readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
252
+ 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`">]>;
253
+ readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
254
+ readonly text: v.StringSchema<undefined>;
255
+ }, undefined>, undefined>, undefined>;
256
+ readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
257
+ readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
258
+ readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
259
+ readonly kind: v.StringSchema<undefined>;
260
+ readonly position: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
261
+ readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
262
+ readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
263
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
264
+ readonly mime: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
265
+ readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
266
+ readonly width: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
267
+ readonly height: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
268
+ readonly duration: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
269
+ readonly text: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
270
+ readonly extraction: v.OptionalSchema<v.StrictObjectSchema<{
271
+ readonly origin: v.StringSchema<undefined>;
272
+ readonly extractor: v.StringSchema<undefined>;
273
+ readonly chars: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
274
+ readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
275
+ }, undefined>, undefined>;
276
+ readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
277
+ readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
278
+ readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
279
+ readonly text: v.StringSchema<undefined>;
280
+ readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
281
+ }, undefined>, undefined>, undefined>, undefined>;
282
+ }, undefined>, undefined>;
283
+ readonly reply_to: v.NullableSchema<v.StrictObjectSchema<{
284
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
285
+ readonly sender_id: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
286
+ readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
287
+ readonly timestamp: 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>;
288
+ readonly text: v.StringSchema<undefined>;
289
+ readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
290
+ readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
291
+ readonly kind: v.StringSchema<undefined>;
292
+ readonly position: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
293
+ readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
294
+ readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
295
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
296
+ readonly mime: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
297
+ readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
298
+ readonly width: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
299
+ readonly height: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
300
+ readonly duration: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
301
+ readonly text: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
302
+ readonly extraction: v.OptionalSchema<v.StrictObjectSchema<{
303
+ readonly origin: v.StringSchema<undefined>;
304
+ readonly extractor: v.StringSchema<undefined>;
305
+ readonly chars: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
306
+ readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
307
+ }, undefined>, undefined>;
308
+ readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
309
+ readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
310
+ readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
311
+ readonly text: v.StringSchema<undefined>;
312
+ readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
313
+ }, undefined>, undefined>, undefined>, undefined>;
314
+ }, undefined>, undefined>;
315
+ readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
316
+ }, undefined>, undefined>;
317
+ readonly reply_to_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
318
+ readonly forwarded_from: v.NullableSchema<v.StrictObjectSchema<{
319
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
320
+ readonly sender_id: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
321
+ readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
322
+ readonly timestamp: 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>;
323
+ readonly text: v.StringSchema<undefined>;
324
+ readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
325
+ readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
326
+ readonly kind: v.StringSchema<undefined>;
327
+ readonly position: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
328
+ readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
329
+ readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
330
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
331
+ readonly mime: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
332
+ readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
333
+ readonly width: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
334
+ readonly height: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
335
+ readonly duration: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
336
+ readonly text: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
337
+ readonly extraction: v.OptionalSchema<v.StrictObjectSchema<{
338
+ readonly origin: v.StringSchema<undefined>;
339
+ readonly extractor: v.StringSchema<undefined>;
340
+ readonly chars: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
341
+ readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
342
+ }, undefined>, undefined>;
343
+ readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
344
+ readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
345
+ readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
346
+ readonly text: v.StringSchema<undefined>;
347
+ readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
348
+ }, undefined>, undefined>, undefined>, undefined>;
349
+ }, undefined>, undefined>;
350
+ readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
351
+ }, undefined>, undefined>;
352
+ readonly thread_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
353
+ readonly thread_root_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
354
+ readonly reactions: v.OptionalSchema<v.NullableSchema<v.StrictObjectSchema<{
355
+ readonly counts: v.ArraySchema<v.StrictObjectSchema<{
356
+ readonly reaction: v.StringSchema<undefined>;
357
+ readonly count: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
358
+ }, undefined>, undefined>;
359
+ readonly mine: v.NullableSchema<v.StringSchema<undefined>, undefined>;
360
+ readonly total: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
361
+ }, undefined>, undefined>, undefined>;
362
+ readonly scheduled_for: v.OptionalSchema<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>;
363
+ readonly starred: v.OptionalSchema<v.LiteralSchema<true, undefined>, undefined>;
364
+ readonly delivery: v.OptionalSchema<v.PicklistSchema<["delivered", "read"], undefined>, undefined>;
365
+ readonly email: v.OptionalSchema<v.StrictObjectSchema<{
366
+ readonly subject: v.NullableSchema<v.StringSchema<undefined>, undefined>;
367
+ readonly from: v.NullableSchema<v.StrictObjectSchema<{
368
+ readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
369
+ readonly address: v.StringSchema<undefined>;
370
+ readonly ref: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
371
+ }, undefined>, undefined>;
372
+ readonly to: v.ArraySchema<v.StrictObjectSchema<{
373
+ readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
374
+ readonly address: v.StringSchema<undefined>;
375
+ readonly ref: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
376
+ }, undefined>, undefined>;
377
+ readonly cc: v.ArraySchema<v.StrictObjectSchema<{
378
+ readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
379
+ readonly address: v.StringSchema<undefined>;
380
+ readonly ref: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
381
+ }, undefined>, undefined>;
382
+ readonly bcc: v.ArraySchema<v.StrictObjectSchema<{
383
+ readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
384
+ readonly address: v.StringSchema<undefined>;
385
+ readonly ref: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
386
+ }, undefined>, undefined>;
387
+ readonly reply_addresses: v.ArraySchema<v.StrictObjectSchema<{
388
+ readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
389
+ readonly address: v.StringSchema<undefined>;
390
+ readonly ref: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
391
+ }, undefined>, undefined>;
392
+ readonly labels: v.ArraySchema<v.StringSchema<undefined>, undefined>;
393
+ readonly thread: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
394
+ readonly read: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
395
+ readonly flagged: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
396
+ readonly sender_score: v.OptionalSchema<v.StrictObjectSchema<{
397
+ readonly score: v.NumberSchema<undefined>;
398
+ readonly signals: v.ArraySchema<v.StringSchema<undefined>, undefined>;
399
+ readonly demoted: v.OptionalSchema<v.LiteralSchema<true, undefined>, undefined>;
400
+ }, undefined>, undefined>;
401
+ }, undefined>, undefined>;
402
+ readonly provider_metadata: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
403
+ }, undefined>, v.StrictObjectSchema<{
404
+ readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
405
+ readonly chat: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
406
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
407
+ readonly mode: v.PicklistSchema<["thread", "time"], undefined>;
408
+ readonly fallback: v.OptionalSchema<v.PicklistSchema<["not_built", "not_stored", "not_linked"], undefined>, undefined>;
409
+ readonly items: v.ArraySchema<v.StrictObjectSchema<{
410
+ readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
411
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
412
+ readonly provider: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
413
+ readonly account: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
414
+ readonly chat_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
415
+ readonly chat_title: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
416
+ readonly sender_id: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
417
+ readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
418
+ readonly sender_username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
419
+ readonly sender_is_chat: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
420
+ readonly mentions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
421
+ 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`">]>;
422
+ 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>;
423
+ readonly text: v.StringSchema<undefined>;
424
+ readonly transcript: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
425
+ readonly anchor: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
426
+ readonly excerpt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
427
+ readonly matched_in: v.OptionalSchema<v.PicklistSchema<["text", "transcript", "filename", "file", "context", "picture"], undefined>, undefined>;
428
+ readonly score: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
429
+ readonly match: v.OptionalSchema<v.PicklistSchema<["words", "beginnings", "corrected"], undefined>, undefined>;
430
+ readonly corrections: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
431
+ readonly from: v.StringSchema<undefined>;
432
+ readonly to: v.ArraySchema<v.StringSchema<undefined>, undefined>;
433
+ }, undefined>, undefined>, undefined>;
434
+ readonly found_in: v.OptionalSchema<v.PicklistSchema<["archive", "server", "both"], undefined>, undefined>;
435
+ readonly discovery: v.OptionalSchema<v.StrictObjectSchema<{
436
+ readonly coverage: v.NumberSchema<undefined>;
437
+ readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
438
+ readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
439
+ readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
440
+ }, undefined>, undefined>;
441
+ readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
442
+ readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
443
+ 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`">]>;
444
+ readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
445
+ readonly text: v.StringSchema<undefined>;
446
+ }, undefined>, undefined>, undefined>;
447
+ readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
448
+ readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
449
+ readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
450
+ readonly kind: v.StringSchema<undefined>;
451
+ readonly position: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
452
+ readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
453
+ readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
454
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
455
+ readonly mime: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
456
+ readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
457
+ readonly width: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
458
+ readonly height: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
459
+ readonly duration: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
460
+ readonly text: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
461
+ readonly extraction: v.OptionalSchema<v.StrictObjectSchema<{
462
+ readonly origin: v.StringSchema<undefined>;
463
+ readonly extractor: v.StringSchema<undefined>;
464
+ readonly chars: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
465
+ readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
466
+ }, undefined>, undefined>;
467
+ readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
468
+ readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
469
+ readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
470
+ readonly text: v.StringSchema<undefined>;
471
+ readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
472
+ }, undefined>, undefined>, undefined>, undefined>;
473
+ }, undefined>, undefined>;
474
+ readonly reply_to: v.NullableSchema<v.StrictObjectSchema<{
475
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
476
+ readonly sender_id: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
477
+ readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
478
+ readonly timestamp: 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>;
479
+ readonly text: v.StringSchema<undefined>;
480
+ readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
481
+ readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
482
+ readonly kind: v.StringSchema<undefined>;
483
+ readonly position: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
484
+ readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
485
+ readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
486
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
487
+ readonly mime: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
488
+ readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
489
+ readonly width: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
490
+ readonly height: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
491
+ readonly duration: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
492
+ readonly text: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
493
+ readonly extraction: v.OptionalSchema<v.StrictObjectSchema<{
494
+ readonly origin: v.StringSchema<undefined>;
495
+ readonly extractor: v.StringSchema<undefined>;
496
+ readonly chars: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
497
+ readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
498
+ }, undefined>, undefined>;
499
+ readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
500
+ readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
501
+ readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
502
+ readonly text: v.StringSchema<undefined>;
503
+ readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
504
+ }, undefined>, undefined>, undefined>, undefined>;
505
+ }, undefined>, undefined>;
506
+ readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
507
+ }, undefined>, undefined>;
508
+ readonly reply_to_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
509
+ readonly forwarded_from: v.NullableSchema<v.StrictObjectSchema<{
510
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
511
+ readonly sender_id: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
512
+ readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
513
+ readonly timestamp: 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>;
514
+ readonly text: v.StringSchema<undefined>;
515
+ readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
516
+ readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
517
+ readonly kind: v.StringSchema<undefined>;
518
+ readonly position: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
519
+ readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
520
+ readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
521
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
522
+ readonly mime: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
523
+ readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
524
+ readonly width: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
525
+ readonly height: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
526
+ readonly duration: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
527
+ readonly text: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
528
+ readonly extraction: v.OptionalSchema<v.StrictObjectSchema<{
529
+ readonly origin: v.StringSchema<undefined>;
530
+ readonly extractor: v.StringSchema<undefined>;
531
+ readonly chars: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
532
+ readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
533
+ }, undefined>, undefined>;
534
+ readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
535
+ readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
536
+ readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
537
+ readonly text: v.StringSchema<undefined>;
538
+ readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
539
+ }, undefined>, undefined>, undefined>, undefined>;
540
+ }, undefined>, undefined>;
541
+ readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
542
+ }, undefined>, undefined>;
543
+ readonly thread_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
544
+ readonly thread_root_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
545
+ readonly reactions: v.OptionalSchema<v.NullableSchema<v.StrictObjectSchema<{
546
+ readonly counts: v.ArraySchema<v.StrictObjectSchema<{
547
+ readonly reaction: v.StringSchema<undefined>;
548
+ readonly count: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
549
+ }, undefined>, undefined>;
550
+ readonly mine: v.NullableSchema<v.StringSchema<undefined>, undefined>;
551
+ readonly total: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
552
+ }, undefined>, undefined>, undefined>;
553
+ readonly scheduled_for: v.OptionalSchema<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>;
554
+ readonly starred: v.OptionalSchema<v.LiteralSchema<true, undefined>, undefined>;
555
+ readonly delivery: v.OptionalSchema<v.PicklistSchema<["delivered", "read"], undefined>, undefined>;
556
+ readonly email: v.OptionalSchema<v.StrictObjectSchema<{
557
+ readonly subject: v.NullableSchema<v.StringSchema<undefined>, undefined>;
558
+ readonly from: v.NullableSchema<v.StrictObjectSchema<{
559
+ readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
560
+ readonly address: v.StringSchema<undefined>;
561
+ readonly ref: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
562
+ }, undefined>, undefined>;
563
+ readonly to: v.ArraySchema<v.StrictObjectSchema<{
564
+ readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
565
+ readonly address: v.StringSchema<undefined>;
566
+ readonly ref: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
567
+ }, undefined>, undefined>;
568
+ readonly cc: v.ArraySchema<v.StrictObjectSchema<{
569
+ readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
570
+ readonly address: v.StringSchema<undefined>;
571
+ readonly ref: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
572
+ }, undefined>, undefined>;
573
+ readonly bcc: v.ArraySchema<v.StrictObjectSchema<{
574
+ readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
575
+ readonly address: v.StringSchema<undefined>;
576
+ readonly ref: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
577
+ }, undefined>, undefined>;
578
+ readonly reply_addresses: v.ArraySchema<v.StrictObjectSchema<{
579
+ readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
580
+ readonly address: v.StringSchema<undefined>;
581
+ readonly ref: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
582
+ }, undefined>, undefined>;
583
+ readonly labels: v.ArraySchema<v.StringSchema<undefined>, undefined>;
584
+ readonly thread: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
585
+ readonly read: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
586
+ readonly flagged: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
587
+ readonly sender_score: v.OptionalSchema<v.StrictObjectSchema<{
588
+ readonly score: v.NumberSchema<undefined>;
589
+ readonly signals: v.ArraySchema<v.StringSchema<undefined>, undefined>;
590
+ readonly demoted: v.OptionalSchema<v.LiteralSchema<true, undefined>, undefined>;
591
+ }, undefined>, undefined>;
592
+ }, undefined>, undefined>;
593
+ readonly provider_metadata: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
594
+ }, undefined>, undefined>;
595
+ readonly links: v.ArraySchema<v.StrictObjectSchema<{
596
+ readonly parent_id: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
597
+ readonly source: v.PicklistSchema<["provider", "rule", "agent"], undefined>;
598
+ readonly kind: v.StringSchema<undefined>;
599
+ readonly confidence: v.NumberSchema<undefined>;
600
+ readonly method: v.StringSchema<undefined>;
601
+ readonly version: v.NullableSchema<v.StringSchema<undefined>, undefined>;
602
+ 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`">]>;
603
+ readonly stale: v.BooleanSchema<undefined>;
604
+ readonly chosen: v.BooleanSchema<undefined>;
605
+ readonly message_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
606
+ }, undefined>, undefined>;
607
+ readonly chain: v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
608
+ readonly stale: v.BooleanSchema<undefined>;
609
+ readonly built_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>;
610
+ readonly stopped: v.ArraySchema<v.PicklistSchema<["hops", "messages", "bytes", "time", "links", "cycle", "aborted", "thread"], undefined>, undefined>;
611
+ readonly bounds: v.StrictObjectSchema<{
612
+ readonly max_hops: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
613
+ readonly max_messages: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
614
+ readonly max_bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
615
+ readonly within_ms: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
616
+ }, undefined>;
617
+ }, undefined>], undefined>;