@wirecat/cli-core 0.462.0 → 0.464.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 (79) hide show
  1. package/CHANGELOG.md +106 -0
  2. package/dist/background/after-upgrade.d.ts +51 -0
  3. package/dist/background/after-upgrade.js +245 -0
  4. package/dist/background/budget.d.ts +37 -0
  5. package/dist/background/budget.js +48 -0
  6. package/dist/background/index.d.ts +1 -0
  7. package/dist/background/index.js +1 -0
  8. package/dist/calendar/busy.d.ts +68 -0
  9. package/dist/calendar/busy.js +148 -0
  10. package/dist/calendar/cli/index.d.ts +7 -0
  11. package/dist/calendar/cli/index.js +94 -12
  12. package/dist/calendar/index.d.ts +3 -2
  13. package/dist/calendar/index.js +2 -1
  14. package/dist/calendar/mcp/index.d.ts +55 -13
  15. package/dist/calendar/mcp/index.js +19 -4
  16. package/dist/calendar/recurrence.d.ts +10 -0
  17. package/dist/calendar/recurrence.js +65 -0
  18. package/dist/calendar/source.d.ts +19 -0
  19. package/dist/calendar/sync.d.ts +86 -7
  20. package/dist/calendar/sync.js +271 -105
  21. package/dist/calendar/testing/source-contract.js +14 -0
  22. package/dist/calendar/testing/source.d.ts +6 -0
  23. package/dist/calendar/testing/source.js +30 -2
  24. package/dist/calendar/testing/sync-contract.d.ts +2 -1
  25. package/dist/calendar/testing/sync-contract.js +80 -5
  26. package/dist/calendar/testing/writer-contract.d.ts +2 -1
  27. package/dist/calendar/testing/writer-contract.js +46 -2
  28. package/dist/calendar/testing/writer.js +1 -1
  29. package/dist/calendar/writer.d.ts +7 -2
  30. package/dist/calendar/writes.d.ts +12 -2
  31. package/dist/calendar/writes.js +32 -6
  32. package/dist/cli/bot/mcp.js +11 -3
  33. package/dist/cli/context.d.ts +8 -0
  34. package/dist/cli/context.js +15 -0
  35. package/dist/cli/execution.d.ts +7 -0
  36. package/dist/cli/execution.js +7 -0
  37. package/dist/cli/guide.js +1 -1
  38. package/dist/cli/index.d.ts +1 -1
  39. package/dist/cli/index.js +1 -1
  40. package/dist/cli/mcp-server-command.d.ts +9 -4
  41. package/dist/cli/mcp-server-command.js +32 -25
  42. package/dist/cli/meeting-preparation-answer.d.ts +1 -0
  43. package/dist/cli/meeting-preparation-projects.d.ts +1 -0
  44. package/dist/cli/meeting-preparation-read.d.ts +1 -0
  45. package/dist/cli/messenger/chat-answers.js +1 -0
  46. package/dist/cli/messenger/mcp-command.d.ts +3 -4
  47. package/dist/cli/messenger/mcp-command.js +42 -26
  48. package/dist/cli/messenger/search-answers.js +29 -4
  49. package/dist/cli/messenger/store-maintenance-command.d.ts +1 -1
  50. package/dist/cli/program.js +15 -5
  51. package/dist/cli/upgrade-command.d.ts +7 -2
  52. package/dist/cli/upgrade-command.js +65 -9
  53. package/dist/entities/fields.d.ts +2 -0
  54. package/dist/entities/fields.js +2 -0
  55. package/dist/entities/hit.d.ts +1 -1
  56. package/dist/entities/hit.js +3 -3
  57. package/dist/entities/index.d.ts +10 -800
  58. package/dist/entities/index.js +37 -31
  59. package/dist/entities/meeting-preparation.d.ts +1 -0
  60. package/dist/entities/topic.d.ts +1 -0
  61. package/dist/entities/topic.js +2 -1
  62. package/dist/errors/reasons.js +4 -0
  63. package/dist/kit/mcp-stdio.d.ts +2 -2
  64. package/dist/kit/mcp-stdio.js +2 -2
  65. package/dist/mcp/http/activity.d.ts +1 -1
  66. package/dist/mcp/http/activity.js +1 -1
  67. package/dist/mcp/http/oauth.js +1 -1
  68. package/dist/mcp/http/state.d.ts +14 -0
  69. package/dist/mcp/http/state.js +16 -0
  70. package/dist/mcp/meeting-preparation.d.ts +1 -0
  71. package/dist/meetings/answers.d.ts +2 -0
  72. package/dist/meetings/answers.js +3 -0
  73. package/dist/meetings/mcp/search.d.ts +1 -0
  74. package/dist/meetings/project-evidence-answer.d.ts +1 -0
  75. package/dist/ports/app.d.ts +5 -0
  76. package/dist/services/package-upgrade.d.ts +9 -0
  77. package/dist/services/package-upgrade.js +8 -1
  78. package/package.json +3 -3
  79. package/parity.json +30 -22
@@ -1070,23 +1070,11 @@ export declare const ENTITIES: {
1070
1070
  readonly chat: v.StringSchema<undefined>;
1071
1071
  readonly log: v.StringSchema<undefined>;
1072
1072
  }, undefined>], undefined>;
1073
- readonly "message.hit": Omit<v.StrictObjectSchema<{
1073
+ readonly "message.hit": v.StrictObjectSchema<{
1074
1074
  readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
1075
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
1076
- readonly provider: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1077
- readonly account: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1078
- readonly chat_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
1079
1075
  readonly chat_title: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1080
- readonly sender_id: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
1081
1076
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1082
- readonly sender_username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1083
- readonly sender_is_chat: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1084
- readonly mentions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
1085
1077
  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`">]>;
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>;
1087
- readonly text: v.StringSchema<undefined>;
1088
- readonly transcript: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1089
- readonly anchor: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1090
1078
  readonly excerpt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1091
1079
  readonly matched_in: v.OptionalSchema<v.PicklistSchema<["text", "transcript", "filename", "file", "context", "picture"], undefined>, undefined>;
1092
1080
  readonly score: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
@@ -1110,115 +1098,6 @@ export declare const ENTITIES: {
1110
1098
  readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1111
1099
  readonly text: v.StringSchema<undefined>;
1112
1100
  }, undefined>, undefined>, undefined>;
1113
- readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
1114
- readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
1115
- readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
1116
- readonly kind: v.StringSchema<undefined>;
1117
- readonly position: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
1118
- readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1119
- readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1120
- readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1121
- readonly mime: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1122
- readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
1123
- readonly width: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
1124
- readonly height: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
1125
- readonly duration: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
1126
- readonly text: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1127
- readonly extraction: v.OptionalSchema<v.StrictObjectSchema<{
1128
- readonly origin: v.StringSchema<undefined>;
1129
- readonly extractor: v.StringSchema<undefined>;
1130
- readonly chars: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
1131
- readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1132
- }, undefined>, undefined>;
1133
- readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1134
- readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
1135
- readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
1136
- readonly text: v.StringSchema<undefined>;
1137
- readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1138
- }, undefined>, undefined>, undefined>, undefined>;
1139
- }, undefined>, undefined>;
1140
- readonly reply_to: v.NullableSchema<v.StrictObjectSchema<{
1141
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
1142
- readonly sender_id: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
1143
- readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1144
- 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>;
1145
- readonly text: v.StringSchema<undefined>;
1146
- readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
1147
- readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
1148
- readonly kind: v.StringSchema<undefined>;
1149
- readonly position: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
1150
- readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1151
- readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1152
- readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1153
- readonly mime: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1154
- readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
1155
- readonly width: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
1156
- readonly height: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
1157
- readonly duration: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
1158
- readonly text: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1159
- readonly extraction: v.OptionalSchema<v.StrictObjectSchema<{
1160
- readonly origin: v.StringSchema<undefined>;
1161
- readonly extractor: v.StringSchema<undefined>;
1162
- readonly chars: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
1163
- readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1164
- }, undefined>, undefined>;
1165
- readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1166
- readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
1167
- readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
1168
- readonly text: v.StringSchema<undefined>;
1169
- readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1170
- }, undefined>, undefined>, undefined>, undefined>;
1171
- }, undefined>, undefined>;
1172
- readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
1173
- }, undefined>, undefined>;
1174
- readonly reply_to_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
1175
- readonly forwarded_from: v.NullableSchema<v.StrictObjectSchema<{
1176
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
1177
- readonly sender_id: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
1178
- readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1179
- 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>;
1180
- readonly text: v.StringSchema<undefined>;
1181
- readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
1182
- readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
1183
- readonly kind: v.StringSchema<undefined>;
1184
- readonly position: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
1185
- readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1186
- readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1187
- readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1188
- readonly mime: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1189
- readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
1190
- readonly width: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
1191
- readonly height: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
1192
- readonly duration: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
1193
- readonly text: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1194
- readonly extraction: v.OptionalSchema<v.StrictObjectSchema<{
1195
- readonly origin: v.StringSchema<undefined>;
1196
- readonly extractor: v.StringSchema<undefined>;
1197
- readonly chars: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
1198
- readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1199
- }, undefined>, undefined>;
1200
- readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1201
- readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
1202
- readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
1203
- readonly text: v.StringSchema<undefined>;
1204
- readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1205
- }, undefined>, undefined>, undefined>, undefined>;
1206
- }, undefined>, undefined>;
1207
- readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
1208
- }, undefined>, undefined>;
1209
- readonly thread_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
1210
- readonly thread_root_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
1211
- readonly reactions: v.OptionalSchema<v.NullableSchema<v.StrictObjectSchema<{
1212
- readonly counts: v.ArraySchema<v.StrictObjectSchema<{
1213
- readonly reaction: v.StringSchema<undefined>;
1214
- readonly count: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
1215
- }, undefined>, undefined>;
1216
- readonly mine: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1217
- readonly total: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
1218
- }, undefined>, undefined>, undefined>;
1219
- 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>;
1220
- readonly starred: v.OptionalSchema<v.LiteralSchema<true, undefined>, undefined>;
1221
- readonly delivery: v.OptionalSchema<v.PicklistSchema<["delivered", "read"], undefined>, undefined>;
1222
1101
  readonly email: v.OptionalSchema<v.StrictObjectSchema<{
1223
1102
  readonly subject: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1224
1103
  readonly from: v.NullableSchema<v.StrictObjectSchema<{
@@ -1256,529 +1135,8 @@ export declare const ENTITIES: {
1256
1135
  readonly demoted: v.OptionalSchema<v.LiteralSchema<true, undefined>, undefined>;
1257
1136
  }, undefined>, undefined>;
1258
1137
  }, undefined>, undefined>;
1259
- readonly provider_metadata: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
1260
- }, undefined>, "entries" | "~run" | "~standard" | "~types"> & {
1261
- readonly entries: Pick<{
1262
- readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
1263
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
1264
- readonly provider: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1265
- readonly account: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1266
- readonly chat_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
1267
- readonly chat_title: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1268
- readonly sender_id: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
1269
- readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1270
- readonly sender_username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1271
- readonly sender_is_chat: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1272
- readonly mentions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
1273
- 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`">]>;
1274
- 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>;
1275
- readonly text: v.StringSchema<undefined>;
1276
- readonly transcript: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1277
- readonly anchor: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1278
- readonly excerpt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1279
- readonly matched_in: v.OptionalSchema<v.PicklistSchema<["text", "transcript", "filename", "file", "context", "picture"], undefined>, undefined>;
1280
- readonly score: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
1281
- readonly match: v.OptionalSchema<v.PicklistSchema<["words", "beginnings", "corrected"], undefined>, undefined>;
1282
- readonly corrections: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
1283
- readonly from: v.StringSchema<undefined>;
1284
- readonly to: v.ArraySchema<v.StringSchema<undefined>, undefined>;
1285
- }, undefined>, undefined>, undefined>;
1286
- readonly found_in: v.OptionalSchema<v.PicklistSchema<["archive", "server", "both"], undefined>, undefined>;
1287
- readonly discovery: v.OptionalSchema<v.StrictObjectSchema<{
1288
- readonly coverage: v.NumberSchema<undefined>;
1289
- readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
1290
- readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
1291
- readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
1292
- readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
1293
- readonly reranker_score: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
1294
- }, undefined>, undefined>;
1295
- readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
1296
- readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
1297
- 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`">]>;
1298
- readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1299
- readonly text: v.StringSchema<undefined>;
1300
- }, undefined>, undefined>, undefined>;
1301
- readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
1302
- readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
1303
- readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
1304
- readonly kind: v.StringSchema<undefined>;
1305
- readonly position: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
1306
- readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1307
- readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1308
- readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1309
- readonly mime: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1310
- readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
1311
- readonly width: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
1312
- readonly height: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
1313
- readonly duration: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
1314
- readonly text: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1315
- readonly extraction: v.OptionalSchema<v.StrictObjectSchema<{
1316
- readonly origin: v.StringSchema<undefined>;
1317
- readonly extractor: v.StringSchema<undefined>;
1318
- readonly chars: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
1319
- readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1320
- }, undefined>, undefined>;
1321
- readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1322
- readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
1323
- readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
1324
- readonly text: v.StringSchema<undefined>;
1325
- readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1326
- }, undefined>, undefined>, undefined>, undefined>;
1327
- }, undefined>, undefined>;
1328
- readonly reply_to: v.NullableSchema<v.StrictObjectSchema<{
1329
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
1330
- readonly sender_id: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
1331
- readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1332
- 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>;
1333
- readonly text: v.StringSchema<undefined>;
1334
- readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
1335
- readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
1336
- readonly kind: v.StringSchema<undefined>;
1337
- readonly position: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
1338
- readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1339
- readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1340
- readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1341
- readonly mime: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1342
- readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
1343
- readonly width: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
1344
- readonly height: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
1345
- readonly duration: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
1346
- readonly text: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1347
- readonly extraction: v.OptionalSchema<v.StrictObjectSchema<{
1348
- readonly origin: v.StringSchema<undefined>;
1349
- readonly extractor: v.StringSchema<undefined>;
1350
- readonly chars: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
1351
- readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1352
- }, undefined>, undefined>;
1353
- readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1354
- readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
1355
- readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
1356
- readonly text: v.StringSchema<undefined>;
1357
- readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1358
- }, undefined>, undefined>, undefined>, undefined>;
1359
- }, undefined>, undefined>;
1360
- readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
1361
- }, undefined>, undefined>;
1362
- readonly reply_to_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
1363
- readonly forwarded_from: v.NullableSchema<v.StrictObjectSchema<{
1364
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
1365
- readonly sender_id: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
1366
- readonly sender_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1367
- 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>;
1368
- readonly text: v.StringSchema<undefined>;
1369
- readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
1370
- readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
1371
- readonly kind: v.StringSchema<undefined>;
1372
- readonly position: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
1373
- readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1374
- readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1375
- readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1376
- readonly mime: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1377
- readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
1378
- readonly width: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
1379
- readonly height: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
1380
- readonly duration: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
1381
- readonly text: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1382
- readonly extraction: v.OptionalSchema<v.StrictObjectSchema<{
1383
- readonly origin: v.StringSchema<undefined>;
1384
- readonly extractor: v.StringSchema<undefined>;
1385
- readonly chars: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
1386
- readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1387
- }, undefined>, undefined>;
1388
- readonly local_path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1389
- readonly buttons: v.OptionalSchema<v.ArraySchema<v.ArraySchema<v.StrictObjectSchema<{
1390
- readonly kind: v.PicklistSchema<["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"], undefined>;
1391
- readonly text: v.StringSchema<undefined>;
1392
- readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1393
- }, undefined>, undefined>, undefined>, undefined>;
1394
- }, undefined>, undefined>;
1395
- readonly outgoing: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
1396
- }, undefined>, undefined>;
1397
- readonly thread_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
1398
- readonly thread_root_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
1399
- readonly reactions: v.OptionalSchema<v.NullableSchema<v.StrictObjectSchema<{
1400
- readonly counts: v.ArraySchema<v.StrictObjectSchema<{
1401
- readonly reaction: v.StringSchema<undefined>;
1402
- readonly count: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
1403
- }, undefined>, undefined>;
1404
- readonly mine: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1405
- readonly total: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
1406
- }, undefined>, undefined>, undefined>;
1407
- 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>;
1408
- readonly starred: v.OptionalSchema<v.LiteralSchema<true, undefined>, undefined>;
1409
- readonly delivery: v.OptionalSchema<v.PicklistSchema<["delivered", "read"], undefined>, undefined>;
1410
- readonly email: v.OptionalSchema<v.StrictObjectSchema<{
1411
- readonly subject: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1412
- readonly from: v.NullableSchema<v.StrictObjectSchema<{
1413
- readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1414
- readonly address: v.StringSchema<undefined>;
1415
- readonly ref: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
1416
- }, undefined>, undefined>;
1417
- readonly to: v.ArraySchema<v.StrictObjectSchema<{
1418
- readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1419
- readonly address: v.StringSchema<undefined>;
1420
- readonly ref: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
1421
- }, undefined>, undefined>;
1422
- readonly cc: v.ArraySchema<v.StrictObjectSchema<{
1423
- readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1424
- readonly address: v.StringSchema<undefined>;
1425
- readonly ref: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
1426
- }, undefined>, undefined>;
1427
- readonly bcc: v.ArraySchema<v.StrictObjectSchema<{
1428
- readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1429
- readonly address: v.StringSchema<undefined>;
1430
- readonly ref: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
1431
- }, undefined>, undefined>;
1432
- readonly reply_addresses: v.ArraySchema<v.StrictObjectSchema<{
1433
- readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1434
- readonly address: v.StringSchema<undefined>;
1435
- readonly ref: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
1436
- }, undefined>, undefined>;
1437
- readonly labels: v.ArraySchema<v.StringSchema<undefined>, undefined>;
1438
- readonly thread: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
1439
- readonly read: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
1440
- readonly flagged: v.NullableSchema<v.BooleanSchema<undefined>, undefined>;
1441
- readonly sender_score: v.OptionalSchema<v.StrictObjectSchema<{
1442
- readonly score: v.NumberSchema<undefined>;
1443
- readonly signals: v.ArraySchema<v.StringSchema<undefined>, undefined>;
1444
- readonly demoted: v.OptionalSchema<v.LiteralSchema<true, undefined>, undefined>;
1445
- }, undefined>, undefined>;
1446
- }, undefined>, undefined>;
1447
- readonly provider_metadata: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
1448
- }, "chat_title" | "context" | "corrections" | "discovery" | "email" | "excerpt" | "found_in" | "match" | "matched_in" | "ref" | "score" | "sender_name" | "timestamp">;
1449
- readonly "~standard": v.StandardProps<{
1450
- ref: string;
1451
- chat_title?: string | null | undefined;
1452
- sender_name: string | null;
1453
- timestamp: string;
1454
- excerpt?: string | undefined;
1455
- matched_in?: "context" | "file" | "filename" | "picture" | "text" | "transcript" | undefined;
1456
- score?: number | undefined;
1457
- match?: "beginnings" | "corrected" | "words" | undefined;
1458
- corrections?: {
1459
- from: string;
1460
- to: string[];
1461
- }[] | undefined;
1462
- found_in?: "archive" | "both" | "server" | undefined;
1463
- discovery?: {
1464
- coverage: number;
1465
- matched_terms: string[];
1466
- missing_terms: string[];
1467
- parent?: string | undefined;
1468
- found_by?: ("meaning" | "words")[] | undefined;
1469
- reranker_score?: number | undefined;
1470
- } | undefined;
1471
- context?: {
1472
- ref: string;
1473
- timestamp: string;
1474
- sender_name: string | null;
1475
- text: string;
1476
- }[] | undefined;
1477
- email?: {
1478
- subject: string | null;
1479
- from: {
1480
- name: string | null;
1481
- address: string;
1482
- ref: string | null;
1483
- } | null;
1484
- to: {
1485
- name: string | null;
1486
- address: string;
1487
- ref: string | null;
1488
- }[];
1489
- cc: {
1490
- name: string | null;
1491
- address: string;
1492
- ref: string | null;
1493
- }[];
1494
- bcc: {
1495
- name: string | null;
1496
- address: string;
1497
- ref: string | null;
1498
- }[];
1499
- reply_addresses: {
1500
- name: string | null;
1501
- address: string;
1502
- ref: string | null;
1503
- }[];
1504
- labels: string[];
1505
- thread: string;
1506
- read: boolean | null;
1507
- flagged: boolean | null;
1508
- sender_score?: {
1509
- score: number;
1510
- signals: string[];
1511
- demoted?: true | undefined;
1512
- } | undefined;
1513
- } | undefined;
1514
- }, {
1515
- ref: string;
1516
- chat_title?: string | null | undefined;
1517
- sender_name: string | null;
1518
- timestamp: string;
1519
- excerpt?: string | undefined;
1520
- matched_in?: "context" | "file" | "filename" | "picture" | "text" | "transcript" | undefined;
1521
- score?: number | undefined;
1522
- match?: "beginnings" | "corrected" | "words" | undefined;
1523
- corrections?: {
1524
- from: string;
1525
- to: string[];
1526
- }[] | undefined;
1527
- found_in?: "archive" | "both" | "server" | undefined;
1528
- discovery?: {
1529
- coverage: number;
1530
- matched_terms: string[];
1531
- missing_terms: string[];
1532
- parent?: string | undefined;
1533
- found_by?: ("meaning" | "words")[] | undefined;
1534
- reranker_score?: number | undefined;
1535
- } | undefined;
1536
- context?: {
1537
- ref: string;
1538
- timestamp: string;
1539
- sender_name: string | null;
1540
- text: string;
1541
- }[] | undefined;
1542
- email?: {
1543
- subject: string | null;
1544
- from: {
1545
- name: string | null;
1546
- address: string;
1547
- ref: string | null;
1548
- } | null;
1549
- to: {
1550
- name: string | null;
1551
- address: string;
1552
- ref: string | null;
1553
- }[];
1554
- cc: {
1555
- name: string | null;
1556
- address: string;
1557
- ref: string | null;
1558
- }[];
1559
- bcc: {
1560
- name: string | null;
1561
- address: string;
1562
- ref: string | null;
1563
- }[];
1564
- reply_addresses: {
1565
- name: string | null;
1566
- address: string;
1567
- ref: string | null;
1568
- }[];
1569
- labels: string[];
1570
- thread: string;
1571
- read: boolean | null;
1572
- flagged: boolean | null;
1573
- sender_score?: {
1574
- score: number;
1575
- signals: string[];
1576
- demoted?: true | undefined;
1577
- } | undefined;
1578
- } | undefined;
1579
- }>;
1580
- readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
1581
- ref: string;
1582
- chat_title?: string | null | undefined;
1583
- sender_name: string | null;
1584
- timestamp: string;
1585
- excerpt?: string | undefined;
1586
- matched_in?: "context" | "file" | "filename" | "picture" | "text" | "transcript" | undefined;
1587
- score?: number | undefined;
1588
- match?: "beginnings" | "corrected" | "words" | undefined;
1589
- corrections?: {
1590
- from: string;
1591
- to: string[];
1592
- }[] | undefined;
1593
- found_in?: "archive" | "both" | "server" | undefined;
1594
- discovery?: {
1595
- coverage: number;
1596
- matched_terms: string[];
1597
- missing_terms: string[];
1598
- parent?: string | undefined;
1599
- found_by?: ("meaning" | "words")[] | undefined;
1600
- reranker_score?: number | undefined;
1601
- } | undefined;
1602
- context?: {
1603
- ref: string;
1604
- timestamp: string;
1605
- sender_name: string | null;
1606
- text: string;
1607
- }[] | undefined;
1608
- email?: {
1609
- subject: string | null;
1610
- from: {
1611
- name: string | null;
1612
- address: string;
1613
- ref: string | null;
1614
- } | null;
1615
- to: {
1616
- name: string | null;
1617
- address: string;
1618
- ref: string | null;
1619
- }[];
1620
- cc: {
1621
- name: string | null;
1622
- address: string;
1623
- ref: string | null;
1624
- }[];
1625
- bcc: {
1626
- name: string | null;
1627
- address: string;
1628
- ref: string | null;
1629
- }[];
1630
- reply_addresses: {
1631
- name: string | null;
1632
- address: string;
1633
- ref: string | null;
1634
- }[];
1635
- labels: string[];
1636
- thread: string;
1637
- read: boolean | null;
1638
- flagged: boolean | null;
1639
- sender_score?: {
1640
- score: number;
1641
- signals: string[];
1642
- demoted?: true | undefined;
1643
- } | undefined;
1644
- } | undefined;
1645
- }, v.ArrayIssue | v.BooleanIssue | v.EndsWithIssue<string, "Z"> | v.IsoTimestampIssue<string> | v.LiteralIssue | v.NumberIssue | v.PicklistIssue | v.RegexIssue<string> | v.StrictObjectIssue | v.StringIssue>;
1646
- readonly "~types"?: {
1647
- readonly input: {
1648
- ref: string;
1649
- chat_title?: string | null | undefined;
1650
- sender_name: string | null;
1651
- timestamp: string;
1652
- excerpt?: string | undefined;
1653
- matched_in?: "context" | "file" | "filename" | "picture" | "text" | "transcript" | undefined;
1654
- score?: number | undefined;
1655
- match?: "beginnings" | "corrected" | "words" | undefined;
1656
- corrections?: {
1657
- from: string;
1658
- to: string[];
1659
- }[] | undefined;
1660
- found_in?: "archive" | "both" | "server" | undefined;
1661
- discovery?: {
1662
- coverage: number;
1663
- matched_terms: string[];
1664
- missing_terms: string[];
1665
- parent?: string | undefined;
1666
- found_by?: ("meaning" | "words")[] | undefined;
1667
- reranker_score?: number | undefined;
1668
- } | undefined;
1669
- context?: {
1670
- ref: string;
1671
- timestamp: string;
1672
- sender_name: string | null;
1673
- text: string;
1674
- }[] | undefined;
1675
- email?: {
1676
- subject: string | null;
1677
- from: {
1678
- name: string | null;
1679
- address: string;
1680
- ref: string | null;
1681
- } | null;
1682
- to: {
1683
- name: string | null;
1684
- address: string;
1685
- ref: string | null;
1686
- }[];
1687
- cc: {
1688
- name: string | null;
1689
- address: string;
1690
- ref: string | null;
1691
- }[];
1692
- bcc: {
1693
- name: string | null;
1694
- address: string;
1695
- ref: string | null;
1696
- }[];
1697
- reply_addresses: {
1698
- name: string | null;
1699
- address: string;
1700
- ref: string | null;
1701
- }[];
1702
- labels: string[];
1703
- thread: string;
1704
- read: boolean | null;
1705
- flagged: boolean | null;
1706
- sender_score?: {
1707
- score: number;
1708
- signals: string[];
1709
- demoted?: true | undefined;
1710
- } | undefined;
1711
- } | undefined;
1712
- };
1713
- readonly output: {
1714
- ref: string;
1715
- chat_title?: string | null | undefined;
1716
- sender_name: string | null;
1717
- timestamp: string;
1718
- excerpt?: string | undefined;
1719
- matched_in?: "context" | "file" | "filename" | "picture" | "text" | "transcript" | undefined;
1720
- score?: number | undefined;
1721
- match?: "beginnings" | "corrected" | "words" | undefined;
1722
- corrections?: {
1723
- from: string;
1724
- to: string[];
1725
- }[] | undefined;
1726
- found_in?: "archive" | "both" | "server" | undefined;
1727
- discovery?: {
1728
- coverage: number;
1729
- matched_terms: string[];
1730
- missing_terms: string[];
1731
- parent?: string | undefined;
1732
- found_by?: ("meaning" | "words")[] | undefined;
1733
- reranker_score?: number | undefined;
1734
- } | undefined;
1735
- context?: {
1736
- ref: string;
1737
- timestamp: string;
1738
- sender_name: string | null;
1739
- text: string;
1740
- }[] | undefined;
1741
- email?: {
1742
- subject: string | null;
1743
- from: {
1744
- name: string | null;
1745
- address: string;
1746
- ref: string | null;
1747
- } | null;
1748
- to: {
1749
- name: string | null;
1750
- address: string;
1751
- ref: string | null;
1752
- }[];
1753
- cc: {
1754
- name: string | null;
1755
- address: string;
1756
- ref: string | null;
1757
- }[];
1758
- bcc: {
1759
- name: string | null;
1760
- address: string;
1761
- ref: string | null;
1762
- }[];
1763
- reply_addresses: {
1764
- name: string | null;
1765
- address: string;
1766
- ref: string | null;
1767
- }[];
1768
- labels: string[];
1769
- thread: string;
1770
- read: boolean | null;
1771
- flagged: boolean | null;
1772
- sender_score?: {
1773
- score: number;
1774
- signals: string[];
1775
- demoted?: true | undefined;
1776
- } | undefined;
1777
- } | undefined;
1778
- };
1779
- readonly issue: v.ArrayIssue | v.BooleanIssue | v.EndsWithIssue<string, "Z"> | v.IsoTimestampIssue<string> | v.LiteralIssue | v.NumberIssue | v.PicklistIssue | v.RegexIssue<string> | v.StrictObjectIssue | v.StringIssue;
1780
- } | undefined;
1781
- };
1138
+ readonly untrusted: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
1139
+ }, undefined>;
1782
1140
  readonly "message.summary": Omit<v.StrictObjectSchema<{
1783
1141
  readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
1784
1142
  readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
@@ -4964,26 +4322,17 @@ export declare const ENTITIES: {
4964
4322
  readonly from: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
4965
4323
  }, undefined>, undefined>, undefined>;
4966
4324
  }, undefined>;
4967
- readonly "note.hit": Omit<v.StrictObjectSchema<{
4325
+ readonly "note.hit": v.StrictObjectSchema<{
4968
4326
  readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
4969
4327
  readonly kind: v.OptionalSchema<v.PicklistSchema<["note", "document"], undefined>, undefined>;
4970
4328
  readonly provider: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
4971
4329
  readonly account: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
4972
4330
  readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
4973
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
4974
4331
  readonly source: v.PicklistSchema<["file", "internal"], undefined>;
4975
4332
  readonly folder_id: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
4976
4333
  readonly path: v.NullableSchema<v.StringSchema<undefined>, undefined>;
4977
4334
  readonly title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
4978
- readonly text: v.StringSchema<undefined>;
4979
- readonly revision: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
4980
- readonly front_matter: v.NullableSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
4981
- readonly content_hash: v.NullableSchema<v.StringSchema<undefined>, undefined>;
4982
- readonly export_path: v.NullableSchema<v.StringSchema<undefined>, undefined>;
4983
- 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`">]>;
4984
4335
  readonly updated_at: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
4985
- readonly deleted_at: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>, undefined>, undefined>;
4986
- readonly tags: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
4987
4336
  readonly excerpt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
4988
4337
  readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["title", "words", "meaning"], undefined>, undefined>, undefined>;
4989
4338
  readonly links: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
@@ -4992,151 +4341,8 @@ export declare const ENTITIES: {
4992
4341
  readonly anchor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
4993
4342
  readonly to: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
4994
4343
  }, undefined>, undefined>, undefined>;
4995
- readonly backlinks: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
4996
- readonly target_text: v.NullableSchema<v.StringSchema<undefined>, undefined>;
4997
- readonly kind: v.StringSchema<undefined>;
4998
- readonly anchor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
4999
- readonly from: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
5000
- }, undefined>, undefined>, undefined>;
5001
- }, undefined>, "entries" | "~run" | "~standard" | "~types"> & {
5002
- readonly entries: Pick<{
5003
- readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
5004
- readonly kind: v.OptionalSchema<v.PicklistSchema<["note", "document"], undefined>, undefined>;
5005
- readonly provider: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
5006
- readonly account: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
5007
- readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
5008
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
5009
- readonly source: v.PicklistSchema<["file", "internal"], undefined>;
5010
- readonly folder_id: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
5011
- readonly path: v.NullableSchema<v.StringSchema<undefined>, undefined>;
5012
- readonly title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
5013
- readonly text: v.StringSchema<undefined>;
5014
- readonly revision: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
5015
- readonly front_matter: v.NullableSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
5016
- readonly content_hash: v.NullableSchema<v.StringSchema<undefined>, undefined>;
5017
- readonly export_path: v.NullableSchema<v.StringSchema<undefined>, undefined>;
5018
- 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`">]>;
5019
- readonly updated_at: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
5020
- readonly deleted_at: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>, undefined>, undefined>;
5021
- readonly tags: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
5022
- readonly excerpt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
5023
- readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["title", "words", "meaning"], undefined>, undefined>, undefined>;
5024
- readonly links: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
5025
- readonly target_text: v.NullableSchema<v.StringSchema<undefined>, undefined>;
5026
- readonly kind: v.StringSchema<undefined>;
5027
- readonly anchor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
5028
- readonly to: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
5029
- }, undefined>, undefined>, undefined>;
5030
- readonly backlinks: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
5031
- readonly target_text: v.NullableSchema<v.StringSchema<undefined>, undefined>;
5032
- readonly kind: v.StringSchema<undefined>;
5033
- readonly anchor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
5034
- readonly from: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
5035
- }, undefined>, undefined>, undefined>;
5036
- }, "account" | "excerpt" | "folder_id" | "found_by" | "kind" | "links" | "path" | "provider" | "ref" | "source" | "title" | "updated_at" | "url">;
5037
- readonly "~standard": v.StandardProps<{
5038
- ref: string;
5039
- kind?: "document" | "note" | undefined;
5040
- provider?: string | undefined;
5041
- account?: string | undefined;
5042
- url?: string | undefined;
5043
- source: "file" | "internal";
5044
- folder_id: string | null;
5045
- path: string | null;
5046
- title: string | null;
5047
- updated_at: string;
5048
- excerpt?: string | undefined;
5049
- found_by?: ("meaning" | "title" | "words")[] | undefined;
5050
- links?: {
5051
- target_text: string | null;
5052
- kind: string;
5053
- anchor: string | null;
5054
- to: string | null;
5055
- }[] | undefined;
5056
- }, {
5057
- ref: string;
5058
- kind?: "document" | "note" | undefined;
5059
- provider?: string | undefined;
5060
- account?: string | undefined;
5061
- url?: string | undefined;
5062
- source: "file" | "internal";
5063
- folder_id: string | null;
5064
- path: string | null;
5065
- title: string | null;
5066
- updated_at: string;
5067
- excerpt?: string | undefined;
5068
- found_by?: ("meaning" | "title" | "words")[] | undefined;
5069
- links?: {
5070
- target_text: string | null;
5071
- kind: string;
5072
- anchor: string | null;
5073
- to: string | null;
5074
- }[] | undefined;
5075
- }>;
5076
- readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
5077
- ref: string;
5078
- kind?: "document" | "note" | undefined;
5079
- provider?: string | undefined;
5080
- account?: string | undefined;
5081
- url?: string | undefined;
5082
- source: "file" | "internal";
5083
- folder_id: string | null;
5084
- path: string | null;
5085
- title: string | null;
5086
- updated_at: string;
5087
- excerpt?: string | undefined;
5088
- found_by?: ("meaning" | "title" | "words")[] | undefined;
5089
- links?: {
5090
- target_text: string | null;
5091
- kind: string;
5092
- anchor: string | null;
5093
- to: string | null;
5094
- }[] | undefined;
5095
- }, v.ArrayIssue | v.EndsWithIssue<string, "Z"> | v.IsoTimestampIssue<string> | v.MinLengthIssue<string, 1> | v.PicklistIssue | v.RegexIssue<string> | v.StrictObjectIssue | v.StringIssue>;
5096
- readonly "~types"?: {
5097
- readonly input: {
5098
- ref: string;
5099
- kind?: "document" | "note" | undefined;
5100
- provider?: string | undefined;
5101
- account?: string | undefined;
5102
- url?: string | undefined;
5103
- source: "file" | "internal";
5104
- folder_id: string | null;
5105
- path: string | null;
5106
- title: string | null;
5107
- updated_at: string;
5108
- excerpt?: string | undefined;
5109
- found_by?: ("meaning" | "title" | "words")[] | undefined;
5110
- links?: {
5111
- target_text: string | null;
5112
- kind: string;
5113
- anchor: string | null;
5114
- to: string | null;
5115
- }[] | undefined;
5116
- };
5117
- readonly output: {
5118
- ref: string;
5119
- kind?: "document" | "note" | undefined;
5120
- provider?: string | undefined;
5121
- account?: string | undefined;
5122
- url?: string | undefined;
5123
- source: "file" | "internal";
5124
- folder_id: string | null;
5125
- path: string | null;
5126
- title: string | null;
5127
- updated_at: string;
5128
- excerpt?: string | undefined;
5129
- found_by?: ("meaning" | "title" | "words")[] | undefined;
5130
- links?: {
5131
- target_text: string | null;
5132
- kind: string;
5133
- anchor: string | null;
5134
- to: string | null;
5135
- }[] | undefined;
5136
- };
5137
- readonly issue: v.ArrayIssue | v.EndsWithIssue<string, "Z"> | v.IsoTimestampIssue<string> | v.MinLengthIssue<string, 1> | v.PicklistIssue | v.RegexIssue<string> | v.StrictObjectIssue | v.StringIssue;
5138
- } | undefined;
5139
- };
4344
+ readonly untrusted: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
4345
+ }, undefined>;
5140
4346
  readonly hit: v.StrictObjectSchema<{
5141
4347
  readonly kind: v.PicklistSchema<["message", "mail", "note", "document", "event", "meeting"], undefined>;
5142
4348
  readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
@@ -6077,6 +5283,7 @@ export declare const ENTITIES: {
6077
5283
  readonly started_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>;
6078
5284
  readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
6079
5285
  }, undefined>, undefined>;
5286
+ readonly untrusted: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
6080
5287
  }, undefined>;
6081
5288
  readonly meeting_series_inventory: v.StrictObjectSchema<{
6082
5289
  readonly schema_version: v.LiteralSchema<1, undefined>;
@@ -6233,6 +5440,7 @@ export declare const ENTITIES: {
6233
5440
  readonly started_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>;
6234
5441
  readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
6235
5442
  }, undefined>, undefined>;
5443
+ readonly untrusted: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
6236
5444
  }, undefined>, undefined>;
6237
5445
  readonly association: v.LiteralSchema<"unconfirmed-word-evidence", undefined>;
6238
5446
  readonly vocabulary_fingerprint: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
@@ -6595,6 +5803,7 @@ export declare const ENTITIES: {
6595
5803
  readonly started_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>;
6596
5804
  readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
6597
5805
  }, undefined>, undefined>;
5806
+ readonly untrusted: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
6598
5807
  }, undefined>, undefined>;
6599
5808
  readonly association: v.LiteralSchema<"unconfirmed-word-evidence", undefined>;
6600
5809
  readonly vocabulary_fingerprint: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
@@ -10495,6 +9704,7 @@ export declare const ENTITIES: {
10495
9704
  readonly unread_count: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
10496
9705
  readonly last_message_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>;
10497
9706
  readonly created_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>;
9707
+ readonly untrusted: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
10498
9708
  }, undefined>;
10499
9709
  readonly folder: v.StrictObjectSchema<{
10500
9710
  readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;