@wirecat/tg-cli 0.112.0 → 0.114.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 (108) hide show
  1. package/dist/bin/tg.js +6 -2
  2. package/dist/bundle/{adapter-ILDV2YSZ.js → adapter-YAEHX3QB.js} +45 -45
  3. package/dist/bundle/{all-profiles-4SH2Q4WV.js → all-profiles-R5CW42HQ.js} +8 -8
  4. package/dist/bundle/{anthropic-64SM23YO.js → anthropic-F25RHYV2.js} +5 -5
  5. package/dist/bundle/{app-server-SSYZWCDJ.js → app-server-FAG6FNXR.js} +43 -42
  6. package/dist/bundle/{bot-api-OHAGQMES.js → bot-api-KOIAXTQR.js} +46 -46
  7. package/dist/bundle/{bot-history-AUFO7UL2.js → bot-history-PRAOZEWC.js} +16 -15
  8. package/dist/bundle/{bun-AHZX63TR.js → bun-XIMM6EHD.js} +2 -2
  9. package/dist/bundle/{bun-sqlite-KBIIODPV.js → bun-sqlite-DSUCO4TR.js} +4 -4
  10. package/dist/bundle/{chunk-JYOQMYNJ.js → chunk-2PAKHXIV.js} +31 -30
  11. package/dist/bundle/{chunk-KLNQXUDX.js → chunk-34USFPBF.js} +20 -18
  12. package/dist/bundle/{chunk-QMJGHSGN.js → chunk-3EZ43DAF.js} +3 -3
  13. package/dist/bundle/{chunk-NKACHGB2.js → chunk-3R43O3GG.js} +74 -15
  14. package/dist/bundle/{chunk-KYYAHIG2.js → chunk-4JOKO4IW.js} +6992 -5870
  15. package/dist/bundle/{chunk-XSYJKEA5.js → chunk-5HKMEXVQ.js} +35 -35
  16. package/dist/bundle/{chunk-NQKPXVLX.js → chunk-6SPLZI5P.js} +2 -2
  17. package/dist/bundle/{chunk-BIERCQVG.js → chunk-7FOT4XD2.js} +2232 -922
  18. package/dist/bundle/{chunk-4JXZKMXV.js → chunk-AL36NHO6.js} +5122 -949
  19. package/dist/bundle/{chunk-4IDJ7QCG.js → chunk-ALHKUQDZ.js} +4 -4
  20. package/dist/bundle/{chunk-2IGZLBTE.js → chunk-C34IDOA5.js} +2 -2
  21. package/dist/bundle/{chunk-KGYPSBTI.js → chunk-C7K7AP6G.js} +81 -33
  22. package/dist/bundle/{chunk-PDVSMGWO.js → chunk-CDCBFMEI.js} +2 -2
  23. package/dist/bundle/{chunk-TOBJGMMA.js → chunk-CS5DQ6KM.js} +15 -14
  24. package/dist/bundle/{chunk-DNYGJAEP.js → chunk-DQQEN3X4.js} +4 -4
  25. package/dist/bundle/{chunk-SC2DUQAK.js → chunk-E2IRSRTB.js} +1 -1
  26. package/dist/bundle/{chunk-QL4WBCL5.js → chunk-EARO464A.js} +13 -7
  27. package/dist/bundle/{chunk-5BNYW5RA.js → chunk-EQJG44KE.js} +4 -4
  28. package/dist/bundle/{chunk-WWKXTKCE.js → chunk-HA35XN2Z.js} +6 -4
  29. package/dist/bundle/{chunk-EO7PQE3J.js → chunk-I6BKSGZQ.js} +364 -178
  30. package/dist/bundle/{chunk-TUJEJ4D5.js → chunk-IN25CJ3D.js} +13 -13
  31. package/dist/bundle/{chunk-MCXVGHL6.js → chunk-J5U2HKGZ.js} +41 -28
  32. package/dist/bundle/{chunk-3GL4AOOG.js → chunk-KIZT2MI6.js} +1 -1
  33. package/dist/bundle/{chunk-3AJO4GER.js → chunk-KZQXOZFC.js} +5 -5
  34. package/dist/bundle/chunk-L4CMCC3V.js +34 -0
  35. package/dist/bundle/{chunk-COTC7HF3.js → chunk-LPUFOWL3.js} +1 -1
  36. package/dist/bundle/{chunk-ICEJKOKO.js → chunk-M3IWROIF.js} +7 -7
  37. package/dist/bundle/{chunk-K7VOCHVS.js → chunk-MQTTVQ3V.js} +6 -6
  38. package/dist/bundle/{chunk-D5JP2YWG.js → chunk-NJ2I4KFZ.js} +2 -2
  39. package/dist/bundle/{chunk-PXUHQO66.js → chunk-NKP3RUM4.js} +11 -11
  40. package/dist/bundle/{chunk-WI2S6INJ.js → chunk-NMVFFWF2.js} +6 -6
  41. package/dist/bundle/{chunk-GW7JRFTF.js → chunk-NTF34HJP.js} +3 -3
  42. package/dist/bundle/{chunk-EPAOLRUL.js → chunk-NUVBC3LJ.js} +8 -3
  43. package/dist/bundle/{chunk-7MFJFVUN.js → chunk-O7CBGHI7.js} +1 -1
  44. package/dist/bundle/{chunk-5W72OARG.js → chunk-OFDMD3YF.js} +8 -8
  45. package/dist/bundle/{chunk-RANORATG.js → chunk-OWHF6BON.js} +4 -4
  46. package/dist/bundle/{chunk-UXCWUEN7.js → chunk-P4YBABUC.js} +5 -40
  47. package/dist/bundle/{chunk-RPNRCFEE.js → chunk-QCXYJKPF.js} +2 -2
  48. package/dist/bundle/{chunk-6KGENDPF.js → chunk-RBC7JQ4Y.js} +2 -2
  49. package/dist/bundle/{chunk-GM44UNGL.js → chunk-RFRI2HFT.js} +1 -1
  50. package/dist/bundle/{chunk-UQOSZ2XX.js → chunk-TKNCJMYN.js} +1467 -707
  51. package/dist/bundle/{chunk-RHYMEHYK.js → chunk-TRRRRGMI.js} +2 -2
  52. package/dist/bundle/{chunk-UVRD447S.js → chunk-TTTDZOBW.js} +3 -3
  53. package/dist/bundle/{chunk-E4EJ2UTT.js → chunk-ULFTCR5W.js} +2 -2
  54. package/dist/bundle/{chunk-JPRYFDOJ.js → chunk-VHO66SMY.js} +174 -45
  55. package/dist/bundle/{chunk-GSGS62LX.js → chunk-VVKEWWSO.js} +1 -1
  56. package/dist/bundle/{chunk-JIGYVVWA.js → chunk-WIRDTH3J.js} +121 -31
  57. package/dist/bundle/{chunk-BTAET4U3.js → chunk-WOQGUIXE.js} +1 -1
  58. package/dist/bundle/{chunk-3W7BU2BL.js → chunk-XDOPONC3.js} +8 -13
  59. package/dist/bundle/{chunk-DFUTZGEV.js → chunk-Y3AQHPAJ.js} +1 -1
  60. package/dist/bundle/{chunk-JLB5LEXJ.js → chunk-Y4LCSCSH.js} +3 -3
  61. package/dist/bundle/{chunk-RC7EBLHM.js → chunk-YPABTT7A.js} +8 -8
  62. package/dist/bundle/{chunk-JXTYTAWE.js → chunk-YQ64ZNLD.js} +14 -13
  63. package/dist/bundle/{chunk-SFJFBIYP.js → chunk-ZFMOPKPT.js} +2 -2
  64. package/dist/bundle/command-contract-SOTDPG22.js +31 -0
  65. package/dist/bundle/{decode-FR3QHHJI.js → decode-7U4SXPAN.js} +4 -4
  66. package/dist/bundle/{echarts-VTV4C2OS.js → echarts-GKEZEAL7.js} +2 -2
  67. package/dist/bundle/{embed-US7X5P5D.js → embed-IDZDQMSW.js} +5 -5
  68. package/dist/bundle/{embedder-63Z7ZBYG.js → embedder-RY5R2PGO.js} +8 -8
  69. package/dist/bundle/{entry-B4J7IAG3.js → entry-P6YZ3ZV6.js} +8 -5
  70. package/dist/bundle/{first-run-MXPPUGII.js → first-run-66KTCVQK.js} +9 -9
  71. package/dist/bundle/first-screen-NY46X6QU.js +29 -0
  72. package/dist/bundle/{identity-AQWKU7SM.js → identity-GXVKGCNU.js} +3 -3
  73. package/dist/bundle/{instructions-GBR6DJTK.js → instructions-P5E34PQR.js} +1 -1
  74. package/dist/bundle/{mcp-YJEQYYTR.js → mcp-FUSDPAOL.js} +2 -2
  75. package/dist/bundle/{node-QXGPMDH2.js → node-GKPRXS5Y.js} +2 -2
  76. package/dist/bundle/{node-sqlite-L6CAMXQ2.js → node-sqlite-VUXFVPJ6.js} +10 -4
  77. package/dist/bundle/{oauth-5RK6J4SG.js → oauth-7SQIPMOY.js} +6 -6
  78. package/dist/bundle/{open-A3IAG7U6.js → open-W3BN2SIO.js} +4 -3
  79. package/dist/bundle/{openai-YKNGCHVV.js → openai-LQTK3ZMC.js} +13 -13
  80. package/dist/bundle/{process-CGLNXFIU.js → process-U2P5Z6UF.js} +1 -1
  81. package/dist/bundle/{program-AEDR6R5P.js → program-DIPSLR6O.js} +48 -48
  82. package/dist/bundle/{prompt-65CSCL2T.js → prompt-GESHKSM5.js} +4 -4
  83. package/dist/bundle/{proxy-transport-U3QOYMQF.js → proxy-transport-C2EUUT32.js} +4 -4
  84. package/dist/bundle/{recognize-ECRO6CFK.js → recognize-FEQTIJET.js} +3 -3
  85. package/dist/bundle/{remote-6IEFZFGO.js → remote-UXOPBPKS.js} +6 -6
  86. package/dist/bundle/{rerank-23GXWT2V.js → rerank-L4JM4REK.js} +6 -6
  87. package/dist/bundle/{serve-S65YTPZN.js → serve-DDWW44DB.js} +10 -9
  88. package/dist/bundle/{server-MVTBK7GV.js → server-UTWBIZHB.js} +32 -32
  89. package/dist/bundle/server-ZI7WDAW6.js +56 -0
  90. package/dist/bundle/{state-TH3UVQAW.js → state-EV7FGEK4.js} +5 -5
  91. package/dist/bundle/{store-2WFTUSNG.js → store-EXBUF4OG.js} +11 -10
  92. package/dist/bundle/store-maintenance-command-UBZE2Z6T.js +46 -0
  93. package/dist/bundle/tg.js +4 -4
  94. package/dist/commands/context.d.ts.map +1 -1
  95. package/dist/commands/context.js +6 -4
  96. package/dist/commands/context.js.map +1 -1
  97. package/dist/reasons.d.ts.map +1 -1
  98. package/dist/reasons.js +5 -0
  99. package/dist/reasons.js.map +1 -1
  100. package/dist/version.d.ts +1 -1
  101. package/dist/version.js +1 -1
  102. package/package.json +3 -3
  103. package/dist/bundle/chunk-B3Y2KZRS.js +0 -3588
  104. package/dist/bundle/command-contract-4KVJJZ46.js +0 -32
  105. package/dist/bundle/first-screen-GFYHUBBD.js +0 -30
  106. package/dist/bundle/server-IH24WEAC.js +0 -56
  107. package/dist/bundle/store-maintenance-command-PUOU2CL6.js +0 -45
  108. /package/dist/bundle/{chunk-WJWLHLQ7.js → chunk-NUN6OGOV.js} +0 -0
@@ -1,3588 +0,0 @@
1
- import { createRequire as __bundleRequire } from "node:module";
2
- const require = __bundleRequire(import.meta.url);
3
- import {
4
- WEIGHTS,
5
- agenda,
6
- attachment,
7
- childTrace,
8
- closeSuggestion,
9
- conversation,
10
- recordLogFor,
11
- storeTable,
12
- tagging,
13
- task
14
- } from "./chunk-4JXZKMXV.js";
15
- import {
16
- author,
17
- count,
18
- evidenceSource,
19
- id,
20
- note,
21
- organization,
22
- project,
23
- providerMetadata,
24
- reminder,
25
- text,
26
- time,
27
- untrusted
28
- } from "./chunk-XSYJKEA5.js";
29
- import {
30
- envName
31
- } from "./chunk-2IGZLBTE.js";
32
- import {
33
- carries
34
- } from "./chunk-3GL4AOOG.js";
35
- import {
36
- FACT_STATUSES,
37
- FACT_TYPES,
38
- LINK_KINDS,
39
- LINK_SOURCES,
40
- MEETING_RESULT_ENTITIES,
41
- MEMORY_KINDS,
42
- MEMORY_SCOPES,
43
- MEMORY_STATUSES,
44
- PRIORITY_LABELS,
45
- RELATION_KINDS,
46
- TASK_KINDS,
47
- TASK_ORIGINS,
48
- TASK_STATES,
49
- TASK_TYPES,
50
- TASK_VERDICTS,
51
- WORK_TASK_TYPES,
52
- event,
53
- meeting,
54
- meetingDetails,
55
- meetingHit,
56
- meetingLink,
57
- meetingParticipants,
58
- meetingPassage,
59
- meetingProjectEvidence,
60
- meetingReview,
61
- meetingSpeaker,
62
- meetingStats,
63
- meetingSummary,
64
- meetingTranscript
65
- } from "./chunk-EO7PQE3J.js";
66
- import {
67
- resolvePaths,
68
- writeSecurely
69
- } from "./chunk-KLNQXUDX.js";
70
- import {
71
- CliError,
72
- array,
73
- boolean,
74
- integer,
75
- isoDate,
76
- isoTime,
77
- jsonSchemaOf,
78
- literal,
79
- maxLength,
80
- minLength,
81
- minValue,
82
- null_,
83
- nullable,
84
- number,
85
- objectWithRest,
86
- omit,
87
- optional,
88
- pageSchema,
89
- partial,
90
- pick,
91
- picklist,
92
- pipe,
93
- record,
94
- reference,
95
- regex,
96
- safeInteger,
97
- strictObject,
98
- string,
99
- union,
100
- unknown,
101
- unwrap,
102
- variant
103
- } from "./chunk-QL4WBCL5.js";
104
- import {
105
- __name
106
- } from "./chunk-ZVVMGPBJ.js";
107
-
108
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/member.js
109
- var member = strictObject({
110
- id,
111
- name: nullable(text),
112
- username: nullable(text),
113
- role: optional(picklist(["owner", "admin", "member"])),
114
- /** `null` when their privacy hides it. */
115
- last_seen_at: optional(nullable(time)),
116
- registered_at: optional(nullable(time)),
117
- joined_at: optional(nullable(time)),
118
- /** Who added them or whose invite they used. */
119
- invited_by: optional(nullable(id)),
120
- is_bot: optional(boolean()),
121
- deleted: optional(boolean()),
122
- flagged: optional(picklist(["scam", "fake"])),
123
- has_photo: optional(boolean()),
124
- /** `chats members check`: how much they look like a bot — a hint, never a verdict. */
125
- score: optional(count),
126
- reasons: optional(array(text)),
127
- /** `chats members check --deep`: the whole person check, as `contacts check` answers it. */
128
- check: optional(record(string(), unknown()))
129
- });
130
-
131
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/chat.js
132
- var setting = optional(nullable(boolean()));
133
- var chat = strictObject({
134
- ref: reference,
135
- id,
136
- provider: optional(text),
137
- account: optional(text),
138
- title: nullable(text),
139
- kind: picklist(["dialog", "group", "channel", "saved", "unknown"]),
140
- unread_count: nullable(count),
141
- unread_mentions: optional(count),
142
- last_message_at: nullable(time),
143
- participants_count: nullable(count),
144
- muted: optional(boolean()),
145
- /** When the mute ends; absent with `muted` true is for good. */
146
- muted_until: optional(time),
147
- archived: optional(boolean()),
148
- /** The owner marked it unread, whatever `unread_count` says. */
149
- marked_unread: optional(boolean()),
150
- membership_state: optional(picklist(["joined", "left", "public", "imported", "archived", "external"])),
151
- parent_chat_id: optional(id),
152
- scope: optional(picklist(["personal", "work"])),
153
- provider_metadata: providerMetadata,
154
- /** `chats show`, a group or channel: what it says about itself. */
155
- description: optional(nullable(text)),
156
- invite_link: optional(nullable(text)),
157
- settings: optional(strictObject({
158
- all_can_pin: setting,
159
- only_admins_add: setting,
160
- only_admins_call: setting,
161
- only_owner_edits_info: setting,
162
- members_see_link: setting,
163
- join_approval: setting,
164
- only_admins_send: setting,
165
- only_admins_edit_info: setting,
166
- disappearing_seconds: optional(nullable(count))
167
- })),
168
- /** `chats show`: absent when no roster is known; an empty list is a known empty roster. */
169
- members: optional(array(member))
170
- });
171
-
172
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/list-results.js
173
- var botProfile = strictObject({
174
- name: text,
175
- token: text,
176
- bot: optional(text),
177
- id: optional(id),
178
- problem: optional(text)
179
- });
180
- var botSeenChat = strictObject({
181
- ...partial(omit(chat, ["ref", "provider", "account", "description", "invite_link", "settings", "members"])).entries,
182
- id,
183
- parent_chat_id: optional(nullable(id)),
184
- muted_until: optional(nullable(time)),
185
- first_seen_at: optional(time),
186
- last_seen_at: optional(time)
187
- });
188
- var botAdmin = strictObject({
189
- id,
190
- name: nullable(text),
191
- username: nullable(text),
192
- role: picklist(["owner", "admin"]),
193
- rights: array(picklist(["read", "members", "admins", "info", "pin", "link", "post", "edit", "delete"])),
194
- title: nullable(text)
195
- });
196
- var botMenuEntry = strictObject({ name: text, description: nullable(text) });
197
- var topicIcon = strictObject({ emoji: text });
198
- var botWebhook = strictObject({ url: text, types: optional(array(text)) });
199
- var scheduledJob = strictObject({
200
- name: text,
201
- kind: picklist(["command", "agent"]),
202
- when: text,
203
- last: nullable(strictObject({
204
- at: time,
205
- exit_code: number(),
206
- output: text,
207
- trace_id: optional(text),
208
- reason: optional(text),
209
- error_code: optional(text),
210
- failing_since: optional(time),
211
- failures: optional(number())
212
- }))
213
- });
214
- var botTemplate = strictObject({
215
- name: nullable(text),
216
- status: nullable(text),
217
- language: nullable(text),
218
- category: nullable(text)
219
- });
220
- var callRecord = strictObject({
221
- id,
222
- chat_id: nullable(id),
223
- caller_id: nullable(id),
224
- direction: picklist(["incoming", "outgoing"]),
225
- outcome: picklist(["answered", "missed", "declined"]),
226
- kind: picklist(["audio", "video"]),
227
- at: time,
228
- duration_seconds: nullable(number())
229
- });
230
- var stickerInventory = strictObject({
231
- id,
232
- title: optional(text),
233
- count: optional(number()),
234
- link: optional(nullable(text)),
235
- set_id: optional(nullable(id)),
236
- emoji: optional(array(text)),
237
- url: optional(nullable(text))
238
- });
239
-
240
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
241
- var actionableError = objectWithRest({
242
- code: text,
243
- message: text,
244
- retryable: boolean(),
245
- retry_after_ms: optional(number())
246
- }, unknown());
247
- var batchResult = strictObject({
248
- attempted: count,
249
- succeeded: count,
250
- failed: count,
251
- error_rate: number(),
252
- failures: array(strictObject({ id, stage: text, error: actionableError, attachment: optional(count) })),
253
- stop_reason: optional(picklist(["rate_limited", "authentication", "error_rate", "cancelled"])),
254
- max_error_percent: count
255
- });
256
-
257
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
258
- var conversationBuild = strictObject({
259
- chat: id,
260
- messages: count,
261
- links: count,
262
- conversations: count,
263
- built_at: time,
264
- rules_version: count
265
- });
266
- var chatEmbedding = strictObject({ chat: id, model: text, embedded: count, skipped: count });
267
- var conversationPreparation = strictObject({
268
- model: text,
269
- model_available: boolean(),
270
- built: array(conversationBuild),
271
- embedded: array(chatEmbedding),
272
- left: array(strictObject({ chat: id, needs: picklist(["build", "embed"]) })),
273
- /** Messages given their own vector, which `search messages --discover` reads, and how many still lack one. */
274
- messages: optional(strictObject({ embedded: count, left: count }))
275
- });
276
- var catchUpPreparation = strictObject({
277
- complete: boolean(),
278
- reason: optional(picklist(["message_bound", "time_or_abort_bound", "preparation_failed", "pending"])),
279
- prepared: optional(conversationPreparation)
280
- });
281
-
282
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
283
- import { spawn } from "node:child_process";
284
- import { randomBytes } from "node:crypto";
285
- import { closeSync, existsSync, mkdirSync, openSync, readdirSync, readFileSync, realpathSync, rmSync } from "node:fs";
286
- import { dirname, join } from "node:path";
287
-
288
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
289
- var progressOf = /* @__PURE__ */ __name((input) => {
290
- const total = input.total ?? null;
291
- const updated = input.updatedAt ?? null;
292
- return {
293
- job: input.job,
294
- profile: input.profile,
295
- done: input.done,
296
- total,
297
- remaining: total === null ? null : Math.max(0, total - input.done),
298
- state: input.complete ?? (total !== null && input.done >= total) ? "complete" : "partial",
299
- updated_at: updated,
300
- cursor_age_ms: updated === null ? null : Math.max(0, (input.now ?? /* @__PURE__ */ new Date()).getTime() - Date.parse(updated))
301
- };
302
- }, "progressOf");
303
-
304
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
305
- var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
306
- var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
307
- const out = openSync(log, "a", 384);
308
- try {
309
- const child = spawn(process.execPath, [realpathSync(process.argv[1] ?? ""), ...argv], {
310
- detached: true,
311
- stdio: ["ignore", out, out],
312
- env
313
- });
314
- child.unref();
315
- return child.pid ?? 0;
316
- } finally {
317
- closeSync(out);
318
- }
319
- }, "spawnDetached");
320
- var jobsDir = /* @__PURE__ */ __name((app, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "backfill"), "jobsDir");
321
- var jobPath = /* @__PURE__ */ __name((dir, id6) => join(dir, `${id6}.json`), "jobPath");
322
- var saveJob = /* @__PURE__ */ __name((dir, job2) => {
323
- mkdirSync(dir, { recursive: true, mode: 448 });
324
- writeSecurely(jobPath(dir, job2.id), `${JSON.stringify(job2, null, 2)}
325
- `, 384);
326
- }, "saveJob");
327
- var readJob = /* @__PURE__ */ __name((dir, id6) => {
328
- if (!/^[\w-]+$/.test(id6) || !existsSync(jobPath(dir, id6)))
329
- return void 0;
330
- try {
331
- return JSON.parse(readFileSync(jobPath(dir, id6), "utf8"));
332
- } catch {
333
- return void 0;
334
- }
335
- }, "readJob");
336
- var recordsPath = /* @__PURE__ */ __name((dir, id6) => join(dir, `${id6}.jsonl`), "recordsPath");
337
- var tracedJob = /* @__PURE__ */ __name((env) => {
338
- const trace = childTrace();
339
- return { env: { ...env, TRACEPARENT: trace.traceparent }, traceId: trace.traceId };
340
- }, "tracedJob");
341
- var jobStarted = /* @__PURE__ */ __name((app, dir, job2) => {
342
- saveJob(dir, job2);
343
- recordLogFor(recordsPath(dir, job2.id), app, job2.traceId ? { traceId: job2.traceId } : {}).info({
344
- event: "job.start",
345
- job: job2.id,
346
- pid: job2.pid
347
- });
348
- }, "jobStarted");
349
- var finishJob = /* @__PURE__ */ __name((app, dir, id6, change) => {
350
- updateJob(dir, id6, change);
351
- const job2 = readJob(dir, id6);
352
- if (!job2)
353
- return;
354
- const outcome2 = stateOf(job2);
355
- recordLogFor(recordsPath(dir, id6), app, job2.traceId ? { traceId: job2.traceId } : {})[job2.error ? "error" : "info"]({
356
- event: "job.exit",
357
- job: id6,
358
- outcome: outcome2,
359
- ...job2.error ? { errorCode: job2.error.code } : {}
360
- });
361
- }, "finishJob");
362
- var updateJob = /* @__PURE__ */ __name((dir, id6, change) => {
363
- const job2 = readJob(dir, id6);
364
- if (job2)
365
- saveJob(dir, { ...job2, ...change });
366
- }, "updateJob");
367
- var removeJob = /* @__PURE__ */ __name((dir, job2) => {
368
- rmSync(jobPath(dir, job2.id), { force: true });
369
- rmSync(recordsPath(dir, job2.id), { force: true });
370
- if (dirname(job2.log) === dir)
371
- rmSync(job2.log, { force: true });
372
- }, "removeJob");
373
- var listJobs = /* @__PURE__ */ __name((dir) => existsSync(dir) ? readdirSync(dir).filter((name) => name.endsWith(".json")).flatMap((name) => readJob(dir, name.slice(0, -".json".length)) ?? []).sort((a, b) => b.startedAt.localeCompare(a.startedAt)) : [], "listJobs");
374
- var jobDetails = /* @__PURE__ */ __name((job2) => ({
375
- job: job2.id,
376
- profile: job2.profile,
377
- chat: job2.chat,
378
- state: stateOf(job2),
379
- pid: job2.pid,
380
- startedAt: job2.startedAt,
381
- ...job2.finishedAt ? { finishedAt: job2.finishedAt } : {},
382
- fetched: Number(job2.result?.fetched ?? job2.progress?.fetched ?? 0),
383
- ...job2.limit === void 0 ? {} : { messageLimit: job2.limit },
384
- ...job2.pageSize === void 0 ? {} : { pageSize: job2.pageSize },
385
- ...job2.last === void 0 ? {} : { last: job2.last },
386
- ...job2.result ? {
387
- complete: job2.result.complete === true,
388
- ...job2.result.issue ? { issue: job2.result.issue } : {},
389
- ...job2.result.batch ? { batch: job2.result.batch } : {},
390
- ...job2.result.resume ? { resume: job2.result.resume } : {}
391
- } : {},
392
- ...job2.error ? { error: job2.error } : {},
393
- progress: progressOf({
394
- job: job2.id,
395
- profile: job2.profile,
396
- done: Number(job2.result?.fetched ?? job2.progress?.fetched ?? 0),
397
- ...job2.limit === void 0 ? {} : { total: job2.limit },
398
- complete: job2.result?.complete === true,
399
- ...job2.progress?.at ?? job2.finishedAt ? { updatedAt: job2.progress?.at ?? job2.finishedAt } : {}
400
- })
401
- }), "jobDetails");
402
- var jobItem = /* @__PURE__ */ __name((job2) => {
403
- const issue = job2.result?.issue;
404
- return {
405
- id: job2.id,
406
- chat: job2.chat,
407
- state: stateOf(job2),
408
- pid: job2.pid,
409
- started_at: job2.startedAt,
410
- ...job2.finishedAt ? { finished_at: job2.finishedAt } : {},
411
- fetched: Number(job2.result?.fetched ?? job2.progress?.fetched ?? 0),
412
- ...job2.limit === void 0 ? {} : { message_limit: job2.limit },
413
- ...job2.pageSize === void 0 ? {} : { page_size: job2.pageSize },
414
- ...job2.last === void 0 ? {} : { last: job2.last },
415
- ...job2.result ? { complete: job2.result.complete === true } : {},
416
- ...issue ? { issue: { code: String(issue.code), message: String(issue.message) } } : {},
417
- ...job2.error ? { error: { code: job2.error.code, message: job2.error.message } } : {}
418
- };
419
- }, "jobItem");
420
- var stateOf = /* @__PURE__ */ __name((job2) => {
421
- if (job2.finishedAt !== void 0) {
422
- if (job2.cancelRequestedAt)
423
- return "cancelled";
424
- return job2.error ? "failed" : job2.result?.batch || job2.result?.issue ? "partial" : "done";
425
- }
426
- if (isJob(job2))
427
- return "running";
428
- return job2.cancelRequestedAt ? "cancelled" : "died";
429
- }, "stateOf");
430
- var isJob = /* @__PURE__ */ __name((job2) => carries(job2.pid, `_BACKFILL_JOB=${job2.id}`), "isJob");
431
- var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob = spawnDetached) => {
432
- const dir = jobsDir(app, env);
433
- const running = listJobs(dir).find((job3) => job3.profile === profile && job3.chat === input.chat && stateOf(job3) === "running");
434
- if (running)
435
- throw new CliError("validation_error", `job ${running.id} already works on this chat; inspect store jobs show first`);
436
- const startedAt = (/* @__PURE__ */ new Date()).toISOString();
437
- const id6 = `${startedAt.replace(/[-:]/g, "").slice(0, 15)}-${randomBytes(3).toString("hex")}`;
438
- mkdirSync(dir, { recursive: true, mode: 448 });
439
- const log = join(dir, `${id6}.log`);
440
- const job2 = {
441
- id: id6,
442
- chat: input.chat,
443
- profile,
444
- pid: 0,
445
- startedAt,
446
- limit: input.limit,
447
- pageSize: input.pageSize,
448
- argv: input.argv,
449
- log
450
- };
451
- saveJob(dir, job2);
452
- const { [envName(app, "TIMEOUT")]: _timeout, ...inherited } = env;
453
- const traced = tracedJob({ ...inherited, [envName(app, "PROFILE")]: profile, [envName(app, "BACKFILL_JOB")]: id6 });
454
- const pid = spawnJob(input.argv, traced.env, log);
455
- jobStarted(app, dir, { ...job2, pid, traceId: traced.traceId });
456
- return { job: id6, pid, chat: input.chat, log };
457
- }, "startArchiveJob");
458
-
459
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/job.js
460
- var problem = strictObject({ code: text, message: text });
461
- var job = strictObject({
462
- id,
463
- /** The chat as the sync was given it. */
464
- chat: text,
465
- state: picklist(JOB_STATES),
466
- pid: count,
467
- started_at: time,
468
- finished_at: optional(time),
469
- /** Messages fetched so far, or in all once it finished. */
470
- fetched: count,
471
- /** The `--limit` the sync was started with: how many messages it may fetch. */
472
- message_limit: optional(count),
473
- page_size: optional(count),
474
- last: optional(count),
475
- /** Whether the sync reached its window; set once it finished. */
476
- complete: optional(boolean()),
477
- /** Why a partial job stopped short; `store jobs retry` resumes it. */
478
- issue: optional(problem),
479
- error: optional(problem)
480
- });
481
-
482
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/message.js
483
- var quoted = strictObject({
484
- id,
485
- sender_id: nullable(id),
486
- sender_name: nullable(text),
487
- timestamp: nullable(time),
488
- text,
489
- attachments: array(attachment),
490
- outgoing: nullable(boolean())
491
- });
492
- var mailPerson = strictObject({ name: nullable(text), address: text, ref: nullable(reference) });
493
- var message = strictObject({
494
- /** The message's locator. */
495
- ref: reference,
496
- id,
497
- provider: optional(text),
498
- account: optional(text),
499
- chat_id: id,
500
- chat_title: optional(nullable(text)),
501
- sender_id: nullable(id),
502
- sender_name: nullable(text),
503
- sender_username: optional(text),
504
- sender_is_chat: optional(boolean()),
505
- sender_is_me: boolean(),
506
- mentions: optional(array(id)),
507
- /** When it was sent. */
508
- timestamp: time,
509
- edited_at: nullable(time),
510
- text,
511
- /** What a voice message says, once heard. */
512
- transcript: optional(text),
513
- /** In a window of messages around one, the one asked for. */
514
- anchor: optional(boolean()),
515
- /** A stretch of the text, transcript, file name or file text around what a search matched. */
516
- excerpt: optional(text),
517
- /** `picture`: the picture search lane found it by what the picture shows; it follows the text hits. */
518
- matched_in: optional(picklist(["text", "transcript", "filename", "file", "context", "picture"])),
519
- score: optional(number()),
520
- /**
521
- * `corrected`: a query word matched only a spelling speech recognition garbled in a voice note's transcript,
522
- * listed in `corrections`. `words` and `beginnings`: what a discovery search matched.
523
- */
524
- match: optional(picklist(["words", "beginnings", "corrected"])),
525
- corrections: optional(array(strictObject({ from: text, to: array(text) }))),
526
- /** Where a search found it: the local archive, the messenger's server, or both. */
527
- found_in: optional(picklist(["archive", "server", "both"])),
528
- /** A discovery search's partial match: how much of the question it covers, and which words it lacks. */
529
- discovery: optional(strictObject({
530
- coverage: number(),
531
- matched_terms: array(text),
532
- missing_terms: array(text),
533
- parent: optional(reference),
534
- /** Present when meaning was searched too: which of the two lists found it. */
535
- found_by: optional(array(picklist(["words", "meaning"]))),
536
- /** Present when the reranker read it: its own score, higher is better. It ordered the first hits with `score`. */
537
- reranker_score: optional(number())
538
- })),
539
- /** The messages around a search hit, or its thread, oldest first; the hit itself is among them. */
540
- context: optional(array(strictObject({ ref: reference, timestamp: time, sender_name: nullable(text), text }))),
541
- /**
542
- * A discovery hit's later messages, from any chat the search reads, that share a rare word with it, latest first:
543
- * one may change or cancel what the hit says. An excerpt, as the hit's own: `messages context <ref>` has the whole text.
544
- */
545
- follow_ups: optional(array(strictObject({
546
- ref: reference,
547
- chat_title: nullable(text),
548
- timestamp: time,
549
- sender_name: nullable(text),
550
- excerpt: text
551
- }))),
552
- outgoing: nullable(boolean()),
553
- attachments: array(attachment),
554
- reply_to: nullable(quoted),
555
- /** The id a reply answers, also when the provider sent no copy of that message. */
556
- reply_to_id: optional(id),
557
- forwarded_from: nullable(quoted),
558
- thread_id: optional(id),
559
- thread_root_id: optional(id),
560
- reactions: optional(nullable(strictObject({
561
- counts: array(strictObject({ reaction: text, count })),
562
- mine: nullable(text),
563
- total: count
564
- }))),
565
- scheduled_for: optional(time),
566
- /** The owner starred it; only where the messenger has stars, and only when set. */
567
- starred: optional(literal(true)),
568
- /** The owner's own message in a one-to-one chat: `delivered`, or `read` once opened; absent when no receipt came. */
569
- delivery: optional(picklist(["delivered", "read"])),
570
- email: optional(strictObject({
571
- subject: nullable(text),
572
- from: nullable(mailPerson),
573
- to: array(mailPerson),
574
- cc: array(mailPerson),
575
- bcc: array(mailPerson),
576
- /** The mail header Reply-To; `reply_to` is the quoted message a chat reply answers. */
577
- reply_addresses: array(mailPerson),
578
- labels: array(text),
579
- /** The thread as a `chat:` reference. */
580
- thread: reference,
581
- read: nullable(boolean()),
582
- flagged: nullable(boolean()),
583
- /** How much the sender's mail looks like spam, a scam or a robot (memo's score), and why; absent when unscored. */
584
- sender_score: optional(strictObject({ score: number(), signals: array(text), demoted: optional(literal(true)) }))
585
- })),
586
- provider_metadata: providerMetadata
587
- });
588
-
589
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
590
- var extractionItem = strictObject({
591
- ref: reference,
592
- attachment: count,
593
- kind: text,
594
- name: nullable(text),
595
- status: picklist(["extracted", "needs-agent", "unreadable", "engine-missing", "too-large", "missing"]),
596
- extractor: optional(text),
597
- chars: optional(count),
598
- local_path: optional(text),
599
- pages: optional(count),
600
- ocr_pages: optional(count),
601
- error: optional(text),
602
- issue: optional(actionableError)
603
- });
604
- var extractionSummary = strictObject({
605
- extracted: count,
606
- failed: count,
607
- needs_agent: count,
608
- complete: boolean(),
609
- batch: optional(batchResult)
610
- });
611
- var extractionReport = strictObject({
612
- ...extractionSummary.entries,
613
- items: array(extractionItem),
614
- unchanged: count,
615
- not_downloaded: count,
616
- unsupported: count,
617
- /** Reader package names, such as unpdf or @napi-rs/canvas. */
618
- engines_missing: array(text),
619
- cursor: optional(text)
620
- });
621
-
622
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
623
- var savedMessageFile = strictObject({
624
- kind: text,
625
- path: text,
626
- bytes: count,
627
- existing: optional(literal(true))
628
- });
629
- var files = array(savedMessageFile);
630
- var messageDownload = union([
631
- strictObject({
632
- files,
633
- extraction: optional(extractionReport),
634
- complete: optional(literal(false)),
635
- batch: optional(batchResult)
636
- }),
637
- strictObject({
638
- files,
639
- chat: nullable(id),
640
- saved: count,
641
- existing: count,
642
- complete: boolean(),
643
- batch: optional(batchResult),
644
- stopped: optional(literal(true)),
645
- extraction: optional(extractionSummary)
646
- })
647
- ]);
648
- var historyRange = strictObject({ from: number(), to: number() });
649
- var messageSyncEstimate = strictObject({
650
- chat: id,
651
- held: count,
652
- ranges: array(historyRange),
653
- missing: nullable(count),
654
- requests: nullable(count),
655
- runs: nullable(count),
656
- seconds: nullable(count)
657
- });
658
- var tasks = optional(strictObject({
659
- added: count,
660
- closed: count,
661
- review: count,
662
- held: optional(count),
663
- held_chats: optional(count)
664
- }));
665
- var messageSyncChat = strictObject({
666
- issue: optional(actionableError),
667
- resume: optional(strictObject({ before: optional(text) })),
668
- prepared: optional(catchUpPreparation),
669
- window_complete: optional(boolean()),
670
- requests: optional(count),
671
- chat: nullable(id),
672
- fetched: count,
673
- complete: boolean(),
674
- ranges: array(historyRange),
675
- reached_since: optional(literal(true)),
676
- reached_last: optional(literal(true)),
677
- stopped: optional(literal(true)),
678
- tasks
679
- });
680
- var messageSyncAll = strictObject({
681
- batch: optional(batchResult),
682
- chats: count,
683
- fetched: count,
684
- complete: boolean(),
685
- stopped: optional(literal(true)),
686
- items: array(strictObject({
687
- chat: id,
688
- title: nullable(text),
689
- fetched: count,
690
- complete: boolean(),
691
- current: optional(literal(true)),
692
- stopped: optional(literal(true)),
693
- error: optional(text),
694
- issue: optional(actionableError)
695
- })),
696
- tasks
697
- });
698
- var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
699
- var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
700
-
701
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/store-records.js
702
- var range = strictObject({ from: number(), to: number() });
703
- var storeChatStatus = strictObject({
704
- chat_id: id,
705
- title: nullable(text),
706
- kind: chat.entries.kind,
707
- messages: count,
708
- oldest_at: nullable(time),
709
- newest_at: nullable(time),
710
- last_stored_at: nullable(time),
711
- held: array(range)
712
- });
713
- var storeClear = strictObject({
714
- cleared: boolean(),
715
- dry_run: optional(literal(true)),
716
- chats: count,
717
- messages: count,
718
- left: array(strictObject({ id, title: nullable(text), messages: count }))
719
- });
720
- var storeExport = union([
721
- message,
722
- strictObject({
723
- path: text,
724
- format: picklist(["jsonl", "markdown"]),
725
- count,
726
- encrypted: optional(literal(true))
727
- }),
728
- strictObject({
729
- path: text,
730
- encrypted: optional(literal(true)),
731
- chats: array(strictObject({ id, title: nullable(text), file: nullable(text), messages: count, deleted: count }))
732
- })
733
- ]);
734
- var storeGapPlan = strictObject({
735
- version: literal(1),
736
- scope: literal("interior"),
737
- account: strictObject({ provider: text, account: id }),
738
- chat: id,
739
- ordering: picklist(["id", "time"]),
740
- held: array(range),
741
- gaps: array(range),
742
- unknown: strictObject({ older: boolean(), newer: literal(true) }),
743
- fingerprint: text,
744
- limits: strictObject({ max_gaps: count, limit: count, time_ms: count, page_size: count })
745
- });
746
- var storeGapRepair = union([
747
- messageSyncStarted,
748
- strictObject({
749
- version: literal(1),
750
- scope: literal("interior"),
751
- chat: id,
752
- before: storeGapPlan,
753
- after: storeGapPlan,
754
- repaired: array(range),
755
- fetched: count,
756
- requests: count,
757
- complete: boolean(),
758
- prepared: optional(catchUpPreparation),
759
- stopped: optional(picklist(["bound", "partial_or_inaccessible", "fetch_failed"]))
760
- })
761
- ]);
762
- var problem2 = objectWithRest({ code: text, message: text, retryable: optional(boolean()), retry_after_ms: optional(number()) }, unknown());
763
- var progress = strictObject({
764
- job: id,
765
- profile: text,
766
- done: count,
767
- total: nullable(count),
768
- remaining: nullable(count),
769
- state: picklist(["partial", "complete"]),
770
- updated_at: nullable(time),
771
- cursor_age_ms: nullable(count)
772
- });
773
- var storeJobDetails = strictObject({
774
- ...omit(job, ["id", "issue", "error"]).entries,
775
- job: id,
776
- profile: text,
777
- issue: optional(problem2),
778
- error: optional(problem2),
779
- batch: optional(batchResult),
780
- resume: optional(strictObject({ before: optional(text) })),
781
- progress,
782
- held: optional(array(range)),
783
- log: text
784
- });
785
- var storeJobCancel = strictObject({ job: id, cancelled: literal(true) });
786
- var storeJobRetry = union([
787
- strictObject({ ...messageSyncStarted.entries, retried: id }),
788
- strictObject({ retried: id, chat: text, error: strictObject({ code: text, message: text }) })
789
- ]);
790
- var storeJobClear = strictObject({ cleared: array(id) });
791
-
792
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/account.js
793
- var account = strictObject({
794
- provider: text,
795
- id,
796
- name: nullable(text),
797
- username: nullable(text),
798
- phone: optional(nullable(text)),
799
- scope: optional(picklist(["personal", "work"]))
800
- });
801
-
802
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/account-session.js
803
- var accountSession = strictObject({
804
- current: boolean(),
805
- client: nullable(text),
806
- device: nullable(text),
807
- location: nullable(text),
808
- last_active_at: nullable(time),
809
- created_at: optional(nullable(time))
810
- });
811
-
812
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/account-change.js
813
- var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
814
- var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
815
- var audience = picklist(["everyone", "contacts", "nobody"]);
816
- var shownAudience = picklist(["everyone", "contacts", "nobody", "contacts_except"]);
817
- var accountPrivacy = strictObject({
818
- find_by_phone: optional(audience),
819
- phone_number: optional(audience),
820
- calls: optional(audience),
821
- chat_invites: optional(audience),
822
- hide_online: optional(boolean()),
823
- read_receipts: optional(boolean()),
824
- profile_photo: optional(shownAudience),
825
- about: optional(shownAudience),
826
- last_seen: optional(shownAudience)
827
- });
828
- var accountPrivacyChange = strictObject({ operation_id: id, privacy: accountPrivacy });
829
-
830
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
831
- var accountProfile = strictObject({
832
- profile: id,
833
- current: boolean(),
834
- account: nullable(id),
835
- name: nullable(text),
836
- /** False for a profile with no session on this computer; absent when the messenger does not say. */
837
- signed_in: optional(boolean())
838
- });
839
-
840
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
841
- var milliseconds = pipe(number(), minValue(0));
842
- var counterReading = strictObject({
843
- counter: picklist(["views", "reactions", "comments"]),
844
- value: nullable(number()),
845
- observed_at: nullable(time),
846
- source: nullable(text),
847
- age_ms: nullable(milliseconds),
848
- freshness: picklist(["fresh", "stale", "unknown"])
849
- });
850
- var selection = record(string(), unknown());
851
-
852
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
853
- var adminRow = strictObject({
854
- ref: reference,
855
- /** What `stats * evidence` takes: a person id, a stay or a message locator. */
856
- id,
857
- status: picklist(["observed", "no-observed-answer", "partial", "unknown"]),
858
- chat_ref: optional(reference),
859
- person_ref: optional(reference),
860
- identity_known: optional(boolean()),
861
- questions: optional(count),
862
- answered: optional(count),
863
- median_ms: optional(nullable(milliseconds)),
864
- p90_ms: optional(nullable(milliseconds)),
865
- age_ms: optional(milliseconds),
866
- joined_at: optional(time),
867
- window_end: optional(time),
868
- pending: optional(boolean()),
869
- views: optional(count),
870
- observed_replies: optional(count),
871
- comment_snapshot: optional(nullable(count)),
872
- counters: optional(array(counterReading)),
873
- selection
874
- });
875
- var adminReport = strictObject({
876
- report: picklist(["unanswered", "responses", "newcomers", "discussion"]),
877
- cutoff: time,
878
- /** Rows the report found; `rows` holds the first `--limit` of them. */
879
- total: count,
880
- summary: strictObject({
881
- questions: count,
882
- answered: count,
883
- no_observed_answer: count,
884
- excluded_future: count,
885
- unknown_join: count,
886
- missing_views: count
887
- }),
888
- quality: strictObject({
889
- graph: strictObject({
890
- unknown_links: count,
891
- unknown_authors: count,
892
- missing_parents: count,
893
- cycles: count,
894
- complete: boolean()
895
- }),
896
- archives: array(strictObject({ chat_ref: reference, state: text, fetched_at: nullable(time) })),
897
- archives_total: count,
898
- membership: text,
899
- counter_freshness: text,
900
- answerer_roles: text
901
- }),
902
- rows: array(adminRow)
903
- });
904
-
905
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
906
- var analysisConsent = strictObject({ chat: id, provider: text, at: time });
907
- var analysisConsentRevocation = strictObject({ revoked: boolean() });
908
-
909
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
910
- var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
911
- var attachmentBytes = strictObject({
912
- ref: reference,
913
- attachment: count,
914
- name: nullable(text),
915
- mime_type: text,
916
- total_bytes: count,
917
- sha256: fingerprint,
918
- offset_bytes: count,
919
- read_bytes: count,
920
- next_offset_bytes: nullable(count),
921
- complete: boolean(),
922
- base64: optional(text),
923
- pdf: optional(strictObject({ page: count, page_count: count, source_sha256: fingerprint, source_bytes: count }))
924
- });
925
- var attachmentExtraction = union([
926
- strictObject({ ...omit(extractionReport, ["items"]).entries, files: array(extractionItem) }),
927
- extractionItem
928
- ]);
929
- var attachmentTextChange = strictObject({
930
- ref: reference,
931
- attachment: count,
932
- origin: literal("agent"),
933
- chars: count,
934
- replaced: nullable(picklist(["extracted", "agent"]))
935
- });
936
-
937
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/chart.js
938
- var chart = strictObject({
939
- version: literal(1),
940
- kind: picklist(["bar", "line", "grouped-bar"]),
941
- title: text,
942
- x: strictObject({ type: picklist(["day", "week"]), values: array(text) }),
943
- series: array(strictObject({ name: text, values: array(nullable(number())) })),
944
- unit: picklist(["messages", "people"]),
945
- timezone: text,
946
- /** Lower bounds: the store or the events did not hold the whole period. */
947
- partial: boolean(),
948
- reasons: array(picklist(["store-incomplete", "events-incomplete"])),
949
- file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
950
- });
951
-
952
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/folder.js
953
- var named = strictObject({
954
- id,
955
- title: nullable(text),
956
- kind: nullable(picklist(["dialog", "group", "channel", "saved", "unknown"]))
957
- });
958
- var folder = strictObject({
959
- id,
960
- title: text,
961
- /** Chats added by hand; a folder that selects chats by a rule of its own lists none. */
962
- chat_ids: array(id),
963
- emoji: optional(text),
964
- /** Kinds of chat it takes by itself. */
965
- include: optional(array(picklist(["contacts", "non-contacts", "groups", "channels", "bots"]))),
966
- skip: optional(array(picklist(["muted", "read", "archived"]))),
967
- excluded_chat_ids: optional(array(id)),
968
- pinned_chat_ids: optional(array(id)),
969
- /** `chats folders show`: the chats in it, pinned and left out, by name. */
970
- chats: optional(array(named)),
971
- pinned_chats: optional(array(named)),
972
- excluded_chats: optional(array(named))
973
- });
974
-
975
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
976
- var inviteLink = strictObject({
977
- link: text,
978
- /** Who joins by it asks first, and an admin lets them in. */
979
- approval: boolean(),
980
- /** `null` when it never expires. */
981
- expires_at: nullable(time),
982
- /** `null` for no limit. */
983
- max_uses: nullable(count),
984
- /** The group's own link; revoking it makes the messenger issue a new one. */
985
- primary: optional(boolean()),
986
- revoked: optional(boolean()),
987
- pending_count: optional(count),
988
- joined_count: optional(count)
989
- });
990
-
991
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
992
- var operated = { operation_id: id, chat_id: id };
993
- var group = strictObject({
994
- ...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
995
- parent_chat_id: optional(nullable(id)),
996
- muted_until: optional(nullable(time)),
997
- description: nullable(text),
998
- link: nullable(text),
999
- settings: strictObject({
1000
- ...unwrap(chat.entries.settings).entries,
1001
- all_can_pin: nullable(boolean()),
1002
- only_admins_add: nullable(boolean()),
1003
- only_admins_call: nullable(boolean()),
1004
- only_owner_edits_info: nullable(boolean()),
1005
- members_see_link: nullable(boolean())
1006
- })
1007
- });
1008
- var chatGroupChange = union([
1009
- strictObject({ operation_id: id, chat: group }),
1010
- strictObject({ operation_id: id, requested: literal(true) })
1011
- ]);
1012
- var chatInspection = strictObject({
1013
- kind: chat.entries.kind,
1014
- title: nullable(text),
1015
- id: nullable(id),
1016
- username: nullable(text),
1017
- participants_count: nullable(count),
1018
- description: nullable(text),
1019
- member: nullable(boolean()),
1020
- approval_needed: optional(boolean())
1021
- });
1022
- var chatSender = strictObject({
1023
- id,
1024
- title: text,
1025
- kind: picklist(["self", "channel", "group"]),
1026
- premium_required: boolean(),
1027
- default: boolean()
1028
- });
1029
- var chatRead = strictObject({ ...operated, until: nullable(id), thread_id: optional(id) });
1030
- var chatMembersFetch = strictObject({
1031
- chat_id: id,
1032
- joined: array(id),
1033
- gone: array(id),
1034
- changed: array(id),
1035
- read: count,
1036
- participants: nullable(count),
1037
- complete: boolean(),
1038
- more: boolean(),
1039
- tracked: boolean()
1040
- });
1041
- var chatMembersChange = union([
1042
- strictObject({ ...operated, added: array(id), not_added: array(id) }),
1043
- strictObject({ ...operated, removed: array(id) })
1044
- ]);
1045
- var chatInvite = strictObject({ chat_id: id, title: nullable(text), link: text });
1046
- var chatInviteChange = strictObject({
1047
- ...operated,
1048
- ...omit(inviteLink, ["pending_count", "joined_count"]).entries,
1049
- pending: optional(count),
1050
- joined: optional(count)
1051
- });
1052
- var chatRequestChange = union([
1053
- strictObject({ ...operated, person_id: id, accepted: boolean(), already: boolean() }),
1054
- strictObject({ chat_id: id, accepted: boolean(), counted: count, operation_id: optional(id) })
1055
- ]);
1056
- var chatAdminChange = strictObject({
1057
- ...operated,
1058
- person_id: id,
1059
- rights: optional(array(picklist(["read", "members", "admins", "info", "pin", "link", "post", "edit", "delete"])))
1060
- });
1061
- var chatFolderChange = strictObject({
1062
- operation_id: id,
1063
- folder: omit(folder, ["chats", "pinned_chats", "excluded_chats"])
1064
- });
1065
- var chatFolderRemoval = strictObject({ operation_id: id, folder_id: id });
1066
- var chatFolderOrder = strictObject({
1067
- operation_id: id,
1068
- folders: array(strictObject({ id, title: text }))
1069
- });
1070
-
1071
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
1072
- var operated2 = { operation_id: id, chat_id: id };
1073
- var chatRemoval = strictObject(operated2);
1074
- var chatMuting = strictObject({
1075
- ...operated2,
1076
- muted_until: nullable(union([time, literal("forever")]))
1077
- });
1078
- var chatArchive = strictObject({ ...operated2, archived: boolean() });
1079
- var chatPin = strictObject({ ...operated2, pinned: boolean() });
1080
- var chatUnread = strictObject({ ...operated2, unread: literal(true) });
1081
-
1082
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
1083
- var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
1084
- var chatEvent = strictObject({
1085
- chat_id: id,
1086
- time,
1087
- /** `join`, `leave`, `add`, `remove`, `create`, `title`, `pin`, `profile`; a messenger may pass others through. */
1088
- type: text,
1089
- /** The service message that says so, where there is one. */
1090
- message_id: optional(id),
1091
- by: optional(who),
1092
- people: array(who),
1093
- /** `create` and `title` carry the chat's title. */
1094
- title: optional(text),
1095
- /** `profile`: the name and username seen before. */
1096
- before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
1097
- });
1098
-
1099
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
1100
- var chatMetadata = strictObject({
1101
- chat_id: id,
1102
- title: nullable(text),
1103
- username: nullable(text),
1104
- description: nullable(text),
1105
- fetched_at: time
1106
- });
1107
- var cachedChatMetadata = strictObject({ chat_id: id, metadata: nullable(chatMetadata) });
1108
- var failedChatMetadata = strictObject({ chat_id: id, error: strictObject({ code: text, message: text }) });
1109
- var chatMetadataRefresh = strictObject({
1110
- chats: array(union([chatMetadata, failedChatMetadata])),
1111
- has_more: boolean()
1112
- });
1113
-
1114
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
1115
- var action = picklist(["report", "delete", "remove"]);
1116
- var level = picklist(["deny", "readonly", "ask", "allow"]);
1117
- var chatRules = strictObject({
1118
- chat_id: id,
1119
- title: nullable(text),
1120
- file: text,
1121
- saved: boolean(),
1122
- rules: strictObject({
1123
- title: nullable(text),
1124
- trusted: array(id),
1125
- blocked: array(id),
1126
- blocked_names: array(text),
1127
- links: action,
1128
- invites: action,
1129
- forwards: action,
1130
- blocked_people: action,
1131
- flood: strictObject({ messages: count, minutes: count, action }),
1132
- new_account: strictObject({ days: count, action: picklist(["report", "remove"]) }),
1133
- consent: strictObject({ delete: level, remove: level })
1134
- })
1135
- });
1136
- var chatModeration = strictObject({
1137
- chat_id: id,
1138
- rows: array(strictObject({
1139
- kind: picklist(["message", "member"]),
1140
- rule: picklist(["blocked", "invites", "links", "forwards", "flood", "newAccount"]),
1141
- person_id: id,
1142
- person_name: nullable(text),
1143
- message_id: optional(id),
1144
- action,
1145
- outcome: picklist(["reported", "done", "planned", "forbidden", "declined", "refused", "failed", "skipped"]),
1146
- reason: optional(text),
1147
- command: optional(text)
1148
- }))
1149
- });
1150
-
1151
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
1152
- var optionalCount = optional(count);
1153
- var minutes = nullable(number());
1154
- var chatStats = strictObject({
1155
- chat: reference,
1156
- since: time,
1157
- until: time,
1158
- /** The store holds the chat whole and the messenger read every join and leave; otherwise lower bounds. */
1159
- complete: boolean(),
1160
- completeness: strictObject({
1161
- state: picklist(["complete", "partial", "unknown"]),
1162
- up_to_date: nullable(boolean()),
1163
- gaps: boolean(),
1164
- reaches_start: boolean(),
1165
- fetched_at: nullable(time)
1166
- }),
1167
- messages: count,
1168
- senders: count,
1169
- replies: count,
1170
- threads: count,
1171
- reactions: count,
1172
- views: optionalCount,
1173
- forwards: optionalCount,
1174
- comments: optionalCount,
1175
- top_posts: array(strictObject({
1176
- ref: reference,
1177
- timestamp: time,
1178
- reactions: count,
1179
- views: optionalCount,
1180
- forwards: optionalCount,
1181
- comments: optionalCount
1182
- })),
1183
- questions: strictObject({
1184
- asked: count,
1185
- answered: count,
1186
- median_minutes_to_answer: minutes,
1187
- answered_by: picklist(["owner", "owner-and-admins"])
1188
- }),
1189
- member_counts: optional(array(strictObject({ day: text, participants: nullable(count), listed: count, complete: boolean() }))),
1190
- /** Absent where joins and leaves were not asked, or not recorded for the chat yet (then `missing` says so). */
1191
- members: optional(strictObject({
1192
- joined: count,
1193
- left: count,
1194
- net: number(),
1195
- wrote: count,
1196
- median_minutes_to_first_message: minutes,
1197
- /** The messenger stopped reading its history before `since`: the counts are lower bounds. */
1198
- more: boolean()
1199
- })),
1200
- series: optional(array(strictObject({ key: text, messages: count, senders: count, joined: optionalCount, left: optionalCount })))
1201
- });
1202
- var taskStats = strictObject({
1203
- /** Open tasks across every row. */
1204
- open: count,
1205
- rows: array(strictObject({
1206
- chat: reference,
1207
- open: count,
1208
- oldest_open_at: nullable(time),
1209
- median_close_ms: nullable(pipe(number(), minValue(0)))
1210
- }))
1211
- });
1212
-
1213
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
1214
- var memberCount = strictObject({
1215
- day: pipe(text, isoDate()),
1216
- participants: nullable(count),
1217
- listed: count,
1218
- complete: boolean()
1219
- });
1220
- var trackedChat = strictObject({
1221
- chat_id: id,
1222
- title: nullable(text),
1223
- tracked_at: time,
1224
- last_count: nullable(memberCount)
1225
- });
1226
- var trackedChatHistory = strictObject({
1227
- chat_id: id,
1228
- tracked_at: nullable(time),
1229
- counts: array(memberCount)
1230
- });
1231
- var chatTracking = strictObject({
1232
- chat_id: id,
1233
- tracked: boolean()
1234
- });
1235
-
1236
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
1237
- var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
1238
- var contactSync = strictObject({ added: count, changed: count, known: count });
1239
- var profileFields = {
1240
- usernames: array(text),
1241
- birthday: optional(nullable(text)),
1242
- phone: optional(nullable(text)),
1243
- flags: partial(strictObject({
1244
- bot: boolean(),
1245
- verified: boolean(),
1246
- premium: boolean(),
1247
- scam: boolean(),
1248
- fake: boolean(),
1249
- restricted: boolean(),
1250
- deleted: boolean(),
1251
- support: boolean()
1252
- })),
1253
- seen: optional(text),
1254
- contact: optional(boolean()),
1255
- mutual_contact: optional(boolean()),
1256
- common_chats_count: optional(nullable(count)),
1257
- registered: optional(nullable(strictObject({
1258
- at: text,
1259
- source: picklist(["telegram", "max", "estimate"]),
1260
- precision: picklist(["day", "month"])
1261
- }))),
1262
- has_photo: optional(boolean()),
1263
- /** Earlier names and usernames, oldest first; the current ones are not repeated. */
1264
- aliases: array(strictObject({
1265
- name: optional(text),
1266
- username: optional(text),
1267
- link: optional(text),
1268
- first_seen_at: time,
1269
- last_seen_at: time,
1270
- source: picklist(["profile", "messages"])
1271
- }))
1272
- };
1273
-
1274
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/contact.js
1275
- var contact = strictObject({
1276
- ref: reference,
1277
- id,
1278
- name: nullable(text),
1279
- username: nullable(text),
1280
- alias: optional(nullable(text)),
1281
- display_name: optional(nullable(text)),
1282
- /** Whatever they wrote about themselves. */
1283
- description: nullable(text),
1284
- /** The newest message in a one-to-one chat with them. */
1285
- last_messaged_at: nullable(time),
1286
- /** For a source that knows it, such as a Zoom contact. */
1287
- email: optional(nullable(text)),
1288
- phones: optional(array(strictObject({ number: text, label: nullable(text) }))),
1289
- /** `contacts show`: the chats shared with them, and what the store holds of their messages in each. */
1290
- chats: optional(array(strictObject({
1291
- ...pick(chat, ["ref", "id", "title", "kind", "last_message_at"]).entries,
1292
- /** Their messages stored; a floor unless `complete`. */
1293
- their_messages: optional(count),
1294
- first_at: optional(nullable(time)),
1295
- last_at: optional(nullable(time)),
1296
- /** The store holds the whole chat, so the count is the real one. */
1297
- complete: optional(boolean())
1298
- }))),
1299
- /** `contacts show`: what the messenger says about them, or with `--offline` what the store saw of them. */
1300
- ...partial(strictObject(profileFields)).entries,
1301
- /** `contacts show --with-notes`: the owner's private notes about them. */
1302
- notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
1303
- });
1304
-
1305
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
1306
- var linkedIdentity = strictObject({
1307
- provider: text,
1308
- id,
1309
- name: nullable(text),
1310
- username: nullable(text),
1311
- is_bot: nullable(boolean()),
1312
- accounts: array(id),
1313
- method: text,
1314
- linked_by: text,
1315
- linked_at: time
1316
- });
1317
- var linkedPerson = strictObject({ uid: id, name: nullable(text), identities: array(linkedIdentity) });
1318
- var contactActivity = strictObject({
1319
- at: time,
1320
- subject: text,
1321
- subject_id: count,
1322
- role: text,
1323
- scope: text,
1324
- provider: nullable(text),
1325
- account: nullable(text),
1326
- chat_id: nullable(text),
1327
- locator: nullable(text),
1328
- project_id: nullable(count)
1329
- });
1330
- var botReason = picklist(Object.keys(WEIGHTS));
1331
- var contactCheck = strictObject({
1332
- person: strictObject({ id, name: nullable(text), username: nullable(text), provider: text }),
1333
- score: count,
1334
- reasons: array(strictObject({ reason: botReason, weight: count, source: text, detail: optional(text) })),
1335
- registries: array(strictObject({
1336
- name: picklist(["cas", "lols"]),
1337
- answer: picklist(["listed", "clean", "unknown"]),
1338
- checked_at: time,
1339
- detail: optional(text),
1340
- reasons: optional(array(picklist(["cas_banned", "lols_banned", "lols_scammer"])))
1341
- })),
1342
- unknown: array(botReason),
1343
- checked_at: time
1344
- });
1345
-
1346
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
1347
- var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
1348
- var contextMessage = strictObject({
1349
- locator: reference,
1350
- provider: text,
1351
- account: id,
1352
- chat_id: id,
1353
- chat_title: nullable(text),
1354
- id,
1355
- timestamp: time,
1356
- sender_id: nullable(id),
1357
- sender_name: nullable(text),
1358
- outgoing: nullable(boolean()),
1359
- text
1360
- });
1361
- var sharedChat = strictObject({
1362
- provider: text,
1363
- account: id,
1364
- chat_id: id,
1365
- title: nullable(text),
1366
- kind: chat.entries.kind,
1367
- last_message_at: nullable(time)
1368
- });
1369
- var contextEvent = strictObject({
1370
- ref: reference,
1371
- title: nullable(text),
1372
- starts_at: nullable(time),
1373
- ends_at: nullable(time),
1374
- all_day: boolean(),
1375
- location: nullable(text),
1376
- status: nullable(text)
1377
- });
1378
- var context = strictObject({
1379
- person: contextPerson,
1380
- shared: array(sharedChat),
1381
- last: strictObject({
1382
- from_them: nullable(contextMessage),
1383
- from_me: nullable(contextMessage),
1384
- from_them_anywhere: nullable(contextMessage)
1385
- }),
1386
- recent: strictObject({ direct: array(contextMessage), groups: array(contextMessage) }),
1387
- mentions: array(contextMessage),
1388
- /** Calendar events they are invited to, one occurrence per series. */
1389
- events: optional(strictObject({ upcoming: array(contextEvent), recent: array(contextEvent) })),
1390
- limits: strictObject({ messages: count, bytes: count }),
1391
- complete: boolean(),
1392
- not_read: array(strictObject({
1393
- provider: text,
1394
- account: id,
1395
- chat_id: id,
1396
- title: nullable(text),
1397
- reason: picklist(["not_fetched", "partial"])
1398
- }))
1399
- });
1400
- var shortMessage = strictObject({ at: time, text, transcript: optional(text) });
1401
- var identifiedMessage = strictObject({
1402
- ...shortMessage.entries,
1403
- id,
1404
- locator: reference,
1405
- sender_id: nullable(id),
1406
- reply_to: nullable(id)
1407
- });
1408
- var counterObservation = strictObject({
1409
- value: number(),
1410
- observed_at: time,
1411
- source: picklist(["remote_fetch", "remote_update"]),
1412
- reactions: optional(message.entries.reactions.wrapped.wrapped)
1413
- });
1414
- var { reply_addresses: mailReplyTo, ...mailFields } = message.entries.email.wrapped.entries;
1415
- var fullMessage = strictObject({
1416
- ...pick(message, [
1417
- "id",
1418
- "chat_id",
1419
- "chat_title",
1420
- "excerpt",
1421
- "sender_id",
1422
- "sender_name",
1423
- "sender_username",
1424
- "mentions",
1425
- "sender_is_chat",
1426
- "timestamp",
1427
- "edited_at",
1428
- "text",
1429
- "outgoing",
1430
- "attachments",
1431
- "reply_to",
1432
- "reply_to_id",
1433
- "forwarded_from",
1434
- "thread_id",
1435
- "thread_root_id",
1436
- "scheduled_for",
1437
- "provider_metadata",
1438
- "delivery"
1439
- ]).entries,
1440
- reactions: nullable(message.entries.reactions.wrapped.wrapped),
1441
- starred: optional(boolean()),
1442
- email: optional(strictObject({ ...mailFields, reply_to: mailReplyTo })),
1443
- counter_observations: optional(partial(strictObject({
1444
- views: counterObservation,
1445
- reactions: counterObservation,
1446
- comments: counterObservation
1447
- }))),
1448
- ...shortMessage.entries,
1449
- locator: reference
1450
- });
1451
- var contactMessages = strictObject({
1452
- person: strictObject({ uid: id, provider: text, id, name: nullable(text) }),
1453
- chats: array(strictObject({
1454
- chat: pick(chat, ["id", "title", "kind"]),
1455
- messages: array(union([shortMessage, identifiedMessage, fullMessage])),
1456
- complete: boolean(),
1457
- more: boolean()
1458
- })),
1459
- limits: strictObject({ messages: count })
1460
- });
1461
- var contactContext = union([context, contactMessages]);
1462
- var coverage = strictObject({
1463
- included: count,
1464
- has_more: boolean(),
1465
- cut_by: nullable(picklist(["limit", "bytes"]))
1466
- });
1467
- var meetingCue = strictObject({
1468
- reference,
1469
- fingerprint: text,
1470
- transcript_id: count,
1471
- content_hash: nullable(text),
1472
- position: count,
1473
- start_ms: count,
1474
- end_ms: count,
1475
- speaker_participant_id: nullable(count),
1476
- speaker_name: nullable(text),
1477
- text,
1478
- revision: picklist(["current", "superseded"])
1479
- });
1480
- var contactPreparation = strictObject({
1481
- ...context.entries,
1482
- prepare: strictObject({
1483
- waiting: array(strictObject({
1484
- provider: text,
1485
- account: id,
1486
- chat_id: id,
1487
- title: nullable(text),
1488
- message: contextMessage,
1489
- partial: boolean()
1490
- })),
1491
- tasks: array(strictObject({
1492
- ref: reference,
1493
- title: text,
1494
- role: text,
1495
- due_at: nullable(time),
1496
- project: reference,
1497
- source: nullable(reference),
1498
- created_at: time
1499
- })),
1500
- facts: array(strictObject({
1501
- ref: reference,
1502
- type: text,
1503
- statement: text,
1504
- subject: nullable(reference),
1505
- project: nullable(reference),
1506
- updated_at: time
1507
- })),
1508
- notes: array(strictObject({ ref: reference, title: nullable(text), text, revision: count, updated_at: time })),
1509
- meetings: array(strictObject({
1510
- reference,
1511
- cues: array(meetingCue),
1512
- cue_coverage: strictObject({ included: count, omitted: nullable(count), has_more: boolean() })
1513
- })),
1514
- limits: strictObject({ items: count, bytes: count }),
1515
- coverage: strictObject({
1516
- waiting: strictObject({
1517
- ...coverage.entries,
1518
- rule: literal("their message is the newest the store holds in a one-to-one chat")
1519
- }),
1520
- tasks: strictObject({
1521
- ...coverage.entries,
1522
- selection: literal("open, assigned to them in any role"),
1523
- accounts: array(text)
1524
- }),
1525
- facts: strictObject({
1526
- ...coverage.entries,
1527
- selection: literal("accepted, about them or a project they are a member of")
1528
- }),
1529
- notes: strictObject({
1530
- ...coverage.entries,
1531
- selection: literal("written by you, about them"),
1532
- withheld: optional(literal("contacts.notes.list"))
1533
- }),
1534
- meetings: strictObject({
1535
- ...coverage.entries,
1536
- read: literal("every account of the store that saw them"),
1537
- accounts: array(text),
1538
- pending: count
1539
- })
1540
- })
1541
- })
1542
- });
1543
-
1544
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
1545
- var contactNote = strictObject({
1546
- id,
1547
- /** The contact, as a `contact:` reference. */
1548
- contact: reference,
1549
- text,
1550
- /** Starts at 1; an edit names the revision it read. */
1551
- revision: count,
1552
- created_at: time,
1553
- updated_at: time
1554
- });
1555
-
1556
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
1557
- var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
1558
- var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
1559
- var contactStateChange = strictObject({ operation_id: id, person_id: id });
1560
- var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
1561
-
1562
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
1563
- var conversationDetails = union([
1564
- strictObject({ ...conversation.entries, messages: array(message) }),
1565
- message
1566
- ]);
1567
- var conversationBatchStatus = strictObject({
1568
- chat: id,
1569
- messages: count,
1570
- characters: count,
1571
- batches: count,
1572
- tokens_estimate: count
1573
- });
1574
- var batchMessage = strictObject({
1575
- id,
1576
- at: time,
1577
- sender: strictObject({ id: nullable(id), name: nullable(text) }),
1578
- text,
1579
- reply_to: optional(id),
1580
- thread: optional(id),
1581
- mentions: optional(array(id)),
1582
- answer: boolean(),
1583
- candidates: optional(array(strictObject({ parent: nullable(id), source: text, kind: text, confidence: number() })))
1584
- });
1585
- var conversationBatch = union([
1586
- strictObject({ batch: null_() }),
1587
- strictObject({
1588
- batch: id,
1589
- chat: id,
1590
- messages: array(batchMessage),
1591
- remaining: strictObject({ messages: count, characters: count })
1592
- })
1593
- ]);
1594
- var analyzedConversation = strictObject({
1595
- chat: id,
1596
- model: text,
1597
- batches: count,
1598
- stored: count,
1599
- tokens: count,
1600
- reserved_tokens: count,
1601
- max_tokens: count,
1602
- stopped: picklist(["complete", "budget"]),
1603
- remaining: conversationBatchStatus,
1604
- built: optional(conversationBuild)
1605
- });
1606
- var conversationBuildResult = union([conversationBuild, conversationPreparation, analyzedConversation]);
1607
- var conversationEmbedding = union([chatEmbedding, conversationPreparation]);
1608
- var conversationChange = union([
1609
- strictObject({ chat: id, stored: count }),
1610
- strictObject({ chat: id, cleared: count })
1611
- ]);
1612
- var conversationReadiness = strictObject({
1613
- chat: id,
1614
- model: text,
1615
- state: picklist(["ready", "stale", "partial", "words-only", "not-built"]),
1616
- graph: nullable(strictObject({ built_at: time, rules_version: nullable(count), outdated_rules: boolean() })),
1617
- pending: strictObject({ new: count, edited: count, deleted: count }),
1618
- vectors: strictObject({ chunks: count, current: count, stale: count, missing: count })
1619
- });
1620
- var conversationEmbeddingStatus = strictObject({
1621
- chat: id,
1622
- model: text,
1623
- chunks: count,
1624
- embedded: count,
1625
- left: count,
1626
- estimate_seconds: nullable(number()),
1627
- tokens_at_most: count,
1628
- price_at_most: optional(strictObject({ usd: number(), read: text }))
1629
- });
1630
- var summary = strictObject({
1631
- id,
1632
- chat_id: id,
1633
- first_message_id: id,
1634
- first_at: time,
1635
- last_at: time,
1636
- message_count: count,
1637
- senders: count,
1638
- built_at: time,
1639
- algorithm_version: count
1640
- });
1641
- var conversationHit = strictObject({
1642
- source: optional(strictObject({ provider: text, account: id })),
1643
- locator: optional(reference),
1644
- summary,
1645
- chunk: strictObject({ first_message_id: id, last_message_id: id }),
1646
- score: nullable(number()),
1647
- matched_in: optional(literal("context")),
1648
- by: array(picklist(["meaning", "words"])),
1649
- stale: boolean()
1650
- });
1651
-
1652
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/counters.js
1653
- var counters = strictObject({
1654
- cutoff: time,
1655
- max_age_ms: milliseconds,
1656
- /** Pins exactly these messages for `counters refresh --selection`. */
1657
- selection: strictObject({
1658
- kind: literal("counter-targets"),
1659
- version: literal(1),
1660
- locators: array(reference)
1661
- }),
1662
- rows: array(strictObject({ ref: reference, counters: array(counterReading) }))
1663
- });
1664
- var counterRefresh = strictObject({
1665
- dry_run: boolean(),
1666
- targets: array(reference),
1667
- counters: array(text),
1668
- supported: array(text),
1669
- unsupported: array(text),
1670
- max_messages: count,
1671
- time_ms: milliseconds,
1672
- results: optional(array(strictObject({
1673
- ref: reference,
1674
- updated: array(text),
1675
- missing: array(text),
1676
- status: text
1677
- }))),
1678
- stopped: optional(text),
1679
- complete: optional(boolean())
1680
- });
1681
-
1682
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/document.js
1683
- var document = strictObject({
1684
- ref: reference,
1685
- id,
1686
- title: nullable(text),
1687
- url: nullable(text),
1688
- mime: optional(text),
1689
- size: optional(count),
1690
- /** When its source last changed it. */
1691
- source_modified_at: nullable(time),
1692
- /** When the store last read it; not the source's time. */
1693
- stored_at: optional(nullable(time)),
1694
- owners: optional(array(text))
1695
- });
1696
-
1697
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/document-link.js
1698
- var documentLink = strictObject({
1699
- ref: reference,
1700
- url: text,
1701
- document_id: nullable(id),
1702
- title: nullable(text),
1703
- in_store: boolean(),
1704
- sent_at: time,
1705
- sender: strictObject({ id: nullable(id), name: nullable(text) })
1706
- });
1707
-
1708
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/evidence.js
1709
- var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
1710
- var contribution = strictObject({
1711
- message: evidenceMessage,
1712
- related: optional(evidenceMessage),
1713
- contribution: nullable(number()),
1714
- counters: optional(array(counterReading))
1715
- });
1716
- var retentionStay = strictObject({
1717
- person_ref: reference,
1718
- joined_at: time,
1719
- cohort: text,
1720
- checkpoints: array(strictObject({
1721
- checkpoint_ms: milliseconds,
1722
- target_at: time,
1723
- state: text,
1724
- observed_at: nullable(time),
1725
- lag_ms: nullable(milliseconds),
1726
- complete: boolean()
1727
- })),
1728
- activity: strictObject({
1729
- state: text,
1730
- first_message_at: nullable(time),
1731
- window_end: nullable(time),
1732
- archive_covered: boolean()
1733
- }),
1734
- departure: strictObject({ after: nullable(time), at_or_before: nullable(time), early: text })
1735
- });
1736
- var evidence = union([contribution, retentionStay]);
1737
-
1738
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/fact.js
1739
- var fact = strictObject({
1740
- ref: reference,
1741
- id,
1742
- kind: picklist(FACT_TYPES),
1743
- text,
1744
- status: picklist(FACT_STATUSES),
1745
- project: nullable(text),
1746
- /** What the project is called. */
1747
- project_name: optional(nullable(text)),
1748
- subject: nullable(reference),
1749
- /** What the subject is called; `null` for the owner and for a row with no name. */
1750
- subject_name: optional(nullable(text)),
1751
- subject_is_owner: optional(boolean()),
1752
- occurred_at: nullable(time),
1753
- supersedes: nullable(reference),
1754
- author,
1755
- model: nullable(text),
1756
- /** Who accepted it; `null` while it is proposed. */
1757
- confirmed_by: optional(nullable(strictObject({ type: picklist(["person", "bot"]), id }))),
1758
- scope: nullable(picklist(MEMORY_SCOPES)),
1759
- /** Who recorded it: the owner, or an agent whose fact waits as proposed. */
1760
- origin: picklist(["owner", "agent"]),
1761
- evidence: array(reference),
1762
- /** With `--sources`: each piece of evidence read back. */
1763
- sources: optional(array(evidenceSource)),
1764
- created_at: time,
1765
- updated_at: time
1766
- });
1767
-
1768
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/hit.js
1769
- var hit = strictObject({
1770
- kind: picklist(["message", "mail", "note", "document", "event", "meeting"]),
1771
- ref: reference,
1772
- provider: text,
1773
- url: optional(text),
1774
- /** The account it was found in; a note's folder id, or `internal` for a note written in memo. */
1775
- account: text,
1776
- /** The chat, the mail thread's subject, the note's, the event's or the meeting's title. */
1777
- title: nullable(text),
1778
- /** Null for a meeting whose start is unknown. */
1779
- timestamp: nullable(time),
1780
- excerpt: text,
1781
- sender_name: optional(nullable(text)),
1782
- /** A message's or a mail's: whether the owner wrote it. */
1783
- sender_is_me: optional(boolean()),
1784
- /** The writer's `person:` reference, where the store has one. */
1785
- sender_ref: optional(nullable(reference)),
1786
- found_by: optional(array(picklist(["title", "words", "meaning"]))),
1787
- /** How far into the meeting the passage is. */
1788
- offset_ms: optional(nullable(count)),
1789
- /** A meeting passage's place: its transcript, chat or summary. */
1790
- scope: optional(picklist(["transcript", "chat", "summary"])),
1791
- /** A meeting passage's stored line, so two passages of one meeting stay apart; `search meetings` gives the same. */
1792
- id: optional(pipe(string(), minLength(1))),
1793
- /** Absent on a note hit: the owner wrote it. */
1794
- untrusted
1795
- });
1796
-
1797
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/identity.js
1798
- var identity = strictObject({
1799
- ref: reference,
1800
- provider: text,
1801
- account: text,
1802
- /** The messenger's own id for them. */
1803
- id,
1804
- name: nullable(text),
1805
- username: nullable(text),
1806
- /** The `person:` they are linked to, when one is. */
1807
- person: optional(nullable(reference))
1808
- });
1809
-
1810
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
1811
- var imageEmbedding = strictObject({
1812
- model: text,
1813
- embedded: count,
1814
- skipped: count,
1815
- failed: count,
1816
- more: boolean()
1817
- });
1818
-
1819
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/join-request.js
1820
- var joinRequest = strictObject({
1821
- person_id: id,
1822
- name: nullable(text),
1823
- username: nullable(text),
1824
- /** `null` where the messenger does not say. */
1825
- requested_at: nullable(time),
1826
- /** The note they sent with the request. */
1827
- about: optional(text)
1828
- });
1829
-
1830
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
1831
- var pollVote = strictObject({
1832
- person_id: id,
1833
- name: nullable(text),
1834
- username: nullable(text),
1835
- /** Answer ids, as `polls show` prints them. */
1836
- answers: array(id),
1837
- voted_at: time
1838
- });
1839
-
1840
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/listener.js
1841
- var reactions = unwrap(unwrap(message.entries.reactions));
1842
- var observation = strictObject({
1843
- value: pipe(number(), minValue(0)),
1844
- observed_at: time,
1845
- source: picklist(["remote_fetch", "remote_update"]),
1846
- reactions: optional(reactions)
1847
- });
1848
- var watchedMessage = strictObject({
1849
- ...message.entries,
1850
- starred: optional(boolean()),
1851
- counter_observations: optional(partial(strictObject({ views: observation, reactions: observation, comments: observation })))
1852
- });
1853
- var target = { chat_id: id, chat_title: nullable(text), message_id: id };
1854
- var messageEvent = variant("event", [
1855
- strictObject({ event: picklist(["message", "edit"]), message: watchedMessage }),
1856
- strictObject({ event: literal("delete"), ...target, chat_id: nullable(id) }),
1857
- strictObject({ event: literal("reaction"), ...target, reactions, counter_observation: optional(observation) }),
1858
- strictObject({ event: literal("vote"), ...target, vote: pollVote }),
1859
- strictObject({
1860
- event: literal("person_reaction"),
1861
- ...target,
1862
- reaction: strictObject({ person: member, own: boolean(), reaction: nullable(text), reacted_at: time })
1863
- }),
1864
- strictObject({ event: literal("star"), ...target, starred: boolean() }),
1865
- strictObject({ event: literal("delivery"), ...target, delivery: unwrap(message.entries.delivery), at: time }),
1866
- strictObject({ event: literal("chat_event"), chat_id: id, chat_title: nullable(text), change: chatEvent })
1867
- ]);
1868
- var watchItem = union([watchedMessage, messageEvent]);
1869
- var totals = record(text, count);
1870
- var serveSummary = strictObject({
1871
- profile: text,
1872
- started_at: time,
1873
- stopped_at: time,
1874
- kept: totals,
1875
- replies: optional(strictObject({ sent: totals, skipped: totals, tasks: optional(totals) })),
1876
- members: optional(strictObject({ fetched: count, failed: count })),
1877
- stems: optional(strictObject({ stemmed: count })),
1878
- tasks: optional(strictObject({ added: count, closed: count, review: count }))
1879
- });
1880
-
1881
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
1882
- var mediaArchive = strictObject({
1883
- directory: text,
1884
- chats: count,
1885
- saved: count,
1886
- existing: count,
1887
- complete: boolean()
1888
- });
1889
- var mediaArchiveCheck = strictObject({
1890
- valid: boolean(),
1891
- checked: count,
1892
- files: array(strictObject({ path: text, valid: boolean(), archive_directory: optional(text) }))
1893
- });
1894
- var mediaArchiveMove = strictObject({
1895
- directory: text,
1896
- archive_directory: text,
1897
- before_time: time,
1898
- selected: count,
1899
- selected_bytes: count,
1900
- moved: count,
1901
- moved_bytes: count,
1902
- already_archived: count,
1903
- undated: count,
1904
- complete: boolean(),
1905
- dry_run: boolean()
1906
- });
1907
- var timer = { name: text, installed: boolean(), service_path: text, timer_path: text };
1908
- var mediaArchiveTimer = union([
1909
- strictObject({ ...timer, active: boolean() }),
1910
- strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
1911
- ]);
1912
-
1913
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
1914
- var preparationId = pipe(string(), minLength(1));
1915
- var preparationCount = pipe(number(), integer(), minValue(0));
1916
- var preparationTime = nullable(isoTime);
1917
- var text2 = nullable(string());
1918
- var id2 = preparationId;
1919
- var count2 = preparationCount;
1920
- var page = /* @__PURE__ */ __name((item) => strictObject({ items: array(item), has_more: boolean() }), "page");
1921
- var preparationUpcoming = strictObject({
1922
- scope: strictObject({ provider: id2, account: id2 }),
1923
- meeting_id: id2,
1924
- kind: picklist(["single", "recurring", "unscheduled", "unknown"]),
1925
- after: isoTime,
1926
- until: isoTime,
1927
- timezone: text2,
1928
- verified_next: boolean(),
1929
- candidate: nullable(strictObject({
1930
- id: text2,
1931
- start_at: preparationTime,
1932
- end_at: preparationTime,
1933
- status: picklist(["scheduled", "cancelled"]),
1934
- verified: boolean()
1935
- })),
1936
- coverage: strictObject({
1937
- schedule_complete: boolean(),
1938
- inspected: count2,
1939
- undated: count2,
1940
- unverified: count2,
1941
- cancelled: count2,
1942
- simultaneous: count2,
1943
- missing: array(picklist(["schedule-details", "occurrence-details"]))
1944
- })
1945
- });
1946
- var preparationCue = strictObject({
1947
- ref: reference,
1948
- fingerprint: id2,
1949
- transcript_id: id2,
1950
- content_hash: text2,
1951
- position: count2,
1952
- offset_ms: count2,
1953
- end_ms: count2,
1954
- speaker_participant_id: nullable(id2),
1955
- speaker_name: text2,
1956
- text: string(),
1957
- revision: picklist(["current", "superseded"])
1958
- });
1959
- var preparationEvidence = strictObject({
1960
- schema_version: literal(1),
1961
- kind: literal("meeting"),
1962
- source: reference,
1963
- fingerprint: id2,
1964
- limits: strictObject({ cues: count2, bytes: count2, max_read_bytes: count2, max_transcript_pages: count2 }),
1965
- content_bytes: count2,
1966
- coverage: strictObject({
1967
- provided: count2,
1968
- included: count2,
1969
- omitted: nullable(count2),
1970
- provided_exact: boolean(),
1971
- next_transcript_id: nullable(id2),
1972
- next_reference: nullable(reference),
1973
- transcript_pages: count2,
1974
- skipped_unavailable: count2,
1975
- has_more: boolean(),
1976
- truncated_by: nullable(picklist(["cues", "bytes", "transcripts"])),
1977
- input: literal("bounded-meeting-pages"),
1978
- archive_completeness: literal("unknown")
1979
- }),
1980
- items: array(preparationCue)
1981
- });
1982
- var preparationContext = strictObject({
1983
- participants: page(strictObject({ id: id2, identity_id: id2, display_name: text2, person_uid: nullable(id2) })),
1984
- projects: page(strictObject({ ref: reference, key: id2, name: string(), link_id: id2 })),
1985
- facts: page(strictObject({ ref: reference, type: id2, statement: string(), updated_at: isoTime })),
1986
- tasks: page(strictObject({
1987
- ref: reference,
1988
- key: id2,
1989
- title: string(),
1990
- status: id2,
1991
- priority: nullable(count2),
1992
- source: nullable(reference)
1993
- }))
1994
- });
1995
- var preparationMeeting = strictObject({
1996
- id: id2,
1997
- external_id: id2,
1998
- title: text2,
1999
- event_id: nullable(id2),
2000
- started_at: preparationTime,
2001
- ended_at: preparationTime,
2002
- updated_at: isoTime
2003
- });
2004
-
2005
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
2006
- var meetingEvidence = preparationEvidence;
2007
- var meetingPersonContext = strictObject({
2008
- person: strictObject({ uid: string(), name: nullable(string()) }),
2009
- items: array(strictObject({
2010
- ref: reference,
2011
- cues: array(preparationCue),
2012
- cue_coverage: strictObject({ included: preparationCount, omitted: nullable(preparationCount), has_more: boolean() })
2013
- })),
2014
- limits: strictObject({ meetings: preparationCount, cues: preparationCount, bytes: preparationCount, scan_limit: preparationCount }),
2015
- content_bytes: preparationCount,
2016
- coverage: strictObject({
2017
- involvements_scanned: preparationCount,
2018
- scan_limit_reached: boolean(),
2019
- pending: preparationCount,
2020
- truncated_by: nullable(picklist(["meetings", "bytes"])),
2021
- skipped_unavailable: preparationCount,
2022
- complete: literal(false),
2023
- input: literal("bounded-meeting-pages")
2024
- })
2025
- });
2026
-
2027
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
2028
- var evidence2 = strictObject({ reference, fingerprint: text });
2029
- var base = { id, project: reference, evidence: array(evidence2) };
2030
- var finding = variant("kind", [
2031
- strictObject({ ...base, kind: literal("fact"), type: picklist(FACT_TYPES), statement: text }),
2032
- strictObject({
2033
- ...base,
2034
- kind: literal("task"),
2035
- type: picklist(WORK_TASK_TYPES),
2036
- title: text,
2037
- reason: text,
2038
- commitment: picklist(["explicit", "inferred"]),
2039
- due_at: optional(time),
2040
- due_evidence: optional(array(reference)),
2041
- assignee: optional(reference),
2042
- assignee_evidence: optional(array(reference))
2043
- })
2044
- ]);
2045
- var outcome = strictObject({
2046
- id,
2047
- fingerprint: text,
2048
- status: picklist(["accepted", "rejected"]),
2049
- reference: nullable(reference),
2050
- reused: boolean()
2051
- });
2052
- var meetingFindings = strictObject({
2053
- id,
2054
- account: strictObject({ provider: text, account: text }),
2055
- input: strictObject({ schema_version: literal(1), key: text, extractor: text, findings: array(finding) }),
2056
- fingerprint: text,
2057
- status: picklist(["proposed", "reviewed"]),
2058
- author,
2059
- decided_by: nullable(strictObject({ type: picklist(["person", "bot"]), id })),
2060
- decided_at: nullable(time),
2061
- previous: array(outcome),
2062
- receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome) }))
2063
- });
2064
-
2065
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
2066
- var communicationCoverage = strictObject({
2067
- read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
2068
- query: string(),
2069
- window: strictObject({ after: isoTime, before: isoTime }),
2070
- selection: literal("explicit-host-grants/literal-words"),
2071
- sources: array(strictObject({
2072
- selection_id: preparationId,
2073
- source: strictObject({
2074
- kind: picklist(["message", "mail", "document"]),
2075
- account_id: preparationId,
2076
- provider: preparationId,
2077
- account: preparationId
2078
- }),
2079
- state: picklist(["searched", "unavailable", "read-limited"]),
2080
- index: picklist(["ready", "pending", "missing", "unknown"]),
2081
- has_more: boolean(),
2082
- has_undated: boolean(),
2083
- completeness: literal("unknown"),
2084
- consistency: literal("snapshot-per-page"),
2085
- next_cursor: nullable(string()),
2086
- restart_required: boolean(),
2087
- output_limited: boolean(),
2088
- read_bytes: nullable(preparationCount),
2089
- issue: nullable(picklist(["not_found", "validation_error", "configuration_error"]))
2090
- }))
2091
- });
2092
- var preparationCommunications = strictObject({
2093
- coverage: communicationCoverage,
2094
- items: array(strictObject({
2095
- selection_id: preparationId,
2096
- ref: reference,
2097
- provider: preparationId,
2098
- account: preparationId,
2099
- title: nullable(string()),
2100
- url: nullable(string()),
2101
- text: string(),
2102
- at: isoTime,
2103
- updated_at: isoTime,
2104
- revision: nullable(pipe(number(), safeInteger(), minValue(1))),
2105
- time_kind: picklist(["sent", "source-modified", "stored-update"]),
2106
- text_truncated: boolean()
2107
- }))
2108
- });
2109
-
2110
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
2111
- var meetingPreparation = strictObject({
2112
- communications: optional(preparationCommunications),
2113
- schema_version: literal(1),
2114
- kind: literal("meeting_preparation"),
2115
- account_id: preparationId,
2116
- upcoming: preparationUpcoming,
2117
- series: nullable(strictObject({
2118
- id: preparationId,
2119
- external_id: preparationId,
2120
- title: nullable(string()),
2121
- event_series_id: nullable(preparationId),
2122
- updated_at: isoTime
2123
- })),
2124
- history_window: strictObject({ after: isoTime, before: isoTime }),
2125
- meetings: array(strictObject({
2126
- ref: reference,
2127
- meeting: preparationMeeting,
2128
- evidence: preparationEvidence,
2129
- context: preparationContext
2130
- })),
2131
- related: strictObject({
2132
- anchors: array(reference),
2133
- items: array(strictObject({
2134
- ref: reference,
2135
- meeting: preparationMeeting,
2136
- evidence: preparationEvidence,
2137
- shared_person: boolean(),
2138
- shared_project: boolean()
2139
- })),
2140
- has_more: boolean(),
2141
- output_limited: boolean(),
2142
- selection: literal("explicit-person-links/confirmed-project-links")
2143
- }),
2144
- knowledge: optional(strictObject({
2145
- anchors: array(reference),
2146
- items: array(strictObject({
2147
- ref: reference,
2148
- type: picklist(["fact", "statement", "question", "decision", "promise"]),
2149
- statement: string(),
2150
- subject: nullable(reference),
2151
- project: nullable(reference),
2152
- updated_at: isoTime,
2153
- shared_person: boolean(),
2154
- shared_project: boolean()
2155
- })),
2156
- selection: literal("accepted-global-person/project-facts"),
2157
- coverage: strictObject({
2158
- has_more: boolean(),
2159
- output_limited: boolean(),
2160
- fact_evidence: literal("not-revalidated"),
2161
- other_sources: picklist(["not-queried", "see-communications"])
2162
- })
2163
- })),
2164
- notes: optional(strictObject({
2165
- anchors: array(reference),
2166
- items: array(strictObject({
2167
- ref: reference,
2168
- title: nullable(string()),
2169
- text: string(),
2170
- revision: pipe(number(), safeInteger(), minValue(1)),
2171
- updated_at: isoTime,
2172
- person: nullable(reference),
2173
- project: nullable(reference),
2174
- meeting: optional(nullable(reference))
2175
- })),
2176
- selection: picklist([
2177
- "owner-written-global-person/project-notes",
2178
- "owner-written-meeting/person/project-notes"
2179
- ]),
2180
- coverage: strictObject({
2181
- has_more: boolean(),
2182
- output_limited: boolean(),
2183
- source_evidence: literal("not-revalidated"),
2184
- other_sources: picklist(["not-queried", "see-communications"])
2185
- })
2186
- })),
2187
- project_evidence: optional(strictObject({
2188
- project: string(),
2189
- query: string(),
2190
- pages: array(meetingProjectEvidence),
2191
- continuation: nullable(strictObject({
2192
- command: literal("meetings projects evidence"),
2193
- project: string(),
2194
- query: string(),
2195
- cursor: nullable(string()),
2196
- limit: preparationCount,
2197
- max_read_bytes: preparationCount
2198
- })),
2199
- coverage: strictObject({ page_limit: preparationCount, has_more: boolean(), output_limited: boolean() })
2200
- })),
2201
- limits: strictObject({ meetings: preparationCount, cues: preparationCount, context_limit: preparationCount, max_read_bytes: preparationCount, bytes: preparationCount }),
2202
- coverage: strictObject({
2203
- archive_completeness: literal("unknown"),
2204
- consistency: literal("live-reads"),
2205
- history_has_more: boolean(),
2206
- has_undated: boolean(),
2207
- skipped_unavailable: array(reference),
2208
- output_limited: boolean(),
2209
- context: literal("observed-participants/confirmed-projects/accepted-meeting-subject-facts/direct-source-tasks"),
2210
- fact_evidence: literal("not-revalidated"),
2211
- unqueried: array(picklist([
2212
- "person-history",
2213
- "project-wide-context",
2214
- "person-nonmeeting-context",
2215
- "project-nonmeeting-context",
2216
- "project-alias-candidates",
2217
- "other-person-nonmeeting-context",
2218
- "other-project-nonmeeting-context"
2219
- ]))
2220
- })
2221
- });
2222
-
2223
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
2224
- var count3 = pipe(number(), integer(), minValue(0));
2225
- var id3 = pipe(string(), minLength(1));
2226
- var text3 = string();
2227
- var meetingProjectCandidates = strictObject({
2228
- schema_version: literal(1),
2229
- kind: literal("meeting_project_candidates"),
2230
- source: strictObject({ provider: text3, account: text3, account_id: id3, ref: reference }),
2231
- input_fingerprint: id3,
2232
- vocabulary_fingerprint: id3,
2233
- association: literal("unconfirmed-literal-evidence"),
2234
- items: array(strictObject({
2235
- project: strictObject({ ref: reference, id: id3, name: text3, key: nullable(text3) }),
2236
- matches: array(strictObject({
2237
- term: strictObject({
2238
- name: text3,
2239
- kind: picklist(["canonical", "key", "alias"]),
2240
- alias_id: optional(id3)
2241
- }),
2242
- ambiguous: boolean(),
2243
- source: strictObject({
2244
- kind: picklist(["metadata-title", "transcript"]),
2245
- ref: reference,
2246
- fingerprint: nullable(id3),
2247
- revision: nullable(picklist(["current", "superseded"]))
2248
- })
2249
- })),
2250
- omitted_matches: count3
2251
- })),
2252
- limits: strictObject({ limit: count3, max_projects: count3, max_vocabulary_read_bytes: count3, bytes: count3 }),
2253
- coverage: strictObject({
2254
- selection: literal("explicit-host-evidence/global-project-vocabulary"),
2255
- source_evidence: literal("not-revalidated"),
2256
- association: literal("unconfirmed-literal-evidence"),
2257
- archive_completeness: literal("unknown"),
2258
- omitted_matches: count3,
2259
- candidates_total: count3,
2260
- has_more: boolean(),
2261
- output_limited: boolean(),
2262
- matching: literal("unicode-normalized-literal-word-boundaries")
2263
- }),
2264
- evidence: strictObject({
2265
- fingerprint: id3,
2266
- limits: strictObject({ cues: count3, bytes: count3, max_read_bytes: count3, max_transcript_pages: count3 }),
2267
- coverage: strictObject({
2268
- provided: count3,
2269
- included: count3,
2270
- omitted: nullable(count3),
2271
- provided_exact: boolean(),
2272
- next_cursor: nullable(reference),
2273
- next_transcript_id: nullable(id3),
2274
- next_reference: nullable(reference),
2275
- transcript_pages: count3,
2276
- skipped_unavailable: count3,
2277
- has_more: boolean(),
2278
- truncated_by: nullable(picklist(["cues", "bytes", "transcripts"])),
2279
- input: literal("bounded-meeting-pages"),
2280
- archive_completeness: literal("unknown")
2281
- }),
2282
- consistency: literal("live-reads"),
2283
- max_store_calls: literal(8)
2284
- })
2285
- });
2286
-
2287
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
2288
- var count4 = pipe(number(), integer(), minValue(0));
2289
- var id4 = pipe(string(), minLength(1), maxLength(1e3));
2290
- var meetingSeriesInventory = strictObject({
2291
- schema_version: literal(1),
2292
- kind: literal("meeting_series_inventory"),
2293
- scope: strictObject({ provider: id4, account: id4 }),
2294
- after: isoTime,
2295
- until: isoTime,
2296
- items: array(strictObject({
2297
- meeting_id: id4,
2298
- title: nullable(pipe(string(), maxLength(8192))),
2299
- kind: picklist(["single", "recurring", "unscheduled", "unknown"]),
2300
- scheduled_start_at: nullable(isoTime)
2301
- })),
2302
- page: pageSchema,
2303
- fingerprint: pipe(string(), minLength(1), maxLength(200)),
2304
- limits: strictObject({ limit: count4, max_read_bytes: count4, bytes: count4 }),
2305
- coverage: strictObject({
2306
- selection: picklist(["provider-window", "provider-inventory"]),
2307
- source_partial: boolean(),
2308
- has_more: boolean(),
2309
- undated: count4,
2310
- date_hints_outside_window: count4,
2311
- calendar_completeness: literal("unknown"),
2312
- occurrence_proof: literal("not-read"),
2313
- consistency: literal("live-provider-pages")
2314
- })
2315
- });
2316
-
2317
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
2318
- var text4 = string();
2319
- var id5 = pipe(number(), integer(), minValue(1));
2320
- var revision = picklist(["current", "superseded"]);
2321
- var meetingTaskProposal = strictObject({
2322
- id: text4,
2323
- source: reference,
2324
- source_kind: literal("meeting"),
2325
- group: reference,
2326
- account_id: id5,
2327
- kind: picklist(TASK_KINDS),
2328
- preview: nullable(text4),
2329
- revision: nullable(revision),
2330
- applied: literal(false),
2331
- persistence: literal("proposal-only")
2332
- });
2333
-
2334
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/memory.js
2335
- var memory = strictObject({
2336
- ref: reference,
2337
- id,
2338
- kind: picklist(MEMORY_KINDS),
2339
- text,
2340
- subject: nullable(reference),
2341
- /** What the subject is called; `null` for the owner and for a row with no name. */
2342
- subject_name: optional(nullable(text)),
2343
- subject_is_owner: optional(boolean()),
2344
- /** The project it belongs to, and what that project is called. */
2345
- project: optional(nullable(reference)),
2346
- project_name: optional(nullable(text)),
2347
- author,
2348
- model: nullable(text),
2349
- confidence: nullable(number()),
2350
- status: picklist(MEMORY_STATUSES),
2351
- scope: picklist(MEMORY_SCOPES),
2352
- supersedes: nullable(reference),
2353
- evidence: array(reference),
2354
- /** With `--sources`: each piece of evidence read back. */
2355
- sources: optional(array(evidenceSource)),
2356
- last_verified_at: nullable(time),
2357
- created_at: time,
2358
- updated_at: time
2359
- });
2360
-
2361
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/mention.js
2362
- var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
2363
- var status = picklist(["found", "linked", "dismissed"]);
2364
- var mention = strictObject({
2365
- id: count,
2366
- kind,
2367
- value: text,
2368
- domain: nullable(text),
2369
- confidence: number(),
2370
- status,
2371
- field: text,
2372
- author: nullable(text),
2373
- target: nullable(reference),
2374
- sent_at: time,
2375
- found_at: time,
2376
- written: text,
2377
- locator: reference
2378
- });
2379
- var mentionDetails = strictObject({
2380
- ...mention.entries,
2381
- before: text,
2382
- after: text,
2383
- same_value: count,
2384
- candidates: array(reference)
2385
- });
2386
- var mentionDomain = strictObject({ domain: text, links: count, chats: count, first_at: time, last_at: time });
2387
- var place = strictObject({ id: count, address: text, mentions: count });
2388
- var mentionDecision = strictObject({
2389
- kind,
2390
- value: text,
2391
- status,
2392
- target: nullable(reference),
2393
- mentions: count
2394
- });
2395
- var mentionRebuild = strictObject({
2396
- messages: count,
2397
- attachments: count,
2398
- documents: count,
2399
- notes: count,
2400
- emails: count,
2401
- mentions: count
2402
- });
2403
-
2404
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/message-change.js
2405
- var operated3 = { operation_id: id, chat_id: id };
2406
- var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
2407
- var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
2408
- var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
2409
-
2410
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/message-read.js
2411
- var messageTranscript = strictObject({
2412
- message_id: id,
2413
- text,
2414
- pending: boolean(),
2415
- via: text,
2416
- model: optional(text)
2417
- });
2418
- var conversationLink = strictObject({
2419
- parent_id: nullable(id),
2420
- source: picklist(["provider", "rule", "agent"]),
2421
- kind: text,
2422
- confidence: number(),
2423
- method: text,
2424
- version: nullable(text),
2425
- created_at: time,
2426
- stale: boolean(),
2427
- chosen: boolean()
2428
- });
2429
- var messageLinks = strictObject({
2430
- chat: id,
2431
- message: id,
2432
- links: array(conversationLink),
2433
- chain: array(id)
2434
- });
2435
- var fingerprint2 = pipe(text, regex(/^[a-f0-9]{64}$/));
2436
- var evidencePacket = strictObject({
2437
- schema_version: literal(1),
2438
- id,
2439
- kind: picklist(["chats", "news", "person"]),
2440
- source: strictObject({ provider: text, account: id, chat: id }),
2441
- fingerprint: fingerprint2,
2442
- limits: strictObject({ messages: count, bytes: count }),
2443
- content_bytes: count,
2444
- coverage: strictObject({
2445
- provided: count,
2446
- included: count,
2447
- omitted: count,
2448
- has_more: boolean(),
2449
- history: literal("unknown"),
2450
- truncated_by: nullable(picklist(["messages", "bytes"]))
2451
- }),
2452
- items: array(strictObject({
2453
- locator: reference,
2454
- fingerprint: fingerprint2,
2455
- timestamp: time,
2456
- edited_at: nullable(time),
2457
- sender_id: nullable(id),
2458
- sender_name: nullable(text),
2459
- sender_is_chat: boolean(),
2460
- outgoing: nullable(boolean()),
2461
- text,
2462
- reply_to: nullable(reference),
2463
- thread_id: nullable(id),
2464
- attachment_kinds: array(text)
2465
- }))
2466
- });
2467
-
2468
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/message-context.js
2469
- var messageThread = strictObject({
2470
- ref: reference,
2471
- chat: id,
2472
- message: id,
2473
- mode: picklist(["thread", "time"]),
2474
- fallback: optional(picklist(["not_built", "not_stored", "not_linked"])),
2475
- items: array(message),
2476
- links: array(strictObject({ ...conversationLink.entries, message_id: id })),
2477
- chain: array(id),
2478
- stale: boolean(),
2479
- built_at: nullable(time),
2480
- stopped: array(picklist(["hops", "messages", "bytes", "time", "links", "cycle", "aborted", "thread"])),
2481
- bounds: strictObject({ max_hops: count, max_messages: count, max_bytes: count, within_ms: count })
2482
- });
2483
- var messageContext = union([message, messageThread]);
2484
-
2485
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
2486
- var messageCounts = strictObject({
2487
- by: picklist(["chat", "sender", "day", "hour"]),
2488
- total: count,
2489
- rows: array(strictObject({
2490
- /** The chat or sender id, or the calendar day or hour. */
2491
- key: text,
2492
- ref: optional(reference),
2493
- name: nullable(text),
2494
- count
2495
- }))
2496
- });
2497
-
2498
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/message-link.js
2499
- var messageLink = strictObject({
2500
- ref: reference,
2501
- url: nullable(text),
2502
- access: picklist(["public", "restricted", "unknown", "unavailable"]),
2503
- /** Why there is no link. */
2504
- reason: nullable(picklist(["unsupported_chat", "unsupported_provider", "offline"]))
2505
- });
2506
-
2507
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/message-write.js
2508
- var messageWrite = strictObject({
2509
- operation_id: id,
2510
- message,
2511
- /** An album's messages, in order; `message` is the first. Absent for a single message. */
2512
- messages: optional(array(message)),
2513
- scheduled_for: optional(time)
2514
- });
2515
- var draftWrite = strictObject({
2516
- operation_id: id,
2517
- chat_id: id,
2518
- saved: literal(true)
2519
- });
2520
- var messageSend = union([messageWrite, draftWrite]);
2521
-
2522
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/model.js
2523
- var model = strictObject({
2524
- id,
2525
- kind: picklist(["audio", "text", "image", "reranker"]),
2526
- title: text,
2527
- /** Which languages it reads, in words. */
2528
- languages: text,
2529
- licence: optional(text),
2530
- /** What its files take on disk once downloaded. */
2531
- size_bytes: count,
2532
- downloaded: boolean(),
2533
- /** The one used when no model is named. */
2534
- default: boolean(),
2535
- /** The folder its files are in once downloaded, so an agent can place them by hand. */
2536
- path: text
2537
- });
2538
-
2539
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/model-key.js
2540
- var source = picklist(["environment", "keyring", "file"]);
2541
- var modelKey = strictObject({
2542
- provider: text,
2543
- stored: optional(source),
2544
- removed: optional(array(source))
2545
- });
2546
- var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
2547
- var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
2548
-
2549
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
2550
- var versus = strictObject({ current: number(), previous: number() });
2551
- var person = { person_ref: reference, name: nullable(text) };
2552
- var graph = strictObject({
2553
- kind: text,
2554
- x: strictObject({ type: picklist(["date", "time", "number"]), values: array(union([text, number()])) }),
2555
- series: array(strictObject({ key: text, name: text, kind: text, values: array(number()) })),
2556
- stacked: optional(boolean()),
2557
- percentage: optional(boolean())
2558
- });
2559
- var officialStats = strictObject({
2560
- chat_id: id,
2561
- title: text,
2562
- kind: picklist(["group", "channel"]),
2563
- since: time,
2564
- until: time,
2565
- totals: record(string(), versus),
2566
- top: optional(strictObject({
2567
- posters: array(strictObject({ ...person, messages: count, average_chars: number() })),
2568
- admins: array(strictObject({ ...person, deleted: count, removed: count, banned: count })),
2569
- inviters: array(strictObject({ ...person, invited: count }))
2570
- })),
2571
- notifications: optional(strictObject({ enabled: count, total: count })),
2572
- recent_posts: optional(array(strictObject({
2573
- kind: picklist(["message", "story"]),
2574
- id,
2575
- views: count,
2576
- forwards: count,
2577
- reactions: count
2578
- }))),
2579
- /** A graph the messenger did not give is `{ error }`; the others still answer. */
2580
- graphs: record(string(), union([graph, strictObject({ error: text })]))
2581
- });
2582
-
2583
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/person.js
2584
- var person2 = strictObject({
2585
- ref: reference,
2586
- name: nullable(text),
2587
- identities: optional(array(identity))
2588
- });
2589
-
2590
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/poll.js
2591
- var poll = strictObject({
2592
- chat_id: id,
2593
- message_id: id,
2594
- question: text,
2595
- answers: array(strictObject({ id, text, voters: nullable(count), chosen: boolean() })),
2596
- closed: boolean(),
2597
- multiple: boolean(),
2598
- anonymous: boolean(),
2599
- voters: nullable(count),
2600
- quiz: optional(boolean()),
2601
- revote: optional(boolean()),
2602
- creator: optional(boolean())
2603
- });
2604
- var pollChange = strictObject({ operation_id: id, poll });
2605
-
2606
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
2607
- var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
2608
- var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
2609
-
2610
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/ranking.js
2611
- var figures = record(string(), number());
2612
- var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
2613
- var rankingRow = strictObject({
2614
- rank: count,
2615
- /** The message's locator, or the author's `contact:` reference. */
2616
- ref: reference,
2617
- /** The message or person id, as `stats * evidence` takes it. */
2618
- id,
2619
- chat_ref: optional(reference),
2620
- name: nullable(text),
2621
- /** A message's kind (`posts`, `comments`); null for authors. */
2622
- kind: nullable(text),
2623
- value: number(),
2624
- components: record(string(), nullable(number())),
2625
- messages: count,
2626
- known_reactions: count,
2627
- unknown_reactions: count,
2628
- reactions: optional(array(strictObject({ reaction: string(), count }))),
2629
- score: nullable(strictObject({ score: number(), normalized: figures, contributions: figures })),
2630
- quality: strictObject({
2631
- reactions: picklist(["known", "partial", "unknown"]),
2632
- graph: picklist(["complete", "partial", "not_used"]),
2633
- counter_freshness: freshness
2634
- }),
2635
- counters: optional(array(counterReading)),
2636
- selection
2637
- });
2638
- var ranking = strictObject({
2639
- target: picklist(["messages", "contacts"]),
2640
- measure: text,
2641
- order: picklist(["ascending", "descending"]),
2642
- preset: nullable(text),
2643
- weights: nullable(figures),
2644
- min_messages: count,
2645
- message_kind: text,
2646
- /** Messages the query selected. */
2647
- total: count,
2648
- population: count,
2649
- eligible: count,
2650
- excluded: strictObject({ minimum: count, missing: count, unknown_sender: count, unknown_kind: count }),
2651
- maxima: figures,
2652
- counter_freshness: freshness,
2653
- expanded_discussion_chats: optional(array(text)),
2654
- rows: array(rankingRow)
2655
- });
2656
-
2657
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/reaction.js
2658
- var reaction = strictObject({
2659
- person: strictObject({ id, name: nullable(text), username: nullable(text) }),
2660
- /** The emoji, or `custom:<id>` for a custom one. */
2661
- reaction: text,
2662
- reacted_at: time
2663
- });
2664
-
2665
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
2666
- var reactionChange = strictObject({
2667
- operation_id: id,
2668
- chat_id: id,
2669
- message_id: id,
2670
- reaction: nullable(text)
2671
- });
2672
-
2673
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/recipient.js
2674
- var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
2675
- var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
2676
- var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
2677
- var recipientOff = strictObject({ off: boolean(), was_on: boolean() });
2678
- var recipientChange = strictObject({
2679
- ...partial(recipientAdded).entries,
2680
- ...partial(recipientRemoved).entries,
2681
- ...partial(recipientOff).entries
2682
- });
2683
-
2684
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
2685
- var events = array(record(string(), unknown()));
2686
- var recordedRun = strictObject({
2687
- run_id: id,
2688
- command: text,
2689
- profile: optional(text),
2690
- started_at: time,
2691
- completed_at: optional(time),
2692
- status: picklist(["success", "failed", "partial", "running"]),
2693
- requests: optional(count),
2694
- duration_ms: optional(count),
2695
- cli_version: text,
2696
- runtime: optional(text),
2697
- platform: optional(text),
2698
- arch: optional(text),
2699
- error_code: optional(text),
2700
- partial: optional(strictObject({
2701
- failed: count,
2702
- stop_reason: optional(text),
2703
- failures: array(strictObject({ id: text, stage: text, error_code: text, attachment: optional(count) }))
2704
- })),
2705
- provider_error: optional(text),
2706
- kept_because_failed: optional(boolean()),
2707
- operations: optional(array(text)),
2708
- codes: optional(array(text)),
2709
- trace_id: optional(id),
2710
- cli_command: optional(text),
2711
- argv: optional(array(text)),
2712
- unknown_command: optional(text),
2713
- agent: optional(strictObject({
2714
- kind: text,
2715
- session_id: nullable(text),
2716
- from_chat: optional(literal(true)),
2717
- client: optional(strictObject({ name: text, version: optional(text), id: optional(text) }))
2718
- })),
2719
- via: optional(picklist(["cli", "mcp-stdio", "mcp-http", "desktop"])),
2720
- mcp: optional(strictObject({
2721
- tool: text,
2722
- request_id: optional(text),
2723
- connection_id: optional(text),
2724
- proxied: optional(literal(true))
2725
- })),
2726
- events_dropped: optional(count),
2727
- error: optional(strictObject({
2728
- class: text,
2729
- code: optional(text),
2730
- reason: optional(text),
2731
- message: optional(text),
2732
- operation: optional(text),
2733
- http: optional(strictObject({ method: optional(text), endpoint_template: optional(text), status: optional(count) })),
2734
- provider: optional(strictObject({ key: optional(text), code: optional(number()) })),
2735
- causes: optional(array(strictObject({ class: text, message: optional(text) }))),
2736
- stack: optional(array(text))
2737
- })),
2738
- directory: optional(text),
2739
- event_count: optional(count),
2740
- events: optional(events),
2741
- events_truncated: optional(boolean())
2742
- });
2743
- var runDetails = strictObject({
2744
- ...omit(recordedRun, ["events_truncated"]).entries,
2745
- directory: text,
2746
- event_count: count,
2747
- events
2748
- });
2749
- var runHit = strictObject({
2750
- ...omit(recordedRun, ["directory", "event_count"]).entries,
2751
- events,
2752
- events_truncated: boolean()
2753
- });
2754
- var runLocation = strictObject({ path: text });
2755
-
2756
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/relationship.js
2757
- var relationship = strictObject({
2758
- id,
2759
- from: reference,
2760
- to: reference,
2761
- kind: picklist(RELATION_KINDS),
2762
- role: nullable(text),
2763
- evidence: nullable(text),
2764
- /** An agent's suggestion stays unconfirmed, and `weak`, until the owner confirms it. */
2765
- confirmed: boolean(),
2766
- provenance: nullable(text),
2767
- confidence_category: picklist(["owner-confirmed", "weak"]),
2768
- created_at: time
2769
- });
2770
-
2771
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/retention.js
2772
- var retentionCohort = strictObject({
2773
- /** The first day of the joining day or week. */
2774
- cohort: text,
2775
- stays: count,
2776
- checkpoints: array(strictObject({
2777
- age_ms: milliseconds,
2778
- eligible: count,
2779
- observable: count,
2780
- present: count,
2781
- absent: count,
2782
- unknown: count,
2783
- pending: count,
2784
- rate: nullable(number())
2785
- })),
2786
- activity: strictObject({ observed: count, no_observed: count, pending: count, archive_covered: count }),
2787
- early_departure: strictObject({ observed: count, not_observed: count, unknown: count, pending: count }),
2788
- selection
2789
- });
2790
- var retention = strictObject({
2791
- chat_ref: reference,
2792
- cutoff: time,
2793
- since: time,
2794
- until: time,
2795
- checkpoints_ms: array(milliseconds),
2796
- within_ms: milliseconds,
2797
- by: picklist(["day", "week"]),
2798
- timezone: text,
2799
- /** Cohorts found; `rows` holds the first `--limit` of them. */
2800
- total: count,
2801
- unknown_join: count,
2802
- eligible_stays: count,
2803
- quality: strictObject({
2804
- membership: text,
2805
- tolerance_ms: milliseconds,
2806
- archive: nullable(strictObject({
2807
- state: text,
2808
- up_to_date: nullable(boolean()),
2809
- gaps: boolean(),
2810
- reaches_start: boolean(),
2811
- fetched_at: nullable(time)
2812
- })),
2813
- continuous_survival: boolean(),
2814
- group_silent_rate: nullable(number())
2815
- }),
2816
- rows: array(retentionCohort)
2817
- });
2818
-
2819
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
2820
- var savedSearch = strictObject({
2821
- id,
2822
- /** `null` for a run in the history. */
2823
- name: nullable(text),
2824
- command: picklist(["search", "stats", "message-top", "author-top", "admin-statistics", "meetings-search"]),
2825
- /** The query and the options it runs with, as the command took them. */
2826
- params: record(string(), unknown()),
2827
- language: text,
2828
- version: count,
2829
- fields_version: count,
2830
- created_at: time,
2831
- last_run_at: nullable(time),
2832
- runs: count
2833
- });
2834
- var searchHistoryClear = strictObject({ cleared: count });
2835
-
2836
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
2837
- var sendAttempt = strictObject({
2838
- at: time,
2839
- profile: text,
2840
- chat_id: nullable(id),
2841
- outcome: picklist(["sent", "outcome_unknown", "refused", "failed", "reserved"]),
2842
- kind: optional(picklist(["message", "reaction", "edit", "forward", "pin", "read", "delete", "chat", "account"])),
2843
- action: optional(text),
2844
- people: optional(count),
2845
- message_id: optional(id),
2846
- key: optional(text),
2847
- count: optional(count),
2848
- for_everyone: optional(boolean()),
2849
- operation_id: optional(id),
2850
- parent_operation_id: optional(id),
2851
- reply_to: optional(id),
2852
- thread_id: optional(id),
2853
- send_as: optional(id),
2854
- result_chat_id: optional(id),
2855
- length: optional(count),
2856
- attachments: optional(array(strictObject({ kind: picklist(["photo", "file", "video", "voice", "sticker"]), bytes: count }))),
2857
- scheduled_for: optional(time),
2858
- notify: optional(boolean()),
2859
- origin: optional(text),
2860
- reservation: optional(id),
2861
- error_code: optional(text)
2862
- });
2863
-
2864
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
2865
- var absent = strictObject({ path: text, exists: literal(false) });
2866
- var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
2867
- var infoSchema = strictObject({
2868
- ...schema.entries,
2869
- reason: picklist(["missing", "older", "current", "newer", "too_new"]),
2870
- upgrade: nullable(strictObject({ version: count, min_compatible: count }))
2871
- });
2872
- var client = strictObject({ command: text, version: text, core: text, speaks: count, seen_at: time });
2873
- var wordIndex = strictObject({
2874
- watermark: count,
2875
- filled_through: count,
2876
- pending_normalization: count,
2877
- ready: boolean(),
2878
- terms_through: count,
2879
- newest: count,
2880
- terms_ready: boolean(),
2881
- built_at: nullable(time)
2882
- });
2883
- var stemIndex = strictObject({
2884
- watermark: count,
2885
- filled_through: count,
2886
- pending: count,
2887
- built: nullable(text),
2888
- wanted: text,
2889
- ready: boolean(),
2890
- cause: optional(picklist(["building", "stemmer_changed", "stemmer_unknown"])),
2891
- built_at: nullable(time)
2892
- });
2893
- var readFailure = { path: text, exists: literal(true), opens: literal(false), error: text };
2894
- var rows = partial(strictObject({
2895
- accounts: count,
2896
- chats: count,
2897
- messages: count,
2898
- emails: count,
2899
- documents: count,
2900
- meetings: count,
2901
- events: count,
2902
- attachments: count,
2903
- identities: count
2904
- }));
2905
- var perAccount = { chats: count, messages: count, emails: count, documents: count, meetings: count };
2906
- var contents = {
2907
- by_provider: optional(array(strictObject({ provider: text, accounts: count, ...perAccount }))),
2908
- by_chat_kind: optional(array(strictObject({ provider: text, kind: text, chats: count, messages: count }))),
2909
- /** `name` is the one `account list` shows; the messenger's own id for the account is left out. */
2910
- by_account: optional(array(strictObject({ provider: text, account_id: count, name: nullable(text), ...perAccount }))),
2911
- /** Calendar years in UTC. */
2912
- by_year: optional(array(strictObject({ provider: text, year: count, messages: count }))),
2913
- /** `type` is what the file is attached to: a message, an email, a document… `bytes` counts the sizes known. */
2914
- by_attachment_kind: optional(array(strictObject({ type: text, kind: text, count, bytes: count })))
2915
- };
2916
- var storeInfo = union([
2917
- strictObject({ ...absent.entries, schema: infoSchema }),
2918
- strictObject({ ...readFailure, schema: strictObject({ speaks: count }) }),
2919
- strictObject({
2920
- path: text,
2921
- exists: literal(true),
2922
- bytes: strictObject({ file: count, wal: count }),
2923
- journal_mode: text,
2924
- /** `free` pages hold nothing; a `VACUUM` would give them back. */
2925
- pages: strictObject({ size: count, count, free: count }),
2926
- migrations: array(strictObject({ version: count, min_compatible: count, applied_at: time })),
2927
- /** From the marker a backup job leaves in `backups/last.json` beside the store; null without one. */
2928
- backup: nullable(strictObject({ at: time, file: nullable(text), checked: nullable(text) })),
2929
- schema: infoSchema,
2930
- clients: array(client),
2931
- rows,
2932
- pending_normalization: nullable(count),
2933
- word_index: nullable(wordIndex),
2934
- stem_index: nullable(stemIndex),
2935
- ...contents
2936
- })
2937
- ]);
2938
- var storeCheck = union([
2939
- strictObject({ ...absent.entries, ok: literal(true) }),
2940
- strictObject({ ...readFailure, ok: literal(false) }),
2941
- strictObject({
2942
- path: text,
2943
- exists: literal(true),
2944
- opens: literal(true),
2945
- ok: boolean(),
2946
- checks: strictObject({
2947
- schema: boolean(),
2948
- integrity: boolean(),
2949
- foreign_keys: boolean(),
2950
- search_indexes: boolean(),
2951
- vector_indexes: boolean(),
2952
- disk: boolean()
2953
- }),
2954
- schema,
2955
- integrity: array(text),
2956
- foreign_key_violations: count,
2957
- search_indexes: record(text, text),
2958
- disk: strictObject({ free: count, needed: count }),
2959
- pending_normalization: nullable(count),
2960
- word_index: nullable(wordIndex),
2961
- stem_index: nullable(stemIndex),
2962
- chats_behind: array(strictObject({
2963
- provider: text,
2964
- account: text,
2965
- chat: text,
2966
- title: nullable(text),
2967
- newest: time,
2968
- held: nullable(time),
2969
- refreshed: time
2970
- })),
2971
- orphan_pointers: array(strictObject({ table: text, pointer: text, type: text, count, known: boolean() })),
2972
- conversations: array(strictObject({
2973
- provider: text,
2974
- account: text,
2975
- chat: text,
2976
- title: nullable(text),
2977
- built_at: nullable(time),
2978
- rules_version: nullable(count),
2979
- current: boolean(),
2980
- stale_agent_links: count
2981
- })),
2982
- vectors: nullable(strictObject({ models: record(text, count), unused: count })),
2983
- vector_indexes: array(strictObject({
2984
- model: text,
2985
- dims: count,
2986
- ready: boolean(),
2987
- indexed: count,
2988
- expected: count,
2989
- missing: count,
2990
- extra: count
2991
- }))
2992
- })
2993
- ]);
2994
- var indexed = { normalized: count, indexed: count, terms: count, stemmed: count, notes_indexed: count };
2995
- var storeMigration = union([
2996
- absent,
2997
- strictObject({ path: text, exists: literal(true), from: count, to: count, ...indexed })
2998
- ]);
2999
- var storeReindex = union([
3000
- absent,
3001
- strictObject({
3002
- path: text,
3003
- exists: literal(true),
3004
- ...indexed,
3005
- file_texts: count,
3006
- involvements: count,
3007
- unused_vectors_dropped: count
3008
- })
3009
- ]);
3010
- var storeBackup = strictObject({
3011
- path: text,
3012
- from: text,
3013
- bytes: count,
3014
- schema: count,
3015
- rows: strictObject({ chats: count, messages: count }),
3016
- encrypted: optional(literal(true))
3017
- });
3018
- var storeDecrypt = strictObject({ path: text, from: text, bytes: count });
3019
- var storeRestore = strictObject({
3020
- path: text,
3021
- restored_from: text,
3022
- kept_at: nullable(text),
3023
- schema: count
3024
- });
3025
- var storeReset = union([
3026
- strictObject({ ...absent.entries, reset: literal(false) }),
3027
- strictObject({
3028
- path: text,
3029
- exists: literal(true),
3030
- reset: literal(false),
3031
- dry_run: literal(true),
3032
- files: array(text),
3033
- bytes: count,
3034
- schema: count,
3035
- tables: array(strictObject({ name: text, rows: count })),
3036
- backup_first: boolean(),
3037
- in_use: nullable(boolean())
3038
- }),
3039
- strictObject({
3040
- path: text,
3041
- exists: literal(true),
3042
- reset: literal(true),
3043
- backup: nullable(text),
3044
- backed_up: nullable(strictObject({ schema: count, rows: partial(strictObject({ chats: count, messages: count })) })),
3045
- schema: count
3046
- })
3047
- ]);
3048
- var storeRepair = union([
3049
- absent,
3050
- strictObject({
3051
- path: text,
3052
- dry_run: boolean(),
3053
- repaired: array(strictObject({
3054
- table: text,
3055
- action: picklist(["created", "columns-added", "rebuilt"]),
3056
- columns_added: optional(array(text)),
3057
- copy: optional(text),
3058
- rows_in_copy: optional(count),
3059
- rows_copied: optional(count),
3060
- only_in_copy: optional(array(text)),
3061
- dropped_from_copy: optional(array(text))
3062
- })),
3063
- indexes_created: array(text),
3064
- triggers_created: array(text),
3065
- mismatches: array(strictObject({ table: text, what: text })),
3066
- foreign_key_violations: array(strictObject({ table: text, rows: count })),
3067
- copies: array(strictObject({ name: text, rows: count }))
3068
- })
3069
- ]);
3070
- var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
3071
-
3072
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
3073
- var tagTarget = variant("type", [
3074
- strictObject({ type: literal("chat"), chat_id: id }),
3075
- strictObject({ type: literal("contact"), person_id: id }),
3076
- strictObject({ type: literal("message"), chat_id: id, message_id: id, locator: reference }),
3077
- strictObject({ type: literal("task"), task_id: id })
3078
- ]);
3079
- var receipt = { target: tagTarget, unchanged: array(text) };
3080
- var tagChange = union([
3081
- strictObject({ ...receipt, added: array(text) }),
3082
- strictObject({ ...receipt, removed: array(text) })
3083
- ]);
3084
- var automaticTags = strictObject({
3085
- items: array(union([
3086
- strictObject({
3087
- chat_id: id,
3088
- tags: array(strictObject({
3089
- tag: text,
3090
- score: number(),
3091
- fields: array(picklist(["title", "username", "description"]))
3092
- })),
3093
- algorithm: text,
3094
- fetched_at: nullable(time),
3095
- source: picklist(["metadata", "stored-chat"])
3096
- }),
3097
- strictObject({ chat_id: id, error: strictObject({ code: text, message: text }) })
3098
- ])),
3099
- has_more: boolean(),
3100
- dry_run: boolean()
3101
- });
3102
-
3103
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
3104
- var side = strictObject({ ref: reference, key: text, title: text, status: text });
3105
- var taskPair = strictObject({
3106
- task: nullable(side),
3107
- source: nullable(reference),
3108
- other: side,
3109
- score: number(),
3110
- band: picklist(["likely", "maybe", "different"]),
3111
- levels: strictObject({
3112
- text: picklist(["high", "middle", "low"]),
3113
- person: picklist(["same", "different", "unknown"]),
3114
- amount: picklist(["equal", "different", "missing"]),
3115
- category: picklist(["same", "different", "unknown"]),
3116
- due: picklist(["near", "far", "missing"]),
3117
- reply: picklist(["yes", "no"]),
3118
- time: picklist(["near", "weeks", "far"])
3119
- }),
3120
- reasons: array(text),
3121
- decision: picklist(["review", "unsure", "merged", "rejected", "unmerged", "attached", "new"]),
3122
- decided_at: nullable(time),
3123
- created_at: time
3124
- });
3125
-
3126
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/task-results.js
3127
- var nullableTime = nullable(time);
3128
- var link = strictObject({
3129
- id,
3130
- from: reference,
3131
- to: nullable(reference),
3132
- kind: picklist(LINK_KINDS),
3133
- anchor: nullable(text),
3134
- origin: picklist(LINK_SOURCES),
3135
- target_text: nullable(text),
3136
- role: nullable(text),
3137
- evidence: nullable(text),
3138
- provenance: nullable(text),
3139
- confirmed: boolean(),
3140
- created_at: time
3141
- });
3142
- var taskCard = strictObject({
3143
- id,
3144
- ref: reference,
3145
- key: text,
3146
- project: reference,
3147
- project_key: text,
3148
- project_name: text,
3149
- created_by: nullable(strictObject({ type: picklist(["person", "bot"]), id, name: nullable(text), owner: boolean() })),
3150
- title: text,
3151
- description: nullable(text),
3152
- type: picklist(TASK_TYPES),
3153
- status: picklist(TASK_STATES),
3154
- priority: nullable(number()),
3155
- priority_label: nullable(picklist(PRIORITY_LABELS)),
3156
- agent: nullable(text),
3157
- revision: number(),
3158
- parent: nullable(reference),
3159
- source: nullable(text),
3160
- due_at: nullableTime,
3161
- next_check_at: nullableTime,
3162
- closed_at: nullableTime,
3163
- reason: nullable(text),
3164
- verdict: nullable(picklist(TASK_VERDICTS)),
3165
- category: nullable(text),
3166
- claimed_by: nullable(text),
3167
- claimed_until: nullableTime,
3168
- close_certainty: nullable(number()),
3169
- close_suggestion: nullable(closeSuggestion),
3170
- assignments: array(strictObject({ to: reference, role: picklist(["assignee", "reviewer", "watcher"]) })),
3171
- created_at: time,
3172
- updated_at: time,
3173
- links: array(link),
3174
- linked_from: array(link)
3175
- });
3176
- var taskView = strictObject({
3177
- id,
3178
- source: text,
3179
- source_kind: text,
3180
- account: text,
3181
- group: text,
3182
- kind: picklist(TASK_KINDS),
3183
- state: picklist(TASK_STATES),
3184
- reason: optional(text),
3185
- origin: picklist(TASK_ORIGINS),
3186
- created_at: time,
3187
- due_at: optional(time),
3188
- closed_at: optional(time),
3189
- closed_by: optional(picklist(TASK_ORIGINS)),
3190
- key: optional(text),
3191
- category: optional(text),
3192
- claimed_by: optional(text),
3193
- claimed_until: optional(time),
3194
- message: nullable(strictObject({ sender_name: nullable(text), text, timestamp: time })),
3195
- note: optional(nullable(strictObject({ id, title: nullable(text), text, updated_at: time })))
3196
- });
3197
- var taskCreated = strictObject({
3198
- ...taskView.entries,
3199
- created: boolean(),
3200
- attached: optional(literal(true)),
3201
- review: optional(count),
3202
- follow_up_of: optional(taskPair.entries.other),
3203
- card: optional(taskCard)
3204
- });
3205
- var taskClosed = strictObject({
3206
- ...taskView.entries,
3207
- close_certainty: nullable(number()),
3208
- close_suggestion: nullable(closeSuggestion)
3209
- });
3210
- var taskLinks = union([
3211
- strictObject({ ...taskCard.entries, review: optional(count) }),
3212
- strictObject({
3213
- relations: array(strictObject({
3214
- id,
3215
- from: reference,
3216
- to: reference,
3217
- kind: picklist(["blocked-by", "follow-up-of", "related-to", "duplicate-of", "discovered-from"])
3218
- }))
3219
- })
3220
- ]);
3221
- var taskSimilar = strictObject({
3222
- ref: reference,
3223
- key: text,
3224
- title: text,
3225
- status: text,
3226
- created_at: time,
3227
- found_by: array(picklist(["text", "person", "category", "reply"])),
3228
- score: number(),
3229
- band: taskPair.entries.band,
3230
- levels: taskPair.entries.levels,
3231
- reasons: array(text),
3232
- text: strictObject({ shared_stems: count, all_stems: count, stems: number(), trigrams: number() })
3233
- });
3234
- var taskMerge = strictObject({ pair: taskPair, linked: count, review: count, task: taskCard });
3235
- var taskUnmerge = strictObject({ pair: taskPair, task: taskCard });
3236
- var taskCategories = strictObject({
3237
- categories: array(strictObject({
3238
- name: text,
3239
- meaning: text,
3240
- triggers: strictObject({ en: array(text), ru: array(text), es: array(text) })
3241
- })),
3242
- unlisted: array(strictObject({ name: text, open: count, total: count })),
3243
- file: nullable(text)
3244
- });
3245
- var taskScan = strictObject({
3246
- chat: text,
3247
- messages: count,
3248
- added: count,
3249
- closed: count,
3250
- review: count,
3251
- held: optional(count),
3252
- held_chats: optional(count),
3253
- tasks: array(strictObject({ source: text, kind: picklist(TASK_KINDS), category: nullable(text) }))
3254
- });
3255
-
3256
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/topic.js
3257
- var topic = strictObject({
3258
- id,
3259
- title: text,
3260
- closed: boolean(),
3261
- pinned: boolean(),
3262
- /** The General topic only, where the messenger says. */
3263
- hidden: optional(boolean()),
3264
- unread_count: nullable(count),
3265
- last_message_at: nullable(time),
3266
- created_at: nullable(time),
3267
- untrusted
3268
- });
3269
-
3270
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/entities/index.js
3271
- var ENTITIES = {
3272
- sync_progress: progress,
3273
- ...MEETING_RESULT_ENTITIES,
3274
- message,
3275
- message_context: messageContext,
3276
- message_download: messageDownload,
3277
- message_sync: messageSync,
3278
- "message.hit": strictObject({
3279
- ...pick(message, [
3280
- "ref",
3281
- "chat_title",
3282
- "timestamp",
3283
- "sender_name",
3284
- "sender_is_me",
3285
- "excerpt",
3286
- "matched_in",
3287
- "score",
3288
- "match",
3289
- "corrections",
3290
- "found_in",
3291
- "discovery",
3292
- "context",
3293
- "follow_ups",
3294
- "email"
3295
- ]).entries,
3296
- untrusted
3297
- }),
3298
- "message.summary": pick(message, [
3299
- "ref",
3300
- "chat_id",
3301
- "chat_title",
3302
- "timestamp",
3303
- "sender_name",
3304
- "sender_is_me",
3305
- "outgoing",
3306
- "text",
3307
- "transcript",
3308
- "attachments"
3309
- ]),
3310
- message_link: messageLink,
3311
- message_write: messageWrite,
3312
- message_send: messageSend,
3313
- message_pin: messagePin,
3314
- message_star: messageStar,
3315
- message_deletion: messageDeletion,
3316
- message_transcript: messageTranscript,
3317
- message_links: messageLinks,
3318
- evidence_packet: evidencePacket,
3319
- chat_metadata: cachedChatMetadata,
3320
- chat_metadata_refresh: chatMetadataRefresh,
3321
- chat,
3322
- mention,
3323
- "mention.details": mentionDetails,
3324
- mention_domain: mentionDomain,
3325
- mention_decision: mentionDecision,
3326
- mention_rebuild: mentionRebuild,
3327
- place,
3328
- person: person2,
3329
- identity,
3330
- contact_context: contactContext,
3331
- contact_preparation: contactPreparation,
3332
- contact_activity: contactActivity,
3333
- contact_check: contactCheck,
3334
- linked_person: linkedPerson,
3335
- contact,
3336
- contact_note: contactNote,
3337
- contact_lookup: contactLookup,
3338
- contact_sync: contactSync,
3339
- contact_update: contactUpdate,
3340
- contact_state_change: contactStateChange,
3341
- contact_import: contactImport,
3342
- contact_alias: contactAlias,
3343
- contact_note_removal: contactNoteRemoval,
3344
- account,
3345
- account_session: accountSession,
3346
- account_change: accountChange,
3347
- ended_account_sessions: endedAccountSessions,
3348
- account_privacy: accountPrivacy,
3349
- account_privacy_change: accountPrivacyChange,
3350
- account_profile: accountProfile,
3351
- organization,
3352
- project,
3353
- reminder,
3354
- bot_profile: botProfile,
3355
- bot_template: botTemplate,
3356
- bot_seen_chat: botSeenChat,
3357
- bot_admin: botAdmin,
3358
- bot_menu_entry: botMenuEntry,
3359
- topic_icon: topicIcon,
3360
- bot_webhook: botWebhook,
3361
- scheduled_job: scheduledJob,
3362
- call_record: callRecord,
3363
- sticker_inventory: stickerInventory,
3364
- note,
3365
- "note.hit": strictObject({
3366
- ...pick(note, [
3367
- "kind",
3368
- "provider",
3369
- "account",
3370
- "url",
3371
- "ref",
3372
- "source",
3373
- "folder_id",
3374
- "path",
3375
- "title",
3376
- "updated_at",
3377
- "excerpt",
3378
- "found_by",
3379
- "links"
3380
- ]).entries,
3381
- untrusted
3382
- }),
3383
- hit,
3384
- document,
3385
- document_link: documentLink,
3386
- image_embedding: imageEmbedding,
3387
- attachment,
3388
- attachment_bytes: attachmentBytes,
3389
- attachment_extraction: attachmentExtraction,
3390
- attachment_text_change: attachmentTextChange,
3391
- media_archive: mediaArchive,
3392
- media_archive_check: mediaArchiveCheck,
3393
- media_archive_move: mediaArchiveMove,
3394
- media_archive_timer: mediaArchiveTimer,
3395
- task,
3396
- task_pair: taskPair,
3397
- task_card: taskCard,
3398
- task_created: taskCreated,
3399
- task_closed: taskClosed,
3400
- task_links: taskLinks,
3401
- task_similar: taskSimilar,
3402
- task_merge: taskMerge,
3403
- task_unmerge: taskUnmerge,
3404
- task_categories: taskCategories,
3405
- task_scan: taskScan,
3406
- fact,
3407
- memory,
3408
- meeting,
3409
- meeting_details: meetingDetails,
3410
- meeting_hit: meetingHit,
3411
- meeting_series_inventory: meetingSeriesInventory,
3412
- meeting_project_candidates: meetingProjectCandidates,
3413
- meeting_project_evidence: meetingProjectEvidence,
3414
- meeting_preparation: meetingPreparation,
3415
- meeting_findings: meetingFindings,
3416
- meeting_transcript: meetingTranscript,
3417
- meeting_summary: meetingSummary,
3418
- meeting_evidence: meetingEvidence,
3419
- meeting_person_context: meetingPersonContext,
3420
- event,
3421
- meeting_review: meetingReview,
3422
- meeting_link: meetingLink,
3423
- meeting_stats: meetingStats,
3424
- meeting_speaker: meetingSpeaker,
3425
- meeting_participants: meetingParticipants,
3426
- meeting_passage: meetingPassage,
3427
- meeting_task_proposal: meetingTaskProposal,
3428
- reference,
3429
- relationship,
3430
- recipient,
3431
- recipient_change: recipientChange,
3432
- "recipient_change.added": recipientAdded,
3433
- "recipient_change.removed": recipientRemoved,
3434
- "recipient_change.off": recipientOff,
3435
- run: recordedRun,
3436
- "run.details": runDetails,
3437
- "run.hit": runHit,
3438
- run_location: runLocation,
3439
- tag_change: tagChange,
3440
- automatic_tags: automaticTags,
3441
- send_attempt: sendAttempt,
3442
- tagging,
3443
- "conversation.details": conversationDetails,
3444
- conversation_build: conversationBuildResult,
3445
- conversation_batch_status: conversationBatchStatus,
3446
- conversation_batch: conversationBatch,
3447
- conversation_change: conversationChange,
3448
- conversation_readiness: conversationReadiness,
3449
- conversation_embedding: conversationEmbedding,
3450
- conversation_embedding_status: conversationEmbeddingStatus,
3451
- conversation_preparation: conversationPreparation,
3452
- conversation_hit: conversationHit,
3453
- conversation,
3454
- saved_search: savedSearch,
3455
- search_history_clear: searchHistoryClear,
3456
- watch_item: watchItem,
3457
- serve_summary: serveSummary,
3458
- job,
3459
- store_chat_status: storeChatStatus,
3460
- store_clear: storeClear,
3461
- store_export: storeExport,
3462
- store_gap_plan: storeGapPlan,
3463
- store_gap_repair: storeGapRepair,
3464
- store_job_details: storeJobDetails,
3465
- store_job_cancel: storeJobCancel,
3466
- store_job_retry: storeJobRetry,
3467
- store_job_clear: storeJobClear,
3468
- store_info: storeInfo,
3469
- store_check: storeCheck,
3470
- store_migration: storeMigration,
3471
- store_reindex: storeReindex,
3472
- store_backup: storeBackup,
3473
- store_decrypt: storeDecrypt,
3474
- store_restore: storeRestore,
3475
- store_reset: storeReset,
3476
- store_repair: storeRepair,
3477
- store_copy_removal: storeCopyRemoval,
3478
- store_table: storeTable,
3479
- agenda,
3480
- model,
3481
- chat_group_change: chatGroupChange,
3482
- chat_inspection: chatInspection,
3483
- chat_sender: chatSender,
3484
- chat_read: chatRead,
3485
- chat_members_fetch: chatMembersFetch,
3486
- chat_members_change: chatMembersChange,
3487
- chat_invite: chatInvite,
3488
- chat_invite_change: chatInviteChange,
3489
- chat_request_change: chatRequestChange,
3490
- chat_admin_change: chatAdminChange,
3491
- chat_folder_change: chatFolderChange,
3492
- chat_folder_removal: chatFolderRemoval,
3493
- chat_folder_order: chatFolderOrder,
3494
- chat_rules: chatRules,
3495
- chat_moderation: chatModeration,
3496
- model_key: modelKey,
3497
- "model_key.stored": storedModelKey,
3498
- "model_key.removed": removedModelKey,
3499
- chat_event: chatEvent,
3500
- chat_removal: chatRemoval,
3501
- chat_muting: chatMuting,
3502
- chat_archive: chatArchive,
3503
- chat_pin: chatPin,
3504
- chat_unread: chatUnread,
3505
- invite_link: inviteLink,
3506
- join_request: joinRequest,
3507
- member,
3508
- poll,
3509
- poll_change: pollChange,
3510
- poll_vote: pollVote,
3511
- reaction,
3512
- reaction_change: reactionChange,
3513
- topic,
3514
- folder,
3515
- message_counts: messageCounts,
3516
- ranking,
3517
- admin_report: adminReport,
3518
- analysis_consent: analysisConsent,
3519
- analysis_consent_revocation: analysisConsentRevocation,
3520
- retention,
3521
- evidence,
3522
- counters,
3523
- counter_refresh: counterRefresh,
3524
- official_stats: officialStats,
3525
- chart,
3526
- chat_stats: chatStats,
3527
- tracked_chat: trackedChat,
3528
- tracked_chat_history: trackedChatHistory,
3529
- chat_tracking: chatTracking,
3530
- task_stats: taskStats
3531
- };
3532
- var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.entries(ENTITIES).map(([name, schema2]) => {
3533
- const { $schema: _, ...definition } = jsonSchemaOf(schema2);
3534
- return [name, definition];
3535
- })), "entityDefinitions");
3536
-
3537
- export {
3538
- accountSession,
3539
- accountProfile,
3540
- analysisConsent,
3541
- member,
3542
- chat,
3543
- folder,
3544
- inviteLink,
3545
- chatEvent,
3546
- contact,
3547
- message,
3548
- contactNote,
3549
- documentLink,
3550
- spawnDetached,
3551
- jobsDir,
3552
- saveJob,
3553
- readJob,
3554
- tracedJob,
3555
- jobStarted,
3556
- finishJob,
3557
- updateJob,
3558
- removeJob,
3559
- listJobs,
3560
- jobDetails,
3561
- jobItem,
3562
- stateOf,
3563
- startArchiveJob,
3564
- job,
3565
- joinRequest,
3566
- botProfile,
3567
- botSeenChat,
3568
- botAdmin,
3569
- botMenuEntry,
3570
- topicIcon,
3571
- botWebhook,
3572
- scheduledJob,
3573
- callRecord,
3574
- stickerInventory,
3575
- pollVote,
3576
- meetingPreparation,
3577
- meetingProjectCandidates,
3578
- meetingSeriesInventory,
3579
- model,
3580
- reaction,
3581
- recipient,
3582
- recordedRun,
3583
- savedSearch,
3584
- sendAttempt,
3585
- topic,
3586
- ENTITIES,
3587
- entityDefinitions
3588
- };