@wirecat/cli-core 0.618.0 → 0.620.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 (335) hide show
  1. package/CHANGELOG.md +453 -1
  2. package/README.md +1 -1
  3. package/THIRD_PARTY_NOTICES +3 -0
  4. package/dist/background/deliver.d.ts +5 -2
  5. package/dist/background/deliver.js +30 -12
  6. package/dist/background/report/render.d.ts +3 -1
  7. package/dist/background/report/render.js +3 -1
  8. package/dist/calendar/cli/answers.d.ts +1 -0
  9. package/dist/calendar/cli/answers.js +6 -1
  10. package/dist/calendar/cli/index.js +2 -14
  11. package/dist/calendar/cli/people-link.d.ts +3 -0
  12. package/dist/calendar/cli/people-link.js +23 -0
  13. package/dist/calendar/cli/search-all.d.ts +1 -1
  14. package/dist/calendar/cli/search-all.js +9 -10
  15. package/dist/calendar/index.d.ts +1 -1
  16. package/dist/calendar/index.js +1 -1
  17. package/dist/calendar/mcp/index.d.ts +12 -12
  18. package/dist/calendar/prepare.js +1 -0
  19. package/dist/cli/base-stages-command.d.ts +22 -0
  20. package/dist/cli/base-stages-command.js +174 -0
  21. package/dist/cli/bot/buttons.d.ts +3 -0
  22. package/dist/cli/bot/buttons.js +24 -0
  23. package/dist/cli/bot/messages.js +14 -1
  24. package/dist/cli/bot/port.d.ts +8 -0
  25. package/dist/cli/command-runs.d.ts +2 -0
  26. package/dist/cli/command-runs.js +3 -1
  27. package/dist/cli/config-command.js +6 -1
  28. package/dist/cli/context.js +1 -0
  29. package/dist/cli/contract-templates.js +31 -2
  30. package/dist/cli/group-lock.d.ts +42 -0
  31. package/dist/cli/group-lock.js +130 -0
  32. package/dist/cli/index.d.ts +7 -2
  33. package/dist/cli/index.js +7 -2
  34. package/dist/cli/messenger/backfill-command.js +27 -15
  35. package/dist/cli/messenger/contacts-command.js +12 -4
  36. package/dist/cli/messenger/context.js +1 -0
  37. package/dist/cli/messenger/conversations-command.js +2 -1
  38. package/dist/cli/messenger/doctor-command.js +3 -1
  39. package/dist/cli/messenger/message-items.js +1 -1
  40. package/dist/cli/messenger/models-command.js +1 -1
  41. package/dist/cli/messenger/search-answers.d.ts +5 -5
  42. package/dist/cli/messenger/search-answers.js +9 -20
  43. package/dist/cli/messenger/search-command.d.ts +2 -2
  44. package/dist/cli/messenger/search-command.js +8 -18
  45. package/dist/cli/messenger/store-maintenance-command.d.ts +22 -2
  46. package/dist/cli/messenger/store-maintenance-command.js +9 -4
  47. package/dist/cli/model-catalogue-command.d.ts +3 -1
  48. package/dist/cli/model-catalogue-command.js +48 -2
  49. package/dist/cli/profile.d.ts +8 -0
  50. package/dist/cli/profile.js +25 -0
  51. package/dist/cli/program.js +2 -0
  52. package/dist/cli/runs/search-query.d.ts +1 -1
  53. package/dist/cli/runs/search-query.js +4 -0
  54. package/dist/cli/runs/search.d.ts +5 -1
  55. package/dist/cli/runs/search.js +12 -1
  56. package/dist/cli/search-harder-consents-command.d.ts +18 -0
  57. package/dist/cli/search-harder-consents-command.js +83 -0
  58. package/dist/cli/search-left-out.d.ts +6 -1
  59. package/dist/cli/search-left-out.js +9 -4
  60. package/dist/cli/settings.d.ts +8 -0
  61. package/dist/cli/settings.js +17 -2
  62. package/dist/cli/shared-command-exports.d.ts +16 -0
  63. package/dist/cli/steps.js +0 -6
  64. package/dist/cli/store-recover.d.ts +3 -3
  65. package/dist/cli/store-recover.js +26 -26
  66. package/dist/cli/store-settings.d.ts +2 -0
  67. package/dist/cli/store-settings.js +37 -9
  68. package/dist/cli/templates-command.js +4 -4
  69. package/dist/crm/cli/index.js +40 -8
  70. package/dist/crm/cli/search-all.js +7 -6
  71. package/dist/crm/group-hint.d.ts +8 -0
  72. package/dist/crm/group-hint.js +13 -0
  73. package/dist/crm/source.d.ts +12 -1
  74. package/dist/crm/sync.d.ts +31 -2
  75. package/dist/crm/sync.js +110 -3
  76. package/dist/crm/testing/acme-scenario.d.ts +40 -0
  77. package/dist/crm/testing/acme-scenario.js +170 -0
  78. package/dist/crm/testing/index.d.ts +1 -0
  79. package/dist/crm/testing/index.js +1 -0
  80. package/dist/crm/testing/source-contract.js +12 -0
  81. package/dist/crm/testing/source.d.ts +2 -0
  82. package/dist/crm/testing/source.js +1 -0
  83. package/dist/domain/addresses.d.ts +13 -0
  84. package/dist/domain/addresses.js +63 -0
  85. package/dist/domain/categories.d.ts +3 -0
  86. package/dist/domain/categories.js +2 -0
  87. package/dist/domain/crm.d.ts +23 -0
  88. package/dist/domain/crm.js +7 -0
  89. package/dist/domain/mentions.d.ts +2 -12
  90. package/dist/domain/mentions.js +2 -19
  91. package/dist/domain/models.d.ts +2 -0
  92. package/dist/domain/orders.d.ts +8 -1
  93. package/dist/domain/orders.js +6 -2
  94. package/dist/domain/phones.d.ts +26 -0
  95. package/dist/domain/phones.js +48 -0
  96. package/dist/domain/record-types.d.ts +1 -1
  97. package/dist/domain/record-types.js +1 -0
  98. package/dist/domain/records.d.ts +5 -0
  99. package/dist/domain/ref-summaries.d.ts +39 -0
  100. package/dist/domain/ref-summaries.js +51 -3
  101. package/dist/domain/relations.d.ts +12 -2
  102. package/dist/domain/relations.js +14 -3
  103. package/dist/domain/vcard.d.ts +2 -2
  104. package/dist/domain/vcard.js +4 -10
  105. package/dist/embeddings/models.d.ts +11 -3
  106. package/dist/embeddings/models.js +28 -4
  107. package/dist/entities/business-context.d.ts +149 -0
  108. package/dist/entities/business-context.js +192 -0
  109. package/dist/entities/contact-activity.d.ts +2 -0
  110. package/dist/entities/contact-activity.js +7 -1
  111. package/dist/entities/contact-context.d.ts +160 -0
  112. package/dist/entities/contact-context.js +6 -0
  113. package/dist/entities/deal.d.ts +10 -0
  114. package/dist/entities/deal.js +2 -0
  115. package/dist/entities/hit.d.ts +9 -2
  116. package/dist/entities/hit.js +6 -2
  117. package/dist/entities/index.d.ts +32 -4
  118. package/dist/entities/index.js +5 -0
  119. package/dist/entities/mention.d.ts +4 -3
  120. package/dist/entities/mention.js +2 -1
  121. package/dist/entities/message-transfer.d.ts +4 -2
  122. package/dist/entities/message-transfer.js +2 -2
  123. package/dist/entities/model.d.ts +2 -2
  124. package/dist/entities/model.js +1 -1
  125. package/dist/entities/relationship.d.ts +4 -0
  126. package/dist/entities/relationship.js +4 -0
  127. package/dist/errors/reasons.js +39 -4
  128. package/dist/fetch/page.js +2 -1
  129. package/dist/index.d.ts +3 -2
  130. package/dist/index.js +3 -2
  131. package/dist/meetings/context-store.d.ts +2 -0
  132. package/dist/meetings/findings-rules.d.ts +4 -0
  133. package/dist/meetings/findings-rules.js +5 -2
  134. package/dist/meetings/hit-query.d.ts +1 -1
  135. package/dist/meetings/hit-query.js +2 -2
  136. package/dist/meetings/index.d.ts +1 -0
  137. package/dist/meetings/index.js +1 -0
  138. package/dist/meetings/result-items.d.ts +1 -0
  139. package/dist/meetings/result-items.js +1 -0
  140. package/dist/meetings/store.d.ts +4 -0
  141. package/dist/meetings/store.js +2 -1
  142. package/dist/models/anthropic.js +5 -0
  143. package/dist/models/index.js +22 -5
  144. package/dist/runs/events.d.ts +11 -1
  145. package/dist/runs/events.js +3 -1
  146. package/dist/runs/log-attributes.js +4 -0
  147. package/dist/runs/log-events.js +2 -0
  148. package/dist/runs/recording.d.ts +3 -0
  149. package/dist/runs/recording.js +36 -12
  150. package/dist/runs/run.d.ts +12 -3
  151. package/dist/runs/run.js +32 -13
  152. package/dist/search/account-list.d.ts +6 -0
  153. package/dist/search/account-list.js +9 -3
  154. package/dist/search/groups.d.ts +68 -0
  155. package/dist/search/groups.js +172 -0
  156. package/dist/search/question-period.d.ts +10 -0
  157. package/dist/search/question-period.js +133 -0
  158. package/dist/sends/buttons.d.ts +2 -0
  159. package/dist/sends/buttons.js +6 -1
  160. package/dist/services/account-groups.d.ts +28 -0
  161. package/dist/services/account-groups.js +89 -0
  162. package/dist/services/archive.d.ts +7 -1
  163. package/dist/services/archive.js +19 -3
  164. package/dist/services/business-context.d.ts +113 -0
  165. package/dist/services/business-context.js +156 -0
  166. package/dist/services/communications.d.ts +50 -0
  167. package/dist/services/communications.js +140 -0
  168. package/dist/services/deal-context.d.ts +90 -0
  169. package/dist/services/deal-context.js +131 -0
  170. package/dist/services/deps.d.ts +2 -0
  171. package/dist/services/enrichment.d.ts +12 -2
  172. package/dist/services/enrichment.js +47 -6
  173. package/dist/services/events-search.js +2 -1
  174. package/dist/services/group-guard.d.ts +28 -0
  175. package/dist/services/group-guard.js +131 -0
  176. package/dist/services/index.d.ts +19 -4
  177. package/dist/services/index.js +12 -3
  178. package/dist/services/ingest.d.ts +12 -0
  179. package/dist/services/ingest.js +4 -0
  180. package/dist/services/meaning-model.d.ts +7 -0
  181. package/dist/services/meaning-model.js +20 -0
  182. package/dist/services/meeting-context.d.ts +6 -1
  183. package/dist/services/meeting-context.js +12 -5
  184. package/dist/services/message-resolution.js +2 -3
  185. package/dist/services/messages-meaning.js +4 -5
  186. package/dist/services/messages-search.d.ts +5 -1
  187. package/dist/services/messages-search.js +1 -1
  188. package/dist/services/messages.d.ts +1 -4
  189. package/dist/services/messages.js +0 -2
  190. package/dist/services/metadata.d.ts +1 -1
  191. package/dist/services/model-downloads.d.ts +1 -1
  192. package/dist/services/model-downloads.js +6 -4
  193. package/dist/services/money-context.d.ts +73 -0
  194. package/dist/services/money-context.js +77 -0
  195. package/dist/services/notes-search.d.ts +4 -1
  196. package/dist/services/notes-search.js +19 -7
  197. package/dist/services/organization-context.d.ts +80 -0
  198. package/dist/services/organization-context.js +154 -0
  199. package/dist/services/people.d.ts +22 -6
  200. package/dist/services/people.js +38 -8
  201. package/dist/services/person-business.d.ts +43 -0
  202. package/dist/services/person-business.js +67 -0
  203. package/dist/services/person-context.d.ts +11 -1
  204. package/dist/services/person-context.js +25 -10
  205. package/dist/services/person-preparation.d.ts +5 -1
  206. package/dist/services/person-preparation.js +10 -3
  207. package/dist/services/person-timeline.d.ts +6 -1
  208. package/dist/services/person-timeline.js +10 -2
  209. package/dist/services/proposals/kinds/identity-link.d.ts +4 -0
  210. package/dist/services/proposals/kinds/identity-link.js +48 -0
  211. package/dist/services/proposals/kinds/orders.js +1 -1
  212. package/dist/services/proposals/registry.js +2 -0
  213. package/dist/services/search-all-deprecated.d.ts +40 -0
  214. package/dist/services/search-all-deprecated.js +10 -0
  215. package/dist/services/search-all-meetings.d.ts +50 -52
  216. package/dist/services/search-all-meetings.js +265 -272
  217. package/dist/services/search-all.d.ts +34 -6
  218. package/dist/services/search-all.js +118 -24
  219. package/dist/services/search-harder.d.ts +64 -0
  220. package/dist/services/search-harder.js +194 -0
  221. package/dist/services/search-kind.d.ts +12 -5
  222. package/dist/services/search-kind.js +49 -10
  223. package/dist/services/text-model-choice.js +1 -1
  224. package/dist/store/accounts.d.ts +18 -0
  225. package/dist/store/accounts.js +18 -3
  226. package/dist/store/chats.d.ts +3 -1
  227. package/dist/store/chats.js +6 -0
  228. package/dist/store/damage.d.ts +43 -10
  229. package/dist/store/damage.js +119 -36
  230. package/dist/store/decisions.js +3 -1
  231. package/dist/store/evidence-findings.d.ts +14 -0
  232. package/dist/store/evidence-findings.js +2 -0
  233. package/dist/store/exports.d.ts +2 -1
  234. package/dist/store/identity-links.d.ts +92 -0
  235. package/dist/store/identity-links.js +6 -0
  236. package/dist/store/index.d.ts +11 -5
  237. package/dist/store/index.js +5 -2
  238. package/dist/store/journal.d.ts +10 -0
  239. package/dist/store/journal.js +33 -0
  240. package/dist/store/marks.d.ts +19 -1
  241. package/dist/store/marks.js +23 -1
  242. package/dist/store/people.d.ts +28 -2
  243. package/dist/store/people.js +15 -1
  244. package/dist/store/sqlite/accounts.js +2 -0
  245. package/dist/store/sqlite/added-sources.d.ts +15 -3
  246. package/dist/store/sqlite/added-sources.js +26 -5
  247. package/dist/store/sqlite/base-stages.d.ts +122 -0
  248. package/dist/store/sqlite/base-stages.js +443 -0
  249. package/dist/store/sqlite/base-suggest.d.ts +13 -0
  250. package/dist/store/sqlite/base-suggest.js +62 -0
  251. package/dist/store/sqlite/business-contracts.js +10 -1
  252. package/dist/store/sqlite/chats.d.ts +2 -0
  253. package/dist/store/sqlite/chats.js +6 -0
  254. package/dist/store/sqlite/crm-settings.d.ts +12 -2
  255. package/dist/store/sqlite/crm-settings.js +56 -13
  256. package/dist/store/sqlite/crm.d.ts +13 -1
  257. package/dist/store/sqlite/crm.js +20 -4
  258. package/dist/store/sqlite/deals.d.ts +33 -0
  259. package/dist/store/sqlite/deals.js +42 -4
  260. package/dist/store/sqlite/decision-requests.js +7 -3
  261. package/dist/store/sqlite/email-index.js +8 -4
  262. package/dist/store/sqlite/evidence-findings.js +29 -5
  263. package/dist/store/sqlite/findings-core.js +4 -2
  264. package/dist/store/sqlite/identity-link-rows.d.ts +50 -0
  265. package/dist/store/sqlite/identity-link-rows.js +146 -0
  266. package/dist/store/sqlite/identity-proposals.d.ts +53 -0
  267. package/dist/store/sqlite/identity-proposals.js +234 -0
  268. package/dist/store/sqlite/involvements.d.ts +1 -1
  269. package/dist/store/sqlite/involvements.js +4 -2
  270. package/dist/store/sqlite/knowledge.js +2 -2
  271. package/dist/store/sqlite/link-kinds.d.ts +1 -0
  272. package/dist/store/sqlite/link-kinds.js +1 -0
  273. package/dist/store/sqlite/link-row.d.ts +6 -0
  274. package/dist/store/sqlite/link-row.js +35 -0
  275. package/dist/store/sqlite/link-source.d.ts +10 -0
  276. package/dist/store/sqlite/link-source.js +16 -0
  277. package/dist/store/sqlite/manifest.js +1 -0
  278. package/dist/store/sqlite/meeting-context-links.js +9 -6
  279. package/dist/store/sqlite/meeting-hit-query.d.ts +5 -0
  280. package/dist/store/sqlite/meeting-hit-query.js +33 -0
  281. package/dist/store/sqlite/meeting-hit-search.js +10 -8
  282. package/dist/store/sqlite/meetings.js +1 -1
  283. package/dist/store/sqlite/memories.js +9 -7
  284. package/dist/store/sqlite/mentions.d.ts +4 -1
  285. package/dist/store/sqlite/mentions.js +14 -9
  286. package/dist/store/sqlite/migrations.generated.js +8 -0
  287. package/dist/store/sqlite/notes.d.ts +8 -2
  288. package/dist/store/sqlite/notes.js +17 -34
  289. package/dist/store/sqlite/open-store.js +3 -0
  290. package/dist/store/sqlite/open.js +11 -2
  291. package/dist/store/sqlite/orders.d.ts +2 -0
  292. package/dist/store/sqlite/orders.js +9 -3
  293. package/dist/store/sqlite/organization-categories.d.ts +18 -0
  294. package/dist/store/sqlite/organization-categories.js +34 -0
  295. package/dist/store/sqlite/organizations.d.ts +5 -1
  296. package/dist/store/sqlite/organizations.js +14 -4
  297. package/dist/store/sqlite/person-links.d.ts +19 -4
  298. package/dist/store/sqlite/person-links.js +49 -11
  299. package/dist/store/sqlite/person-match-scan.d.ts +13 -0
  300. package/dist/store/sqlite/person-match-scan.js +251 -0
  301. package/dist/store/sqlite/person-matcher.d.ts +16 -0
  302. package/dist/store/sqlite/person-matcher.js +32 -0
  303. package/dist/store/sqlite/person-preparation.d.ts +7 -3
  304. package/dist/store/sqlite/person-preparation.js +20 -6
  305. package/dist/store/sqlite/proposed-actions.js +6 -0
  306. package/dist/store/sqlite/record-matching.d.ts +2 -8
  307. package/dist/store/sqlite/record-matching.js +8 -40
  308. package/dist/store/sqlite/record-projectors-phone.js +2 -1
  309. package/dist/store/sqlite/record-relationships.d.ts +52 -0
  310. package/dist/store/sqlite/record-relationships.js +243 -0
  311. package/dist/store/sqlite/record-run.d.ts +5 -0
  312. package/dist/store/sqlite/record-run.js +62 -2
  313. package/dist/store/sqlite/record-writes.d.ts +1 -1
  314. package/dist/store/sqlite/record-writes.js +4 -2
  315. package/dist/store/sqlite/records.js +27 -2
  316. package/dist/store/sqlite/ref-accounts.d.ts +13 -0
  317. package/dist/store/sqlite/ref-accounts.js +117 -0
  318. package/dist/store/sqlite/ref-summaries.js +5 -1
  319. package/dist/store/sqlite/relation-list.d.ts +4 -1
  320. package/dist/store/sqlite/relation-list.js +22 -4
  321. package/dist/store/sqlite/relation-proposals.d.ts +6 -0
  322. package/dist/store/sqlite/relation-proposals.js +3 -0
  323. package/dist/store/sqlite/relation-roles.js +12 -6
  324. package/dist/store/sqlite/reported-relations.d.ts +11 -1
  325. package/dist/store/sqlite/reported-relations.js +59 -18
  326. package/dist/store/sqlite/schema.d.ts +32 -0
  327. package/dist/store/sqlite/schema.js +3 -0
  328. package/dist/store/sqlite/transaction.js +11 -1
  329. package/dist/store/store.d.ts +3 -0
  330. package/dist/store/store.js +5 -0
  331. package/dist/store/write-events.d.ts +18 -0
  332. package/dist/store/write-events.js +88 -0
  333. package/package.json +3 -3
  334. package/parity.json +37 -16
  335. package/schemas/records-envelope.v1.schema.json +3 -0
@@ -13,6 +13,11 @@ export declare const deal: v.StrictObjectSchema<{
13
13
  readonly pipeline: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
14
14
  readonly pipeline_name: v.StringSchema<undefined>;
15
15
  readonly stage: v.StringSchema<undefined>;
16
+ /** The base stage `stage` maps to, once the owner confirmed it; `null` while unsorted. */
17
+ readonly base_stage: v.NullableSchema<v.StrictObjectSchema<{
18
+ readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
19
+ readonly name: v.StringSchema<undefined>;
20
+ }, undefined>, undefined>;
16
21
  readonly status: v.PicklistSchema<["open", "won", "lost"], undefined>;
17
22
  readonly organization: v.NullableSchema<v.StrictObjectSchema<{
18
23
  readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
@@ -74,6 +79,11 @@ export declare const lead: v.StrictObjectSchema<{
74
79
  readonly pipeline: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
75
80
  readonly pipeline_name: v.StringSchema<undefined>;
76
81
  readonly stage: v.StringSchema<undefined>;
82
+ /** The base stage `stage` maps to, once the owner confirmed it; `null` while unsorted. */
83
+ readonly base_stage: v.NullableSchema<v.StrictObjectSchema<{
84
+ readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
85
+ readonly name: v.StringSchema<undefined>;
86
+ }, undefined>, undefined>;
77
87
  readonly status: v.PicklistSchema<["open", "won", "lost"], undefined>;
78
88
  readonly organization: v.NullableSchema<v.StrictObjectSchema<{
79
89
  readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
@@ -20,6 +20,8 @@ export const deal = v.strictObject({
20
20
  pipeline: reference,
21
21
  pipeline_name: text,
22
22
  stage: text,
23
+ /** The base stage `stage` maps to, once the owner confirmed it; `null` while unsorted. */
24
+ base_stage: v.nullable(v.strictObject({ ref: reference, name: text })),
23
25
  status: outcome,
24
26
  organization: v.nullable(party),
25
27
  currency: nullableText,
@@ -23,8 +23,8 @@ export declare const hit: v.StrictObjectSchema<{
23
23
  readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["title", "words", "meaning"], undefined>, undefined>, undefined>;
24
24
  /** How far into the meeting the passage is. */
25
25
  readonly offset_ms: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
26
- /** A meeting passage's place: its transcript, chat or summary. */
27
- readonly scope: v.OptionalSchema<v.PicklistSchema<["transcript", "chat", "summary"], undefined>, undefined>;
26
+ /** A meeting hit's place: its title, transcript, chat or summary. */
27
+ readonly scope: v.OptionalSchema<v.PicklistSchema<["title", "transcript", "chat", "summary"], undefined>, undefined>;
28
28
  /** A meeting transcript hit's cue, which `meetings passage` opens with the lines around it. */
29
29
  readonly cue_ref: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
30
30
  /** A meeting transcript hit's transcript language (`ru`, `en`…), `null` when unknown. */
@@ -32,6 +32,13 @@ export declare const hit: v.StrictObjectSchema<{
32
32
  /** A meeting transcript hit's line, from 1, of `lines_total` lines in its transcript. */
33
33
  readonly line: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>]>, undefined>;
34
34
  readonly lines_total: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
35
+ /** `corrected`: a meeting hit found only through a spelling speech recognition may have garbled. */
36
+ readonly match: v.OptionalSchema<v.PicklistSchema<["corrected"], undefined>, undefined>;
37
+ /** For a `corrected` hit, the stored words each such query word matched. */
38
+ readonly corrections: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
39
+ readonly from: v.StringSchema<undefined>;
40
+ readonly to: v.ArraySchema<v.StringSchema<undefined>, undefined>;
41
+ }, undefined>, undefined>, undefined>;
35
42
  /** A meeting passage's stored line, so two passages of one meeting stay apart; `search meetings` gives the same. */
36
43
  readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
37
44
  /** A business hit's: `proposed` waits for the owner; a product or a wallet has no review and is `confirmed`. */
@@ -26,8 +26,8 @@ export const hit = v.strictObject({
26
26
  found_by: v.optional(v.array(v.picklist(["title", "words", "meaning"]))),
27
27
  /** How far into the meeting the passage is. */
28
28
  offset_ms: v.optional(v.nullable(count)),
29
- /** A meeting passage's place: its transcript, chat or summary. */
30
- scope: v.optional(v.picklist(["transcript", "chat", "summary"])),
29
+ /** A meeting hit's place: its title, transcript, chat or summary. */
30
+ scope: v.optional(v.picklist(["title", "transcript", "chat", "summary"])),
31
31
  /** A meeting transcript hit's cue, which `meetings passage` opens with the lines around it. */
32
32
  cue_ref: v.optional(reference),
33
33
  /** A meeting transcript hit's transcript language (`ru`, `en`…), `null` when unknown. */
@@ -35,6 +35,10 @@ export const hit = v.strictObject({
35
35
  /** A meeting transcript hit's line, from 1, of `lines_total` lines in its transcript. */
36
36
  line: v.optional(v.pipe(count, v.minValue(1))),
37
37
  lines_total: v.optional(count),
38
+ /** `corrected`: a meeting hit found only through a spelling speech recognition may have garbled. */
39
+ match: v.optional(v.picklist(["corrected"])),
40
+ /** For a `corrected` hit, the stored words each such query word matched. */
41
+ corrections: v.optional(v.array(v.strictObject({ from: text, to: v.array(text) }))),
38
42
  /** A meeting passage's stored line, so two passages of one meeting stay apart; `search meetings` gives the same. */
39
43
  id: v.optional(v.pipe(v.string(), v.minLength(1))),
40
44
  /** A business hit's: `proposed` waits for the owner; a product or a wallet has no review and is `confirmed`. */
@@ -144,6 +144,7 @@ export declare const ENTITIES: {
144
144
  readonly person_uid: v.StringSchema<undefined>;
145
145
  readonly previous_person_uid: v.NullableSchema<v.StringSchema<undefined>, undefined>;
146
146
  readonly changed: v.BooleanSchema<undefined>;
147
+ readonly proposal: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
147
148
  }, undefined>], undefined>, undefined>;
148
149
  }, undefined>;
149
150
  readonly meeting_transcription: v.UnionSchema<[v.StrictObjectSchema<{
@@ -245,6 +246,10 @@ export declare const ENTITIES: {
245
246
  readonly pipeline: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
246
247
  readonly pipeline_name: v.StringSchema<undefined>;
247
248
  readonly stage: v.StringSchema<undefined>;
249
+ readonly base_stage: v.NullableSchema<v.StrictObjectSchema<{
250
+ readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
251
+ readonly name: v.StringSchema<undefined>;
252
+ }, undefined>, undefined>;
248
253
  readonly status: v.PicklistSchema<["open", "won", "lost"], undefined>;
249
254
  readonly organization: v.NullableSchema<v.StrictObjectSchema<{
250
255
  readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
@@ -300,6 +305,10 @@ export declare const ENTITIES: {
300
305
  readonly pipeline: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
301
306
  readonly pipeline_name: v.StringSchema<undefined>;
302
307
  readonly stage: v.StringSchema<undefined>;
308
+ readonly base_stage: v.NullableSchema<v.StrictObjectSchema<{
309
+ readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
310
+ readonly name: v.StringSchema<undefined>;
311
+ }, undefined>, undefined>;
303
312
  readonly status: v.PicklistSchema<["open", "won", "lost"], undefined>;
304
313
  readonly organization: v.NullableSchema<v.StrictObjectSchema<{
305
314
  readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
@@ -1346,6 +1355,7 @@ export declare const ENTITIES: {
1346
1355
  readonly limited: v.OptionalSchema<v.StrictObjectSchema<{
1347
1356
  readonly group_too_large: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
1348
1357
  readonly older_than_window: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
1358
+ readonly muted: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
1349
1359
  }, undefined>, undefined>;
1350
1360
  readonly tasks: v.OptionalSchema<v.StrictObjectSchema<{
1351
1361
  readonly added: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
@@ -2614,7 +2624,7 @@ export declare const ENTITIES: {
2614
2624
  readonly value: v.StringSchema<undefined>;
2615
2625
  readonly domain: v.NullableSchema<v.StringSchema<undefined>, undefined>;
2616
2626
  readonly confidence: v.NumberSchema<undefined>;
2617
- readonly status: v.PicklistSchema<["found", "linked", "dismissed"], undefined>;
2627
+ readonly status: v.PicklistSchema<["found", "linked", "proposed", "dismissed"], undefined>;
2618
2628
  readonly field: v.StringSchema<undefined>;
2619
2629
  readonly author: v.NullableSchema<v.StringSchema<undefined>, undefined>;
2620
2630
  readonly target: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
@@ -2629,7 +2639,7 @@ export declare const ENTITIES: {
2629
2639
  readonly value: v.StringSchema<undefined>;
2630
2640
  readonly domain: v.NullableSchema<v.StringSchema<undefined>, undefined>;
2631
2641
  readonly confidence: v.NumberSchema<undefined>;
2632
- readonly status: v.PicklistSchema<["found", "linked", "dismissed"], undefined>;
2642
+ readonly status: v.PicklistSchema<["found", "linked", "proposed", "dismissed"], undefined>;
2633
2643
  readonly field: v.StringSchema<undefined>;
2634
2644
  readonly author: v.NullableSchema<v.StringSchema<undefined>, undefined>;
2635
2645
  readonly target: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
@@ -2652,9 +2662,10 @@ export declare const ENTITIES: {
2652
2662
  readonly mention_decision: v.StrictObjectSchema<{
2653
2663
  readonly kind: v.PicklistSchema<["phone", "email", "url", "document", "person-name", "place"], undefined>;
2654
2664
  readonly value: v.StringSchema<undefined>;
2655
- readonly status: v.PicklistSchema<["found", "linked", "dismissed"], undefined>;
2665
+ readonly status: v.PicklistSchema<["found", "linked", "proposed", "dismissed"], undefined>;
2656
2666
  readonly target: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
2657
2667
  readonly mentions: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
2668
+ readonly proposal: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2658
2669
  }, undefined>;
2659
2670
  readonly mention_rebuild: v.StrictObjectSchema<{
2660
2671
  readonly messages: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
@@ -2710,6 +2721,7 @@ export declare const ENTITIES: {
2710
2721
  readonly linked_by: v.StringSchema<undefined>;
2711
2722
  readonly linked_at: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
2712
2723
  }, undefined>, undefined>;
2724
+ readonly proposal: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2713
2725
  readonly provider: v.StringSchema<undefined>;
2714
2726
  readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
2715
2727
  }, undefined>;
@@ -3495,6 +3507,7 @@ export declare const ENTITIES: {
3495
3507
  readonly linked_by: v.StringSchema<undefined>;
3496
3508
  readonly linked_at: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
3497
3509
  }, undefined>, undefined>;
3510
+ readonly proposal: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3498
3511
  readonly provider: v.StringSchema<undefined>;
3499
3512
  readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
3500
3513
  }, undefined>;
@@ -3708,18 +3721,21 @@ export declare const ENTITIES: {
3708
3721
  readonly cut_by: v.NullableSchema<v.PicklistSchema<["limit", "bytes"], undefined>, undefined>;
3709
3722
  readonly selection: v.LiteralSchema<"open, assigned to them in any role", undefined>;
3710
3723
  readonly accounts: v.ArraySchema<v.StringSchema<undefined>, undefined>;
3724
+ readonly scopes: v.ArraySchema<v.PicklistSchema<["personal", "work"], undefined>, undefined>;
3711
3725
  }, undefined>;
3712
3726
  readonly facts: v.StrictObjectSchema<{
3713
3727
  readonly included: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
3714
3728
  readonly has_more: v.BooleanSchema<undefined>;
3715
3729
  readonly cut_by: v.NullableSchema<v.PicklistSchema<["limit", "bytes"], undefined>, undefined>;
3716
3730
  readonly selection: v.LiteralSchema<"accepted, about them or a project they are a member of", undefined>;
3731
+ readonly scopes: v.ArraySchema<v.PicklistSchema<["personal", "work"], undefined>, undefined>;
3717
3732
  }, undefined>;
3718
3733
  readonly notes: v.StrictObjectSchema<{
3719
3734
  readonly included: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
3720
3735
  readonly has_more: v.BooleanSchema<undefined>;
3721
3736
  readonly cut_by: v.NullableSchema<v.PicklistSchema<["limit", "bytes"], undefined>, undefined>;
3722
3737
  readonly selection: v.LiteralSchema<"written by you, about them", undefined>;
3738
+ readonly scopes: v.ArraySchema<v.PicklistSchema<["personal", "work"], undefined>, undefined>;
3723
3739
  readonly withheld: v.OptionalSchema<v.LiteralSchema<"contacts.notes.list", undefined>, undefined>;
3724
3740
  }, undefined>;
3725
3741
  readonly meetings: v.StrictObjectSchema<{
@@ -3733,6 +3749,10 @@ export declare const ENTITIES: {
3733
3749
  }, undefined>;
3734
3750
  }, undefined>;
3735
3751
  }, undefined>;
3752
+ readonly person_context: v.GenericSchema;
3753
+ readonly organization_context: v.GenericSchema;
3754
+ readonly deal_context: v.GenericSchema;
3755
+ readonly "deal_context.brief": v.GenericSchema;
3736
3756
  readonly contact_activity: v.StrictObjectSchema<{
3737
3757
  readonly at: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
3738
3758
  readonly subject: v.StringSchema<undefined>;
@@ -3787,6 +3807,7 @@ export declare const ENTITIES: {
3787
3807
  readonly linked_by: v.StringSchema<undefined>;
3788
3808
  readonly linked_at: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
3789
3809
  }, undefined>, undefined>;
3810
+ readonly proposal: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3790
3811
  }, undefined>;
3791
3812
  readonly contact: v.StrictObjectSchema<{
3792
3813
  readonly usernames: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
@@ -4296,11 +4317,16 @@ export declare const ENTITIES: {
4296
4317
  readonly sender_ref: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>, undefined>;
4297
4318
  readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["title", "words", "meaning"], undefined>, undefined>, undefined>;
4298
4319
  readonly offset_ms: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
4299
- readonly scope: v.OptionalSchema<v.PicklistSchema<["transcript", "chat", "summary"], undefined>, undefined>;
4320
+ readonly scope: v.OptionalSchema<v.PicklistSchema<["title", "transcript", "chat", "summary"], undefined>, undefined>;
4300
4321
  readonly cue_ref: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
4301
4322
  readonly language: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
4302
4323
  readonly line: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>]>, undefined>;
4303
4324
  readonly lines_total: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
4325
+ readonly match: v.OptionalSchema<v.PicklistSchema<["corrected"], undefined>, undefined>;
4326
+ readonly corrections: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
4327
+ readonly from: v.StringSchema<undefined>;
4328
+ readonly to: v.ArraySchema<v.StringSchema<undefined>, undefined>;
4329
+ }, undefined>, undefined>, undefined>;
4304
4330
  readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
4305
4331
  readonly review: v.OptionalSchema<v.PicklistSchema<["proposed", "confirmed"], undefined>, undefined>;
4306
4332
  readonly source_record: v.OptionalSchema<v.StrictObjectSchema<{
@@ -6666,6 +6692,8 @@ export declare const ENTITIES: {
6666
6692
  readonly position: v.NullableSchema<v.StringSchema<undefined>, undefined>;
6667
6693
  readonly starts_at: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>, undefined>;
6668
6694
  readonly ends_at: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>, undefined>;
6695
+ readonly account: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
6696
+ readonly derived: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
6669
6697
  readonly created_at: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
6670
6698
  }, undefined>;
6671
6699
  readonly recipient: v.StrictObjectSchema<{
@@ -10,6 +10,7 @@ import { agenda } from "./agenda.js";
10
10
  import { analysisConsent, analysisConsentRevocation } from "./analysis-consent.js";
11
11
  import { attachment, hitFile } from "./attachment.js";
12
12
  import { attachmentBytes, attachmentExtraction, attachmentTextChange } from "./attachment-results.js";
13
+ import { dealBrief, dealContext, organizationContext, personContext } from "./business-context.js";
13
14
  import { chart } from "./chart.js";
14
15
  import { chat } from "./chat.js";
15
16
  import { chatAdminChange, chatFolderChange, chatFolderOrder, chatFolderRemoval, chatGroupChange, chatInspection, chatInvite, chatInviteChange, chatMembersChange, chatMembersFetch, chatRead, chatRequestChange, chatSender, } from "./chat-admin.js";
@@ -171,6 +172,10 @@ export const ENTITIES = {
171
172
  identity,
172
173
  contact_context: contactContext,
173
174
  contact_preparation: contactPreparation,
175
+ person_context: personContext,
176
+ organization_context: organizationContext,
177
+ deal_context: dealContext,
178
+ "deal_context.brief": dealBrief,
174
179
  contact_activity: contactActivity,
175
180
  contact_check: contactCheck,
176
181
  linked_person: linkedPerson,
@@ -6,7 +6,7 @@ export declare const mention: v.StrictObjectSchema<{
6
6
  readonly value: v.StringSchema<undefined>;
7
7
  readonly domain: v.NullableSchema<v.StringSchema<undefined>, undefined>;
8
8
  readonly confidence: v.NumberSchema<undefined>;
9
- readonly status: v.PicklistSchema<["found", "linked", "dismissed"], undefined>;
9
+ readonly status: v.PicklistSchema<["found", "linked", "proposed", "dismissed"], undefined>;
10
10
  readonly field: v.StringSchema<undefined>;
11
11
  readonly author: v.NullableSchema<v.StringSchema<undefined>, undefined>;
12
12
  readonly target: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
@@ -21,7 +21,7 @@ export declare const mentionDetails: v.StrictObjectSchema<{
21
21
  readonly value: v.StringSchema<undefined>;
22
22
  readonly domain: v.NullableSchema<v.StringSchema<undefined>, undefined>;
23
23
  readonly confidence: v.NumberSchema<undefined>;
24
- readonly status: v.PicklistSchema<["found", "linked", "dismissed"], undefined>;
24
+ readonly status: v.PicklistSchema<["found", "linked", "proposed", "dismissed"], undefined>;
25
25
  readonly field: v.StringSchema<undefined>;
26
26
  readonly author: v.NullableSchema<v.StringSchema<undefined>, undefined>;
27
27
  readonly target: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
@@ -49,9 +49,10 @@ export declare const place: v.StrictObjectSchema<{
49
49
  export declare const mentionDecision: v.StrictObjectSchema<{
50
50
  readonly kind: v.PicklistSchema<["phone", "email", "url", "document", "person-name", "place"], undefined>;
51
51
  readonly value: v.StringSchema<undefined>;
52
- readonly status: v.PicklistSchema<["found", "linked", "dismissed"], undefined>;
52
+ readonly status: v.PicklistSchema<["found", "linked", "proposed", "dismissed"], undefined>;
53
53
  readonly target: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
54
54
  readonly mentions: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
55
+ readonly proposal: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
55
56
  }, undefined>;
56
57
  export declare const mentionRebuild: v.StrictObjectSchema<{
57
58
  readonly messages: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
@@ -1,7 +1,7 @@
1
1
  import * as v from "valibot";
2
2
  import { count, reference, text, time } from "./fields.js";
3
3
  const kind = v.picklist(["phone", "email", "url", "document", "person-name", "place"]);
4
- const status = v.picklist(["found", "linked", "dismissed"]);
4
+ const status = v.picklist(["found", "linked", "proposed", "dismissed"]);
5
5
  /** Mention and place IDs retain the numeric identifiers returned by the local store. */
6
6
  export const mention = v.strictObject({
7
7
  id: count,
@@ -33,6 +33,7 @@ export const mentionDecision = v.strictObject({
33
33
  status,
34
34
  target: v.nullable(reference),
35
35
  mentions: count,
36
+ proposal: v.optional(text),
36
37
  });
37
38
  export const mentionRebuild = v.strictObject({
38
39
  messages: count,
@@ -254,10 +254,11 @@ export declare const messageSyncAll: v.StrictObjectSchema<{
254
254
  }, v.UnknownSchema, undefined>, undefined>;
255
255
  readonly limited: v.OptionalSchema<v.PicklistSchema<["group_too_large", "older_than_window"], undefined>, undefined>;
256
256
  }, undefined>, undefined>;
257
- /** How many chats the history limits left unread (big groups) or read only to the window's start. */
257
+ /** How many chats the history limits left unread (big groups) or read only to the window's start; muted, unread. */
258
258
  readonly limited: v.OptionalSchema<v.StrictObjectSchema<{
259
259
  readonly group_too_large: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
260
260
  readonly older_than_window: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
261
+ readonly muted: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
261
262
  }, undefined>, undefined>;
262
263
  readonly tasks: v.OptionalSchema<v.StrictObjectSchema<{
263
264
  readonly added: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
@@ -387,10 +388,11 @@ export declare const messageSync: v.UnionSchema<[v.StrictObjectSchema<{
387
388
  }, v.UnknownSchema, undefined>, undefined>;
388
389
  readonly limited: v.OptionalSchema<v.PicklistSchema<["group_too_large", "older_than_window"], undefined>, undefined>;
389
390
  }, undefined>, undefined>;
390
- /** How many chats the history limits left unread (big groups) or read only to the window's start. */
391
+ /** How many chats the history limits left unread (big groups) or read only to the window's start; muted, unread. */
391
392
  readonly limited: v.OptionalSchema<v.StrictObjectSchema<{
392
393
  readonly group_too_large: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
393
394
  readonly older_than_window: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
395
+ readonly muted: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
394
396
  }, undefined>, undefined>;
395
397
  readonly tasks: v.OptionalSchema<v.StrictObjectSchema<{
396
398
  readonly added: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
@@ -83,8 +83,8 @@ export const messageSyncAll = v.strictObject({
83
83
  issue: v.optional(actionableError),
84
84
  limited: v.optional(historyLimited),
85
85
  })),
86
- /** How many chats the history limits left unread (big groups) or read only to the window's start. */
87
- limited: v.optional(v.strictObject({ group_too_large: count, older_than_window: count })),
86
+ /** How many chats the history limits left unread (big groups) or read only to the window's start; muted, unread. */
87
+ limited: v.optional(v.strictObject({ group_too_large: count, older_than_window: count, muted: v.optional(count) })),
88
88
  tasks,
89
89
  });
90
90
  export const messageSyncStarted = v.strictObject({ job: id, pid: count, chat: text, log: text });
@@ -10,7 +10,7 @@ export declare const model: v.StrictObjectSchema<{
10
10
  /** Which languages it reads, in words. */
11
11
  readonly languages: v.StringSchema<undefined>;
12
12
  readonly licence: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
13
- /** A text model's licence terms to accept with `models download --accept-terms`. */
13
+ /** A text model's licence page, for a model under conditions of its own (`NOTICE` beside its files says the same). */
14
14
  readonly terms: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
15
15
  /** A text model's size next to the others: small is fastest, large reads best. */
16
16
  readonly size: v.OptionalSchema<v.PicklistSchema<["small", "medium", "large"], undefined>, undefined>;
@@ -36,7 +36,7 @@ export declare const chosenModel: v.StrictObjectSchema<{
36
36
  /** Which languages it reads, in words. */
37
37
  readonly languages: v.StringSchema<undefined>;
38
38
  readonly licence: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
39
- /** A text model's licence terms to accept with `models download --accept-terms`. */
39
+ /** A text model's licence page, for a model under conditions of its own (`NOTICE` beside its files says the same). */
40
40
  readonly terms: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
41
41
  /** A text model's size next to the others: small is fastest, large reads best. */
42
42
  readonly size: v.OptionalSchema<v.PicklistSchema<["small", "medium", "large"], undefined>, undefined>;
@@ -11,7 +11,7 @@ export const model = v.strictObject({
11
11
  /** Which languages it reads, in words. */
12
12
  languages: text,
13
13
  licence: v.optional(text),
14
- /** A text model's licence terms to accept with `models download --accept-terms`. */
14
+ /** A text model's licence page, for a model under conditions of its own (`NOTICE` beside its files says the same). */
15
15
  terms: v.optional(text),
16
16
  /** A text model's size next to the others: small is fastest, large reads best. */
17
17
  size: v.optional(v.picklist(["small", "medium", "large"])),
@@ -19,5 +19,9 @@ export declare const relationship: v.StrictObjectSchema<{
19
19
  readonly position: v.NullableSchema<v.StringSchema<undefined>, undefined>;
20
20
  readonly starts_at: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>, undefined>;
21
21
  readonly ends_at: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>, undefined>;
22
+ /** The source account that reported it, `<provider>:<account>`. */
23
+ readonly account: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
24
+ /** How a source made it when it stated none, such as `department-head`. */
25
+ readonly derived: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
22
26
  readonly created_at: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
23
27
  }, undefined>;
@@ -21,5 +21,9 @@ export const relationship = v.strictObject({
21
21
  position: v.nullable(text),
22
22
  starts_at: v.nullable(time),
23
23
  ends_at: v.nullable(time),
24
+ /** The source account that reported it, `<provider>:<account>`. */
25
+ account: v.optional(text),
26
+ /** How a source made it when it stated none, such as `department-head`. */
27
+ derived: v.optional(text),
24
28
  created_at: time,
25
29
  });
@@ -59,7 +59,10 @@ const PROVIDER_API = [
59
59
  const OTHERS = [
60
60
  ["query.time-limit", "timeout", "the search took longer than its time limit; the query itself is valid"],
61
61
  ["enrichment.owner-only", "permission_error", "only the owner turns enrichment on, not an agent"],
62
+ ["search-harder.owner-only", "permission_error", "only the owner allows search all --harder, not an agent"],
62
63
  ["model.offline", "permission_error", "downloading a model needs the network; --offline was requested"],
64
+ ["model.key-rejected", "invalid_response", "the model provider refused the API key (401 or 403)"],
65
+ ["model.unreachable", "invalid_response", "the model provider could not be reached over the network"],
63
66
  [
64
67
  "contract.unacknowledged-override",
65
68
  "configuration_error",
@@ -82,6 +85,7 @@ const OTHERS = [
82
85
  validation("mail-findings.invalid", "a checked mail findings batch would be refused; details.problems names why, finding by finding"),
83
86
  validation("mail-findings.key-used", "the findings batch key was already used for different input"),
84
87
  validation("finding.unknown-field", "a finding has a field its kind does not take"),
88
+ validation("finding.quote-not-found", "a finding's quote is not in the text it cites, word for word"),
85
89
  validation("finding.missing-field", "a finding leaves out a field its kind needs"),
86
90
  validation("document.changed", "the document changed while it was read; nothing was saved"),
87
91
  ["document.not-imported", "not_found", "the document is not imported in this source account"],
@@ -153,7 +157,7 @@ const OTHERS = [
153
157
  [
154
158
  "source.needs-sign-in",
155
159
  "authentication_error",
156
- "the page asks for a sign-in; a private Google document is read through Drive",
160
+ "the page asks for a sign-in; add a private Google document with drive documents add <url> --profiles <names|all>",
157
161
  ],
158
162
  validation("source.too-large", "the source is larger than one read takes"),
159
163
  validation("source.unsupported", "no reader takes this kind of source"),
@@ -194,6 +198,11 @@ const OTHERS = [
194
198
  "configuration_error",
195
199
  "the store file is damaged; store recover says what is lost and recovers it",
196
200
  ],
201
+ [
202
+ "store.journal-replaced",
203
+ "conflict",
204
+ "another program deleted or replaced the store's journal file while it was open; store recover says what to do",
205
+ ],
197
206
  validation("store.file-damaged", "the named store file is damaged or not a database"),
198
207
  [
199
208
  "store.unreadable",
@@ -282,8 +291,18 @@ const OTHERS = [
282
291
  validation("deal.closed", "a deleted deal or lead does not move or close"),
283
292
  validation("deal.copy", "a CRM's copy changes in the CRM; its next sync brings the change here"),
284
293
  validation("deal.field", "a field of the deal or lead is not valid"),
294
+ ["deal.denied", "permission_error", "the profile denies listing deals or leads, so none is answered"],
295
+ ["deal.out-of-scope", "not_found", "the deal or lead is a copy from an account outside the accounts asked for"],
285
296
  validation("deal.ref", "the reference names no deal or lead"),
286
297
  validation("deal.stage", "no stage of that name, or a stage name more than one pipeline has"),
298
+ validation("stage.base-field", "a base stage needs a name its set has once and a position within the set"),
299
+ validation("stage.base-outcome", "a base set keeps at least one stage of each outcome: open, won and lost"),
300
+ validation("stage.base-in-use", "the owner's own deals or leads stand or stood in that base stage"),
301
+ validation("stage.choice-required", "more than one stage of the row's pipeline maps to that base stage; move to one of the candidates"),
302
+ validation("stage.ref", "a stage is named by its stage:<id> reference"),
303
+ ["stage.owner-only", "permission_error", "only the owner confirms mappings and edits a base set, not an agent"],
304
+ validation("stage.unmapped", "no stage of the row's pipeline maps to that base stage; map one first"),
305
+ ["stage.not-found", "not_found", "no stored stage has that reference or name"],
287
306
  validation("pipeline.ambiguous", "more than one pipeline has that name; name it by its pipeline: reference"),
288
307
  validation("pipeline.duplicate", "a pipeline of that name and kind is already stored"),
289
308
  validation("pipeline.field", "a pipeline needs a name and at least one stage, each named once"),
@@ -297,6 +316,7 @@ const OTHERS = [
297
316
  validation("field.unknown-kind", "fields are listed for deals, leads, people and organizations only"),
298
317
  validation("crm.write-unsupported", "the CRM does not take this write, or does not recognise a repeated one"),
299
318
  validation("crm.unlisted-held", "a list of every id would mark most of a kind deleted; nothing was, until --rescan"),
319
+ validation("crm.narrowing-held", "the default scope mine would mark most of a kind's stored rows deleted; none is, until the owner sets the scope"),
300
320
  validation("crm.not-reported", "the CRM did not list users or departments; what they would say is unknown, nothing withdrawn"),
301
321
  validation("crm.reference-unknown", "a CRM row names a contact, company or user the store does not hold; that link was not made"),
302
322
  validation("crm.pending-dropped", "relationships waited too long for an end that never came; they were dropped"),
@@ -343,12 +363,25 @@ const OTHERS = [
343
363
  "conflict",
344
364
  "the owner separated this identity from that person; only the owner links it again",
345
365
  ],
346
- ["identity.owner-only", "permission_error", "only the owner undoes a merge or splits a person"],
366
+ [
367
+ "identity.owner-only",
368
+ "permission_error",
369
+ "only the owner undoes a merge, splits a person, confirms or undoes a link, or links an identity to themselves",
370
+ ],
347
371
  [
348
372
  "identity.stale",
349
373
  "conflict",
350
- "an identity of the merge was merged on into another person since; undo that merge first",
374
+ "the people a merge or a proposed link names changed since; undo the later merge, or propose the link again",
375
+ ],
376
+ [
377
+ "identity.rejected",
378
+ "conflict",
379
+ "the owner rejected linking these people on this evidence; only a new signal or identity proposes them again",
351
380
  ],
381
+ validation("identity.same", "the two identities are one person already"),
382
+ validation("identity.shared-phone", "more than six people share the phone number, so it proposes no one"),
383
+ validation("identity.shared-email", "more than six people share the address, so it proposes no one"),
384
+ validation("identity-link.dedicated-review", "an identity link is staged and decided through the people review"),
352
385
  ["transcription.no-key", "authentication_error", "no OpenAI key is set for transcription"],
353
386
  validation("transcription.too-large", "the audio is over the transcription provider's size limit"),
354
387
  [
@@ -363,8 +396,9 @@ const OTHERS = [
363
396
  validation("output.unknown-field", "the answer has no field by that name"),
364
397
  validation("name.taken", "the name is already used"),
365
398
  validation("period.ambiguous", "the period can be read more than one way"),
399
+ ["press.owner-hand-only", "permission_error", "this button decides something for the owner; only a hand presses it"],
366
400
  validation("proposal.wrong-state", "the proposal is not in a state that allows this"),
367
- validation("proposal.reason-required", "an agent deciding for the owner gives a reason"),
401
+ validation("proposal.reason-required", "an agent deciding for the owner, or proposing a link, gives a reason"),
368
402
  validation("decision.request-invalid", "a decision request needs its batch, message, owner and distinct known actions"),
369
403
  ["decision.token-unknown", "not_found", "no button has this token"],
370
404
  ["decision.token-used", "permission_error", "this button was already pressed"],
@@ -381,6 +415,7 @@ const OTHERS = [
381
415
  ],
382
416
  validation("proposal.decider-required", "a decision names who decides: the owner or an agent with a reason"),
383
417
  validation("proposal.ids", "the proposal ids cannot be read"),
418
+ ["group.outside", "permission_error", "the process is locked to a group, and this belongs to accounts outside it"],
384
419
  ["proposal.own", "permission_error", "an agent never decides its own proposal"],
385
420
  ["proposal.owner-only", "permission_error", "only the owner decides this proposal"],
386
421
  ["proposals.agent-decisions-off", "permission_error", "agent decisions are turned off; the owner decides"],
@@ -106,7 +106,8 @@ const readBody = async (response, limit) => {
106
106
  }
107
107
  return bytes;
108
108
  };
109
- const needsSignIn = (url) => new CliError("authentication_error", `${url.hostname} asks for a sign-in: read a private Google document through Drive`, {
109
+ const needsSignIn = (url) => new CliError("authentication_error", `${url.hostname} asks for a sign-in: add a private Google document through Drive, with ` +
110
+ "drive documents add <url> --profiles <names|all>", {
110
111
  reason: "source.needs-sign-in",
111
112
  });
112
113
  /**
package/dist/index.d.ts CHANGED
@@ -1,8 +1,9 @@
1
+ export { isNoReplyAddress, isRoleAddress, ROLE_ADDRESS_WORDS } from "./domain/addresses.js";
1
2
  export { CATALOG_KINDS, type CatalogKind, CONTRACT_KINDS, CONTRACT_STATUSES, type ContractKind, type ContractStatus, type Interval, intervalOf, intervalText, ORDER_DIRECTIONS, type OrderDirection, PERIOD_UNITS, type PeriodUnit, SUBSCRIPTION_STATUSES, type SubscriptionStatus, TRANSACTION_STATUSES, type TransactionStatus, WALLET_KINDS, type WalletKind, } from "./domain/business.js";
2
3
  export { bareCheck, type CheckWords, checkWords } from "./domain/checks.js";
3
4
  export type { CounterField, CounterObservation, CounterObservations, CounterState } from "./domain/counters.js";
4
5
  export { COUNTER_FIELDS, counterValue, observedCounters } from "./domain/counters.js";
5
- export { CRM_KINDS, type CrmDepartment, type CrmField, type CrmItem, type CrmKind, type CrmOrganization, type CrmPerson, type CrmPipeline, type CrmRecords, type CrmStage, type CrmUser, type CrmValue, isItemKind, } from "./domain/crm.js";
6
+ export { CRM_KINDS, type CrmDepartment, type CrmField, type CrmItem, type CrmKind, type CrmOrganization, type CrmPerson, type CrmPipeline, type CrmRecords, type CrmScope, type CrmScopeSetting, type CrmStage, type CrmUser, type CrmValue, isCrmUserId, isItemKind, normalCrmUserId, } from "./domain/crm.js";
6
7
  export { DEAL_KINDS, DEAL_ROLES, DEAL_STATUSES, type DealKind, type DealRole, type DealStatus, STAGE_OUTCOMES, type StageOutcome, } from "./domain/deals.js";
7
8
  export { FINANCE_REVIEWS, type FinanceReview, INVOICE_DIRECTIONS, INVOICE_STATUSES, type InvoiceDirection, type InvoiceStatus, MONEY_DIRECTIONS, type MoneyDirection, } from "./domain/finance.js";
8
9
  export { type FormattedText, type HtmlFormatting, type MarkdownFormatting, type TextSpan, validateFormattedText, } from "./domain/formatting.js";
@@ -21,7 +22,7 @@ export type { RankingComponent, RankingInput, RankingMeasure, RankingOptions, Ra
21
22
  export { rankingOptions } from "./domain/rankings-options.js";
22
23
  export { type EnvelopeOptions, type EnvelopeRecord, type EnvelopeSource, envelopeOfJsonl, envelopeOfText, type IngestError, RECORD_ENTITY_TYPES, RECORD_OPERATIONS, RECORDS_ENVELOPE_SCHEMA, RECORDS_SCHEMA_VERSION, type RecordEntityType, type RecordOperation, type RecordRelation, type RecordsEnvelope, } from "./domain/records.js";
23
24
  export { canonicalReference, formatReference, looksLikeReference, parseReference, REF_KINDS, type Reference, type RefKindName, type RefKindSpec, } from "./domain/references.js";
24
- export { byEngagement, ENGAGEMENT_LEVELS, type Engagement, engagementRank, inverseOf, isUsable, ORGANIZATION_ROLES, PROJECT_ROLES, RELATION_KINDS, RELATIONS, type RelationKind, ROLE_LISTS, type RoleList, rolesOf, STANDINGS, type Standing, standingOf, usableLink, } from "./domain/relations.js";
25
+ export { byEngagement, CONTRACT_ROLES, ENGAGEMENT_LEVELS, type Engagement, engagementRank, inverseOf, isUsable, ORGANIZATION_ROLES, PROJECT_ROLES, RELATION_KINDS, RELATIONS, type RelationKind, ROLE_LISTS, type RoleList, rolesOf, STANDINGS, type Standing, standingOf, usableLink, } from "./domain/relations.js";
25
26
  export { normalizeTag, TAG_TYPES, type TagType } from "./domain/tags.js";
26
27
  export { envelopeOfVcard, isVcard, type VcardIssue, type VcardOptions } from "./domain/vcard.js";
27
28
  export { type AppErrors, DETAILS as CORE_DETAILS, failureContext, REASONS as CORE_REASONS } from "./errors/reasons.js";
package/dist/index.js CHANGED
@@ -1,7 +1,8 @@
1
+ export { isNoReplyAddress, isRoleAddress, ROLE_ADDRESS_WORDS } from "./domain/addresses.js";
1
2
  export { CATALOG_KINDS, CONTRACT_KINDS, CONTRACT_STATUSES, intervalOf, intervalText, ORDER_DIRECTIONS, PERIOD_UNITS, SUBSCRIPTION_STATUSES, TRANSACTION_STATUSES, WALLET_KINDS, } from "./domain/business.js";
2
3
  export { bareCheck, checkWords } from "./domain/checks.js";
3
4
  export { COUNTER_FIELDS, counterValue, observedCounters } from "./domain/counters.js";
4
- export { CRM_KINDS, isItemKind, } from "./domain/crm.js";
5
+ export { CRM_KINDS, isCrmUserId, isItemKind, normalCrmUserId, } from "./domain/crm.js";
5
6
  export { DEAL_KINDS, DEAL_ROLES, DEAL_STATUSES, STAGE_OUTCOMES, } from "./domain/deals.js";
6
7
  export { FINANCE_REVIEWS, INVOICE_DIRECTIONS, INVOICE_STATUSES, MONEY_DIRECTIONS, } from "./domain/finance.js";
7
8
  export { validateFormattedText, } from "./domain/formatting.js";
@@ -16,7 +17,7 @@ export { ADDED_ACCOUNT, ADDED_PROVIDER, CRM_OPENS, FOLDER_PROVIDERS, holdsKind,
16
17
  export { rankingOptions } from "./domain/rankings-options.js";
17
18
  export { envelopeOfJsonl, envelopeOfText, RECORD_ENTITY_TYPES, RECORD_OPERATIONS, RECORDS_ENVELOPE_SCHEMA, RECORDS_SCHEMA_VERSION, } from "./domain/records.js";
18
19
  export { canonicalReference, formatReference, looksLikeReference, parseReference, REF_KINDS, } from "./domain/references.js";
19
- export { byEngagement, ENGAGEMENT_LEVELS, engagementRank, inverseOf, isUsable, ORGANIZATION_ROLES, PROJECT_ROLES, RELATION_KINDS, RELATIONS, ROLE_LISTS, rolesOf, STANDINGS, standingOf, usableLink, } from "./domain/relations.js";
20
+ export { byEngagement, CONTRACT_ROLES, ENGAGEMENT_LEVELS, engagementRank, inverseOf, isUsable, ORGANIZATION_ROLES, PROJECT_ROLES, RELATION_KINDS, RELATIONS, ROLE_LISTS, rolesOf, STANDINGS, standingOf, usableLink, } from "./domain/relations.js";
20
21
  export { normalizeTag, TAG_TYPES } from "./domain/tags.js";
21
22
  export { envelopeOfVcard, isVcard } from "./domain/vcard.js";
22
23
  export { DETAILS as CORE_DETAILS, failureContext, REASONS as CORE_REASONS } from "./errors/reasons.js";
@@ -36,6 +36,8 @@ export interface ParticipantPersonLinkReceipt extends ParticipantPerson {
36
36
  personUid: string;
37
37
  previousPersonUid: string | null;
38
38
  changed: boolean;
39
+ /** An agent's association waits for the owner as this `identity_link` proposal; nothing moved. */
40
+ proposal?: string;
39
41
  }
40
42
  /** Mutations must check live scoped ownership, preconditions and targets in the same transaction. */
41
43
  export interface MeetingContextStore {
@@ -3,6 +3,8 @@ declare const TASK_TYPES: readonly ["bug", "feature", "chore"];
3
3
  export interface FindingEvidence {
4
4
  reference: string;
5
5
  fingerprint: string;
6
+ /** The words of the cited text the finding rests on, checked word for word when it is staged. */
7
+ quote?: string;
6
8
  }
7
9
  interface FindingBase {
8
10
  id: string;
@@ -91,6 +93,8 @@ export interface FindingsRules {
91
93
  payments?: boolean;
92
94
  /** A task finding may name no project: it goes in its account's inbox. */
93
95
  inboxTasks?: boolean;
96
+ /** Evidence may carry a quote of at most this many characters. */
97
+ quotes?: number;
94
98
  }
95
99
  /** A finding's cited evidence: 1–8 distinct references in `rules`' form, each with a 64-hex fingerprint. */
96
100
  export declare const validEvidence: (raw: unknown, rules: FindingsRules) => FindingEvidence[];