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