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